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

 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 DrA,vLI,a4O,$ri,Qoi,GuA,ao,Pqf,Cqf,QO,PA,oLo,FI4,lq,Nr,zio,Ur8,LIo,BA,I4I,gLA,Ac,Jcu,Bc4,AcA,b7r,sou,mrO,ycL,nLc,O74,Tcc,Q$,WIi,xp,t2f,M1,rcL,f4,UF,D17,vpO,cm,X9,aJ8,Psi,x12,y$,Cso,op2,et,FRr,zML,U1r,n4,Mt4,OF,Z4q,gp8,lJL,oU,NJc,YF2,f3,SF4,Ps,Jbq,pmf,j4A,m12,H47,Jr,eMc,wmc,npL,O4o,KRo,RMu,i42,rbr,u92,hZc,$Ii,GdA,fb8,oCL,CSO,Hs,FmI,ECq,wr,gCc,lbI,S2u,Nrf,Jr8,e$,TJu,n3,O2,K3,Y2I,RU,Xsr,Brf,crf,uS,Aru,q2o,b3i,dIq,sUI,jU2,mIu,H3o,yrf,Ws,eZ7,O3i,Tr8,i3A,GK,t$u,DfI,Pd,af7,GK7,uXu,VRO,xfI,MR7,LM8,ooq,
Eor,gof,kKq,J3c,pd8,B0O,c3f,qQO,jmf,mfI,Hzc,wd4,Ozc,tRu,Bd,uYq,vIu,hJ7,jR,sQ,Hd,Rm,Wd,r0,M_8,oIq,FkO,Lko,EI8,IxL,ff,gIL,o9,Fy,ze,UX,SX8,Jwr,ppI,lxO,NEc,BEu,cwA,Xpf,Aw2,bfq,I9,EX,dS7,j9o,s9o,Hfq,mSr,ywI,wp4,eJf,Bp,cp,Xy,Aw,bz,Of7,dE,TEL,rwo,sX,uyr,DVr,vJo,Hp,h3O,a38,$Vi,yM,V9c,e_,M9u,f38,Kf,oJ2,CUL,FO7,z37,UVo,LO2,Wp,ZT2,EJi,tw,I3c,gJ4,rE,uz,D3,vW,kYO,J1A,SV4,h1,l3L,NDI,YVI,$J,GY,Vz,xJ,MV,fT,BDO,c1o,A14,qVA,dVI,jPo,sPL,mVI,HTA,y1f,zY,wWO,e3c,nJc,OTu,KOA,TD4,R3u,iTq,EV,WOi,gD,kJ,t9f,Dpu,vq7,hPO,$pq,
Qaq,GQu,Me2,fc7,C9q,oq4,FSL,zP2,UpA,Icc,pT,gqA,kQ8,SNq,JNq,pQO,lcc,YNA,yN2,wQc,ePr,KS4,TWL,qV,RPc,teA,DxI,vHu,hrL,aqL,$xf,QuO,GS8,VMq,xxO,MMc,rNq,fq8,CWc,oHA,Ftf,zrf,UxO,Lt8,ZVc,EHf,SY8,gH7,lq7,Jhc,plr,Bqc,chc,Xl8,Nqo,qYI,YYc,dxr,rD,juI,uU,vQ,suo,HVq,yhc,nHq,DdI,Ktq,OVq,Rrc,Wtc,TqA,G3o,a08,VAI,Pyo,xdf,MAi,f0i,ofI,CyA,F92,zj4,Udo,L9q,Ef8,gfA,k3c,SMI,pvr,J$2,stq,GQ,md8,y$O,wvf,ej8,nfq,OJL,TMo,Rj2,iJo,oa,F6,W9A,hx8,L0,Zc,Gii,P88,ZxO,JN,gd7,ki8,lXc,JO8,pVi,BQ,Nlf,Yzr,cO8,XV4,AOi,qzf,bxI,dM7,jZO,mMc,Hxc,
wVA,yOA,Oxu,mS,wW,Tlc,RxO,ixc,Wbi,FdA,zd2,Ldq,Ezc,ZLc,hh,$H,Bar,Pl,dHO,jeq,xH,mH4,se4,Rdu,iLq,Wdc,r2q,hlc,$YO,QBc,GCL,Vj7,xYu,fM4,CDc,ou,FV2,LVf,Zp7,E_2,IML,kCq,UYf,o_f,g_f,zS,p1r,BfL,Nfc,X1r,q54,bpi,dYi,jBc,gq,sBq,Hpc,mY8,yXi,elO,Jh,ipc,vXO,$bA,aO4,Vgr,YH,Mgi,Xo,qx,Ah,FKo,xbO,zs4,jM,EXf,Hl,y6,kRI,pai,NkI,YR8,Bk8,wq,cHO,eM,XaI,qRc,b9L,dbI,jMf,mbi,KV,H9o,yHc,Wl,uW,nXo,O9O,KK7,Tk8,WK8,tgf,uLL,Dc4,VCL,P4i,$cq,MCu,fFr,C48,Md,CJ,ot,Ucc,L3q,z3,Zmf,ERI,IF8,gRu,Sif,JB7,pTf,lFO,kTu,NdI,EM,Bd7,bmf,It,qiq,dc7,
YiO,jrL,SA,mcc,HmI,yBO,wTq,nR7,euL,OmL,Ru7,K32,W3A,hyc,$FL,GU4,xFq,P1q,Vaq,Ma8,C1A,FnA,oEc,UFf,qd,Z1O,EEA,IDf,gE8,JPi,lDq,pUO,NKq,Y9I,sM,BKo,cPu,APL,b1u,sNA,H1o,mFc,Gi,yPO,q94,Ryc,Wn8,tao,rPf,Cx,u1c,vZi,$D4,Vqi,Ga2,fUu,C0q,oZf,F6f,UDL,gZc,L6i,EZO,IU8,kac,S4o,pfo,JA8,NR4,lUc,px,Y4o,cA2,XfI,dDu,qM,b8,jGA,sGc,dl,wfL,HV,yH,wl,K6f,eO,iGO,Kx,W67,tq7,rAu,uhf,i8,DP4,vVL,hfo,$Pc,Gbc,xPL,f6f,Qx,Cu8,oVL,Fcu,zfc,UPA,Lc7,ZqI,EVu,PK,kb7,SLO,JQ4,pR7,l6o,NT7,YLO,BT7,cQf,XRI,AQc,qL8,bq2,UW,TTc,Rfo,LL,Zo,EW,iq7,Wcc,
tLq,rQ2,uTc,Diq,vU4,GH7,VBO,Pcc,xii,MB8,J2,lO,NH,Yz,Xk,A2,qH,Ccf,da,Fgu,jJ,ztq,Ui8,sW,Lg8,ZZc,EUI,YI4,cVc,di2,HZf,mi4,Bx2,yV7,nU8,$KL,WgL,xK4,rV8,PP4,MQ8,nL,CP8,KL,FNq,zSL,LNo,Zbf,EtO,gtO,iO,S_A,JD2,p88,lpL,N4f,Y_c,B42,kzc,ADo,q_L,bbA,t2,yD7,w8o,HbI,ntL,Ob4,T4L,RSo,KN7,v5r,a2L,Q34,V3O,VR,Fri,CLr,o58,E52,g5f,khI,SA4,Jdu,pXc,l2O,Lp,dLc,s37,qA7,Ad2,j3c,YA4,H_2,t3o,eU2,n5O,O_c,Vbf,xqc,Gf2,zVr,Qgr,N1u,Fsf,wXi,Wrf,P78,mLL,cdq,B1L,XXf,b_o,$q2,bD,Bp7,X4A,AnO,qnc,bjc,neI,WsI,tbA,O5,ueo,h6q,GNf,QiL,Pj2,xOc,
fjf,o2O,CjL,F2A,QX,z68,UOc,ZSu,L2i,GR,Jmq,Syc,kNO,Yyr,pOr,Bv7,Nv4,cmu,XOu,dOO,qyO,bSI,sic,ymr,wOA,OS8,K22,Tvq,iSc,f9,toA,Dhq,rmi,vYO,QQc,Gkr,xhu,fS4,UR,L9,zmc,UhO,ZO,ER,LPA,IM,gk,ZKA,kX,EY4,Sg,ISL,gYA,p9,kk8,Sk7,JL8,p7L,lSc,YkI,Noo,cLr,qkc,ALo,bKA,dhA,Bo7,jQu,HKc,mh8,X7I,yL4,w7c,ca,emI,OK7,nYo,KP8,Toc,iK2,RmO,WPo,AH,rL8,uCI,t6o,v72,hcu,aK2,VIO,MIq,zci,E7o,qb,kw8,S1i,bM,J8O,mK,Ha,c8I,jg,OR,XDr,A82,baI,d6c,sp2,Haq,y88,wDr,ecO,Kvq,tI7,iac,Oa7,r87,utL,iM,Wvc,DA4,rk,vaL,hCq,aNA,$A7,P27,QHf,VDi,C24,oa7,
ZWI,LTu,gaL,Nsu,YOq,cyA,AyA,qOr,dAf,jHc,sHf,HW7,yyq,wuq,OW7,iWI,WTf,KTr,ryo,DEq,u_7,tDi,vyi,aBI,$E7,QII,Gr4,VZc,Mc,fm,Fn,Ui,fB2,Cnr,FFr,LFr,Lm,ZF,ZDi,Ei,gy4,krA,SPi,gd,YPi,AJc,bDo,dEL,jIO,sIi,mE8,wZo,SC,eDu,KFc,JB,T98,WFI,tZi,rJu,iDI,$Cc,Vv7,Qvc,PE7,f5q,oNr,zwi,ENq,ZXf,SG4,BT,JFA,p9q,cT,l52,Xn,NIO,YGL,BIO,X92,cFA,AFA,qG2,bX7,dCo,ew7,OXL,TIf,KD4,HXL,svL,iXI,tvc,hgI,alq,G0O,CYc,FJ8,dd,zgL,LJi,ZyI,IlO,Je4,Nti,ceu,Xw2,Ae7,qjf,mwc,byA,eg4,n98,OyA,Ttc,m3,Rg2,WJI,tnc,reI,u77,D_8,vsO,hhu,$_i,Q5c,eC,Gco,Vy2,
x_o,Oi,Prc,f$c,zhc,Rr,U_q,LG4,Z6O,gsI,kcf,EsA,JTq,YZ4,BmO,cTL,DD,XNc,d_i,j5r,Qp,H67,s52,m_c,ehr,nsu,O6q,i6f,rTO,tyL,WGc,u2A,vFi,hvc,V5f,aVi,PN2,M5r,x9O,U9I,EFu,gF4,SBL,N3o,bgr,yp,jRA,yxf,ev7,mn,i1,ig7,um7,rxL,vMI,h_q,$Bc,aQI,QdI,GX2,WU,jyu,WBO,DBr,t5r,TU,xBf,M88,fQf,oMf,F4u,z_7,UBu,L4A,V_,ZrI,EMi,IQ4,gMq,kXA,fG,Sc7,lQf,Yc4,BPI,jdq,mBu,HrO,ylc,e_8,nM8,kZ,K4c,TP2,R_i,ir2,W42,t8f,uiO,vG2,aE8,$8q,Mho,Plu,fEI,FjO,z$I,Bf,U8A,Lj2,ZHu,gGc,Se4,kF8,piA,NeL,qD,BeI,cp7,Yec,Xic,ApO,bHc,jAI,d8c,sA4,qer,m87,HHu,
ypu,wiL,e$q,nGI,OH8,Kjr,Teu,WjA,iHc,thi,uq7,rp7,b0,Dyc,aLI,Vk8,vmc,Mki,fLi,Ce2,omi,Uyu,SHr,JUi,lLf,Nh4,RG,XCI,dyr,myi,i0,eF2,Hh8,yUu,wCc,nmf,iho,u0,Wqq,tk4,rUq,Dvc,vk8,h7L,azo,QYi,GAI,z72,fzo,okL,LZu,UvL,Ze8,Ek7,rkO,Dto,hAr,$ti,QSq,Vuu,LpO,Iwq,kPc,Sai,JEu,p2O,lwA,Ya2,B2O,AEr,qa2,bOo,dt4,jSA,sS8,mtq,HOc,eAA,T2c,oX,FT,zb,RAI,iO4,Z6,tu4,GJr,CXf,Mfr,Y02,BGi,c9i,uco,Q18,heo,A9I,q0u,bCr,dmf,PX8,j1c,mm2,y97,ni7,OCi,cR,qP,bu,ugi,r9I,aef,$4r,o3u,zbc,LYL,Znr,g32,Sti,knc,leI,Ytc,d4f,qtu,cqq,bnL,XMc,j8L,yq4,
DW,WYf,Tu4,rqA,uOL,vui,hzO,hV,akc,GGq,V12,PFf,M1u,xk7,QT,Ukc,fZ,ZE4,Eu7,oy,IkL,guo,kGf,SpO,JjL,p$2,lkL,Nzc,Yp8,Bzc,cjq,X$L,Aji,qpo,bE4,FS,dk7,j_2,s_L,mkf,HEO,yjO,w$u,ez8,nu4,OEc,KEf,Tzc,UI,iEo,t12,uE8,hRO,Q6I,GIo,Vl2,xN7,fhA,Cvq,obq,JV,ZUc,UNf,EbL,IhI,gb2,J6c,pjA,lhc,YC8,jB,c6A,bc,A6O,qCc,sI,bU2,dNf,j6q,s6L,Hr,wji,nbq,iU7,RRc,tl4,r68,ic,uNu,D0c,h9L,$0u,Qb8,VKc,PRu,aRI,x0o,F82,ZIA,Evo,Wr,IR4,gv8,lRo,kji,Jfu,p_c,AfI,YDA,qDI,d0u,sbc,m0i,HII,yf7,w_i,e97,OIO,K88,TS8,R97,iI7,tKi,uRc,hYA,GZq,xzc,fdu,F0i,
$t,zYc,Uzq,L0c,ZN2,Exc,gx7,kZO,STc,J0o,pHc,ldu,NN8,YT2,BNu,c0u,XH8,qTI,A0O,jjq,mzu,Vs,HNA,eYr,wHo,K0c,TNo,RY8,W04,u$c,h5O,vQo,r0L,QCr,$5c,Mco,Gtr,Cb,Pwq,LoI,oQL,Foq,z5L,U5A,Z28,IIu,EQi,oq,Fp,NXf,kt2,lIu,pSI,SrI,Jg8,cgf,Ago,b2c,qr8,d58,H2c,m5O,wS2,nQ8,O27,e5o,Ko2,R5O,TXi,Wof,uPc,Iq,DoL,vD4,$o7,xoI,z2i,kt,LC8,gDq,pe2,JvA,kpr,Sh2,NK,BV2,l_A,NV4,cvf,AvO,XeO,dou,jDL,moo,Hdq,yvI,we2,e2q,Od4,KC4,ys,R28,id7,uA7,DJ8,Kb,vrI,aTL,C3c,tD,V4r,fT7,P34,xJu,UJr,z17,IT7,Lzr,gro,kEc,D2,Jo4,pgo,lTO,Suq,a3,Nnc,vX,Xgf,
mJu,Hko,yo7,wgi,e1o,nro,R1A,Kzo,Tnr,Ok2,Wzu,uJc,hIq,aG4,Q0I,P5q,G72,VVf,xac,fGI,C5c,oBc,FQu,zIr,Uaf,ZYo,f_,IG8,SoI,k7c,pEo,Juq,lG8,Nbu,Bbf,cuq,yuc,ma2,nBo,OYO,tVi,rur,u07,D34,v4q,hN7,Qku,Goi,VTo,x3u,MTq,fiq,p_,zNu,Flq,o4I,CdO,LlL,Iiu,Zvf,koc,SfO,Jzo,pxr,liA,N8A,Yfc,B8r,bvO,czq,Xx7,AzI,d3O,jkf,sk8,qfI,BX,yzu,eN7,wxA,XZ,OvO,Klc,T8f,n47,RNu,iv4,Wl7,tT8,rz8,Duf,vg8,hTI,a12,G5f,QF8,f1I,$uf,Ad,CBI,VGf,MGI,zTO,Uuf,L5I,ZBO,Egu,I1c,gg4,k5A,Sli,JSc,pBq,l1L,Yl8,BC4,cSL,ASq,bBq,jFi,muo,ngf,wBq,eTf,ySf,HB8,OBi,
K52,R3,iBI,tG7,rSf,u57,DjL,v8A,h0A,VXL,$jA,arq,Qf4,ZAf,Uj8,G8f,z0r,pkf,lrL,Ny4,YEO,Byc,As2,bAo,jf8,mj7,HA7,ysq,OAO,n8L,Kfi,R0r,Fe,tX2,rs8,ubc,Dni,Un,Lj,anr,$nu,GDu,xnO,zO8,EKo,Ino,gK7,kDr,Sxr,JWr,ln7,Yxc,N7I,B7u,XIA,AWf,qxf,b57,dnI,jE7,Sb,sEA,O57,K12,wI4,yWi,nKr,eOc,tEq,rWI,u3q,Deu,vS7,hqf,Q$L,$e2,aPc,oSf,FWA,zq8,ZMO,ESO,UeO,LWL,NHo,BHf,Xno,q3A,deq,s$L,wnL,eq4,nSc,TH4,KW2,OMO,RqL,iMq,tSL,ra2,ulo,DWu,vW4,hWu,$W4,Qxi,G$O,VP2,PGq,xWr,CGu,oWL,zW4,LwA,UWf,ZtA,jb,EWA,I8O,gW7,k$u,l87,py7,Ng8,Ysi,Bgc,cCI,
qs2,dWi,jxI,sxc,mWO,Ht2,yCf,wyf,eW8,nWL,Otr,Tgc,Kw8,RWc,itq,Ww4,tP2,rCI,uDq,DUc,vj8,On,aA8,$Ui,Ggi,VNA,Paq,xUO,MNr,fA7,oj8,Fhr,UUu,Z84,IAf,J_L,kgu,gj4,SUo,pG4,lA7,N$8,c_A,XG2,A_c,qUq,dUc,jwO,swr,H8c,mU8,y_c,wG4,eLf,KhL,T$u,RL7,i82,WhA,tNO,DRA,v04,$2,Viu,Pof,Mir,o0c,Coc,Fui,zpc,QV,VV,Lu4,ZF7,MO,fS,kxf,E0f,Itr,p3i,ltu,NF2,Yv7,Aic,bFO,dRO,jOc,sOi,mRc,yi7,w3r,epA,n0q,OFo,KuO,TFc,Fv,Rp2,iF2,Uy,WuA,tiI,riu,uMA,D2A,vni,Ey,Ii,h8i,aaq,gv,$2c,QLc,GWu,VFI,x28,MFq,CZf,Le2,U2r,z8L,ZPO,EnL,pbi,kW4,Swf,gnA,JR4,
So,Ywr,Bic,cRu,Xbf,ARi,bPI,jLO,HPu,nn4,wbI,Jm,yR4,iPI,tFq,pS,rRc,ujq,D$c,h4O,agL,$$L,QVf,VYq,Pi4,x$A,fgA,Ciu,Fx4,z48,Ig4,Ewu,kOr,SKo,JIu,cIO,XYf,AIi,qK8,jV4,HoI,Am,qO,yIc,wYA,e48,nwc,Ooo,TQi,R4r,ioi,Wxf,rI4,usI,DGI,bj,v6I,hQq,QKq,Gl7,dv,jo,xGO,Vpo,Mpo,o68,fmq,FA8,UGo,yV,LAA,Z$c,g62,S62,wv,ph7,lm2,NU2,Y6L,BUc,ctA,XhI,Ati,jK4,sKc,ytf,mGA,H$f,wh2,KAr,eQO,O$r,TU2,RQ2,i$I,rt2,urO,Dgo,hX8,aCO,xgA,Pgq,zXf,Zsc,tm,EOf,HJA,ICf,gOo,Sqi,lC2,NwO,bs7,dg8,jzA,szI,mgf,Hsf,wJq,eXA,Osc,Twr,nOi,KUo,isA,RXc,txO,DsO,
rM4,vcI,hn2,asA,$so,Qnf,Gs2,PQc,V7I,CQo,zn7,oc2,UsI,Lyc,Zwu,Gk,Eci,Isc,P7,ksr,gc7,S7O,JYu,ls7,NL7,BLA,cYr,Xci,AYq,dsO,sno,yY4,Hwu,wco,enc,Kyc,hG8,WyO,$Qq,Qh8,Vwi,Pm2,Cmr,ol8,FL2,zGA,UQr,LLL,Elc,Iy8,glf,Sdc,kvi,lyL,NZc,Yd8,BZf,cKi,XLI,AKc,bcI,shA,mQI,Hc7,yKo,wL2,eGq,KLA,Ocu,WLc,twi,rKc,uuu,DXL,hou,vPO,$X4,xXo,oPO,CCi,FXL,zo2,UXA,ZQ7,YY,I7L,AL,k1c,J4c,pPO,A4q,bQr,s7c,HQ8,y4L,eo4,nP2,OQo,T5O,iQL,WXf,r4L,vTA,Dl2,uFL,H7,au2,hKc,$lO,QTf,G_c,Vm7,PhO,xli,Mmo,Ch4,oTO,F7r,zKu,Ulo,L7c,Zlc,ETO,Iuo,k_c,SSf,Xzf,
A7q,qS8,dlA,jTI,sTu,y7c,W7,TO8,RK8,ilc,W72,tmi,tL,ro,au,up,vD,Q2c,GVr,xTc,fHu,Mrr,ap,C$8,ohu,Fai;DrA=function(){var D,v;return typeof CSS!=="undefined"&&((v=(D=CSS).supports)==null?void 0:v.call(D,"selector(:has(*))"))};
vLI=function(D){return D.visibility!=="hidden"&&D.display!=="none"};
a4O=function(D){if(DrA()||D.tagName!=="DETAILS"?!D.matches(hic):D.querySelector("summary")!==null)return-1;D=D.getAttribute("tabindex")||"0";return Number(D)};
$ri=function(D){return D.some(function(v){return a4O(v)>0})};
Qoi=function(D){if(D.textContent||D.ariaLabel)return!0;if(D instanceof HTMLInputElement){if(!D.labels)return!1;D=_.P(D.labels);for(var v=D.next();!v.done;v=D.next())if(v.value.textContent)return!0}return!1};
GuA=function(D){return D.sort(function(v,h){return a4O(h)-a4O(v)})};
_.V2q=function(D){D=Array.from(D.querySelectorAll(hic)).filter(function(v){return(vLI(v.style)?vLI(window.getComputedStyle(v)):!1)&&Qoi(v)});
return $ri(D)?GuA(D):D};
_.hc=function(D,v){if(Error.captureStackTrace)Error.captureStackTrace(this,_.hc);else{var h=Error().stack;h&&(this.stack=h)}D&&(this.message=String(D));v!==void 0&&(this.cause=v)};
ao=function(){throw Error("E");};
Pqf=function(D,v){v=String.fromCharCode.apply(null,v);return D==null?v:D+v};
Cqf=function(D){var v=!1;v=v===void 0?!1:v;if(xr7){if(v&&(M2I?!D.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(D)))throw Error("F");D=(f4L||(f4L=new TextEncoder)).encode(D)}else{for(var h=0,a=new Uint8Array(3*D.length),Q=0;Q<D.length;Q++){var G=D.charCodeAt(Q);if(G<128)a[h++]=G;else{if(G<2048)a[h++]=G>>6|192;else{if(G>=55296&&G<=57343){if(G<=56319&&Q<D.length){var x=D.charCodeAt(++Q);if(x>=56320&&x<=57343){G=(G-55296)*1024+x-56320+65536;a[h++]=G>>18|
240;a[h++]=G>>12&63|128;a[h++]=G>>6&63|128;a[h++]=G&63|128;continue}else Q--}if(v)throw Error("F");G=65533}a[h++]=G>>12|224;a[h++]=G>>6&63|128}a[h++]=G&63|128}}D=h===a.length?a:a.subarray(0,h)}return D};
QO=function(D){_.$L.setTimeout(function(){throw D;},0)};
_.Gu=function(D,v){return D.lastIndexOf(v,0)==0};
PA=function(D,v){var h=D.length-v.length;return h>=0&&D.indexOf(v,h)==h};
_.C7=function(D){return/^[\s\xa0]*$/.test(D)};
_.oo=function(D,v){return D.indexOf(v)!=-1};
_.Ff=function(D,v){return _.oo(D.toLowerCase(),v.toLowerCase())};
_.U8=function(D,v){var h=0;D=zu(String(D)).split(".");v=zu(String(v)).split(".");for(var a=Math.max(D.length,v.length),Q=0;h==0&&Q<a;Q++){var G=D[Q]||"",x=v[Q]||"";do{G=/(\d*)(\D*)(.*)/.exec(G)||["","","",""];x=/(\d*)(\D*)(.*)/.exec(x)||["","","",""];if(G[0].length==0&&x[0].length==0)break;h=oLo(G[1].length==0?0:parseInt(G[1],10),x[1].length==0?0:parseInt(x[1],10))||oLo(G[2].length==0,x[2].length==0)||oLo(G[2],x[2]);G=G[3];x=x[3]}while(h==0)}return h};
oLo=function(D,v){return D<v?-1:D>v?1:0};
_.E8=function(){var D=_.$L.navigator;return D&&(D=D.userAgent)?D:""};
FI4=function(D){if(!Io||!Jc)return!1;for(var v=0;v<Jc.brands.length;v++){var h=Jc.brands[v].brand;if(h&&_.oo(h,D))return!0}return!1};
lq=function(D){return _.oo(_.E8(),D)};
Nr=function(){return Io?!!Jc&&Jc.brands.length>0:!1};
zio=function(){return Nr()?!1:lq("Opera")};
Ur8=function(){return Nr()?!1:lq("Trident")||lq("MSIE")};
LIo=function(){return Nr()?FI4("Microsoft Edge"):lq("Edg/")};
BA=function(){return lq("Firefox")||lq("FxiOS")};
_.Z72=function(){return lq("Safari")&&!(_.cA()||(Nr()?0:lq("Coast"))||zio()||(Nr()?0:lq("Edge"))||LIo()||(Nr()?FI4("Opera"):lq("OPR"))||BA()||lq("Silk")||lq("Android"))};
_.cA=function(){return Nr()?FI4("Chromium"):(lq("Chrome")||lq("CriOS"))&&!(Nr()?0:lq("Edge"))||lq("Silk")};
_.ELf=function(){return lq("Android")&&!(_.cA()||BA()||zio()||lq("Silk"))};
I4I=function(D){var v={};D.forEach(function(h){v[h[0]]=h[1]});
return function(h){return v[h.find(function(a){return a in v})]||""}};
gLA=function(D){var v=_.E8();if(D==="Internet Explorer"){if(Ur8())if((D=/rv: *([\d\.]*)/.exec(v))&&D[1])v=D[1];else{D="";var h=/MSIE +([\d\.]+)/.exec(v);if(h&&h[1])if(v=/Trident\/(\d.\d)/.exec(v),h[1]=="7.0")if(v&&v[1])switch(v[1]){case "4.0":D="8.0";break;case "5.0":D="9.0";break;case "6.0":D="10.0";break;case "7.0":D="11.0"}else D="7.0";else D=h[1];v=D}else v="";return v}var a=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");h=[];for(var Q;Q=a.exec(v);)h.push([Q[1],Q[2],Q[3]||void 0]);
v=I4I(h);switch(D){case "Opera":if(zio())return v(["Version","Opera"]);if(Nr()?FI4("Opera"):lq("OPR"))return v(["OPR"]);break;case "Microsoft Edge":if(Nr()?0:lq("Edge"))return v(["Edge"]);if(LIo())return v(["Edg"]);break;case "Chromium":if(_.cA())return v(["Chrome","CriOS","HeadlessChrome"])}return D==="Firefox"&&BA()||D==="Safari"&&_.Z72()||D==="Android Browser"&&_.ELf()||D==="Silk"&&lq("Silk")?(v=h[2])&&v[1]||"":""};
_.kuq=function(D){if(Nr()&&D!=="Silk"){var v=Jc.brands.find(function(h){return h.brand===D});
if(!v||!v.version)return NaN;v=v.version.split(".")}else{v=gLA(D);if(v==="")return NaN;v=v.split(".")}return v.length===0?NaN:Number(v[0])};
Ac=function(){return Io?!!Jc&&!!Jc.platform:!1};
_.S8r=function(){return Ac()?Jc.platform==="Android":lq("Android")};
Jcu=function(){return lq("iPhone")&&!lq("iPod")&&!lq("iPad")};
_.qr=function(){return Jcu()||lq("iPad")||lq("iPod")};
_.pA7=function(){return Ac()?Jc.platform==="macOS":lq("Macintosh")};
_.l4O=function(){return Ac()?Jc.platform==="Windows":lq("Windows")};
_.Nci=function(){return Ac()?Jc.platform==="Chrome OS":lq("CrOS")};
_.dc=function(D){return D[D.length-1]};
_.j2=function(D,v,h){v=_.Y8L(D,v,h);return v<0?null:typeof D==="string"?D.charAt(v):D[v]};
_.Y8L=function(D,v,h){for(var a=D.length,Q=typeof D==="string"?D.split(""):D,G=0;G<a;G++)if(G in Q&&v.call(h,Q[G],G,D))return G;return-1};
Bc4=function(D){for(var v=_.mI,h=typeof D==="string"?D.split(""):D,a=D.length-1;a>=0;a--)if(a in h&&v.call(void 0,h[a],a,D))return a;return-1};
_.wc=function(D,v){return _.yO(D,v)>=0};
_.ccA=function(D,v){_.wc(D,v)||D.push(v)};
_.e2=function(D,v){v=_.yO(D,v);var h;(h=v>=0)&&_.XAi(D,v);return h};
_.XAi=function(D,v){Array.prototype.splice.call(D,v,1)};
_.n7=function(D){var v=D.length;if(v>0){for(var h=Array(v),a=0;a<v;a++)h[a]=D[a];return h}return[]};
_.K7=function(D,v){for(var h=1;h<arguments.length;h++){var a=arguments[h];if(_.O8(a)){var Q=D.length||0,G=a.length||0;D.length=Q+G;for(var x=0;x<G;x++)D[Q+x]=a[x]}else D.push(a)}};
_.q8o=function(D,v,h,a){Array.prototype.splice.apply(D,AcA(arguments,1))};
AcA=function(D,v,h){return arguments.length<=2?Array.prototype.slice.call(D,v):Array.prototype.slice.call(D,v,h)};
b7r=function(D,v){v=v||D;for(var h=0,a=0,Q={};a<D.length;){var G=D[a++],x=_.Ro(G)?"o"+_.iq(G):(typeof G).charAt(0)+G;Object.prototype.hasOwnProperty.call(Q,x)||(Q[x]=!0,v[h++]=G)}v.length=h};
_.joc=function(D,v,h){h=h||_.dri;for(var a=0,Q=D.length,G;a<Q;){var x=a+(Q-a>>>1);var f=h(v,D[x]);f>0?a=x+1:(Q=x,G=!f)}return G?a:-a-1};
_.WA=function(D,v,h){if(!_.O8(D)||!_.O8(v)||D.length!=v.length)return!1;var a=D.length;h=h||sou;for(var Q=0;Q<a;Q++)if(!h(D[Q],v[Q]))return!1;return!0};
_.dri=function(D,v){return D>v?1:D<v?-1:0};
sou=function(D,v){return D===v};
mrO=function(D,v,h){v=Array.prototype.splice.call(D,v,1);Array.prototype.splice.call(D,h,0,v[0])};
ycL=function(D){return H7O[D]||""};
nLc=function(D){if(!wAr)return _.DJ(D);D=ei7.test(D)?D.replace(ei7,ycL):D;D=atob(D);for(var v=new Uint8Array(D.length),h=0;h<D.length;h++)v[h]=D.charCodeAt(h);return v};
O74=function(D,v){D.__closure__error__context__984382||(D.__closure__error__context__984382={});D.__closure__error__context__984382.severity=v};
_.hb=function(D){D=Error(D);O74(D,"warning");return D};
Tcc=function(D,v){if(D!=null){var h;var a=(h=KI4)!=null?h:KI4={};h=a[D]||0;h>=v||(a[D]=h+1,D=Error(),O74(D,"incident"),QO(D))}};
Q$=function(D,v,h){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(h===void 0?0:h)&&Symbol.for&&D?Symbol.for(D):D!=null?Symbol(D):Symbol():v};
WIi=function(D,v){Gy||_.V$ in D||Ri2(D,i7o);D[_.V$]|=v};
xp=function(D,v){Gy||_.V$ in D||Ri2(D,i7o);D[_.V$]=v};
t2f=function(D){if(4&D)return 512&D?512:1024&D?1024:0};
M1=function(D){WIi(D,34);return D};
rcL=function(D){WIi(D,32);return D};
f4=function(){return typeof BigInt==="function"};
UF=function(D,v){return v===void 0?D.copyOnWrite!==C4&&!!(2&(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.V$]|0)):!!(2&v)&&D.copyOnWrite!==C4};
_.N1=function(D,v){if(D!=null)if(typeof D==="string")D=D?new St(D,p4):_.ls();else if(D.constructor!==St)if(ufi&&D!=null&&D instanceof Uint8Array)D=D.length?new St(new Uint8Array(D),p4):_.ls();else{if(!v)throw Error();D=void 0}return D};
D17=function(D,v){if(typeof v!=="number"||v<0||v>=D.length)throw Error();};
vpO=function(D,v,h){var a=v&128?0:-1,Q=D.length,G;if(G=!!Q)G=D[Q-1],G=G!=null&&typeof G==="object"&&G.constructor===Object;var x=Q+(G?-1:0);for(v=v&128?1:0;v<x;v++)h(v-a,D[v]);if(G){D=D[Q-1];for(var f in D)!isNaN(f)&&h(+f,D[f])}};
cm=function(D){return D&128?Bm:void 0};
X9=function(D){D.isGuard_doNotManuallySetPrettyPlease=!0;return D};
aJ8=function(){var D=hMr;return X9(function(v){for(var h in D)if(v===D[h]&&!/^[0-9]+$/.test(h))return!0;return!1})};
_.Ab=function(D){var v=D;if($1o(v)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(v))throw Error(String(v));}else if(Q4c(v)&&!Number.isSafeInteger(v))throw Error(String(v));return Gy7?BigInt(D):D=Vtr(D)?D?"1":"0":$1o(D)?D.trim()||"0":String(D)};
Psi=function(D,v){if(D.length>v.length)return!1;if(D.length<v.length||D===v)return!0;for(var h=0;h<D.length;h++){var a=D[h],Q=v[h];if(a>Q)return!1;if(a<Q)return!0}};
x12=function(D){var v=D>>>0;bs=v;mR=(D-v)/4294967296>>>0};
y$=function(D){if(D<0){x12(-D);var v=_.P(Mt4(bs,mR));D=v.next().value;v=v.next().value;bs=D>>>0;mR=v>>>0}else x12(D)};
Cso=function(D){var v=fJ2||(fJ2=new DataView(new ArrayBuffer(8)));v.setFloat32(0,+D,!0);mR=0;bs=v.getUint32(0,!0)};
op2=function(D,v){var h=v*4294967296+(D>>>0);return Number.isSafeInteger(h)?h:_.wJ(D,v)};
et=function(D,v){var h=v&2147483648;h&&(D=~D+1>>>0,v=~v>>>0,D==0&&(v=v+1>>>0));D=op2(D,v);return typeof D==="number"?h?-D:D:h?"-"+D:D};
FRr=function(D){var v=bs,h=mR,a=h>>31;h=(h<<1|v>>>31)^a;D(v<<1^a,h)};
zML=function(D,v){var h=-(D&1);D=(D>>>1|v<<31)^h;return et(D,v>>>1^h)};
_.wJ=function(D,v){v>>>=0;D>>>=0;if(v<=2097151)var h=""+(4294967296*v+D);else f4()?h=""+(BigInt(v)<<BigInt(32)|BigInt(D)):(h=(D>>>24|v<<8)&16777215,v=v>>16&65535,D=(D&16777215)+h*6777216+v*6710656,h+=v*8147497,v*=2,D>=1E7&&(h+=D/1E7>>>0,D%=1E7),h>=1E7&&(v+=h/1E7>>>0,h%=1E7),h=v+U1r(h)+U1r(D));return h};
U1r=function(D){D=String(D);return"0000000".slice(D.length)+D};
_.LRL=function(D,v){v&2147483648?f4()?D=""+(BigInt(v|0)<<BigInt(32)|BigInt(D>>>0)):(v=_.P(Mt4(D,v)),D=v.next().value,v=v.next().value,D="-"+_.wJ(D,v)):D=_.wJ(D,v);return D};
n4=function(D){if(D.length<16)y$(Number(D));else if(f4())D=BigInt(D),bs=Number(D&BigInt(4294967295))>>>0,mR=Number(D>>BigInt(32)&BigInt(4294967295));else{var v=+(D[0]==="-");mR=bs=0;for(var h=D.length,a=v,Q=(h-v)%6+v;Q<=h;a=Q,Q+=6)a=Number(D.slice(a,Q)),mR*=1E6,bs=bs*1E6+a,bs>=4294967296&&(mR+=Math.trunc(bs/4294967296),mR>>>=0,bs>>>=0);v&&(v=_.P(Mt4(bs,mR)),D=v.next().value,v=v.next().value,bs=D,mR=v)}};
Mt4=function(D,v){v=~v;D?D=~D+1:v+=1;return[D,v]};
OF=function(D){return Array.prototype.slice.call(D)};
_.K4=function(D,v){throw Error(v===void 0?"unexpected value "+D+"!":v);};
_.Ty=function(D){if(D!=null&&typeof D!=="number")throw Error("L`"+typeof D+"`"+D);return D};
_.is=function(D){if(D==null||typeof D==="number")return D;if(D==="NaN"||D==="Infinity"||D==="-Infinity")return Number(D)};
Z4q=function(D){if(D!=null&&typeof D!=="boolean")throw Error("M`"+_.us(D)+"`"+D);return D};
_.Epi=function(D){if(D==null||typeof D==="boolean")return D;if(typeof D==="number")return!!D};
_.vs=function(D){switch(typeof D){case "bigint":return!0;case "number":return Db(D);case "string":return IJ2.test(D);default:return!1}};
_.hr=function(D){if(!Db(D))throw _.hb("enum");return D|0};
_.$C=function(D){return D==null?D:Db(D)?D|0:void 0};
gp8=function(D){if(typeof D!=="number")throw _.hb("int32");if(!Db(D))throw _.hb("int32");return D|0};
_.QK=function(D){return D==null?D:gp8(D)};
_.Gd=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return Db(D)?D|0:void 0};
_.ky2=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return Db(D)?D>>>0:void 0};
lJL=function(D){var v=0;v=v===void 0?0:v;if(!_.vs(D))throw _.hb("int64");var h=typeof D;switch(v){case 512:switch(h){case "string":return Ps(D);case "bigint":return String(MI(64,D));default:return SF4(D)}case 1024:switch(h){case "string":return Jbq(D);case "bigint":return _.Ab(MI(64,D));default:return pmf(D)}case 0:switch(h){case "string":return Ps(D);case "bigint":return _.Ab(MI(64,D));default:return f3(D)}default:return _.K4(v,"Unknown format requested type for int64")}};
oU=function(D){return D==null?D:lJL(D)};
NJc=function(D){var v=D.length;if(D[0]==="-"?v<20||v===20&&D<="-9223372036854775808":v<19||v===19&&D<="9223372036854775807")return D;n4(D);return _.LRL(bs,mR)};
YF2=function(D){if(D[0]==="-")var v=!1;else v=D.length,v=v<20?!0:v===20&&D<="18446744073709551615";if(v)return D;n4(D);return _.wJ(bs,mR)};
f3=function(D){D=FX(D);zd(D)||(y$(D),D=et(bs,mR));return D};
_.BJ7=function(D){D=FX(D);D>=0&&zd(D)||(y$(D),D=op2(bs,mR));return D};
SF4=function(D){D=FX(D);zd(D)?D=String(D):(y$(D),D=_.LRL(bs,mR));return D};
_.cbA=function(D){D=FX(D);D>=0&&zd(D)?D=String(D):(y$(D),D=_.wJ(bs,mR));return D};
Ps=function(D){var v=FX(Number(D));if(zd(v))return String(v);v=D.indexOf(".");v!==-1&&(D=D.substring(0,v));return NJc(D)};
Jbq=function(D){var v=FX(Number(D));if(zd(v))return _.Ab(v);v=D.indexOf(".");v!==-1&&(D=D.substring(0,v));return f4()?_.Ab(MI(64,BigInt(D))):_.Ab(NJc(D))};
pmf=function(D){return zd(D)?_.Ab(f3(D)):_.Ab(SF4(D))};
_.Xm7=function(D){return zd(D)?_.Ab(_.BJ7(D)):_.Ab(_.cbA(D))};
_.AbI=function(D){var v=FX(Number(D));if(zd(v)&&v>=0)return String(v);v=D.indexOf(".");v!==-1&&(D=D.substring(0,v));return YF2(D)};
_.qFr=function(D){var v=FX(Number(D));if(zd(v)&&v>=0)return _.Ab(v);v=D.indexOf(".");v!==-1&&(D=D.substring(0,v));return f4()?_.Ab((0,_.L3)(64,BigInt(D))):_.Ab(YF2(D))};
_.d1L=function(D){if(D==null)return D;if(typeof D==="bigint")return b47(D)?D=Number(D):(D=MI(64,D),D=b47(D)?Number(D):String(D)),D;if(_.vs(D))return typeof D==="number"?f3(D):Ps(D)};
j4A=function(D,v){v=v===void 0?!1:v;var h=typeof D;if(D==null)return D;if(h==="bigint")return String(MI(64,D));if(_.vs(D))return h==="string"?Ps(D):v?SF4(D):f3(D)};
_.s47=function(D){var v=typeof D;if(D==null)return D;if(v==="bigint")return _.Ab(MI(64,D));if(_.vs(D))return v==="string"?Jbq(D):pmf(D)};
m12=function(D){if(D==null)return D;var v=typeof D;if(v==="bigint")return String(MI(64,D));if(_.vs(D)){if(v==="string")return Ps(D);if(v==="number")return f3(D)}};
H47=function(D){if(D==null)return D;var v=typeof D;if(v==="bigint")return String((0,_.L3)(64,D));if(_.vs(D)){if(v==="string")return _.AbI(D);if(v==="number")return _.BJ7(D)}};
_.IU=function(D){if(typeof D!=="string")throw Error();return D};
Jr=function(D){if(D!=null&&typeof D!=="string")throw Error();return D};
_.p3=function(D){return D==null||typeof D==="string"?D:void 0};
eMc=function(D,v,h,a){if(D!=null&&D[lS]===Bs)return D;if(!Array.isArray(D))return h?a&2?v[yb8]||(v[yb8]=wmc(v)):new v:void 0;h=D[_.V$]|0;a=h|a&32|a&2;a!==h&&xp(D,a);return new v(D)};
wmc=function(D){D=new D;M1(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
npL=function(D,v,h){D=v?gp8(D):_.Gd(D);return D==null?h?0:void 0:D|0};
O4o=function(D){return D};
KRo=function(D){return D};
RMu=function(D,v,h,a,Q,G){D=eMc(D,a,h,G);Q&&(D=TJu(D));return D};
i42=function(D){return[D,this.get(D)]};
rbr=function(){return WRq||(WRq=new XX(M1([]),void 0,void 0,void 0,tt8))};
u92=function(D){var v=Ar(qI);return v?D[v]:void 0};
hZc=function(D,v){var h=h===void 0?!1:h;if(Ar(DI4)&&Ar(qI)&&void 0===DI4){var a=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=a[qI];if(!Q)return;if(Q=Q.reviveUnknownFields)try{Q(a,v,vCI);return}catch(G){QO(G)}}h&&(D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(h=Ar(qI))&&h in D&&(D=D[h])&&delete D[v])};
$Ii=function(D,v){var h=Ar(qI),a;Gy&&h&&((a=D[h])==null?void 0:a[v])!=null&&Tcc(abI,3)};
GdA=function(D,v){v<100||Tcc(QUA,1)};
fb8=function(D,v,h,a){var Q=a!==void 0;a=!!a;var G=Ar(qI),x;!Q&&Gy&&G&&(x=D[G])&&V$O(x,GdA);G=[];var f=D.length;x=4294967295;var C=!1,U=!!(v&64),L=U?v&128?0:-1:void 0;if(!(v&1)){var Z=f&&D[f-1];Z!=null&&typeof Z==="object"&&Z.constructor===Object?(f--,x=f):Z=void 0;if(U&&!(v&128)&&!Q){C=!0;var E;x=((E=PSL)!=null?E:O4o)(x-L,L,D,Z,void 0)+L}}v=void 0;for(E=0;E<f;E++){var I=D[E];if(I!=null&&(I=h(I,a))!=null)if(U&&E>=x){var S=E-L,B=void 0;((B=v)!=null?B:v={})[S]=I}else G[E]=I}if(Z)for(var A in Z)f=Z[A],
f!=null&&(f=h(f,a))!=null&&(E=+A,I=void 0,U&&!Number.isNaN(E)&&(I=E+L)<x?G[I]=f:(E=void 0,((E=v)!=null?E:v={})[A]=f));v&&(C?G.push(v):G[x]=v);Q&&Ar(qI)&&(D=u92(D))&&D instanceof xIA&&(G[qI]=M$A(D));return G};
oCL=function(D){D[0]=CSO(D[0]);D[1]=CSO(D[1]);return D};
CSO=function(D){switch(typeof D){case "number":return Number.isFinite(D)?D:""+D;case "bigint":return b47(D)?Number(D):""+D;case "boolean":return D?1:0;case "object":if(Array.isArray(D)){var v=D[_.V$]|0;return D.length===0&&v&1?void 0:fb8(D,v,CSO)}if(D!=null&&D[lS]===Bs)return FmI(D);if(D instanceof St){v=D.JSC$8825_value_;if(v==null)D="";else if(typeof v==="string")D=v;else{if(wAr){for(var h="",a=0,Q=v.length-10240;a<Q;)h+=String.fromCharCode.apply(null,v.subarray(a,a+=10240));h+=String.fromCharCode.apply(null,
a?v.subarray(a):v);v=btoa(h)}else v=_.dr(v);D=D.JSC$8825_value_=v}return D}if(D instanceof XX)return D=D.size!==0?Array.from(mm.prototype.entries.call(D),oCL):void 0,D;return}return D};
Hs=function(D,v){if(v){PSL=v==null||v===O4o||v[zZO]!==UIA?O4o:v;try{return FmI(D)}finally{PSL=void 0}}return FmI(D)};
FmI=function(D){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fb8(D,D[_.V$]|0,CSO)};
ECq=function(D){switch(typeof D){case "boolean":return Lmi||(Lmi=[0,void 0,!0]);case "number":return D>0?void 0:D===0?Z3c||(Z3c=[0,void 0]):[-D,void 0];case "string":return[0,D];case "object":return D}};
wr=function(D,v,h){return D=_.yK(D,v[0],v[1],h?1:2)};
_.yK=function(D,v,h,a){a=a===void 0?0:a;if(D==null){var Q=32;h?(D=[h],Q|=128):D=[];v&&(Q=Q&-8380417|(v&1023)<<13)}else{if(!Array.isArray(D))throw Error("O");Q=D[_.V$]|0;if(Ib7&&1&Q)throw Error("P");2048&Q&&!(2&Q)&&gCc();if(Q&256)throw Error("Q");if(Q&64)return a!==0||Q&2048||xp(D,Q|2048),D;if(h&&(Q|=128,h!==D[0]))throw Error("R");a:{h=D;Q|=64;var G=h.length;if(G){var x=G-1,f=h[x];if(f!=null&&typeof f==="object"&&f.constructor===Object){v=Q&128?0:-1;x-=v;if(x>=1024)throw Error("T");for(var C in f)G=
+C,G<x&&(h[G+v]=f[C],delete f[C]);Q=Q&-8380417|(x&1023)<<13;break a}}if(v){C=Math.max(v,G-(Q&128?0:-1));if(C>1024)throw Error("U");Q=Q&-8380417|(C&1023)<<13}}}Q|=64;a===0&&(Q|=2048);xp(D,Q);return D};
gCc=function(){if(Ib7)throw Error("S");Tcc(kd2,5)};
lbI=function(D,v){if(typeof D!=="object")return D;if(Array.isArray(D)){var h=D[_.V$]|0;return D.length===0&&h&1?void 0:S2u(D,h,v)}if(D!=null&&D[lS]===Bs)return Jr8(D);if(D instanceof XX){v=D.arrayState;if(v&2)return D;if(!D.size)return;h=M1(psc(D));if(D.valueCtor)for(D=0;D<h.length;D++){var a=h[D],Q=a[1];Q==null||typeof Q!=="object"?Q=void 0:Q!=null&&Q[lS]===Bs?Q=Jr8(Q):Array.isArray(Q)?Q=S2u(Q,Q[_.V$]|0,!!(v&32)):Q=void 0;a[1]=Q}return h}if(D instanceof St)return D};
S2u=function(D,v,h){if(v&2)return D;!h||4096&v||16&v?D=e$(D,v,!1,h&&!(v&16)):(WIi(D,34),v&4&&Object.freeze(D));return D};
Nrf=function(D,v,h){D=new D.constructor(v);h&&(D.copyOnWrite=C4);D.noLegacyNull=C4;return D};
Jr8=function(D){var v=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=v[_.V$]|0;return UF(D,h)?D:Y2I(D,v,h)?Nrf(D,v):e$(v,h)};
e$=function(D,v,h,a){a!=null||(a=!!(34&v));D=fb8(D,v,lbI,a);a=32;h&&(a|=2);v=v&8380609|a;xp(D,v);return D};
TJu=function(D){var v=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=v[_.V$]|0;return UF(D,h)?Y2I(D,v,h)?Nrf(D,v,!0):new D.constructor(e$(v,h,!1)):D};
n3=function(D){if(D.copyOnWrite!==C4)return!1;var v=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;v=e$(v,v[_.V$]|0);WIi(v,2048);D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=v;D.copyOnWrite=void 0;D.noLegacyNull=void 0;return!0};
O2=function(D){if(!n3(D)&&UF(D,D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.V$]|0))throw Error();};
K3=function(D,v){v===void 0&&(v=D[_.V$]|0);v&32&&!(v&4096)&&xp(D,v|4096)};
Y2I=function(D,v,h){return h&2?!0:h&32&&!(h&4096)?(xp(v,h|2),D.copyOnWrite=C4,!0):!1};
RU=function(D,v,h,a,Q){var G=h+(Q?0:-1),x=D.length-1;if(x>=1+(Q?0:-1)&&G>=x){var f=D[x];if(f!=null&&typeof f==="object"&&f.constructor===Object)return f[h]=a,v}if(G<=x)return D[G]=a,v;if(a!==void 0){var C;x=((C=v)!=null?C:v=D[_.V$]|0)>>13&1023||536870912;h>=x?a!=null&&(G={},D[x+(Q?0:-1)]=(G[h]=a,G)):D[G]=a}return v};
_.tr=function(D,v,h,a,Q){var G=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=G[_.V$]|0;a=UF(D,x)?1:a;Q=!!Q||a===3;a===2&&n3(D)&&(G=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=G[_.V$]|0);D=Brf(G,v);var f=D===iS?7:D[_.V$]|0,C=crf(f,x);var U=4&C?!1:!0;if(U){4&C&&(D=OF(D),f=0,C=Ws(C,x),x=RU(G,x,v,D));for(var L=0,Z=0;L<D.length;L++){var E=h(D[L]);E!=null&&(D[Z++]=E)}Z<L&&(D.length=Z);h=(C|4)&-513;C=h&=-1025;C&=-4097}C!==f&&(xp(D,C),2&C&&Object.freeze(D));return D=Xsr(D,C,G,
x,v,a,U,Q)};
Xsr=function(D,v,h,a,Q,G,x,f){var C=v;G===1||(G!==4?0:2&v||!(16&v)&&32&a)?uS(v)||(v|=!D.length||x&&!(4096&v)||32&a&&!(4096&v||16&v)?2:256,v!==C&&xp(D,v),Object.freeze(D)):(G===2&&uS(v)&&(D=OF(D),C=0,v=Ws(v,a),a=RU(h,a,Q,D)),uS(v)||(f||(v|=16),v!==C&&xp(D,v)));2&v||!(4096&v||16&v)||K3(h,a);return D};
Brf=function(D,v,h){D=Df(D,v,h);return Array.isArray(D)?D:iS};
crf=function(D,v){2&v&&(D|=2);return D|1};
uS=function(D){return!!(2&D)&&!!(4&D)||!!(256&D)};
Aru=function(D){return _.N1(D,!0)};
q2o=function(D){D=OF(D);for(var v=0;v<D.length;v++){var h=D[v]=OF(D[v]);Array.isArray(h[1])&&(h[1]=M1(h[1]))}return D};
b3i=function(D,v){var h=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=h[_.V$]|0;a:{var Q=a;a=UF(D,a);!a&&n3(D)&&(h=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=h[_.V$]|0);var G=Df(h,v);D=!1;if(G==null){if(a){v=rbr();break a}G=[]}else if(G.constructor===XX)if(G.arrayState&2&&!a)G=psc(G);else{v=G;break a}else Array.isArray(G)?D=!!((G[_.V$]|0)&2):G=[];if(a){if(!G.length){v=rbr();break a}D||(D=!0,M1(G))}else D&&(D=!1,G=q2o(G));!D&&Q&32&&rcL(G);a=new XX(G,void 0,npL,npL);Q=RU(h,
Q,v,a);D||K3(h,Q);v=a}return v};
_.vd=function(D,v,h,a){O2(D);var Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Q[_.V$]|0;if(h==null)return RU(Q,G,v),D;var x=h===iS?7:h[_.V$]|0,f=x,C=uS(x),U=C||Object.isFrozen(h);C||(x=0);U||(h=OF(h),f=0,x=Ws(x,G),U=!1);x|=5;var L;C=(L=t2f(x))!=null?L:0;for(L=0;L<h.length;L++){var Z=h[L],E=a(Z,C);Object.is(Z,E)||(U&&(h=OF(h),f=0,x=Ws(x,G),U=!1),h[L]=E)}x!==f&&(U&&(h=OF(h),x=Ws(x,G)),xp(h,x));RU(Q,G,v,h);return D};
_.h3=function(D,v,h,a,Q){O2(D);var G=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;RU(G,G[_.V$]|0,v,(a==="0"?Number(h)===0:h===a)?void 0:h,Q);return D};
_.am=function(D,v,h){if(v&2)throw Error();var a=cm(v),Q=Brf(D,h,a),G=Q===iS?7:Q[_.V$]|0,x=crf(G,v);if(2&x||uS(x)||16&x)Q=OF(Q),G=0,x=Ws(x,v),RU(D,v,h,Q,a);x&=-13;x!==G&&xp(Q,x);return Q};
dIq=function(D){if(Gy){var v;return(v=D[$o])!=null?v:D[$o]=new Map}if($o in D)return D[$o];v=new Map;Object.defineProperty(D,$o,{value:v});return v};
sUI=function(D,v,h,a,Q){var G=dIq(D),x=jU2(G,D,v,h,Q);x!==a&&(x&&(v=RU(D,v,x,void 0,Q)),G.set(h,a));return v};
jU2=function(D,v,h,a,Q){var G=D.get(a);if(G!=null)return G;for(var x=G=0;x<a.length;x++){var f=a[x];Df(v,f,Q)!=null&&(G!==0&&(h=RU(v,h,G,void 0,Q)),G=f)}D.set(a,G);return G};
mIu=function(D,v,h,a,Q){var G=!1;a=Df(D,a,Q,function(x){var f=eMc(x,h,!1,v);G=f!==x&&f!=null;return f});
if(a!=null)return G&&!UF(a)&&K3(D,v),a};
H3o=function(D,v,h,a,Q,G,x,f){var C=UF(D,h);G=C?1:G;x=!!x||G===3;C=f&&!C;(G===2||C)&&n3(D)&&(v=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=v[_.V$]|0);D=Brf(v,Q);var U=D===iS?7:D[_.V$]|0,L=crf(U,h);if(f=!(4&L)){var Z=D,E=h,I=!!(2&L);I&&(E|=2);for(var S=!I,B=!0,A=0,d=0;A<Z.length;A++){var b=eMc(Z[A],a,!1,E);if(b instanceof a){if(!I){var W=UF(b);S&&(S=!W);B&&(B=W)}Z[d++]=b}}d<A&&(Z.length=d);L|=4;L=B?L&-4097:L|4096;L=S?L|8:L&-9}L!==U&&(xp(D,L),2&L&&Object.freeze(D));if(C&&!(8&L||!D.length&&
(G===1||(G!==4?0:2&L||!(16&L)&&32&h)))){uS(L)&&(D=OF(D),L=Ws(L,h),h=RU(v,h,Q,D));a=D;C=L;for(U=0;U<a.length;U++)Z=a[U],L=TJu(Z),Z!==L&&(a[U]=L);C|=8;L=C=a.length?C|4096:C&-4097;xp(D,L)}return D=Xsr(D,L,v,h,Q,G,f,x)};
yrf=function(D){D==null&&(D=void 0);return D};
Ws=function(D,v){return D=(2&v?D|2:D&-3)&-273};
_.wsc=function(D,v,h,a,Q){O2(D);v=_.tr(D,v,Q,2,!0);var G;Q=(G=t2f(v===iS?7:v[_.V$]|0))!=null?G:0;v.push(h(a,Q));return D};
eZ7=function(D,v,h,a,Q,G,x){O2(D);var f=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=H3o(D,f,f[_.V$]|0,h,v,2,!0);if(G&&x)Q!=null||(Q=D.length-1),D17(D,Q),D.splice(Q,G),D.length||(D[_.V$]&=-4097);else{if(G){if(typeof Q!=="number"||Q<0||Q>D.length)throw Error();}else a=a!=null?a:new h;Q!=void 0?D.splice(Q,G,a):D.push(a);Q=h=D===iS?7:D[_.V$]|0;(a=UF(a))?(h&=-9,D.length===1&&(h&=-4097)):h|=4096;h!==Q&&xp(D,h);a||K3(f)}};
O3i=function(D,v){if(typeof D==="string")return new Qw(nLc(D),v);if(Array.isArray(D))return new Qw(new Uint8Array(D),v);if(D.constructor===Uint8Array)return new Qw(D,!1);if(D.constructor===ArrayBuffer)return D=new Uint8Array(D),new Qw(D,!1);if(D.constructor===St)return v=nC8(D)||new Uint8Array(0),new Qw(v,!0,D);if(D instanceof Uint8Array)return D=D.constructor===Uint8Array?D:new Uint8Array(D.buffer,D.byteOffset,D.byteLength),new Qw(D,!1);throw Error();};
Tr8=function(D){switch(typeof D){case "string":Km4(D)}};
i3A=function(D){switch(typeof D){case "string":RZf(D)}};
GK=function(){var D=function(){throw Error();};
Object.setPrototypeOf(D,D.prototype);return D};
t$u=function(D,v){var h=h===void 0?WmI:h;return new Vw(D,v,h)};
DfI=function(D,v,h,a,Q){rrA(D,h,uXu(v,a),Q)};
Pd=function(D,v,h,a){var Q=a[D];if(Q)return Q;Q={};Q.binaryFields=a;Q.messageMetadata=ECq(a[0]);var G=a[1],x=1;G&&G.constructor===Object&&(Q.extensions=G,G=a[++x],typeof G==="function"&&(Q.isMessageSet=!0,voO!=null||(voO=G),hBI!=null||(hBI=a[x+1]),G=a[x+=2]));for(var f={};G&&af7(G);){for(var C=0;C<G.length;C++)f[G[C]]=G;G=a[++x]}for(C=1;G!==void 0;){typeof G==="number"&&(C+=G,G=a[++x]);var U=void 0;if(G instanceof Vw)var L=G;else L=$fc,x--;G=void 0;if((G=L)==null?0:G.$$isMsg){G=a[++x];U=a;var Z=x;
typeof G==="function"&&(G=G(),U[Z]=G);U=G}G=a[++x];Z=C+1;typeof G==="number"&&G<0&&(Z-=G,G=a[++x]);for(;C<Z;C++){var E=f[C];U?h(Q,C,L,U,E):v(Q,C,L,E)}}return a[D]=Q};
af7=function(D){return Array.isArray(D)&&!!D.length&&typeof D[0]==="number"&&D[0]>0};
GK7=function(D){return Array.isArray(D)?D[0]instanceof Vw?D:[Qmi,D]:[D,void 0]};
uXu=function(D,v){if(D instanceof _.xo)return D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(D))return wr(D,v,!1)};
VRO=function(D,v,h,a){var Q=h.$$binaryReaderFn;D[v]=a?function(G,x,f){return Q(G,x,f,a)}:Q};
xfI=function(D,v,h,a,Q){var G=h.$$binaryReaderFn,x,f;D[v]=function(C,U,L){return G(C,U,L,f||(f=Pd(PHO,VRO,xfI,a).messageMetadata),x||(x=MR7(a)),Q)}};
MR7=function(D){var v=D[ff2];if(v!=null)return v;var h=Pd(PHO,VRO,xfI,D);v=h.isMessageSet?function(a,Q){return voO(a,Q,h)}:function(a,Q){for(;CHf(Q)&&Q.nextWireType_!=4;){var G=Q.nextField_,x=h[G];
if(x==null){var f=h.extensions;f&&(f=f[G])&&(f=ooq(f),f!=null&&(x=h[G]=f))}if(x==null||!x(Q,a,G)){f=Q;x=f.fieldCursor_;FM8(f);if(f.discardUnknownFields)var C=void 0;else{var U=f.decoder_.cursor_-x;f.decoder_.cursor_=x;C=zB7(f.decoder_,U)}U=f=x=void 0;var L=a;C&&((x=(f=(U=L[qI])!=null?U:L[qI]=new xIA)[G])!=null?x:f[G]=[]).push(C)}}if(a=u92(a))a.reviveUnknownFields=h.binaryFields[UfA];return!0};
D[ff2]=v;D[UfA]=LM8.bind(D);return v};
LM8=function(D,v,h,a){var Q=this[PHO],G=this[ff2],x=wr(void 0,Q.messageMetadata,!1),f=u92(D);if(f){var C=!1,U=Q.extensions;if(U){Q=function(S,B,A){if(A.length!==0)if(U[B])for(S=_.P(A),B=S.next();!B.done;B=S.next()){B=Zzr(B.value);try{C=!0,G(x,B)}finally{B.free()}}else a==null||a(D,B,A)};
if(v==null)V$O(f,Q);else if(f!=null){var L=f[v];L&&Q(f,v,L)}if(C){var Z=D[_.V$]|0;if(Z&2&&Z&2048&&(h==null||!h.reviveIntoImmutable))throw Error();var E=cm(Z),I=function(S,B){if(Df(D,S,E)!=null)switch(h==null?void 0:h.resolutionBehavior){case 1:return;default:throw Error();}B!=null&&(Z=RU(D,Z,S,B,E));delete f[S]};
v==null?vpO(x,x[_.V$]|0,function(S,B){I(S,B)}):I(v,Df(x,v,E))}}}};
ooq=function(D){D=GK7(D);var v=D[0].$$binaryReaderFn;if(D=D[1]){var h=MR7(D),a=Pd(PHO,VRO,xfI,D).messageMetadata;return function(Q,G,x){return v(Q,G,x,a,h)}}return v};
Eor=function(D,v,h){D[v]=h.$$binaryWriterFn};
gof=function(D,v,h,a){var Q,G,x=h.$$binaryWriterFn;D[v]=function(f,C,U){return x(f,C,U,G||(G=Pd(If2,Eor,gof,a).messageMetadata),Q||(Q=kKq(a)))}};
kKq=function(D){var v=D[SQi];if(!v){var h=Pd(If2,Eor,gof,D);v=function(a,Q){return J3c(a,Q,h)};
D[SQi]=v}return v};
J3c=function(D,v,h){vpO(D,D[_.V$]|0,function(a,Q){if(Q!=null){var G=pd8(h,a);G?G(v,Q,a):a<500||Tcc(lfL,3)}});
(D=u92(D))&&V$O(D,function(a,Q,G){Mf(v,v.encoder_.end());for(a=0;a<G.length;a++)Mf(v,nC8(G[a])||new Uint8Array(0))})};
pd8=function(D,v){var h=D[v];if(h)return h;if(h=D.extensions)if(h=h[v]){h=GK7(h);var a=h[0].$$binaryWriterFn;if(h=h[1]){var Q=kKq(h),G=Pd(If2,Eor,gof,h).messageMetadata;h=D.isMessageSet?hBI(G,Q):function(x,f,C){return a(x,f,C,G,Q)}}else h=a;
return D[v]=h}};
_.N0I=function(D,v,h){if(Array.isArray(v)){var a=v[_.V$]|0;if(a&4)return v;for(var Q=0,G=0;Q<v.length;Q++){var x=D(v[Q]);x!=null&&(v[G++]=x)}G<Q&&(v.length=G);h&&(xp(v,(a|5)&-1537),a&2&&Object.freeze(v));return v}};
_.Cz=function(D,v,h){return new Vw(D,v,h)};
_.YQO=function(D,v,h){return new Vw(D,v,h)};
_.om=function(D,v,h){RU(D,D[_.V$]|0,v,h,cm(D[_.V$]|0))};
B0O=function(D,v,h){v=_.is(v);v!=null&&(_.FY(D,h,1),D=D.encoder_,h=fJ2||(fJ2=new DataView(new ArrayBuffer(8))),h.setFloat64(0,+v,!0),bs=h.getUint32(0,!0),mR=h.getUint32(4,!0),_.zK(D,bs),_.zK(D,mR))};
c3f=function(D,v,h){v=_.is(v);v!=null&&(_.FY(D,h,5),D=D.encoder_,Cso(v),_.zK(D,bs))};
_.Lz=function(D,v,h){v=m12(v);if(v!=null&&(Tr8(v),v!=null))switch(_.FY(D,h,0),typeof v){case "number":D=D.encoder_;y$(v);UQ(D,bs,mR);break;case "bigint":h=BigInt.asUintN(64,v);h=new XdL(Number(h&BigInt(4294967295)),Number(h>>BigInt(32)));UQ(D.encoder_,h.JSC$8868_lo,h.JSC$8868_hi);break;default:h=Km4(v),UQ(D.encoder_,h.JSC$8868_lo,h.JSC$8868_hi)}};
qQO=function(D,v,h){v=_.Gd(v);v!=null&&v!=null&&(_.FY(D,h,0),_.A3O(D.encoder_,v))};
_.dfL=function(D,v,h){bz7(D,h,H47(v))};
jmf=function(D,v,h){v=_.Epi(v);v!=null&&(_.FY(D,h,0),D.encoder_.JSC$8870_buffer_.push(v?1:0))};
mfI=function(D,v,h){v=_.p3(v);v!=null&&smq(D,h,Cqf(v))};
Hzc=function(D,v,h,a,Q){rrA(D,h,uXu(v,a),Q)};
_.y3c=function(D,v,h){v=v==null||typeof v=="string"||v instanceof St?v:void 0;v!=null&&smq(D,h,O3i(v,!0).buffer)};
wd4=function(D,v,h){v=_.ky2(v);v!=null&&v!=null&&(_.FY(D,h,0),Zf(D.encoder_,v))};
_.eB7=function(D,v,h){v=_.Gd(v);v!=null&&(v=parseInt(v,10),_.FY(D,h,0),_.A3O(D.encoder_,v))};
_.EQ=function(D,v){return function(h,a){var Q={treatNewDataAsImmutable:!0};a&&Object.assign(Q,a);h=Zzr(h,void 0,void 0,Q);try{var G=new D,x=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;MR7(v)(x,h);var f=G}finally{h.free()}return f}};
_.Im=function(D){return function(v){return noc(v,D)}};
Ozc=function(D){return function(){return noc(this,D)}};
_.KM8=function(D){return X9(function(v){return v instanceof D&&!UF(v)})};
_.ko=function(D){return function(v){return T02(D,v)}};
tRu=function(D,v){return RBu({child:D,origin:v||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:izI,getPayloadCase:function(h){return h.getPayloadCase()},
createInitMessage:function(h){var a=new pz,Q=new WMA;h=_.lH(Q,1,h);return _.Nf(a,5,Yo,h)}})};
Bd=function(D){return{valueOf:D}.valueOf()};
uYq=function(){var D=null;if(!r3A)return D;try{var v=function(h){return h};
D=r3A.createPolicy("goog#html",{createHTML:v,createScript:v,createScriptURL:v})}catch(h){}return D};
vIu=function(){DSr===void 0&&(DSr=uYq());return DSr};
_.XY=function(D){var v=vIu();D=v?v.createScriptURL(D):D;return new cd(D)};
_.qf=function(D){if(D instanceof cd)return D.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.bH=function(D){return Object.isFrozen(D)&&Object.isFrozen(D.raw)};
hJ7=function(D){return D.toString().indexOf("`")===-1};
jR=function(D){return new _.d0(axO,D)};
sQ=function(D){return D instanceof _.d0};
_.mM=function(D){if(sQ(D))return D.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Hd=function(D){return new $So(function(v){return v.substr(0,D.length+1).toLowerCase()===D+":"})};
_.yw=function(D,v){v=v===void 0?Q9u:v;if(sQ(D))return D;for(var h=0;h<v.length;++h){var a=v[h];if(a instanceof $So&&a.isValid(D))return jR(D)}};
_.nz=function(D,v){v=v===void 0?Q9u:v;return _.yw(D,v)||eR};
_.OQ=function(D){var v=window;if(typeof MediaSource!=="undefined"&&D instanceof MediaSource||typeof v.ManagedMediaSource!=="undefined"&&D instanceof v.ManagedMediaSource)return jR(URL.createObjectURL(D));v=D.type;v.toLowerCase()==="application/octet-stream"?v=!0:(v=v.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),v=(v==null?void 0:v.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(v[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(v[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(v[1])||/^font\/[\w-]+$/i.test(v[1])));if(!v)throw Error("Z");return jR(URL.createObjectURL(D))};
_.GeL=function(D){for(var v=_.Kz.apply(1,arguments),h=[D[0]],a=0;a<v.length;a++)h.push(String(v[a])),h.push(D[a+1]);return jR(h.join(""))};
_.PzI=function(D){if(!V_L){a:{var v=document.createElement("a");try{v.href=D}catch(h){D=void 0;break a}D=v.protocol;D=D===":"||D===""?"https:":D}return D}try{v=new URL(D)}catch(h){return"https:"}return v.protocol};
_.TK=function(D){D instanceof _.d0?D=_.mM(D):D=xS2.test(D)?D:void 0;return D};
Rm=function(D,v){v=_.TK(v);v!==void 0&&(D.href=v)};
Wd=function(D){var v=vIu();D=v?v.createHTML(D):D;return new iH(D)};
r0=function(D){if(D instanceof iH)return D.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.uH=function(D,v){D.src=_.qf(v).toString()};
M_8=function(D,v){D.setAttribute("sandbox","");for(var h=0;h<v.length;h++)D.sandbox.supports&&!D.sandbox.supports(v[h])||D.sandbox.add(v[h])};
_.CzA=function(D,v,h){D.removeAttribute("srcdoc");switch(v){case 0:if(h instanceof cd)throw new fxf("TrustedResourceUrl",0);M_8(D,[]);v=_.TK(h);v!==void 0&&(D.src=v);break;case 1:if(!(h instanceof cd))throw new fxf(typeof h,1);M_8(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.uH(D,h);break;case 2:if(h instanceof cd)throw new fxf("TrustedResourceUrl",2);M_8(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
v=_.TK(h);v!==void 0&&(D.src=v);break;default:_.K4(v)}};
_.Dx=function(D,v,h,a){v=_.TK(v);return v!==void 0?D.open(v,h,a):null};
_.vp=function(D){D=D===void 0?document:D;var v,h;D=(h=(v=D).querySelector)==null?void 0:h.call(v,"script[nonce]");return D==null?"":D.nonce||D.getAttribute("nonce")||""};
_.$I=function(D){var v=vIu();D=v?v.createScript(D):D;return new _.a9(D)};
oIq=function(D){if(D instanceof _.a9)return D.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
FkO=function(D){var v=_.vp(D.ownerDocument);v&&D.setAttribute("nonce",v)};
_.QM=function(D,v){D.textContent=oIq(v);FkO(D)};
_.Ge=function(D,v){D.src=_.qf(v);FkO(D)};
_.VM=function(D,v){if(D.nodeType===1&&/^(script|style)$/i.test(D.tagName))throw Error("Z");D.innerHTML=r0(v)};
_.Pp=function(D,v,h,a){if(D.length===0)throw Error("Z");D=D.map(function(G){if(G instanceof zJu)G=G.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return G});
var Q=h.toLowerCase();if(D.every(function(G){return Q.indexOf(G)!==0}))throw Error("aa`"+h);
v.setAttribute(h,a)};
_.xI=function(D,v,h){if(v instanceof cd)D.href=_.qf(v).toString(),D.rel=h;else{if(USf.indexOf(h)===-1)throw Error("ba`"+h);v=_.TK(v);v!==void 0&&(D.href=v,D.rel=h)}};
Lko=function(D){if(D instanceof MS)return D.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.Zf8=function(D,v){v=_.TK(v);v!==void 0&&(D.href=v)};
EI8=function(D){return _.XY(D)};
IxL=function(D,v){D&&(v=D.indexOf(v),0<=v&&D.splice(v,1))};
ff=function(D){return typeof D==="function"};
gIL=function(D){return D instanceof Cf||D&&"closed"in D&&ff(D.remove)&&ff(D.add)&&ff(D.unsubscribe)};
o9=function(){};
Fy=function(D){keq(function(){throw D;})};
ze=function(D){return D};
UX=function(){return SX8(_.Kz.apply(0,arguments))};
SX8=function(D){return D.length===0?ze:D.length===1?D[0]:function(v){return D.reduce(function(h,a){return a(h)},v)}};
Jwr=function(D){var v;return(v=D!=null?D:void 0)!=null?v:Promise};
ppI=function(D,v){return new Lf(function(h){var a=0;return v.schedule(function(){a===D.length?h.complete():(h.next(D[a++]),h.closed||this.schedule())})})};
lxO=function(D,v){if(!D)throw Error("ca");return new Lf(function(h){var a=new Cf;a.add(v.schedule(function(){var Q=D[Symbol.asyncIterator]();a.add(v.schedule(function(){var G=this;Q.next().then(function(x){x.done?h.complete():(h.next(x.value),G.schedule())})}))}));
return a})};
NEc=function(D,v,h){v=v.schedule(function(){try{h.call(this)}catch(a){D.error(a)}},0);
D.add(v)};
BEu=function(D,v){return new Lf(function(h){var a;h.add(v.schedule(function(){a=D[YXi]();NEc(h,v,function(){var Q=a.next(),G=Q.value;Q.done?h.complete():(h.next(G),this.schedule())})}));
return function(){var Q;return ff((Q=a)==null?void 0:Q.return)&&a.return()}})};
cwA=function(D,v){return new Lf(function(h){var a=new Cf;a.add(v.schedule(function(){var Q=D[Zx]();a.add(Q.subscribe({next:function(G){a.add(v.schedule(function(){return h.next(G)}))},
error:function(G){a.add(v.schedule(function(){return h.error(G)}))},
complete:function(){a.add(v.schedule(function(){return h.complete()}))}}))}));
return a})};
Xpf=function(D,v){return new Lf(function(h){return v.schedule(function(){return D.then(function(a){h.add(v.schedule(function(){h.next(a);h.add(v.schedule(function(){return h.complete()}))}))},function(a){h.add(v.schedule(function(){return h.error(a)}))})})})};
Aw2=function(D){return new TypeError("da`"+(D!==null&&typeof D==="object"?"an invalid object":"'"+D+"'"))};
bfq=function(D,v){if(D!=null){if(ff(D[Zx]))return cwA(D,v);if(qXI(D))return ppI(D,v);if(ff(D==null?void 0:D.then))return Xpf(D,v);if(Symbol.asyncIterator&&ff(D==null?void 0:D[Symbol.asyncIterator]))return lxO(D,v);if(ff(D==null?void 0:D[YXi]))return BEu(D,v)}throw Aw2(D);};
I9=function(D,v){return v?bfq(D,v):EX(D)};
EX=function(D){if(D instanceof Lf)return D;if(D!=null){if(ff(D[Zx]))return dS7(D);if(qXI(D))return j9o(D);if(ff(D==null?void 0:D.then))return s9o(D);if(Symbol.asyncIterator&&ff(D==null?void 0:D[Symbol.asyncIterator]))return mSr(D);if(ff(D==null?void 0:D[YXi]))return Hfq(D)}throw Aw2(D);};
dS7=function(D){return new Lf(function(v){var h=D[Zx]();if(ff(h.subscribe))return h.subscribe(v);throw new TypeError("ea");})};
j9o=function(D){return new Lf(function(v){for(var h=0;h<D.length&&!v.closed;h++)v.next(D[h]);v.complete()})};
s9o=function(D){return new Lf(function(v){D.then(function(h){v.closed||(v.next(h),v.complete())},function(h){return v.error(h)}).then(null,Fy)})};
Hfq=function(D){return new Lf(function(v){for(var h=D[YXi]();!v.closed;){var a=h.next(),Q=a.value;a.done?v.complete():v.next(Q)}return function(){return ff(h==null?void 0:h.return)&&h.return()}})};
mSr=function(D){return new Lf(function(v){ywI(D,v).catch(function(h){return v.error(h)})})};
ywI=function(D,v){var h,a,Q,G,x,f;return _.M(function(C){switch(C.nextAddress){case 1:_.gE(C,2,3),G=_.kI(D);case 5:return C.yield(G.next(),8);case 8:a=C.yieldResult;if(a.done){C.jumpTo(3);break}x=a.value;v.next(x);C.jumpTo(5);break;case 3:_.S_(C);_.Jw(C,9);if(!a||a.done||!(Q=G.return)){C.jumpTo(9);break}return C.yield(Q.call(G),9);case 9:_.S_(C,0,0,1);if(h)throw h.error;_.pf(C,10,1);break;case 10:_.pf(C,4);break;case 2:f=_.NS(C);h={error:f};C.jumpTo(3);break;case 4:v.complete(),_.YI(C)}})};
wp4=function(D,v){return v?ppI(D,v):j9o(D)};
eJf=function(D){return ff(D[D.length-1])?D.pop():void 0};
Bp=function(D){var v=D[D.length-1];return v&&ff(v.schedule)?D.pop():void 0};
cp=function(){var D=_.Kz.apply(0,arguments),v=Bp(D);return v?ppI(D,v):wp4(D)};
Xy=function(D){var v=ff(D)?D:function(){return D};
return new Lf(function(h){return h.error(v())})};
Aw=function(D){return function(v){if(ff(v==null?void 0:v.lift))return v.lift(function(h){try{return D(h,this)}catch(a){this.error(a)}});
throw new TypeError("fa");}};
bz=function(){return Aw(function(D,v){var h=null;D._refCount++;var a=new qS(v,void 0,void 0,void 0,function(){if(!D||D._refCount<=0||0<--D._refCount)h=null;else{var Q=D._connection,G=h;h=null;!Q||G&&Q!==G||Q.unsubscribe();v.unsubscribe()}});
D.subscribe(a);a.closed||(h=D.connect())})};
Of7=function(){var D=nI2;var v=v===void 0?0:v;return Aw(function(h,a){a.add(D.schedule(function(){return h.subscribe(a)},v))})};
dE=function(D){return Aw(function(v,h){var a=0;v.subscribe(new qS(h,function(Q){h.next(D.call(void 0,Q,a++))}))})};
TEL=function(D){return dE(function(v){return Kkc(v)?D.apply(null,_.j_(v)):D(v)})};
rwo=function(D){if(D.length===1){var v=D[0];if(RJo(v))return{args:v,keys:null};if(v&&typeof v==="object"&&ifo(v)===Wk7)return D=t_f(v),{args:D.map(function(h){return v[h]}),
keys:D}}return{args:D,keys:null}};
sX=function(){var D=_.Kz.apply(0,arguments),v=Bp(D),h=eJf(D);D=rwo(D);var a=D.args,Q=D.keys;if(a.length===0)return I9([],v);v=new Lf(uyr(a,v,Q?function(G){for(var x={},f=0;f<G.length;f++)x[Q[f]]=G[f];return x}:ze));
return h?v.pipe(TEL(h)):v};
uyr=function(D,v,h){h=h===void 0?ze:h;return function(a){DVr(v,function(){for(var Q=D.length,G=Array(Q),x=Q,f=D.map(function(){return!1}),C=!0,U={i$jscomp$217:0};U.i$jscomp$217<Q;U={i$jscomp$217:U.i$jscomp$217},U.i$jscomp$217++)DVr(v,function(L){return function(){I9(D[L.i$jscomp$217],v).subscribe(new mk(a,function(Z){G[L.i$jscomp$217]=Z;
C&&(f[L.i$jscomp$217]=!0,C=!f.every(ze));C||a.next(h(G.slice()))},function(){return--x===0}))}}(U),a)},a)}};
DVr=function(D,v,h){D?h.add(D.schedule(v)):v()};
vJo=function(D,v,h,a){var Q=[],G=0,x=0,f=!1,C=function(U){G++;EX(h(U,x++)).subscribe(new qS(v,function(L){v.next(L)},void 0,function(){G--;
for(var L={};Q.length&&G<a;L={bufferedValue:void 0})L.bufferedValue=Q.shift(),C(L.bufferedValue);!f||Q.length||G||v.complete()}))};
D.subscribe(new qS(v,function(U){return G<a?C(U):Q.push(U)},void 0,function(){f=!0;
!f||Q.length||G||v.complete()}));
return function(){Q=null}};
Hp=function(D,v){var h=h===void 0?Infinity:h;if(ff(v))return Hp(function(a,Q){return dE(function(G,x){return v(a,G,Q,x)})(EX(D(a,Q)))},h);
typeof v==="number"&&(h=v);return Aw(function(a,Q){return vJo(a,Q,D,h)})};
h3O=function(D){D=D===void 0?Infinity:D;return Hp(ze,D)};
a38=function(){var D=_.Kz.apply(0,arguments);return h3O(1)(wp4(D,Bp(D)))};
$Vi=function(D){return new Lf(function(v){EX(D()).subscribe(v)})};
yM=function(D,v,h){if(ff(h)){var a=h;h=void 0}if(a)return yM(D,v,h).pipe(TEL(a));a=_.P(ff(D.addEventListener)&&ff(D.removeEventListener)?QPI.map(function(x){return function(f){return D[x](v,f,h)}}):ff(D.addListener)&&ff(D.removeListener)?GY4.map(V9c(D,v)):ff(D.on)&&ff(D.off)?PUc.map(V9c(D,v)):[]);
var Q=a.next().value,G=a.next().value;return!Q&&qXI(D)?Hp(function(x){return yM(x,v,h)})(wp4(D)):new Lf(function(x){if(!Q)throw new TypeError("ga");
var f=function(){var C=_.Kz.apply(0,arguments);return x.next(1<C.length?C:C[0])};
Q(f);return function(){return G(f)}})};
V9c=function(D,v){return function(h){return function(a){return D[h](v,a)}}};
e_=function(){var D=_.Kz.apply(0,arguments),v=Bp(D);var h=typeof D[D.length-1]==="number"?D.pop():Infinity;return D.length?D.length===1?EX(D[0]):h3O(h)(wp4(D,v)):wE};
M9u=function(D){return D.length===1&&xVc(D[0])?D[0]:D};
f38=function(){var D=M9u(_.Kz.apply(0,arguments));return Aw(function(v,h){var a=[v].concat(_.j_(D)),Q=function(){if(!h.closed)if(a.length>0){try{var G=EX(a.shift())}catch(f){Q();return}var x=new qS(h,void 0,o9,o9);h.add(G.subscribe(x));x.add(Q)}else h.complete()};
Q()})};
Kf=function(D){return Aw(function(v,h){var a=0;v.subscribe(new qS(h,function(Q){return D.call(void 0,Q,a++)&&h.next(Q)}))})};
oJ2=function(){var D=_.Kz.apply(0,arguments);D=M9u(D);return D.length===1?EX(D[0]):new Lf(CUL(D))};
CUL=function(D){return function(v){for(var h=[],a={i$jscomp$220:0};h&&!v.closed&&a.i$jscomp$220<D.length;a={i$jscomp$220:a.i$jscomp$220},a.i$jscomp$220++)h.push(EX(D[a.i$jscomp$220]).subscribe(new qS(v,function(Q){return function(G){if(h){for(var x=0;x<h.length;x++)x!==Q.i$jscomp$220&&h[x].unsubscribe();h=null}v.next(G)}}(a))))}};
FO7=function(){var D=_.Kz.apply(0,arguments),v=eJf(D),h=M9u(D);return h.length?new Lf(function(a){var Q=h.map(function(){return[]}),G=h.map(function(){return!1});
a.add(function(){Q=G=null});
for(var x={sourceIndex$jscomp$1:0};!a.closed&&x.sourceIndex$jscomp$1<h.length;x={sourceIndex$jscomp$1:x.sourceIndex$jscomp$1},x.sourceIndex$jscomp$1++)EX(h[x.sourceIndex$jscomp$1]).subscribe(new qS(a,function(f){return function(C){Q[f.sourceIndex$jscomp$1].push(C);Q.every(function(U){return U.length})&&(C=Q.map(function(U){return U.shift()}),a.next(v?v.apply(null,_.j_(C)):C),Q.some(function(U,L){return!U.length&&G[L]})&&a.complete())}}(x),void 0,function(f){return function(){G[f.sourceIndex$jscomp$1]=
!0;
!Q[f.sourceIndex$jscomp$1].length&&a.complete()}}(x)));
return function(){Q=G=null}}):wE};
z37=function(D){var v,h,a;return!!D&&typeof D.active==="boolean"&&typeof((v=D.clock)==null?void 0:v.now)==="function"&&((h=D.clock)==null?void 0:h.timeline)!==void 0&&!((a=D.lastMeasurement)==null||!a.timestamp)&&typeof D.equivalentTo==="function"&&typeof D.extrapolateToNow==="function"&&typeof D.extrapolateToTime==="function"&&typeof D.map==="function"&&typeof D.joinWith==="function"};
UVo=function(D){function v(h){return typeof h==="boolean"||typeof h==="string"||typeof h==="number"||h===void 0||h===null}
return v(D)?!0:Array.isArray(D)?D.every(v):typeof D==="object"?Object.keys(D).every(function(h){return typeof h==="string"})&&Object.values(D).every(function(h){return Array.isArray(h)?h.every(v):v(h)}):!1};
LO2=function(D){if(UVo(D))return D;if(z37(D))return{lastMeasurement:{value:LO2(D.lastMeasurement.value),timestamp:R9(D.lastMeasurement.timestamp,new iz(0,D.lastMeasurement.timestamp.timeline))},active:D.active};try{return JSON.parse(JSON.stringify(D))}catch(v){}return String(D)};
Wp=function(D,v){return function(h){return new Lf(function(a){return h.subscribe(function(Q){D.timeExecution(v,function(){a.next(Q)})()},function(Q){D.timeExecution(v,function(){a.error(Q)})()},function(){D.timeExecution(v,function(){a.complete()})()})})}};
ZT2=function(D,v){var h=!1;return new Lf(function(a){var Q=D.setTimeout(function(){h=!0;a.next(!0);a.complete()},v);
return function(){h||D.clearTimeout(Q)}})};
EJi=function(D){D=D.global;if(D.fetchLater)return D.fetchLater.bind(D)};
tw=function(D){return Aw(function(v,h){var a=null,Q=!1,G;a=v.subscribe(new qS(h,void 0,function(x){G=EX(D(x,tw(D)(v)));a?(a.unsubscribe(),a=null,G.subscribe(h)):Q=!0}));
Q&&(a.unsubscribe(),a=null,G.subscribe(h))})};
I3c=function(D,v,h){return function(a,Q){var G=h,x=v,f=0;a.subscribe(new qS(Q,function(C){var U=f++;x=G?D(x,C,U):(G=!0,C);Q.next(x)},void 0,void 0))}};
gJ4=function(D){D=D===void 0?null:D;return Aw(function(v,h){var a=!1;v.subscribe(new qS(h,function(Q){a=!0;h.next(Q)},void 0,function(){a||h.next(D);
h.complete()}))})};
rE=function(){return Aw(function(D,v){D.subscribe(new qS(v,o9))})};
uz=function(D){return Aw(function(v,h){v.subscribe(new qS(h,function(){return h.next(D)}))})};
D3=function(D){return D<=0?function(){return wE}:Aw(function(v,h){var a=0;
v.subscribe(new qS(h,function(Q){++a<=D&&(h.next(Q),D<=a&&h.complete())}))})};
vW=function(D){var v=v===void 0?ze:v;var h;D=(h=D)!=null?h:kYO;return Aw(function(a,Q){var G,x=!0;a.subscribe(new qS(Q,function(f){var C=v(f);if(x||!D(G,C))x=!1,G=C,Q.next(f)}))})};
kYO=function(D,v){return D===v};
J1A=function(D){D=D===void 0?SV4:D;return Aw(function(v,h){var a=!1;v.subscribe(new qS(h,function(Q){a=!0;h.next(Q)},void 0,function(){return a?h.complete():h.error(D())}))})};
SV4=function(){return new pWi};
h1=function(){var D=_.Kz.apply(0,arguments);return function(v){return a38(v,cp.apply(null,_.j_(D)))}};
l3L=function(D){return Aw(function(v,h){var a=0;v.subscribe(new qS(h,function(Q){D.call(void 0,Q,a++,v)||(h.next(!1),h.complete())},void 0,function(){h.next(!0);
h.complete()}))})};
NDI=function(){return Aw(function(D,v){var h=[];D.subscribe(new qS(v,function(a){h.push(a);1<h.length&&h.shift()},void 0,function(){for(var a=_.P(h),Q=a.next();!Q.done;Q=a.next())v.next(Q.value);
v.complete()},function(){h=null}))})};
YVI=function(D,v){var h=arguments.length>=2;return function(a){return a.pipe(D?Kf(function(Q,G){return D(Q,G,a)}):ze,NDI(),h?gJ4(v):J1A(function(){return new pWi}))}};
$J=function(D){var v=ff(D)?D:function(){return D};
return ff()?Aw(function(h,a){var Q=v();(void 0)(Q).subscribe(a).add(h.subscribe(Q))}):function(h){var a=new aP(h,v);
ff(h==null?void 0:h.lift)&&(a.lift=h.lift);a.source=h;a.subjectFactory=v;return a}};
GY=function(D){var v=new Qz(D,void 0,void 0);return function(h){return $J(function(){return v})(h)}};
Vz=function(D,v){return Aw(I3c(D,v,arguments.length>=2))};
xJ=function(){var D=_.Kz.apply(0,arguments),v=Bp(D);return Aw(function(h,a){(v?a38(D,h,v):a38(D,h)).subscribe(a)})};
MV=function(D){return Aw(function(v,h){var a=null,Q=0,G=!1;v.subscribe(new qS(h,function(x){var f;(f=a)==null||f.unsubscribe();f=Q++;EX(D(x,f)).subscribe(a=new qS(h,function(C){return h.next(C)},void 0,function(){a=null;
G&&!a&&h.complete()}))},void 0,function(){(G=!0,!a)&&h.complete()}))})};
fT=function(D,v){v=v===void 0?!1:v;return Aw(function(h,a){var Q=0;h.subscribe(new qS(a,function(G){var x=D(G,Q++);(x||v)&&a.next(G);!x&&a.complete()}))})};
BDO=function(D,v,h){var a=ff(D)||v||h?{next:D,error:v,complete:h}:D;return a?Aw(function(Q,G){Q.subscribe(new qS(G,function(x){var f;(f=a.next)==null||f.call(a,x);G.next(x)},function(x){var f;
(f=a.error)==null||f.call(a,x);G.error(x)},function(){var x;
(x=a.complete)==null||x.call(a);G.complete()}))}):ze};
c1o=function(){var D=_.Kz.apply(0,arguments),v=eJf(D);return Aw(function(h,a){for(var Q=D.length,G=Array(Q),x=D.map(function(){return!1}),f=!1,C={i$jscomp$230:0};C.i$jscomp$230<Q;C={i$jscomp$230:C.i$jscomp$230},C.i$jscomp$230++)EX(D[C.i$jscomp$230]).subscribe(new qS(a,function(U){return function(L){G[U.i$jscomp$230]=L;
f||x[U.i$jscomp$230]||(x[U.i$jscomp$230]=!0,(f=x.every(ze))&&(x=null))}}(C),void 0,o9));
h.subscribe(new qS(a,function(U){f&&(U=[U].concat(_.j_(G)),a.next(v?v.apply(null,_.j_(U)):U))}))})};
A14=function(D){var v=XWO;if(v)for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&D(v[h],h,v)};
qVA=function(){var D=[];A14(function(v){D.push(v)});
return D};
dVI=function(D){try{return!!D&&D.location.href!=null&&bT8(D,"foo")}catch(v){return!1}};
_.CT=function(D){return new zJu(D[0].toLowerCase())};
jPo=function(D){for(var v=_.Kz.apply(1,arguments),h=D[0],a=0;a<D.length-1;a++)h+=String(v[a]),h+=D[a+1];v=document.implementation.createHTMLDocument("");a=v.createElement("style");v.head.appendChild(a);v=a.sheet;v.insertRule(h,0);if(v.cssRules.length===1&&(h=v.cssRules[0],h instanceof CSSStyleRule))return new MS(h.cssText.replace(/</g,"\\3C "))};
sPL=function(D){try{return new URL(D,window.document.baseURI)}catch(v){return new URL("about:invalid")}};
mVI=function(D,v){var h=v.createRange();h.selectNode(v.body);D=Wd(D);return h.createContextualFragment(r0(D))};
HTA=function(D){D=D.nodeName;return typeof D==="string"?D:"FORM"};
y1f=function(D){D=D.nodeType;return D===1||typeof D!=="number"};
zY=function(D,v,h){D.setAttribute(v,h)};
wWO=function(D){return D.parts.map(function(v){var h=v.descriptor;return""+v.url+(h?" "+h:"")}).join(" , ")};
_.UV=function(D){var v=_.Kz.apply(1,arguments);if(v.length===0)return _.XY(D[0]);for(var h=D[0],a=0;a<v.length;a++)h+=encodeURIComponent(v[a])+D[a+1];return _.XY(h)};
_.Z3=function(D,v){D=_.qf(D).toString();var h=D.split(/[?#]/),a=/[?]/.test(D)?"?"+h[1]:"";return e3c(h[0],a,/[#]/.test(D)?"#"+(a?h[2]:h[1]):"",v)};
e3c=function(D,v,h,a){function Q(x,f){x!=null&&(Array.isArray(x)?x.forEach(function(C){return Q(C,f)}):(v+=G+encodeURIComponent(f)+"="+encodeURIComponent(x),G="&"))}
var G=v.length?"&":"?";a.constructor===Object&&(a=Object.entries(a));Array.isArray(a)?a.forEach(function(x){return Q(x[1],x[0])}):a.forEach(Q);
return _.XY(D+v+h)};
nJc=function(D){var v=[],h=0,a;for(a in D)v[h++]=a;return v};
OTu=function(D,v){for(var h in D)if(D[h]==v)return!0;return!1};
KOA=function(D,v,h){for(var a in D)if(v.call(h,D[a],a,D))return a};
TD4=function(D){if(!D||typeof D!=="object")return D;if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);if(D instanceof Date)return new Date(D.getTime());var v=Array.isArray(D)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(D)||D instanceof DataView?{}:new D.constructor(D.length),h;for(h in D)v[h]=TD4(D[h]);return v};
R3u=function(D){var v=arguments.length;if(v==1&&Array.isArray(arguments[0]))return R3u.apply(null,arguments[0]);if(v%2)throw Error("ma");for(var h={},a=0;a<v;a+=2)h[arguments[a]]=arguments[a+1];return h};
iTq=function(D){var v=arguments.length;if(v==1&&Array.isArray(arguments[0]))return iTq.apply(null,arguments[0]);for(var h={},a=0;a<v;a++)h[arguments[a]]=!0;return h};
EV=function(D,v,h,a){this.top=D;this.right=v;this.bottom=h;this.left=a};
WOi=function(D){D=D.global;if(D.PendingGetBeacon)return D.PendingGetBeacon};
gD=function(D){return function(v){return v.pipe(t9f(D,$J(new IP)))}};
kJ=function(D){return function(v){return v.pipe(t9f(D,GY(1)))}};
t9f=function(D,v){function h(a){return new Lf(function(Q){return a.subscribe(function(G){S9(D,function(){return void Q.next(G)},3)},function(G){S9(D,function(){return void Q.error(G)},3)},function(){S9(D,function(){return void Q.complete()},3)})})}
return UX(h,Of7(),v,bz(),h)};
Dpu=function(D){var v=r1c(D);return v===null?new J1(null):v.pipe(dE(function(h){h=h.serialize();if(uxo)h=_.$L.btoa(h);else{for(var a=[],Q=0,G=0;G<h.length;G++){var x=h.charCodeAt(G);x>255&&(a[Q++]=x&255,x>>=8);a[Q++]=x}h=_.dr(a)}return h}),D3(1),kJ(D.queue))};
vq7=function(D){var v=v===void 0?{}:v;if(typeof Event==="function")return new Event(D,v);if(typeof document!=="undefined"){var h=document.createEvent("CustomEvent");h.initCustomEvent(D,v.bubbles||!1,v.cancelable||!1,v.detail);return h}throw Error();};
hPO=function(D){return typeof D==="string"?document.getElementById(D):D};
$pq=function(D){var v=!1;v=v===void 0?!1:v;if(D.tagName==="IMG"){if(D.complete&&(!D.naturalWidth||!D.naturalHeight))return!0;var h;if(v&&((h=D.style)==null?void 0:h.display)==="none")return!0}var a,Q;return aco.test((a=D.getAttribute("width"))!=null?a:"")&&aco.test((Q=D.getAttribute("height"))!=null?Q:"")};
Qaq=function(D,v){if(D.tagName==="IMG")return D.naturalWidth&&D.naturalHeight?!0:!1;try{if(D.readyState)var h=D.readyState;else{var a,Q;h=(a=D.contentWindow)==null?void 0:(Q=a.document)==null?void 0:Q.readyState}return h==="complete"}catch(G){return v===void 0?!1:v}};
GQu=function(D){D||(D=function(v,h,a){v.addEventListener(h,a)});
return D};
Me2=function(D,v){var h=Ve8();h=h===void 0?new P92:h;if(D=hPO(D)){var a=GQu(a);for(var Q=!1,G=function(A){Q||(Q=!0,v(A))},x,f=2,C=0;C<xp8.length;++C)if(xp8[C]===D.tagName){f=3;
x=[D];break}x||(x=D.querySelectorAll(xp8.join(",")));var U=0,L=0,Z=!0,E=D=!1;C={};for(var I=0;I<x.length;C={isImg:void 0},I++){var S=x[I];if(!$pq(S))if(C.isImg=S.tagName==="IMG",Qaq(S,h.crossDomainLoadedDefault))D=!0,C.isImg&&(Z=!0);else{U++;var B=function(A){return function(d){U--;!U&&Z&&G(f);A.isImg&&(d=d&&d.type==="error",L--,d||(Z=!0),!L&&E&&Z&&G(f))}}(C);
a(S,"load",B);C.isImg&&(L++,a(S,"error",B))}}L===0&&(Z=!0);x=null;x=_.$L.document.readyState==="complete";if(U===0&&!D&&x)f=5;else if(U||!D){a(_.$L,"load",function(){!h.pendingImagesBlockLoad||!L&&Z?G(4):E=!0});
return}G(f)}};
fc7=function(D,v,h){if(D)for(var a=0;D!=null&&a<500&&!h(D);++a)D=v(D)};
C9q=function(D,v){fc7(D,function(h){try{return h===h.parent?null:h.parent}catch(a){}return null},v)};
oq4=function(D,v){if(D.tagName=="IFRAME")v(D);else{D=D.querySelectorAll("IFRAME");for(var h=0;h<D.length&&!v(D[h]);++h);}};
FSL=function(D){return(D=D.ownerDocument)&&(D.parentWindow||D.defaultView)||null};
zP2=function(D,v,h){try{var a=JSON.parse(h.data)}catch(x){}if(typeof a==="object"&&a&&a.type==="creativeLoad"){var Q=FSL(D);if(h.source&&Q){var G;C9q(h.source,function(x){try{if(x.parent===Q)return G=x,!0}catch(f){}});
G&&oq4(D,function(x){if(x.contentWindow===G)return v(a),!0})}}};
UpA=function(D){return typeof D==="string"?document.getElementById(D):D};
Icc=function(){var D={};return D[0]=_.UV(LS4,"current"),D[1]=_.UV(Z08),D[2]=_.UV(Eqf),D};
pT=function(D,v){return D.left===v.left&&D.top===v.top&&D.width===v.width&&D.height===v.height};
gqA=function(D,v){return{left:Math.max(D.left,v.left),top:Math.max(D.top,v.top),width:Math.max(0,Math.min(D.left+D.width,v.left+v.width)-Math.max(D.left,v.left)),height:Math.max(0,Math.min(D.top+D.height,v.top+v.height)-Math.max(D.top,v.top))}};
kQ8=function(D,v){return{left:Math.round(D.left+v.x),top:Math.round(D.top+v.y),width:D.width,height:D.height}};
SNq=function(D,v,h){if(D&&v!==null&&v!=v.top){if(!v.top)return new _.lU(-12245933,-12245933);v=v.top}try{return(h===void 0?0:h)?(new _.lU(v.innerWidth,v.innerHeight)).round():_.NV(v).round()}catch(a){return new _.lU(-12245933,-12245933)}};
JNq=function(D,v,h){try{if(D){if(!v.top)return new EV(-12245933,-12245933,-12245933,-12245933);v=v.top}var a=SNq(D,v,h),Q=a.height,G=a.width;if(G===-12245933)return new EV(G,G,G,G);var x=YJ(cW(v.document)),f=x.x,C=x.y;return new EV(C,f+G,C+Q,f)}catch(U){return new EV(-12245933,-12245933,-12245933,-12245933)}};
pQO=function(D){var v;return(v=D.google_tag_data)!=null?v:D.google_tag_data={}};
lcc=function(D){var v,h;return typeof((v=D.navigator)==null?void 0:(h=v.userAgentData)==null?void 0:h.getHighEntropyValues)==="function"};
YNA=function(D){if(!lcc(D))return null;var v=pQO(D);if(v.uach_promise)return v.uach_promise;D=D.navigator.userAgentData.getHighEntropyValues(NWf).then(function(h){v.uach!=null||(v.uach=h);return h});
return v.uach_promise=D};
yN2=function(D){var v;return BWO(cNu(XQq(ANo(qNA(b0q(dpO(ja4(sac(new mpO,D.architecture||""),D.bitness||""),D.mobile||!1),D.model||""),D.platform||""),D.platformVersion||""),D.uaFullVersion||""),((v=D.fullVersionList)==null?void 0:v.map(function(h){var a=new H0c;a=_.Xx(a,1,h.brand);return _.Xx(a,2,h.version)}))||[]),D.wow64||!1)};
wQc=function(D){var v,h;return(h=(v=YNA(D))==null?void 0:v.then(function(a){return yN2(a)}))!=null?h:null};
ePr=function(D,v){return new Lf(function(h){var a=!1,Q=Array(v.length);Q.fill(void 0);var G=new Set,x=new Set,f=function(Z,E){D.running?(Q[E]=Z,G.add(E),a||(a=!0,S9(D,function(){a=!1;h.next(_.n7(Q))},1))):h.error(new A1(E))},C=function(Z,E){x.add(E);
G.add(E);S9(D,function(){h.error(Z)},1)},U=function(Z){x.add(Z);
S9(D,function(){x.size===v.length&&h.complete()},1)},L=v.map(function(Z,E){return Z.subscribe(function(I){return void f(I,E)},function(I){return void C(I,E)},function(){return void U(E)})});
return function(){L.forEach(function(Z){return void Z.unsubscribe()})}})};
KS4=function(D,v,h){function a(){if(v.debugChannel){var A=v.debugChannel,d=A.next;var b={creativeId:v.debugNames.getName(h),requiredSignals:Q,signals:Object.assign({},G),hasPrematurelyCompleted:x,errorMessage:f,erroredSignalKey:C};b={specMajor:2,specMinor:0,specPatch:0,timestamp:R9(v.timeProvider.now(),new iz(0,v.timeProvider.timeline)),instanceId:v.debugNames.getName(v.symbol),creativeState:b};d.call(A,b)}}
for(var Q=Object.keys(D),G={},x=!1,f=null,C=null,U={},L=new Set,Z=[],E=[],I=_.P(Q),S=I.next(),B={};!S.done;B={key$jscomp$394:void 0},S=I.next())B.key$jscomp$394=S.value,S=D[B.key$jscomp$394],S instanceof J1?(U[B.key$jscomp$394]=S.value,L.add(B.key$jscomp$394),v.debugChannel&&(G[String(B.key$jscomp$394)]=LO2(S.value))):(S=S.pipe(vW(function(A,d){return z37(A)||z37(d)?!1:A===d}),dE(function(A){return function(d){v.debugChannel&&(G[String(A.key$jscomp$394)]=LO2(d),a());
var b={};return b[A.key$jscomp$394]=d,b}}(B)),tw(function(A){return function(d){if(d instanceof A1)throw new nqi(String(A.key$jscomp$394));
throw d;}}(B)),BDO(function(A){return function(){L.add(A.key$jscomp$394)}}(B),function(A){return function(d){C=String(A.key$jscomp$394);
f=String(d);a()}}(B),function(A){return function(){L.has(A.key$jscomp$394)||(x=!0,a())}}(B))),E.push(B.key$jscomp$394),Z.push(S));
(D=Object.keys(G).length>0)&&a();I=ePr(v.queue,Z).pipe(tw(function(A){if(A instanceof A1)throw new O0c(String(E[A.inputObservableIndex]));throw A;}),dE(function(A){return Object.freeze(Object.assign.apply(Object,[{},
U].concat(_.j_(A))))}));
return(Z=Z.length>0)&&D?e_(cp(Object.freeze(U)),I):Z?I:cp(Object.freeze(U))};
TWL=function(D,v,h,a,Q){return D.performanceMonitor.timeExecution.bind(D.performanceMonitor)(733,function(){var G={};try{return v.pipe(tw(function(x){a(Object.assign({},G,{error:x}));return wE}),Hp(function(x){try{var f=h(D,x)}catch(U){return a(Object.assign({},G,{error:U instanceof Error?U:String(U)})),wE}var C={};
return KS4(f,D,x.symbol).pipe(BDO(function(U){C=U}),GY(1),bz()).pipe(Q,tw(function(U){a(Object.assign({},C,{error:U}));
return wE}),h1(void 0),dE(function(){return!0}))})).pipe(Vz(function(x){return x+1},0),tw(function(x){a(Object.assign({},G,{error:x}));
return wE}))}catch(x){return a(Object.assign({},G,{error:x})),wE}})()};
qV=function(D){var v=new Map;if(typeof D!=="object"||D===null)return v;Object.values(D).forEach(function(h){h&&typeof h.extrapolateToNow==="function"&&(v.has(h.clock.timeline)||v.set(h.clock.timeline,h.clock.now()))});
return v};
RPc=function(D,v){return typeof D==="string"?encodeURIComponent(D):typeof D==="number"?String(D):Array.isArray(D)?D.map(function(h){return RPc(h,v)}).join(","):D instanceof iz?D.toString():D&&typeof D.extrapolateToNow==="function"?RPc(D.extrapolateUsingTimestampMap(v).value,v):D===!0?"1":D===!1?"0":D===void 0||D===null?null:D instanceof i0u?WSo(D):[D.top,
D.left,D.top+D.height,D.left+D.width].join()};
teA=function(D,v){D=Object.entries(D).map(function(h){var a=_.P(h);h=a.next().value;a=a.next().value;a=RPc(a,v);return a===null?"":h+"="+a}).filter(function(h){return h!==""});
return D.length?D.join("&"):""};
DxI=function(D,v){var h=rNq,a=u6I;v=v===void 0?.01:v;return function(Q){v>0&&Math.random()<=v&&(D.global.HTMLFencedFrameElement&&D.global.fence&&typeof D.global.fence.reportEvent==="function"&&D.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Q=Object.assign({},Q,{errorMessage:Q.error instanceof Error&&Q.error.message?Q.error.message:String(Q.error),errorStack:Q.error instanceof Error&&Q.error.stack?String(Q.error.stack):null,errorName:Q.error instanceof
Error&&Q.error.name?String(Q.error.name):null,errorContext:String(D.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Q.escapedQueryId}),h(Object.assign({},Q,{payloadMapper:function(){return function(G){try{return a(Object.assign({},G))}catch(x){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),qV(Q)).forEach(function(G){D.beaconFactory.makeBeacon(G).sendNow()}))}};
vHu=function(){var D=_.Kz.apply(0,arguments);return function(v){var h=v.pipe(GY(1),bz());v=D.map(function(a){return h.pipe(a,h1(!0))});
return sX(v).pipe(D3(1),rE())}};
hrL=function(){var D=_.Kz.apply(0,arguments);return function(v){var h=v.pipe(GY(1),bz());v=D.map(function(a){return h.pipe(a,h1(!0))});
return e_.apply(null,_.j_(v)).pipe(D3(1),rE())}};
aqL=function(D,v){return function(h){var a=h.pipe(GY(1),bz());h=a.pipe(D,h1(!0));a=a.pipe(UX(v,GY(),bz()),h1(!0));h=sX([h,a]);return oJ2(h,a).pipe(D3(1),rE())}};
$xf=function(D,v,h){h(!0)};
QuO=function(D,v){return UX(MV(function(h){var a=D(h),Q=v(h),G={};return a&&Q&&G?new Lf(function(x){Q(a,G,function(f){x.next(Object.assign({},h,{canEmit:f}));x.complete()});
return function(){}}):bU}),Kf(function(h){return h.canEmit}))};
GS8=function(D){var v={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(h){return h.pipe(MV(function(a){return new Lf(function(Q){function G(){f.disconnect();C.unsubscribe()}
var x=D.MutationObserver;if(x&&a.ref!==void 0){var f=new x(function(U){Q.next(U)});
f.observe(a.ref,v);var C=a.JSC$9364_released.subscribe(G);return G}})}))}};
VMq=function(D){if(D.measurementDeferralState===3)return null;if(D.timeOnScreenReason!==void 0){var v=D.creativeFound===!1?"n":null;if(v!==null)return v}return D.geometricMeasurementErrors instanceof dD?"msf":D.contextValidationErrors instanceof j9?"c":D.contextVisibilityKnown===!1?"pv":D.geometricMeasurementErrors||D.contextValidationErrors?"x":null};
xxO=function(D,v){return D.replace(PW4,function(h,a){try{var Q=_.sV.get(v,a);if(Q==null||Q.toString()==null)return h;Q=Q.toString();if(Q==""||!_.C7(Q==null?"":String(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(G){}return h})};
MMc=function(D,v){var h=Object.assign({},D),a=D.userAgentClientHints;h=(delete h.userAgentClientHints,h);h=D.payloadMapper(h);var Q=teA(h,v);return _.mO(D.urlPrefixes,function(G){var x="";typeof a==="string"&&(x="&"+teA({uach:a},v));var f={};return xxO(G,(f.VIEWABILITY=Q,f))+x})};
rNq=function(D,v){var h=D.payloadMapper(D),a=teA(h,v);return a?_.mO(D.urlPrefixes,function(Q){Q=Q.indexOf("?")>=0?Q:Q+"?";Q="?&".indexOf(Q.slice(-1))>=0?Q:Q+"&";return Q+a}):D.urlPrefixes};
fq8=function(){return UX(Kf(function(D){return D!==void 0}),dE(function(D){return D}))};
CWc=function(D){return UX(dE(function(){return!0}),xJ(!1),kJ(D))};
oHA=function(D){return D.length<=0?wE:sX(D.map(function(v){var h=0;return v.pipe(dE(function(a){return{index:h++,value:a}}))})).pipe(Kf(function(v){return v.every(function(h){return h.index===v[0].index})}),dE(function(v){return v.map(function(h){return h.value})}))};
Ftf=function(D,v){D.currentState&&(D.previousState=D.currentState);D.currentState=v;D.previousState&&D.previousState.value?(v=Math.max(0,R9(v.timestamp,D.previousState.timestamp)),D.totalTime+=v,D.consecutiveTime+=v):D.consecutiveTime=0;return D};
zrf=function(){return UX(Vz(Ftf,{totalTime:0,consecutiveTime:0}),dE(function(D){return D.totalTime}))};
UxO=function(){return UX(Vz(Ftf,{totalTime:0,consecutiveTime:0}),dE(function(D){return D.consecutiveTime}))};
Lt8=function(D,v){return function(h){return oHA(v.map(function(a){return h.pipe(D(a))}))}};
ZVc=function(){var D;return UX(BDO(function(v){return void(D=v.timestamp)}),UxO(),dE(function(v){return{timestamp:D,
value:Math.round(v)}}))};
EHf=function(D,v){return pT(D.topWindowViewportExternalGeometry,v.topWindowViewportExternalGeometry)&&pT(D.elementGeometry,v.elementGeometry)&&pT(D.exposedViewportLocalGeometry,v.exposedViewportLocalGeometry)&&pT(D.intersectionGeometry,v.intersectionGeometry)&&D.elementGeometrySourceName===v.elementGeometrySourceName&&D.measurementRequests===v.measurementRequests&&D.viewportGeometrySourceName===v.viewportGeometrySourceName&&D.viewportLocalAppOffset.x===v.viewportLocalAppOffset.x&&D.viewportLocalAppOffset.y===
v.viewportLocalAppOffset.y};
SY8=function(D,v){return function(h){return function(a){var Q=a.pipe($J(new IP),bz());a=h.element.pipe(vW());Q=Q.pipe(dE(function(G){return G.value}));
return sX([a,Q,v]).pipe(dE(function(G){var x=_.P(G);G=x.next().value;var f=x.next().value;x=x.next().value;if(G.ref===void 0)var C={top:0,left:0,width:0,height:0};else{C=G.ref.getBoundingClientRect();var U=G.ref,L=D.global,Z=new _.HW(0,0),E=yz(_.e9(U));if(bT8(E,"parent")){do{if(E==L)var I=_.nT(U);else I=IqO(U),I=new _.HW(I.left,I.top);Z.x+=I.x;Z.y+=I.y}while(E&&E!=L&&E!=E.parent&&(U=E.frameElement)&&(E=E.parent))}C={top:Z.y,left:Z.x,width:C.width,height:C.height}}C=kQ8(C,f.viewportLocalAppOffset);
L=gqA(C,f.exposedViewportLocalGeometry);Z=D.timeProvider.now();E=Object;U=E.assign;if(x!==2||D.inCrossDomainIframe||L.width<=0||L.height<=0)var S=!1;else try{var B=D.document.elementFromPoint(L.left+L.width/2,L.top+L.height/2);S=B?!gH7(B,G):!1}catch(A){S=!1}return{timestamp:Z,value:U.call(E,{},f,{elementGeometrySourceName:"geo",intersectionGeometry:S?kSO.intersectionGeometry:L,elementGeometry:C})}}),gD(D.queue))}}};
gH7=function(D,v,h){h=h===void 0?0:h;return D.ref===void 0||v.ref===void 0?!1:D.ref===v.ref||_.OV(v.ref,function(a){return a===D.ref})?!0:v.ref.ownerDocument&&v.ref.ownerDocument.defaultView&&v.ref.ownerDocument.defaultView===v.ref.ownerDocument.defaultView.top?!1:h<10&&v.ref.ownerDocument&&v.ref.ownerDocument.defaultView&&v.ref.ownerDocument.defaultView.frameElement?gH7(D,new KT(v.ref.ownerDocument.defaultView.frameElement),h+1):!0};
lq7=function(D){return function(v){return v.pipe(D.ResizeObserver?Jhc(D):plr(D),GY(1),bz())}};
Jhc=function(D){return function(v){return v.pipe(MV(function(h){var a=D.ResizeObserver;if(!a||h.ref===void 0)return cp(kSO.elementGeometry);var Q=(new Lf(function(G){function x(){h.ref!==void 0&&f.unobserve(h.ref);f.disconnect();C.unsubscribe()}
if(h.ref===void 0)return G.complete(),function(){};
var f=new a(function(U){U.forEach(function(L){G.next(L)})});
f.observe(h.ref);var C=h.JSC$9364_released.subscribe(x);return x})).pipe(Wp(D.performanceMonitor,736),dE(function(G){return G.contentRect}));
return e_(cp(h.ref.getBoundingClientRect()),Q)}),vW(pT))}};
plr=function(D){return function(v){var h=v.pipe(GS8(D)),a=D.onResize;h=e_(v.pipe(dE(function(){return vq7("resize")})),h,a);
return sX(v,h).pipe(Wp(D.performanceMonitor,737),dE(function(Q){Q=_.P(Q).next().value;return Q.ref===void 0?void 0:Q.ref.getBoundingClientRect()}),fq8(),vW(pT))}};
Bqc=function(D,v){var h=Nqo(D,v).pipe(GY(1),bz());return function(a){return function(Q){Q=Q.pipe(MV(function(G){return G.element}),vW());
return sX([h,Q]).pipe(MV(function(G){var x=_.P(G);G=x.next().value;x=x.next().value;return YYc(D,G.intersectionObserver,lq7(D),G.observations,a,G.flushRecords,x)}),gD(D.queue))}}};
chc=function(D){return dE(function(v){return v.value.viewportGeometrySourceName!=="nio"?v:Object.assign({},v,{value:Object.assign({},v.value,{exposedViewportLocalGeometry:TY(D,!0),topWindowViewportExternalGeometry:TY(D,!0)})})})};
Xl8=function(D,v){return cp(v).pipe(D,dE(function(){return v}))};
Nqo=function(D,v){return D.timeProvider.timeline!==AhO?Xy(new dD(2)):D.MutationObserver?typeof IntersectionObserver==="undefined"?Xy(new dD(0)):(new Lf(function(h){var a=new IP,Q=new RP(a.next.bind(a),{threshold:[].concat(_.j_(v))});h.next({observations:a.pipe(Wp(D.performanceMonitor,735)),intersectionObserver:Q,flushRecords:function(G){G=Q.takeRecords(G);G.length>0&&a.next(G)}})})).pipe(D3(1),GY(1),bz()):Xy(new dD(1))};
qYI=function(D){return bfq(D.sort(function(v,h){return v.time-h.time}),nI2)};
YYc=function(D,v,h,a,Q,G,x){return new Lf(function(f){function C(){S||(S=!0,x.ref!==void 0&&v.unobserve(Q,x.ref),L.unsubscribe(),I.unsubscribe(),E.unsubscribe(),B.unsubscribe())}
if(x.ref!==void 0){bVr(v,Q);v.observe(Q,x.ref);var U=new iU({timestamp:D.timeProvider.now(),value:Object.assign({},kSO,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),L=a.pipe(Hp(function(A){return qYI(A)}),Kf(function(A){return A.target===x.ref}),dE(function(A){return{timestamp:new iz(A.time,AhO),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:A.rootBounds||t1,topWindowViewportExternalGeometry:A.rootBounds||TY(D,!0),measurementRequests:Z,elementGeometrySourceName:"nio",intersectionGeometry:A.intersectionRect,elementGeometry:A.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:A.isIntersecting,isV2Visible:A.isVisible}}}),$J(U),bz()).subscribe(f),Z=new IP,E=Z.subscribe(function(){G(Q);
f.next({timestamp:D.timeProvider.now(),value:U.value.value});x.ref!==void 0&&(v.unobserve(Q,x.ref),v.observe(Q,x.ref))}),I=Xl8(h,x).subscribe(function(){Z.next()}),S=!1,B=x.JSC$9364_released.subscribe(function(){return C()});
return C}})};
dxr=function(D,v){var h=D.getOnBackgrounded().pipe(dE(function(){return"b"}));
return oJ2(v,h).pipe(D3(1),kJ(D.queue))};
rD=function(D){return function(v){var h;return v.pipe(BDO(function(a){return void(h=a.timestamp)}),dE(function(a){return a.value}),D,dE(function(a){return{timestamp:h,
value:a}}))}};
juI=function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.elementGeometry.width*D.elementGeometry.height)};
uU=function(D,v,h){h=h===void 0?function(a,Q){return a===Q}:h;
return D.timestamp.equals(v.timestamp)&&h(D.value,v.value)};
vQ=function(D,v){return v.pipe(dE(function(h){return new Dc(D.timeProvider,{timestamp:D.timeProvider.now(),value:h})}))};
suo=function(D){return function(v){return v.pipe(c1o(D),dE(function(h){var a=_.P(h);h=a.next().value;a=a.next().value;var Q=h.value;return{timestamp:h.timestamp,value:Q>=1?!0:Q<=0?!1:Q>=a}}))}};
HVq=function(){return UX(Kf(function(D,v){return v>0}),mxO,xJ(-1),vW())};
yhc=function(D,v,h){return D?sX([v,h]).pipe(Kf(function(a){var Q=_.P(a);a=Q.next().value;Q=Q.next().value;return a.timestamp.equals(Q.timestamp)}),dE(function(a){var Q=_.P(a);
a=Q.next().value;Q=Q.next().value;return a.value>Q.value?a:Q})):v};
nHq=function(D){return function(v){var h=v.pipe(wli),a=v.pipe(er4);return D instanceof Lf?D.pipe(MV(function(Q){return yhc(Q,h,a)})):yhc(D.value,h,a)}};
DdI=function(D,v,h,a){var Q=a.geometryIsOccluded,G=a.exposureThreshold,x=a.wasLargeAdAtRender,f=a.allowLargeAdThreshold,C=a.largeAdExposureThreshold,U=a.mayUseViewportShareExposure,L=a.hasMeasurementStarted;a=a.useIntersectionObserverV2;v=OVq(D,h,v);h=Ktq(D,h);a=TqA(v,a);var Z=Rrc(D,Q,U,v),E=Z.pipe(dE(function(O){return O.value}),vW(),kJ(D),Vz(function(O,R){return Math.max(O,R)},0)),I=Z.pipe(dE(function(O){return O.value}),HVq(),kJ(D)),S=v.pipe(iVL,dE(function(O){return O.value}),D3(2),vW(),kJ(D));
x=Wtc(D,v,x,f);var B=x.pipe(xJ(!1),vW(),dE(function(O){return O?C:G}));
f=Z.pipe(suo(B),vW(),kJ(D));var A=sX([f,v]).pipe(Kf(function(O){var R=_.P(O);O=R.next().value;R=R.next().value;return O.timestamp.equals(R.timestamp)}),dE(function(O){var R=_.P(O);
O=R.next().value;R=R.next().value;return{visible:O.value,geometry:R.value.elementGeometry}}),Vz(function(O,R){return!R.visible&&O.visible?O:R},{visible:!1,
geometry:t1}),dE(function(O){return O.geometry}),xJ(t1),kJ(D),vW(pT));
U=U instanceof Lf?U.pipe(vW(),uz()):bU;B=sX([U,B]).pipe(uz());var d=v.pipe(Kf(function(O){return O.value.viewportGeometrySourceName!=="ns"&&O.value.elementGeometrySourceName!=="ns"}),Vz(function(O){return O+1},0),xJ(0),kJ(D)),b=h.pipe(uz(!0),xJ(!1),kJ(D));
b=sX([L,b]).pipe(dE(function(O){var R=_.P(O);O=R.next().value;R=R.next().value;return O&&!R}),kJ(D));
var W=v.pipe(tMf,vW()),K=W.pipe(dE(function(O){return O.value}),Vz(function(O,R){return Math.max(O,R)},0),vW(),kJ(D));
D=W.pipe(dE(function(O){return O.value}),HVq(),kJ(D));
return{shouldResetExposureSignals:U,shouldResetViewabilitySignals:B,geometrySignals:{readyGeometryWithDefault:v,measurementStrategy:v.pipe(rhi),creativePosition:A.pipe(vW(pT)),visible:f.pipe(vW(uU)),timestampedExposure:Z.pipe(vW(uU)),maximumExposure:E,minimumExposure:I,browserSize:v.pipe(uoA,vW(_.WA)),timestampedScreenShare:W,maxScreenShare:K,minScreenShare:D,geometricMeasurementErrors:h,measurementRequests:v.pipe(dE(function(O){return O.value.measurementRequests})),
isLargeAd:x,geometryIsOccluded:Q,hasMeasurementStarted:L,geometryMeasurable:b,validMeasurementCount:d,loadTimeExposure:S,v2VisibilityBitVector:a}}};
Ktq=function(D,v){return v.pipe(Kf(function(){return!1}),dE(function(h){return h}),tw(function(h){return aa(new J1(h),D)}))};
OVq=function(D,v,h){return v.pipe(f38(bU),kJ(D)).pipe(vW(function(a,Q){return uU(a,Q,EHf)}),xJ({timestamp:h.now(),
value:kSO}),kJ(D))};
Rrc=function(D,v,h,a){h=a.pipe(nHq(h),rD(dE(function(Q){return Math.round(Q*100)/100})),kJ(D));
return v instanceof J1?h:sX([h,v]).pipe(dE(function(Q){var G=_.P(Q);Q=G.next().value;G=G.next().value;return{timestamp:G.timestamp.maximum(Q.timestamp),value:G.value?0:Q.value}}),vW(uU),kJ(D))};
Wtc=function(D,v,h,a){v=[v.pipe(dE(function(Q){return Q.value.elementGeometry.width*Q.value.elementGeometry.height>=242500}))];
h instanceof Lf&&v.push(h.pipe(dE(function(Q){return!!Q})));
h=sX(v);return a?h.pipe(dE(function(Q){return Q.some(function(G){return G})}),xJ(!1),vW(),kJ(D)):aa(new J1(!1),D)};
TqA=function(D,v){D=sX([D,v]).pipe(dE(function(Q){var G=_.P(Q);Q=G.next().value;if(G.next().value&&Q.value.isIntersecting)return Q.value.isV2Visible}),vW());
var h=D.pipe(dE(function(Q){return Q===void 0?!0:Q}),Vz(function(Q,G){return Q||!G},!1)),a=D.pipe(Vz(function(Q,G){return G===void 0?Q:G?!1:Q!=null?Q:!0},void 0),dE(function(Q){return!!Q}));
return sX([v,FO7(D,h,a)]).pipe(dE(function(Q){var G=_.P(Q);Q=G.next().value;var x=_.P(G.next().value);G=x.next().value;var f=x.next().value;x=x.next().value;var C=0;if(!Q)return 0;if(G===void 0)return 16;G&&(C|=1);G||(C|=2);f&&(C|=4);x&&(C|=8);return C}))};
G3o=function(D,v,h,a,Q){var G=vf7.timeThresholdMs;var x=x===void 0?new hj7(v,a):x;return(new Lf(function(f){var C=h.pipe(xJ(void 0),MV(function(){return a08(Q)})).pipe(dE(function(U){var L=U.value;
U=U.timestamp;var Z=L.visible;L=L.consecutiveViewTime;var E=L>=G;E||!Z?$dL(x):(U=Math.max(0,R9(v.now(),U)),Qtu(x,Math.max(0,G-L-U)));return E}),Vz(function(U,L){return L||U},!1),vW()).subscribe(f);
return function(){x.dispose();C.unsubscribe()}})).pipe(fT(function(f){return!f},!0),kJ(D))};
a08=function(D){return oHA([D,D.pipe(ZVc())]).pipe(dE(function(v){var h=_.P(v);v=h.next().value;h=h.next().value;return{timestamp:v.timestamp,value:{visible:v.value,consecutiveViewTime:h.value}}}),vW(function(v,h){return uU(v,h,function(a,Q){return a.consecutiveViewTime===Q.consecutiveViewTime&&a.visible===Q.visible})}))};
VAI=function(){return UX(UxO(),Vz(function(D,v){return Math.max(D,v)},0),dE(function(D){return Math.round(D)}))};
Pyo=function(D){return UX(suo(cp(D)),VAI())};
xdf=function(D,v){return v instanceof Lf?v.pipe(MV(function(h){return(h=h?15:null)?Xy(new dD(h)):D})):(v=v.value?15:null)?Xy(new dD(v)):D};
MAi=function(D){var v=new dD(13);if(D.length<1)return{chain:wE,capturedErrors:wE};var h=new IP,a=D[0];return{chain:D.slice(1).reduce(function(Q,G){return Q.pipe(tw(function(x){h.next(x);return G}))},a).pipe(tw(function(Q){h.next(Q);
return Xy(v)}),$J(new IP),bz()),
capturedErrors:h}};
f0i=function(D,v){var h=D.pipe($J(new IP),bz());return MV(function(a){return h.pipe(v(a))})};
ofI=function(D,v){if(D.inCrossDomainIframe)return Xy(new dD(6));var h=new IP;return e_(cp({}),v,h).pipe(dE(function(){return{timestamp:D.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:CyA(D),topWindowViewportExternalGeometry:TY(D,!0),measurementRequests:h,viewportLocalAppOffset:{x:0,y:0}}}}),gD(D.queue))};
CyA=function(D){var v=TY(D,!1);if(!D.inIframe||!dVI(D.global.parent)||D.global.parent===D.global)return v;var h=new $q(D.global.parent,D.debugChannel);h.beaconFactory=D.beaconFactory;h=CyA(h);D=D.global.frameElement.getBoundingClientRect();return gqA(kQ8(gqA(h,D),{x:v.left-D.left,y:v.top-D.top}),v)};
F92=function(D){if(D.prerendering)return 3;var v;return(v={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[D.visibilityState||D.webkitVisibilityState||D.mozVisibilityState||""])!=null?v:0};
zj4=function(D){return D.document.JSC$9375_onVisibilityChange.pipe(dE(function(v){return v==="visible"}),vW(),kJ(D.queue))};
Udo=function(D,v,h){var a;return v.pipe(vW(),MV(function(Q){return h.pipe(dE(function(){if(!a){a=!0;try{Q.next()}finally{a=!1}}return!0}))}),xJ(!1),kJ(D.queue))};
L9q=function(D){return UX(rD(dE(function(v){return v>=1?!0:v<=0?!1:v>=D})),zrf(),dE(function(v){return Math.round(v)}))};
Ef8=function(D,v,h,a,Q){var G=ZJr;if(G.length>1)for(var x=0;x<G.length-1;x++)if(G[x]<G[x+1])throw Error();x=Q.pipe(xJ(void 0),MV(function(){return h.pipe(ZVc())}),vW(),kJ(D));
Q=Q.pipe(xJ(void 0),MV(function(){return h.pipe(VAI())}),vW(),kJ(D));
return{totalMeasurementTime:a.pipe(xJ(void 0),MV(function(){return v.pipe(dE(function(f){return{timestamp:f.timestamp,value:!0}}),zrf())}),vW(),kJ(D)),
totalUnviewedTime:a.pipe(xJ(void 0),MV(function(){return v.pipe(dE(function(f){return{timestamp:f.timestamp,value:f.value===0}}),zrf())}),vW(),kJ(D)),
maxTimeOnScreen:a.pipe(xJ(void 0),MV(function(){return v.pipe(Lt8(Pyo,G))}),vW(_.WA),kJ(D)),
timeOnScreen:a.pipe(xJ(void 0),MV(function(){return v.pipe(Lt8(L9q,G),dE(function(f){return f.map(function(C,U){return U>0?C-f[U-1]:C})}))}),vW(_.WA),kJ(D)),
maxConsecutiveViewTime:Q,consecutiveViewTime:x.pipe(vW(uU),kJ(D))}};
gfA=function(D){var v=!0;v=v===void 0?!1:v;return UX(MV(function(h){return I02(D.document,h,v)}),kJ(D.queue))};
k3c=function(D,v,h){var a=h.pipe(dE(function(Q){return{value:Q,timestamp:D.timeProvider.now()}}),vW(uU));
return v instanceof Lf?v.pipe(vW(),MV(function(Q){return Q?aa(new J1({value:!1,timestamp:D.timeProvider.now()}),D.queue):a})):v.value===!1?a:new J1(!1)};
SMI=function(D,v,h,a,Q,G,x){var f=vf7;v=v instanceof Lf?v.pipe(xJ(!1),vW()):v;var C=!D.isMobile();h=k3c(D,h,a);D=x.measurableCreative.pipe(CWc(D.queue));return Object.assign({},f,{geometryIsOccluded:h,wasLargeAdAtRender:Q,allowLargeAdThreshold:C,mayUseViewportShareExposure:v,hasMeasurementStarted:D,useIntersectionObserverV2:G})};
pvr=function(D,v,h,a,Q,G){var x=1;G=G===void 0?!0:G;x=x===void 0?.01:x;var f=f===void 0?D.timeProvider.intervalObservable(100).pipe(kJ(D.queue)):f;return D.performanceMonitor.timeExecution(916,function(){return J$2(D,v.pipe(gD(D.queue)),h.pipe(gD(D.queue)),a,Q,G,x,f)})()};
J$2=function(D,v,h,a,Q,G,x,f){var C=zj4(D).pipe(dE(function(L){return!L})),U=new l0f(D,[new NM2(D,ZJr),
new YMq(D,f)]);f=vHu(BMA,c$7);return TWL(D,v,function(L,Z){var E=aa(new J1(Z.element),L.queue).pipe(gfA(L),kJ(L.queue)),I={loadedElement:E,shouldMeasure:E.pipe(uz(!0)),measurableCreative:E.pipe(dE(function(O){var R=R===void 0?Symbol():R;return Object.freeze({symbol:R,element:aa(new J1(O),L.queue)})})),
creativeSearchResult:aa(new J1("mue"),L.queue)},S=new J1(!1),B=new J1(!1),A=new J1(17),d=new J1(!1),b=new J1(!1),W=aa(Q5,L.queue);S=U.buildGeometrySource(I,{inApp:S,useV2:!1,requestSource:aa(A,L.queue)}).geometrySource;I=SMI(L,d,B,C,b,W,I);B=DdI(L.queue,L.timeProvider,S,I);I=B.geometrySignals;d=B.shouldResetViewabilitySignals;B=Ef8(L.queue,I.timestampedExposure,I.visible,B.shouldResetExposureSignals,d);d=G3o(L.queue,L.timeProvider,d,I.measurementRequests,I.visible);b=h.pipe(Kf(function(O){return O===
Z.element.ref}),dE(function(){return"ur"}));
W=ZT2(L.timeProvider,Q).pipe(uz("t"));b=dxr(L,e_(b,W));W=Udo(L,I.measurementRequests,b.pipe(Kf(function(O){return O!==null})));
S=b.pipe(Kf(function(O){return O!==null}),dE(function(){return F92(L.global.document)===1}));
var K=Xvi(L.document);return Object.assign({},{beaconFactory:new J1(L.beaconFactory),context:new J1(L),inferredPingId:new J1("lidar2"),timeOnScreenPingId:new J1("lidartos"),binaryContext:new J1(17),binaryVersion:new J1(a),requestSource:A,contextValidationErrors:new J1(L.validate()?null:new j9),contextVisibilityKnown:new J1(K),payloadMapper:new J1(u6I),endOfSessionReason:b,timeOnScreenReason:b,requestMeasurementOnEndOfSession:W,hasImpressionFired:A$r,crossDomainIframeState:new J1(L.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Q5,inFetchLaterBeaconExperiment:Q5,isTurtlex:Q5,turtlexReportEventData:new J1(""),reportFencedFrameEvent:bU,isViewableAttributionEnabled:Q5,inViewableAttributionExperiment:new J1(0),fetchBeaconFactory:bU,supportsPendingBeacon:Q5,supportsFetchLater:Q5,emit:new J1($xf),beginToRenderEvent:new J1(Symbol()),activeViewUnmeasurableEvent:new J1(Symbol()),activeViewViewableEvent:new J1(Symbol()),creativeFound:A$r,immediateUrlPrefixes:new J1(Z.immediateUrls),timeOnScreenUrlPrefixes:new J1(Z.timeOnScreenUrls),
cpmavUrls:bU,viewableRelayUrls:bU,measurementDeferralState:new J1(2),urlSerializer:new J1(MMc),viewUrlSerializer:new J1(qMi),isCreativeLoaded:E.pipe(CWc(L.queue)),pageVisible:C.pipe(dE(function(O){return!O})),
eosPageVisible:S,timestampedExposureHistory:I.timestampedExposure.pipe(Vz(function(O,R){O.push(R);return O},[]))},I,{viewable:vQ(L,d),
maxTimeOnScreen:vQ(L,B.maxTimeOnScreen),timeOnScreen:vQ(L,B.timeOnScreen),maxConsecutiveViewTime:vQ(L,B.maxConsecutiveViewTime),consecutiveViewTime:B.consecutiveViewTime.pipe(dE(function(O){return new Dc(L.timeProvider,O)})),
totalMeasurementTime:vQ(L,B.totalMeasurementTime),totalUnviewedTime:vQ(L,B.totalUnviewedTime),userAgentClientHints:Dpu(L),clientOrderPingCounter:new J1(new i0u)})},DxI(D,x),hrL(G?aqL(f,bJO):aqL(f,ddI),jtr))};
stq=function(D){var v=_.Kz.apply(1,arguments).filter(Boolean).join("&");if(!v)return D;var h=D.match(/[?&]adurl=/);return h?D.slice(0,h.index+1)+v+"&"+D.slice(h.index+1):D+(D.indexOf("?")<0?"?":"&")+v};
GQ=function(D,v){return v?"&"+D+"="+encodeURIComponent(v):""};
md8=function(){try{var D,v;return!!((D=window)==null?0:(v=D.top)==null?0:v.location.href)&&!1}catch(h){return!0}};
_.V5=function(D){D&&typeof D.dispose=="function"&&D.dispose()};
_.PQ=function(D){for(var v=0,h=arguments.length;v<h;++v){var a=arguments[v];_.O8(a)?_.PQ.apply(null,a):_.V5(a)}};
y$O=function(){var D=HJA();D=D===void 0?"bevasrsg":D;return new Promise(function(v){var h=window===window.top?window:md8()?window:window.top,a=h[D],Q;((Q=a)==null?0:Q.bevasrs)?v(new xq(a.bevasrs)):(a||(a={},a=(a.nqfbel=[],a),h[D]=a),a.nqfbel.push(function(G){v(new xq(G))}))})};
wvf=function(D){var v={c:D.pG,e:D.aHO,mc:D.sx8,me:D.ppQ};D.l8&&(v.co={c:D.l8.rlK,a:D.l8.uzd,s:D.l8.kES});return v};
ej8=function(D){var v,h,a={pG:D.c,aHO:D.e,sx8:(v=D.mc)!=null?v:!1,ppQ:(h=D.me)!=null?h:!1};D.co&&(a.l8={rlK:D.co.c,uzd:D.co.a,kES:D.co.s});return a};
nfq=function(D){return function(){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D(),2);v=h.yieldResult;return h.return({f:function(){return v.pzX()},
c:function(a){return v.iot(a)},
m:function(a){return v.b6(ej8(a))},
mws:function(a){return v.znr(ej8(a))}})})}};
OJL=function(D,v){var h=HJA();h=h===void 0?"bevasrsg":h;v={s:function(G){var x;return D.snapshot(Object.assign({},G.c&&{pG:G.c},G.s&&{j1G:G.s},{u7K:(x=G.p)!=null?x:!0}))},
e:function(G){var x;return void((x=D.lkK)==null?void 0:x.call(D,G))},
c:function(G,x){return D.h2H(G,x)},
p:D.tU6,l:function(){return D.w32()},
wpc:v?nfq(v):void 0};var a=window===window.top?window:md8()?window:window.top,Q=a[h];if(Q){Q.bevasrs=v;if(Q.nqfbel!==void 0)for(h=_.P(Q.nqfbel),a=h.next();!a.done;a=h.next())a=a.value,a(v);Q.nqfbel=void 0}else Q={},Q=(Q.bevasrs=v,Q.nqfbel=void 0,Q),a[h]=Q};
TMo=function(D){var v=v===void 0?51:v;var h=[];_.Mp(D,K9c,6,_.f0()).forEach(function(a){_.C0(a,2)<=v&&h.push(_.C0(a,1))});
return h};
Rj2=function(D){var v=v===void 0?51:v;var h=[];_.Mp(D,K9c,6,_.f0()).forEach(function(a){_.C0(a,2)>v&&h.push(_.C0(a,1))});
return h};
iJo=function(D){D.then(function(){},function(){})};
oa=function(D){return{fieldType:1,fieldName:D}};
F6=function(D){return{fieldType:2,fieldName:D}};
_.zQ=function(D){return{fieldType:3,fieldName:D}};
W9A=function(){function D(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;L=U=0}
function v(Z){for(var E=x,I=0;I<64;I+=4)E[I/4]=Z[I]<<24|Z[I+1]<<16|Z[I+2]<<8|Z[I+3];for(I=16;I<80;I++)Z=E[I-3]^E[I-8]^E[I-14]^E[I-16],E[I]=(Z<<1|Z>>>31)&4294967295;Z=Q[0];var S=Q[1],B=Q[2],A=Q[3],d=Q[4];for(I=0;I<80;I++){if(I<40)if(I<20){var b=A^S&(B^A);var W=1518500249}else b=S^B^A,W=1859775393;else I<60?(b=S&B|A&(S|B),W=2400959708):(b=S^B^A,W=3395469782);b=((Z<<5|Z>>>27)&4294967295)+b+d+W+E[I]&4294967295;d=A;A=B;B=(S<<30|S>>>2)&4294967295;S=Z;Z=b}Q[0]=Q[0]+Z&4294967295;Q[1]=Q[1]+S&4294967295;Q[2]=
Q[2]+B&4294967295;Q[3]=Q[3]+A&4294967295;Q[4]=Q[4]+d&4294967295}
function h(Z,E){if(typeof Z==="string"){Z=unescape(encodeURIComponent(Z));for(var I=[],S=0,B=Z.length;S<B;++S)I.push(Z.charCodeAt(S));Z=I}E||(E=Z.length);I=0;if(U==0)for(;I+64<E;)v(Z.slice(I,I+64)),I+=64,L+=64;for(;I<E;)if(G[U++]=Z[I++],L++,U==64)for(U=0,v(G);I+64<E;)v(Z.slice(I,I+64)),I+=64,L+=64}
function a(){var Z=[],E=L*8;U<56?h(f,56-U):h(f,64-(U-56));for(var I=63;I>=56;I--)G[I]=E&255,E>>>=8;v(G);for(I=E=0;I<5;I++)for(var S=24;S>=0;S-=8)Z[E++]=Q[I]>>S&255;return Z}
for(var Q=[],G=[],x=[],f=[128],C=1;C<64;++C)f[C]=0;var U,L;D();return{reset:D,update:h,digest:a,digestString:function(){for(var Z=a(),E="",I=0;I<Z.length;I++)E+="0123456789ABCDEF".charAt(Math.floor(Z[I]/16))+"0123456789ABCDEF".charAt(Z[I]%16);return E}}};
hx8=function(D,v){v=v===void 0?tAo:v;if(!r$q){var h;D=(h=D.navigator)==null?void 0:h.userAgentData;if(!D||typeof D.getHighEntropyValues!=="function"||D.brands&&typeof D.brands.map!=="function")return Promise.reject(Error("ua"));udA((D.brands||[]).map(function(Q){var G=new DMc;G=_.Xx(G,1,Q.brand);return _.Xx(G,2,Q.version)}));
typeof D.mobile==="boolean"&&_.UN(vdu,2,D.mobile);r$q=D.getHighEntropyValues(v)}var a=new Set(v);return r$q.then(function(Q){var G=vdu.clone();a.has("platform")&&_.Xx(G,3,Q.platform);a.has("platformVersion")&&_.Xx(G,4,Q.platformVersion);a.has("architecture")&&_.Xx(G,5,Q.architecture);a.has("model")&&_.Xx(G,6,Q.model);a.has("uaFullVersion")&&_.Xx(G,7,Q.uaFullVersion);return G.serialize()}).catch(function(){return vdu.serialize()})};
L0=function(D,v,h,a){this.initialValue_=D;this.maxValue_=v;this.currBaseValue_=this.currValue_=D;this.randomFactor_=h||0;this.backoffFactor_=a||2};
Zc=function(D){this.src=D;this.listeners={};this.typeCount_=0};
Gii=function(){for(var D;D=aXo.remove();){try{D.fn.call(D.scope)}catch(v){QO(v)}$Mu.put(D)}QZf=!1};
_.VOc=function(D){switch(D){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
P88=function(D){switch(D){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.xM2=function(){};
ZxO=function(D,v,h,a){D=MOr(fXL(C8u(new _.EN(1828,"0"),D),new odA)).disableWithCredentials();v.length&&Fbu(D,zxI(new UM8,v));a!==void 0&&(D.destinationUrl=a);var Q=new Lb8(1828,"","",!1,"",D.build());_.Ia(Q,D);var G=new Se({flush:function(x){try{Q.flush(x)}catch(f){h(f)}}});
G.addOnDisposeCallback(function(){setTimeout(function(){try{G.snapshotAndFlush()}finally{Q.dispose()}})});
G.invocationLimit=1E5;G.flushInterval=3E4;G.JSC$9791_flushTimer.setInterval(3E4);return G};
JN=function(){var D,v,h;return(h=(D=globalThis.performance)==null?void 0:(v=D.now)==null?void 0:v.call(D))!=null?h:Date.now()};
gd7=function(D,v){if(D.disable)return new Edc;v=v?TMo(v):[];D={mK:D.mK,vmG:D.q4i,u3d:D.wQi,destinationUrl:D.destinationUrl,wBJ:D.wBJ,u1z:D.u1z};v=v===void 0?[]:v;return new IX4(D,v)};
ki8=function(D){if(!D)return null;D=_.p0(D,2);return D===null||D===void 0?null:Wd(D)};
_.Szi=function(D){if(!D)return null;D=_.p0(D,4);return D===null||D===void 0?null:_.XY(D)};
lXc=function(D,v){return v?JO8(v):D?pVi(D):Promise.resolve()};
JO8=function(D){return new Promise(function(v,h){var a=_.l9("SCRIPT"),Q=_.Szi(D);_.Ge(a,Q);a.onload=function(){_.Np(a);v()};
a.onerror=function(){_.Np(a);h(Error("Fa"))};
(Yq("HEAD")[0]||document.documentElement).appendChild(a)})};
pVi=function(D){return new Promise(function(v){var h=_.l9("SCRIPT");if(D){var a=_.p0(D,6);a=a===null||a===void 0?null:_.$I(a)}else a=null;_.QM(h,a);(Yq("HEAD")[0]||document.documentElement).appendChild(h);_.Np(h);v()})};
BQ=function(D,v,h){var a,Q=new Promise(function(G){a=setTimeout(G,v)});
return Promise.race([D.finally(function(){return void clearTimeout(a)}),
Q.then(h)])};
Nlf=function(D,v){try{return globalThis.sessionStorage.setItem(D,v),!0}catch(h){return!1}};
Yzr=function(D,v,h,a){v=v===void 0?0:v;h=h===void 0?D.length:h;var Q=0;for(a&&(Q=Yzr(a));v<h;v++)a=typeof D==="string"?D.charCodeAt(v):D[v],Q=Bl4(31,Q)+a|0;return Q};
cO8=function(D,v){return[Yzr(D,0,D.length>>1,v),Yzr(D,D.length>>1)]};
XV4=function(D){var v=_.P(cO8(D,cQ));D=v.next().value;v=v.next().value;return D.toString(16)+v.toString(16)};
AOi=function(D,v){var h=cO8(v);D=new Uint32Array(D.buffer);v=D[0];var a=_.P(h);h=a.next().value;a=a.next().value;for(var Q=1;Q<D.length;Q+=2){for(var G=v,x=Q,f=h,C=a,U=0;U<22;U++)x=x>>>8|x<<24,x+=G|0,x^=f+38293,G=G<<3|G>>>29,G^=x,C=C>>>8|C<<24,C+=f|0,C^=U+38293,f=f<<3|f>>>29,f^=C;G=[G,x];D[Q]^=G[0];Q+1<D.length&&(D[Q+1]^=G[1])}};
qzf=function(D,v,h,a,Q){var G=(4-(cQ.length+h.length)%4)%4,x=new Uint8Array(4+G+cQ.length+4+h.length),f=new DataView(x.buffer),C=0;f.setUint32(C,Math.random()*4294967295);C=C+4+G;x.set(cQ,C);C+=cQ.length;f.setUint32(C,Q);x.set(h,C+4);AOi(x,a);return D.insert(v,function(U){return void globalThis.sessionStorage.removeItem(U)})?Nlf(v,_.dr(x))?"s":"t":"i"};
bxI=function(D,v){var h=globalThis.sessionStorage.getItem(D);if(!h)return["m"];try{var a=_.DJ(h);AOi(a,v)}catch(Q){return globalThis.sessionStorage.removeItem(D),["c"]}for(v=4;v<7&&a[v]===0;)v++;for(h=0;h<cQ.length;h++)if(a[v++]!==cQ[h])return globalThis.sessionStorage.removeItem(D),["d"];h=(new DataView(a.buffer)).getUint32(v);return Math.floor(Date.now()/1E3)>=h?(globalThis.sessionStorage.removeItem(D),["e"]):["a",new Uint8Array(a.buffer,v+4)]};
dM7=function(D){return globalThis.TextEncoder?(new TextEncoder).encode(D):_.X6(D)};
jZO=function(D){var v=D,h;return function(){if(v){var a=v;v=void 0;h=a.apply(this,arguments)}return h}};
mMc=function(D){return X9(function(v){if(v instanceof D)return!0;var h,a,Q=v==null?void 0:(h=v.ownerDocument)==null?void 0:(a=h.defaultView)==null?void 0:a[D.name];return sZq(Q)&&v instanceof Q})};
_.b9=function(D,v,h){_.AN.call(this);this.JSC$10005_listener_=D;this.JSC$10005_interval_=v||0;this.handler_=h;this.callback_=(0,_.qp)(this.JSC$10007_doAction_,this)};
_.dW=function(D){D=Hxc(D);return _.XY(D)};
Hxc=function(D){return D===null?"null":D===void 0?"undefined":D};
wVA=function(D){if(D&&D.focus)if(D!==document.activeElement)D.focus();else return yOA(function(){return _.M(function(v){document.activeElement&&document.activeElement.blur();return v.return(yOA(function(){D.focus()}))})})};
_.exq=function(D){var v=v===void 0?5:v;setTimeout(function(){var h;return _.M(function(a){a.nextAddress==1&&(h=document.activeElement);if(a.nextAddress!=5)return(document.activeElement===h||document.activeElement===document.body)&&v>=0&&D?a.yield(wVA(D),5):a.jumpTo(0);if(document.activeElement===D)return a.return();D=D.parentElement;--v;return a.jumpTo(2)})},15)};
yOA=function(D){return new Promise(function(v){requestAnimationFrame(function(){v(D())})})};
Oxu=function(D){if(_.je)D(_.je);else{var v;((v=ndi)!=null?v:ndi=[]).push(D)}};
mS=function(){!_.je&&_.sN&&_.Kb8(_.sN());return _.je};
_.Kb8=function(D){_.je=D;var v;(v=ndi)==null||v.forEach(Oxu);ndi=void 0};
_.HQ=function(D){_.je&&_.je.beforeLoadModuleCode(D)};
_.y5=function(){_.je&&_.je.JSC$11061_setLoaded()};
wW=function(D){return b47(D)?Number(D):String(D)};
Tlc=function(D){this.action=D;this.wfv=!1};
RxO=function(D,v){Tlc.call(this,"set-drive-options");this.appId=D;this.appOrigin=v};
ixc=function(D){Tlc.call(this,"visibility");this.visible=D};
Wbi=function(D,v,h){ee.call(this,D,v,h)};
FdA=function(D){ON.call(this,D)};
zd2=function(D){D=D&&D.getWindow()||window;return D.gadgets&&D.gadgets.rpc};
Ldq=function(D,v){var h=v&&v.getWindow()||window;if(zd2(v))D();else if(UHi)UHi.push(D);else var a=UHi=[D],Q=h.setInterval(function(){if(zd2(v)){h.clearInterval(Q);for(var G=0;G<a.length;G++)a[G]();UHi=null}},100)};
Ezc=function(D,v){var h=new K0(D);_.Ia(v,h);var a={passive:!1};v.listen(h,"mousewheel",function(Q){return void ZLc(D,Q)},a).listen(D,"scroll",function(Q){return void ZLc(D,Q)},a)};
ZLc=function(D,v){var h;a:{for(h=v.target;h;){if(h.nodeType==1){var a=_.TQ(h,"overflowY");if(a=="auto"||a=="scroll")break a}h=h.parentNode}h=null}if(!h||!_.Ra(D,h)||h.scrollHeight==h.clientHeight||v.deltaY>0&&Math.abs(h.scrollTop-(h.scrollHeight-h.clientHeight))<=1||v.deltaY<0&&h.scrollTop==0)v.preventDefault(),v.stopPropagation()};
hh=function(D,v,h,a,Q,G,x,f,C){f=f===void 0?!1:f;C=C===void 0?!1:C;ee.call(this,void 0,void 0,void 0);ee.call(this,G?G+" picker modal-dialog":"picker modal-dialog",!0,h);_.i9(D,"protocol");this.iframeManager_=new Iou;this.targetId_=WQ();this.rpcToken_=WQ();D=_.tN(D);_.rW(D,"hostId");h=_.rW(D,"parent");this.useGapi_=!C&&!0||(h==null?void 0:h.includes("onepick.corp.google.com"));f&&_.Dq(D,"fv2","true");this.setUrl(D.toString());this.preferredDialogWidth_=a;this.preferredDialogHeight_=Q;a!==void 0||
Q!==void 0?a=!0:(a=_.rW(_.tN(D.toString()),"hostId"),gzi||(gzi=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),a=!gzi.has(a));this.autoSizeDialog_=a;this.JSC$10195_gadgetsDomHelper_=x||this.JSC$10146_dom_;v&&(x=this.JSC$10195_gadgetsDomHelper_,v=_.rW(_.tN(this.JSC$10197_url_),"grugl")=="true"?kmO:SWf,zd2(x)||(x=x||cW(document),a=x.createElement("SCRIPT"),_.Ge(a,v),a.type="text/javascript",x.JSC$9330_document_.body.appendChild(a)));
D=D.toString();v=null;x=D.indexOf("/picker?");x>-1?v=D.substring(0,x+8-1):PA(D,"/picker")&&(v=D);v&&this.setRelayUrl(v+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(D=this.buttons_,D.JSC$10180_element_=this.buttonEl_,D.render()):_.VM(this.buttonEl_,J28),_.vl(this.buttonEl_,!!this.buttons_))};
_.YWo=function(D){var v=v===void 0?pKc:v;var h=_.iq(D),a=function(G){G=_.P(G);G.next();G=au(G);return v(h,G)},Q=function(G){var x=_.P(G);
G=x.next().value;x=au(x);return D.apply(G,x)};
return function(){var G=_.Kz.apply(0,arguments),x=this||_.$L,f=loO.get(x);f||(f={},loO.set(x,f));return Nau(f,[this].concat(_.j_(G)),Q,a)}};
$H=function(D){var v={};D=D.replace(/\r/g,"").split("\n");for(var h=0;h<D.length;h++){var a=D[h],Q=a.indexOf(":");Q<0||(v[a.substring(0,Q)]=a.substring(Q+2,a.length))}return v};
Bar=function(D,v,h){h=h===void 0?function(){}:h;
return D?v():h()};
_.XKL=function(D){var v;return((v=c22.documentOverride)!=null?v:D).__wizdispatcher};
_.GS=function(D){var v=Q6;Q6=D;return v};
_.qW2=function(D){return D===A2c||(D==null?void 0:D.name)==="\u0275NotFound"};
_.V6=function(D,v){var h;if((h=D)==null?0:h.isDisposed)throw Error("jb`"+String(D.debugName));for(;D!==void 0;){h=D;if(h.retrieve)return h.retrieve(v,{optional:!0});D=D.parent}return A2c};
Pl=function(D){return{"\u0275prov":{providedIn:"root",token:Symbol(D),factory:void 0,value:void 0}}};
_.bLI=function(D){var v=Q6;if(!v){switch(D===void 0?3:D){case 0:D=Error("ib");break;case 1:D=Error("kb");break;case 2:D=Error("lb");break;default:D=Error("mb")}throw D;}return v};
dHO=function(D){var v=_.GS(D);D={};return D[Symbol.dispose]=function(){_.GS(v)},D};
jeq=function(D,v){D.disposables||(D.disposables=[]);D.disposables.push(v)};
xH=function(D){var v=Q6;v&&!v.isDisposed&&(jeq(v,D),D.parent=v)};
mH4=function(D){if(D.disposables){for(var v=_.P(D.disposables),h=v.next();!h.done;h=v.next())h=h.value,typeof h==="function"?h():se4(h);D.disposables.length=0}};
se4=function(D){if(!D.isDisposed){D.isDisposed=!0;var v;(v=D[Symbol.dispose])==null||v.call(D);delete D.parent;mH4(D)}};
Rdu=function(D){var v={retrieve:function(h){switch(h.\u0275prov.token){case HL8.\u0275prov.token:var a=D.asyncDeps;break;case _.y2u.\u0275prov.token:a=D.rootElement;break;case wKO.\u0275prov.token:a=D.modelRootElement;break;case edI.\u0275prov.token:a=D.appContext;break;case nzu.\u0275prov.token:a=D.rendererData;break;case OL7.\u0275prov.token:a=D.injectingConstructor;break;case KdL.\u0275prov.token:a=D.dispatcher}if(a)h=a;else a:{for(a=v.parent;a;){var Q=a;if(Q.retrieve){h=Q.retrieve(h);break a}a=
a.parent}a=h.\u0275prov.token;Q=Taq[a];Q!==void 0?h=Q:(Q=h.\u0275prov.providedIn,h.\u0275prov.factory?(h=h.\u0275prov.factory(),a&&Q==="root"&&(Taq[a]=h)):h=A2c)}return h}};
xH(v);return v};
iLq=function(){var D=_.bLI(1),v=_.V6(D,edI);if(!_.qW2(v))return v;D=_.V6(D,KdL);if(!_.qW2(D))return D.getOptionalAppContext()};
Wdc=function(D){if(typeof document!=="undefined"&&document&&document.getElementById&&(D=document.getElementById(D))){var v=D.tagName.toUpperCase();if(v=="SCRIPT"||v=="LINK")return D}return null};
r2q=function(D,v){if((D=D===void 0?"":D)&&v)throw Error("sb");var h="";var a=_.$L._F_jsUrl;(D=v||Wdc(D))&&(h=D.src?D.src:D.getAttribute("href"));if(a&&h){if(a!=h)throw Error("tb`"+a+"`"+h);h=a}else h=a||h;if(!tJI(h))throw Error("ub");return h};
hlc=function(){if(!ukf){ukf=!0;try{var D=r2q(_.$L._F_jsUrl?"":"base-js")}catch(a){return}var v=DYc(v_4(D)),h=Object.keys(v);h.length!==0&&Oxu(function(a){for(var Q=_.P(h),G=Q.next();!G.done;G=Q.next()){G=G.value;for(var x=_.P(Object.keys(v[G])),f=x.next();!f.done;f=x.next())a.addExtraEdge(G,f.value)}})}};
$YO=function(){var D=Object.assign({},aM2);Object.getOwnPropertyNames(aM2).forEach(function(v){Mx[v]!==void 0&&(D[v]=Mx[v])});
return D};
QBc=function(D,v){if(Mx.enablePerformanceTiming){var h,a;(a=(h=performance).mark)==null||a.call(h,D+"Start__"+v)}};
GCL=function(D,v){if(Mx.enablePerformanceTiming){var h,a;(a=(h=performance).measure)==null||a.call(h,D+"__"+v,D+"Start__"+v)}};
Vj7=function(D,v,h){var a;return D&&v?D+"__"+v:(a=D!=null?D:v)!=null?a:h};
xYu=function(D,v){var h=Object.create(PDr);h.debugName=v;!Q6||xH(h);v=_.GS(h);try{D(h)}finally{_.GS(v)}return function(){return void se4(h)}};
fM4=function(D){return fV(D)&&MjA in D};
CDc=function(D,v){return Object.is(D,v)};
ou=function(D){var v=CV;CV=D;return v};
FV2=function(D){if(Fo)throw Error("Z");if(CV!==null){var v=CV.producersTail;if(v===void 0||v.producer!==D){var h=void 0,a=CV.recomputing;if(a&&(h=v!==void 0?v.nextProducer:CV.producers,h!==void 0&&h.producer===D)){CV.producersTail=h;h.lastReadVersion=D.version;return}var Q=D.consumersTail,G;if(!(G=Q===void 0||Q.consumer!==CV)){if(a){a:{G=CV;a=G.producersTail;if(a!==void 0){G=G.producers;do{if(G===Q){a=!0;break a}if(G===a)break;G=G.nextProducer}while(G!==void 0)}a=!1}a=!a}G=a}G&&(a=zS(CV),h={producer:D,
consumer:CV,nextProducer:h,prevConsumer:Q,lastReadVersion:D.version,nextConsumer:void 0},CV.producersTail=h,v!==void 0?v.nextProducer=h:CV.producers=h,a&&o_f(D,h))}}};
LVf=function(D){if(!zS(D)||D.dirty)if(D.dirty||D.lastCleanEpoch!==zlc)(D.producerMustRecompute(D)||UYf(D))&&D.producerRecomputeValue(D),D.dirty=!1,D.lastCleanEpoch=zlc};
Zp7=function(D){if(D.consumers!==void 0){var v=Fo;Fo=!0;try{for(var h=D.consumers;h!==void 0;h=h.nextConsumer){var a=h.consumer;a.dirty||(D=void 0,a.dirty=!0,Zp7(a),(D=a.consumerMarkedDirty)==null||D.call(a,a))}}finally{Fo=v}}};
E_2=function(){var D;return((D=CV)==null?void 0:D.consumerAllowSignalWrites)!==!1};
IML=function(D){D&&(D.producersTail=void 0,D.recomputing=!0);return ou(D)};
kCq=function(D){D.recomputing=!1;var v=D.producersTail,h=v!==void 0?v.nextProducer:D.producers;if(h!==void 0){if(zS(D)){do h=g_f(h);while(h!==void 0)}v!==void 0?v.nextProducer=void 0:D.producers=void 0}};
UYf=function(D){for(D=D.producers;D!==void 0;D=D.nextProducer){var v=D.producer,h=D.lastReadVersion;if(h!==v.version)return!0;LVf(v);if(h!==v.version)return!0}return!1};
o_f=function(D,v){var h=D.consumersTail,a=zS(D);h!==void 0?(v.nextConsumer=h.nextConsumer,h.nextConsumer=v):(v.nextConsumer=void 0,D.consumers=v);v.prevConsumer=h;D.consumersTail=v;if(!a)for(D=D.producers;D!==void 0;D=D.nextProducer)o_f(D.producer,D)};
g_f=function(D){var v=D.producer,h=D.nextProducer,a=D.nextConsumer,Q=D.prevConsumer;D.nextConsumer=void 0;D.prevConsumer=void 0;a!==void 0?a.prevConsumer=Q:v.consumersTail=Q;if(Q!==void 0)Q.nextConsumer=a;else if(v.consumers=a,!zS(v))for(D=v.producers;D!==void 0;)D=g_f(D);return h};
zS=function(D){return D.consumerIsAlwaysLive||D.consumers!==void 0};
p1r=function(D){var v=Object.create(S5L);v.computation=D;D=function(){LVf(v);FV2(v);if(v.value===UY)throw v.error;return v.value};
D[JXI]=v;return D};
BfL=function(D,v){var h=Object.create(lM2);h.value=D;v!==void 0&&(h.equal=v);D=function(){FV2(h);return h.value};
D[JXI]=h;return[D,function(a){return Nfc(h,a)},
function(a){E_2()||Y5A(h);Nfc(h,a(h.value))}]};
Nfc=function(D,v){E_2()||Y5A(D);if(!D.equal(D.value,v)){D.value=v;D.version++;zlc++;Zp7(D);var h;(h=cXo)==null||h(D)}};
_.LV=function(D){var v=ou(null);try{return D()}finally{ou(v)}};
_.Zq=function(D,v,h){h=h===void 0?"":h;D=BfL(D,v==null?void 0:v.equals);var a=D[0],Q=a[JXI];Q.debugName=Vj7(v==null?void 0:v.debugName,h,"[signal]");if(!Mx.enablePerformanceTiming)return D;var G=D[1],x=D[2];return[a,function(f){X1r(function(){return void G(f)},Q)},
function(f){X1r(function(){return void x(f)},Q)}]};
X1r=function(D,v){QBc("signalSet",v.debugName);try{D()}finally{GCL("signalSet",v.debugName)}};
q54=function(D,v){var h=_.P(_.Zq(D,void 0,"cPpJzc"));D=h.next().value;h=h.next().value;D[AXq]=h;D[EY]=v;return D};
bpi=function(D){return!!D&&typeof D==="object"&&Object.getPrototypeOf(D)===Object.prototype};
dYi=function(D){return typeof D==="function"&&AXq in D&&typeof D[AXq]==="function"};
jBc=function(D,v){Object.defineProperty(D,EY,{get:function(){return v}})};
gq=function(D,v){if(Iu(D)){var h=D.map(function(G){return gq(G,v)});
jBc(h,v);return h}if(bpi(D)){h={};D=_.P(Object.entries(D));for(var a=D.next();!a.done;a=D.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;h[a]=gq(Q,v)}jBc(h,v);return h}return q54(D,v)};
sBq=function(D){if(Iu(D))return D.map(function(Q){return sBq(Q)});
if(bpi(D)){var v={};D=_.P(Object.entries(D));for(var h=D.next();!h.done;h=D.next()){var a=_.P(h.value);h=a.next().value;a=a.next().value;v[h]=sBq(a)}return v}return dYi(D)?D():D};
Hpc=function(){var D={height:0,width:0};if(!bpi(D))throw Error("Jb");var v=Symbol("Kb");return[gq(D,v),function(h,a){if(h[EY]===v)if(typeof a==="function"){var Q=[].concat(_.j_(sBq(h)));a=a(Q)||Q;mY8(h,[].concat(_.j_(a)))}else mY8(h,a);else throw Error("Lb");}]};
mY8=function(D,v){if(dYi(D))D[AXq](v);else if(Iu(D)&&Iu(v))v=gq(v,D[EY]),D.length=0,D.push.apply(D,_.j_(v));else if((bpi(D)||Iu(D))&&(Iu(v)||typeof v==="object"&&v!==null)){v=_.P(Object.entries(v));for(var h=v.next();!h.done;h=v.next()){var a=_.P(h.value);h=a.next().value;a=a.next().value;var Q=D,G=Q[h];Object.hasOwn(D,h)?mY8(G,a):Q[h]=gq(a,D[EY])}}else throw Error("Mb");};
yXi=function(D){return Object.create(Object.assign({},kH,D))};
elO=function(){var D;return(D=w1I)!=null?D:w1I=yXi({consumerAllowSignalWrites:!0})};
_.SM=function(D,v,h){h=h===void 0?"":h;var a=p1r(function(){return D()}),Q=a[JXI];
Q.debugName=Vj7(v==null?void 0:v.debugName,h,"[computed]");(v==null?void 0:v.equals)!=null&&(Q.equal=v.equals);return a};
Jh=function(D){var v=ou(n_O);try{D()}finally{ou(v)}};
ipc=function(D){switch(D.onInitType){case Opr:KVO.schedule(D);break;case Tfo:Rlc.schedule(D);break;default:_.K4(D.onInitType)}};
vXO=function(D){if(!D.isDisposed)switch(D.effectType){case pV:WVc.schedule(D);break;case tj2:rXo.schedule(D);break;case uBc:DbO.schedule(D);break;default:_.K4(D.effectType)}};
$bA=function(){if(lW>0)Mx.flushRenderEffectsDuringRender&&WVc.flush();else{for(var D=_.P(hs8),v=D.next();!v.done;v=D.next())v.value.flush();aO4()}};
aO4=function(){_.M(function(D){if(D.nextAddress==1)return D.yield(Promise.resolve(),2);for(var v=_.P(QM2),h=v.next();!h.done;h=v.next())h.value.flush();_.YI(D)})};
Vgr=function(D){Nx=!0;try{for(var v=_.P(D),h=v.next();!h.done;h=v.next()){for(var a=h.value,Q=[a],G=a;G.parent!==void 0;)G=G.parent,GRo(G)&&D.has(G)&&Q.push(G);for(;Q.length>0;){var x=Q.pop();D.delete(x);x.run()}}}finally{Nx=!1}};
YH=function(D){lW--;if(D){D=_.P(PMO);for(var v=D.next();!v.done;v=D.next())v.value.clear()}else lW>0||Nx&&!Mx.flushRenderEffectsDuringRender||$bA()};
Mgi=function(D,v,h){var a=xbO(D);Bl={name:h?a+" ("+h+")":a,isReactive:D.componentType!==cl,parent:Bl};D=v();Bl=Bl.parent;return D};
Xo=function(){var D=Bl;return D?D.isReactive:!1};
qx=function(D,v,h){var a=Bl;v&&(Bl=v);try{return h==null?D():D.call(h)}catch(G){D=G;Ah(D,Bl);if(D!==fOL){CMq=Bl;v=[];for(h=Q6;h;){var Q=void 0;v.push((Q=h.debugName)!=null?Q:"[context]");Q=void 0;h=(Q=h.parent)!=null?Q:null}oXf=v.reverse()}fOL=D;throw D;}finally{Bl=a}};
Ah=function(D,v){try{var h=FKo(v);if(h&&!D.componentStack&&(D.componentStack=h,Mx.enableComponentStacksInErrorMessages)){var a=D.message+"\n\nComponent stack: "+h;D.stack&&(D.stack=D.stack.replace(D.message,a));D.message=a}}catch(Q){}};
FKo=function(D){if(fV(D)&&D.name!==void 0&&D.isReactive!==void 0&&D.parent!==void 0||D===null){for(var v=0,h="";v<20&&D;)h+=D.name+" > ",D=D.parent,v++;D=h.slice(0,-3)}else if(Mx.enableContextBasedComponentStacks){a:{for(D=D===void 0?Q6:D;D;){if(fM4(D))break a;v=void 0;D=(v=D.parent)!=null?v:null}D=null}D=D.getComponentStack().slice(0,20).join(" > ")}else D="";return D};
xbO=function(D){return D.debugName||D.name||"[component]"};
zs4=function(D,v,h){v=Object.create(v);D&&(v.effectFn=D);h&&(v.debugName=h);xH(v);v.componentStack=Bl;return v};
_.bW=function(D,v){D=zs4(D,UbI,v);vXO(D)};
_.dq=function(D){var v=Q6;if(v){var h=Bl;jeq(v,function(){var a=ou(elO());try{qx(function(){return void D()},h)}catch(Q){throw Mx.enableContextBasedComponentStacks&&Ah(Q),Q;
}finally{ou(a)}})}};
jM=function(D,v){var h={};(v===void 0||v)&&xH(h);v=_.GS(h);try{D(h)}finally{_.GS(v)}return function(){return void se4(h)}};
_.sY=function(D){return typeof D==="function"?D():(D==null?0:D[LK2])?D.get():D};
_.mt=function(D,v){D=zs4(D,Z9I,v);vXO(D)};
EXf=function(D){if(Q6)throw Error("nb");jM(D,!1)};
Hl=function(D,v){D=_.GS(D);try{return _.LV(v)}finally{_.GS(D)}};
y6=function(D,v){var h=FKo(CMq),a,Q;var G=(Q=(a=oXf)==null?void 0:a.slice())!=null?Q:[];v={componentStack:h,contextTrace:G,errorSeverity:3,featureFlags:$YO(),tagName:v};return[D,v]};
kRI=function(D,v,h){if(Object.hasOwnProperty.call(IO8,D)&&(D=IO8[D],Object.hasOwnProperty.call(D,v)&&(D=D[v],D instanceof Array))){for(var a=null,Q=!1,G=0,x=D.length;G<x;++G){var f=D[G],C=f.contingentAttribute;if(!C)return f.contract;a===null&&(a={});C=Object.hasOwnProperty.call(a,C)?a[C]:a[C]=h(C);if(C===f.requiredValue)return f.contract;C==null&&(Q=!0)}if(Q)return null}v=gX2[v];return typeof v==="number"?v:null};
pai=function(D,v,h){var a=null;(D=SR7[D])&&(a=D[v]);return typeof a!=="number"&&((D=SR7["*"])&&(a=D[v]),typeof a!=="number")?!1:!0===JHc[a][String(h).toLowerCase()]};
NkI=function(D,v){v=kRI(D.toLowerCase(),v,function(){var a;(a=Mx.handleError)==null||a.call.apply(a,[Mx].concat(_.j_(y6(Error("Wb"),D.toLowerCase()))))});
if(v===null)return null;var h;return(h=lOi[v])!=null?h:null};
YR8=function(D,v,h){if(h===null||h===void 0)return h;v=v.toLowerCase();D=NkI(D,v);return D===null?h:D(v,h)};
Bk8=function(){};
wq=function(D,v){for(;D.length>v;)D.pop()};
cHO=function(D){D=Array(D);wq(D,0);return D};
eM=function(D,v,h){if(h==null)D.removeAttribute(v);else{var a;(a=v.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":v.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?D.setAttributeNS(a,v,h):D.setAttribute(v,h)}};
XaI=function(D,v,h){D[v]=h};
qRc=function(D,v,h){D=D.style;if(typeof h==="string")D.cssText=h;else{D.cssText="";for(var a in h)if(AHI.call(h,a)){v=D;var Q=a,G=h[a];Q.indexOf("-")>=0?v.setProperty(Q,G):v[Q]=G}}};
b9L=function(D,v,h){var a=typeof h;a==="object"||a==="function"?D[v]=h:eM(D,v,h)};
dbI=function(){var D=new Bk8;D[nV.default]=b9L;D.style=qRc;return D};
jMf=function(D,v,h,a){(a[v]||a[nV.default])(D,v,h)};
mbi=function(D,v,h){v=new sML(v,h);return D.__incrementalDOMData=v};
KV=function(D,v){if(D.__incrementalDOMData)return D.__incrementalDOMData;var h=D.nodeType===1?D.localName:D.nodeName,a=D.nodeType===1?D.getAttribute("key"):null;v=mbi(D,h,D.nodeType===1?a||v:null);if(D.nodeType===1&&(D=D.attributes,h=D.length)){a=v._attrsArr||(v._attrsArr=cHO(h*2));for(var Q=0,G=0;Q<h;Q+=1,G+=2){var x=D[Q],f=x.value;a[G]=x.name;a[G+1]=f}}return v};
H9o=function(D,v,h,a,Q){return v==h&&a==Q};
yHc=function(D){for(var v=TS,h=Wl();h!==D;){var a=h.nextSibling;v.removeChild(h);th.deleted.push(h);h=a}};
Wl=function(){return rq?rq.nextSibling:TS.firstChild};
uW=function(){rq=Wl()};
nXo=function(D,v,h){uW();var a;a:{if(a=rq){do{var Q=a,G=D,x=v,f=KV(Q,x);if(waI(Q,G,f.nameOrCtor,x,f.key))break a}while(v&&(a=a.nextSibling))}a=null}a||(D==="#text"?(h=D0.createTextNode(""),mbi(h,"#text",null),D=h):(a=D0,Q=TS,typeof D==="function"?a=new D:a=(Q=D==="svg"?"http://www.w3.org/2000/svg":D==="math"?"http://www.w3.org/1998/Math/MathML":Q==null||KV(Q).nameOrCtor==="foreignObject"?null:Q.namespaceURI)?a.createElementNS(Q,D):a.createElement(D),mbi(a,D,v),D=a,h&&D.setAttribute("nonce",h)),th.created.push(D),
a=D);h=a;if(h!==rq){if(esO.indexOf(h)>=0)for(D=TS,v=h.nextSibling,a=rq;a!==null&&a!==h;)Q=a.nextSibling,D.insertBefore(a,v),a=Q;else TS.insertBefore(h,rq);rq=h}};
O9O=function(D,v,h){nXo(D,v,h);TS=rq;rq=null;return TS};
KK7=function(){yHc(null);rq=TS;TS=TS.parentNode};
Tk8=function(){rq=TS.lastChild};
WK8=function(D,v){v=v===void 0?{}:v;var h=v.matches===void 0?H9o:v.matches;return function(a,Q,G){var x=th,f=D0,C=esO,U=vv,L=h$,Z=rq,E=TS,I=waI;D0=a.ownerDocument;th=new Rsq(a);waI=h;vv=[];h$=[];rq=null;var S=TS=a.parentNode,B,A=i9q.call(a);if((B=A.nodeType===11||A.nodeType===9?A.activeElement:null)&&a.contains(B)){for(A=[];B!==S;)A.push(B),B=B.parentNode||(S?B.host:null);S=A}else S=[];esO=S;try{return D(a,Q,G)}finally{a=th,at&&a.deleted.length>0&&at(a.deleted),D0=f,th=x,waI=I,vv=U,h$=L,rq=Z,TS=E,
esO=C}}};
tgf=function(D,v,h,a){$f.push(jMf);$f.push(D);$f.push(v);$f.push(h);$f.push(a)};
uLL=function(D,v,h){var a=h$;v=v._attrsArr||(v._attrsArr=cHO(a.length));for(var Q=!v.length||!1,G=0;G<a.length;G+=2){var x=a[G];if(Q)v[G]=x;else if(v[G]!==x)break;var f=a[G+1];if(Q||v[G+1]!==f)v[G+1]=f,tgf(D,x,f,h)}if(G<a.length||G<v.length){for(G=Q=G;G<v.length;G+=2)Q7[v[G]]=v[G+1];for(G=Q;G<a.length;G+=2)Q=a[G],x=a[G+1],Q7[Q]!==x&&tgf(D,Q,x,h),v[G]=Q,v[G+1]=x,delete Q7[Q];wq(v,a.length);for(var C in Q7)tgf(D,C,void 0,h),delete Q7[C]}D=rHc;rHc=h=$f.length;for(C=D;C<h;C+=5)(0,$f[C])($f[C+1],$f[C+
2],$f[C+3],$f[C+4]);rHc=D;wq($f,D);wq(a,0)};
Dc4=function(D){nXo("#text",null);var v=rq;var h=KV(v);if(h.text!==D){h=h.text=D;for(var a=1;a<arguments.length;a+=1)h=(0,arguments[a])(h);v.data!==h&&(v.data=h)}};
VCL=function(D,v,h){if(h===!1&&vR8.has(v))eM(D,v,null);else if(v!=="idomKey"&&v!=="skip"&&v!=="skipchildren"&&v!=="children"&&v!=="el")if(v.startsWith("on")){if(v[2]!==":")throw Error("Sb`"+v);if(h===void 0||h===null){var a;(a=Mx.handleError)==null||a.call.apply(a,[Mx].concat(_.j_(y6(Error("$b`"+v),D.tagName))));D[v]=void 0}else{var Q=v.slice(3);a=Xo();if(Q==="jsaction"){h=Array.isArray(h)?h:[h];h=_.P(h);for(var G=h.next();!G.done;G=h.next()){G=G.value;if(typeof G!=="object"||G===null||typeof G.selfReg!==
"function")throw Error("Tb`"+v);G.selfReg(0,D,a?_.dq:function(){})}}else{if(typeof h!=="object"||h===null)throw Error("Vb`"+v+"`"+typeof h);
if(typeof h.getFn!=="function")throw Error("Ub`"+v+"`"+Object.keys(h));if(h.selfReg)h.selfReg(0,D,Q,a?_.dq:function(){});
else if(a&&D["on"+Q]===void 0){var x=h.getFn(0);D.addEventListener(Q,x);_.dq(function(){return void D.removeEventListener(Q,x)})}else if(a||!hu8.includes(Q))D["on"+Q]=h.getFn(0)}}}else{if(v.startsWith("data-")&&typeof h==="string")try{h=aFu(h)}catch(f){h="zSoyz"}typeof h!=="function"||D._disposeEffects!=null?((a=v.startsWith("prop:"))&&(v=v.slice(5)),Mx.enableAttributeSanitization&&(a&&$cq(D.tagName)||(h=YR8(D.tagName,v,h))),v==="style"?("function"==typeof _.G3&&h instanceof _.G3&&(h=h.toString()),
Qrf(D,v,h)):a?D[v]=h:GTI(D,v,h)):(D._signalProps||(D._signalProps=[]),D._signalValues||(D._signalValues=[]),D._signalProps.push(v))}};
P4i=function(D,v,h){h=(h===void 0?{}:h).isReactive;if(v==null?0:v.el){var a=v.el,Q;(Q=a.onRender)==null||Q.call(a,D);D._disposeRef||(D._disposeRef=function(){var G;(G=a.onUnmount)==null||G.call(a);delete D._disposeRef},h&&_.dq(function(){var G;
(G=D._disposeRef)==null||G.call(D)}))}};
$cq=function(D){return D.length>0&&D.includes("-")&&!xcu.includes(D.toLowerCase())};
MCu=function(D){return fV(D)&&V7 in D};
fFr=function(D){return MCu(D)?D[V7].flattened:D};
C48=function(D,v){var h=_.Kz.apply(2,arguments),a;v=(a=v)!=null?a:{};a={};return a.type=D,a.props=v,a.children=h,a[Pv]=!0,a};
_.xf=function(D){return D.children};
Md=function(D){var v=oR7!==C48;oR7=D?F3u:C48;return v};
_.fJ=function(D){return _.Ro(D)?"nodeType"in D:!1};
CJ=function(){return document.createTextNode("")};
ot=function(D){D=document.createTextNode(String(D));D._isSignalTextNode=!0;return D};
Ucc=function(D){return D!=null&&D.contentKind===Fd||D instanceof iH||zuq(D)};
L3q=function(D){var v=document.createElement("div");if(zuq(D)&&ki8(D))_.VM(v,ki8(D));else if(D instanceof iH)_.VM(v,D);else if(D!=null&&D.contentKind===Fd){if(D.contentKind!==Fd)throw Error("Zb");D=Wd(D.toString());_.VM(v,D)}D=_.P(v.childNodes);for(var h=D.next();!h.done;h=D.next())h.value._isSafeOrSanitizedHtmlNode=!0;return v};
z3=function(D){D=typeof D;return D==="string"||D==="number"||D==="boolean"};
Zmf=function(D){return D instanceof cd||sQ(D)||D instanceof MS||"function"==typeof _.G3&&D instanceof _.G3};
ERI=function(D,v){var h=D.parentElement;if(!h)return v;h.replaceChild(v,D);return v};
IF8=function(D,v){var h=D[0].parentElement;if(h)if(D[0].previousSibling||D[D.length-1].nextSibling){h.insertBefore(v,D[0]);for(var a=D.length-1;a>=0;a--)h.removeChild(D[a])}else h.textContent="",h.appendChild(v);return v};
gRu=function(D,v){if(D[0].parentElement)for(var h=D[0].parentElement,a=v.length,Q=D.length,G=a,x=0,f=0,C=D[Q-1].nextSibling,U=null;x<Q||f<G;)if(D[x]===v[f])x++,f++;else{for(;D[Q-1]===v[G-1];)Q--,G--;if(Q===x)for(var L=G<a?f?v[f-1].nextSibling:v[G-f]:C;f<G;){var Z=v[f++];h.insertBefore(Z,L)}else if(G===f)for(;x<Q;)L=D[x],U&&U.has(L)||h.removeChild(L),x++;else if(D[x]===v[G-1]&&v[f]===D[Q-1])L=D[--Q].nextSibling,h.insertBefore(v[f++],D[x++].nextSibling),h.insertBefore(v[--G],L),D[Q]=v[G];else{if(!U)for(U=
new Map,L=f;L<G;)U.set(v[L],L++);L=U.get(D[x]);if(L==null)h.removeChild(D[x]),x++;else if(f<L&&L<G){Z=x;for(var E=1,I=void 0;++Z<Q&&Z<G&&(I=U.get(D[Z]))!=null&&I===L+E;)E++;if(E>L-f)for(Z=D[x];f<L;)h.insertBefore(v[f++],Z);else h.replaceChild(v[f++],D[x++])}else x++}}return v};
Sif=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("jc`"+D.length+"`"+D.map(kTu).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof _.a9)){var v,h;if((v=window)==null?0:(h=v.trustedTypes)==null?0:h.isScript(D))throw Error("ic");if(String(D).trim().length===0)return null;throw Error("kc`"+kTu(D));}return D};
JB7=function(D,v){v=Sif(v);v!==null&&_.QM(D,v)};
pTf=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("lc`"+D.length+"`"+D.map(kTu).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof MS)){if(String(D).trim().length===0)return null;throw Error("mc`"+kTu(D));}return D};
lFO=function(D,v){v=pTf(v);v!==null&&(D.textContent=Lko(v))};
kTu=function(D){return"("+typeof D+") "+(D!=null&&typeof D==="object"?D.constructor.name:typeof D)+" "+D};
NdI=function(){};
EM=function(D,v){v=v===void 0?{}:v;var h=YiO(),a=!0,Q,G=!!Mx.legacyTriggerSoyRendererEvents;G&&(Q=iLq());_.mt(function(){var x=!a&&v.isControlFlowComponent&&G,f=x?h[V7].flattened[0].parentElement:void 0;a=!1;_.LJ.setUp();v.isControlFlowComponent&&lW++;var C=h[0],U=h[V7].flattened,L=Md(!0);try{var Z=D(),E=Bd7(C,Z,h);Array.isArray(E)||(h[V7].flattened=[E]);var I=h[V7].flattened;if(U&&(!Array.isArray(U)||U.length!==0)){var S=Array.isArray(U)?U[0]:U,B=S[Z0],A=S._disposeEffects;S._disposeEffects=void 0;
S=Array.isArray(I)?I[0]:I;S[Z0]=B;S[Z0]&&(S[Z0].numNodes=S===I?1:I.length);S._disposeEffects=A}h[0]=E;v.isControlFlowComponent&&YH(!1)}catch(d){throw v.isControlFlowComponent&&YH(!0),d;}finally{Md(L),_.LJ.tearDown()}x&&(x=Q,x!=null||(x=_.XKL(document).getAppContext()),x.get(cBr).JSC$29075_getEventTarget().dispatchEvent(new XTL(ABu,f,Fd)))},v.debugName);
return h};
Bd7=function(D,v,h){for(;typeof v==="function";)v=v();if(v!=null&&v[Pv]){var a,Q,G;(G=Mx.handleError)==null||G.call.apply(G,[Mx].concat(_.j_(y6(Error("nc`"+((a=v.type)==null?void 0:a.TAG_NAME)),(Q=v.type)==null?void 0:Q.TAG_NAME))))}if(D==null)return v==null?CJ():z3(v)?ot(v):Zmf(v)?ot(v.toString()):_.fJ(v)?v:v.length===0?CJ():qiq(v,h);if(_.fJ(D)){if(v==null)return ERI(D,CJ());if(z3(v))return bmf(D,v);if(Zmf(v))return bmf(D,v.toString());if(_.fJ(v))return ERI(D,v);if(v.length===0)return ERI(D,CJ());
v=qiq(v,h);gRu([D],h[V7].flattened);return v}D=It(D);if(v==null)return IF8(D,CJ());if(z3(v))return IF8(D,ot(v));if(Zmf(v))return IF8(D,ot(v.toString()));if(_.fJ(v))return gRu(D,[v])[0];if(v.length===0)return IF8(D,CJ());v=qiq(v,h);gRu(D,h[V7].flattened);return v};
bmf=function(D,v){D.nodeType===Node.TEXT_NODE?D.textContent!==String(v)&&(D.textContent=String(v)):D=ERI(D,ot(v));return D};
It=function(D,v,h){return dc7(D,v!=null?v:[],h===void 0?!1:h)};
qiq=function(D,v){var h=It(D,void 0,!0);if(h.length===0)return CJ();v[V7].flattened=h;return D};
dc7=function(D,v,h,a,Q){v=v===void 0?[]:v;h=h===void 0?!1:h;Q=Q===void 0?-1:Q;if(D==null)return v;if(D instanceof kf){var G=D.render();return dc7(G,v,h,a,Q)}if(_.fJ(v)&&v.nodeType===Node.ELEMENT_NODE)switch(v.tagName){case "SCRIPT":JB7(v,D);return;case "STYLE":lFO(v,D);return}z3(D)&&(D=ot(D),a&&h&&(a[Q]=D));if(Ucc(D)){h=L3q(D);h=Array.from(h.childNodes);h=_.P(h);for(G=h.next();!G.done;G=h.next())jrL(v,G.value);return v}Zmf(D)&&(D=ot(D.toString()),a&&h&&(a[Q]=D));if(_.fJ(D))return jrL(v,D);if(Array.isArray(D)){for(G=
0;G<D.length;G++)dc7(D[G],v,h,D,G);return v}if(typeof D==="function"){G=EM(function(){var f=D();return f!=null&&!z3(f)&&Ucc(f)?(f=L3q(f),Array.from(f.childNodes)):f},{debugName:"qmF2ne",
debugFn:D})[0];if(Array.isArray(G)){h=_.P(G);for(G=h.next();!G.done;G=h.next())jrL(v,G.value);return v}a&&h&&(a[Q]=G);return jrL(v,G)}if(D!=null&&D[Pv]){a=D;Q=Md(!0);var x=oR7;try{G=x.apply(null,[a.type,a.props].concat(_.j_(a.children)))}finally{Md(Q)}return dc7(G,v,h)}(x=Mx.handleError)==null||x.call.apply(x,[Mx].concat(_.j_(y6(Error("oc")))));return v};
YiO=function(D){var v={};v=Object.assign([],(v[V7]={flattened:[]},v));if(!D)return v;v[0]=qiq(D,v);return v};
jrL=function(D,v){Array.isArray(D)?D.push(v):D.appendChild(v);return D};
SA=function(D){if(!Mx.enableLazyTsx)return D;if(Array.isArray(D)){for(var v=0;v<D.length;v++)D[v]=SA(D[v]);return D}return D instanceof kf?(D=D.render(),SA(D)):D};
mcc=function(D,v){var h,a,Q=xbO(D),G=function(I){a=I;I=Md(!0);var S=ou(J$);QBc("render",Q);try{h=SA(D(v))}finally{GCL("render",Q),ou(S),Md(I)}};
G=Mx.enableContextPerComponent?xYu(G,Q):jM(G,Mx.alwaysTrackContexts||!!Q6);fM4(a);if(!v.renderedFromIdom){var x=_.GS(a);try{return srL(D,v,h),h}finally{_.GS(x)}}!MCu(h)&&Array.isArray(h)&&(h=YiO(h));var f=fFr(h);x=Array.isArray(f)?f[0]:f;var C=!1;if(x){var U,L=(U=v==null?void 0:v.idomKey)!=null?U:D;U=f!==x;x._disposeEffects=G;var Z=x[Z0]||{},E=MCu(h)?h:Z.sourceDynamicRange;Object.assign(Z,{key:L,numNodes:U?f.length:1,context:a,higherOrder:!!x[Z0],sourceDynamicRange:E});x[Z0]=Z}else C=!0;(function(){var I=
_.GS(a);try{srL(D,v,f)}finally{_.GS(I)}})();
C&&G();return h};
HmI=function(D){var v={},h;for(h in D)v={prev$jscomp$24:void 0,next$jscomp$33:void 0},v.prev$jscomp$24=pJ[h],v.next$jscomp$33=D[h],pJ[h]=function(a){return function(){var Q=_.Kz.apply(0,arguments);a.prev$jscomp$24.apply(null,_.j_(Q));a.next$jscomp$33.apply(null,_.j_(Q))}}(v)};
yBO=function(){if(Xo())throw Error("pc");return ly};
wTq=function(D,v){if(!D.__unmounted&&v){D.__unmounted=!0;try{D.didUnmount()}catch(Q){var h,a;(a=Mx.handleError)==null||a.call.apply(a,[Mx].concat(_.j_(y6(Q,(h=D.__type)==null?void 0:h.TAG_NAME))))}pJ.didUnmount(D);D.el=null;v.__instance&&delete v.__instance}};
nR7=function(D,v,h){D._signalProps!=null&&D._disposeEffects==null&&((h===void 0?0:h)?D._disposeEffects=jM(function(){return void euL(D,v)},Mx.alwaysTrackContexts||!!Q6):euL(D,v))};
euL=function(D,v){_.mt(function(){for(var h=D._signalProps,a=D._signalValues,Q=0;Q<h.length;Q++){var G=h[Q],x=v[G]();a[Q]!==x&&(a[Q]=x,VCL(D,G,x))}},"e3YVbb")};
OmL=function(D,v,h){var a,Q=[];D._disposeEffects=jM(function(){_.mt(function(){var G=h();if(G===null||G===void 0)G="";if(z3(G)||G===null)a!=null||(a=document.createTextNode("")),a.parentNode!==D&&(a._isSignalTextNode=!0,D.insertBefore(a,v)),a.textContent=String(G);else if(Ucc(G)){for(var x=Q.length>0?Q[Q.length-1].nextSibling:v,f=_.P(Q),C=f.next();!C.done;C=f.next())D.removeChild(C.value);G=L3q(G);Q=Array.from(G.childNodes);G=_.P(Q);for(f=G.next();!f.done;f=G.next())D.insertBefore(f.value,x)}else throw C=
(f=(x=Bl)==null?void 0:x.name)!=null?f:"unknown",Error("ec`"+C+"`"+typeof G);},"VvDgC")},Mx.alwaysTrackContexts||!!Q6)};
Ru7=function(D,v){var h=_.Kz.apply(2,arguments);v!=null||(v={});return!Mx.enableLazyTsx||Bl!=null&&!Xo()?K32(D,v,h):new TdO(D,v,h)};
K32=function(D,v,h){if(D===_.xf)return h;if(typeof D==="function")return Bl&&!Xo()&&(v.renderedFromIdom=!0),Mgi(D,function(){var G=imc(D,v,h);if(G)return G;h.length>0&&(v.children=h.length===1?h[0]:h);if(D.componentType===cl){var x;xYu(function(){var f=v;if(D.componentType!==cl)x=!1;else{f||(f={});var C=new Nd(f,D),U=ou(J$);try{var L=C.render(f)}finally{ou(U)}L instanceof HTMLElement?(L.__instance=C,C.el=L,C.__type=D,D.TAG_NAME=L.tagName.toLowerCase(),pJ.didPatch(C),x=L):x=L}},D.name);
if(x)return x}return mcc(D,v)},v.debugInstance);
var a=W3A(D,v),Q;for(Q in v)VCL(a,Q,v[Q]);nR7(a,v);It(h,a);P4i(a,v,{isReactive:!0});tCf(a,v);return a};
W3A=function(D,v){D=(rBc.has(D.toLowerCase())?0:un2.has(D.startsWith("svg:")?D.replace("svg:",""):D))?document.createElementNS("http://www.w3.org/2000/svg",D.startsWith("svg:")?D.replace("svg:",""):D):DFq(D,v)||document.createElement(D);D[vEf]=!0;return D};
hyc=function(D){if(D){var v;(v=D._disposeRef)==null||v.call(D);var h;(h=D._disposeEffects)==null||h.call(D);D.__instance&&D.__instance instanceof Yf&&(v=D.__instance,wTq(v,D),v instanceof Nd&&v.disposeEffects());for(v=0;v<D.childNodes.length;v++)hyc(D.childNodes[v])}};
$FL=function(D){aD2.push(D)===1&&requestAnimationFrame(function(){setTimeout(function(){var v=[].concat(_.j_(aD2));aD2=[];v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;try{for(var a=0;a<h.length;a++)hyc(h[a])}catch(Q){a=h=void 0,(a=(h=Mx).handleError)==null||a.call.apply(a,[h].concat(_.j_(y6(Q))))}}})})};
_.F=function(D,v){return oR7.apply(null,[D,v].concat(_.j_(_.Kz.apply(2,arguments))))};
_.Bv=function(D){return D};
_.cv=function(D){return{isDefault:!0,children:D.children}};
_.z=function(D){var v=D.cond;if(v===void 0)return D.else&&D.else();var h=_.SM(function(){return!!v()},void 0,"JHVi8"),a=function(){var Q=v();
if(!Q){var G;(G=Mx.handleError)==null||G.call.apply(G,[Mx].concat(_.j_(y6(QNo.nonNullableCondIsNull()))))}return Q};
return EM(function(){var Q=h(),G;jM(function(){var x=ou(J$);try{G=SA(Q?D.then(a):D.else&&D.else())}finally{ou(x)}},!0);
return G},{debugName:D.debugInstance,
debugFn:D.then,isControlFlowComponent:!0})};
GU4=function(D){return _.z(D)};
_.Xd=function(D){return D.keyBy==="INDEX"?Vaq(D):P1q(D)};
xFq=function(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next()){var h=void 0;(h=v.value)==null||h()}};
P1q=function(D){var v=D.keyBy===void 0||D.keyBy==="REFERENCE",h=v?function(L){return L}:D.keyBy,a=[],Q=[],G=[],x=[],f=[],C=[],U=!0;
_.dq(function(){xFq(x)});
return EM(function(){var L=D.each(),Z=L.length;if(Z===0){if(a.length===0&&!U)return G;xFq(x);a=L;Q=[];for(L=0;L<a.length;L++)Q.push(h(a[L]));G=[];x=[];f=[];C=[];D.fallback&&(x[0]=Ma8(function(){G[0]=SA(D.fallback())}));
U=!1;return G}for(var E=new fD8,I=a.length-1;I>=0;I--)E.push(Q[I],I);I=Array(Z);for(var S=Array(Z),B=Array(Z),A=Array(Z),d=Array(v?0:Z),b={i$jscomp$450:0};b.i$jscomp$450<Z;b={i$jscomp$450:b.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$562:void 0},b.i$jscomp$450++){b.item$jscomp$104=L[b.i$jscomp$450];b.key$jscomp$562=h(b.item$jscomp$104);var W=E.pop(b.key$jscomp$562);W!=null?(B[b.i$jscomp$450]=G[W],S[b.i$jscomp$450]=Q[W],I[b.i$jscomp$450]=x[W],A[b.i$jscomp$450]=f[W],v||(d[b.i$jscomp$450]=C[W]),Jh(function(K){return function(){A[K.i$jscomp$450](K.i$jscomp$450);
if(!v)d[K.i$jscomp$450](K.item$jscomp$104)}}(b)),delete x[W]):I[b.i$jscomp$450]=Ma8(function(K){return function(){var O=_.P(_.Zq(K.i$jscomp$450,void 0,"Fqk1zd")),R=O.next().value;
O=O.next().value;A[K.i$jscomp$450]=O;S[K.i$jscomp$450]=K.key$jscomp$562;if(v)B[K.i$jscomp$450]=SA(D.children(K.item$jscomp$104,R));else{var vA=_.P(_.Zq(K.item$jscomp$104,void 0,"GBj5de"));O=vA.next().value;vA=vA.next().value;d[K.i$jscomp$450]=vA;B[K.i$jscomp$450]=SA(D.children(O,R))}}}(b))}xFq(x);
a=L;Q=S;G=B;x=I;f=A;C=d;U=!1;return B},{debugName:D.debugInstance,
debugFn:D.each,isControlFlowComponent:!0})};
Vaq=function(D){var v=[],h=[],a=[],Q=[],G=!1;_.dq(function(){for(var x=_.P(Q),f=x.next();!f.done;f=x.next())f=f.value,f()});
return EM(function(){var x=D.each();G&&x.length>0&&(Q.pop()(),v.pop(),G=!1);for(var f=Array(x.length),C={i$jscomp$451:0};C.i$jscomp$451<x.length;C={i$jscomp$451:C.i$jscomp$451},C.i$jscomp$451++)if(C.i$jscomp$451<v.length)v[C.i$jscomp$451]!==x[C.i$jscomp$451]&&(Jh(function(L){return function(){return void h[L.i$jscomp$451](x[L.i$jscomp$451])}}(C)),v[C.i$jscomp$451]=x[C.i$jscomp$451]),f[C.i$jscomp$451]=a[C.i$jscomp$451];
else{var U=Ma8(function(L){return function(){v[L.i$jscomp$451]=x[L.i$jscomp$451];var Z=_.P(_.Zq(x[L.i$jscomp$451],void 0,"JMMLmd")),E=Z.next().value;Z=Z.next().value;h[L.i$jscomp$451]=Z;f[L.i$jscomp$451]=SA(D.children(E,L.i$jscomp$451))}}(C));
Q[C.i$jscomp$451]=U}for(;v.length>x.length;)v.pop(),Q.pop()(),h.pop();x.length===0&&!G&&D.fallback&&(C=Ma8(function(){f[0]=SA(D.fallback())}),Q[0]=C,G=!0);
return a=f},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
Ma8=function(D){var v=Q6;return jM(function(h){var a=ou(J$);try{h.parent=v,D(h)}finally{ou(a)}},!1)};
_.A$=function(D){var v=C1A(D),h=_.SM(function(){return oEc(v)},void 0,"F1PF4");
return EM(function(){var a=h(),Q;jM(function(){var G=ou(J$);try{Q=SA(a())}finally{ou(G)}});
return Q},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
C1A=function(D){D=D.children;return Array.isArray(D)?D:[D]};
FnA=function(D){var v=D.props;D=D.getChildren()[0];return v.when?{when:v.when,children:D}:{isDefault:!0,children:D}};
oEc=function(D){var v=function(){return null};
D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,h!=null&&h[Pv]&&(h=h.type===_.cv?{isDefault:!0,children:h.children[0]}:{when:h.props.when,children:h.children[0]}),h instanceof kf&&(h=FnA(h)),h.isDefault)v=h.children;else if(h.when())return h.children;return v};
UFf=function(D){var v=null,h,a={get value(){var G,x;(x=(G=Q).validateGetValue)==null||x.call(G);return Q.__value},set value(G){var x,f;(f=(x=Q).validateSetValue)==null||f.call(x,G);Q.__value=G;Q.__hasBeenSet=!0}},Q=(a.__value=null,a.__hasBeenSet=!1,a.__hasErrored=!1,a.onRender=function(G){if(h&&G!==h){h._disposeRef=void 0;var x;(x=v)==null||x()}h=G;v=D(G)||null},a.onUnmount=function(){var G;
(G=v)==null||G();v=Q.value=null},a[_.zy4]=!0,a);
return Q};
qd=function(D){return typeof D==="symbol"};
Z1O=function(D){var v=yBO();if(v==null)throw _.Lnr.PRIMITIVE_INVALID_HOOK_CALL();var h=v.hookCounter++;v.hooks||(v.hooks=[]);var a=v.hooks;a[h]||(a[h]={key:D,host:v});if(D!==a[h].key){if(v.__type){var Q;D=(Q=v.__type)==null?void 0:Q.name}else D=v instanceof Nd?xbO(v.functionComponent):"<"+v.el.tagName.toLowerCase()+">";throw _.Lnr.OUT_OF_ORDER_HOOK_CALL(D);}return a[h]};
EEA=function(D,v){return!D||D.length!==(v==null?void 0:v.length)||D.some(function(h,a){return h!==v[a]})};
IDf=function(D,v){var h=Z1O("onChange"),a=yBO();EEA(h.deps,v)&&(h.deps=v,h.pendingEffect=D,a.__syncEffects||(a.__syncEffects=[]),a.__syncEffects.push(h))};
_.by=function(D,v,h){h!=null||(h={});h=h.appContext;var a=!!Mx.legacyTriggerSoyRendererEvents;_.LJ.setUp();try{var Q=gE8(D,v,h);a&&(v=h,v!=null||(v=_.XKL(document).getAppContext()),v.get(cBr).JSC$29075_getEventTarget().dispatchEvent(new XTL(kUc,D,Fd)));_.LJ.log(D);return Q}finally{_.LJ.tearDown()}};
gE8=function(D,v,h){var a=function(){var G=ou(J$);try{return jM(function(){var x=_.XKL(_.e9(D)),f;var C=Rdu({rootElement:{value:D},appContext:h||(x==null?void 0:(f=x.getOptionalAppContext)==null?void 0:f.call(x)),dispatcher:x});x=_.GS(C);C=Md(!0);lW++;try{It(v(),D),YH(!1)}catch(U){throw YH(!0),U;}finally{Md(C),_.GS(x)}},!1)}catch(x){throw Mx.enableContextBasedComponentStacks&&Ah(x),x;
}finally{ou(G)}},Q=qx(function(){return a()});
D[S9u]=!0;return function(){D.textContent="";Q();D[S9u]=!1}};
_.dM=function(D){if(GRo(CV)){var v;(v=Mx.handleError)==null||v.call.apply(v,[Mx].concat(_.j_(y6(Error("dc")))))}var h=Q6,a=Bl;ipc({onInitType:Tfo,run:function(){if(h&&!h.isDisposed){var Q=_.GS(h);try{qx(function(){return void D()},a)}catch(G){throw Mx.enableContextBasedComponentStacks&&Ah(G),G;
}finally{_.GS(Q)}}}})};
JPi=function(D,v){IDf(function(){return _.LV(D)},v)};
_.jA=function(D){Xo()?_.dM(function(){_.LV(D)}):IDf(function(){return _.LV(D)},[])};
lDq=function(D){var v=[].concat(_.j_(D));D.length=0;D=_.P(v);for(v=D.next();!v.done;v=D.next()){v=v.value;pUO(v);var h=v.pendingEffect;v.pendingEffect=null;if(h=h==null?void 0:h())v.pendingCleanup=h}};
pUO=function(D){var v=D.pendingCleanup;D.pendingCleanup=null;v==null||v()};
NKq=function(D,v){if(Xo())return D();var h=Z1O("useMemoInternal");EEA(h.deps,v)&&(h.deps=v,h.value=D());return h.value};
Y9I=function(D,v){return NKq(D,v)};
sM=function(D){return NKq(D,[])};
BKo=function(D){return sM(function(){return{value:D}})};
_.m9=function(D,v){if(!D)return null;D=Object.keys(D);D=_.P(D);for(var h=D.next();!h.done;h=D.next()){h=h.value;var a=h.toLowerCase();if(a.indexOf(v,a.length-v.length)>-1)return h}return null};
_.wM=function(){var D=arguments,v=_.y7;D.length>1?v[D[0]]=D[1]:D.length===1&&Object.assign(v,D[0])};
_.eA=function(D,v){return D in _.y7?_.y7[D]:v};
_.nJ=function(D,v){return!!_.eA(D,v)};
cPu=function(D){var v=_.y7.EXPERIMENT_FLAGS;return v?v[D]:void 0};
APL=function(D){XUI.forEach(function(v){return v(D)})};
_.KJ=function(D){return D&&window.yterr?function(){try{return D.apply(this,arguments)}catch(v){_.OM(v)}}:D};
_.OM=function(D){var v=_.T3("yt.logging.errors.log");v?v(D,"ERROR",void 0,void 0,void 0,void 0,void 0):(v=_.eA("ERRORS",[]),v.push([D,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.wM("ERRORS",v));APL(D)};
_.Wv=function(D,v,h,a,Q){var G=_.T3("yt.logging.errors.log");G?G(D,"WARNING",v,h,a,void 0,Q):(G=_.eA("ERRORS",[]),G.push([D,"WARNING",v,h,a,void 0,Q]),_.wM("ERRORS",G))};
b1u=function(D,v){v=D.split(v);for(var h={},a=0,Q=v.length;a<Q;a++){var G=v[a].split("=");if(G.length===1&&G[0]||G.length===2)try{var x=q94(G[0]||""),f=q94(G[1]||"");if(x in h){var C=h[x];Array.isArray(C)?_.K7(C,f):h[x]=[C,f]}else h[x]=f}catch(E){var U=E,L=G[0],Z=String(b1u);U.args=[{key:L,value:G[1],query:D,method:dFO===Z?"unchanged":Z}];jNO.hasOwnProperty(L)||_.Wv(U)}}return h};
sNA=function(D){var v=[];_.sV.forEach(D,function(h,a){var Q=_.t$(a);h=Array.isArray(h)?h:[h];_.rM(h,function(G){G==""?v.push(Q):v.push(Q+"="+_.t$(G))})});
return v.join("&")};
_.uy=function(D){D.charAt(0)==="?"&&(D=D.substring(1));return b1u(D,"&")};
_.DX=function(D){return D.indexOf("?")!==-1?(D=(D||"").split("#")[0],D=D.split("?",2),_.uy(D.length>1?D[1]:D[0])):{}};
_.vV=function(D,v){return mFc(D,v||{},!0)};
H1o=function(D,v){return mFc(D,v||{},!1)};
mFc=function(D,v,h){var a=D.split("#",2);D=a[0];a=a.length>1?"#"+a[1]:"";var Q=D.split("?",2);D=Q[0];Q=_.uy(Q[1]||"");for(var G in v)if(h||!_.sV.containsKey(Q,G))Q[G]=v[G];return _.hO(D,Q)+a};
Gi=function(D){if(!v)var v=window.location.href;var h=_.aZ(D)[1]||null,a=_.$d(D);return h&&a?QH(D,v):a?_.$d(v)===a&&(Number(_.aZ(v)[4]||null)||null)===(Number(_.aZ(D)[4]||null)||null):!0};
_.wUi=function(D){D=yPO(D);return D===null?!1:D[0]==="com"&&D[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
yPO=function(D){D=_.$d(D);return D!==null?D.split(".").reverse():null};
q94=function(D){return D&&D.match(eyO)?D:VH(D)};
_.PV=function(D){return new nE8(D)};
_.xd=function(){O1c||(O1c=new Kn7);return O1c};
Ryc=function(){var D=TK8;return function(){var v=_.xd();if(!v.resolve(_.PV(D))){var h={};v.addProvider((h.provide=D,h.useClass=D,h[MM]=void 0,h))}return v.resolve(D)}};
Wn8=function(D){var v=_.fx,h,a;_.M(function(Q){h=_.xd();return(a=h.resolve(_.PV(v)))?(D(a),Q.return(Promise.resolve(a))):Q.return(h.resolve(new i1c(v)).then(function(G){D(G);return G}))})};
_.g=function(D){D=Cx(D);return typeof D==="string"&&D==="false"?!1:!!D};
_.oZ=function(D,v){D=Cx(D);return D===void 0&&v!==void 0?v:Number(D||0)};
tao=function(D){D=Cx(D);return Array.isArray(D)?_.mO(D,function(v){return Number(v||0)}):[Number(D||0)]};
_.FH=function(D){D=Cx(D);return D!==void 0?String(D):""};
_.zi=function(D){D=Cx(D);return Array.isArray(D)?_.mO(D,function(v){return String(v||"")}):[String(D||"")]};
rPf=function(){return _.eA("EXPERIMENTS_TOKEN","")};
Cx=function(D){return _.eA("EXPERIMENT_FLAGS",{})[D]};
u1c=function(){for(var D=[],v=_.eA("EXPERIMENTS_FORCED_FLAGS",{}),h=_.P(Object.keys(v)),a=h.next();!a.done;a=h.next())a=a.value,D.push({key:a,value:String(v[a])});h=_.eA("EXPERIMENT_FLAGS",{});a=_.P(Object.keys(h));for(var Q=a.next();!Q.done;Q=a.next())Q=Q.value,Q.startsWith("force_")&&v[Q]===void 0&&D.push({key:Q,value:String(h[Q])});return D};
vZi=function(){if(!DDA)return null;var D=DDA();return"open"in D?D:null};
_.hkL=function(D){switch(_.Uz(D)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Uz=function(D){return D&&"status"in D?D.status:-1};
_.ZX=function(D,v){typeof D==="function"&&(D=_.KJ(D));return window.setTimeout(D,v)};
_.Ez=function(D,v){typeof D==="function"&&(D=_.KJ(D));return window.setInterval(D,v)};
_.IZ=function(D){window.clearTimeout(D)};
$D4=function(D){D=_.DX(D);for(var v=_.P(aUi),h=v.next();!h.done;h=v.next())if(D[h.value]!==void 0)return!0;return!1};
Vqi=function(D,v,h,a,Q,G,x,f,C){h=h===void 0?"GET":h;a=a===void 0?"":a;f=f===void 0?!1:f;var U=vZi();if(!U)return null;var L=function(){(U&&"readyState"in U?U.readyState:0)===4&&v&&_.KJ(v)(U)};
"onloadend"in U?U.addEventListener("loadend",L,!1):U.onreadystatechange=L;_.g("debug_forward_web_query_parameters")&&(D=QGA(D,window.location.search));U.open(h,D,!0);G&&(U.responseType=G);x&&(U.withCredentials=!0);h=h==="POST"&&(window.FormData===void 0||!(a instanceof FormData));if(Q=Ga2(D,Q))for(var Z in Q)U.setRequestHeader(Z,Q[Z]),"content-type"===Z.toLowerCase()&&(h=!1);h&&U.setRequestHeader("Content-Type","application/x-www-form-urlencoded");C&&"onprogress"in U&&(U.onprogress=function(){C(U.responseText)});
if(f&&"setAttributionReporting"in XMLHttpRequest.prototype){D={eventSourceEligible:!0,triggerEligible:!1};try{U.setAttributionReporting(D)}catch(E){_.Wv(E)}}U.send(a);return U};
Ga2=function(D,v){v=v===void 0?{}:v;var h=Gi(D),a=_.eA("INNERTUBE_CLIENT_NAME"),Q=_.g("web_ajax_ignore_global_headers_if_set"),G;for(G in P07){var x=_.eA(P07[G]),f=G==="X-Goog-AuthUser"||G==="X-Goog-PageId";G!=="X-Goog-Visitor-Id"||x||(x=_.eA("VISITOR_DATA"));var C;if(!(C=!x)){if(!(C=h||(_.$d(D)?!1:!0))){C=D;var U;if(U=_.g("add_auth_headers_to_remarketing_google_dot_com_ping")&&G==="Authorization"&&(a==="TVHTML5"||a==="TVHTML5_UNPLUGGED"||a==="TVHTML5_SIMPLY"))U=yPO(C),U=U===null?!1:U[1]==="google"?
!0:U[2]==="google"?U[0]==="au"&&U[1]==="com"?!0:U[0]==="uk"&&U[1]==="co"?!0:!1:!1;U&&(C=_.gl(C)||"",C=C.split("/"),C="/"+(C.length>1?C[1]:""),U=C==="/pagead");C=U?!0:!1}C=!C}C||Q&&v[G]!==void 0||a==="TVHTML5_UNPLUGGED"&&f||(v[G]=x)}"X-Goog-EOM-Visitor-Id"in v&&"X-Goog-Visitor-Id"in v&&delete v["X-Goog-Visitor-Id"];if(h||!_.$d(D))v["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(h||!_.$d(D)){try{var L=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Z){}L&&(v["X-YouTube-Time-Zone"]=
L)}document.location.hostname.endsWith("youtubeeducation.com")||!h&&_.$d(D)||(v["X-YouTube-Ad-Signals"]=sNA(xDA()));return v};
_.Mqi=function(D,v){var h=_.$d(D);_.g("debug_handle_relative_url_for_query_forward_killswitch")||!h&&Gi(D)&&(h=document.location.hostname);var a=_.gl(D);a=(h=h&&(h.endsWith("youtube.com")||h.endsWith("youtube-nocookie.com")))&&a&&a.startsWith("/api/");if(!h||a)return D;var Q=_.uy(v),G={};_.rM(aUi,function(x){Q[x]&&(G[x]=Q[x])});
return H1o(D,G)};
fUu=function(D,v){v.method="POST";v.postParams||(v.postParams={});return _.kd(D,v)};
C0q=function(D,v){var h=_.eA("XSRF_FIELD_NAME"),a;v.headers&&(a=v.headers["Content-Type"]);return!v.excludeXsrf&&(!_.$d(D)||v.withCredentials||_.$d(D)===document.location.hostname)&&v.method==="POST"&&(!a||a==="application/x-www-form-urlencoded")&&!(v.postParams&&v.postParams[h])};
_.kd=function(D,v){var h=v.format||"JSON";D=oZf(D,v);var a=F6f(D,v),Q=!1,G=zk2(D,function(C){if(!Q){Q=!0;f&&_.IZ(f);var U=_.hkL(C),L=null,Z=400<=C.status&&C.status<500,E=500<=C.status&&C.status<600;if(U||Z||E)L=UDL(D,h,C,v.convertToSafeHtml);U&&(U=L6i(h,C,L));L=L||{};Z=v.context||_.$L;U?v.onSuccess&&v.onSuccess.call(Z,C,L):v.onError&&v.onError.call(Z,C,L);v.onFinish&&v.onFinish.call(Z,C,L)}},v.method,a,v.headers,v.responseType,v.withCredentials,!1,v.onProgress);
a=v.timeout||0;if(v.onTimeout&&a>0){var x=v.onTimeout;var f=_.ZX(function(){Q||(Q=!0,G.abort(),_.IZ(f),x.call(v.context||_.$L,G))},a)}return G};
oZf=function(D,v){v.includeDomain&&(D=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+D);var h=_.eA("XSRF_FIELD_NAME");if(v=v.urlParams)v[h]&&delete v[h],D=_.vV(D,v);return D};
F6f=function(D,v){var h=_.eA("XSRF_FIELD_NAME"),a=_.eA("XSRF_TOKEN"),Q=v.postBody||"",G=v.postParams;C0q(D,v)&&(G||(G={}),G[h]=a);(_.g("ajax_parse_query_data_only_when_filled")&&G&&Object.keys(G).length>0||G)&&typeof Q==="string"&&(Q=_.uy(Q),_.sV.extend(Q,G),Q=v.postBodyFormat&&v.postBodyFormat==="JSON"?JSON.stringify(Q):_.SO(Q));G=Q||G&&!_.sV.isEmpty(G);!ZGA&&G&&v.method!=="POST"&&(ZGA=!0,_.OM(Error("Jc")));return Q};
UDL=function(D,v,h,a){var Q=null;switch(v){case "JSON":try{var G=h.responseText}catch(x){throw a=Error("Kc"),a.params=D,_.Wv(a),x;}D=h.getResponseHeader("Content-Type")||"";G&&D.indexOf("json")>=0&&(G.substring(0,5)===")]}'\n"&&(G=G.substring(5)),Q=JSON.parse(G));break;case "XML":if(D=(D=h.responseXML)?EZO(D):null)Q={},_.rM(D.getElementsByTagName("*"),function(x){Q[x.tagName]=IU8(x)})}a&&gZc(Q);
return Q};
gZc=function(D){if(_.Ro(D))for(var v in D)v==="html_content"||PA(v,"_html")?D[v]=Wd(D[v]):gZc(D[v])};
L6i=function(D,v,h){if(v&&v.status===204)return!0;switch(D){case "JSON":return!!h;case "XML":return Number(h&&h.return_code)===0;case "RAW":return!0;default:return!!h}};
EZO=function(D){return D?(D=("responseXML"in D?D.responseXML:D).getElementsByTagName("root"))&&D.length>0?D[0]:null:null};
IU8=function(D){var v="";_.rM(D.childNodes,function(h){v+=h.nodeValue});
return v};
kac=function(D){if(D.name==="JavaException")return!0;D=D.stack;return D.includes("chrome://")||D.includes("-extension://")||D.includes("webkit-masked-url://")};
S4o=function(D){if(!D.stack)return!0;var v=!D.stack.includes("\n");return v&&D.stack.includes("ErrorType: ")||v&&D.stack.includes("Anonymous function (Unknown script")||D.stack.toLowerCase()==="not available"||D.fileName==="user-script"||D.fileName.startsWith("user-script:")?!0:!1};
_.JO=function(D){_.AN.call(this);this.JSC$10526_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!D};
pfo=function(D,v){var h=D.length,a=0,Q=function(){return D.charCodeAt(a++)};
do{var G=JA8(Q);if(G===Infinity)break;var x=G>>3;switch(G&7){case 0:G=JA8(Q);if(x===v)return G;break;case 1:if(x===v)return;a+=8;break;case 2:G=JA8(Q);if(x===v)return D.substr(a,G);a+=G;break;case 5:if(x===v)return;a+=4;break;default:return}}while(a<h)};
JA8=function(D){var v=D(),h=v&127;if(v<128)return h;v=D();h|=(v&127)<<7;if(v<128)return h;v=D();h|=(v&127)<<14;if(v<128)return h;v=D();return v<128?h|(v&127)<<21:Infinity};
NR4=function(D,v,h,a){if(D)if(Array.isArray(D)){var Q=a;for(a=0;a<D.length&&!(D[a]&&(Q+=lUc(a,D[a],v,h),Q>500));a++);a=Q}else if(typeof D==="object")for(Q in D){if(D[Q]){var G=Q;var x=D[Q],f=v,C=h;G=typeof x!=="string"||G!=="clickTrackingParams"&&G!=="trackingParams"?0:(x=pfo(atob(x.replace(/-/g,"+").replace(/_/g,"/")),2))?lUc(G+".ve",x,f,C):0;a+=G;a+=lUc(Q,D[Q],v,h);if(a>500)break}}else h[v]=px(D),a+=h[v].length;else h[v]=px(D),a+=h[v].length;return a};
lUc=function(D,v,h,a){h+="."+D;D=px(v);a[h]=D;return h.length+D.length};
px=function(D){try{return(typeof D==="string"?D:String(JSON.stringify(D))).substr(0,500)}catch(v){return"unable to serialize "+typeof D+" ("+v.message+")"}};
Y4o=function(D){switch(D){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.NM=function(D,v,h,a,Q){_.l8.set(D,v,{maxAge:h,path:"/",domain:a===void 0?"youtube.com":a,secure:Q===void 0?!1:Q})};
_.BRr=function(D,v,h){_.l8.remove(D,v===void 0?"/":v,h===void 0?"youtube.com":h)};
_.Yd=function(){if(_.g("embeds_web_enable_cookie_detection_fix")){if(!_.$L.navigator.cookieEnabled)return!1}else if(!_.l8.isEnabled())return!1;if(!_.l8.isEmpty())return!0;_.g("embeds_web_enable_cookie_detection_fix")?_.l8.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.l8.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.l8.get("TESTCOOKIESENABLED")!=="1")return!1;_.l8.remove("TESTCOOKIESENABLED");return!0};
cA2=function(){var D=_.$L.navigator;return D?D.connection:void 0};
XfI=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(D){}};
_.q4c=function(){var D=cA2();if(D){var v=AAI[D.type||"unknown"]||"CONN_UNKNOWN";D=AAI[D.effectiveType||"unknown"]||"CONN_UNKNOWN";v==="CONN_CELLULAR_UNKNOWN"&&D!=="CONN_UNKNOWN"&&(v=D);if(v!=="CONN_UNKNOWN")return v;if(D!=="CONN_UNKNOWN")return D}};
dDu=function(){var D=cA2();if(D!=null&&D.effectiveType)return bGo.hasOwnProperty(D.effectiveType)?bGo[D.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.cV=function(){try{return _.BV(),!0}catch(D){return!1}};
_.BV=function(D){if(_.eA("DATASYNC_ID")!==void 0)return _.eA("DATASYNC_ID");throw new _.XH("Datasync ID not set",D===void 0?"unknown":D);};
_.AO=function(D){this.mechanism=D};
qM=function(D){this.mechanism=D};
b8=function(D){this.storage_=D;this.cachedIsStorageAvailable_=null};
jGA=function(){var D=null;try{D=_.$L.localStorage||null}catch(v){}b8.call(this,D)};
sGc=function(){var D=null;try{D=_.$L.sessionStorage||null}catch(v){}b8.call(this,D)};
dl=function(D,v){this.mechanism_=D;this.JSC$10628_prefix_=v+"::"};
_.mDf=function(D){var v=new jGA;return v.isAvailable()?D?new dl(v,D):v:null};
_.HG7=function(D){var v=new sGc;return v.isAvailable()?D?new dl(v,D):v:null};
wfL=function(){var D;return(D=yA4())==null?void 0:D.get("LAST_RESULT_ENTRY_KEY",!0)};
_.mb=function(D){ek7||(_.jO?_.jO.logError(D):(_.sz.push({type:"ERROR",payload:D}),_.sz.length>10&&_.sz.shift()))};
HV=function(D,v){ek7||(_.jO?_.jO.logEvent(D,v):(_.sz.push({type:"EVENT",eventType:D,payload:v}),_.sz.length>10&&_.sz.shift()))};
yH=function(D){if(D.indexOf(":")>=0)throw Error("Rc");};
wl=function(D){return D.substr(0,D.indexOf(":"))||D};
K6f=function(){return(nZf||OGq)&&eO("applewebkit")&&!eO("version")&&(!eO("safari")||eO("gsa/"))};
eO=function(D){var v=_.E8();return v?v.toLowerCase().indexOf(D)>=0:!1};
iGO=function(D,v,h,a){v=wl(v);var Q=D instanceof Error?D:Error("Sc`"+D);if(Q instanceof nx)return Q;D={objectStoreNames:h,dbName:v,dbVersion:a};if(Q.name==="QuotaExceededError")return new nx("QUOTA_EXCEEDED",D);if(_.Oz&&Q.name==="UnknownError")return new nx("QUOTA_MAYBE_EXCEEDED",D);if(Q instanceof TR7)return new nx("MISSING_INDEX",Object.assign({},D,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&RkA.some(function(G){return Q.message.includes(G)}))return new nx("EXECUTE_TRANSACTION_ON_CLOSED_DB",
D);
if(Q.name==="AbortError")return new nx("UNKNOWN_ABORT",D,Q.message);Q.args=[Object.assign({},D,{name:"IdbError",originalName:Q.name})];Q.level="WARNING";return Q};
Kx=function(D,v,h){var a=wfL();return new nx("IDB_NOT_SUPPORTED",{context:{caller:D,publicName:v,version:h,hasSucceededOnce:a==null?void 0:a.hasSucceededOnce}})};
W67=function(D){if(!D)throw Error();throw D;};
tq7=function(D){return D};
rAu=function(D,v,h){var a=function(){try{D.removeEventListener("success",Q),D.removeEventListener("error",G)}catch(x){}},Q=function(){v(D.result);
a()},G=function(){h(D.error);
a()};
D.addEventListener("success",Q);D.addEventListener("error",G)};
uhf=function(D){return new Promise(function(v,h){rAu(D,v,h)})};
i8=function(D){return new Ti(new RZ(function(v,h){rAu(D,v,h)}))};
DP4=function(D,v){return new Ti(new RZ(function(h,a){var Q=function(){var G=D?v(D):null;G?G.then(function(x){D=x;Q()},a):h()};
Q()}))};
vVL=function(D,v,h){return new Promise(function(a,Q){var G=v!==void 0?self.indexedDB.open(D,v):self.indexedDB.open(D);var x=h.blocked,f=h.blocking,C=h.terminated,U=h.upgrade,L=h.closed,Z,E=function(){Z||(Z=new WV(G.result,{closed:L}));return Z};
G.addEventListener("upgradeneeded",function(I){try{if(I.newVersion===null)throw Error("Xc");if(G.transaction===null)throw Error("Yc");I.dataLoss&&I.dataLoss!=="none"&&HV("IDB_DATA_CORRUPTED",{reason:I.dataLossMessage||"unknown reason",dbName:wl(D)});var S=E(),B=new tO(G.transaction);U&&U(S,function(A){return I.oldVersion<A&&I.newVersion>=A},B);
B.done.catch(function(A){Q(A)})}catch(A){Q(A)}});
G.addEventListener("success",function(){var I=G.result;f&&I.addEventListener("versionchange",function(){f(E())});
I.addEventListener("close",function(){HV("IDB_UNEXPECTEDLY_CLOSED",{dbName:wl(D),dbVersion:I.version});C&&C()});
a(E())});
G.addEventListener("error",function(){Q(G.error)});
x&&G.addEventListener("blocked",function(){x()})})};
hfo=function(D,v,h){h=h===void 0?{}:h;return vVL(D,v,h)};
_.u8=function(D,v){v=v===void 0?{}:v;var h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return _.gE(x,2),h=self.indexedDB.deleteDatabase(D),a=v,(Q=a.blocked)&&h.addEventListener("blocked",function(){Q()}),x.yield(uhf(h),4);
if(x.nextAddress!=2)return _.rl(x,0);G=_.NS(x);throw iGO(G,D,"",-1);})};
$Pc=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1)return a.yield(_.Do(a68,v),2);h=a.yieldResult;return a.return(_.vK(h,["databases"],{enableRetries:!0,mode:"readwrite"},function(Q){var G=Q.objectStore("databases");return G.get(D.actualName).then(function(x){if(x?D.actualName!==x.actualName||D.publicName!==x.publicName||D.userIdentifier!==x.userIdentifier:1)return G.put(D).then(function(){})})}))})};
_.h2=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1)return D?a.yield(_.Do(a68,v),2):a.return();h=a.yieldResult;return a.return(h.delete("databases",D))})};
_.QXI=function(D,v){var h,a;return _.M(function(Q){return Q.nextAddress==1?(h=[],Q.yield(_.Do(a68,v),2)):Q.nextAddress!=3?(a=Q.yieldResult,Q.yield(_.vK(a,["databases"],{enableRetries:!0,mode:"readonly"},function(G){h.length=0;return ae(G.objectStore("databases"),{},function(x){D(x.getValue())&&h.push(x.getValue());return x.continue()})}),3)):Q.return(h)})};
Gbc=function(D,v){return _.QXI(function(h){return h.publicName===D&&h.userIdentifier!==void 0},v)};
xPL=function(){var D,v,h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:D=wfL();if((v=D)==null?0:v.hasSucceededOnce)return Q.return(!0);var G;if(G=VLi)G=/WebKit\/([0-9]+)/.exec(_.E8()),G=!!(G&&parseInt(G[1],10)>=600);G&&(G=/WebKit\/([0-9]+)/.exec(_.E8()),G=!(G&&parseInt(G[1],10)>=602));if(G||$z)return Q.return(!1);try{if(h=self,!(h.indexedDB&&h.IDBIndex&&h.IDBKeyRange&&h.IDBObjectStore))return Q.return(!1)}catch(x){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);
_.gE(Q,2);a={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Q.yield($Pc(a,Puo),4);case 4:return Q.yield(_.h2("yt-idb-test-do-not-use",Puo),5);case 5:return Q.return(!0);case 2:return _.NS(Q),Q.return(!1)}})};
f6f=function(){if(MLu!==void 0)return MLu;ek7=!0;return MLu=xPL().then(function(D){ek7=!1;var v;if((v=yA4())!=null&&v.expiringStorage_){var h;v={hasSucceededOnce:((h=wfL())==null?void 0:h.hasSucceededOnce)||D};var a;(a=yA4())==null||a.set("LAST_RESULT_ENTRY_KEY",v,2592E3,!0)}return D})};
Qx=function(){return _.T3("ytglobal.idbToken_")||void 0};
_.Vx=function(){var D=Qx();return D?Promise.resolve(D):f6f().then(function(v){(v=v?Puo:void 0)&&_.Gm("ytglobal.idbToken_",v);return v})};
Cu8=function(D){if(!_.cV())throw D=new nx("AUTH_INVALID",{dbName:D}),_.mb(D),D;var v=_.BV();return{actualName:D+":"+v,publicName:D,userIdentifier:v}};
oVL=function(D,v,h,a){var Q,G,x,f,C,U;return _.M(function(L){switch(L.nextAddress){case 1:return G=(Q=Error().stack)!=null?Q:"",L.yield(_.Vx(),2);case 2:x=L.yieldResult;if(!x)throw f=Kx("openDbImpl",D,v),_.g("ytidb_async_stack_killswitch")||(f.stack=f.stack+"\n"+G.substring(G.indexOf("\n")+1)),_.mb(f),f;yH(D);C=h?{actualName:D,publicName:D,userIdentifier:void 0}:Cu8(D);_.gE(L,3);return L.yield($Pc(C,x),5);case 5:return L.yield(hfo(C.actualName,v,a),6);case 6:return L.return(L.yieldResult);case 3:return U=
_.NS(L),_.gE(L,7),L.yield(_.h2(C.actualName,x),9);case 9:_.rl(L,8);break;case 7:_.NS(L);case 8:throw U;}})};
Fcu=function(D,v,h){h=h===void 0?{}:h;return oVL(D,v,!1,h)};
zfc=function(D,v,h){h=h===void 0?{}:h;return oVL(D,v,!0,h)};
UPA=function(D,v){v=v===void 0?{}:v;var h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(_.Vx(),2);if(Q.nextAddress!=3){h=Q.yieldResult;if(!h)return Q.return();yH(D);a=Cu8(D);return Q.yield(_.u8(a.actualName,v),3)}return Q.yield(_.h2(a.actualName,h),0)})};
Lc7=function(D,v,h){D=D.map(function(a){return _.M(function(Q){return Q.nextAddress==1?Q.yield(_.u8(a.actualName,v),2):Q.yield(_.h2(a.actualName,h),0)})});
return Promise.all(D).then(function(){})};
ZqI=function(D){var v=v===void 0?{}:v;var h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(_.Vx(),2);if(Q.nextAddress!=3){h=Q.yieldResult;if(!h)return Q.return();yH(D);return Q.yield(Gbc(D,h),3)}a=Q.yieldResult;return Q.yield(Lc7(a,v,h),0)})};
EVu=function(D,v){v=v===void 0?{}:v;var h;return _.M(function(a){if(a.nextAddress==1)return a.yield(_.Vx(),2);if(a.nextAddress!=3){h=a.yieldResult;if(!h)return a.return();yH(D);return a.yield(_.u8(D,v),3)}return a.yield(_.h2(D,h),0)})};
PK=function(D,v){return I6A(D,v)};
kb7=function(D){return _.Do(gVf(),D)};
SLO=function(D,v,h,a){var Q,G,x;return _.M(function(f){switch(f.nextAddress){case 1:return Q={config:D,hashData:v,timestamp:a!==void 0?a:(0,_.xz)()},f.yield(kb7(h),2);case 2:return G=f.yieldResult,f.yield(G.clear("hotConfigStore"),3);case 3:return f.yield(G.put("hotConfigStore",Q),4);case 4:return x=f.yieldResult,f.return(x)}})};
JQ4=function(D,v,h,a,Q){var G,x,f;return _.M(function(C){switch(C.nextAddress){case 1:return G={config:D,hashData:v,configData:h,timestamp:Q!==void 0?Q:(0,_.xz)()},C.yield(kb7(a),2);case 2:return x=C.yieldResult,C.yield(x.clear("coldConfigStore"),3);case 3:return C.yield(x.put("coldConfigStore",G),4);case 4:return f=C.yieldResult,C.return(f)}})};
pR7=function(D){var v,h;return _.M(function(a){return a.nextAddress==1?a.yield(kb7(D),2):a.nextAddress!=3?(v=a.yieldResult,h=void 0,a.yield(_.vK(v,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.MH(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(G){h=G.getValue()})}),3)):a.return(h)})};
l6o=function(D){var v,h;return _.M(function(a){return a.nextAddress==1?a.yield(kb7(D),2):a.nextAddress!=3?(v=a.yieldResult,h=void 0,a.yield(_.vK(v,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.MH(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(G){h=G.getValue()})}),3)):a.return(h)})};
NT7=function(){return _.M(function(D){return D.yield(ZqI("ytGcfConfig"),0)})};
YLO=function(){return"INNERTUBE_API_KEY"in _.y7&&"INNERTUBE_API_VERSION"in _.y7};
_.fL=function(){return{innertubeApiKey:_.eA("INNERTUBE_API_KEY"),innertubeApiVersion:_.eA("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.eA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.eA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.eA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.eA("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.eA("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.eA("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.eA("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.nJ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.nJ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.eA("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.dPq=function(D){var v={client:{hl:D.innertubeContextHostLanguage,gl:D.innertubeContextGeoLocation,clientName:D.innertubeContextClientName,clientVersion:D.innertubeContextClientVersion,configInfo:D.innertubeContextClientConfigInfo}};navigator.userAgent&&(v.client.userAgent=String(navigator.userAgent));var h=_.$L.devicePixelRatio;h&&h!=1&&(v.client.screenDensityFloat=String(h));h=rPf();h!==""&&(v.client.experimentsToken=h);h=u1c();h.length>0&&(v.request={internalExperimentFlags:h});BT7(D,void 0,v);
cQf(void 0,v);XRI(void 0,v);AQc(D,void 0,v);qL8(void 0,v);_.g("start_client_gcf")&&bq2(void 0,v);_.eA("DELEGATED_SESSION_ID")&&!_.g("pageid_as_header_web")&&(v.user={onBehalfOfUser:_.eA("DELEGATED_SESSION_ID")});!_.g("fill_delegate_context_in_gel_killswitch")&&(D=_.eA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(v.user=Object.assign({},v.user,{serializedDelegationContext:D}));D=_.eA("INNERTUBE_CONTEXT");var a;if(_.g("enable_persistent_device_token")&&(D==null?0:(a=D.client)==null?0:a.rolloutToken)){var Q;
v.client.rolloutToken=D==null?void 0:(Q=D.client)==null?void 0:Q.rolloutToken}a=Object;Q=a.assign;D=v.client;h={};for(var G=_.P(Object.entries(_.uy(_.eA("DEVICE","")))),x=G.next();!x.done;x=G.next()){var f=_.P(x.value);x=f.next().value;f=f.next().value;x==="cbrand"?h.deviceMake=f:x==="cmodel"?h.deviceModel=f:x==="cbr"?h.browserName=f:x==="cbrver"?h.browserVersion=f:x==="cos"?h.osName=f:x==="cosver"?h.osVersion=f:x==="cplatform"&&(h.platform=f)}v.client=Q.call(a,D,h);return v};
BT7=function(D,v,h){D=D.innertubeContextClientName;if(D==="WEB"||D==="MWEB"||D===1||D===2)if(v){h=_.CL(v,jXo,96)||new jXo;var a=sX8();a=Object.keys(mPL).indexOf(a);a=a===-1?null:a;a!==null&&_.oe(h,3,a);_.lH(v,96,h)}else h&&(h.client.mainAppWebInfo=(a=h.client.mainAppWebInfo)!=null?a:{},h.client.mainAppWebInfo.webDisplayMode=sX8())};
cQf=function(D,v){var h=_.T3("yt.embedded_player.embed_url");h&&(D?(v=_.CL(D,Hqf,7)||new Hqf,_.Xx(v,4,h),_.lH(D,7,v)):v&&(v.thirdParty={embedUrl:h}))};
XRI=function(D,v){var h;if(_.g("web_log_memory_total_kbytes")&&((h=_.$L.navigator)==null?0:h.deviceMemory)){var a;h=(a=_.$L.navigator)==null?void 0:a.deviceMemory;D?_.Fk(D,95,oU(h*1E6)):v&&(v.client.memoryTotalKbytes=""+h*1E6)}};
AQc=function(D,v,h){if(D.appInstallData)if(v){var a;h=(a=_.CL(v,zm,62))!=null?a:new zm;_.Xx(h,6,D.appInstallData);_.lH(v,62,h)}else h&&(h.client.configInfo=h.client.configInfo||{},h.client.configInfo.appInstallData=D.appInstallData)};
qL8=function(D,v){var h=_.q4c();h&&(D?_.oe(D,61,yQ4[h]):v&&(v.client.connectionType=h));_.g("web_log_effective_connection_type")&&(h=dDu())&&(D?_.oe(D,94,wRi[h]):v&&(v.client.effectiveConnectionType=h))};
_.Oqq=function(D,v,h){h=h===void 0?{}:h;var a={};_.eA("EOM_VISITOR_DATA")?a={"X-Goog-EOM-Visitor-Id":_.eA("EOM_VISITOR_DATA")}:a={"X-Goog-Visitor-Id":h.visitorData||_.eA("VISITOR_DATA","")};if(v&&v.includes("www.youtube-nocookie.com"))return a;v=h.authorization||_.eA("AUTHORIZATION");v||(D?v="Bearer "+_.T3("gapi.auth.getToken")().access_token:(efc.instance||(efc.instance=new efc),D=nVc(),_.g("pageid_as_header_web")||delete D["X-Goog-PageId"],a=Object.assign({},a,D)));v&&(a.Authorization=v);return a};
bq2=function(D,v){var h=Kcf();if(h){var a=h.coldConfigData,Q=h.coldHashData;h=h.hotHashData;if(D){var G;v=(G=_.CL(D,zm,62))!=null?G:new zm;a=_.Xx(v,1,a);_.Xx(a,3,Q).setHotHashData(h);_.lH(D,62,v)}else v&&(v.client.configInfo=v.client.configInfo||{},a&&(v.client.configInfo.coldConfigData=a),Q&&(v.client.configInfo.coldHashData=Q),h&&(v.client.configInfo.hotHashData=h))}};
UW=function(D){for(var v=D.length;--v>=0;)D[v]=0};
TTc=function(D,v,h,a,Q){this.static_tree=D;this.extra_bits=v;this.extra_base=h;this.elems=a;this.max_length=Q;this.has_stree=D&&D.length};
Rfo=function(D,v){this.dyn_tree=D;this.max_code=0;this.stat_desc=v};
LL=function(D,v){D.pending_buf[D.pending++]=v&255;D.pending_buf[D.pending++]=v>>>8&255};
Zo=function(D,v,h){D.bi_valid>16-h?(D.bi_buf|=v<<D.bi_valid&65535,LL(D,D.bi_buf),D.bi_buf=v>>16-D.bi_valid,D.bi_valid+=h-16):(D.bi_buf|=v<<D.bi_valid&65535,D.bi_valid+=h)};
EW=function(D,v,h){Zo(D,h[v*2],h[v*2+1])};
iq7=function(D,v){var h=0;do h|=D&1,D>>>=1,h<<=1;while(--v>0);return h>>>1};
Wcc=function(D,v,h){var a=Array(16),Q=0,G;for(G=1;G<=15;G++)a[G]=Q=Q+h[G-1]<<1;for(h=0;h<=v;h++)Q=D[h*2+1],Q!==0&&(D[h*2]=iq7(a[Q]++,Q))};
tLq=function(D){var v;for(v=0;v<286;v++)D.dyn_ltree[v*2]=0;for(v=0;v<30;v++)D.dyn_dtree[v*2]=0;for(v=0;v<19;v++)D.bl_tree[v*2]=0;D.dyn_ltree[512]=1;D.opt_len=D.static_len=0;D.last_lit=D.matches=0};
rQ2=function(D){D.bi_valid>8?LL(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf);D.bi_buf=0;D.bi_valid=0};
uTc=function(D,v,h){rQ2(D);LL(D,h);LL(D,~h);Ie.arraySet(D.pending_buf,D.window,v,h,D.pending);D.pending+=h};
Diq=function(D,v,h,a){var Q=v*2,G=h*2;return D[Q]<D[G]||D[Q]===D[G]&&a[v]<=a[h]};
vU4=function(D,v,h){for(var a=D.heap[h],Q=h<<1;Q<=D.heap_len;){Q<D.heap_len&&Diq(v,D.heap[Q+1],D.heap[Q],D.depth)&&Q++;if(Diq(v,a,D.heap[Q],D.depth))break;D.heap[h]=D.heap[Q];h=Q;Q<<=1}D.heap[h]=a};
GH7=function(D,v,h){var a=0;if(D.last_lit!==0){do{var Q=D.pending_buf[D.d_buf+a*2]<<8|D.pending_buf[D.d_buf+a*2+1];var G=D.pending_buf[D.l_buf+a];a++;if(Q===0)EW(D,G,v);else{var x=kz[G];EW(D,x+256+1,v);var f=htc[x];f!==0&&(G-=aWc[x],Zo(D,G,f));Q--;x=Q<256?SJ[Q]:SJ[256+(Q>>>7)];EW(D,x,h);f=$iq[x];f!==0&&(Q-=Qy2[x],Zo(D,Q,f))}}while(a<D.last_lit)}EW(D,256,v)};
VBO=function(D,v){var h=v.dyn_tree,a=v.stat_desc.static_tree,Q=v.stat_desc.has_stree,G=v.stat_desc.elems,x,f=-1;D.heap_len=0;D.heap_max=573;for(x=0;x<G;x++)h[x*2]!==0?(D.heap[++D.heap_len]=f=x,D.depth[x]=0):h[x*2+1]=0;for(;D.heap_len<2;){var C=D.heap[++D.heap_len]=f<2?++f:0;h[C*2]=1;D.depth[C]=0;D.opt_len--;Q&&(D.static_len-=a[C*2+1])}v.max_code=f;for(x=D.heap_len>>1;x>=1;x--)vU4(D,h,x);C=G;do x=D.heap[1],D.heap[1]=D.heap[D.heap_len--],vU4(D,h,1),a=D.heap[1],D.heap[--D.heap_max]=x,D.heap[--D.heap_max]=
a,h[C*2]=h[x*2]+h[a*2],D.depth[C]=(D.depth[x]>=D.depth[a]?D.depth[x]:D.depth[a])+1,h[x*2+1]=h[a*2+1]=C,D.heap[1]=C++,vU4(D,h,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1];x=v.dyn_tree;C=v.max_code;a=v.stat_desc.static_tree;Q=v.stat_desc.has_stree;G=v.stat_desc.extra_bits;var U=v.stat_desc.extra_base,L=v.stat_desc.max_length,Z,E=0;for(Z=0;Z<=15;Z++)D.bl_count[Z]=0;x[D.heap[D.heap_max]*2+1]=0;for(v=D.heap_max+1;v<573;v++){var I=D.heap[v];Z=x[x[I*2+1]*2+1]+1;Z>L&&(Z=L,E++);x[I*2+1]=Z;if(!(I>
C)){D.bl_count[Z]++;var S=0;I>=U&&(S=G[I-U]);var B=x[I*2];D.opt_len+=B*(Z+S);Q&&(D.static_len+=B*(a[I*2+1]+S))}}if(E!==0){do{for(Z=L-1;D.bl_count[Z]===0;)Z--;D.bl_count[Z]--;D.bl_count[Z+1]+=2;D.bl_count[L]--;E-=2}while(E>0);for(Z=L;Z!==0;Z--)for(I=D.bl_count[Z];I!==0;)a=D.heap[--v],a>C||(x[a*2+1]!==Z&&(D.opt_len+=(Z-x[a*2+1])*x[a*2],x[a*2+1]=Z),I--)}Wcc(h,f,D.bl_count)};
Pcc=function(D,v,h){var a,Q=-1,G=v[1],x=0,f=7,C=4;G===0&&(f=138,C=3);v[(h+1)*2+1]=65535;for(a=0;a<=h;a++){var U=G;G=v[(a+1)*2+1];++x<f&&U===G||(x<C?D.bl_tree[U*2]+=x:U!==0?(U!==Q&&D.bl_tree[U*2]++,D.bl_tree[32]++):x<=10?D.bl_tree[34]++:D.bl_tree[36]++,x=0,Q=U,G===0?(f=138,C=3):U===G?(f=6,C=3):(f=7,C=4))}};
xii=function(D,v,h){var a,Q=-1,G=v[1],x=0,f=7,C=4;G===0&&(f=138,C=3);for(a=0;a<=h;a++){var U=G;G=v[(a+1)*2+1];if(!(++x<f&&U===G)){if(x<C){do EW(D,U,D.bl_tree);while(--x!==0)}else U!==0?(U!==Q&&(EW(D,U,D.bl_tree),x--),EW(D,16,D.bl_tree),Zo(D,x-3,2)):x<=10?(EW(D,17,D.bl_tree),Zo(D,x-3,3)):(EW(D,18,D.bl_tree),Zo(D,x-11,7));x=0;Q=U;G===0?(f=138,C=3):U===G?(f=6,C=3):(f=7,C=4)}}};
MB8=function(D){var v=4093624447,h;for(h=0;h<=31;h++,v>>>=1)if(v&1&&D.dyn_ltree[h*2]!==0)return 0;if(D.dyn_ltree[18]!==0||D.dyn_ltree[20]!==0||D.dyn_ltree[26]!==0)return 1;for(h=32;h<256;h++)if(D.dyn_ltree[h*2]!==0)return 1;return 0};
J2=function(D,v,h){D.pending_buf[D.d_buf+D.last_lit*2]=v>>>8&255;D.pending_buf[D.d_buf+D.last_lit*2+1]=v&255;D.pending_buf[D.l_buf+D.last_lit]=h&255;D.last_lit++;v===0?D.dyn_ltree[h*2]++:(D.matches++,v--,D.dyn_ltree[(kz[h]+256+1)*2]++,D.dyn_dtree[(v<256?SJ[v]:SJ[256+(v>>>7)])*2]++);return D.last_lit===D.lit_bufsize-1};
lO=function(D,v){D.msg=pL[v];return v};
NH=function(D){for(var v=D.length;--v>=0;)D[v]=0};
Yz=function(D){var v=D.state,h=v.pending;h>D.avail_out&&(h=D.avail_out);h!==0&&(Ie.arraySet(D.output,v.pending_buf,v.pending_out,h,D.next_out),D.next_out+=h,v.pending_out+=h,D.total_out+=h,D.avail_out-=h,v.pending-=h,v.pending===0&&(v.pending_out=0))};
Xk=function(D,v){var h=D.block_start>=0?D.block_start:-1,a=D.strstart-D.block_start,Q=0;if(D.level>0){D.strm.data_type===2&&(D.strm.data_type=MB8(D));VBO(D,D.l_desc);VBO(D,D.d_desc);Pcc(D,D.dyn_ltree,D.l_desc.max_code);Pcc(D,D.dyn_dtree,D.d_desc.max_code);VBO(D,D.bl_desc);for(Q=18;Q>=3&&D.bl_tree[fWi[Q]*2+1]===0;Q--);D.opt_len+=3*(Q+1)+5+5+4;var G=D.opt_len+3+7>>>3;var x=D.static_len+3+7>>>3;x<=G&&(G=x)}else G=x=a+5;if(a+4<=G&&h!==-1)Zo(D,v?1:0,3),uTc(D,h,a);else if(D.strategy===4||x===G)Zo(D,2+(v?
1:0),3),GH7(D,BK,cK);else{Zo(D,4+(v?1:0),3);h=D.l_desc.max_code+1;a=D.d_desc.max_code+1;Q+=1;Zo(D,h-257,5);Zo(D,a-1,5);Zo(D,Q-4,4);for(G=0;G<Q;G++)Zo(D,D.bl_tree[fWi[G]*2+1],3);xii(D,D.dyn_ltree,h-1);xii(D,D.dyn_dtree,a-1);GH7(D,D.dyn_ltree,D.dyn_dtree)}tLq(D);v&&rQ2(D);D.block_start=D.strstart;Yz(D.strm)};
A2=function(D,v){D.pending_buf[D.pending++]=v};
qH=function(D,v){D.pending_buf[D.pending++]=v>>>8&255;D.pending_buf[D.pending++]=v&255};
Ccf=function(D,v){var h=D.max_chain_length,a=D.strstart,Q=D.prev_length,G=D.nice_match,x=D.strstart>D.w_size-262?D.strstart-(D.w_size-262):0,f=D.window,C=D.w_mask,U=D.prev,L=D.strstart+258,Z=f[a+Q-1],E=f[a+Q];D.prev_length>=D.good_match&&(h>>=2);G>D.lookahead&&(G=D.lookahead);do{var I=v;if(f[I+Q]===E&&f[I+Q-1]===Z&&f[I]===f[a]&&f[++I]===f[a+1]){a+=2;for(I++;f[++a]===f[++I]&&f[++a]===f[++I]&&f[++a]===f[++I]&&f[++a]===f[++I]&&f[++a]===f[++I]&&f[++a]===f[++I]&&f[++a]===f[++I]&&f[++a]===f[++I]&&a<L;);
I=258-(L-a);a=L-258;if(I>Q){D.match_start=v;Q=I;if(I>=G)break;Z=f[a+Q-1];E=f[a+Q]}}}while((v=U[v&C])>x&&--h!==0);return Q<=D.lookahead?Q:D.lookahead};
da=function(D){var v=D.w_size,h;do{var a=D.window_size-D.lookahead-D.strstart;if(D.strstart>=v+(v-262)){Ie.arraySet(D.window,D.window,v,v,0);D.match_start-=v;D.strstart-=v;D.block_start-=v;var Q=h=D.hash_size;do{var G=D.head[--Q];D.head[Q]=G>=v?G-v:0}while(--h);Q=h=v;do G=D.prev[--Q],D.prev[Q]=G>=v?G-v:0;while(--h);a+=v}if(D.strm.avail_in===0)break;Q=D.strm;h=D.window;G=D.strstart+D.lookahead;var x=Q.avail_in;x>a&&(x=a);x===0?h=0:(Q.avail_in-=x,Ie.arraySet(h,Q.input,Q.next_in,x,G),Q.state.wrap===
1?Q.adler=oUO(Q.adler,h,x,G):Q.state.wrap===2&&(Q.adler=bO(Q.adler,h,x,G)),Q.next_in+=x,Q.total_in+=x,h=x);D.lookahead+=h;if(D.lookahead+D.insert>=3)for(a=D.strstart-D.insert,D.ins_h=D.window[a],D.ins_h=(D.ins_h<<D.hash_shift^D.window[a+1])&D.hash_mask;D.insert&&!(D.ins_h=(D.ins_h<<D.hash_shift^D.window[a+3-1])&D.hash_mask,D.prev[a&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=a,a++,D.insert--,D.lookahead+D.insert<3););}while(D.lookahead<262&&D.strm.avail_in!==0)};
Fgu=function(D,v){for(var h;;){if(D.lookahead<262){da(D);if(D.lookahead<262&&v===0)return 1;if(D.lookahead===0)break}h=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,h=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);h!==0&&D.strstart-h<=D.w_size-262&&(D.match_length=Ccf(D,h));if(D.match_length>=3)if(h=J2(D,D.strstart-D.match_start,D.match_length-3),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=3){D.match_length--;
do D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart;while(--D.match_length!==0);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else h=J2(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(h&&(Xk(D,!1),D.strm.avail_out===0))return 1}D.insert=D.strstart<2?D.strstart:2;return v===4?(Xk(D,
!0),D.strm.avail_out===0?3:4):D.last_lit&&(Xk(D,!1),D.strm.avail_out===0)?1:2};
jJ=function(D,v){for(var h,a;;){if(D.lookahead<262){da(D);if(D.lookahead<262&&v===0)return 1;if(D.lookahead===0)break}h=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,h=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);D.prev_length=D.match_length;D.prev_match=D.match_start;D.match_length=2;h!==0&&D.prev_length<D.max_lazy_match&&D.strstart-h<=D.w_size-262&&(D.match_length=Ccf(D,h),D.match_length<=5&&(D.strategy===1||D.match_length===3&&
D.strstart-D.match_start>4096)&&(D.match_length=2));if(D.prev_length>=3&&D.match_length<=D.prev_length){a=D.strstart+D.lookahead-3;h=J2(D,D.strstart-1-D.prev_match,D.prev_length-3);D.lookahead-=D.prev_length-1;D.prev_length-=2;do++D.strstart<=a&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);while(--D.prev_length!==0);D.match_available=0;D.match_length=2;D.strstart++;if(h&&(Xk(D,!1),D.strm.avail_out===0))return 1}else if(D.match_available){if((h=
J2(D,0,D.window[D.strstart-1]))&&Xk(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return 1}else D.match_available=1,D.strstart++,D.lookahead--}D.match_available&&(J2(D,0,D.window[D.strstart-1]),D.match_available=0);D.insert=D.strstart<2?D.strstart:2;return v===4?(Xk(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(Xk(D,!1),D.strm.avail_out===0)?1:2};
ztq=function(D,v){for(var h,a,Q,G=D.window;;){if(D.lookahead<=258){da(D);if(D.lookahead<=258&&v===0)return 1;if(D.lookahead===0)break}D.match_length=0;if(D.lookahead>=3&&D.strstart>0&&(a=D.strstart-1,h=G[a],h===G[++a]&&h===G[++a]&&h===G[++a])){for(Q=D.strstart+258;h===G[++a]&&h===G[++a]&&h===G[++a]&&h===G[++a]&&h===G[++a]&&h===G[++a]&&h===G[++a]&&h===G[++a]&&a<Q;);D.match_length=258-(Q-a);D.match_length>D.lookahead&&(D.match_length=D.lookahead)}D.match_length>=3?(h=J2(D,1,D.match_length-3),D.lookahead-=
D.match_length,D.strstart+=D.match_length,D.match_length=0):(h=J2(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++);if(h&&(Xk(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return v===4?(Xk(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(Xk(D,!1),D.strm.avail_out===0)?1:2};
Ui8=function(D,v){for(var h;;){if(D.lookahead===0&&(da(D),D.lookahead===0)){if(v===0)return 1;break}D.match_length=0;h=J2(D,0,D.window[D.strstart]);D.lookahead--;D.strstart++;if(h&&(Xk(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return v===4?(Xk(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(Xk(D,!1),D.strm.avail_out===0)?1:2};
sW=function(D,v,h,a,Q){this.good_length=D;this.max_lazy=v;this.nice_length=h;this.max_chain=a;this.func=Q};
Lg8=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 Ie.Buf16(1146);this.dyn_dtree=new Ie.Buf16(122);this.bl_tree=new Ie.Buf16(78);NH(this.dyn_ltree);NH(this.dyn_dtree);NH(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Ie.Buf16(16);this.heap=new Ie.Buf16(573);NH(this.heap);this.heap_max=this.heap_len=0;this.depth=new Ie.Buf16(573);NH(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};
ZZc=function(D,v){if(!D||!D.state||v>5||v<0)return D?lO(D,-2):-2;var h=D.state;if(!D.output||!D.input&&D.avail_in!==0||h.status===666&&v!==4)return lO(D,D.avail_out===0?-5:-2);h.strm=D;var a=h.last_flush;h.last_flush=v;if(h.status===42)if(h.wrap===2)D.adler=0,A2(h,31),A2(h,139),A2(h,8),h.gzhead?(A2(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),A2(h,h.gzhead.time&255),A2(h,h.gzhead.time>>8&255),A2(h,h.gzhead.time>>16&255),A2(h,h.gzhead.time>>
24&255),A2(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),A2(h,h.gzhead.os&255),h.gzhead.extra&&h.gzhead.extra.length&&(A2(h,h.gzhead.extra.length&255),A2(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(D.adler=bO(D.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=69):(A2(h,0),A2(h,0),A2(h,0),A2(h,0),A2(h,0),A2(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),A2(h,3),h.status=113);else{var Q=8+(h.w_bits-8<<4)<<8;Q|=(h.strategy>=2||h.level<2?0:h.level<6?1:h.level===6?2:3)<<6;h.strstart!==0&&(Q|=
32);h.status=113;qH(h,Q+(31-Q%31));h.strstart!==0&&(qH(h,D.adler>>>16),qH(h,D.adler&65535));D.adler=1}if(h.status===69)if(h.gzhead.extra){for(Q=h.pending;h.gzindex<(h.gzhead.extra.length&65535)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>Q&&(D.adler=bO(D.adler,h.pending_buf,h.pending-Q,Q)),Yz(D),Q=h.pending,h.pending!==h.pending_buf_size));)A2(h,h.gzhead.extra[h.gzindex]&255),h.gzindex++;h.gzhead.hcrc&&h.pending>Q&&(D.adler=bO(D.adler,h.pending_buf,h.pending-Q,Q));h.gzindex===h.gzhead.extra.length&&
(h.gzindex=0,h.status=73)}else h.status=73;if(h.status===73)if(h.gzhead.name){Q=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>Q&&(D.adler=bO(D.adler,h.pending_buf,h.pending-Q,Q)),Yz(D),Q=h.pending,h.pending===h.pending_buf_size)){var G=1;break}G=h.gzindex<h.gzhead.name.length?h.gzhead.name.charCodeAt(h.gzindex++)&255:0;A2(h,G)}while(G!==0);h.gzhead.hcrc&&h.pending>Q&&(D.adler=bO(D.adler,h.pending_buf,h.pending-Q,Q));G===0&&(h.gzindex=0,h.status=91)}else h.status=91;if(h.status===
91)if(h.gzhead.comment){Q=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>Q&&(D.adler=bO(D.adler,h.pending_buf,h.pending-Q,Q)),Yz(D),Q=h.pending,h.pending===h.pending_buf_size)){G=1;break}G=h.gzindex<h.gzhead.comment.length?h.gzhead.comment.charCodeAt(h.gzindex++)&255:0;A2(h,G)}while(G!==0);h.gzhead.hcrc&&h.pending>Q&&(D.adler=bO(D.adler,h.pending_buf,h.pending-Q,Q));G===0&&(h.status=103)}else h.status=103;h.status===103&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&Yz(D),
h.pending+2<=h.pending_buf_size&&(A2(h,D.adler&255),A2(h,D.adler>>8&255),D.adler=0,h.status=113)):h.status=113);if(h.pending!==0){if(Yz(D),D.avail_out===0)return h.last_flush=-1,0}else if(D.avail_in===0&&(v<<1)-(v>4?9:0)<=(a<<1)-(a>4?9:0)&&v!==4)return lO(D,-5);if(h.status===666&&D.avail_in!==0)return lO(D,-5);if(D.avail_in!==0||h.lookahead!==0||v!==0&&h.status!==666){a=h.strategy===2?Ui8(h,v):h.strategy===3?ztq(h,v):md[h.level].func(h,v);if(a===3||a===4)h.status=666;if(a===1||a===3)return D.avail_out===
0&&(h.last_flush=-1),0;if(a===2&&(v===1?(Zo(h,2,3),EW(h,256,BK),h.bi_valid===16?(LL(h,h.bi_buf),h.bi_buf=0,h.bi_valid=0):h.bi_valid>=8&&(h.pending_buf[h.pending++]=h.bi_buf&255,h.bi_buf>>=8,h.bi_valid-=8)):v!==5&&(Zo(h,0,3),uTc(h,0,0),v===3&&(NH(h.head),h.lookahead===0&&(h.strstart=0,h.block_start=0,h.insert=0))),Yz(D),D.avail_out===0))return h.last_flush=-1,0}if(v!==4)return 0;if(h.wrap<=0)return 1;h.wrap===2?(A2(h,D.adler&255),A2(h,D.adler>>8&255),A2(h,D.adler>>16&255),A2(h,D.adler>>24&255),A2(h,
D.total_in&255),A2(h,D.total_in>>8&255),A2(h,D.total_in>>16&255),A2(h,D.total_in>>24&255)):(qH(h,D.adler>>>16),qH(h,D.adler&65535));Yz(D);h.wrap>0&&(h.wrap=-h.wrap);return h.pending!==0?0:1};
EUI=function(D){if(!(this instanceof EUI))return new EUI(D);D=this.options=Ie.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},D||{});D.raw&&D.windowBits>0?D.windowBits=-D.windowBits:D.gzip&&D.windowBits>0&&D.windowBits<16&&(D.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new IW4;this.strm.avail_out=0;var v=this.strm;var h=D.level,a=D.method,Q=D.windowBits,G=D.memLevel,x=D.strategy;if(v){var f=1;h===-1&&(h=6);Q<0?(f=0,Q=-Q):Q>15&&
(f=2,Q-=16);if(G<1||G>9||a!==8||Q<8||Q>15||h<0||h>9||x<0||x>4)v=lO(v,-2);else{Q===8&&(Q=9);var C=new Lg8;v.state=C;C.strm=v;C.wrap=f;C.gzhead=null;C.w_bits=Q;C.w_size=1<<C.w_bits;C.w_mask=C.w_size-1;C.hash_bits=G+7;C.hash_size=1<<C.hash_bits;C.hash_mask=C.hash_size-1;C.hash_shift=~~((C.hash_bits+3-1)/3);C.window=new Ie.Buf8(C.w_size*2);C.head=new Ie.Buf16(C.hash_size);C.prev=new Ie.Buf16(C.w_size);C.lit_bufsize=1<<G+6;C.pending_buf_size=C.lit_bufsize*4;C.pending_buf=new Ie.Buf8(C.pending_buf_size);
C.d_buf=C.lit_bufsize;C.l_buf=3*C.lit_bufsize;C.level=h;C.strategy=x;C.method=a;if(v&&v.state){v.total_in=v.total_out=0;v.data_type=2;h=v.state;h.pending=0;h.pending_out=0;h.wrap<0&&(h.wrap=-h.wrap);h.status=h.wrap?42:113;v.adler=h.wrap===2?0:1;h.last_flush=0;if(!gUc){a=Array(16);for(G=x=0;G<28;G++)for(aWc[G]=x,Q=0;Q<1<<htc[G];Q++)kz[x++]=G;kz[x-1]=G;for(G=x=0;G<16;G++)for(Qy2[G]=x,Q=0;Q<1<<$iq[G];Q++)SJ[x++]=G;for(x>>=7;G<30;G++)for(Qy2[G]=x<<7,Q=0;Q<1<<$iq[G]-7;Q++)SJ[256+x++]=G;for(Q=0;Q<=15;Q++)a[Q]=
0;for(Q=0;Q<=143;)BK[Q*2+1]=8,Q++,a[8]++;for(;Q<=255;)BK[Q*2+1]=9,Q++,a[9]++;for(;Q<=279;)BK[Q*2+1]=7,Q++,a[7]++;for(;Q<=287;)BK[Q*2+1]=8,Q++,a[8]++;Wcc(BK,287,a);for(Q=0;Q<30;Q++)cK[Q*2+1]=5,cK[Q*2]=iq7(Q,5);kHc=new TTc(BK,htc,257,286,15);SIA=new TTc(cK,$iq,0,30,15);JV8=new TTc([],pr2,0,19,7);gUc=!0}h.l_desc=new Rfo(h.dyn_ltree,kHc);h.d_desc=new Rfo(h.dyn_dtree,SIA);h.bl_desc=new Rfo(h.bl_tree,JV8);h.bi_buf=0;h.bi_valid=0;tLq(h);h=0}else h=lO(v,-2);h===0&&(v=v.state,v.window_size=2*v.w_size,NH(v.head),
v.max_lazy_match=md[v.level].max_lazy,v.good_match=md[v.level].good_length,v.nice_match=md[v.level].nice_length,v.max_chain_length=md[v.level].max_chain,v.strstart=0,v.block_start=0,v.lookahead=0,v.insert=0,v.match_length=v.prev_length=2,v.match_available=0,v.ins_h=0);v=h}}else v=-2;if(v!==0)throw Error(pL[v]);D.header&&(v=this.strm)&&v.state&&v.state.wrap===2&&(v.state.gzhead=D.header);if(D.dictionary){var U;typeof D.dictionary==="string"?U=lW7(D.dictionary):Nxq.call(D.dictionary)==="[object ArrayBuffer]"?
U=new Uint8Array(D.dictionary):U=D.dictionary;D=this.strm;G=U;x=G.length;if(D&&D.state)if(U=D.state,v=U.wrap,v===2||v===1&&U.status!==42||U.lookahead)v=-2;else{v===1&&(D.adler=oUO(D.adler,G,x,0));U.wrap=0;x>=U.w_size&&(v===0&&(NH(U.head),U.strstart=0,U.block_start=0,U.insert=0),h=new Ie.Buf8(U.w_size),Ie.arraySet(h,G,x-U.w_size,U.w_size,0),G=h,x=U.w_size);h=D.avail_in;a=D.next_in;Q=D.input;D.avail_in=x;D.next_in=0;D.input=G;for(da(U);U.lookahead>=3;){G=U.strstart;x=U.lookahead-2;do U.ins_h=(U.ins_h<<
U.hash_shift^U.window[G+3-1])&U.hash_mask,U.prev[G&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=G,G++;while(--x);U.strstart=G;U.lookahead=2;da(U)}U.strstart+=U.lookahead;U.block_start=U.strstart;U.insert=U.lookahead;U.lookahead=0;U.match_length=U.prev_length=2;U.match_available=0;D.next_in=a;D.input=Q;D.avail_in=h;U.wrap=v;v=0}else v=-2;if(v!==0)throw Error(pL[v]);this._dict_set=!0}};
YI4=function(D,v){v=v||{};v.gzip=!0;v=new EUI(v);v.push(D,!0);if(v.err)throw v.msg||pL[v.err];return v.result};
cVc=function(D,v){var h=Bx2();h&&h.publish.call(h,D.toString(),D,v)};
di2=function(D,v,h){var a=Bx2();if(!a)return 0;var Q=a.subscribe(D.toString(),function(G,x){var f=_.T3("ytPubsub2Pubsub2SkipSubKey");f&&f==Q||(f=function(){if(Xro[Q])try{if(x&&D instanceof AVu&&D!=G)try{var C=D.dataClass,U=x;if(!U.args||!U.version)throw Error("$c");try{if(!C.version_){var L=new C;C.version_=L.version}var Z=C.version_}catch(E){}if(!Z||U.version!=Z)throw Error("ad");try{x=Reflect.construct(C,_.n7(U.args))}catch(E){throw E.message="yt.pubsub2.Data.deserialize(): "+E.message,E;}}catch(E){throw E.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+D.toString()+": "+E.message,E;}v.call(h||window,x)}catch(E){_.OM(E)}},qI8[D.toString()]?_.T3("yt.scheduler.instance")?_.HK.addLowPriorityJob(f):_.ZX(f,0):f())});
Xro[Q]=!0;bZ8[D.toString()]||(bZ8[D.toString()]=[]);bZ8[D.toString()].push(Q);return Q};
HZf=function(){var D=jyu,v=di2(syc,function(h){D.apply(void 0,arguments);mi4(v)});
return v};
mi4=function(D){var v=Bx2();v&&(typeof D==="number"&&(D=[D]),_.rM(D,function(h){v.unsubscribeByKey(h);delete Xro[h]}))};
Bx2=function(){return _.T3("ytPubsub2Pubsub2Instance")};
yV7=function(D,v,h){h=h===void 0?{sampleRate:.1}:h;Math.random()<Math.min(.02,h.sampleRate/100)&&cVc("meta_logging_csi_event",{timerName:D,timelineData:v})};
_.wrI=function(D){return D?(D=D.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.$I(D):null:null};
_.yx=function(D){return D?(D=D.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.XY(D):null:null};
nU8=function(){etL||(etL=_.yx(_.eA("WORKER_SERIALIZATION_URL")));return etL||void 0};
_.Kgq=function(){var D=nU8();OZO||D===void 0||(OZO=new Worker(_.qf(D),void 0));return OZO};
_.Tx7=function(){return typeof Worker==="function"&&nU8()?!0:!1};
_.tBc=function(){if(_.Tx7()&&!Rtf){var D=function(h){h=h.data;if(h.op==="gzippedGelBatch"){var a=iZq.get(h.key);a&&(WgL(h.gzippedBatch,a.latencyPayload,a.url,a.options,a.sendFn),iZq.delete(h.key))}},v=_.Kgq();
v&&(v.addEventListener("message",D),v.onerror=function(){iZq.clear()},Rtf=!0)}};
$KL=function(D,v,h,a,Q){Q=Q===void 0?!1:Q;var G={startTime:(0,_.xz)(),ticks:{},infos:{}};if(wa)try{var x=rV8(v);if(x!=null&&(x>uS7||x<DKO))a(D,h);else{if(_.g("gzip_gel_with_worker")&&(_.g("initial_gzip_use_main_thread")&&!vto||!_.g("initial_gzip_use_main_thread"))){Rtf||_.tBc();var f=_.Kgq();if(f&&!Q){iZq.set(hS4,{latencyPayload:G,url:D,options:h,sendFn:a});f.postMessage({op:"gelBatchToGzip",serializedBatch:v,key:hS4});hS4++;return}}var C=YI4(apq(v));WgL(C,G,D,h,a)}}catch(U){_.Wv(U),a(D,h)}else a(D,
h)};
WgL=function(D,v,h,a,Q){vto=!1;var G=(0,_.xz)();v.ticks.gelc=G;eJ++;_.g("disable_compression_due_to_performance_degredation")&&G-v.startTime>=Qqi&&(Gzf++,_.g("abandon_compression_after_N_slow_zips")?eJ===_.oZ("compression_disable_point")&&Gzf>VQA&&(wa=!1):wa=!1);PP4(v);a.headers||(a.headers={});a.headers["Content-Encoding"]="gzip";a.postBody=D;a.postParams=void 0;Q(h,a)};
xK4=function(D){var v=v===void 0?!1:v;var h=h===void 0?!1:h;var a=(0,_.xz)(),Q={startTime:a,ticks:{},infos:{}},G=v?_.T3("yt.logging.gzipForFetch",!1):!0;if(wa&&G){if(!D.body)return D;try{var x=h?D.body:typeof D.body==="string"?D.body:JSON.stringify(D.body);G=x;if(!h&&typeof x==="string"){var f=rV8(x);if(f!=null&&(f>uS7||f<DKO))return D;h=v?{level:1}:void 0;G=YI4(apq(x),h);var C=(0,_.xz)();Q.ticks.gelc=C;if(v){eJ++;if((_.g("disable_compression_due_to_performance_degredation")||_.g("disable_compression_due_to_performance_degradation_lr"))&&
C-a>=Qqi)if(Gzf++,_.g("abandon_compression_after_N_slow_zips")||_.g("abandon_compression_after_N_slow_zips_lr")){v=Gzf/eJ;var U=VQA/_.oZ("compression_disable_point");eJ>0&&eJ%_.oZ("compression_disable_point")===0&&v>=U&&(wa=!1)}else wa=!1;PP4(Q)}}D.headers=Object.assign({},{"Content-Encoding":"gzip"},D.headers||{});D.body=G;return D}catch(L){return _.Wv(L),D}}else return D};
rV8=function(D){try{return(new Blob(D.split(""))).size}catch(v){return _.Wv(v),null}};
PP4=function(D){_.g("gel_compression_csi_killswitch")||!_.g("log_gel_compression_latency")&&!_.g("log_gel_compression_latency_lr")||yV7("gel_compression",D,{sampleRate:.1})};
MQ8=function(){this.blockSize=-1};
nL=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var D=1;D<this.blockSize;++D)this.pad_[D]=0;this.total_=this.inbuf_=0;this.reset()};
CP8=function(D){D=Object.assign({},D);delete D.Authorization;var v=_.fpc();if(v){var h=new nL;h.update(_.eA("INNERTUBE_API_KEY"));h.update(v);D.hash=_.dr(h.digest(),3)}return D};
KL=function(){ot7||(ot7=new _.OW("yt.innertube"));return ot7};
FNq=function(D,v,h,a){if(a)return null;a=KL().get("nextId",!0)||1;var Q=KL().get("requests",!0)||{};Q[a]={method:D,request:v,authState:CP8(h),requestTime:Math.round((0,_.xz)())};KL().set("nextId",a+1,86400,!0);KL().set("requests",Q,86400,!0);return a};
zSL=function(D){var v=KL().get("requests",!0)||{};delete v[D];KL().set("requests",v,86400,!0)};
LNo=function(D){var v=KL().get("requests",!0);if(v){for(var h in v){var a=v[h];if(!(Math.round((0,_.xz)())-a.requestTime<6E4)){var Q=a.authState,G=CP8(_.Oqq(!1));_.sV.equals(Q,G)&&(Q=a.request,"requestTimeMs"in Q&&(Q.requestTimeMs=Math.round((0,_.xz)())),UKq(D,a.method,Q,{}));delete v[h]}}KL().set("requests",v,86400,!0)}};
Zbf=function(D){var v;return(D=D==null?void 0:(v=D.error)==null?void 0:v.code)&&D>=400&&D<=599?!1:!0};
EtO=function(D){var v;D=D==null?void 0:(v=D.error)==null?void 0:v.code;return!(D!==400&&D!==415)};
gtO=function(){if(Ipo)return Ipo();var D={};Ipo=PK("LogsDatabaseV2",{objectStores:(D.LogsRequestsStore={addedAtVersion:2},D),shared:!1,upgrade:function(v,h,a){h(2)&&Tm(v,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});h(3);h(5)&&(a=a.objectStore("LogsRequestsStore"),a.JSC$10687_wrapped.indexNames.contains("newRequest")&&a.JSC$10687_wrapped.deleteIndex("newRequest"),Re(a,"newRequestV2",["status","interface","timestamp"]));h(7)&&v.JSC$10672_wrapped.objectStoreNames.contains("sapisid")&&v.JSC$10672_wrapped.deleteObjectStore("sapisid");
h(9)&&v.JSC$10672_wrapped.objectStoreNames.contains("SWHealthLog")&&v.JSC$10672_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Ipo()};
iO=function(D){return _.Do(gtO(),D)};
S_A=function(D,v){var h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return h={startTime:(0,_.xz)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},x.yield(iO(v),2);if(x.nextAddress!=3)return a=x.yieldResult,Q=Object.assign({},D,{options:JSON.parse(JSON.stringify(D.options)),interface:_.eA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),x.yield(a.put("LogsRequestsStore",Q),3);G=x.yieldResult;h.ticks.tc=(0,_.xz)();kzc(h);return x.return(G)})};
JD2=function(D,v){var h,a,Q,G,x,f,C,U,L;return _.M(function(Z){if(Z.nextAddress==1)return h={startTime:(0,_.xz)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},Z.yield(iO(v),2);if(Z.nextAddress!=3)return a=Z.yieldResult,Q=_.eA("INNERTUBE_CONTEXT_CLIENT_NAME",0),G=[D,Q,0],x=[D,Q,(0,_.xz)()],f=IDBKeyRange.bound(G,x),C="prev",_.g("use_fifo_for_networkless")&&(C="next"),U=void 0,L=D==="NEW"?"readwrite":"readonly",_.g("use_readonly_for_get_most_recent_by_status_killswitch")&&(L="readwrite"),
Z.yield(_.vK(a,["LogsRequestsStore"],{mode:L,enableRetries:!0},function(E){return _.MH(E.objectStore("LogsRequestsStore").index("newRequestV2"),{query:f,direction:C},function(I){I.getValue()&&(U=I.getValue(),D==="NEW"&&(U.status="QUEUED",I.update(U)))})}),3);
h.ticks.tc=(0,_.xz)();kzc(h);return Z.return(U)})};
p88=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1)return a.yield(iO(v),2);h=a.yieldResult;return a.return(_.vK(h,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var G=Q.objectStore("LogsRequestsStore");return G.get(D).then(function(x){if(x)return x.status="QUEUED",G.put(x).then(function(){return x})})}))})};
lpL=function(D,v,h,a){h=h===void 0?!0:h;var Q;return _.M(function(G){if(G.nextAddress==1)return G.yield(iO(v),2);Q=G.yieldResult;return G.return(_.vK(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){var f=x.objectStore("LogsRequestsStore");return f.get(D).then(function(C){return C?(C.status="NEW",h&&(C.sendCount+=1),a!==void 0&&(C.options.compress=a),f.put(C).then(function(){return C})):Ti.resolve(void 0)})}))})};
N4f=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1)return a.yield(iO(v),2);h=a.yieldResult;return a.return(h.delete("LogsRequestsStore",D))})};
Y_c=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(iO(D),2);v=a.yieldResult;h=(0,_.xz)()-2592E6;return a.yield(_.vK(v,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return ae(Q.objectStore("LogsRequestsStore"),{},function(G){if(G.getValue().timestamp<=h)return G.delete().then(function(){return G.continue()})})}),0)})};
B42=function(){_.M(function(D){return D.yield(ZqI("LogsDatabaseV2"),0)})};
kzc=function(D){_.g("nwl_csi_killswitch")||yV7("networkless_performance",D,{sampleRate:1})};
_.X8L=function(D){return _.Do(cD8(),D)};
ADo=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(_.X8L(D),2);v=a.yieldResult;h=(0,_.xz)()-2592E6;return a.yield(_.vK(v,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){return ae(Q.objectStore("SWHealthLog"),{},function(G){if(G.getValue().timestamp<=h)return G.delete().then(function(){return G.continue()})})}),0)})};
q_L=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(_.X8L(D),2);v=h.yieldResult;return h.yield(v.clear("SWHealthLog"),0)})};
_.WK=function(D,v,h,a,Q,G,x){Q=Q===void 0?"":Q;G=G===void 0?!1:G;x=x===void 0?!1:x;if(D)if(h&&!eO("cobalt"))_.Wv(new _.XH("Legacy referrer-scrubbed ping detected")),D&&bbA(D,void 0,{scrubReferrer:!0});else if(Q)Vqi(D,v,"POST",Q,a);else if(_.eA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||a||x)Vqi(D,v,"GET","",a,void 0,G,x);else{b:{try{c:{var f=new dKu({url:D});if(f.urlParamValues_.dsh==="1")var C=null;else{var U=f.urlParamValues_.ae;if(U==="1"){var L=f.urlParamValues_.adurl;if(L)try{C={version:3,directUrl:decodeURIComponent(L),
asyncUrl:stq(f.JSC$9480_url_,"act=1","ri=1",jqA(f))};break c}catch(S){}}C=U==="2"?{version:4,directUrl:stq(f.JSC$9480_url_,"dct=1","suid="+f.suid_,""),asyncUrl:stq(f.JSC$9480_url_,"act=1","ri=1","suid="+f.suid_)}:null}}if(C){var Z=_.gl(D);var E=!(!Z||!Z.endsWith("/aclk")||_.i9(D,"ri")!=="1");break b}}catch(S){}E=!1}if(E){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(D,"")){var I=!0;break b}}catch(S){}I=!1}I?(v&&v(),h=!0):h=!1}else h=!1;h||bbA(D,v)}};
bbA=function(D,v,h){h=h===void 0?{}:h;var a=new Image,Q=""+sq2++;mKi[Q]=a;a.onload=a.onerror=function(){v&&mKi[Q]&&v();delete mKi[Q]};
h.scrubReferrer&&(a.referrerPolicy="no-referrer");a.src=D};
t2=function(D,v){HbI(D,v==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
yD7=function(D){var v;return((v=document.featurePolicy)==null?0:v.allowedFeatures().includes("attribution-reporting"))?D+"&nis=6":D+"&nis=5"};
w8o=function(D){if(!D)return!1;try{var v;if(((v=_.uy(D))==null?void 0:v.asm)==="4")return!0}catch(h){_.OM(h)}return!1};
HbI=function(D,v){v?(D=yD7(D),_.WK(D,void 0,void 0,void 0,"",!0,!0)):_.WK(D)};
ntL=function(){eSO||(eSO=new _.OW("yt.offline"));return eSO};
Ob4=function(D){if(_.g("offline_error_handling")){var v=ntL().get("errors",!0)||{};v[D.message]={name:D.name,stack:D.stack};D.level&&(v[D.message].level=D.level);ntL().set("errors",v,2592E3,!0)}};
T4L=function(D,v,h,a){a=a===void 0?!1:a;v=_.g("web_fp_via_jspb")?Object.assign({},v):v;_.g("use_cfr_monitor")&&KN7(D,v);if(_.g("use_request_time_ms_header"))v.headers&&Gi(D)&&(v.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.xz)())));else{var Q;if((Q=v.postParams)==null?0:Q.requestTimeMs)v.postParams.requestTimeMs=Math.round((0,_.xz)())}h&&Object.keys(v).length===0?_.WK(D):v.compress?v.postBody?(typeof v.postBody!=="string"&&(v.postBody=JSON.stringify(v.postBody)),$KL(D,v.postBody,
v,_.kd,a)):$KL(D,JSON.stringify(v.postParams),v,fUu,a):_.kd(D,v)};
RSo=function(D,v){_.g("use_event_time_ms_header")&&Gi(D)&&(v.headers||(v.headers={}),v.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.xz)())));return v};
_.WN2=function(){ib2||(ib2=new _.ra({logOfflineErrors:!0,enablePolling:!0}));return ib2};
KN7=function(D,v){var h=v.onError?v.onError:function(){};
v.onError=function(Q,G){uO().requestComplete(D,!1);h(Q,G)};
var a=v.onSuccess?v.onSuccess:function(){};
v.onSuccess=function(Q,G){uO().requestComplete(D,!0);a(Q,G)}};
_.tQc=function(){return _.$d(document.location.toString())!=="www.youtube-nocookie.com"};
_.DLu=function(){return _.T3("ytNetworklessLoggingInitializationOptions")?_.rDA.isNwlInitialized:_.upL};
v5r=function(D,v){if(_.g("polymer_on_demand_shady_dom")){var h;var a=(h=D.__shady_native_firstElementChild)!=null?h:D.firstElementChild}else a=D.firstElementChild;for(;a;){if(D=v(a)?a:v5r(a,v))return D;a=a.nextElementSibling}return null};
a2L=function(){var D=document;if("visibilityState"in D)return D.visibilityState;var v=hUr+"VisibilityState";if(v in D)return D[v]};
_.$Lo=function(D,v){var h;DM(D,function(a){h=v[a];return!!h});
return h};
_.hX=function(D){var v=Q34(D);v?v.focus(void 0):_.v1(D)};
Q34=function(D){return(D=v5r(D,function(v){return _.aB(v)?Ghr(v)&&!!v.offsetParent:!1}))?D:null};
_.v1=function(D,v){D.hasAttribute("tabindex")||D.setAttribute("tabindex","-1");D.focus(v)};
V3O=function(D,v,h,a){a=a===void 0?{}:a;D.addEventListener&&(v!="mouseenter"||"onmouseenter"in document?v!="mouseleave"||"onmouseenter"in document?v=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(v="MozMousePixelScroll"):v="mouseout":v="mouseover");return _.sV.findKey($_,function(Q){var G=typeof Q[4]==="boolean"&&Q[4]==!!a,x=_.Ro(Q[4])&&_.Ro(a)&&_.sV.equals(Q[4],a);return!!Q.length&&Q[0]==D&&Q[1]==v&&Q[2]==h&&(G||x)})};
_.GC=function(D,v,h,a){a=a===void 0?{}:a;if(!D||!D.addEventListener&&!D.attachEvent)return"";var Q=V3O(D,v,h,a);if(Q)return Q;Q=++PLc.count+"";var G=!(v!="mouseenter"&&v!="mouseleave"||!D.addEventListener||"onmouseenter"in document);var x=G?function(f){f=new QR(f);if(!_.OV(f.relatedTarget,function(C){return C==D},!0))return f.currentTarget=D,f.type=v,h.call(D,f)}:function(f){f=new QR(f);
f.currentTarget=D;return h.call(D,f)};
x=_.KJ(x);D.addEventListener?(v=="mouseenter"&&G?v="mouseover":v=="mouseleave"&&G?v="mouseout":v=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(v="MozMousePixelScroll"),xL7()||typeof a==="boolean"?D.addEventListener(v,x,a):D.addEventListener(v,x,!!a.capture)):D.attachEvent("on"+v,x);$_[Q]=[D,v,h,x,a];return Q};
_.f2O=function(D,v,h){var a=a===void 0?{}:a;var Q=_.GC(D,v,function(){_.M3q(Q);h.apply(D,arguments)},a)};
_.M3q=function(D){D&&(typeof D=="string"&&(D=[D]),_.rM(D,function(v){if(v in $_){var h=$_[v],a=h[0],Q=h[1],G=h[3];h=h[4];a.removeEventListener?xL7()||typeof h==="boolean"?a.removeEventListener(Q,G,h):a.removeEventListener(Q,G,!!h.capture):a.detachEvent&&a.detachEvent("on"+Q,G);delete $_[v]}}))};
VR=function(D){this.callback_=D;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(D=0;D<4;D++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.GC(window,"mousemove",(0,_.qp)(this.onMouseMove_,this));this.timerId_=_.Ez((0,_.qp)(this.checkPosition_,this),25)};
Fri=function(){var D={};var v=D.preferMobileEvents===void 0?!1:D.preferMobileEvents;D=D.enableScrollEventListener===void 0?!0:D.enableScrollEventListener;if(_.T3("_lact",window)==null){var h=parseInt(_.eA("LACT"),10);h=isFinite(h)?Date.now()-Math.max(h,0):-1;_.Gm("_lact",h,window);_.Gm("_fact",h,window);h==-1&&_.P1();CLr(window,v,D);new VR(function(){o58("mouse",100)})}};
CLr=function(D,v,h){v=v===void 0?!1:v;h=h===void 0?!0:h;_.GC(D.document,"keydown",_.P1);_.GC(D.document,"keyup",_.P1);_.GC(D.document,"mousedown",_.P1);_.GC(D.document,"mouseup",_.P1);v?_.GC(D,"touchmove",function(){o58("touchmove",200)},{passive:!0}):(_.GC(D,"resize",function(){o58("resize",200)}),h&&_.GC(D,"scroll",function(){o58("scroll",200)}));
_.GC(D.document,"touchstart",_.P1,{passive:!0});_.GC(D.document,"touchend",_.P1,{passive:!0})};
o58=function(D,v){zUf[D]||(zUf[D]=!0,_.HK.addLowPriorityJob(function(){_.P1();zUf[D]=!1},v))};
_.P1=function(){_.T3("_lact",window)==null&&Fri();var D=Date.now();_.Gm("_lact",D,window);_.T3("_fact",window)==-1&&_.Gm("_fact",D,window);(D=_.T3("ytglobal.ytUtilActivityCallback_"))&&D()};
_.x_=function(){var D=_.T3("_lact",window);return D==null?-1:Math.max(Date.now()-D,0)};
_.oB=function(D,v,h){var a=_.MY();if(a&&v){var Q=a.subscribe(D,function(){var G=arguments,x=function(){fp[Q]&&v.apply&&typeof v.apply=="function"&&v.apply(h||window,G)};
try{_.ULL[D]?x():_.ZX(x,0)}catch(f){_.OM(f)}},h);
fp[Q]=!0;Cp[D]||(Cp[D]=[]);Cp[D].push(Q);return Q}return 0};
_.Lr4=function(D){var v=_.MY();v&&(typeof D==="number"?D=[D]:typeof D==="string"&&(D=[parseInt(D,10)]),_.rM(D,function(h){v.unsubscribeByKey(h);delete fp[h]}))};
_.Z_o=function(D,v){var h=_.MY();h&&h.publish.apply(h,arguments)};
_.I2A=function(D){var v=_.MY();if(v)if(v.clear(D),D)E52(D);else for(var h in Cp)E52(h)};
_.MY=function(){return _.$L.ytPubsubPubsubInstance};
E52=function(D){Cp[D]&&(D=Cp[D],_.rM(D,function(v){fp[v]&&delete fp[v]}),D.length=0)};
g5f=function(){var D,v;return"h5vcc"in zC&&((D=zC.h5vcc.traceEvent)==null?0:D.traceBegin)&&((v=zC.h5vcc.traceEvent)==null?0:v.traceEnd)?1:"performance"in zC&&zC.performance.mark&&zC.performance.measure?2:0};
khI=function(D){var v=g5f();switch(v){case 1:zC.h5vcc.traceEvent.traceBegin("YTLR",D);break;case 2:zC.performance.mark(D+"-start");break;case 0:break;default:_.K4(v,"unknown trace type")}};
SA4=function(D){var v=g5f();switch(v){case 1:zC.h5vcc.traceEvent.traceEnd("YTLR",D);break;case 2:v=D+"-start";var h=D+"-end";zC.performance.mark(h);zC.performance.measure(D,v,h);break;case 0:break;default:_.K4(v,"unknown trace type")}};
Jdu=function(D){var v,h;(h=(v=window).onerror)==null||h.call(v,D.message,"",0,0,D)};
pXc=function(D){if(_.g("web_lifecycle_error_handling_killswitch"))return D();try{return D()}catch(v){Jdu(v)}};
l2O=function(D){return[D.auth===void 0?"undefined":D.auth,D.isJspb===void 0?"undefined":D.isJspb,D.cttAuthInfo===void 0?"undefined":D.cttAuthInfo,D.tier===void 0?"undefined":D.tier].join("/")};
_.k=function(D,v){if(D)return D[v.name]};
Lp=function(){var D=_.T3("yt.logging.ims");D||(D=new U5,_.Gm("yt.logging.ims",D));return D};
dLc=function(D,v){if(D.endpoint==="log_event"){N1u(D);var h=YA4(D),a=B1L(D.payload)||"",Q=cdq(a),G=200;if(Q){if(Q.enabled===!1&&!_.g("web_payload_policy_disabled_killswitch"))return;G=XXf(Q.tier);if(G===400){Ad2(D,v);return}}ZM[h]=!0;h={cttAuthInfo:h,isJspb:!1,tier:G};Lp().storePayload(h,D.payload);qA7(v,!1,h,b_o(a))}};
s37=function(D,v,h){if(v.endpoint==="log_event"){N1u(void 0,v);var a=YA4(v,!0),Q=cdq(D),G=200;if(Q){if(Q.enabled===!1&&!_.g("web_payload_policy_disabled_killswitch"))return;G=XXf(Q.tier);if(G===400){j3c(D,v,h);return}}ZM[a]=!0;a={cttAuthInfo:a,isJspb:!0,tier:G};Lp().storePayload(a,Hs(v.payload));qA7(h,!0,a,b_o(D))}};
qA7=function(D,v,h,a){v=v===void 0?!1:v;a=a===void 0?!1:a;D&&(E5=new D);D=_.oZ("tvhtml5_logging_max_batch_ads_fork")||_.oZ("tvhtml5_logging_max_batch")||_.oZ("web_logging_max_batch")||100;var Q=(0,_.xz)(),G=mLL(v,h.tier),x=G.lastDebounceQueueFromLogTimeMs;a&&(G.useVideoStatsEndPoint=!0);a=0;h&&(a=Lp().getSequenceCount(h));var f=function(){H_2({writeThenSend:!0},v,h.tier)};
a>=1E3?f():a>=D?ydu||(ydu=wXi(function(){f();ydu=void 0},0)):Q-x>=10&&(eU2(v,h.tier),G.lastDebounceQueueFromLogTimeMs=Q)};
Ad2=function(D,v){if(D.endpoint==="log_event"){_.g("more_accurate_gel_parser")&&Lp().storePayload({isJspb:!1},D.payload);N1u(D);var h=YA4(D),a=new Map;a.set(h,[D.payload]);var Q=B1L(D.payload)||"";v&&(E5=new v);return new _.IB(function(G,x){E5&&E5.isReady()?n5O(a,E5,G,x,{bypassNetworkless:!0},!0,b_o(Q)):G()})}};
j3c=function(D,v,h){if(v.endpoint==="log_event"){N1u(void 0,v);var a=YA4(v,!0),Q=new Map;Q.set(a,[Hs(v.payload)]);h&&(E5=new h);return new _.IB(function(G){E5&&E5.isReady()?O_c(Q,E5,G,{bypassNetworkless:!0},!0,b_o(D)):G()})}};
YA4=function(D,v){var h="";if(D.dangerousLogToVisitorSession)h="visitorOnlyApprovedKey";else if(D.cttAuthInfo){if(v===void 0?0:v){v=D.cttAuthInfo.token;h=D.cttAuthInfo;var a=new Kru;h.videoId?a.setVideoId(h.videoId):h.playlistId&&gf(a,2,T1A,Jr(h.playlistId));RUc[v]=a}else v=D.cttAuthInfo,h={},v.videoId?h.videoId=v.videoId:v.playlistId&&(h.playlistId=v.playlistId),i_u[D.cttAuthInfo.token]=h;h=D.cttAuthInfo.token}return h};
H_2=function(D,v,h){D=D===void 0?{}:D;v=v===void 0?!1:v;new _.IB(function(a,Q){var G=mLL(v,h),x=G.useVideoStatsEndPoint;G.useVideoStatsEndPoint=!1;Wrf(G.queueTimer);Wrf(G.queueMaxTimer);G.queueMaxTimer=0;E5&&E5.isReady()?h===void 0&&_.g("enable_web_tiered_gel")?t3o(a,Q,D,v,300,x):t3o(a,Q,D,v,h,x):(eU2(v,h),a())})};
t3o=function(D,v,h,a,Q,G){var x=E5;h=h===void 0?{}:h;a=a===void 0?!1:a;Q=Q===void 0?200:Q;G=G===void 0?!1:G;var f=new Map,C=new Map,U={isJspb:a,cttAuthInfo:void 0,tier:Q},L={isJspb:a,cttAuthInfo:void 0};if(a){v=_.P(Object.keys(ZM));for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,C=_.g("enable_web_tiered_gel")?Lp().smartExtractMatchingEntries({keys:[U,L],sizeLimit:1E3}):Lp().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),C.length>0&&f.set(Q,C),(_.g("web_fp_via_jspb_and_json")&&h.writeThenSend||!_.g("web_fp_via_jspb_and_json"))&&
delete ZM[Q];O_c(f,x,D,h,!1,G)}else{f=_.P(Object.keys(ZM));for(U=f.next();!U.done;U=f.next())U=U.value,L=_.g("enable_web_tiered_gel")?Lp().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:U,tier:Q},{isJspb:!1,cttAuthInfo:U}],sizeLimit:1E3}):Lp().extractMatchingEntries({isJspb:!1,cttAuthInfo:U}),L.length>0&&C.set(U,L),(_.g("web_fp_via_jspb_and_json")&&h.writeThenSend||!_.g("web_fp_via_jspb_and_json"))&&delete ZM[U];n5O(C,x,D,v,h,!1,G)}};
eU2=function(D,v){D=D===void 0?!1:D;v=v===void 0?200:v;var h=function(){H_2({writeThenSend:!0},D,v)},a=mLL(D,v),Q=a===rdc||a===uZu?5E3:Dqo;
_.g("web_gel_timeout_cap")&&!a.queueMaxTimer&&(Q=wXi(function(){h()},Q),a.queueMaxTimer=Q);
Wrf(a.queueTimer);Q=_.eA("LOGGING_BATCH_TIMEOUT",_.oZ("web_gel_debounce_ms",1E4));_.g("shorten_initial_gel_batch_timeout")&&ver&&(Q=hVo);Q=wXi(function(){_.oZ("gel_min_batch_size")>0?Lp().getSequenceCount({cttAuthInfo:void 0,isJspb:D,tier:v})>=aYq&&h():h()},Q);
a.queueTimer=Q};
n5O=function(D,v,h,a,Q,G,x){Q=Q===void 0?{}:Q;var f=Math.round((0,_.xz)()),C=D.size,U=$q2(x);D=_.P(D);var L=D.next();for(x={};!L.done;x={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},L=D.next()){var Z=_.P(L.value);L=Z.next().value;Z=Z.next().value;x.batchRequest=_.sV.unsafeClone({context:_.dPq(v.config_||_.fL())});if(!_.O8(Z)&&!_.g("throw_err_when_logevent_malformed_killswitch")){a();break}x.batchRequest.events=Z;
(Z=i_u[L])&&Qgr(x.batchRequest,L,Z);delete i_u[L];x.dangerousLogToVisitorSession=L==="visitorOnlyApprovedKey";Gf2(x.batchRequest,f,x.dangerousLogToVisitorSession);Vbf(Q);x.onSuccess$jscomp$3=function(E){_.g("start_client_gcf")&&_.HK.addLowPriorityJob(function(){return _.M(function(I){return I.yield(P78(E),0)})});
C--;C||h()};
x.networkFailures=0;x.onError$jscomp$5=function(E){return function(){E.networkFailures++;if(Q.bypassNetworkless&&E.networkFailures===1)try{UKq(v,U,E.batchRequest,xqc({writeThenSend:!0},E.dangerousLogToVisitorSession,E.onSuccess$jscomp$3,E.onError$jscomp$5,G)),ver=!1}catch(I){_.OM(I),a()}C--;C||h()}}(x);
try{UKq(v,U,x.batchRequest,xqc(Q,x.dangerousLogToVisitorSession,x.onSuccess$jscomp$3,x.onError$jscomp$5,G)),ver=!1}catch(E){_.OM(E),a()}}};
O_c=function(D,v,h,a,Q,G){a=a===void 0?{}:a;var x=Math.round((0,_.xz)()),f={value:D.size},C=new Map([].concat(_.j_(D)));C=_.P(C);for(var U=C.next();!U.done;U=C.next()){var L=_.P(U.value).next().value,Z=D.get(L);U=new Mb2;var E=v.config_||_.fL(),I=new k_,S=new fYf;_.Xx(S,1,E.innertubeContextHostLanguage);_.Xx(S,2,E.innertubeContextGeoLocation);_.oe(S,16,E.innertubeContextClientNameFieldNumber);_.Xx(S,17,E.innertubeContextClientVersion);if(E.innertubeContextClientConfigInfo){var B=E.innertubeContextClientConfigInfo,
A=new zm;B.coldConfigData&&_.Xx(A,1,B.coldConfigData);B.appInstallData&&_.Xx(A,6,B.appInstallData);B.coldHashData&&_.Xx(A,3,B.coldHashData);B.hotHashData&&A.setHotHashData(B.hotHashData);_.lH(S,62,A)}(B=_.$L.devicePixelRatio)&&B!=1&&_.Fk(S,65,_.Ty(B));B=rPf();B!==""&&_.Xx(S,54,B);B=u1c();if(B.length>0){A=new C7i;for(var d=0;d<B.length;d++){var b=new Sj;b.setKey(B[d].key);gf(b,2,oe7,Jr(B[d].value));JX(A,15,Sj,b)}_.lH(I,5,A)}BT7(E,S);cQf(I);XRI(S);AQc(E,S);qL8(S);_.g("start_client_gcf")&&bq2(S);_.eA("DELEGATED_SESSION_ID")&&
!_.g("pageid_as_header_web")&&(E=new pp,_.Xx(E,3,_.eA("DELEGATED_SESSION_ID")));!_.g("fill_delegate_context_in_gel_killswitch")&&(B=_.eA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(A=_.CL(I,pp,3)||new pp,E=I,B=_.Xx(A,18,B),_.lH(E,3,B));E=S;B=_.P(Object.entries(_.uy(_.eA("DEVICE",""))));for(A=B.next();!A.done;A=B.next())d=_.P(A.value),A=d.next().value,d=d.next().value,A==="cbrand"?_.Xx(E,12,d):A==="cmodel"?_.Xx(E,13,d):A==="cbr"?_.Xx(E,87,d):A==="cbrver"?_.Xx(E,88,d):A==="cos"?_.Xx(E,18,
d):A==="cosver"?_.Xx(E,19,d):A==="cplatform"&&_.oe(E,42,Y4o(d));I.setClient(S);_.lH(U,1,I);if(S=RUc[L])a:{if(_.p0(S,lD(S,T1A,1)))I=1;else if(S.getPlaylistId())I=2;else break a;_.lH(U,4,S);S=U.getContext()||new k_;E=_.CL(S,pp,3)||new pp;B=new NY;B.setToken(L);_.oe(B,1,I);JX(E,12,NY,B);_.lH(S,3,E)}delete RUc[L];L=L==="visitorOnlyApprovedKey";Fsf()||_.Y_(U,2,x);!L&&(I=_.eA("EVENT_ID"))&&(S=zVr(),E=new Uqc,_.Xx(E,1,I),_.Y_(E,2,S),_.lH(U,5,E));Vbf(a);if(_.g("jspb_serialize_with_worker")&&(I=_.Kgq())&&
a.writeThenSend){_.Lsf.set(Zjf,{client:v,resolve:h,networklessOptions:a,isIsolated:Q,useVSSEndpoint:G,dangerousLogToVisitorSession:L,requestsOutstanding:f});I.postMessage({op:"gelBatchToSerialize",batchRequest:Hs(U),clientEvents:Z,key:Zjf});Zjf++;break}if(Z){I=[];for(S=0;S<Z.length;S++)try{I.push(new B1(Z[S]))}catch(W){_.OM(new _.XH("Transport failed to deserialize "+String(Z[S])))}Z=I}else Z=[];Z=_.P(Z);for(I=Z.next();!I.done;I=Z.next())JX(U,3,B1,I.value);Z={startTime:(0,_.xz)(),ticks:{},infos:{}};
U=U.serialize();Z.ticks.geljspc=(0,_.xz)();_.g("log_jspb_serialize_latency")&&yV7("gel_jspb_serialize",Z,{sampleRate:.1});_.Eec(U,v,h,a,Q,G,L,f)}};
_.Eec=function(D,v,h,a,Q,G,x,f){a=a===void 0?{}:a;f=f===void 0?{value:0}:f;G=$q2(G);a=xqc(a,x,function(C){_.g("start_client_gcf")&&_.HK.addLowPriorityJob(function(){return _.M(function(U){return U.yield(P78(C),0)})});
f.value--;f.value||h()},function(){f.value--;
f.value||h()},Q);
a.headers["Content-Type"]="application/json+protobuf";a.postBodyFormat="JSPB";a.postBody=D;UKq(v,G,"",a);ver=!1};
Vbf=function(D){_.g("always_send_and_write")&&(D.writeThenSend=!1)};
xqc=function(D,v,h,a,Q){D={retry:!0,onSuccess:h,onError:a,networklessOptions:D,dangerousLogToVisitorSession:v,bypassMonitoring:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:_.g("compress_gel")||_.g("compress_gel_lr")};Fsf()&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.xz)())));return D};
Gf2=function(D,v,h){Fsf()||(D.requestTimeMs=String(v));_.g("unsplit_gel_payloads_in_logs")&&(D.unsplitGelPayloadsInLogs=!0);!h&&(v=_.eA("EVENT_ID"))&&(h=zVr(),D.serializedClientEventId={serializedEventId:v,clientCounter:String(h)})};
zVr=function(){var D=_.eA("BATCH_CLIENT_COUNTER")||0;D||(D=Math.floor(Math.random()*65535/2));D++;D>65535&&(D=1);_.wM("BATCH_CLIENT_COUNTER",D);return D};
Qgr=function(D,v,h){if(h.videoId)var a="VIDEO";else if(h.playlistId)a="PLAYLIST";else return;D.credentialTransferTokenTargetId=h;D.context=D.context||{};D.context.user=D.context.user||{};D.context.user.credentialTransferTokens=[{token:v,scope:a}]};
N1u=function(D,v){var h=_.FH("il_payload_scraping")==="enable_il_payload_scraping";if(!_.T3("yt.logging.transport.enableScrapingForTest"))if(h)IYc=[],_.Gm("yt.logging.transport.enableScrapingForTest",!0),_.Gm("yt.logging.transport.scrapedPayloadsForTesting",IYc),_.Gm("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Gm("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Gm("yt.logging.transport.scrapeClientEvent",!0);else return;h=_.T3("yt.logging.transport.scrapedPayloadsForTesting");var a=_.T3("yt.logging.transport.payloadToScrape");v&&(v=_.T3("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(v.payload)())&&h.push(v);v=_.T3("yt.logging.transport.scrapeClientEvent");if(a&&a.length>=1)for(var Q=0;Q<a.length;Q++)if(D&&D.payload[a[Q]])if(v)h.push(D.payload);else{var G=void 0;h.push(((G=D)==null?void 0:G.payload)[a[Q]])}_.Gm("yt.logging.transport.scrapedPayloadsForTesting",
h)};
Fsf=function(){return _.g("use_request_time_ms_header")||_.g("lr_use_request_time_ms_header")};
wXi=function(D,v){return _.g("transport_use_scheduler")===!1?_.ZX(D,v):_.g("logging_avoid_blocking_during_navigation")||_.g("lr_logging_avoid_blocking_during_navigation")?_.c1(_.HK,function(){if(_.gef().currentState==="none")D();else{var h={};_.gef().install((h.none={callback:D},h))}},v):_.c1(_.HK,D,v)};
Wrf=function(D){_.g("transport_use_scheduler")?_.HK.cancelJob(D):_.IZ(D)};
P78=function(D){var v,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){return Z.nextAddress==1?(a=(v=D)==null?void 0:(h=v.responseContext)==null?void 0:h.globalConfigGroup,Q=_.k(a,kf8),x=(G=a)==null?void 0:G.hotHashData,f=_.k(a,SnO),U=(C=a)==null?void 0:C.coldHashData,(L=_.xd().resolve(_.PV(XB)))?x?Q?Z.yield(JnI(L,x,Q),2):Z.yield(JnI(L,x),2):Z.jumpTo(2):Z.return()):U?f?Z.yield(p4c(L,U,f),0):Z.yield(p4c(L,U),0):Z.jumpTo(0)})};
mLL=function(D,v){v=v===void 0?200:v;return D?v===300?rdc:lYf:v===300?uZu:NpO};
cdq=function(D){if(_.g("enable_web_tiered_gel")){D=Yni[D||""];var v,h,a,Q=_.xd().resolve(_.PV(XB))==null?void 0:(v=AX())==null?void 0:(h=v.loggingHotConfig)==null?void 0:(a=h.eventLoggingConfig)==null?void 0:a.payloadPolicies;if(Q)for(v=0;v<Q.length;v++)if(Q[v].payloadNumber===D)return Q[v]}};
B1L=function(D){D=Object.keys(D);D=_.P(D);for(var v=D.next();!v.done;v=D.next())if(v=v.value,Yni[v])return v};
XXf=function(D){switch(D){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
b_o=function(D){return D==="gelDebuggingEvent"};
$q2=function(D){return(D===void 0?0:D)&&_.g("vss_through_gel_video_stats")?"video_stats":"log_event"};
bD=function(D,v,h,a){a=a===void 0?{}:a;var Q={},G=Math.round(a.timestamp||(0,_.xz)());Q.eventTimeMs=G<Number.MAX_SAFE_INTEGER?G:0;Q[D]=v;D=_.x_();Q.context={lastActivityMs:String(a.timestamp||!isFinite(D)?-1:D)};a.sequenceGroup&&!_.g("web_gel_sequence_info_killswitch")&&(D=Q.context,v=a.sequenceGroup,v={index:Bp7(v),groupKey:v},D.sequence=v,a.endOfSequence&&delete qY[a.sequenceGroup]);_.g("web_tag_automated_log_events")&&(Q.context.automatedLogEventSource=a.automatedLogEventSource);(a.sendIsolatedPayload?
Ad2:dLc)({endpoint:"log_event",payload:Q,cttAuthInfo:a.cttAuthInfo,dangerousLogToVisitorSession:a.dangerousLogToVisitorSession},h)};
Bp7=function(D){qY[D]=D in qY?qY[D]+1:0;return qY[D]};
_.jj=function(D,v,h){h=h===void 0?{}:h;var a=df;_.nJ("ytLoggingEventsDefaultDisabled",!1)&&df===df&&(a=null);bD(D,v,a,h)};
_.s5=function(){if(_.g("web_fp_via_jspb")){var D=!0;D=D===void 0?!1:D;var v=cnL;cnL=[];if(v){v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,D?bD(h.payloadName,h.payload,df,h.options):_.jj(h.payloadName,h.payload,h.options)}H_2(void 0,!0);if(!_.g("web_fp_via_jspb_and_json"))return}H_2(void 0,!1)};
X4A=function(D,v){var h;if((h=v)==null?0:h.componentStack)return v;if(D=D.componentStack)v||(v={}),v.componentStack=D;return v};
AnO=function(){_.rM(_.eA("ERRORS")||[],function(D){_.mV.apply(null,D)});
_.wM("ERRORS",[])};
_.H1=function(D){_.mV(D)};
_.yR=function(D){_.mV(D,"WARNING")};
qnc=function(D){D instanceof Error?_.mV(D):(D=_.Ro(D)?JSON.stringify(D):String(D),D=new _.XH(D),D.name="RejectedPromiseError",_.yR(D))};
bjc=function(D,v,h,a,Q,G){v=v===void 0?"Unknown file":v;h=h===void 0?0:h;var x=!1,f=cPu("log_window_onerror_fraction");if(f&&Math.random()<f)x=!0;else{f=document.getElementsByTagName("script");for(var C=0,U=f.length;C<U;C++)if(f[C].src.indexOf("/debug-")>0){x=!0;break}}x&&(x=!1,Q?x=!0:(typeof D==="string"?f=D:ErrorEvent&&D instanceof ErrorEvent?(x=!0,f=D.message,v=D.filename,h=D.lineno,a=D.colno):(f="Unknown error",v="Unknown file",h=0),Q=new _.XH(f),Q.name="UnhandledWindowError",Q.message=f,Q.fileName=
v,Q.lineNumber=h,isNaN(a)?delete Q.columnNumber:Q.columnNumber=a),_.g("wiz_enable_component_stack_propagation_killswitch")||(G=X4A(Q,G)),G&&_.wf(Q,G),x?_.mV(Q):_.yR(Q))};
_.mV=function(D,v,h,a,Q,G,x,f){G=G===void 0?{}:G;G.name=h||_.eA("INNERTUBE_CONTEXT_CLIENT_NAME",1);G.version=a||_.eA("INNERTUBE_CONTEXT_CLIENT_VERSION");h=G;v=v===void 0?"ERROR":v;x=x===void 0?!1:x;v=v===void 0?"ERROR":v;x=x===void 0?!1:x;if(D&&(D.hasOwnProperty("level")&&D.level&&(v=D.level),_.g("console_log_js_exceptions")&&(a=[],a.push("Name: "+D.name),a.push("Message: "+D.message),D.hasOwnProperty("params")&&a.push("Error Params: "+JSON.stringify(D.params)),D.hasOwnProperty("args")&&a.push("Error args: "+
JSON.stringify(D.args)),a.push("File name: "+D.fileName),a.push("Stacktrace: "+D.stack),a=a.join("\n"),window.console.log(a,D)),!(dq7>=5))){a=[];Q=_.P(jgf);for(G=Q.next();!G.done;G=Q.next()){G=G.value;try{G()&&a.push(G())}catch(A){}}a=[].concat(_.j_(sg8),_.j_(a));var C=mqL(D);Q=C.message||"Unknown Error";G=C.name||"UnknownError";var U=C.stack||D.stacktrace||"Not available";if(U.startsWith(G+": "+Q)){var L=U.split("\n");L.shift();U=L.join("\n")}L=C.lineNumber||"Not available";C=C.fileName||"Not available";
var Z=0;if(D.hasOwnProperty("args")&&D.args&&D.args.length)for(var E=0;E<D.args.length&&!(Z=NR4(D.args[E],"params."+E,h,Z),Z>=500);E++);else if(D.hasOwnProperty("params")&&D.params){var I=D.params;if(typeof D.params==="object")for(E in I){if(I[E]){var S="params."+E,B=px(I[E]);h[S]=B;Z+=S.length+B.length;if(Z>500)break}}else h.params=px(I)}if(a.length)for(E=0;E<a.length&&!(Z=NR4(a[E],"params.context."+E,h,Z),Z>=500);E++);navigator.vendor&&!h.hasOwnProperty("vendor")&&(h["device.vendor"]=navigator.vendor);
E={message:Q,name:G,lineNumber:L,fileName:C,stack:U,params:h,sampleWeight:1};h=Number(D.columnNumber);isNaN(h)||(E.lineNumber=E.lineNumber+":"+h);if(D.level==="IGNORED")D=0;else a:{D=Hjc();h=_.P(D.messageWeights);for(a=h.next();!a.done;a=h.next())if(a=a.value,E.message&&E.message.match(a.messageRegExp)){D=a.weight;break a}D=_.P(D.callbackWeights);for(h=D.next();!h.done;h=D.next())if(h=h.value,h.callback(E)){D=h.weight;break a}D=1}E.sampleWeight=D;D=_.P(ync);for(h=D.next();!h.done;h=D.next())if(h=
h.value,h.patternsForType[E.name])for(Q=_.P(h.patternsForType[E.name]),a=Q.next();!a.done;a=Q.next())if(G=a.value,a=E.message.match(G.regexp)){E.params["params.error.original"]=a[0];Q=G.groups;G={};for(L=0;L<Q.length;L++)G[Q[L]]=a[L+1],E.params["params.error."+Q[L]]=a[L+1];E.message=h.messageFn(G);break}E.params||(E.params={});D=Hjc();E.params["params.errorServiceSignature"]="msg="+D.messageWeights.length+"&cb="+D.callbackWeights.length;E.params["params.serviceWorker"]="false";_.$L.document&&_.$L.document.querySelectorAll&&
(E.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new ej(w4c,"sample")).constructor!==ej&&(E.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(E);if(E.sampleWeight!==0&&!eV2.has(E.message)){if(x&&_.g("web_enable_error_204"))neI(v===void 0?"ERROR":v,E);else{v=v===void 0?"ERROR":v;v==="ERROR"?(Ojc.publish("handleError",E),_.g("record_app_crashed_web")&&Ksu===0&&E.sampleWeight===1&&(Ksu++,x={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.g("report_client_error_with_app_crash_ks")||(x.systemHealth={crashData:{clientError:{logMessage:{message:E.message}}}}),_.jj("appCrashed",x)),Tpu++):v==="WARNING"&&Ojc.publish("handleWarning",E);if(_.g("kevlar_gel_error_routing")){x=v;f=f===void 0?{}:f;b:{D=_.P(RVI);for(h=D.next();!h.done;h=D.next())if(eO(h.value.toLowerCase())){D=!0;break b}D=!1}if(D)f=void 0;else{h={stackTrace:E.stack};E.fileName&&(h.filename=E.fileName);D=E.lineNumber&&E.lineNumber.split?E.lineNumber.split(":"):[];D.length!==
0&&(D.length!==1||isNaN(Number(D[0]))?D.length!==2||isNaN(Number(D[0]))||isNaN(Number(D[1]))||(h.lineNumber=Number(D[0]),h.columnNumber=Number(D[1])):h.lineNumber=Number(D[0]));D={level:"ERROR_LEVEL_UNKNOWN",message:E.message,errorClassName:E.name,sampleWeight:E.sampleWeight};x==="ERROR"?D.level="ERROR_LEVEL_ERROR":x==="WARNING"&&(D.level="ERROR_LEVEL_WARNNING");h={isObfuscated:!0,browserStackInfo:h};f.pageUrl=window.location.href;f.kvPairs=[];_.eA("FEXP_EXPERIMENTS")&&(f.experimentIds=_.eA("FEXP_EXPERIMENTS"));
a=_.eA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!cPu("web_disable_gel_stp_ecatcher_killswitch")&&a)for(Q=_.P(Object.keys(a)),G=Q.next();!G.done;G=Q.next())G=G.value,f.kvPairs.push({key:G,value:String(a[G])});if(a=E.params)for(Q=_.P(Object.keys(a)),G=Q.next();!G.done;G=Q.next())G=G.value,f.kvPairs.push({key:"client."+G,value:String(a[G])});a=_.eA("SERVER_NAME");Q=_.eA("SERVER_VERSION");a&&Q&&(f.kvPairs.push({key:"server.name",value:a}),f.kvPairs.push({key:"server.version",value:Q}));f={errorMetadata:f,
stackTrace:h,logMessage:D}}f&&(_.jj("clientError",f),(x==="ERROR"||_.g("errors_flush_gel_always_killswitch"))&&_.s5())}_.g("suppress_error_204_logging")||neI(v,E)}try{eV2.add(E.message)}catch(A){}dq7++}}};
neI=function(D,v){var h=v.params||{};D={urlParams:{a:"logerror",t:"jserror",type:v.name,msg:v.message.substr(0,250),line:v.lineNumber,level:D,"client.name":h.name},postParams:{url:_.eA("PAGE_NAME",window.location.href),file:v.fileName},method:"POST"};h.version&&(D["client.version"]=h.version);if(D.postParams){v.stack&&(D.postParams.stack=v.stack);v=_.P(Object.keys(h));for(var a=v.next();!a.done;a=v.next())a=a.value,D.postParams["client."+a]=h[a];if(h=_.eA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(v=
_.P(Object.keys(h)),a=v.next();!a.done;a=v.next())a=a.value,D.postParams[a]=h[a];(h=_.eA("LAVA_VERSION"))&&(D.postParams["lava.version"]=h);h=_.eA("SERVER_NAME");v=_.eA("SERVER_VERSION");h&&v&&(D.postParams["server.name"]=h,D.postParams["server.version"]=v)}_.kd(_.eA("ECATCHER_REPORT_HOST","")+"/error_204",D)};
_.ijo=function(D,v){v=v===void 0?"ERROR":v;var h=h===void 0?{}:h;var a=_.T3("ytbin.polymer.shared.lib.tampering.info");a&&(a=a())&&(h["params.tamperingInfo"]=a.sort().join(","));_.mV(D,v,void 0,void 0,!0,h)};
_.wf=function(D){var v=_.Kz.apply(1,arguments);D.args||(D.args=[]);Array.isArray(D.args)&&D.args.push.apply(D.args,_.j_(v))};
WsI=function(D){D.level="IGNORED"};
tbA=function(D,v){sg8.push(D);v();sg8.pop()};
O5=function(D,v){for(var h in v)v.hasOwnProperty(h)&&(D=_.np(D,h,v[h]));return D};
_.rn8=function(D,v,h){h=h===void 0?!1:h;if(!D)return null;if(D.adInfoDialogEndpoint||D.backstageImageUploadEndpoint||D.confirmDialogEndpoint||D.clientActionEndpoint||D.createBackstagePostDialogEndpoint||D.createCommentReplyDialogEndpoint||D.flowEndpoint||D.guideBuilderEndpoint||D.liveChatDialogEndpoint||D.modalEndpoint||D.openPopupAction||D.shareEndpoint||D.shareEntityEndpoint||D.showLiveChatItemEndpoint||D.subscriptionManagerEndpoint||D.unlimitedCreateFamilyEndpoint||D.unlimitedFamilyFlowEndpoint||
D.updateCommentDialogEndpoint||D.updateCommentReplyDialogEndpoint||D.userFeedbackEndpoint||D.videoEditorEndpoint||D.ypcCancelSurveyEndpoint)return v=_.oZ("polymer_report_client_url_requested_rate"),!h&&Math.random()<v&&_.yR(new _.XH("urlForEndpoint used on client endpoint",D)),null;var a=_.oZ("polymer_report_missing_web_navigation_endpoint_rate");if(D.liveChatEndpoint||D.liveChatReplayEndpoint)a=0;if(!D.commandMetadata&&!D.clickTrackingParams&&Math.random()<a){var Q={},G;for(G in D)Q[G]="1";_.yR(new _.XH("Missing navigation data",
Q))}Q="";if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url)Q=D.commandMetadata.webCommandMetadata.url;else if(D.searchEndpoint)Math.random()<a&&_.yR(new _.XH("Should not manually handle search",D)),Q="/results?search_query="+encodeURIComponent(D.searchEndpoint.query).replace(/%20/g,"+"),D.searchEndpoint.params&&(Q+="&sp="+D.searchEndpoint.params);else if(D.watchEndpoint)Math.random()<a&&_.yR(new _.XH("Should not manually handle watch",D)),Q="/watch?v="+
D.watchEndpoint.videoId,D.watchEndpoint.playlistId&&(Q+="&list="+D.watchEndpoint.playlistId),D.watchEndpoint.index&&(Q+="&index="+D.watchEndpoint.index),D.watchEndpoint.startTimeSeconds&&(Q+="&t="+D.watchEndpoint.startTimeSeconds);else if(D.browseEndpoint)a=D.browseEndpoint.browseId,(G=D.browseEndpoint.canonicalBaseUrl)?Q=G:a&&(Q=a.substr(0,2),Q=Q==="FE"?a==="FEwhat_to_watch"?"/":a==="FEmy_videos"?"/my_videos":"/feed/"+a.substr(2):Q==="VL"?"/playlist?list="+a.substr(2):"/channel/"+a),Q&&D.browseEndpoint.query&&
(Q=O5(Q+"/search",{query:D.browseEndpoint.query})),Q&&D.browseEndpoint.params&&(Q=O5(Q,{params:D.browseEndpoint.params}));else{if(D.urlEndpoint)return D.urlEndpoint.url;D.signInEndpoint?(Q="https://accounts.google.com/ServiceLogin",a={},_.sV.extend(a,v||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),v=a):D.uploadEndpoint?Q="//www.youtube.com/upload":D.liveChatEndpoint?(Q=D.liveChatEndpoint,a=_.sV.clone(Q),_.Ro(Q.continuation)&&(G=Object.keys(Q.continuation)[0],
a.continuation=Q.continuation[G].continuation),Q=O5("/youtubei/v1/live_chat/get_live_chat",a)):D.liveChatReplayEndpoint?(Q=_.sV.clone(D.liveChatReplayEndpoint),Q.currentPlayerState&&(_.sV.extend(Q,Q.currentPlayerState),delete Q.currentPlayerState),Q=O5("/youtubei/v1/live_chat/get_live_chat_replay",Q)):D.liveChatItemContextMenuEndpoint?Q=O5("/youtubei/v1/live_chat/get_item_context_menu",D.liveChatItemContextMenuEndpoint):D.liveChatPurchaseMessageEndpoint?Q=O5("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
D.liveChatPurchaseMessageEndpoint):D.openSuperStickerBuyFlowCommand?Q=O5("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",D.openSuperStickerBuyFlowCommand):D.videoEditEndpoint?Q=O5("/edit",{video_id:D.videoEditEndpoint.videoId}):D.liveDashboardEndpoint?Q=D.liveDashboardEndpoint.videoId?O5("/live_dashboard",{v:D.liveDashboardEndpoint.videoId}):"/live_dashboard":D.signalNavigationEndpoint&&D.signalNavigationEndpoint.signal&&D.signalNavigationEndpoint.signal==="WEBCAM"?Q="/webcam":D.getPdgBuyFlowCommand&&
(Q=O5(D.getPdgBuyFlowCommand.buyflowApiPath,{params:D.getPdgBuyFlowCommand.params}))}return Q||h?O5(Q,v||{}):(_.yR(new _.XH("Error: Can't construct url for endpoint","keys:"+Object.keys(D).sort().join(","),D)),null)};
ueo=function(D){if(D){if(D.browseEndpoint)return!!D.browseEndpoint.nofollow;if(D.watchEndpoint)return!!D.watchEndpoint.nofollow;if(D.urlEndpoint)return!!D.urlEndpoint.nofollow}return!1};
_.v2o=function(D,v){var h=v+D,a=DOr.get(h);if(a)return a;D=v+"-"+D.replace(/([A-Z])/g,"-$1").toLowerCase();DOr.set(h,D);return D};
h6q=function(D){var v=_.m9(D,"action")||_.m9(D,"command")||_.m9(D,"endpoint");if(!v)return null;v=_.v2o(v,"yt");_.k(D,_.Kp)&&(v+="-"+_.k(D,_.Kp).signal.toLowerCase().replace(/_/g,"-"));return v};
GNf=function(D){try{var v=Object.keys(D)}catch(Q){return[]}for(var h=0;h<v.length;h++){var a=v[h];if(aji.test(a)||$OA.test(a))return QiL(D[a])}return[]};
QiL=function(D){return D.command?[D.command]:D.onExecutionAction?[D.onExecutionAction]:D.onResponseReceivedCommand?[D.onResponseReceivedCommand]:D.updateFlowCommand?[D.updateFlowCommand]:D.clientActions?D.clientActions:D.action?[D.action]:D.actions||D.commands||D.onResponseReceivedActions||D.onResponseReceivedCommands||D.onResponseReceivedEndpoints||[]};
Pj2=function(D,v){v=v===void 0?!1:v;var h=_.xd().resolve(_.PV(TC));h||(h=new VoI,_.xd().addProvider({provide:TC,useValue:h}));return h&&D&&!_.sV.isEmpty(D)?h.getUrl(D,v):""};
xOc=function(D,v,h){h=h===void 0?"":h;if(v){D.data=v;var a=Pj2(v);a?(Rm(D,a),ueo(v)||!Gi(a)?D.rel="nofollow":D.removeAttribute("rel"),_.k(v,_.RB)&&_.k(v,_.RB).target==="TARGET_NEW_WINDOW"?D.target="_blank":h?D.target=h:D.removeAttribute("target")):(D.removeAttribute("href"),D.removeAttribute("rel"),D.removeAttribute("target"))}};
_.DO=function(D,v){var h=Q6;if(Xo())Moi(D,function(){var G=_.Kz.apply(0,arguments);Hl(h,function(){v.apply(null,_.j_(G))})});
else{var a=_.iD.getInstance(),Q=BKo(v);IDf(function(){Q.value=v});
_.jA(function(){var G={},x=_.rf(a,(G[D]=function(){var f=_.Kz.apply(0,arguments);Hl(h,function(){Q.value.apply(Q,_.j_(f))})},G));
return function(){var f={};_.uD(a,(f[D]="",f),x)}})}};
_.va=function(D,v){return fjf(D,!1,v)};
_.$X=function(D,v){return fjf(D,!0,v)};
fjf=function(D,v,h){return Xo()?CjL(D,v,h):o2O(D,v,h)};
o2O=function(D,v,h){return sM(function(){return CjL(D,v,h)})};
CjL=function(D,v,h){var a=UFf(function(Q){a.value=Q;var G=function(){var x=ou(null);try{return h==null?void 0:h(Q)}finally{ou(x)}}();
return function(){G==null||G()}});
a.__expectedTagName=D;a.__optional=v;a.isIdom=!Xo();return a};
F2A=function(D){var v=Q6,h=Bl;return{getFn:function(){return function(a){v.isDisposed||qx(function(){return _.LV(function(){return D(a)})},h)!==!0&&a.stopPropagation()}}}};
QX=function(D){if(typeof D.children==="function")return D.children(),null;D=_.P(D.children);for(var v=D.next();!v.done;v=D.next())v=v.value,v();return null};
z68=function(D){var v;return((v=D.prototype)==null?void 0:v.render)===void 0};
UOc=function(D){return D.items.map(D.children)};
ZSu=function(D,v,h){h=h===void 0?!1:h;qx(function(){return L2i(D,v,h)})};
L2i=function(D,v,h){var a=null;lW++;h=(h===void 0?0:h)?E22:Ijc;try{a=h(D,function(){GR(v)}),YH(!1)}catch(Q){throw YH(!0),Q;
}return a===null?D:a};
GR=function(D){if(D!==void 0&&D!==null)if(D instanceof kf)for(var v=TS;Wl()!=null&&vEf in Wl()&&v.contains(Wl());)uW();else if(Array.isArray(D))for(v=_.P(D),D=v.next();!D.done;D=v.next())GR(D.value);else if(D instanceof cd||D instanceof MS||"function"==typeof _.G3&&D instanceof _.G3)Dc4(D.toString());else if(_.fJ(D)){if(Wl()!==D){var h,a;v=(a=(h=Bl)==null?void 0:h.name)!=null?a:"unknown";throw Error("hc`"+D.tagName+"`"+v);}uW()}else if(D!=null&&D.contentKind===Fd||D instanceof iH||zuq(D))for(v=L3q(D),
v=Array.from(v.childNodes),v=_.P(v),D=v.next();!D.done;D=v.next())TS.appendChild(D.value),uW();else if(sQ(D)&&(D=D.toString()),h=typeof D,h==="boolean"||h==="number"||h==="string")Dc4(D);else if(typeof D==="function"){v=TS;var Q=Wl();Q&&(Q._isSignalTextNode||Q._isSafeOrSanitizedHtmlNode)||OmL(v,Q,D);uW()}else if(D.type===UOc)GR(D.type(Object.assign({},D.props,{children:D.children[0]})));else{pJ.beforeVisit(D);if(typeof D.type==="string"){a:{D.__open||O9O(D.type,D.props.idomKey);Q=TS;for(v in D.props)if(D.props[v]!==
g2O){var G=D.props[v];h=h$;h.push(v);h.push(G)}v=Mx.attributes;v=v===void 0?VX:v;G=TS;h=KV(G);uLL(G,h,v);nR7(Q,D.props,!0);if((D.props.skip||D.props.skipchildren)&&TS.hasChildNodes())Tk8();else{if(D.type==="style"&&pTf(D.children)===null){Tk8();v=void 0;break a}GR(D.children)}KK7();D.__open&&(D.__open=!1);P4i(Q,D.props);v=Q}return v}if(D.type===_.xf)GR(D.children);else if(!kNO(D)){v=D;try{Syc(v)}catch(x){D=x,(G=Mx.handleError)==null||G.call.apply(G,[Mx].concat(_.j_(y6(D,(Q=v.type)==null?void 0:Q.TAG_NAME))))}v.__open&&
(KK7(),v.__open=!1)}}};
Jmq=function(D,v){var h;z68(D)?h=new Nd(v,D):h=new D(v);h.__type=D;h.__updateContext={nextState:h.state,isForced:!1};return h};
Syc=function(D){var v=D.type,h=v.TAG_NAME;if(v===QX)D.props.children=D.children,v(D.props);else{D.children.length>0&&(D.props.children=D.children);var a;(a=D.props).idomKey||(a.idomKey=v);if(h){var Q=O9O(h,D.props.idomKey);D.__open=!0;var G=Q.__instance}G||(G=Jmq(v,D.props),G.props=null,Q&&(Q.__instance=G,G.el=Q));var x;h=((x=G.__updateContext)!=null?x:{nextState:G.state,isForced:!1}).nextState;G.__updateContext=void 0;v.getDerivedStateFromProps&&(h=v.getDerivedStateFromProps(D.props,h));G.props=
D.props;G.state=h;x=function(){var f=G;pJ.beforeRender(f);var C=f.render(f.props);pJ.afterRender(f,C);C?(f.props.idomKey&&(C.props.idomKey=f.props.idomKey),f=C):f=void 0;if(C=f)if(C.__open=D.__open,f=GR(C),D.__open=C.__open,!v.TAG_NAME)if(f)v.TAG_NAME=f.tagName.toLowerCase(),f.__instance=G,G.el=f;else{var U;if((U=G.hooks)==null?0:U.length){var L;(L=Mx.handleError)==null||L.call.apply(L,[Mx].concat(_.j_(y6(Error("nd")))))}}G.didPatch();pJ.didPatch(G)};
(h=G.functionComponent)?Mgi(h,x,G.props.debugInstance):x()}};
kNO=function(D){var v=D.type;if(!z68(v)||v===QX||v.componentType===cl)return!1;D.props.children=D.children.length>1?D.children:D.children[0];var h,a=(h=D.props.idomKey)!=null?h:D.type,Q;if(Wl()&&((Q=Wl()[Z0])==null?void 0:Q.key)===a){var G=Wl(),x=G[Z0];if(!x)throw Error("gc`"+G.tagName);var f;(f=x.updateSignalsFromIdomProps)==null||f.call(x,D.props);pOr(x);return!0}if(ljf.has(v.name))throw f=v.name,v=(x=(G=Bl)==null?void 0:G.name)!=null?x:"unknown",Error("fc`"+f+"`"+v);imc(D.type,D.props,D.children);
D.props.renderedFromIdom=!0;(f=Mgi(D.type,function(){return mcc(D.type,D.props)},D.props.debugInstance))&&Nv4(f);
return!0};
Yyr=function(D){for(var v=0;v<It(D).length;v++)uW()};
pOr=function(D){var v=Bv7();if(v)Yyr(v);else for(var h=0;h<D.numNodes;h++)(v=Bv7())?Yyr(v):uW()};
Bv7=function(){var D;return(D=Wl()[Z0])==null?void 0:D.sourceDynamicRange};
Nv4=function(D){D=fFr(D);D=Array.isArray(D)?D:[D];D=_.P(D);for(var v=D.next();!v.done;v=D.next())TS.insertBefore(v.value,Wl()),uW()};
cmu=function(){var D=yBO(),v=sM(function(){return{value:0}});
return[v.value,function(h){if(ly!==null){var a;(a=Mx.handleError)==null||a.call.apply(a,[Mx].concat(_.j_(y6(Error("od")))))}v.value=typeof h==="function"?h(v.value):h;D.__updateContext={nextState:D.state,isForced:!0};h=_.GS(D.effectContext);a=Md(!1);try{if(D.el){var Q,G={},x=(G.props=D.props,G.type=D.__type,G.children=(Q=D.props.children)!=null?Q:[],G[Pv]=!0,G);try{ZSu(D.el,x,!0)}catch(U){var f,C;(C=Mx.handleError)==null||C.call.apply(C,[Mx].concat(_.j_(y6(U,(f=D.__type)==null?void 0:f.TAG_NAME))))}}}finally{Md(a),
_.GS(h)}}]};
_.Pa=function(D,v){var h=Q6,a=function(Q){Hl(h,function(){v(Q)})};
window.addEventListener(D,a,void 0);_.dq(function(){window.removeEventListener(D,a,void 0)})};
_.Mb=function(D){var v=Q6;return function(h){var a,Q=(a=D.observer)!=null?a:_.xd().resolve(xX);a=XOu(h);var G=[];D.showOption&&G.push(Q.observe(h,function(){Hl(v,function(){D.visibilityCallback(!0,h)})},D.showOption));
D.hideOption&&G.push(Q.observe(h,function(){Hl(v,function(){D.visibilityCallback(!1,h)})},D.hideOption));
D.prescanOption&&D.prescanCallback&&G.push(Q.observe(h,function(){Hl(v,function(){D.prescanCallback()})},D.prescanOption));
var x;a.visibilityMonitorKeys=((x=a.visibilityMonitorKeys)!=null?x:[]).concat(G)}};
XOu=function(D){var v;return(v=D.polymerController)!=null?v:D};
dOO=function(D,v){var h=Am7;return _.F(_.xf,null,Bar(Mx.enableLazyTsx,function(){return _.F(qyO,{id:h,value:D,children:v})},function(){var a=bSI(h,D);
xH(a);a=_.GS(a);try{return v()}finally{_.GS(a)}}))};
qyO=function(D){var v=D.children;D=bSI(D.id,D.value);xH(D);D=_.GS(D);try{return _.F(_.xf,null,SA(v()))}finally{_.GS(D)}};
bSI=function(D,v){return Object.assign(Object.create(ji2),{id:D,contextValue:v})};
sic=function(D){var v,h=Q6;_.mt(function(){var a=_.GS(h),Q=Md(!v);try{if(v)ZSu(v,D.children(),!0);else if(v=SA(D.children()),!(v instanceof Element))throw Error("pd");}finally{Md(Q),_.GS(a)}},"e");
return v};
_.mO7=function(D,v){var h;v=jM(function(){var a=Md(!0);lW++;try{h=It(D()),YH(!1)}catch(Q){throw YH(!0),Q;}finally{Md(a)}},v===void 0?!1:v);
return[h,v]};
ymr=function(D){var v=new HSo;v.abort(D);return v.signal};
wOA=function(){if(this.aborted){var D;throw(D=this.reason)!=null?D:new DOMException("signal is aborted without reason","AbortError");}};
OS8=function(D){var v=new HSo;D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,h.aborted){v.abort(h.reason);break}else e6r.set(v.signal,v),n28.add(h,v.signal);return v.signal};
K22=function(){for(var D=_.P(n28.get(this)),v=D.next();!v.done;v=D.next())e6r.get(v.value).abort(this.reason)};
Tvq=function(D){var v=new HSo;setTimeout(function(){v.abort(new DOMException("signal timed out","TimeoutError"))},D);
return v.signal};
iSc=function(D){D=D.buf.charCodeAt(D.pos++);return R6q[D]};
f9=function(D){var v=0,h=0;do{var a=iSc(D);v|=(a&31)<<h;h+=5}while(a&32);return v<0?v+4294967296:v};
toA=function(){var D=!0;D=D===void 0?!1:D;var v=v===void 0?!1:v;var h=h===void 0?{}:h;var a=h.cssRowKey||"",Q=h.combinedSignature||"";!a&&window&&window._F_cssRowKey&&(a=window._F_cssRowKey,!Q&&window._F_combinedSignature&&(Q=window._F_combinedSignature));if(a&&typeof window._F_installCss!=="function")throw Error("zd");var G=h.loaderClass||_.C9,x=Wdc("base-js");D=new G(EI8(r2q("",x)),a,Q,D,v);v=h.useCors||x&&x.hasAttribute("crossorigin");x=h.corsMode||x&&x.getAttribute("crossorigin");v&&(D.useCors_=
v);x&&(D.corsMode_=x);h.urlMaxLength&&(D.urlMaxLength=h.urlMaxLength);h.fetchPriority&&(D.fetchPriority=h.fetchPriority);var f=mS();f.JSC$10058_loader_=D;f.setBatchModeEnabled(!0);_.W28=function(C){return Promise.resolve(f.load(C))}};
Dhq=function(D,v,h){rmi(D,v);D[v][uvi].unshift(h)};
rmi=function(D,v){if(!D[v]||!D[v][uvi]){var h=D[v],a=h?[h]:[];D[v]=function(){for(var Q=_.P(a),G=Q.next();!G.done;G=Q.next())G.value.apply(this,arguments)};
D[v][uvi]=a}};
vYO=function(D){if(!D)return[];var v=[];D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,Array.isArray(h)?v.push.apply(v,_.j_(vYO(h))):v.push(h);return v};
_.FL=function(D,v){if(D&&hmI.test(D)||D==="//")return D;if(aSi===void 0){aSi=!1;try{var h=new URL("b","http://a");h.pathname="c%20d";aSi=h.href==="http://a/c%20d"}catch(a){}}v||(v=document.baseURI||window.location.href);if(aSi)try{return(new URL(D,v)).href}catch(a){return D}oM||(oM=document.implementation.createHTMLDocument("temp"),oM.base=oM.createElement("base"),oM.head.appendChild(oM.base),oM.anchor=oM.createElement("a"),oM.body.appendChild(oM.anchor));oM.base.href=v;oM.anchor.href=D;return oM.anchor.href||
D};
QQc=function(D,v){return D.replace($hf,function(h,a,Q,G){return a+"'"+_.FL(Q.replace(/["']/g,""),v)+"'"+G})};
Gkr=function(D){return D.substring(0,D.lastIndexOf("/")+1)};
xhu=function(){V6c=!1;for(var D=zR.length,v=0;v<D;v++){var h=zR[v];if(h)try{h()}catch(a){setTimeout(function(){throw a;})}}zR.splice(0,D);
Pp4+=D};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(D){console.log("["+D.is+"]: registered")};
fS4=function(D){M62.push(D)};
UR=function(D){return Cpi[D]||(Cpi[D]=D.indexOf("-")<0?D:D.replace(oYi,function(v){return v[1].toUpperCase()}))};
L9=function(D){return Cpi[D]||(Cpi[D]=D.replace(FPA,"-$1").toLowerCase())};
zmc=function(D,v){var h=v.parentInfo&&zmc(D,v.parentInfo);if(h)for(D=h.firstChild,h=0;D;D=D.nextSibling){if(v.parentIndex===h++)return D}else return D};
UhO=function(D,v){D=D._methodHost||D;return function(h){if(D[v])D[v](h,h.detail);else console.warn("listener method `"+v+"` not defined")}};
ZO=function(D){return D.indexOf(".")>=0};
ER=function(D){var v=D.indexOf(".");return v===-1?D:D.slice(0,v)};
LPA=function(D,v){return D.indexOf(v+".")===0};
IM=function(D,v){return v.indexOf(D+".")===0};
gk=function(D,v,h){return v+h.slice(D.length)};
ZKA=function(D,v){return D===v||LPA(D,v)||IM(D,v)};
kX=function(D){if(Array.isArray(D)){for(var v=[],h=0;h<D.length;h++)for(var a=D[h].toString().split("."),Q=0;Q<a.length;Q++)v.push(a[Q]);return v.join(".")}return D};
EY4=function(D){return Array.isArray(D)?kX(D).split("."):D.toString().split(".")};
Sg=function(D,v,h){v=EY4(v);for(var a=0;a<v.length;a++){if(!D)return;D=D[v[a]]}h&&(h.path=v.join("."));return D};
ISL=function(D,v,h){var a=EY4(v),Q=a[a.length-1];if(a.length>1){for(v=0;v<a.length-1;v++)if(D=D[a[v]],!D)return;D[Q]=h}else D[v]=h;return a.join(".")};
gYA=function(D,v,h){var a=D[v];if(!a)a=D[v]={};else if(!D.hasOwnProperty(v)&&(a=D[v]=Object.create(D[v]),h))for(var Q in a)for(D=a[Q],v=a[Q]=Array(D.length),h=0;h<D.length;h++)v[h]=D[h];return a};
p9=function(D,v,h,a,Q,G){if(v){var x=!1,f=JH++,C;for(C in h){var U=Q?ER(C):C;if(U=v[U])for(var L=0,Z=U.length,E=void 0;L<Z&&(E=U[L]);L++)E.info&&E.info.lastRun===f||Q&&!kk8(C,E.trigger)||(E.info&&(E.info.lastRun=f),E.fn(D,C,h,a,E.info,Q,G),x=!0)}return x}return!1};
kk8=function(D,v){if(v){var h=v.name;return h==D||!(!v.structured||!LPA(h,D))||!(!v.wildcard||!IM(h,D))}return!0};
Sk7=function(D,v,h,a,Q){v=typeof Q.method==="string"?D[Q.method]:Q.method;h=Q.property;v?v.call(D,D.__data[h],a[h]):Q.dynamicFn||console.warn("observer method `"+Q.method+"` not defined")};
JL8=function(D,v,h,a){h={value:h,queueProperty:!0};a&&(h.path=a);(0,_.lM)(D).dispatchEvent(new CustomEvent(v,{detail:h}))};
p7L=function(D,v,h,a,Q,G){G=(a=(G?ER(v):v)!=v?v:null)?Sg(D,a):D.__data[v];a&&G===void 0&&(G=h[v]);JL8(D,Q.eventName,G,a)};
lSc=function(D,v,h,a,Q){h=D.__data[v];Nb&&(h=Nb(h,Q.attrName,"attribute",D));D._propertyToAttribute(v,Q.attrName,h)};
YkI=function(D){var v=D.constructor.__orderedComputedDeps;if(!v){v=new Map;for(var h=D.__computeEffects,a=Noo(D),Q=a.counts,G=a.ready,x=a.total;a=G.shift();)v.set(a,v.size),(a=h[a])&&a.forEach(function(f){f=f.info.methodInfo;--x;--Q[f]===0&&G.push(f)});
x!==0&&console.warn("Computed graph for "+D.localName+" incomplete; circular?");D.constructor.__orderedComputedDeps=v}return v};
Noo=function(D){var v=D.__computeInfo,h={};D=D.__computeEffects;var a=[],Q=0,G;for(G in v){var x=v[G];Q+=h[G]=x.args.filter(function(C){return!C.literal}).length+(x.dynamicFn?1:0)}for(var f in D)v[f]||a.push(f);
return{counts:h,ready:a,total:Q}};
cLr=function(D,v,h,a,Q){v=Bo7(D,v,h,a,Q);if(v===YX)return!1;Q=Q.methodInfo;if(D.__dataHasAccessor&&D.__dataHasAccessor[Q])return D._setPendingProperty(Q,v,!0);D[Q]=v;return!1};
qkc=function(D,v,h,a,Q,G,x){h.bindings=h.bindings||[];a={kind:a,target:Q,parts:G,literal:x,isCompound:G.length!==1};h.bindings.push(a);a.target&&a.kind!="attribute"&&a.kind!="text"&&!a.isCompound&&a.parts[0].mode==="{"&&(h=a.parts[0],G=h.negate,a.listenerEvent=h.event||L9(Q)+"-changed",a.listenerNegate=G);Q=v.nodeInfoList.length;for(h=0;h<a.parts.length;h++){var f=a.parts[h];f.compoundIndex=h;G=D;x=v;var C=a,U=f,L=Q;if(!U.literal)if(C.kind==="attribute"&&C.target[0]==="-")console.warn("Cannot set attribute "+
C.target+' because "-" is not a valid attribute starting character');else for(f=U.dependencies,C={index:L,binding:C,part:U,evaluator:G},U=0;U<f.length;U++)L=f[U],typeof L=="string"&&(L=X7I(L),L.wildcard=!0),G._addTemplatePropertyEffect(x,L.rootProperty,{fn:ALo,info:C,trigger:L})}};
ALo=function(D,v,h,a,Q,G,x){x=x[Q.index];var f=Q.binding,C=Q.part;G&&C.source&&v.length>C.source.length&&f.kind=="property"&&!f.isCompound&&x.__isPropertyEffectsClient&&x.__dataHasAccessor&&x.__dataHasAccessor[f.target]?(h=h[v],v=gk(C.source,f.target,v),x._setPendingPropertyOrPath(v,h,!1,!0)&&D._enqueueClient(x)):(v=Q.evaluator._evaluateBinding(D,C,v,h,a,G),v!==YX&&(f.isCompound&&(h=x.__dataCompoundStorage[f.target],h[C.compoundIndex]=v,v=h.join("")),f.kind==="attribute"||f.target!=="textContent"&&
(f.target!=="value"||x.localName!=="input"&&x.localName!=="textarea")||(v=v==void 0?"":v),C=v,Nb&&(C=Nb(C,f.target,f.kind,x)),f.kind=="attribute"?D._valueToNodeAttribute(x,C,f.target):(f=f.target,x.__isPropertyEffectsClient&&x.__dataHasAccessor&&x.__dataHasAccessor[f]?x.__readOnly&&x.__readOnly[f]||x._setPendingProperty(f,C)&&D._enqueueClient(x):D._setUnmanagedPropertyToNode(x,f,C))))};
bKA=function(D,v,h){if(h.listenerEvent){var a=h.parts[0];D.addEventListener(h.listenerEvent,function(Q){var G=h.target,x=a.source,f=a.negate,C=Q.detail,U=C&&C.path;U?(x=gk(G,x,U),Q=C&&C.value):Q=Q.currentTarget[G];v.__readOnly&&v.__readOnly[x]||!v._setPendingPropertyOrPath(x,f?!Q:Q,!0,!!U)||C&&C.queueProperty||v._invalidateProperties()})}};
dhA=function(D,v,h,a,Q,G){G=v.static||G&&(typeof G!=="object"||G[v.methodName]);Q={methodName:v.methodName,args:v.args,methodInfo:Q,dynamicFn:G};for(var x=0,f=void 0;x<v.args.length&&(f=v.args[x]);x++)f.literal||D._addPropertyEffect(f.rootProperty,h,{fn:a,info:Q,trigger:f});G&&D._addPropertyEffect(v.methodName,h,{fn:a,info:Q});return Q};
Bo7=function(D,v,h,a,Q){a=D._methodHost||D;var G=a[Q.methodName];if(G)return D=D._marshalArgs(Q.args,v,h),D===YX?YX:G.apply(a,D);Q.dynamicFn||console.warn("method `"+Q.methodName+"` not defined")};
jQu=function(D){for(var v="",h=0;h<D.length;h++)v+=D[h].literal||"";return v};
HKc=function(D){if(D=D.match(/([^\s]+?)\(([\s\S]*)\)/)){var v={methodName:D[1],static:!0,args:sQi};return D[2].trim()?mh8(D[2].replace(/\\,/g,"&comma;").split(","),v):v}return null};
mh8=function(D,v){v.args=D.map(function(h){h=X7I(h);h.literal||(v.static=!1);return h},this);
return v};
X7I=function(D){D=D.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var v={name:D,value:"",literal:!1},h=D[0];h==="-"&&(h=D[1]);h>="0"&&h<="9"&&(h="#");switch(h){case "'":case '"':v.value=D.slice(1,-1);v.literal=!0;break;case "#":v.value=Number(D),v.literal=!0}v.literal||(v.rootProperty=ER(D),v.structured=ZO(D),v.structured&&(v.wildcard=D.slice(-2)==".*",v.wildcard&&(v.name=D.slice(0,-2))));return v};
yL4=function(D,v,h){D=Sg(D,h);D===void 0&&(D=v[h]);return D};
w7c=function(D,v,h,a){a={indexSplices:a};Ba&&!D._overrideLegacyUndefined&&(v.splices=a);D.notifyPath(h+".splices",a);D.notifyPath(h+".length",v.length);Ba&&!D._overrideLegacyUndefined&&(a.indexSplices=[])};
ca=function(D,v,h,a,Q,G){w7c(D,v,h,[{index:a,addedCount:Q,removed:G,object:v,type:"splice"}])};
emI=function(D){D=QQc((D.body?D.body:D).textContent,D.baseURI);var v=document.createElement("style");v.textContent=D;return v};
OK7=function(D){D=D.trim().split(/\s+/);for(var v=[],h=0;h<D.length;h++)v.push.apply(v,_.j_(nYo(D[h])));return v};
nYo=function(D){var v=XL.import(D);if(!v)return console.warn("Could not find style data in module named",D),[];if(v._styles===void 0){D=[];D.push.apply(D,_.j_(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v)));var h=v.querySelector("template");h&&D.push.apply(D,_.j_(KP8(h,v.assetpath)));v._styles=D}return v._styles};
KP8=function(D,v){if(!D._styles){for(var h=[],a=D.content.querySelectorAll("style"),Q=0;Q<a.length;Q++){var G=a[Q],x=G.getAttribute("include");x&&h.push.apply(h,_.j_(OK7(x).filter(function(f,C,U){return U.indexOf(f)===C})));
v&&(G.textContent=QQc(G.textContent,v));h.push(G)}D._styles=h}return D._styles};
Toc=function(D){return(D=XL.import(D))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var v=[];D=D.querySelectorAll("link[rel=import][type~=css]");for(var h=0;h<D.length;h++){var a=D[h];if(a.import){var Q=a.import;if((a=a.hasAttribute("shady-unscoped"))&&!Q._unscopedStyle){var G=emI(Q);G.setAttribute("shady-unscoped","");Q._unscopedStyle=G}else Q._style||(Q._style=emI(Q));v.push(a?Q._unscopedStyle:Q._style)}}return v};
iK2=function(D){D=D.trim().split(/\s+/);for(var v="",h=0;h<D.length;h++)v+=RmO(D[h]);return v};
RmO=function(D){var v=XL.import(D);if(v&&v._cssText===void 0){var h=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(v),a=v.querySelector("template");a&&(h+=WPo(a,v.assetpath));v._cssText=h||null}v||console.warn("Could not find style data in module named",D);return v&&v._cssText||""};
WPo=function(D,v){var h="";D=KP8(D,v);for(v=0;v<D.length;v++){var a=D[v];a.parentNode&&a.parentNode.removeChild(a);h+=a.textContent}return h};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var v="";D=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D);for(var h=0;h<D.length;h++)v+=D[h].textContent;return v};
AH=function(D,v){return{index:D,removed:[],addedCount:v}};
rL8=function(D,v,h,a){var Q=0,G=0,x=0,f=0,C=Math.min(v-Q,a-G);if(Q==0&&G==0)a:{for(x=0;x<C;x++)if(D[x]!==h[x])break a;x=C}if(v==D.length&&a==h.length){f=D.length;for(var U=h.length,L=0;L<C-x&&t6o(D[--f],h[--U]);)L++;f=L}Q+=x;G+=x;v-=f;a-=f;if(v-Q==0&&a-G==0)return[];if(Q==v){for(v=AH(Q,0);G<a;)v.removed.push(h[G++]);return[v]}if(G==a)return[AH(Q,v-Q)];C=Q;x=G;a=a-x+1;f=v-C+1;v=Array(a);for(U=0;U<a;U++)v[U]=Array(f),v[U][0]=U;for(U=0;U<f;U++)v[0][U]=U;for(U=1;U<a;U++)for(L=1;L<f;L++)if(D[C+L-1]===
h[x+U-1])v[U][L]=v[U-1][L-1];else{var Z=v[U-1][L]+1,E=v[U][L-1]+1;v[U][L]=Z<E?Z:E}C=v.length-1;x=v[0].length-1;a=v[C][x];for(D=[];C>0||x>0;)C==0?(D.push(2),x--):x==0?(D.push(3),C--):(f=v[C-1][x-1],U=v[C-1][x],L=v[C][x-1],Z=U<L?U<f?U:f:L<f?L:f,Z==f?(f==a?D.push(0):(D.push(1),a=f),C--,x--):Z==U?(D.push(3),C--,a=U):(D.push(2),x--,a=L));D.reverse();v=void 0;C=[];for(x=0;x<D.length;x++)switch(D[x]){case 0:v&&(C.push(v),v=void 0);Q++;G++;break;case 1:v||(v=AH(Q,0));v.addedCount++;Q++;v.removed.push(h[G]);
G++;break;case 2:v||(v=AH(Q,0));v.addedCount++;Q++;break;case 3:v||(v=AH(Q,0)),v.removed.push(h[G]),G++}v&&C.push(v);return C};
uCI=function(D,v){return rL8(D,D.length,v,v.length)};
t6o=function(D,v){return D===v};
v72=function(D){if(D instanceof D6q)return D.value;throw Error("Hd`"+D);};
hcu=function(D,v){for(var h in v)h===null?D.style.removeProperty(h):D.style.setProperty(h,v[h])};
aK2=function(D,v){return(D=window.getComputedStyle(D).getPropertyValue(v))?D.trim():""};
VIO=function(D){requestAnimationFrame(function(){$6f?$6f(D):(Qp2||(Qp2=new Promise(function(v){Gw2=v}),document.readyState==="complete"?Gw2():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Gw2()})),Qp2.then(function(){D&&D()}))})};
MIq=function(D){PTq=D&&D.shimcssproperties?!1:x68||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
zci=function(D){if(!(fKr.indexOf(D)>-1)&&D!=="touchend"&&CT8&&o7f&&Fvq)return{passive:!0}};
E7o=function(D){for(var v=U6o?["click"]:fKr,h=0,a;h<v.length;h++)a=v[h],D?(Lvi.length=0,document.addEventListener(a,Zac,!0)):document.removeEventListener(a,Zac,!0)};
qb=function(D){var v=D.type;return fKr.indexOf(v)>-1?v==="mousemove"?(v=D.buttons===void 0?1:D.buttons,D instanceof window.MouseEvent&&!IKL&&(v=g7q[D.which]||0),!!(v&1)):(D.button===void 0?0:D.button)===0:!1};
kw8=function(D){if(D.type==="click"){if(D.detail===0)return!0;var v=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);if(!v.nodeType||v.nodeType!==Node.ELEMENT_NODE)return!0;v=v.getBoundingClientRect();var h=D.pageX;D=D.pageY;return!(h>=v.left&&h<=v.right&&D>=v.top&&D<=v.bottom)}return!1};
S1i=function(D,v,h){D.movefn=v;D.upfn=h;document.addEventListener("mousemove",v);document.addEventListener("mouseup",h)};
bM=function(D){document.removeEventListener("mousemove",D.movefn);document.removeEventListener("mouseup",D.upfn);D.movefn=null;D.upfn=null};
J8O=function(D,v){for(var h=document.elementFromPoint(D,v),a=h;a&&a.shadowRoot&&!window.ShadyDOM;){var Q=a;a=a.shadowRoot.elementFromPoint(D,v);if(Q===a)break;a&&(h=a)}return h};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var v=pDO(D);return v.length>0?v[0]:D.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var v=D.type,h=D.currentTarget.__polymerGestures;if(h&&(h=h[v])){if(!D.__polymerGesturesHandled&&(D.__polymerGesturesHandled={},v.slice(0,5)==="touch")){var a=D.changedTouches[0];v==="touchstart"&&D.touches.length===1&&(lKc=a.identifier);if(lKc!==a.identifier)return;CT8||(v==="touchstart"||v==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)}a=
D.__polymerGesturesHandled;if(!a.skip){for(var Q=0,G;Q<dk.length;Q++)G=dk[Q],h[G.name]&&!a[G.name]&&G.flow&&G.flow.start.indexOf(D.type)>-1&&G.reset&&G.reset();for(Q=0;Q<dk.length;Q++)G=dk[Q],h[G.name]&&!a[G.name]&&(a[G.name]=!0,G[v](D))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var v=D.changedTouches[0],h=D.type;if(h==="touchstart")NYL=v.clientX,Y12=v.clientY,BYr=!1;else if(h==="touchmove"&&!BYr){BYr=!0;h="auto";for(var a=pDO(D),Q=0,G;Q<a.length;Q++)if(G=a[Q],G.__polymerGesturesTouchAction){h=G.__polymerGesturesTouchAction;break}a=!1;Q=Math.abs(NYL-v.clientX);v=Math.abs(Y12-v.clientY);D.cancelable&&(h==="none"?a=!0:h==="pan-x"?a=v>Q:h==="pan-y"&&(a=Q>v));a?D.preventDefault():
jg("track")}};
mK=function(D,v,h){return sR[v]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,v,h),!0):!1};
Ha=function(D,v,h){return sR[v]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,v,h),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,v,h){var a=sR[v],Q=a.deps,G=a.name,x=D.__polymerGestures;x||(D.__polymerGestures=x={});for(var f=0,C,U;f<Q.length;f++)C=Q[f],U6o&&fKr.indexOf(C)>-1&&C!=="click"||((U=x[C])||(x[C]=U={_count:0}),U._count===0&&D.addEventListener(C,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,zci(C)),U[G]=(U[G]||0)+1,U._count=(U._count||0)+1);D.addEventListener(v,h);a.touchAction&&_.eg(D,a.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,v,h){var a=sR[v],Q=a.deps;a=a.name;var G=D.__polymerGestures;if(G)for(var x=0,f,C;x<Q.length;x++)f=Q[x],(C=G[f])&&C[a]&&(C[a]=(C[a]||1)-1,C._count=(C._count||1)-1,C._count===0&&D.removeEventListener(f,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,zci(f)));D.removeEventListener(v,h)};
c8I=function(D){dk.push(D);for(var v=0;v<D.emits.length;v++)sR[D.emits[v]]=D};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){for(var v=0,h;v<dk.length;v++){h=dk[v];for(var a=0,Q;a<h.emits.length;a++)if(Q=h.emits[a],Q===D)return h}return null};
_.eg=function(D,v){CT8&&D instanceof HTMLElement&&n9.run(function(){D.style.touchAction=v});
D.__polymerGesturesTouchAction=v};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,v,h){v=new Event(v,{bubbles:!0,cancelable:!0,composed:!0});v.detail=h;(0,_.lM)(D).dispatchEvent(v);v.defaultPrevented&&(D=h.preventer||h.sourceEvent)&&D.preventDefault&&D.preventDefault()};
jg=function(D){D=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D.info&&(D.info.prevent=!0)};
OR=function(D,v,h,a){v&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,D,{x:h.clientX,y:h.clientY,sourceEvent:h,preventer:a,prevent:function(Q){return jg(Q)}})};
XDr=function(D,v,h){if(D.prevent)return!1;if(D.started)return!0;h=Math.abs(D.y-h);return Math.abs(D.x-v)>=5||h>=5};
A82=function(D,v,h){if(v){var a=D.moves[D.moves.length-2],Q=D.moves[D.moves.length-1],G=Q.x-D.x,x=Q.y-D.y,f=0;if(a){var C=Q.x-a.x;f=Q.y-a.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v,"track",{state:D.state,x:h.clientX,y:h.clientY,dx:G,dy:x,ddx:C,ddy:f,sourceEvent:h,hover:function(){return J8O(h.clientX,h.clientY)}})}};
baI=function(D,v,h){var a=Math.abs(v.clientX-D.x),Q=Math.abs(v.clientY-D.y),G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h||v);!G||q12[G.localName]&&G.hasAttribute("disabled")||!(isNaN(a)||isNaN(Q)||a<=25&&Q<=25||kw8(v))||D.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,"tap",{x:v.clientX,y:v.clientY,sourceEvent:v,preventer:h})};
d6c=function(D,v,h,a,Q){var G;Q&&(G=typeof h==="object"&&h!==null)&&(a=D.__dataTemp[v]);a=a!==h&&(a===a||h===h);G&&a&&(D.__dataTemp[v]=h);return a};
sp2=function(){if(K9&&!TR){if(!jpc){jpc=!0;var D=document.createElement("style");D.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(D)}return!0}return!1};
Haq=function(){return m68};
y88=function(D,v){m68=D;Object.setPrototypeOf(D,v.prototype);new v;m68=null};
wDr=function(D,v){for(var h=0;h<v.length;h++){var a=v[h];if(!!D!=!!a.__hideTemplateChildren__)if(a.nodeType===Node.TEXT_NODE)D?(a.__polymerTextContent__=a.textContent,a.textContent=""):a.textContent=a.__polymerTextContent__;else if(a.localName==="slot")if(D)a.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.lM)((0,_.lM)(a).parentNode).replaceChild(a.__polymerReplaced__,a);else{var Q=a.__polymerReplaced__;Q&&(0,_.lM)((0,_.lM)(Q).parentNode).replaceChild(a,Q)}else a.style&&(D?(a.__polymerDisplay__=
a.style.display,a.style.display="none"):a.style.display=a.__polymerDisplay__);a.__hideTemplateChildren__=D;a._showHideChildren&&a._showHideChildren(D)}};
ecO=function(D){return(D=D.__dataHost)&&D._methodHost||D};
Kvq=function(D,v,h){var a=h.mutableData?n7I:RM;iM.mixin&&(a=iM.mixin(a));var Q=function(){return a.apply(this,arguments)||this};
_.J(Q,a);Q.prototype.__templatizeOptions=h;Q.prototype._bindTemplate(D);Oa7(Q,D,v,h);return Q};
tI7=function(D,v,h,a){var Q=h.forwardHostProp;if(Q&&v.hasHostProps){var G=D.localName=="template",x=v.templatizeTemplateClass;if(!x){if(G){var f=h.mutableData?TYc:Rcc;x=function(){return f.apply(this,arguments)||this};
_.J(x,f);x=v.templatizeTemplateClass=x}else{var C=D.constructor;x=function(){return C.apply(this,arguments)||this};
_.J(x,C);x=v.templatizeTemplateClass=x}var U=v.hostProps,L;for(L in U)x.prototype._addPropertyEffect("_host_"+L,x.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:iac(Q)}),x.prototype._createNotifyingProperty("_host_"+L);Wa&&a&&Wvc(v,h,a)}D.__dataProto&&Object.assign(D.__data,D.__dataProto);if(G)y88(D,x),D.__dataTemp={},D.__dataPending=null,D.__dataOld=null,D._enableProperties();else{Object.setPrototypeOf(D,x.prototype);v=v.hostProps;for(var Z in v)Z="_host_"+Z,Z in D&&(v=D[Z],delete D[Z],D.__data[Z]=
v)}}};
iac=function(D){return function(v,h,a){D.call(v.__templatizeOwner,h.substring(6),a[h])}};
Oa7=function(D,v,h,a){var Q=h.hostProps||{},G;for(G in a.instanceProps){delete Q[G];var x=a.notifyInstanceProp;x&&D.prototype._addPropertyEffect(G,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:r87(x)})}if(a.forwardHostProp&&v.__dataHost)for(var f in Q)h.hasHostProps||(h.hasHostProps=!0),D.prototype._addPropertyEffect(f,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:utL()})};
r87=function(D){return function(v,h,a){D.call(v.__templatizeOwner,v,h,a[h])}};
utL=function(){return function(D,v,h){D.__dataHost._setPendingPropertyOrPath("_host_"+v,h[v],!0,!0)}};
iM=function(D,v,h){if(tH&&!ecO(D))throw Error("Nd");h=h||{};if(D.__templatizeOwner)throw Error("Od");D.__templatizeOwner=v;var a=(v?v.constructor:RM)._parseTemplate(D),Q=a.templatizeInstanceClass;Q||(Q=Kvq(D,a,h),a.templatizeInstanceClass=Q);var G=ecO(D);tI7(D,a,h,G);h=function(){return Q.apply(this,arguments)||this};
_.J(h,Q);h.prototype._methodHost=G;h.prototype.__dataHost=D;h.prototype.__templatizeOwner=v;h.prototype.__hostProps=a.hostProps;return h};
Wvc=function(D,v,h){h=h.constructor._properties;D=D.propertyEffects;v=v.instanceProps;for(var a in D)if(!(h[a]||v&&v[a]))for(var Q=D[a],G=0;G<Q.length;G++){var x=Q[G].info.part;if(!x.signature||!x.signature.static){console.warn("Property '"+a+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
DA4=function(D,v){for(var h;v;)if(h=v.__dataHost?v:v.__templatizeInstance)if(h.__dataHost!=D)v=h.__dataHost;else return h;else v=(0,_.lM)(v).parentNode;return null};
rk=function(D){return D.localName==="slot"};
vaL=function(){for(var D=uM.prototype,v="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),h={},a=0;a<v.length;h={method$jscomp$33:void 0},a++)h.method$jscomp$33=v[a],D[h.method$jscomp$33]=function(Q){return function(){return this.node[Q.method$jscomp$33].apply(this.node,arguments)}}(h)};
hCq=function(D,v){for(var h={},a=0;a<v.length;h={name$jscomp$448:void 0},a++)h.name$jscomp$448=v[a],Object.defineProperty(D,h.name$jscomp$448,{get:function(Q){return function(){return this.node[Q.name$jscomp$448]}}(h),
configurable:!0})};
aNA=function(){for(var D=uM.prototype,v=["textContent","innerHTML","className"],h={},a=0;a<v.length;h={name$jscomp$449:void 0},a++)h.name$jscomp$449=v[a],Object.defineProperty(D,h.name$jscomp$449,{get:function(Q){return function(){return this.node[Q.name$jscomp$449]}}(h),
set:function(Q){return function(G){this.node[Q.name$jscomp$449]=G}}(h),
configurable:!0})};
$A7=function(){DF=document.documentElement.getAttribute("dir");DF=document.documentElement.getAttribute("dir");for(var D=0;D<vT.length;D++){var v=vT[D];v.__autoDirOptOut||v.setAttribute("dir",DF)}};
P27=function(){hB=!0;requestAnimationFrame(function(){hB=!1;QHf(G6L);setTimeout(function(){for(var D=0,v=ar.length;D<v;D++)VDi(ar.shift())})})};
QHf=function(D){for(;D.length;)VDi(D.shift())};
VDi=function(D){var v=D[0],h=D[1];D=D[2];try{h.apply(v,D)}catch(a){setTimeout(function(){throw a;})}};
_.xAc=function(D,v,h){hB||P27();G6L.push([D,v,h])};
_.$R=function(D,v,h){hB||P27();ar.push([D,v,h])};
C24=function(D,v){v=v===void 0?!1:v;if(!MDO||!fNL||!MDO.handlesDynamicScoping)return null;var h=fNL.ScopingShim;if(!h)return null;var a=h.scopeForNode(D),Q=(0,_.lM)(D).getRootNode(),G=function(x){if((0,_.lM)(x).getRootNode()===Q){var f=Array.from(MDO.nativeMethods.querySelectorAll.call(x,"*"));f.push(x);for(x=0;x<f.length;x++){var C=f[x];if((0,_.lM)(C).getRootNode()===Q){var U=h.currentScopeForNode(C);U!==a&&(U!==""&&h.unscopeNode(C,U),h.scopeNode(C,a))}}}};
G(D);return v?(v=new MutationObserver(function(x){for(var f=0;f<x.length;f++)for(var C=x[f],U=0;U<C.addedNodes.length;U++){var L=C.addedNodes[U];L.nodeType===Node.ELEMENT_NODE&&G(L)}}),v.observe(D,{childList:!0,
subtree:!0}),v):null};
oa7=function(){document.body.removeAttribute("unresolved")};
ZWI=function(D){var v=D=D.replace(FT7,"").replace(zC8,""),h=new UAf;h.start=0;h.end=v.length;for(var a=h,Q=0,G=v.length;Q<G;Q++)if(v[Q]==="{"){a.rules||(a.rules=[]);var x=a,f=x.rules[x.rules.length-1]||null;a=new UAf;a.start=Q+1;a.parent=x;a.previous=f;x.rules.push(a)}else v[Q]==="}"&&(a.end=Q+1,a=a.parent||h);return LTu(h,D)};
LTu=function(D,v){var h=v.substring(D.start,D.end-1);D.parsedCssText=D.cssText=h.trim();D.parent&&(h=v.substring(D.previous?D.previous.end:D.parent.start,D.start-1),h=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(h),h=h.replace(Ea7," "),h=h.substring(h.lastIndexOf(";")+1),h=D.parsedSelector=D.selector=h.trim(),D.atRule=h.indexOf("@")===0,D.atRule?h.indexOf("@media")===0?D.type=4:h.match(INI)&&(D.type=7,D.keyframesName=D.selector.split(Ea7).pop()):h.indexOf("--")===
0?D.type=1E3:D.type=1);if(h=D.rules)for(var a=0,Q=h.length,G=void 0;a<Q&&(G=h[a]);a++)LTu(G,v);return D};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){return D.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var v=arguments[1],h=6-v.length;h--;)v="0"+v;return"\\"+v})};
gaL=function(D,v,h){h=h===void 0?"":h;var a="";if(D.cssText||D.rules){var Q=D.rules;if(Q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q))for(var G=0,x=Q.length,f=void 0;G<x&&(f=Q[G]);G++)a=gaL(f,v,a);else v?v=D.cssText:(v=D.cssText,v=v.replace(k68,"").replace(SOL,""),v=v.replace(Jyr,"").replace(puO,"")),(a=v.trim())&&(a="  "+a+"\n")}a&&(D.selector&&(h+=D.selector+" {\n"),h+=a,D.selector&&(h+="}\n\n"));return h};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){D=D[0];return!!D&&!!D.selector&&D.selector.indexOf("--")===0};
Nsu=function(D){if(D=lNq[D])D._applyShimCurrentVersion=D._applyShimCurrentVersion||0,D._applyShimValidatingVersion=D._applyShimValidatingVersion||0,D._applyShimNextVersion=(D._applyShimNextVersion||0)+1};
YOq=function(D){return D._applyShimCurrentVersion===D._applyShimNextVersion};
cyA=function(D){D._applyShimValidatingVersion=D._applyShimNextVersion;D._validating||(D._validating=!0,Bs7.then(function(){D._applyShimCurrentVersion=D._applyShimNextVersion;D._validating=!1}))};
AyA=function(D){if(!D)return"";typeof D==="string"&&(D=ZWI(D));return gaL(D,XuO)};
qOr=function(D){!D.__cssRules&&D.textContent&&(D.__cssRules=ZWI(D.textContent));return D.__cssRules||null};
dAf=function(D,v,h,a){if(D){var Q=!1,G=D.type;if(a&&G===4){var x=D.selector.match(bWA);x&&(window.matchMedia(x[1]).matches||(Q=!0))}G===1?v(D):h&&G===7?h(D):G===1E3&&(Q=!0);if((D=D.rules)&&!Q)for(Q=0,G=D.length,x=void 0;Q<G&&(x=D[Q]);Q++)dAf(x,v,h,a)}};
jHc=function(D,v){var h=D.indexOf("var(");if(h===-1)return v(D,"","","");a:{var a=0;var Q=h+3;for(var G=D.length;Q<G;Q++)if(D[Q]==="(")a++;else if(D[Q]===")"&&--a===0)break a;Q=-1}a=D.substring(h+4,Q);h=D.substring(0,h);D=jHc(D.substring(Q+1),v);G=a.indexOf(",");if(G===-1)return v(h,a.trim(),"",D);Q=a.substring(0,G).trim();a=a.substring(G+1).trim();return v(h,Q,a,D)};
sHf=function(D){if(QC!==void 0)return QC;if(D.__cssBuild===void 0){var v=D.getAttribute("css-build");if(v)D.__cssBuild=v;else{a:{v=D.localName==="template"?D.content.firstChild:D.firstChild;if(v instanceof Comment&&(v=v.textContent.trim().split(":"),v[0]==="css-build")){v=v[1];break a}v=""}if(v!==""){var h=D.localName==="template"?D.content.firstChild:D.firstChild;h.parentNode.removeChild(h)}D.__cssBuild=v}}return D.__cssBuild||""};
HW7=function(D,v,h,a){for(var Q=v._noAccessors,G=Object.getOwnPropertyNames(v),x=0;x<G.length;x++){var f=G[x];if(!(f in a))if(Q)D[f]=v[f];else{var C=Object.getOwnPropertyDescriptor(v,f);C&&(C.configurable=!0,Object.defineProperty(D,f,C))}}for(var U in mAI)v[U]&&(h[U]=h[U]||[],h[U].push(v[U]))};
yyq=function(D,v,h){v=v||[];for(var a=D.length-1;a>=0;a--){var Q=D[a];Q?Array.isArray(Q)?yyq(Q,v):v.indexOf(Q)<0&&(!h||h.indexOf(Q)<0)&&v.unshift(Q):console.warn("behavior is null, check for missing or 404 import")}return v};
wuq=function(D,v){for(var h in v){var a=D[h],Q=v[h];D[h]=!("value"in Q)&&a&&"value"in a?Object.assign({value:a.value},Q):Q}};
OW7=function(D,v,h){var a={},Q=function(){return v.apply(this,arguments)||this};
_.J(Q,v);Q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(x)for(var C=0,U;C<x.length;C++)U=x[C],U.properties&&this.createProperties(U.properties),U.observers&&this.createObservers(U.observers,U.properties);D.properties&&this.createProperties(D.properties);D.observers&&this.createObservers(D.observers,D.properties);this._prepareTemplate()}else v._finalizeClass.call(this)};
Q.prototype.created=function(){v.prototype.created.call(this);var C=a.created;if(C)for(var U=0;U<C.length;U++)C[U].call(this)};
Q.prototype._registered=function(){var C=Q.prototype;if(!C.hasOwnProperty("__hasRegisterFinished")){C.__hasRegisterFinished=!0;v.prototype._registered.call(this);K9&&f(C);C=Object.getPrototypeOf(this);var U=a.beforeRegister;if(U)for(var L=0;L<U.length;L++)U[L].call(C);if(U=a.registered)for(L=0;L<U.length;L++)U[L].call(C)}};
Q.prototype._applyListeners=function(){v.prototype._applyListeners.call(this);var C=a.listeners;if(C)for(var U=0;U<C.length;U++){var L=C[U];if(L)for(var Z in L)this._addMethodEventListenerToNode(this,Z,L[Z])}};
Q.prototype._ensureAttributes=function(){var C=a.hostAttributes;if(C)for(var U=C.length-1;U>=0;U--){var L=C[U],Z;for(Z in L)this._ensureAttribute(Z,L[Z])}v.prototype._ensureAttributes.call(this)};
Q.prototype.ready=function(){v.prototype.ready.call(this);var C=a.ready;if(C)for(var U=0;U<C.length;U++)C[U].call(this)};
Q.prototype.attached=function(){v.prototype.attached.call(this);var C=a.attached;if(C)for(var U=0;U<C.length;U++)C[U].call(this)};
Q.prototype.detached=function(){v.prototype.detached.call(this);var C=a.detached;if(C)for(var U=0;U<C.length;U++)C[U].call(this)};
Q.prototype.attributeChanged=function(C,U,L){v.prototype.attributeChanged.call(this);var Z=a.attributeChanged;if(Z)for(var E=0;E<Z.length;E++)Z[E].call(this,C,U,L)};
_.GT.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){var C={};if(x)for(var U=0;U<x.length;U++)wuq(C,x[U].properties);wuq(C,D.properties);return C}},
observers:{configurable:!0,enumerable:!0,get:function(){var C=[];if(x)for(var U=0,L;U<x.length;U++)L=x[U],L.observers&&(C=C.concat(L.observers));D.observers&&(C=C.concat(D.observers));return C}}});
if(h){Array.isArray(h)||(h=[h]);var G=v.prototype.behaviors;var x=yyq(h,null,G);Q.prototype.behaviors=G?G.concat(h):x}var f=function(C){if(x)for(var U=x,L=0;L<U.length;L++)HW7(C,U[L],a,eC2);HW7(C,D,a,naO)};
K9||f(Q.prototype);Q.generatedFrom=D;return Q};
iWI=function(D){var v=typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0};v.fastInit===void 0&&(v.fastInit=!0);return function(h){if(!v.disableInheritanceCheck&&Object.getPrototypeOf(h.prototype).constructor!==_.VC)throw Error("Sd");var a=h.prototype;a.is=v.is;Dhq(a,"created",function(){this.hostElement=this;this.polymerController=this});
KTr(a,h,v.fastInit);v.notifyObserversOnUndefined&&(a._overrideLegacyUndefined=!0);if(Ts7)for(var Q=_.P(Object.getOwnPropertyNames(a)),G=Q.next();!G.done;G=Q.next()){G=G.value;var x=Object.getOwnPropertyDescriptor(a,G);x.enumerable===!1&&(x.enumerable=!0,Object.defineProperty(a,G,x))}if("template"in h)var f=function(){return h.template};
else v.template!==void 0&&(f=v.template);if(f!==void 0){var C;Object.defineProperty(a,"_template",{get:function(){C===void 0&&(C=f());return C},
set:function(U){C=U},
configurable:!0,enumerable:!0})}Polymer(a);h[RC2]=a}};
WTf=function(D){D=D===void 0?{}:D;D.fastInit===void 0&&(D.fastInit=!0);return function(v){if(!D.disableInheritanceCheck&&Object.getPrototypeOf(v.prototype).constructor!==PT)throw Error("Td");KTr(v.prototype,v,D.fastInit)}};
KTr=function(D,v,h){h=h===void 0?!1:h;tDi(v);h?Dhq(D,"created",function(){this.disableEnforceFastDefaultValuesCheck||ryo(v,this)}):Dhq(D,"ready",function(){for(var a={},Q=_.P(vYO(this.behaviors)),G=Q.next();!G.done;G=Q.next())G=G.value,G.properties&&Object.assign(a,u_7(this,G.properties));
Object.assign(a,u_7(this,this.properties));ryo(v,this);Q=_.P(Object.keys(a));for(G=Q.next();!G.done;G=Q.next())G=G.value,this[G]=a[G]})};
ryo=function(D,v){if(Ts7){D=new D;for(var h=_.P(Object.getOwnPropertyNames(D)),a=h.next();!a.done;a=h.next())a=a.value,v[a]=D[a];for(h=v;h&&h!==Object.prototype;h=Object.getPrototypeOf(h)){a=_.P(Object.getOwnPropertyNames(h));for(var Q=a.next();!Q.done;Q=a.next())Q=Q.value,D.hasOwnProperty(Q)||Object.defineProperty(D,Q,DEq(v,Q))}}else D.apply(v)};
DEq=function(D,v){return{get:function(){var h=D[v];return h instanceof Function?h.bind(D):h},
set:function(h){D[v]=h}}};
u_7=function(D,v){if(!v)return{};for(var h={},a=_.P(Object.keys(v)),Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,!v[Q].readOnly){var G=D[Q];G!==void 0&&(h[Q]=G)}return h};
tDi=function(D){var v=new D;D=D.prototype.properties||{};for(var h=_.P(Object.keys(D)),a=h.next();!a.done;a=h.next())if(a=a.value,v.hasOwnProperty(a)){var Q=D[a];typeof Q==="function"&&(D[a]=Q={type:Q});v[a]!=null&&Q.type===Object&&(Q.type=vyi(v[a].constructor))}};
vyi=function(D){for(var v=_.P(hD4),h=v.next();!h.done;h=v.next())if(h=h.value,D===h)return h;return Object};
aBI=function(D){return function(v,h){v.behaviors=v.behaviors||[];v.behaviors.push(D||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",v,h).prototype:void 0));Object.defineProperty(v,h,{get:function(){return this},
enumerable:!0,configurable:!0})}};
$E7=function(D){D=D===void 0?{}:D;return function(v,h){v.properties=v.properties||{};D.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?D.type=vyi(Reflect.getMetadata("design:type",v,h)):D.type=String);var a=D,Q=v.properties[h];v.properties[h]=Q?Object.assign({},Q,a):a}};
QII=function(D){return function(v,h){v.listeners=v.listeners||{};v.listeners[D]=h}};
Gr4=function(){var D=_.Kz.apply(0,arguments);if(D.length===0)throw Error("Ud");return function(v,h){v.observers=v.observers||[];v.observers.push(h+"("+D.join(",")+")")}};
VZc=function(){var D=_.Kz.apply(0,arguments);return function(v,h,a){var Q=Object.getOwnPropertyDescriptor(v,h).get,G="__compute__"+h;Object.defineProperty(v,G,{value:Q,enumerable:!0});v.properties=v.properties||{};Q=v.properties[h];Q||(Q={},v.properties[h]=Q);Q.computed=G+"("+D.join(",")+")";a.get=void 0}};
_.xR=function(D,v,h){_.AN.call(this);this.JSC$11318_id_=null;this.usingListeners_=!1;this.JSC$11318_listener_=D;this.handler_=h;this.JSC$11318_win_=v||window;this.callback_=(0,_.qp)(this.JSC$11320_doAction_,this)};
Mc=function(D){this.range_=D};
fm=function(D){this.range_=D};
Fn=function(D,v,h){_.AN.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=D;this.scrollTimer_=new _.Cm(50);this.JSC$11397_eventHandler_=new _.or(this);this.scrollDelta_=new _.HW;this.containerIsActuallyContent_=D.tagName==="BODY"||D.tagName==="HTML";this.containerBounds_=Pn4(D);this.containerIsActuallyContent_&&(D=_.NV(),this.containerBounds_.height=D.height,this.containerBounds_.width=D.width);this.margin_=v||0;if(v){if(v=this.containerBounds_.clone(),D=this.margin_){var a=
Math.min(D,v.height*.25);v.top+=a;v.height-=2*a;D=Math.min(D,v.width*.25);v.left+=D;v.width-=2*D}}else v=this.containerBounds_;this.scrollBounds_=v;h||this.JSC$11397_eventHandler_.listen(_.e9(this.containerNode_),"mousemove",this.JSC$11399_onMouseMove);this.JSC$11397_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11399_onTick_)};
_.zT=function(D){this.mechanism=D};
Ui=function(D,v){this.JSC$11495_key_=D;this.JSC$11495_value_=v};
fB2=function(D){if(D>=55296&&D<=57343||D>1114111)return"\ufffd";D in MZ4&&(D=MZ4[D]);var v="";D>65535&&(D-=65536,v+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023);return v+=String.fromCharCode(D)};
Cnr=function(D,v){return D<v?1:-1};
FFr=function(){return function(D){return D.charAt(1)==="#"?D.charAt(2)==="X"||D.charAt(2)==="x"?fB2(parseInt(D.substr(3),16)):fB2(parseInt(D.substr(2),10)):oyf[D.slice(1,-1)]}};
LFr=function(D){return D.slice(1,D.length-1).trim().replace(zDA,function(v){return UE8[v]||" "})};
Lm=function(D){return D===32||D===9};
ZF=function(D,v){return v<D.length?D.charCodeAt(v):-1};
ZDi=function(D){for(;D;){if(D._lastLineBlank)return!0;var v=D.type;if(v==="list"||v==="item")D=D._lastChild;else break}return!1};
Ei=function(D){if(EyL.test(D)){var v=1,h=0,a=0;for(D[h]=="|"&&h++;h<D.length;){switch(D[h]){case "|":a=1;break;case " ":break;case "\t":break;default:a&&(a=0,v++)}h++}return IBr.test(D)?-v:v}return 0};
gy4=function(D){return D=="table"||D=="row"||D=="cell"};
krA=function(){return new Ir("document",[[1,1],[0,0]])};
SPi=function(){};
gd=function(){var D={safe:!1};D=D||{};D.softbreak=D.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=D};
YPi=function(D,v){var h="";if(D)if(D=D.toLowerCase(),D===" "||JJ4.test(D))h="space";else if(pZ8.test(D))h="esc";else if(D.length==1){if(!v||lBc.test(D))h=D}else h=N9o.test(D)?D.replace("arrow",""):D=="multiply"?"*":D;return h};
AJc=function(D,v){var h=D.hasModifiers;if(v.key)h=YPi(v.key,h);else if(v.detail&&v.detail.key)h=YPi(v.detail.key,h);else{h=v.keyIdentifier;var a="";h&&(h in B9u?a=B9u[h]:cJA.test(h)?(h=parseInt(h.replace("U+","0x"),16),a=String.fromCharCode(h).toLowerCase()):a=h.toLowerCase());(h=a)||(h=v.keyCode,a="",Number(h)&&(h>=65&&h<=90?a=String.fromCharCode(32+h):h>=112&&h<=123?a="f"+(h-112+1):h>=48&&h<=57?a=String(h-48):h>=96&&h<=105?a=String(h-96):a=XZq[h]),h=a);h=h||""}return h===D.key&&(!D.hasModifiers||
!!v.shiftKey===!!D.shiftKey&&!!v.ctrlKey===!!D.ctrlKey&&!!v.altKey===!!D.altKey&&!!v.metaKey===!!D.metaKey)};
bDo=function(D){return D.length===1?{combo:D,key:D,event:"keydown"}:D.split("+").reduce(function(v,h){var a=h.split(":");h=a[0];a=a[1];h in qPr?(v[qPr[h]]=!0,v.hasModifiers=!0):(v.key=h,v.event=a||"keydown");return v},{combo:D.split(":").shift()})};
dEL=function(D){return D.trim().split(" ").map(function(v){return bDo(v)})};
jIO=function(D,v){if(D&&D.fn){var h=D.fn;D.fn=function(){try{h.apply(this,arguments)}catch(a){if(a instanceof kR)console.warn("Argument '"+a.arg+"'"+(v?" for method '"+v+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw a;}}}return D};
sIi=function(){var D=_.Kz.apply(0,arguments);return D.length===0?function(v){return v}:D.length===1?D[0]:D.reduce(function(v,h){return function(){return v(h.apply(null,_.j_(_.Kz.apply(0,arguments))))}})};
mE8=function(){var D=_.Kz.apply(0,arguments);return function(v){return function(h,a){h=v(h,a);var Q=function(){throw Error("Ee");},G={getState:h.getState,
dispatch:function(x){return Q.apply(null,[x].concat(_.j_(_.Kz.apply(1,arguments))))}};
a=D.map(function(x){return x(G)});
Q=sIi.apply(null,_.j_(a))(h.dispatch);return Object.assign({},h,{dispatch:Q})}}};
wZo=function(D){Object.keys(D).forEach(function(v){var h=D[v];if(typeof h(void 0,{type:HDf})==="undefined")throw Error("Fe`"+v);if(typeof h(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+yJI()})==="undefined")throw Error("Ge`"+v+"`"+HDf);})};
SC=function(D){for(var v=Object.keys(D),h={},a=0;a<v.length;a++){var Q=v[a];typeof D[Q]==="function"&&(h[Q]=D[Q])}var G=Object.keys(h);try{wZo(h)}catch(f){var x=f}return function(f,C){f=f===void 0?{}:f;if(x)throw x;for(var U=!1,L={},Z=0;Z<G.length;Z++){var E=G[Z],I=f[E],S=(0,h[E])(I,C);if(typeof S==="undefined")throw f=C&&C.type,Error("He`"+(f?'"'+String(f)+'"':"(unknown type)")+"`"+E);L[E]=S;U=U||S!==I}return(U=U||G.length!==Object.keys(f).length)?L:f}};
eDu=function(D,v,h){function a(){if(L)throw Error("Ie");return f}
function Q(I){if(typeof I!=="function")throw Error("Je`"+typeof I);if(L)throw Error("Ke");var S=!0;U===C&&(U=C.slice());U.push(I);return function(){if(S){if(L)throw Error("Le");S=!1;U===C&&(U=C.slice());var B=U.indexOf(I);U.splice(B,1);C=null}}}
function G(I){if(typeof I!=="object"||I===null)var S=!1;else{for(S=I;Object.getPrototypeOf(S)!==null;)S=Object.getPrototypeOf(S);S=Object.getPrototypeOf(I)===S}if(!S)throw Error("Me`"+typeof I);if(typeof I.type==="undefined")throw Error("Ne");if(L)throw Error("Oe");try{L=!0,f=x(f,I)}finally{L=!1}S=C=U;for(var B=0;B<S.length;B++)(0,S[B])();return I}
if(typeof v==="function"&&typeof h==="function"||typeof h==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof v==="function"&&typeof h==="undefined"&&(h=v,v=void 0);if(typeof h!=="undefined"){if(typeof h!=="function")throw Error("Qe`"+typeof h);return h(eDu)(D,v)}if(typeof D!=="function")throw Error("Re`"+typeof D);var x=D,f=v,C=[],U=C,L=!1;G({type:HDf});var Z={},E=(Z.dispatch=G,Z.subscribe=Q,Z.getState=a,Z.replaceReducer=function(I){if(typeof I!=="function")throw Error("Se`"+
typeof I);x=I;G({type:ny8});return E},Z[ODq]=function(){var I={};
return I.subscribe=function(S){function B(){S.next&&S.next(a())}
if(typeof S!=="object"||S===null)throw new TypeError("Te`"+typeof S);B();return{unsubscribe:Q(B)}},I[ODq]=function(){return this},I},Z);
return E};
KFc=function(D){function v(){Q&&(Q=!1,D());G&&a()}
function h(){requestAnimationFrame(v)}
function a(){var f=Date.now();if(Q){if(f-x<2)return;G=!0}else Q=!0,G=!1,setTimeout(h,20);x=f}
var Q=!1,G=!1,x=0;return a};
JB=function(D){return typeof D==="number"?D:parseFloat(D)||0};
T98=function(D){return _.Kz.apply(1,arguments).reduce(function(v,h){return v+JB(D["border-"+h+"-width"])},0)};
_.p=function(D,v){v=r0(Wd(v));D.innerHTML=v};
WFI=function(D){var v=RDO;v||(v=iDI(),v=RDO=_.sV.transpose(v));v=v[D];return typeof v==="string"?v:_.pm(D)};
tZi=function(D){D=String(D).toLowerCase();var v=iDI()[D];return typeof v==="string"?v:_.l4(D)};
rJu=function(D){D=D.toLowerCase();D=iDI()[D];return typeof D==="string"?D:null};
iDI=function(){if(!uIf){for(var D=Object.assign({},DCf),v=_.P(vN7),h=v.next();!h.done;h=v.next())h=h.value,D[h.toLowerCase()]=h;uIf=D}return uIf};
$Cc=function(D,v){var h=window.customElements;return h&&h.get(D)||hw8[D]===!0?2:v.name==="HTMLUnknownElement"?1:v.name==="HTMLElement"&&a5c.test(D)?3:0};
Vv7=function(D,v){switch(v){case "innerHTML":return Qvc(D)===1?2:null;case "textContent":return D=Qvc(D),D===1||D===6?1:null;default:var h,a;return(a=(h=Gqi[D.localName])==null?void 0:h[v])!=null?a:null}};
Qvc=function(D){var v=D.localName,h=$Cc(v,D.constructor);switch(h){case 0:case 1:return PE7(v,D);case 3:case 2:return 1;default:_.K4(h,"got an unknown element classification")}};
PE7=function(D,v){var h=Object.hasOwnProperty.call(xCq,D)?xCq[D]:null;return h!==null?h:Object.hasOwnProperty.call(MvI,D)&&v instanceof SVGElement?MvI[D]:null};
f5q=function(D,v){return v};
oNr=function(D){return(D=D.split(CEi,2))?{url:D[0],metadata:D[1]}:null};
zwi=function(D){var v=String(D.url).replace(FDu,encodeURIComponent);if(D=D.metadata){FDu.lastIndex=0;if(FDu.test(D))return null;v+=" "+D}return v};
ENq=function(D){function v(U){var L=U.localName;if(!U.getAttribute("is")&&$Cc(L,U.constructor)===2){var Z;return(Z=C)!=null?Z:C=document.createElement("polyresinuncustomized")}(U=f[L])||(U=f[L]=document.createElement(L));return U}
var h=D.reportHandler||void 0,a=D.safeTypesBridge||UC7,Q=/^$/;if(D=D.allowedIdentifierPrefixes){D=_.P(D);for(var G=D.next();!G.done;G=D.next())Q=new RegExp(Q.source+"|^"+_.LDA(G.value))}h&&h(!1,"initResin",null);var x=ZXf(Q,a,h),f={},C=null;return function(U,L,Z){var E=U.nodeType;if(E!==Node.ELEMENT_NODE){if(E===Node.TEXT_NODE){L=U.parentElement;Z=!L;if(L&&L.nodeType===Node.ELEMENT_NODE){E=L.localName;var I=$Cc(E,L.constructor);switch(I){case 0:case 1:L=PE7(E,L);Z=L===1||L===6;break;case 3:case 2:Z=
!0;break;default:_.K4(I,"got an unknown element classification")}}if(Z)return function(d){return""+a(d,"STRING",d)}}return function(d){if(!d&&d!==document.all)return d;
h&&h(!0,"Failed to sanitize "+(U.parentElement&&U.parentElement.nodeName)+" #text node to value "+d,U.parentElement);return Nc}}var S=U.localName;
E=v(U);var B=null;switch(Z){case "attribute":if(tZi(L)in E)break;return function(d){return d};
case "property":if(L in E){B=Vv7(E,L);break}if((I=rJu(L))&&I in E)break;return function(d){return d};
default:_.K4(Z,"got an unknown resin type, expected either 'property' or 'attribute'")}var A=Z==="attribute"?L.toLowerCase():WFI(L);B||(B=kRI(S,A,function(d){var b=U.getAttribute(d);return!b||/[\[\{]/.test(d)?null:b}));
return function(d){var b=YR,W=null;if(!d&&d!==document.all)return d;if(B!=null){var K=x[B],O=K.safeType;W=K.safeReplacement;O&&(b=a(d,O,YR));b===YR&&(K.filterString?(b=String(a(d,"STRING",d)),b=K.filterString(S,A,b)):K.filterRaw&&(b=K.filterRaw(S,A,d,U)),b===W&&(b=YR))}b===YR&&(b=W||Nc,h&&h(!0,"Failed to sanitize attribute of <"+S+">: <"+S+" "+A+'="'+d+'">',U));return b}}};
ZXf=function(D,v,h){return[,{filterRaw:function(a,Q,G){return G},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:I5L,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:I5L,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Nc,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:gNc,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(a,Q,G){G=
String(G).toLowerCase();return pai(a,Q,G)?G:Nc},
safeReplacement:Nc,safeType:void 0},,{filterRaw:void 0,filterString:function(a,Q,G){return D.test(G)?G:Nc},
safeReplacement:Nc,safeType:"CONSTANT"},{filterRaw:function(a,Q,G,x){if(typeof G==="string")var f=(f=G.match(kqi))?f.map(oNr).filter(Boolean):[];else if(Array.isArray(G))f=G;else return I5L;var C=f;f=[];var U=[],L={};if(Array.isArray(C))for(var Z=0,E=C.length;Z<E;++Z){var I=C[Z],S=I&&I.url;if(S){var B=v(S,"URL",L);if(B){var A=B!==L;(A?f:U).push({url:A?B:S,metadata:I.metadata})}}}else U.push(C);C=U.length?JSON.stringify(U):null;U=YR;if(f.length){if(!Array.isArray(f))throw Error();U=f.map(zwi).filter(Boolean).join(" , ")||
YR}C&&h&&h(!0,"Failed to sanitize attribute value of <"+a+">: <"+a+" "+Q+'="'+G+'">: '+C,x);return U===YR?I5L:U},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
SG4=function(D){var v=ENq(D);return function(h,a,Q,G){return G||G===document.all?v(h,a,Q)(G):G}};
BT=function(D,v){function h(){function Q(f,C,U){for(C=Reflect.getMetadata("parameters",f)||[];C.length<=U;)C.push(null);C[U]=C[U]||[];C[U].push(x);Reflect.defineMetadata(C,f);return f}
var G=_.Kz.apply(0,arguments);if(this instanceof h)return a.apply(this,G),this;var x=new (Function.prototype.bind.apply(h,[null].concat(_.j_(G))));Q.annotation=x;return Q}
var a=JFA(v);h.prototype.toString=function(){return"@"+D};
return h.annotationCls=h};
JFA=function(D){return function(){var v=_.Kz.apply(0,arguments),h=this;D.forEach(function(a,Q){Q=v[Q];if(Array.isArray(a))h[a[0]]=Q&&Q!==void 0?Q:a[1];else for(var G in a)h[G]=Q&&Q[G]!==void 0?Q[G]:a[G]})}};
p9q=function(D){return D!==void 0&&D!==null};
cT=function(D){if(typeof D==="string")return D;if(D===void 0||D===null)return""+D;if(D.overriddenName)return D.overriddenName;if(D.name)return D.name;D=D.toString();var v=D.indexOf("\n");return v===-1?D:D.substring(0,v)};
l52=function(D){D.__forward_ref__=l52;D.toString=function(){return cT(this())};
return D};
Xn=function(D){return typeof D==="function"&&D.hasOwnProperty("__forward_ref__")&&D.__forward_ref__===l52?D():D};
NIO=function(D){return D?D.map(function(v){return new (Function.prototype.bind.apply(v.type.annotationCls,[null].concat(_.j_(v.args?v.args:[]))))}):[]};
YGL=function(D){for(var v=[],h=0;h<D.length;++h){if(v.indexOf(D[h])>-1){v.push(D[h]);break}v.push(D[h])}return v};
BIO=function(D){return D.length>1?" ("+YGL(D.slice().reverse()).map(function(v){return cT(v.token)}).join(" -> ")+")":""};
X92=function(D,v,h,a){if(a){var Q=Error("$e``"+(a instanceof Error?a.message:a));Q.ngOriginalError=a}else Q=Error();Q.addKey=cFA;Q.keys=[v];Q.injectors=[D];Q.constructResolvingMessage=h;Q.message=Q.constructResolvingMessage();Q.ngOriginalError=a;return Q};
cFA=function(D,v){this.injectors.push(D);this.keys.push(v);this.message=this.constructResolvingMessage()};
AFA=function(D,v){return X92(D,v,function(){return"No provider for "+cT(this.keys[0].token)+"!"+BIO(this.keys)})};
qG2=function(D,v){return X92(D,v,function(){return"Cannot instantiate cyclic dependency!"+BIO(this.keys)})};
bX7=function(D,v,h){return X92(D,h,function(){var a=cT(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+a+"!"+BIO(this.keys)+"."},v)};
dCo=function(D,v){for(var h=[],a=0,Q=v.length;a<Q;a++){var G=v[a];G&&G.length!=0?h.push(G.map(cT).join(" ")):h.push("?")}return Error("df`"+cT(D)+"`"+h.join(", ")+"`"+cT(D))};
ew7=function(D){var v=void 0,h=void 0;if(D&&D.useClass!==void 0){v=D.useClass;var a=Xn(D.useClass);var Q=jvi.factory(a);a=svL(a)}else D&&D.useExisting!==void 0?(Q=function(G){return G},a=[mCr(AB.get(Xn(D.useExisting)))]):D&&D.useFactory!==void 0?(Q=D.useFactory,a=HXL(D.useFactory,D.deps)):(h=D.useValue,Q=function(){return D.useValue},a=yFA);
return new w9O(Q,a,v,h)};
OXL=function(D){return new nNL(AB.get(Xn(D.provide)),[ew7(D)],D.multi)};
TIf=function(D){D=KD4(D,[]).map(OXL);for(var v=new Map,h=0;h<D.length;h++){var a=D[h],Q=v.get(a.key.id);if(Q){if(a.multiProvider!==Q.multiProvider)throw Error("ff`"+Q+"`"+a);if(a.multiProvider)for(var G=0;G<a.resolvedFactories.length;G++)Q.resolvedFactories.push(a.resolvedFactories[G]);else v.set(a.key.id,a)}else Q=void 0,a.multiProvider?Q=new nNL(a.key,a.resolvedFactories.slice(),a.multiProvider):Q=a,v.set(a.key.id,Q)}return Array.from(v.values())};
KD4=function(D,v){D.forEach(function(h){if(h instanceof Rwr)v.push({provide:h,useClass:h});else if(h&&typeof h=="object"&&h.provide!==void 0)v.push(h);else if(h instanceof Array)KD4(h,v);else throw Error("cf`"+h);});
return v};
HXL=function(D,v){if(v){var h=v.map(function(a){return[a]});
return v.map(function(a){return iXI(D,a,h)})}return svL(D)};
svL=function(D){var v=jvi.parameters(D);if(!v)return[];if(v.some(function(h){return h==null}))throw dCo(D,v);
return v.map(function(h){return iXI(D,h,v)})};
iXI=function(D,v,h){var a=null,Q=!1;if(!Array.isArray(v))return v instanceof WDo?tvc(v.token,Q,null):tvc(v,Q,null);for(var G=null,x=0;x<v.length;++x){var f=v[x];if(f instanceof Rwr)a=f;else if(f instanceof WDo)a=f.token;else if(f instanceof rF7)Q=!0;else if(f instanceof uWc||f instanceof Dw2)G=f}a=Xn(a);if(a!=null)return tvc(a,Q,G);throw dCo(D,h);};
tvc=function(D,v,h){return new v9L(AB.get(Xn(D)),v,h)};
hgI=function(D,v){for(var h=Array(D.providers.length),a=0;a<D.providers.length;++a){var Q=a;if(a<0||a>=D.providers.length)throw Error("ef`"+a);h[Q]=v(D.providers[a])}return h};
alq=function(D){return typeof D==="function"&&jvi.parameters(D).every(function(v){return!!v})};
G0O=function(D){var v=$wO;QWi.get(D)||QWi.set(D,new v);return QWi.get(D)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,v){var h,a;if(D.contains(v))return!0;D=_.qc(D).querySelectorAll("content,slot");for(h=0;h<D.length;++h){var Q=_.qc(D[h]).getDistributedNodes();for(a=0;a<Q.length;++a)if(Q[a].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Q[a],v))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){D.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D)&&D.preventDefault();D.targetTouches&&(D=D.targetTouches[0],Vnr=D.pageX,PY2=D.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var D=0,v=b4.length;D<v;D++)document.addEventListener(b4[D],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var D=0,v=b4.length;D<v;D++)document.removeEventListener(b4[D],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){var v=_.qc(D).rootTarget;D.type!=="touchmove"&&xwL!==v&&(xwL=v,Mnf=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.qc(D).path));if(!Mnf.length)return!0;if(D.type==="touchstart")return!1;D=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Mnf,D.deltaX,D.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){for(var v=[],h=D.indexOf(flO),a=0;a<=h;a++)if(D[a].nodeType===Node.ELEMENT_NODE){var Q=D[a],G=Q.style;G.overflow!=="scroll"&&G.overflow!=="auto"&&(G=window.getComputedStyle(Q));G.overflow!=="scroll"&&G.overflow!=="auto"||v.push(Q)}return v};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,v,h){if(v||h)for(var a=Math.abs(h)>=Math.abs(v),Q=0;Q<D.length;Q++){var G=D[Q];if(a?h<0?G.scrollTop>0:G.scrollTop<G.scrollHeight-G.clientHeight:v<0?G.scrollLeft>0:G.scrollLeft<G.scrollWidth-G.clientWidth)return G}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){var v={deltaX:D.deltaX,deltaY:D.deltaY};"deltaX"in D||("wheelDeltaX"in D&&"wheelDeltaY"in D?(v.deltaX=-D.wheelDeltaX,v.deltaY=-D.wheelDeltaY):"wheelDelta"in D?(v.deltaX=0,v.deltaY=-D.wheelDelta):"axis"in D?(v.deltaX=D.axis===1?D.detail:0,v.deltaY=D.axis===2?D.detail:0):D.targetTouches&&(D=D.targetTouches[0],v.deltaX=Vnr-D.pageX,v.deltaY=PY2-D.pageY));return v};
CYc=function(D){this.element=D;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
FJ8=function(D){this.element=D;this.color=window.getComputedStyle(D).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.qc(this.waveContainer).appendChild(this.wave);o9O(this)};
dd=function(D,v){for(var h in D)if(h.toLowerCase()===v.toLowerCase())return D[h]};
zgL=function(D,v){for(var h in D)if(h.toLowerCase()===v.toLowerCase()){delete D[h];break}};
LJi=function(D){D=_.sV.clone(D);for(var v=0;v<Uwu.length;++v){var h=Uwu[v],a=dd(D,h);a&&(D["X-Goog-Upload-Header-"+h]=a,zgL(D,h))}return D};
ZyI=function(D){D=_.sV.clone(D);zgL(D,"X-Goog-Upload-Status")};
IlO=function(D){return E9u.some(function(v){return v.test(D)})};
Je4=function(D,v){var h;var a=(h=D.formContent)==null?void 0:h.locale;h=a==null?void 0:a.split("-")[0];a=a&&g9c.includes(a)?a:h&&g9c.includes(h)?h:void 0;a=(a!=null?a:"en").replaceAll("-","_").toLowerCase();var Q;D=((Q=D.initializationData)==null?0:Q.useNightlyRelease)?"nightly":"live";var G;return(v==null?0:(G=v.getEnableAlohaBinarySplit)==null?0:G.call(v))?_.UV(k0O,D):_.UV(Sj2,D,a)};
Nti=function(D,v,h,a){if(pwo&&llc===v)return pwo;llc=v;var Q=Je4(D,a);return pwo=v.feedbackV2GlobalObject?Promise.resolve(v.feedbackV2GlobalObject):new Promise(function(G,x){var f=_.l9("SCRIPT");_.Ge(f,Q);f.onload=function(){v.feedbackV2GlobalObject?G(v.feedbackV2GlobalObject):x(Error("jf"))};
f.onerror=function(){x(Error("kf`"+Q.toString()))};
h.body.appendChild(f)})};
ceu=function(D,v,h,a){if(YjA&&Btr===v)return YjA;Btr=v;var Q=Je4(D,a);return YjA=v.feedbackV2GlobalObject?Promise.resolve(v.feedbackV2GlobalObject):new Promise(function(G,x){var f=_.l9("SCRIPT");_.Ge(f,Q);f.onload=function(){v.feedbackV2GlobalObject?G(v.feedbackV2GlobalObject):x(Error("jf"))};
f.onerror=function(){x(Error("kf`"+Q.toString()))};
h.body.appendChild(f)})};
Xw2=function(D,v,h,a,Q){Q=Q===void 0?!0:Q;var G,x,f,C,U;return _.M(function(L){switch(L.nextAddress){case 1:return G=Date.now(),L.yield(Nti(D,h,a,v),2);case 2:x=L.yieldResult;if(!(Q||((C=D.initializationData)==null?0:C.useNightlyRelease)||((U=D.initializationData)==null?0:U.isLocalServer))){f=x.initializeFeedbackClient(D,G,v);L.jumpTo(3);break}return L.yield(x.initializeFeedbackClientAsync(D,G,v),4);case 4:f=L.yieldResult;case 3:return f.initiateAloha(),L.return(f)}})};
Ae7=function(D,v,h,a){var Q,G,x;return _.M(function(f){if(f.nextAddress==1)return Q=Date.now(),f.yield(ceu(D,h,a.document,v),2);if(f.nextAddress!=3)return G=f.yieldResult,f.yield(G.initializeFeedbackClientAsync(D,Q,v,a),3);x=f.yieldResult;x.initiateAloha();return f.return(x)})};
qjf=function(D,v,h){var a=!0;a=a===void 0?!0:a;var Q,G,x,f,C,U,L,Z,E,I;return _.M(function(S){Q=h||_.$L;if((G=v)==null?0:(f=(x=G).getEnableAlohaBinarySplit)==null?0:f.call(x)){C=Q;if(C.isFormOpened)throw U=Error("lf"),U.name="DuplicateFormError",U;C.isFormOpened=!0;D.callbacks=D.callbacks||{};L=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(B){C.isFormOpened=!1;L(B)};
try{return S.return(Ae7(D,v,C,Q))}catch(B){throw C.isFormOpened=!1,B;}}else{Z=Q;if(Z.isFormOpened)throw E=Error("lf"),E.name="DuplicateFormError",E;Z.isFormOpened=!0;D.callbacks=D.callbacks||{};I=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(B){Z.isFormOpened=!1;I(B)};
try{return S.return(Xw2(D,v,Z,Q.document,a))}catch(B){throw Z.isFormOpened=!1,B;}}_.YI(S)})};
mwc=function(D,v){return _.M(function(h){return h.return(new Promise(function(a,Q){Number.isInteger(Number(D))&&Number(D)>0?(Q=byA(v!=null?v:"")+"/aloha_form_properties?productId="+D,dw7(Q,function(G){G=G.target;var x=null;try{var f=JSON,C=f.stringify;if(G.JSC$9800_xhr_){var U=G.JSC$9800_xhr_.responseText;U.indexOf(")]}'\n")==0&&(U=U.substring(5));var L=(0,_.jC)(U)}else L=void 0;x=T02(jWI,C.call(f,L))}catch(Z){C=new jWI,L=sWu(),L=_.si(L,13,!1),L=_.si(L,14,!0),L=_.si(L,15,!0),L=_.si(L,20,!1),x=_.lH(C,
1,L)}a(x)},"GET","",{},2E3,!0)):Q(Error("mf`"+D))}))})};
byA=function(D){return IlO(D)?D:"https://www.google.com/tools/feedback"};
eg4=function(D){D=D.match(new RegExp(Hy2,"gi"))||[];D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;a:{var h=_.P(yec);for(var a=h.next();!a.done;a=h.next())if(a.value.test(v)){h=!1;break a}h=!0}if(!h)a:{h=_.P(wwI);for(a=h.next();!a.done;a=h.next())if(a.value.test(v)){h=!0;break a}h=!1}if(h)return!0}return!1};
n98=function(D,v){var h={},a=Object.keys(D);a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next())Q=Q.value,h[Q]=v(Q,D[Q]);return h};
OyA=function(D){switch(D){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
Ttc=function(D){if(window.crypto&&window.crypto.getRandomValues)try{var v=Array(D),h=new Uint8Array(D);window.crypto.getRandomValues(h);for(var a=0;a<v.length;a++)v[a]=h[a];return v}catch(G){}v=Array(D);for(h=0;h<D;h++){a=Date.now();for(var Q=0;Q<a%23;Q++)v[h]=Math.random();v[h]=Math.floor(Math.random()*256)}if(KJq)for(h=1,a=0;a<KJq.length;a++)v[h%D]^=v[(h-1)%D]/4^KJq.charCodeAt(a),h++;return v};
m3=function(D){D=Ttc(D);for(var v=[],h=0;h<D.length;h++)v.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[h]&63));return v.join("")};
Rg2=function(){var D=_.$L.ytLoggingDocDocumentNonce_;D||(D=m3(16),_.Gm("ytLoggingDocDocumentNonce_",D));return D};
WJI=function(D){D&&_.jj("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:iyr,clientScreenNonce:D})};
tnc=function(D){return _.eA("client-screen-nonce-store",{})[D===void 0?0:D]};
reI=function(D,v){v=v===void 0?0:v;var h=_.eA("client-screen-nonce-store");h||(h={},_.wM("client-screen-nonce-store",h));h[v]=D};
u77=function(D){D=D===void 0?0:D;return D===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+D};
D_8=function(D){return _.eA(u77(D===void 0?0:D))};
_.yC=function(D){return(D=D_8(D===void 0?0:D))?new HT({veType:D,youtubeData:void 0,jspbYoutubeData:void 0}):null};
vsO=function(){var D=_.eA("csn-to-ctt-auth-info");D||(D={},_.wM("csn-to-ctt-auth-info",D));return D};
hhu=function(){return Object.values(_.eA("client-screen-nonce-store",{})).filter(function(D){return D!==void 0})};
_.wd=function(D){D=tnc(D===void 0?0:D);if(!D&&!_.nJ("USE_CSN_FALLBACK",!0))return null;D||(D="UNDEFINED_CSN");return D?D:null};
$_i=function(D){for(var v=_.P(Object.values(a$r)),h=v.next();!h.done;h=v.next())if(_.wd(h.value)===D)return!0;return!1};
Q5c=function(D,v,h){var a=vsO();(h=_.wd(h))&&delete a[h];v&&(a[D]=v)};
eC=function(D){return vsO()[D]};
_.nm=function(D,v,h,a){h=h===void 0?0:h;if(D!==tnc(h)||v!==_.eA(u77(h)))if(Q5c(D,a,h),reI(D,h),_.wM(u77(h),v),v=function(){setTimeout(function(){WJI(D)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(v)}catch(Q){v()}else v()};
Gco=function(D,v){v=v===void 0?"":v;var h=[],a;for(a in D)if(D.hasOwnProperty(a)){var Q=v!==""?v+"."+a:a;typeof D[a]==="object"?h.push.apply(h,_.j_(Gco(D[a],Q))):h.push([Q,D[a]])}h.sort();return h};
_.Km=function(D){var v=_.Kz.apply(1,arguments);if(!Oi(D)||v.some(function(a){return!Oi(a)}))throw Error("nf");
v=_.P(v);for(var h=v.next();!h.done;h=v.next())Vy2(D,h.value)};
Vy2=function(D,v){for(var h in v)if(Oi(v[h])){if(h in D&&!Oi(D[h]))throw Error("of");h in D||(D[h]={});Vy2(D[h],v[h])}else if(Prc(v[h])){if(h in D&&!Prc(D[h]))throw Error("pf");h in D||(D[h]=[]);x_o(D[h],v[h])}else D[h]=v[h];return D};
x_o=function(D,v){v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,Oi(h)?D.push(Vy2({},h)):Prc(h)?D.push(x_o([],h)):D.push(h);return D};
Oi=function(D){return typeof D==="object"&&!Array.isArray(D)};
Prc=function(D){return typeof D==="object"&&Array.isArray(D)};
f$c=function(D){for(var v=_.P(Object.entries(Myq)),h=v.next();!h.done;h=v.next())if(h=_.P(h.value),h.next(),h=h.next().value,h==="SLI_STATUS_"+D)return h;return"SLI_STATUS_UNKNOWN"};
_.TT=function(D,v,h,a){return Cru(D,v,function(){return new _.osc(D,v,h,a)})};
_.FGq=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
zhc=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Rr=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
U_q=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
LG4=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Z6O=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
gsI=function(D){D&&(D.dataset?D.dataset[EsA()]="true":_.Pp([_.CT(I$8)],D,"data-loaded","true".toString()))};
kcf=function(D){return D?D.dataset?D.dataset[EsA()]:D.getAttribute("data-loaded"):null};
EsA=function(){return SZ8.loaded||(SZ8.loaded="loaded".replace(/\-([a-z])/g,function(D,v){return v.toUpperCase()}))};
_.i4=function(D,v,h){JTq(D,v,h===void 0?null:h)};
_.l$2=function(D,v){D&&v&&(D=""+_.iq(v),(D=pN7[D])&&_.Lr4(D))};
JTq=function(D,v,h){h=h===void 0?null:h;var a=_.Nm7(typeof D==="string"?D:D.toString()),Q=document.getElementById(a),G=Q&&kcf(Q),x=Q&&!G;G?v&&v():(v&&(G=_.oB(a,v),v=""+_.iq(v),pN7[v]=G),x||(Q=YZ4(D,a,function(){kcf(Q)||(gsI(Q),_.Z_o(a),_.ZX(function(){_.I2A(a)},0))},h)))};
YZ4=function(D,v,h,a){a=a===void 0?null:a;var Q=_.l9("SCRIPT");Q.id=v;Q.onload=function(){h&&setTimeout(h,0)};
Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}};
a&&Q.setAttribute("nonce",a);_.Ge(Q,typeof D==="string"?_.dW(D):D);D=document.getElementsByTagName("head")[0]||document.body;D.insertBefore(Q,D.firstChild);return Q};
_.Nm7=function(D){var v=document.createElement("a");Rm(v,D);return"js-"+WT(v.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
BmO=function(D){var v=_.eA("INNERTUBE_HOST_OVERRIDE");v&&(D=String(v)+String(_.tB(D)));return D};
cTL=function(D){var v={};_.g("json_condensed_response")&&(v.prettyPrint="false");return D=H1o(D,v)};
_.rd=function(D){return Gi(D)?"same-origin":"include"};
_.u4=function(D){return Gi(D)?"same-origin":"cors"};
DD=function(D,v,h){h=h===void 0?{}:h;D={method:v===void 0?"POST":v,mode:_.u4(D),credentials:_.rd(D)};v={};for(var a=_.P(Object.keys(h)),Q=a.next();!Q.done;Q=a.next())Q=Q.value,h[Q]&&(v[Q]=h[Q]);Object.keys(v).length>0&&(D.headers=v);return D};
_.vU=function(D,v){v=v===void 0?{}:v;return"service:"+D+"/"+Object.keys(v).sort().map(function(h){return h+":"+v[h]}).join("/")};
XNc=function(D){var v,h,a,Q;D=(v=_.k(D,_.hP))==null?void 0:(h=v.watchEndpointSupportedOnesieConfig)==null?void 0:(a=h.html5PlaybackOnesieConfig)==null?void 0:(Q=a.commonConfig)==null?void 0:Q.url;if(!D)return[];v=new _.aN(D);return v.JSC$10036_domain_?["https://"+v.JSC$10036_domain_+"/generate_204"]:[]};
_.b6A=function(){return ATA()||K6f()||qZ7&&eO("version/")?!0:_.eA("EOM_VISITOR_DATA")?!1:!0};
d_i=function(D){var v=D.docid||D.video_id||D.videoId||D.id;if(v)return v;v=D.raw_player_response;v||(D=D.player_response)&&(v=JSON.parse(D));return v&&v.videoDetails&&v.videoDetails.videoId||null};
j5r=function(D){return D.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Qp=function(D){return!isNaN(Number(D))&&!_.C7(D)};
_.Vp=function(D,v,h,a){a=a===void 0?!0:a;var Q=_.eA("VALID_SESSION_TEMPDATA_DOMAINS",[]),G=_.$d(window.location.href);G&&Q.push(G);G=_.$d(D);if(_.wc(Q,G)||!G&&_.Gu(D,"/"))if(Q=document.createElement("a"),Rm(Q,D),D=Q.href)if(D=_.tB(D),D=_.GU(D))a&&!v.csn&&(v.itct||v.ved)&&(v=Object.assign({csn:_.wd()},v)),h?(h=parseInt(h,10),isFinite(h)&&h>0&&s52(D,v,h)):s52(D,v)};
H67=function(D){var v=_.eA("VALID_SESSION_TEMPDATA_DOMAINS",[]),h=_.$d(window.location.href);h&&v.push(h);h=_.$d(D);if(!(_.wc(v,h)||!h&&_.Gu(D,"/")))return null;D=_.tB(D);(D=_.GU(D))?(D=m_c(D),D=(D=_.l8.get(D,void 0)||null)?_.uy(D):{}):D=null;return D};
s52=function(D,v,h){D=m_c(D);v=v?_.SO(v):"";h=h||5;_.b6A()&&_.NM(D,v,h)};
m_c=function(D){for(var v=_.P(yTL),h=v.next();!h.done;h=v.next())D=_.PU(D,h.value);return"ST-"+WT(D).toString(36)};
_.wNL=function(D){if(D.requestFullscreen)D=D.requestFullscreen(void 0);else if(D.webkitRequestFullscreen)D=D.webkitRequestFullscreen();else if(D.mozRequestFullScreen)D=D.mozRequestFullScreen();else if(D.msRequestFullscreen)D=D.msRequestFullscreen();else if(D.webkitEnterFullscreen)D=D.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return D instanceof Promise?D:Promise.resolve()};
_.MF=function(D){var v;_.$Lo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.xE()==D&&(v=document):v=D;if(v&&(D=_.$Lo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],v))){D.call(v)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.xE=function(){var D=D===void 0?!1:D;var v=_.$Lo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(D)for(;v&&v.shadowRoot;)v=v.shadowRoot.fullscreenElement;return v?v:null};
_.f1=function(D,v){v=v===void 0?!0:v;D.addEventListener("wheel",ehr);D.overscrollConfig={cooldown:v}};
_.C1=function(D){D.overscrollConfig=void 0;D.removeEventListener("wheel",ehr)};
ehr=function(D){var v=D.deltaY,h=D.target,a=null;if(window.Polymer&&window.Polymer.Element){if(h=D.path||D.composedPath&&D.composedPath()){h=_.P(h);for(var Q=h.next();!Q.done&&(Q=Q.value,!nsu(Q,v));Q=h.next())if(Q.overscrollConfig){a=Q;break}}}else for(;h&&!nsu(h,v);){if(h.overscrollConfig){a=h;break}h=h.parentElement}a&&(v=a.overscrollConfig,v.cooldown?(a=D.deltaY,h=v.lastDeltaY||0,v.lastDeltaY=a,Q=v.lastStopped||0,h&&Q&&h>0==a>0?Math.abs(h)>=Math.abs(a)?(a=Q+1200,h=!1):(a=Q+600,h=!0):(a=Date.now()+
600,h=!0),a>Date.now()&&(D.preventDefault(),h&&(v.lastStopped=Date.now()))):D.preventDefault())};
nsu=function(D,v){return v<0&&D.scrollTop>0||v>0&&D.scrollTop<D.scrollHeight-D.clientHeight-1?(D=getComputedStyle(D).overflowY,D=="auto"||D=="scroll"):!1};
_.F1=function(D,v,h,a){a||(a={bubbles:!0,cancelable:!1,composed:!0});h!==null&&h!==void 0&&(a.detail=h);var Q=new CustomEvent(v,a);_.g("untrack_fire_custom_event_killswitch")?D.dispatchEvent(Q):_.LV(function(){return void D.dispatchEvent(Q)});
return Q};
O6q=function(D){var v=window,h=function(a){v.removeEventListener("yt-navigate-start",h);return D.call(v,a)};
v.addEventListener("yt-navigate-start",h,void 0)};
_.zU=function(D,v,h,a){v=new KG7(v,!(a===void 0||!a),h);_.F1(D,"yt-action",v);return v.returnValue};
_.U9=function(D,v,h){return _.zU(D,v,h,!0)};
_.ZD=function(D,v,h,a){v&&v.length&&v.forEach(function(Q){var G=h6q(Q);G&&(_.g("handle_service_request_actions")&&Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.L1(h?h:D,[Q]):_.U9(D,G,[Q,h,a]))})};
_.L1=function(D,v){var h=[D];v&&h.push.apply(h,v);v=_.zU(D,"yt-service-request",h);return v.length>0&&(v=v[0],_.F1(D,"yt-service-request-sent",v),v&&v.ajaxPromise)?(v.ajaxPromise.then(function(a){_.F1(D,"yt-service-request-completed",a)},function(a){_.F1(D,"yt-service-request-error",{error:a,
params:h})},D),v.ajaxPromise):_.E9()};
_.gK=function(D,v){if(_.g("handle_service_request_actions"))_.ZD(v,D,v);else{D=_.P(D);for(var h=D.next();!h.done;h=D.next()){h=h.value;var a=void 0;((a=_.k(h,_.IN))==null?0:a.commands)?_.gK(_.k(h,_.IN).commands,v):(a=void 0,((a=_.k(h,_.kE))==null?0:a.actions)?_.gK(_.k(h,_.kE).actions,v):(a=void 0,((a=_.k(h.commandMetadata,_.Sa))==null?0:a.sendPost)?_.L1(v,[h]):_.ZD(v,[h],v)))}}};
_.Rhi=function(D,v,h){v=v===void 0?{}:v;typeof v==="function"&&(v={callback:v});h||v._c&&v._c.jsl&&v._c.jsl.h||_.sV.extend(v,{_c:{jsl:{h:_.eA("GAPI_HINT_PARAMS")}}});(v.gapiHintOverride||_.eA("GAPI_HINT_OVERRIDE"))&&(h=_.DX(document.location.href).gapi_jsh)&&_.sV.extend(v,{_c:{jsl:{h:h}}});Tmc(D,v)};
_.p1=function(D,v,h){v=v===void 0?{}:v;D=(D=D in JP?JP[D]:h)||"";h={};for(var a in v){h={key$jscomp$836:h.key$jscomp$836};h.key$jscomp$836=a;var Q=function(G){return function(){return String(v[G.key$jscomp$836])}}(h);
D=D.replace(new RegExp("\\$\\{"+h.key$jscomp$836+"\\}","gi"),Q);D=D.replace(new RegExp("\\$"+h.key$jscomp$836,"gi"),Q)}return D};
_.l1=function(D,v){return i6f(D in JP?JP[D]:{},v)};
i6f=function(D,v){var h=_.eA("I18N_PLURAL_RULES");h||(h=function(a){return a==1?"one":"other"});
return(D=D["case"+v]||D[h(v)])?D.replace("#",v.toString()):v+""};
rTO=function(D){var v=WGc(D),h=document.getElementById(v),a=h&&kcf(h);a||h&&!a||(h=tyL(D,v,function(){if(!kcf(h)){gsI(h);_.Z_o(v);var Q=_.NF(_.I2A,v);_.ZX(Q,0)}}))};
tyL=function(D,v,h){var a=document.createElement("link");a.id=v;a.onload=function(){h&&setTimeout(h,0)};
D=_.dW(D);_.xI(a,D,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(a);return a};
WGc=function(D){var v=_.l9("A");Rm(v,jR(D));return"css-"+WT(v.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.D98=function(D){var v=u2A();D!==v&&(v=_.YE(),!_.g("web_autonav_allow_off_by_default")&&D||_.BU(0,141,!0),_.BU(0,140,!D),v.save())};
u2A=function(){var D=_.YE();return _.g("web_autonav_allow_off_by_default")&&!D.getFlag(141)&&_.eA("AUTONAV_OFF_BY_DEFAULT")?!1:!D.getFlag(140)};
vFi=function(D,v){var h,a;D=((h=D.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(a=h.videoAuthorizationToken)==null?void 0:a.credentialTransferTokens)||[];for(h=0;h<D.length;++h)if(D[h].scope===v)return D[h].token||void 0};
hvc=function(D){for(var v=0,h=0;h<D.length;h++)v=v*31+D.charCodeAt(h),h<D.length-1&&(v%=0x800000000000);return v%1E5};
_.cU=function(D){return _.T3("ytcsi."+(D||"")+"data_")||aVi(D)};
_.$9O=function(D){D=_.cU(D);D.metadata||(D.metadata={});return D.metadata};
_.QRi=function(D){D=_.cU(D);D.tick||(D.tick={});return D.tick};
_.X1=function(D){D=_.cU(D);if(D.gel){var v=D.gel;v.gelInfos||(v.gelInfos={});v.gelTicks||(v.gelTicks={})}else D.gel={gelTicks:{},gelInfos:{}};return D.gel};
_.GL7=function(D){D=_.X1(D);D.gelInfos||(D.gelInfos={});return D.gelInfos};
V5f=function(D){var v=_.cU(D).nonce;v||(v=m3(16),_.cU(D).nonce=v);return v};
aVi=function(D){var v={tick:{},info:{}};_.Gm("ytcsi."+(D||"")+"data_",v);return v};
PN2=function(){var D=_.T3("ytcsi.debug");D||(D=[],_.Gm("ytcsi.debug",D),_.Gm("ytcsi.reference",{}));return D};
_.AP=function(D){D=D||"";var v=x9O();if(v[D])return v[D];var h=PN2(),a={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};h.push(a);return v[D]=a};
M5r=function(D){D=D||"";var v=x9O();v[D]&&delete v[D];var h=PN2(),a={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};h.push(a);v[D]=a};
x9O=function(){var D=_.T3("ytcsi.reference");if(D)return D;PN2();return _.T3("ytcsi.reference")};
_.CNq=function(D){return fVi[D]||"LATENCY_ACTION_UNKNOWN"};
U9I=function(D,v,h){h=h===void 0?{}:h;var a=!1;_.nJ("ytLoggingEventsDefaultDisabled",!1)&&(a=!0);a=a?null:df;h=h===void 0?{}:h;var Q=Math.round(h.timestamp||(0,_.xz)());_.Y_(v,1,Q<Number.MAX_SAFE_INTEGER?Q:0);Q=new oFA;if(h.lact)_.Y_(Q,1,isFinite(h.lact)?h.lact:-1);else if(h.timestamp)_.Y_(Q,1,-1);else{var G=_.x_();_.Y_(Q,1,isFinite(G)?G:-1)}if(h.sequenceGroup&&!_.g("web_gel_sequence_info_killswitch")){G=h.sequenceGroup;var x=Bp7(G),f=new FB2;_.Y_(f,2,x);_.Xx(f,1,G);_.lH(Q,3,f);h.endOfSequence&&delete zvL[h.sequenceGroup]}_.lH(v,
33,Q);(h.sendIsolatedPayload?j3c:s37)(D,{endpoint:"log_event",payload:v,cttAuthInfo:h.cttAuthInfo,dangerousLogToVisitorSession:h.dangerousLogToVisitorSession},a)};
_.b1=function(){return(_.g("csi_use_time_origin")||_.g("csi_use_time_origin_tvhtml5"))&&_.qF.timeOrigin?Math.floor(_.qF.timeOrigin):_.qF.timing.navigationStart};
_.LB2=function(D,v){_.dK("_start",D,v)};
_.ja=function(D,v){if(!_.g("web_csi_action_sampling_enabled")||!_.cU(v).actionDisabled){var h=_.AP(v||"");_.Km(h.info,D);D.loadType&&(h=D.loadType,_.$9O(v).loadType=h);_.Km(_.GL7(v),D);h=V5f(v);v=_.cU(v).cttAuthInfo;Zgi().info(D,h,v)}};
EFu=function(){var D,v,h,a;return((a=_.xd().resolve(_.PV(XB))==null?void 0:(D=AX())==null?void 0:(v=D.loggingHotConfig)==null?void 0:(h=v.csiConfig)==null?void 0:h.debugTicks)!=null?a:[]).map(function(Q){return Object.values(Q)[0]})};
_.dK=function(D,v,h){if(!_.g("web_csi_action_sampling_enabled")||!_.cU(h).actionDisabled){var a=V5f(h),Q;if(Q=_.g("web_csi_debug_sample_enabled")&&a){(_.xd().resolve(_.PV(XB))==null?0:AX())&&!IV8&&(IV8=!0,_.dK("gcfl",(0,_.xz)(),h));var G,x,f;Q=(_.xd().resolve(_.PV(XB))==null?void 0:(G=AX())==null?void 0:(x=G.loggingHotConfig)==null?void 0:(f=x.csiConfig)==null?void 0:f.debugSampleWeight)||0;if(G=Q!==0)b:{G=EFu();if(G.length>0)for(x=0;x<G.length;x++)if(D===G[x]){G=!0;break b}G=!1}G?(Q=hvc(a)%Q!==0,
_.cU(h).debugTicksExcludedLogged||(G={},G.debugTicksExcluded=Q,_.ja(G,h)),_.cU(h).debugTicksExcludedLogged=!0):Q=!1}if(!Q){D[0]!=="_"&&gF4(D,h,v);Q=_.AP(h||"");Q.tick[D]=v||(0,_.xz)();if(Q.callback&&Q.callback[D])for(Q=_.P(Q.callback[D]),G=Q.next();!G.done;G=Q.next())G=G.value,G();Q=_.X1(h);Q.gelTicks&&(Q.gelTicks[D]=!0);G=_.QRi(h);Q=v||(0,_.xz)();_.g("log_repeated_ytcsi_ticks")?D in G||(G[D]=Q):G[D]=Q;G=_.cU(h).cttAuthInfo;D==="_start"?Zgi().baseline(a,v,G):Zgi().tick(D,a,v,G);_.kLo(h);return Q}}};
gF4=function(D,v,h){if(_.qF.mark)if(D.startsWith("mark_")||(D="mark_"+D),v&&(D+=" ("+v+")"),h===void 0||_.g("web_csi_disable_alt_time_performance_mark"))_.qF.mark(D);else{h=_.g("csi_use_performance_navigation_timing")?h-_.qF.timeOrigin:h-(_.qF.timeOrigin||_.qF.timing.navigationStart);try{_.qF.mark(D,{startTime:h})}catch(a){}}};
SBL=function(){var D,v=(D=_.qF.getEntriesByType)==null?void 0:D.call(_.qF,"mark");v&&v.forEach(function(h){if(h.name.startsWith("mark_")){var a;(a=_.qF.clearMarks)==null||a.call(_.qF,h.name)}})};
_.Jxu=function(){switch(a2L()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.pq7=function(D){var v={},h=function(G,x,f){x=x.match("_rid")?x.split("_rid")[0]:x;typeof f==="number"&&(f=JSON.stringify(f));G.requestIds?G.requestIds.push({endpoint:x,id:f}):G.requestIds=[{endpoint:x,id:f}]};
D=_.P(Object.entries(D));for(var a=D.next();!a.done;a=D.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;switch(a){case "GetBrowse_rid":h(v,a,Q);break;case "GetGuide_rid":h(v,a,Q);break;case "GetHome_rid":h(v,a,Q);break;case "GetPlayer_rid":h(v,a,Q);break;case "GetSearch_rid":h(v,a,Q);break;case "GetSettings_rid":h(v,a,Q);break;case "GetTrending_rid":h(v,a,Q);break;case "GetWatchNext_rid":h(v,a,Q);break;case "yt_red":v.isRedSubscriber=!!Q;break;case "yt_ad":v.isMonetized=!!Q}}return v};
N3o=function(D,v,h,a,Q,G){if(!_.g("web_csi_action_sampling_enabled")||!_.cU(G).actionDisabled){var x=_.X1(G);if(x.gelSpans)x.gelSpans[D]=!0;else{var f={};x.gelSpans=(f[D]=!0,f)}lV8++;D={spanName:D,spanLengthUsec:String(Math.round(v*1E3)),spanNonce:lV8};a&&(D.spanInfo=a);Q&&(D.parentSpanNonce=Q);h&&(D.spanStartTimeUsec=String(Math.round(h*1E3)));_.AP(G||"").span[String(D.spanName)]=D;h=_.X1(G);h.gelSpans||(h.gelSpans={});_.Km(h.gelSpans,D);h=V5f(G);G=_.cU(G).cttAuthInfo;Zgi().span(D,h,G);return D.spanNonce}};
_.YBr=function(D){var v=_.s9("aft",D);if(v)return v;v=_.eA((D||"")+"TIMING_AFT_KEYS",["ol"]);for(var h=v.length,a=0;a<h;a++){var Q=_.s9(v[a],D);if(Q)return Q}return NaN};
_.B3q=function(D,v){_.Gm("ytglobal.timing"+(v||"")+"ready_",D)};
_.s9=function(D,v){if(D=_.QRi(v)[D])return typeof D==="number"?D:D[D.length-1]};
_.kLo=function(D){var v=_.s9("_start",D),h=_.YBr(D),a=!cxi;v&&h&&a&&(cVc(XqL,new Ax2(Math.round(h-v),D)),cxi=!0)};
bgr=function(D){aVi(D);qBc();SBL();D||(_.eA("TIMING_ACTION")&&_.wM("PREVIOUS_ACTION",_.eA("TIMING_ACTION")),_.wM("TIMING_ACTION",""))};
_.d97=function(D){D=D===void 0?{}:D;_.KJ(function(){mn();M5r();bgr();_.B3q(!1);D.cttAuthInfo&&(_.cU().cttAuthInfo=D.cttAuthInfo);_.wM("TIMING_AFT_KEYS",[]);D.isHot?_.HU({loadType:"hot"}):_.HU({loadType:"warm"});_.wM("TIMING_ACTION","");delete _.eA("TIMING_INFO",{}).yt_lt;_.KJ(_.LB2)(D.startTime,void 0)})()};
_.wK=function(D,v,h,a){v=v===void 0?{}:v;_.KJ(function(){var Q=h?h:D;yp(Q);var G=v.sampleRate;if(!_.g("web_csi_action_sampling_enabled")||G===void 0||G<=1)G=!1;else{var x=V5f(Q);G=hvc(x)%G!==0}G&&(_.cU(Q).actionDisabled=!0);_.AP(Q||"").info.actionType=D;v.cttAuthInfo&&(_.cU(Q).cttAuthInfo=v.cttAuthInfo);_.wM(Q+"TIMING_ACTION",D);_.KJ(_.LB2)(v.startTime,Q);G={actionType:a||_.CNq(D)};v.logPreviousAction&&(G.previousAction=_.CNq(_.eA("TIMING_ACTION")));(x=_.wd())&&x!=="UNDEFINED_CSN"&&(G.clientScreenNonce=
x);_.HU(G,Q);_.B3q(!0,Q)})()};
yp=function(D){_.KJ(function(){mn(D);M5r(D);bgr(D)})()};
jRA=function(){_.KJ(function(){var D=[],v;for(v in _.T3("ytcsi.".slice(0,-1)))v.endsWith("data_")&&D.push(v.slice(0,-5));D=_.P(D);for(v=D.next();!v.done;v=D.next())yp(v.value);mn()})()};
_.m9q=function(D){return _.KJ(function(){return _.sR2("_start",D)})()};
_.HU=function(D,v,h){_.KJ(_.ja)(D,v,h===void 0?!1:h)};
_.ea=function(D,v,h){return _.KJ(_.dK)(D,v,h)};
_.sR2=function(D,v){return _.KJ(function(){var h=_.QRi(v);return D in h})()};
yxf=function(D){if(!_.g("universal_csi_network_ticks"))return"";D=_.gl(D)||"";for(var v=Object.keys(HgA),h=0;h<v.length;h++){var a=v[h];if(D.includes(a))return a}return""};
ev7=function(D){if(!_.g("universal_csi_network_ticks"))return function(){};
var v=HgA[D];return v?(_.n1(v),function(){var h=_.g("universal_csi_network_ticks")?(h=wqq[D])?_.n1(h):!1:!1;return h}):function(){}};
_.n1=function(D,v,h){return _.KJ(function(){if(_.sR2(D,h))return!1;_.ea(D,v,h);return!0})()};
_.O9=function(D,v,h){_.KJ(function(){if(!_.m9q(h)||_.sR2(D,h))return!1;_.ea(D,v,h);return!0})()};
_.K1=function(D){return _.KJ(_.s9)(D,void 0)};
mn=function(D){_.m9q(D)&&_.ea("aa",void 0,D)};
_.RvA=function(D,v,h,a,Q,G,x,f,C){var U=nFI();f=new HT({veType:v,youtubeData:G,jspbYoutubeData:f});G=TU({},U);Q&&(G.cttAuthInfo=Q);Q={csn:U,pageVe:f.getAsJson()};_.g("expectation_logging")&&C&&C.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=C.screenCreatedLoggingExpectations);h&&h.visualElement?(Q.implicitGesture={parentCsn:h.clientScreenNonce,gesturedVe:h.visualElement.getAsJson()},x&&(Q.implicitGesture.gestureType=x)):h&&_.yR(new _.XH("newScreen() parent element does not have a VE - rootVe",
v));a&&(Q.cloneCsn=a);D?bD("screenCreated",Q,D,G):_.jj("screenCreated",Q,G);cVc(syc,new OgL(U));RN.clear();KBi.clear();T3f.clear();return U};
i1=function(D,v,h,a,Q,G){G=G===void 0?{}:G;ig7(D,v,h,[a],Q===void 0?!1:Q,G)};
ig7=function(D,v,h,a,Q,G){Q=Q===void 0?!1:Q;G=G===void 0?{}:G;Object.assign(G,TU({cttAuthInfo:eC(v)||void 0},v));for(var x=_.P(a),f=x.next();!f.done;f=x.next()){f=f.value;var C=f.getAsJson();(_.sV.isEmpty(C)||!C.trackingParams&&!C.veType)&&_.yR(Error("zf"));if(_.g("no_client_ve_attach_unless_shown")){var U=WBO(f,v);if(C.veType&&!KBi.has(U)&&!T3f.has(U)&&!Q){if(!_.g("il_attach_cache_limit")||RN.size<1E3){RN.set(U,[D,v,h,f]);return}_.g("il_attach_cache_limit")&&RN.size>1E3&&_.yR(new _.XH("IL Attach cache exceeded limit"))}f=
WBO(h,v);RN.has(f)?t5r(h,v):T3f.set(f,!0)}}a=a.filter(function(L){L.csn!==v?(L.csn=v,L=!0):L=!1;return L});
h={csn:v,parentVe:h.getAsJson(),childVes:_.mO(a,function(L){return L.getAsJson()})};
v==="UNDEFINED_CSN"?WU("visualElementAttached",G,h):D?bD("visualElementAttached",h,D,G):_.jj("visualElementAttached",h,G)};
um7=function(D,v,h,a,Q){rxL(D,v,h,Q)};
rxL=function(D,v,h,a){DBr(h,v);var Q=TU({cttAuthInfo:eC(v)||void 0},v);h={csn:v,ve:h.getAsJson(),eventType:1};a&&(h.clientData=a);v==="UNDEFINED_CSN"?WU("visualElementShown",Q,h):D?bD("visualElementShown",h,D,Q):_.jj("visualElementShown",h,Q)};
vMI=function(D,v,h,a){DBr(h,v);var Q=TU({cttAuthInfo:eC(v)||void 0},v);h={csn:v,ve:h.getAsJson(),eventType:4};a&&(h.clientData=a);v==="UNDEFINED_CSN"?WU("visualElementShown",Q,h):D?bD("visualElementShown",h,D,Q):_.jj("visualElementShown",h,Q)};
h_q=function(D,v,h,a,Q){var G=(a=a===void 0?!1:a)?16:8;a=TU({cttAuthInfo:eC(v)||void 0,endOfSequence:a},v);h={csn:v,ve:h.getAsJson(),eventType:G};Q&&(h.clientData=Q);v==="UNDEFINED_CSN"?WU("visualElementHidden",a,h):D?bD("visualElementHidden",h,D,a):_.jj("visualElementHidden",h,a)};
$Bc=function(D,v,h,a,Q){aQI(D,v,h,void 0,a,Q)};
aQI=function(D,v,h,a,Q){DBr(h,v);a=a||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var G=TU({cttAuthInfo:eC(v)||void 0},v);h={csn:v,ve:h.getAsJson(),gestureType:a};Q&&(h.clientData=Q);v==="UNDEFINED_CSN"?WU("visualElementGestured",G,h):D?bD("visualElementGestured",h,D,G):_.jj("visualElementGestured",h,G)};
QdI=function(D,v,h,a){var Q=TU({cttAuthInfo:eC(v)||void 0},v);h={csn:v,ve:h.getAsJson(),clientData:a};v==="UNDEFINED_CSN"?WU("visualElementStateChanged",Q,h):D?bD("visualElementStateChanged",h,D,Q):_.jj("visualElementStateChanged",h,Q)};
GX2=function(){var D=Ttc(16);for(var v=[],h=0;h<D.length;h++)v.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[h]&63));return v.join("")};
WU=function(D,v,h){V8I.push({payloadName:D,payload:h,jspbPayload:void 0,options:v});Pb2||(Pb2=HZf())};
jyu=function(D){if(V8I){for(var v=_.P(V8I),h=v.next();!h.done;h=v.next())h=h.value,h.payload&&(h.payload.csn=D.csn,_.jj(h.payloadName,h.payload,h.options));V8I.length=0}Pb2=0};
WBO=function(D,v){return""+D.getAsJson().veType+D.getAsJson().veCounter+v};
DBr=function(D,v){if(_.g("no_client_ve_attach_unless_shown")){var h=WBO(D,v);KBi.set(h,!0);t5r(D,v)}};
t5r=function(D,v){D=WBO(D,v);RN.has(D)&&(v=RN.get(D)||[],i1(v[0],v[1],v[2],v[3],!0),RN.delete(D))};
TU=function(D,v){_.g("log_sequence_info_on_gel_web")&&(D.sequenceGroup=v);return D};
_.tP=function(D,v,h){_.KJ(i1)(void 0,D,v,h)};
_.rK=function(D,v,h){_.KJ(ig7)(void 0,D,v,h)};
_.u1=function(D,v){_.KJ(um7)(void 0,D,v,void 0,void 0,void 0)};
_.DU=function(D,v,h){_.KJ(function(){_.rM(v,function(a){vMI(void 0,D,a,h)})})()};
_.vf=function(D,v,h,a){_.KJ(function(){_.rM(v,function(Q){h_q(void 0,D,Q,h,a)})})()};
_.hA=function(D,v,h){_.KJ($Bc)(void 0,D,v,h,void 0)};
_.aG=function(D,v,h,a){_.KJ(aQI)(void 0,D,v,h,a,void 0)};
_.$Z=function(D,v,h){_.KJ(QdI)(void 0,D,v,h,void 0)};
xBf=function(D,v){Q_.set(D,v)};
M88=function(D){return Ga.initialized?Ga.enabledSpans?Ga.enabledSpans[D]:!0:!1};
fQf=function(D,v){if(D){v=v===void 0?1:v;if(D){D.endTime=(0,_.xz)();v&&(D.status=v);v=_.P(Ga.processors);for(var h=v.next();!h.done;h=v.next()){var a=void 0,Q=void 0;(Q=(a=h.value).onSpanEnd)==null||Q.call(a,D)}}D!==Ga.stack[Ga.stack.length-1]&&_.yR(Error("Cf`"+D.name));Ga.stack.pop()}};
oMf=function(D,v,h){if(M88(D)&&Ga.shouldSampleFn(D,v,Cb7)){var a=Ga.nextSpanId++,Q=Ga.stack[Ga.stack.length-1];D={id:a,parentId:Q==null?void 0:Q.id,name:D,attributes:v,traceId:Q?Q.traceId:a,sessionId:Ga.sessionId,startTime:(0,_.xz)(),status:0};Q&&(Q.children||(Q.children=[]),Q.children.push(D));Q=_.P(Ga.processors);for(v=Q.next();!v.done;v=Q.next()){var G=a=void 0;(G=(a=v.value).onSpanStart)==null||G.call(a,D)}}else D=void 0;D?Ga.stack.push(D):D=void 0;if(!D)return h();try{var x=h(D);fQf(D);return x}catch(f){throw fQf(D,
2),f;}};
F4u=function(){};
z_7=function(D,v){var h=Object.keys(D);D=new _.XH("[Command Handler] "+v,{filteredCommandNames:h,originalCommand:D});_.mV(D)};
UBu=function(D,v){z_7(D,v+" was called but not set")};
L4A=function(D){return function(){return new D}};
V_=function(D){return function(){return _.xd().resolve(D)}};
ZrI=function(D,v){var h=_.k(D,_.Kp);if(h&&(h=v[h.signal]))return h();D=_.P(Object.keys(D));for(h=D.next();!h.done;h=D.next())if(h=h.value,v[h]&&(h=v[h]))return h()};
_.Pf=function(D,v,h,a){return{browseEndpoint:{browseId:D},commandMetadata:{webCommandMetadata:{url:v,rootVe:h,webPageType:a===void 0?"WEB_PAGE_TYPE_BROWSE":a}}}};
EMi=function(D,v,h){var a=v=v===void 0?0:v;h=h===void 0?0:h;var Q=h-a;return _.xZ(D,"PPSV",void 0,void 0,(Q>600?0:Q<60||h<=0||a/h>.9)?0:v)};
_.xZ=function(D,v,h,a,Q){var G="/watch?v="+D;D={videoId:D};v&&(D.playlistId=v,G+="&list="+v);a&&(G+="&pp="+a);Q&&(D.startTimeSeconds=Q,G+="&t="+Q+"s");v={watchEndpoint:D,commandMetadata:{webCommandMetadata:{url:G,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};h&&(v.clickTrackingParams=h);a&&(_.k(v,_.hP).playerParams=a);return v};
IQ4=function(D){return{browseEndpoint:{browseId:"VL"+D},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+D,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
gMq=function(D){if(D){var v;if(D){var h=(v=_.k(D.commandMetadata,_.Sa))==null?void 0:v.url;v=!(!h||h==="/service_ajax")}else v=!1;if(v)return D;var a;if(D=(a=_.k(D,_.IN))==null?void 0:a.commands)for(a=_.P(D),D=a.next();!D.done;D=a.next())if(D=gMq(D.value))return D}};
_.MD=function(D){return{runs:[{text:D}]}};
kXA=function(D,v){return D&&v?{runs:[{text:D,navigationEndpoint:v}]}:void 0};
fG=function(D){return D?_.MD(D):void 0};
_.CG=function(D){return D?{simpleText:D}:void 0};
_.oG=function(D){var v=D.type;D=D.payload;v={type:v};D!==void 0&&(v.payload=D);return v};
Sc7=function(D,v,h){for(var a=Object.assign({},D),Q=_.P(Object.keys(v)),G=Q.next();!G.done;G=Q.next()){G=G.value;var x=D[G],f=v[G];if(f===void 0)delete a[G];else if(x===void 0)a[G]=f;else if(Array.isArray(f)&&Array.isArray(x))a[G]=h?[].concat(_.j_(x),_.j_(f)):f;else if(!Array.isArray(f)&&_.Ro(f)&&!Array.isArray(x)&&_.Ro(x))a[G]=Sc7(x,f,h);else if(typeof f===typeof x)a[G]=f;else return v=new _.XH("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:G,originalValue:x,updateValue:f}),
_.mV(v),D}return a};
lQf=function(D){if(!D.length)return"";try{if(Jlo)return Jlo.decode(D);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(D)}catch(x){}for(var v=0,h=[],a=D.length;v<a;){for(var Q=0;Q<1024&&v<a;){var G=D[v++];if(G<128)pFc[Q++]=G;else{if(G<224)G=(G&31)<<6|D[v++]&63;else if(G<240)G=(G&15)<<12|(D[v++]&63)<<6|D[v++]&63;else{if(Q+1===1024){--v;break}G=(G&7)<<18|(D[v++]&63)<<12|(D[v++]&63)<<6|D[v++]&63;G-=65536;pFc[Q++]=55296|G>>10;G=56320|G&1023}pFc[Q++]=G}}G=String.fromCharCode.apply(String,
pFc);Q<1024&&(G=G.substring(0,Q));h.push(G)}return h.join("")};
Yc4=function(D,v){var h;if((h=NPL)==null?0:h.encodeInto)return v=NPL.encodeInto(D,v),v.read<D.length?D.length*4:v.written;for(var a=h=0;a<D.length;a++){var Q=D.charCodeAt(a);Q<128?v[h++]=Q:(Q<2048?v[h++]=Q>>6|192:((Q&64512)===55296&&a+1<D.length&&(D.charCodeAt(a+1)&64512)===56320?(Q=65536+((Q&1023)<<10)+(D.charCodeAt(++a)&1023),v[h++]=Q>>18|240,v[h++]=Q>>12&63|128):v[h++]=Q>>12|224,v[h++]=Q>>6&63|128),v[h++]=Q&63|128)}return h};
BPI=function(D,v,h){if(v&&h&&h.buffer===v.exports.memory.buffer){var a=v.realloc(h.byteOffset,D);if(a)return new Uint8Array(v.exports.memory.buffer,a,D)}D=v?new Uint8Array(v.exports.memory.buffer,v.malloc(D),D):new Uint8Array(D);h&&D.set(h);return D};
_.LG=function(D){D=new clO(new XF7([_.DJ(decodeURIComponent(D))]));if(AlA(D,2)){var v=U4(D);var h=D.pos;var a=D.arrayView;h=h===void 0?0:h;var Q=v===void 0?-1:v;h=h===void 0?0:h;Q=Q===void 0?-1:Q;if(a.totalLength&&Q){Q<0&&(Q=a.totalLength-h);a.focus(h);if(!(h-a.arrayPos+Q<=a.arrays[a.arrayIdx].length)){var G=a.arrayIdx,x=a.arrayPos;a.focus(h+Q-1);x=new Uint8Array(a.arrayPos+a.arrays[a.arrayIdx].length-x);for(var f=0,C=G;C<=a.arrayIdx;C++)x.set(a.arrays[C],f),f+=a.arrays[C].length;a.arrays.splice(G,
a.arrayIdx-G+1,x);a.arrayIdx=0;a.arrayPos=0;a.focus(h)}G=a.arrays[a.arrayIdx];a=new DataView(G.buffer,G.byteOffset+h-a.arrayPos,Q)}else a=new DataView(new ArrayBuffer(0));a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);D.pos+=v;v=a}else v=void 0;v=v?lQf(v):void 0;D=AlA(D,4)?U4(D):void 0;a=qc2[D];if(typeof a==="undefined")throw D=new _.XH("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:D}),_.mV(D),D;return{entityTypeFieldNumber:D,entityType:a,entityId:v}};
_.IG=function(D,v,h){h=h===void 0?0:h;var a=new bri;if(NPL)D=NPL.encode(D);else{var Q=new Uint8Array(Math.ceil(D.length*1.2)),G=Yc4(D,Q);Q.length<G&&(Q=new Uint8Array(G),G=Yc4(D,Q));Q.length>G&&(Q=Q.subarray(0,G));D=Q}D!==void 0&&(ZU(a,18),Q=D.length,ZU(a,Q),E4(a,Q),a.buf.set(D,a.pos),a.pos+=Q);D=dBf[v];if(typeof D==="undefined")throw h=new _.XH("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:v}),_.mV(h),h;D!==void 0&&(ZU(a,32),ZU(a,D));ZU(a,40);ZU(a,1);v=new Uint8Array(a.buf.buffer,
a.buf.byteOffset,a.pos);return encodeURIComponent(_.dr(v,h))};
jdq=function(D){D=D.key||D.id;if(!D)throw Error("Ef");return D};
mBu=function(D,v){D=D===void 0?{}:D;return sdc(D,v)};
HrO=function(D,v,h,a){if(a===void 0)return a=Object.assign({},D[v]||{}),h=(delete a[h],a),a={},Object.assign({},D,(a[v]=h,a));var Q={},G={};return Object.assign({},D,(G[v]=Object.assign({},D[v],(Q[h]=a,Q)),G))};
ylc=function(D,v,h,a,Q){var G=D[v];if(G==null||!G[h])return D;a=Sc7(G[h],a,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};G={};return Object.assign({},D,(G[v]=Object.assign({},D[v],(Q[h]=a,Q)),G))};
_.gR=function(D,v,h){return D[v]?D[v][h]||null:null};
e_8=function(){if(wFA)return wFA();var D={};wFA=PK("PersistentEntityStoreDb",{objectStores:(D.EntityStore={addedAtVersion:1},D.EntityAssociationStore={addedAtVersion:2},D),shared:!1,upgrade:function(v,h){h(1)&&Re(Tm(v,"EntityStore",{keyPath:"key"}),"entityType","entityType");h(2)&&(v=Tm(v,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Re(v,"byParentEntityKey","parentEntityKey"),Re(v,"byChildEntityKey","childEntityKey"))},
version:3});return wFA()};
nM8=function(D){return _.Do(e_8(),D)};
kZ=function(D){return window.Int32Array?new Int32Array(D):Array(D)};
K4c=function(D){return _.Do(Orq(),D)};
TP2=function(D){return new Sq("WRONG_DATA_TYPE",{encoderVersion:D})};
R_i=function(D){return D instanceof Error?new Sq("UNKNOWN_ENCODE_ERROR",{originalMessage:D.message}):new Sq("UNKNOWN_ENCODE_ERROR")};
ir2=function(D){return D instanceof Error?new Sq("UNKNOWN_DECODE_ERROR",{originalMessage:D.message}):new Sq("UNKNOWN_DECODE_ERROR")};
W42=function(D,v){D=D instanceof Sq?D:v(D);_.mV(D);throw D;};
t8f=function(D){D=(new TextEncoder).encode(D).subarray(0,16);var v=new Uint8Array(16);v.set(D);return v};
uiO=function(D){var v=rlL[D];if(v)return v;_.yR(new _.XH("Entity model not found.",{entityType:D}))};
_.JA=function(){D8L||(D8L=vG2());return D8L};
vG2=function(){var D,v,h;return _.M(function(a){if(a.nextAddress==1)return _.gE(a,2),a.yield(_.Vx(),4);if(a.nextAddress!=2){D=a.yieldResult;if(!D||!_.cV()||typeof _.$L.BroadcastChannel==="undefined")return a.return();v=new h$I;return a.return(new pG(D,v))}h=_.NS(a);h instanceof Error&&_.mV(h);return a.return()})};
_.l0=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1){h=D.mutations;if(!h||h.length<=0)return a.return();v&&v.dispatch(_.oG({type:"ENTITY_LOADED",payload:h}));return a.yield(aE8(h),2)}h.length=0;_.YI(a)})};
aE8=function(D){var v;return _.M(function(h){return h.nextAddress==1?h.yield(_.JA(),2):(v=h.yieldResult)?h.yield(_.ND(v,"readwrite",function(a){for(var Q={},G=_.P(D),x=G.next(),f={};!x.done;f={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},x=G.next())f.mutation$jscomp$4=x.value,f.mutation$jscomp$4.entityKey&&$8q(f.mutation$jscomp$4)&&(f.mutationEntityType$jscomp$3=(0,_.sV.getAnyKey)(f.mutation$jscomp$4.payload),x=void 0,f.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(x=function(C){return function(){return _.QA2(a,
C.mutation$jscomp$4.payload[C.mutationEntityType$jscomp$3],C.mutationEntityType$jscomp$3)}}(f)),f.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(x=function(C){return function(){return GFo(a,C.mutation$jscomp$4.entityKey)}}(f)),f.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(x=function(C){return function(){return Vh2(a,C.mutation$jscomp$4.entityKey,C.mutation$jscomp$4.payload[C.mutationEntityType$jscomp$3],C.mutationEntityType$jscomp$3)}}(f)),x&&(Q[f.mutation$jscomp$4.entityKey]=
Q[f.mutation$jscomp$4.entityKey]?Q[f.mutation$jscomp$4.entityKey].then(x):x()));
return Ti.all(Object.values(Q))}),0):h.return()})};
$8q=function(D){var v;D=(v=D.options)==null?void 0:v.persistenceOption;return D==="ENTITY_PERSISTENCE_OPTION_PERSIST"||D==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Mho=function(D,v){var h,a;_.M(function(Q){if(Q.nextAddress==1)return Q.yield(_.JA(),2);if(Q.nextAddress!=3)return(h=Q.yieldResult)?Q.yield(_.ND(h,"readonly",function(G){var x={},f=Object.keys(v).map(function(C){var U=v[C]?[].concat(_.j_(v[C])):[];return Plu(G,C,U,x)});
return Ti.all(f).then(function(){return x})}),3):Q.return();
a=Q.yieldResult;Object.keys(a).length>0&&D.dispatch(x8O(a));_.YI(Q)})};
Plu=function(D,v,h,a){return YZ(D,v,h).then(function(Q){a[v]=fEI(h,Q)})};
fEI=function(D,v){if(v.length!==D.length)throw Error("Hf");return v.reduce(function(h,a,Q){h[D[Q]]=a;return h},{})};
FjO=function(D){var v=D.filter(function(Q){var G;return(Q==null?void 0:(G=Q.transferEntity)==null?void 0:G.transferState)==="TRANSFER_STATE_COMPLETE"}).length,h=D.filter(function(Q){var G;
return(Q==null?void 0:(G=Q.transferEntity)==null?void 0:G.transferState)==="TRANSFER_STATE_FAILED"}).length,a=D.filter(function(Q){var G;
return(Q==null?void 0:(G=Q.transferEntity)==null?void 0:G.transferState)&&Cl4.includes(Q.transferEntity.transferState)});
if(!(v||a!=null&&a.length))return 0;v=_.oG8(a)+v;D=D.length-h;return D===0?0:Math.round(v*100/D)/100};
_.oG8=function(D){var v=[];v=v.concat.apply(v,_.j_(D.filter(function(G){return G.streamEntity}).map(function(G){var x=Object.assign({},G.streamEntity),f,C=(f=G.transferEntity)==null?void 0:f.transferState;
x.streamsProgress=x.streamsProgress||[];x.streamsProgress=x.streamsProgress.map(function(U){var L=Object.assign({},U);L.numBytesDownloaded=C==="TRANSFER_STATE_COMPLETE"?U.numTotalBytes:U.numBytesDownloaded;return L});
return x}).map(function(G){return G.streamsProgress})));
var h=D=0;v=_.P(v);for(var a=v.next();!a.done;a=v.next()){var Q=a.value;a=Number(Q.numBytesDownloaded);Q=Number(Q.numTotalBytes);h+=isNaN(a)?0:a;D+=isNaN(Q)?0:Q}return D===0?0:Math.round(h*100/D)/100};
z$I=function(D){if(!D||!D.expirationTimestamp||!D.action)return!1;var v=(0,_.xz)()/1E3;return Number(D.expirationTimestamp)>=v};
Bf=function(D){return D&&D.expirationTimestamp&&D.action?z$I(D)&&D.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.cf=function(D){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(D||"TRANSFER_STATE_UNKNOWN")};
U8A=function(D){var v=new bri;if(D!==void 0){var h=Math.ceil(Math.log2(D.length*4+2)/7);h=h===void 0?2:h;ZU(v,10);v.submessagePosStack.push(v.pos);v.submessagePosStack.push(h);v.pos+=h;E4(v,D.length*1.2);h=Yc4(D,v.buf.subarray(v.pos));v.pos+h>v.buf.length&&(E4(v,h),h=Yc4(D,v.buf.subarray(v.pos)));v.pos+=h;D=v.submessagePosStack.pop();h=v.submessagePosStack.pop();for(var a=v.pos-h-D;D--;){var Q=D?128:0;v.view.setUint8(h++,a&127|Q);a>>=7}}v=new Uint8Array(v.buf.buffer,v.buf.byteOffset,v.pos);return(new TextDecoder("utf-8")).decode(v)};
_.Xh=function(D){var v=0;D=_.P(D);for(var h=D.next(),a={};!h.done;a={transferState$jscomp$3:void 0},h=D.next()){var Q=h.value,G=void 0;h=(G=Q.streamEntity)!=null?G:{};G=void 0;a.transferState$jscomp$3=(G=Q.transferEntity)==null?void 0:G.transferState;G=Q=void 0;((Q=h)==null?0:(G=Q.streamsProgress)==null?0:G.length)&&h.streamsProgress.forEach(function(x){return function(f){f=Number(x.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?f.numTotalBytes:f.numBytesDownloaded);isFinite(f)&&(v+=f)}}(a))}return v};
Lj2=function(D){return D.some(function(v){var h;if(!(v==null?0:(h=v.transferEntity)==null?0:h.transferState)){var a;return!(v==null?0:(a=v.policyEntity)==null?0:a.action)||v.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Cl4.includes(v.transferEntity.transferState)})};
ZHu=function(D,v){if(!v)return!1;if(_.g("of_pb_en_po_ks"))return!0;var h;D=(h=_.gR(D,"offlineVideoPolicy",_.IG(v,"offlineVideoPolicy")))!=null?h:void 0;return!!D&&Bf(D)};
_.IEi=function(D){var v=["TRANSFER_STATE_COMPLETE"];v=v===void 0?EGo:v;return D.filter(function(h){var a,Q;return v.includes((Q=(a=h.transferEntity)==null?void 0:a.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN")})};
gGc=function(D,v){if(v){var h,a=(h=_.gR(D,"playbackData",_.IG(v,"playbackData")))!=null?h:null,Q;h=(Q=_.gR(D,"transfer",_.IG(v,"transfer")))!=null?Q:null;var G;Q=(G=_.gR(D,"offlineVideoStreams",_.IG(v,"offlineVideoStreams")))!=null?G:null;var x;D=(x=_.gR(D,"offlineVideoPolicy",_.IG(v,"offlineVideoPolicy")))!=null?x:null;if(a||h||Q||D)return{playbackDataEntity:a,transferEntity:h,streamEntity:Q,policyEntity:D}}};
_.AA=function(D){var v=D.playbackData;if(!v)return[];var h=[];v=_.P(Object.keys(v));for(var a=v.next();!a.done;a=v.next()){var Q=a.value;if(!kF8(D,_.LG(Q).entityId)&&(a=gGc(D,_.LG(Q).entityId))){var G=void 0,x=void 0;Q=(x=Number((G=_.gR(D,"playbackData",Q))==null?void 0:G.streamDownloadTimestampSeconds))!=null?x:(0,_.xz)();h.push({entity:a,streamDownloadTimestamp:Q})}}return h.sort(function(f,C){var U=f.streamDownloadTimestamp,L=C.streamDownloadTimestamp;return L===U?f.entity.streamEntity&&!C.entity.streamEntity?
1:-1:L-U}).map(function(f){return f.entity})};
Se4=function(D){return _.IEi(_.AA(D))};
_.Jp2=function(D){return _.AA(D).filter(function(v){var h;if(((h=v.policyEntity)==null?0:h.action)&&v.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var a;if((a=v.transferEntity)==null?0:a.transferState){var Q;return Cl4.includes((Q=v.transferEntity)==null?void 0:Q.transferState)}return!0})};
kF8=function(D,v){var h;return((h=_.gR(D,"downloadStatusEntity",_.IG(v,"downloadStatusEntity")))==null?void 0:h.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
piA=function(D){var v;if(D==null?0:(v=D.playbackDataEntity)==null?0:v.key)return _.LG(D.playbackDataEntity.key).entityId;var h;if(D==null?0:(h=D.transferEntity)==null?0:h.key)return _.LG(D.transferEntity.key).entityId;var a;if(D==null?0:(a=D.streamEntity)==null?0:a.key)return _.LG(D.streamEntity.key).entityId;var Q;if(D==null?0:(Q=D.policyEntity)==null?0:Q.key)return _.LG(D.policyEntity.key).entityId};
NeL=function(D){var v=new Set,h;D=(h=D.mainDownloadsListEntity)==null?void 0:h[lEu];var a;if(!(D==null?0:(a=D.downloads)==null?0:a.length))return v;var Q;D==null||(Q=D.downloads)==null||Q.forEach(function(G){(G==null?0:G.videoItem)&&v.add(G.videoItem)});
return v};
qD=function(D,v){if(v){var h=_.gR(D,"mainVideoEntity",_.IG(v,"mainVideoEntity")),a=_.gR(D,"downloadStatusEntity",_.IG(v,"downloadStatusEntity")),Q=_.gR(D,"ytMainChannelEntity",_.IG(v,"ytMainChannelEntity")),G={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};D=gGc(D,v);a=(a==null?void 0:a.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.g("woffle_render_failed_download_state_ks")&&(a==null?void 0:a.downloadState)==="DOWNLOAD_STATE_FAILED";!D&&a&&(D=G);if(D&&h&&
Q)return Object.assign({},{videoEntity:h,channelEntity:Q},D)}};
BeI=function(D,v){return Yec(D,v)==="TRANSFER_STATE_COMPLETE"&&ZHu(D,v)};
cp7=function(D,v){if(!v)return!1;var h;D=(h=_.gR(D,"playbackData",_.IG(v,"playbackData")))!=null?h:void 0;return!!D&&!!D.playerResponseJson};
Yec=function(D,v){if(!v)return"TRANSFER_STATE_UNKNOWN";var h=_.gR(D,"transfer",_.IG(v,"transfer"));if(h){var a;return(a=h.transferState)!=null?a:"TRANSFER_STATE_UNKNOWN"}h=_.gR(D,"offlineOrchestrationActionWrapperEntity",_.IG(v,"offlineOrchestrationActionWrapperEntity"));D=_.gR(D,"mainVideoEntity",_.IG(v,"mainVideoEntity"));return h||D?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Xic=function(D,v){if(!v)return"TRANSFER_STATE_UNKNOWN";if(D=_.gR(D,"transfer",_.IG(v,"transfer"))){var h;return(h=D.transferState)!=null?h:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
ApO=function(D,v){return v&&(D=_.gR(D,"videoPlaybackPositionEntity",_.IG(v,"videoPlaybackPositionEntity")),D==null?0:D.lastPlaybackPositionSeconds)?Number(D.lastPlaybackPositionSeconds):0};
bHc=function(D,v){return qer(D).some(function(h){var a;return(h==null?void 0:(a=h.mainPlaylistEntity)==null?void 0:a.playlistId)===v})};
jAI=function(D,v,h){var a=d8c(D,v);if(!a.length)return[];v=[];a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next()){Q=Q.value;var G=qD(D,Q);h&&Yec(D,Q)!=="TRANSFER_STATE_COMPLETE"||G&&v.push(G)}return v};
d8c=function(D,v){if(!v)return[];var h=_.IG(v,"mainPlaylistEntity"),a;v=(a=D.mainPlaylistEntity)==null?void 0:a[h];a=[];if(v==null||!v.videos)return a;v=_.P(v.videos);for(h=v.next();!h.done;h=v.next()){h=h.value;var Q=void 0,G=void 0,x=void 0,f=(Q=D)==null?void 0:(G=Q.mainPlaylistVideoEntity)==null?void 0:(x=G[h])==null?void 0:x.video;f&&(h=_.LG(f).entityId)&&a.push(h)}return a};
sA4=function(D,v){if(v){var h=_.gR(D,"mainPlaylistEntity",_.IG(v,"mainPlaylistEntity")),a=_.gR(D,"mainPlaylistDownloadStateEntity",_.IG(v,"mainPlaylistDownloadStateEntity"));D=_.gR(D,"ytMainChannelEntity",_.IG(v,"ytMainChannelEntity"));if(a&&h)return Object.assign({},{mainPlaylistEntity:h,mainPlaylistDownloadStateEntity:a},!!D&&{channelEntity:D})}};
qer=function(D){return m87(D).sort(function(v,h){return h.addedTimestampMillis-v.addedTimestampMillis}).map(function(v){return v.downloadedPlaylistEntities})};
m87=function(D){var v=D.mainPlaylistDownloadStateEntity,h=[];if(!v)return h;for(var a=_.P(Object.keys(v)),Q=a.next();!Q.done;Q=a.next()){var G=Q.value;Q=sA4(D,_.LG(G).entityId);var x=void 0;G=Number((x=v[G])==null?void 0:x.addedTimestampMillis);x=isNaN(G)?(0,_.xz)():G;Q!==void 0&&h.push({downloadedPlaylistEntities:Q,addedTimestampMillis:x})}return h};
HHu=function(D){var v,h=(v=D.mainPlaylistVideoEntity)!=null?v:{};return new Set(qer(D).reduce(function(a,Q){a=a===void 0?[]:a;var G,x;Q==null||(G=Q.mainPlaylistEntity)==null||(x=G.videos)==null||x.forEach(function(f){var C;(f=(C=h[f])==null?void 0:C.video)&&a.push(f)});
return a},[]))};
ypu=function(D){return"downloadedMusicPlaylistEntities"in D};
wiL=function(D){return"mainPlaylistEntity"in D&&"mainPlaylistDownloadStateEntity"in D};
e$q=function(D){return"videoEntity"in D&&"channelEntity"in D};
nGI=function(D){var v=D.musicPlaylistDownloadMetadataEntity,h=[];if(!v)return h;for(var a=_.P(Object.keys(v)),Q=a.next();!Q.done;Q=a.next()){Q=Q.value;a:{var G=D,x=_.LG(Q).entityId;if(x){var f=_.gR(G,"musicPlaylist",_.IG(x,"musicPlaylist"));G=_.gR(G,"musicPlaylistDownloadMetadataEntity",_.IG(x,"musicPlaylistDownloadMetadataEntity"));if(f&&G){f={musicPlaylistEntity:f,musicPlaylistDownloadStateEntity:G};break a}}f=void 0}G=void 0;Q=Number((G=v[Q])==null?void 0:G.addedTimestampMillis);Q=isNaN(Q)?(0,_.xz)():
Q;f!==void 0&&h.push({downloadedMusicPlaylistEntities:f,addedTimestampMillis:Q})}return h};
OH8=function(D){var v=new Set;D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,"musicPlaylistEntity"in h&&"musicPlaylistDownloadStateEntity"in h){h=_.P(h.musicPlaylistEntity.tracks);for(var a=h.next();!a.done;a=h.next())v.add(a.value)}return v};
Kjr=function(D,v){if(v){var h=_.gR(D,"musicTrack",_.IG(v,"musicTrack")),a=_.gR(D,"musicArtist",_.IG(v,"musicArtist"))||{};if((D=gGc(D,v))&&h&&a)return Object.assign({},{musicTrackEntity:h,musicArtistEntity:a},D)}};
Teu=function(D){var v=D.musicTrackDownloadMetadataEntity,h=[];if(!v)return[];v=_.P(Object.keys(v));for(var a=v.next();!a.done;a=v.next()){var Q=a.value;a=Kjr(D,_.LG(Q).entityId);var G=void 0;Q=Number((G=_.gR(D,"musicTrackDownloadMetadataEntity",Q))==null?void 0:G.addedTimestampMillis);G=isNaN(Q)?(0,_.xz)():Q;a!==void 0&&h.push({downloadedMusicEntities:a,addedTimestampMillis:G})}return h};
WjA=function(D,v){if(!v)return[];if(Object.values(R$o).includes(v))return iHc(D,v);v=_.IG(v,"musicPlaylist");var h;D=(h=D.musicPlaylist)==null?void 0:h[v];h=[];if(D==null||!D.tracks)return h;D=_.P(D.tracks);for(v=D.next();!v.done;v=D.next())(v=_.LG(v.value).entityId)&&h.push(v);return h};
iHc=function(D,v){var h=new Set,a=nGI(D).map(function(G){return G.downloadedMusicPlaylistEntities});
a=OH8(a);a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next())(Q=_.LG(Q.value).entityId)&&h.add(Q);return thi(D).downloadedMusicEntities.filter(function(G){var x;if((x=G.musicTrackEntity)!=null&&x.videoId){G=G.musicTrackEntity;if(x=v==="PPOM"?!0:!h.has(G.videoId))b:switch(G=G.musicVideoType,v){case "PPSE":x=G==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:x=G!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}G=x}else G=!1;return G}).map(function(G){var x;
return(x=G.musicTrackEntity)==null?void 0:x.videoId})};
thi=function(D){var v=Teu(D).sort(function(h,a){return a.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return"downloadedMusicEntities"in h?h.downloadedMusicEntities:ypu(h)?h.downloadedMusicPlaylistEntities:{}});
D=nGI(D).sort(function(h,a){return a.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return"downloadedMusicEntities"in h?h.downloadedMusicEntities:ypu(h)?h.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:v,downloadedMusicPlaylistEntities:D}};
uq7=function(D,v){v=_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?WjA(D,v):d8c(D,v);if(!v.length)return"TRANSFER_STATE_UNKNOWN";v=v.map(function(h){return Xic(D,h)});
return rp7(v)};
rp7=function(D){var v=new Set(D);if(v.has("TRANSFER_STATE_FAILED")&&v.size===1)return"TRANSFER_STATE_FAILED";v.delete("TRANSFER_STATE_FAILED");if(v.has("TRANSFER_STATE_UNKNOWN")&&v.size===1)return"TRANSFER_STATE_PRE_TRANSFER";v.delete("TRANSFER_STATE_UNKNOWN");if(v.has("TRANSFER_STATE_PRE_TRANSFER")&&v.size===1||v.size===0)return"TRANSFER_STATE_PRE_TRANSFER";D=v.has("TRANSFER_STATE_TRANSFERRING");v=v.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return D||v?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
b0=function(D){var v=D.mainVideoDownloadStateEntity,h=[];if(!v)return[];v=_.P(Object.keys(v));for(var a=v.next();!a.done;a=v.next()){var Q=a.value;if(!kF8(D,_.LG(Q).entityId)){a=qD(D,_.LG(Q).entityId);var G=void 0,x=void 0;Q=(x=Number((G=_.gR(D,"mainVideoDownloadStateEntity",Q))==null?void 0:G.addedTimestampMillis))!=null?x:(0,_.xz)();a!==void 0&&h.push({downloadedVideoEntities:a,addedTimestampMillis:Q})}}return h};
Dyc=function(D){return b0(D).sort(function(v,h){return h.addedTimestampMillis-v.addedTimestampMillis}).map(function(v){return v.downloadedVideoEntities})};
_.hFO=function(D){var v=HHu(D),h=_.dR(D),a=NeL(D),Q=b0(D).filter(function(x){var f,C;if((x==null?void 0:(f=x.downloadedVideoEntities)==null?void 0:(C=f.transferEntity)==null?void 0:C.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var U,L;x=x==null?void 0:(U=x.downloadedVideoEntities)==null?void 0:(L=U.videoEntity)==null?void 0:L.key;return _.g("kevlar_use_library_entity")?x&&(a.has(x)||h[x]):x&&!v.has(x)}),G=m87(D).filter(function(x){return uq7(D,x.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.j_(Q),_.j_(G)).sort(function(x,f){return f.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return vmc(x)})};
aLI=function(D,v){if(v&&ZHu(D,v)){var h,a,Q=(a=(h=_.gR(D,"playbackData",_.IG(v,"playbackData")))!=null?h:void 0)==null?void 0:a.playerResponseJson;if(Q){try{var G=JSON.parse(Q);var x=_.gR(D,"transfer",_.IG(v,"transfer")),f=ApO(D,v);f&&(G=Object.assign({},G,{playerConfig:Object.assign({},G.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+f*1E3}}})}));G.cotn=x==null?void 0:x.cotn}catch(C){}return G}}};
_.Ql8=function(D){var v,h,a;D=(a=(h=((v=D.downloadsPageViewConfigurationEntity)!=null?v:{})[_.jq])==null?void 0:h.smartDownloadsOptInBannerVisibility)!=null?a:{};var Q;return(Q=_.k(D,$yI))!=null?Q:{}};
_.dR=function(D){var v,h,a;D=(a=(h=((v=D.mainDownloadsListEntity)!=null?v:{})[_.G4I])==null?void 0:h.downloads)!=null?a:[];v={};h=_.P(D);for(a=h.next();!a.done;a=h.next())D=void 0,v[(D=a.value.videoItem)!=null?D:""]=!0;return v};
Vk8=function(D){var v=_.dR(D);if(Object.keys(v).length===0)return!1;var h=D.mainVideoEntity;if(!h)return!0;h=_.P(Object.keys(h));for(var a=h.next();!a.done;a=h.next()){a=a.value;var Q=_.LG(a).entityId;if(v[a]&&!kF8(D,Q))return!1}return!0};
_.s4=function(D){var v=_.dR(D);return b0(D).sort(function(h,a){return h.addedTimestampMillis-a.addedTimestampMillis}).map(function(h){return h.downloadedVideoEntities}).filter(function(h){var a;
return(h=h==null?void 0:(a=h.videoEntity)==null?void 0:a.key)&&!!v[h]})};
_.xyo=function(D){var v,h,a;D=(a=(h=((v=D.downloadsPageViewConfigurationEntity)!=null?v:{})[_.jq])==null?void 0:h.downloadsUpsellBannerVisibility)!=null?a:{};var Q;return(Q=_.k(D,Pei))!=null?Q:{}};
vmc=function(D){return"downloadedVideoEntities"in D?D.downloadedVideoEntities:"downloadedPlaylistEntities"in D?D.downloadedPlaylistEntities:{}};
Mki=function(D){var v=_.dR(D),h=HHu(D),a=b0(D).filter(function(Q){var G,x;return(Q=Q==null?void 0:(G=Q.downloadedVideoEntities)==null?void 0:(x=G.videoEntity)==null?void 0:x.key)&&!v[Q]&&!h.has(Q)});
D=m87(D);return[].concat(_.j_(a),_.j_(D)).sort(function(Q,G){return G.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return vmc(Q)})};
_.m6=function(D){if(!_.g("kevlar_use_library_entity"))return Mki(D);var v=b0(D).filter(function(a){var Q,G;if(Q=a=a==null?void 0:(Q=a.downloadedVideoEntities)==null?void 0:(G=Q.videoEntity)==null?void 0:G.key){var x,f,C;Q=((f=(x=D.mainDownloadsListEntity)==null?void 0:x[lEu])==null?0:(C=f.downloads)==null?0:C.length)?NeL(D).has(a):!1}return Q}),h=m87(D);
return[].concat(_.j_(v),_.j_(h)).sort(function(a,Q){return Q.addedTimestampMillis-a.addedTimestampMillis}).map(function(a){return vmc(a)})};
fLi=function(D){var v=_.dR(D),h=HHu(D);return Dyc(D).filter(function(a){var Q;return(a=a==null?void 0:(Q=a.videoEntity)==null?void 0:Q.key)&&!v[a]&&!h.has(a)})};
Ce2=function(D){if(!_.g("kevlar_use_library_entity"))return fLi(D);var v=_.dR(D),h=NeL(D);return Dyc(D).filter(function(a){var Q;return(a=a==null?void 0:(Q=a.videoEntity)==null?void 0:Q.key)&&!v[a]&&h.has(a)})};
omi=function(D,v){v=_.IG(v,"settingEntity");var h,a,Q;return!!((Q=(a=((h=D.settingEntity)!=null?h:{})[v])==null?void 0:a.settingOptionValue)!=null?Q:{}).boolValue};
_.Hf=function(D){var v=_.s4(D);if(Lj2(v))return 0;var h=[];v=_.P(v);for(var a=v.next();!a.done;a=v.next()){a=a.value;var Q=void 0,G=void 0;if((Q=a)==null?0:(G=Q.videoEntity)==null?0:G.key)Q=_.LG(a.videoEntity.key).entityId,a=D,Q=_.IG(Q,"mainVideoDownloadStateEntity"),a=_.gR(a,"mainVideoDownloadStateEntity",Q),(a=Number(a==null?void 0:a.addedTimestampMillis))&&h.push(a)}return Math.max.apply(Math,_.j_(h))};
_.y_=function(D){return D.ui.richGridMiniMode};
_.wR=function(D){return D.ui.richGridItemsPerRow};
_.Fqi=function(D){return D.ui.richGridSlimItemsPerRow};
_.zFc=function(D){return D.ui.guideIsExpanded};
_.eq=function(D){return D.ui.miniplayerIsActive};
Uyu=function(D){return D.ui.singleOptionSurveyIsActive};
_.nG=function(D){var v;return((v=D.ui)==null?void 0:v.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.Lqo=function(D){return _.nG(D)==="WEB_PAGE_TYPE_WATCH"};
_.Zh7=function(D){return _.nG(D)==="WEB_PAGE_TYPE_SHORTS"};
_.Emq=function(D){return D.ui.inlinePreviewIsActive};
_.ILr=function(D){return D.ui.inlinePreviewIsEnabled};
_.gmL=function(D){return D.ui.miniplayerPlaybackState};
_.O4=function(D){return D.ui.isOnline};
_.k4L=function(D){return D.ui.frostedGlassMode};
_.KG=function(D,v){return Yec(D.entities,v)};
_.Ta=function(D,v){return uq7(D.entities,v)};
SHr=function(D,v){var h;if(v){var a;D=(a=_.gR(D.entities,"offlineVideoPolicy",_.IG(v,"offlineVideoPolicy")))==null?void 0:a.action}else D=void 0;return(h=D)!=null?h:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
JUi=function(D,v){var h;v?(D=_.gR(D.entities,"offlineVideoPolicy",_.IG(v,"offlineVideoPolicy")),D=Number(D==null?void 0:D.expirationTimestamp)):D=void 0;return(h=D)!=null?h:0};
_.pCu=function(D){return _.AA(D.entities).length};
lLf=function(D,v){return qD(D.entities,v)};
Nh4=function(D,v){return sA4(D.entities,v)};
RG=function(D,v){return(D=qD(D.entities,v))?_.oG8([D]):0};
_.YHr=function(D,v){var h=_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(h){var a=D.entities;var Q=WjA(a,v);if(Q.length){var G=[];Q=_.P(Q);for(var x=Q.next();!x.done;x=Q.next())(x=Kjr(a,x.value))&&G.push(x);a=G}else a=[]}else a=jAI(D.entities,v);var f;if(h){var C=D.entities;v?(v=_.IG(v,"musicPlaylist"),C=(f=C.musicPlaylist)==null?void 0:f[v],f=C!=null&&C.tracks?C.tracks.length:0):f=0}else f=D.entities,v?(v=_.IG(v,"mainPlaylistEntity"),f=(C=f.mainPlaylistEntity)==null?void 0:C[v],f=f!=null&&f.videos?
f.videos.length:0):f=0;return a.length!==f?0:a?FjO(a):0};
_.Bhf=function(D){return D.download.isLeaderTab};
_.cUu=function(D,v,h){if(!v&&h){var a=D.entities;if(h){var Q=U8A(h),G,x;v=(x=(G=_.gR(a,"offlineabilityEntity",_.IG(Q,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?x:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else v="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else G=D.entities,v?(x=U8A(v),v=(Q=(a=_.gR(G,"offlineabilityEntity",_.IG(x,"offlineabilityEntity")))==null?void 0:a.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):v="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return v};
XCI=function(D,v){D=D.entities;if(v){v=U8A(v);var h,a;v=(a=(h=_.gR(D,"offlineabilityEntity",_.IG(v,"offlineabilityEntity")))==null?void 0:h.addToOfflineButtonState)!=null?a:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else v="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return v};
_.AUL=function(D){var v=D.entities;D=_.O4(D);var h=omi(v,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.g("kevlar_modern_downloads_page")&&h)var a=!1;else{var Q,G;v=(G=(Q=((a=v.downloadsPageViewConfigurationEntity)!=null?a:{})[_.jq])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?G:{};a=D?!!v.visibleWithConnection:!!v.visibleWithoutConnection}return a};
_.qH4=function(D){return omi(D.entities,"SMART_DOWNLOADS_ENABLED")};
_.bh4=function(D){return Vk8(D.entities)};
dyr=function(D){return _.s4(D.entities).every(function(v){var h;return(v==null?void 0:(h=v.transferEntity)==null?void 0:h.transferState)&&!Cl4.includes(v.transferEntity.transferState)})};
_.jl7=function(D){var v,h,a,Q=(a=(h=((v=D.entities.downloadsPageViewConfigurationEntity)!=null?v:{})[_.jq])==null?void 0:h.downloadsUpsellBannerVisibility)!=null?a:{};return _.O4(D)?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection};
_.slL=function(D,v){return kF8(D.entities,v)};
myi=function(D,v){if(v){var h,a;D=(a=(h=_.gR(D.entities,"downloadStatusEntity",_.IG(v,"downloadStatusEntity")))==null?void 0:h.downloadState)!=null?a:"DOWNLOAD_STATE_UNKNOWN"}else D="DOWNLOAD_STATE_UNKNOWN";return D};
i0=function(D,v){return ApO(D.entities,v)};
eF2=function(D){D=Hh8(D);var v=D.hours===void 0?0:D.hours,h=D.minutes===void 0?0:D.minutes,a=D.seconds===void 0?0:D.seconds,Q=v>0;D=[];Q&&(v=yUu(v),D.push(v));v=Q;v=v===void 0?!1:v;h=(["af","be","lt"].includes(Wf)||v)&&h<10?wCc().format(h):(new Intl.NumberFormat("en-u-nu-latn")).format(h);D.push(h);h=wCc().format(a);D.push(h);h=":";"da fi id si sr sr-Latn".split(" ").includes(Wf)&&(h=".");return D.join(h)};
_.Ohc=function(D){D=Hh8(D);var v=D.hours===void 0?0:D.hours,h=D.minutes===void 0?0:D.minutes,a=D.seconds===void 0?0:D.seconds;D=[];if(v>0){var Q=nmf().format({hours:v});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Wf)||v>9999)Q=Q.replace(v.toString(),yUu(v)),Wf==="km"&&(Q=Q.replace(".",","));D.push(Q)}h>0&&D.push(nmf().format({minutes:h}));a>0&&D.push(nmf().format({seconds:a}));v="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");h=Wf=="am"?"{0}\u1363 ":Wf=="fa"?"{0}\u060c\u200f ":
Wf=="my"?"{0} - ":Wf=="ne"?"{0},":Wf=="th"?"{0} ":Wf=="ur"?"{0}\u060c ":Wf=="ar"||Wf=="ar-XB"?"{0} \u0648":Wf=="ja"||Wf=="zh-CN"||Wf=="zh-HK"||Wf=="zh-TW"?"{0}\u3001":"{0}, ";a=Wf=="am"?"\u1363 ":Wf=="fa"?"\u060c\u200f ":Wf=="my"?" - ":Wf=="th"?" ":Wf=="ur"?"\u060c ":Wf=="ar"||Wf=="ar-XB"?" \u0648":Wf=="ja"||Wf=="zh-CN"||Wf=="zh-HK"||Wf=="zh-TW"?"\u3001":", ";Q=Wf=="am"?" \u12a5\u1293 {0}":Wf=="as"?" \u0986\u09f0\u09c1 {0}":Wf=="az"?" v\u0259 {0}":Wf=="bn"?" \u098f\u09ac\u0982 {0}":Wf=="cs"?" a\u00a0{0}":
Wf=="de"?" und {0}":Wf=="el"?" \u03ba\u03b1\u03b9 {0}":Wf=="eu"?" eta {0}":Wf=="fa"?"\u060c \u0648 {0}":Wf=="fil"?", at {0}":Wf=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Wf=="hi"?", \u0914\u0930 {0}":Wf=="hu"?" \u00e9s {0}":Wf=="hy"?" \u0587 {0}":Wf=="id"?", dan {0}":Wf=="iw"?" \u05d5-{0}":Wf=="ja"?"\u3001{0}":Wf=="ka"?" \u10d3\u10d0 {0}":Wf=="km"?" \u1793\u17b7\u1784 {0}":Wf=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Wf=="ko"?" \ubc0f {0}":Wf=="ky"?" \u0436\u0430\u043d\u0430 {0}":Wf=="lt"?" ir {0}":Wf==
"lv"?" un {0}":Wf=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Wf=="mr"?" \u0906\u0923\u093f {0}":Wf=="ms"?" dan {0}":Wf=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Wf=="ne"?" \u0930 {0}":Wf=="or"?", \u0b13 {0}":Wf=="pa"?" \u0a05\u0a24\u0a47 {0}":Wf=="ro"?" \u0219i {0}":Wf=="si"?", \u0dc3\u0dc4 {0}":Wf=="sk"?" a {0}":Wf=="sl"?" in {0}":Wf=="sq"?" dhe {0}":Wf=="sv"?" och {0}":Wf=="sw"?" na {0}":Wf=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Wf=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Wf=="th"?" \u0e41\u0e25\u0e30{0}":Wf=="tr"?" ve {0}":Wf=="ur"?"\u060c \u0627\u0648\u0631 {0}":Wf=="uz"?" va {0}":Wf=="vi"?" v\u00e0 {0}":Wf=="zh-HK"?"\u53ca{0}":Wf=="zu"?", ne-{0}":Wf=="af"||Wf=="nl"?" en {0}":Wf=="ar"||Wf=="ar-XB"?" \u0648{0}":Wf=="be"||Wf=="uk"?" \u0456 {0}":Wf=="en-GB"||Wf=="en-IN"?" and {0}":Wf=="en"||Wf=="en-XA"?", and {0}":Wf=="et"||Wf=="fi"?" ja {0}":Wf=="fr"||Wf=="fr-CA"?" et {0}":Wf=="zh-CN"||Wf=="zh-TW"?"\u548c{0}":Wf=="da"||Wf=="is"||Wf=="no"?" og {0}":Wf=="es"||Wf=="es-419"||
Wf=="es-US"?" y {0}":Wf=="kk"||Wf=="lo"||Wf=="mn"?", {0}":Wf=="bg"||Wf=="mk"||Wf=="ru"||Wf=="sr"?" \u0438 {0}":Wf=="gl"||Wf=="it"||Wf=="pt-BR"||Wf=="pt-PT"?" e {0}":" i {0}";var G=Wf=="am"?"{0} \u12a5\u1293 {1}":Wf=="as"?"{0} \u0986\u09f0\u09c1 {1}":Wf=="az"?"{0} v\u0259 {1}":Wf=="bn"?"{0} \u098f\u09ac\u0982 {1}":Wf=="de"?"{0} und {1}":Wf=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Wf=="eu"?"{0} eta {1}":Wf=="fa"?"{0} \u0648 {1}":Wf=="fil"?"{0} at {1}":Wf=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Wf=="hi"?"{0} \u0914\u0930 {1}":
Wf=="hu"?"{0} \u00e9s {1}":Wf=="hy"?"{0} \u0587 {1}":Wf=="iw"?"{0} \u05d5-{1}":Wf=="ja"?"{0}\u3001{1}":Wf=="ka"?"{0} \u10d3\u10d0 {1}":Wf=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Wf=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Wf=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Wf=="ko"?"{0} \ubc0f {1}":Wf=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Wf=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Wf=="lt"?"{0} ir {1}":Wf=="lv"?"{0} un {1}":Wf=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Wf=="mn"?"{0}, {1}":Wf==
"mr"?"{0} \u0906\u0923\u093f {1}":Wf=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Wf=="ne"?"{0} \u0930 {1}":Wf=="or"?"{0} \u0b13 {1}":Wf=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Wf=="ro"?"{0} \u0219i {1}":Wf=="si"?"{0} \u0dc3\u0dc4 {1}":Wf=="sl"?"{0} in {1}":Wf=="sq"?"{0} dhe {1}":Wf=="sv"?"{0} och {1}":Wf=="sw"?"{0} na {1}":Wf=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Wf=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Wf=="th"?"{0}\u0e41\u0e25\u0e30{1}":Wf=="tr"?"{0} ve {1}":Wf=="ur"?
"{0} \u0627\u0648\u0631 {1}":Wf=="uz"?"{0} va {1}":Wf=="vi"?"{0} v\u00e0 {1}":Wf=="zh-HK"?"{0}\u53ca{1}":Wf=="zu"?"{0} ne-{1}":Wf=="af"||Wf=="nl"?"{0} en {1}":Wf=="ar"||Wf=="ar-XB"?"{0} \u0648{1}":Wf=="be"||Wf=="uk"?"{0} \u0456 {1}":Wf=="cs"||Wf=="sk"?"{0} a\u00a0{1}":Wf=="et"||Wf=="fi"?"{0} ja {1}":Wf=="fr"||Wf=="fr-CA"?"{0} et {1}":Wf=="id"||Wf=="ms"?"{0} dan {1}":Wf=="zh-CN"||Wf=="zh-TW"?"{0}\u548c{1}":Wf=="da"||Wf=="is"||Wf=="no"?"{0} og {1}":Wf=="es"||Wf=="es-419"||Wf=="es-US"?"{0} y {1}":Wf==
"bg"||Wf=="mk"||Wf=="ru"||Wf=="sr"?"{0} \u0438 {1}":Wf=="en"||Wf=="en-GB"||Wf=="en-IN"||Wf=="en-XA"?"{0} and {1}":Wf=="gl"||Wf=="it"||Wf=="pt-BR"||Wf=="pt-PT"?"{0} e {1}":"{0} i {1}";Wf==="sq"?(Q=Q.replace("dhe","e"),G=G.replace("dhe","e")):Wf==="th"?(a=a.replace("{0}"," {0}"),G=G.replace("{0}","{0} "),G=G.replace("{1}"," {1}")):Wf==="ne"?a=",":Wf==="zh-CN"?a="":v.includes(Wf)&&(a=" ");return D.length<2?D.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(Wf)?
D.length===2?G.replace("{0}",D[0]).replace("{1}",D[1]):h.replace("{0}",D[0])+D.slice(1,-1).join(a)+Q.replace("{0}",D[D.length-1]):D.join(a)};
Hh8=function(D){var v=D.hours||0,h=D.minutes||0,a=D.seconds||0;v=a+h*60+v*3600+(D.days||0)*86400+(D.weeks||0)*604800+(D.months||0)*2629800+(D.years||0)*31557600;if(v<=0)return{hours:0,minutes:0,seconds:0};D=v;v=Math.floor(D/3600);D%=3600;h=Math.floor(D/60);a=Math.floor(D%60);return{hours:v,minutes:h,seconds:a}};
yUu=function(D){D=(new Intl.NumberFormat("en-u-nu-latn")).format(D);var v=["fr"],h="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(Wf)?D.replace(",","\u00a0"):v.includes(Wf)?D.replace(",","\u202f"):h.includes(Wf)?D.replace(",","."):D};
wCc=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
nmf=function(){Kqc||(tA=Thc,Kqc=new RFi);return Kqc};
iho=function(D){try{return(new _.rR(5)).format(D)}catch(v){}};
u0=function(D){return{thumbnailOverlayDownloadingRenderer:{state:D}}};
Wqq=function(D){if(D=iho(D))return{thumbnailOverlaySidePanelRenderer:{text:_.MD(D),icon:{iconType:"PLAYLISTS"}}}};
tk4=function(){var D=_.p1("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.MD(D),icon:{iconType:"PLAY_ALL"}}}};
rUq=function(D){D=_.D6(D,2);return Wf!=="ru"&&Wf!=="es_419"&&Wf!=="es-419"&&Wf!=="es"&&Wf!=="es_US"&&Wf!=="es-US"&&Wf!=="fr"&&Wf!=="pl"&&Wf!=="it"&&Wf!=="nl"&&Wf!=="uk"&&Wf!=="fr_CA"&&Wf!=="fr-CA"||D===""?D:D[0].toLocaleUpperCase()+D.substring(1)};
Dvc=function(D){return function(v){var h=D(),a=_.D6(v,h.dateFormat);v=_.D6(v,h.timeFormat);var Q=uQf.DATETIMEFORMATS[h.joinerStyle];Q=Q.replace(/'(?!')/g,"");Q=Q.replace("{0}",v);Q=Q.replace("{1}",a);return h.capitalize(Q)}};
vk8=function(D){return D?typeof D.seconds==="string"&&(D.nanos===void 0||typeof D.nanos==="number"):!1};
h7L=function(D){return new Date(Number(D.seconds)*1E3+(D.nanos||0)*1E-6)};
_.D6=function(D,v){if(typeof D.getTime==="function")D={date:D};else if(vk8(D))D={date:h7L(D)};else if(typeof vk8(D.timestamp)&&typeof D.i18nInternalSecondsEastOfUtc==="number")D={date:h7L(D.timestamp),timeZone:vR(-D.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(D));var h=D;D=h.date;h=h.timeZone;v=azo(v).format(D,h);Wf==="zh-TW"&&(D=h?Number(azo("H").format(D,h)):D.getHours(),v=D<5?v.replace("\u4e0a\u5348","\u51cc\u6668"):D<8?v.replace("\u4e0a\u5348","\u65e9\u4e0a"):D<12?
v.replace("\u4e0a\u5348","\u4e0a\u5348"):D<13?v.replace("\u4e0b\u5348","\u4e2d\u5348"):D<19?v.replace("\u4e0b\u5348","\u4e0b\u5348"):v.replace("\u4e0b\u5348","\u665a\u4e0a"));return v};
azo=function(D){if($v4.has(D))return $v4.get(D);var v=QYi(D);v=GAI(v);Vd7!==!0&&(Vd7=!0);PtI=!0;PtI=!1;v=new hQ(v,uQf);$v4.set(D,v);return v};
QYi=function(D){return(new hQ(D,uQf)).patternParts_.map(function(v){return v.type===0?"'"+v.text+"'":v.text}).join("")};
GAI=function(D){return Wf==="en"||Wf==="es_US"||Wf==="es-US"?D:D.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(v,h,a){return"H".repeat(h.length)+a})};
z72=function(D,v){xv2||(tA=Thc,xv2=new MdO);var h=xv2;a:if(D=fzo(D),v=fzo(v||new Date),D>v)h=D.getTime()-v.getTime()>6048E5?_.D6(D,1):CtO(D);else{for(var a=0;okL(D,12*(a+1))<v;)++a;if(a>0)h=h.format(-a,0);else{for(a=0;okL(D,a+1)<v;)++a;if(a>0)h=h.format(-a,2);else{D=v.getTime()-D.getTime();v=_.P(FZ4);for(a=v.next();!a.done;a=v.next()){a=a.value;var Q=a.unit,G=Math.floor(D/a.unitDuration);if(G>=(a.threshold===void 0?1:a.threshold)){h=h.format(-G,Q);break a}}h=h.format(-0,7)}}}return h};
fzo=function(D){if(typeof D.getTime==="function")return D;if(vk8(D))return h7L(D);throw Error("Jf`"+JSON.stringify(D));};
okL=function(D,v){for(var h=0,a;;++h)if(a=new Date(D.getFullYear(),D.getMonth()+v,D.getDate()-h,D.getHours(),D.getMinutes(),D.getSeconds()),a.getMonth()===(D.getMonth()+v)%12)return a};
_.aX=function(D){return{runs:[{text:D}]}};
_.$V=function(D){if(D&&D.simpleText)return D.simpleText;var v="";if(D&&D.runs)for(var h=0;h<D.runs.length;h++)D.runs[h].text&&(v+=D.runs[h].text);return v};
LZu=function(D,v,h,a){return D.videoEntity&&!D.policyEntity&&h!=="DOWNLOAD_STATE_FAILED"?[u0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Bf(D.policyEntity)&&v!=="TRANSFER_STATE_FAILED"&&v!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?v==="TRANSFER_STATE_PAUSED_BY_USER"?[u0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.cf(v)?[u0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:D.videoEntity.lengthSeconds?UvL(D.videoEntity.lengthSeconds,a):[]:
[u0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
UvL=function(D,v){var h=[{thumbnailOverlayTimeStatusRenderer:{text:_.MD(eF2({seconds:D})),style:"DEFAULT"}}];v&&(D=v<=0||D<=0?0:v>=D?100:Math.ceil(v*100/D),D>0&&h.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:D}}));return h};
Ze8=function(D,v,h,a,Q){if(v==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(_.cf(v)||v==="TRANSFER_STATE_PRE_TRANSFER")var G=[u0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var x,f;if(v==="TRANSFER_STATE_COMPLETE"&&((x=D.mainPlaylistEntity)==null?0:(f=x.videos)==null?0:f.length)){if(_.g("web_modern_collections_v2")){var C;var U=(G=D.mainPlaylistEntity)==null?void 0:(C=G.videos)==null?void 0:C.length;G=(G=iho(U))?{thumbnailOverlayBottomPanelRenderer:{text:_.MD(G),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var L;G=Wqq((U=D.mainPlaylistEntity)==null?void 0:(L=U.videos)==null?void 0:L.length)}var Z;G=[tk4(),Object.assign({},(Z=G)!=null?Z:{})]}else G=[]}Z=G;a:if(v==="TRANSFER_STATE_PRE_TRANSFER")h=fG(_.p1("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(v==="TRANSFER_STATE_TRANSFER_IN_QUEUE")h=fG(_.p1("WAITING_TO_DOWNLOAD"));else if(_.cf(v))h=Math.floor(h*100).toString(),h=fG(_.p1("DOWNLOADING_PERCENT",{percent:h},"Downloading... "+h+"%"));else{if(a&&(_.g("playlist_is_offline_selector_killswitch")&&
(Q=_.xd().resolve(_.ra).isNetworkAvailable()),Q)){h=kXA(_.p1("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),IQ4(a));break a}h=void 0}v=v==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.p1("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},Z.length?{thumbnailOverlays:Z}:{},h?{viewPlaylistText:h}:{viewPlaylistText:_.aX("")},v.length?{badges:v}:{})};
Ek7=function(D,v,h,a,Q,G){if(v==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(a==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var x=LZu(D,v,a);if(D.videoEntity&&!D.policyEntity&&a!=="DOWNLOAD_STATE_FAILED"){var f=_.p1("WAITING_TO_DOWNLOAD");if(f)return{shortViewCountText:_.aX(f),publishedTimeText:void 0,thumbnailOverlays:x}}if(!Bf(D.policyEntity)){G=D.policyEntity&&!z$I(D.policyEntity)?_.p1("DOWNLOAD_EXPIRED",{},"Download expired"):
_.p1("TRANSFER_FAILED",{},"Download failed");var C;if((C=D.policyEntity)==null?0:C.shortMessageForDisabledAction)G=D.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:fG(G),publishedTimeText:void 0,thumbnailOverlays:x}}if(v==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.aX(_.p1("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:x};if(v==="TRANSFER_STATE_FAILED"||v==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.aX(_.p1("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:x};if(v==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(C=_.p1("WAITING_TO_DOWNLOAD"),a==="DOWNLOAD_STATE_PAUSED"&&(C=_.p1("DOWNLOAD_PAUSED",{},"Download paused")),C))return{shortViewCountText:_.aX(C),publishedTimeText:void 0,thumbnailOverlays:x};if(_.cf(v))return D=Math.floor(h*100).toString(),{shortViewCountText:_.aX(_.p1("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%")),publishedTimeText:void 0,thumbnailOverlays:x};v=void 0;D.videoEntity.publishedTimestampMillis&&
(v=new Date,Q&&(v=new Date(Q)),v=fG(z72(new Date(Number(D.videoEntity.publishedTimestampMillis)),v)));Q=[];_.g("kevlar_woffle_badge_killswitch")||(Q=[{metadataBadgeRenderer:{label:_.p1("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var U;D=fG((U=D.videoEntity.localizedStrings)==null?void 0:U.viewCount);return Object.assign({},G?{shortViewCountText:void 0}:{shortViewCountText:D},G?{}:{publishedTimeText:v},{badges:Q,thumbnailOverlays:x})};
rkO=function(D,v){D=D===void 0?_.Izu:D;switch(v.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:v.payload.playlistId,inviteLinkURL:v.payload.inviteLinkUrl};default:return D}};
Dto=function(D,v){D=D===void 0?_.uwi:D;switch(v.type){case "SET_CURRENT_FORM_ID":return v=v.payload.formId,D.currentFormId===v?D:{currentFormId:v,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var h=v.payload;v=h.groupId;h=h.command;if(D.currentFormId){var a=Object.assign({},D.commandsMap);a[v]=h;D=Object.assign({},D,{commandsMap:a})}return D;case "RESET_COMMAND_MAP":return Object.assign({},D,{commandsMap:{}});default:return D}};
hAr=function(D,v){D=D===void 0?_.v$f:D;switch(v.type){case "UPDATE_CANVAS_MODE":return Object.assign({},D,{currentMode:v.payload.currentMode});default:return D}};
$ti=function(D,v){D=D===void 0?_.awI:D;switch(v.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},D,{guideIsExpanded:v.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},D,{scrollAtTop:v.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},D,{guideIsVisibleButNotPersistent:v.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},D,{miniplayerIsActive:v.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},D,{singleOptionSurveyIsActive:v.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},D,{slimlineSurveyRatingSelectedIndex:v.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},D,{richGridMiniMode:v.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},D,{richGridItemsPerRow:v.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},D,{richGridSlimItemsPerRow:v.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},D,{richGridContainerWidth:v.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},D,{richGridStyle:v.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:v.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},D,{inlinePreviewIsActive:v.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},D,{inlinePreviewIsEnabled:v.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},D,{darkModeIsEnabled:v.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
D,{miniplayerPlaybackState:v.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},D,{tabGesturesIsActive:v.payload});case "SET_ONLINE_STATUS":return Object.assign({},D,{isOnline:v.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},D,{chipBarIsSticky:v.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},D,{frostedGlassMode:v.payload});default:return D}};
QSq=function(){return _.g("kevlar_disable_theater_mode_persistence")?!1:_.nJ("START_IN_THEATER_MODE")};
Vuu=function(D,v){D=D===void 0?_.GPi:D;switch(v.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},D,{transcription:v.payload});case "SET_OVERLAY_STATE":return Object.assign({},D,{overlay:v.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return D}};
LpO=function(){return SC(Object.assign({},{continuation:PKL,download:xti,canvas:hAr,reportChannelAbuse:Muo,share:fwO,talkToRecs:CK2,ui:$ti,voiceSearch:Vuu,watch:o$2,ypc:Fpf,shorts:zAL,radioButtonGroup:Dto,collabInviteLink:rkO},Uti))};
Iwq=function(){return _.g("web_player_entities_middleware")?new Qy(LpO(),[ZO4,E$i]):new Qy(LpO(),[ZO4])};
_.Gb=function(){g$I||(g$I=Iwq());return g$I};
kPc=function(D,v,h){if(D.length)return{titleText:_.MD(v!=null?v:_.p1("DOWNLOADS",void 0,"Downloads")),contents:D.map(function(a){var Q=a.videoEntity;a={videoId:Q.videoId,title:fG(Q.title),shortBylineText:fG(a.channelEntity.title),thumbnail:Q.thumbnail};var G=Q.videoId?i0(_.Gb().getState(),Q.videoId):0;Q.videoId&&h?a.navigationEndpoint=_.xZ(Q.videoId,h,void 0,void 0,G):Q.videoId&&(a.navigationEndpoint=EMi(Q.videoId,G,Q.lengthSeconds));Q.lengthSeconds&&(a.thumbnailOverlays=UvL(Q.lengthSeconds,G));return{playlistPanelVideoRenderer:a}}),
totalVideos:D.length}};
Sai=function(D){return(D=(0,_.sV.getValueByKeys)(D,"playlistId"))?{playlistId:D}:null};
JEu=function(){return{}};
p2O=function(D,v){return new _.IB(function(h,a){D.then(function(Q){if(Q){if(Q=v(Q))return h(Q);a()}},a)})};
lwA=function(D){var v,h,a,Q=(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.autoplay)==null?void 0:a.autoplay,G,x,f;v=(G=D.contents)==null?void 0:(x=G.twoColumnWatchNextResults)==null?void 0:(f=x.playlist)==null?void 0:f.playlist;return Q&&v&&v.playlistId?{rawResponse:D,autoplayRenderer:Q,playlistPanelRenderer:v,playlistId:v.playlistId}:null};
Ya2=function(D){var v=v===void 0?"UNKNOWN_INTERFACE":v;if(D.length===1)return D[0];var h=N2I[v];if(h){h=new RegExp(h);for(var a=_.P(D),Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,h.exec(Q))return Q}var G=[];Object.entries(N2I).forEach(function(x){var f=_.P(x);x=f.next().value;f=f.next().value;v!==x&&G.push(f)});
h=new RegExp(G.join("|"));D.sort(function(x,f){return x.length-f.length});
a=_.P(D);for(Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,!h.exec(Q))return Q;return D[0]};
_.xV=function(D){return"/youtubei/v1/"+Ya2(D)};
_.MP=function(D,v){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:D}}},v!==void 0?{durationHintMs:v}:{})}};
_.fq=function(D,v){return _.MP(_.aX(D),v)};
B2O=function(D,v){var h={mode:"NORMAL"};D&&(h.autoplayVideo=D.navigationEndpoint,h.nextButtonVideo=D.navigationEndpoint);v&&(h.previousButtonVideo=v.navigationEndpoint);return h};
AEr=function(D,v,h){if(!h||!h.sets)return{sets:[B2O(D,v)]};var a=h.sets.find(function(x){return x.mode==="NORMAL"}),Q=(0,_.sV.unsafeClone)(h);
if(!a)return Q.sets.push(B2O(D,v)),Q;if(!D)return h;a=_.sV.getValueByKeys.apply(null,[a].concat(_.j_(cEc)));var G=_.sV.getValueByKeys.apply(null,[D].concat(_.j_(X2c)));if(a===G)return h;Q.sets=Q.sets.filter(function(x){return x.mode!=="NORMAL"});
Q.sets.push(B2O(D,v));return Q};
qa2=function(D){return!!D.playlistPanelVideoRenderer&&!D.playlistPanelVideoRenderer.unplayableText};
bOo=function(D){return!!D.playlistPanelVideoRenderer&&!!D.playlistPanelVideoRenderer.title};
dt4=function(D,v){if(v.contents&&!(D>=v.contents.length)&&(D=v.contents.slice(D).find(qa2)))return D.playlistPanelVideoRenderer};
jSA=function(D,v){if(v.contents)return(v=v.contents.find(function(h){return!!h.playlistPanelVideoRenderer&&h.playlistPanelVideoRenderer.videoId===D}))?v.playlistPanelVideoRenderer:void 0};
sS8=function(D,v){return v.contents?v.contents.findIndex(function(h){return!!h.playlistPanelVideoRenderer&&h.playlistPanelVideoRenderer.videoId===D}):-1};
mtq=function(D,v){return v.contents?v.contents.findIndex(function(h){return!!h.playlistPanelVideoRenderer&&h.playlistPanelVideoRenderer.playlistSetVideoId===D}):-1};
HOc=function(D,v){D.contents&&v!==-1&&D.contents.splice(v,1).length===1&&D.totalVideos!==void 0&&(--D.totalVideos,delete D.videoCountText)};
_.yEL=function(D){var v=[];if(!D||!D.contents)return v;D=_.P(D.contents);for(var h=D.next();!h.done;h=D.next())h=h.value,h.playlistPanelVideoRenderer&&h.playlistPanelVideoRenderer.videoId&&v.push(h.playlistPanelVideoRenderer.videoId);return v};
_.w2L=function(D){if(D&&D.contents)return(D=D.contents.find(function(v){return!!v.playlistPanelVideoRenderer&&!!v.playlistPanelVideoRenderer.selected})||D.contents[D.currentIndex])?D.playlistPanelVideoRenderer:void 0};
eAA=function(D,v,h,a,Q,G,x){Q=Q===void 0?!1:Q;G=G===void 0?!1:G;x=x===void 0?!1:x;if(D.contents&&D.contents.length!==0){a&&(D.contents=D.contents.filter(a));a=D.contents.length;for(var f=0;f<a;f++){var C=D.contents[f].playlistPanelVideoRenderer;C&&(f===v?(G&&delete C.menu,C.indexText=_.aX("\u25b6")):Q||D.isInfinite||C.indexText===void 0?delete C.indexText:C.indexText=_.aX((f+1+h).toString()))}D.currentIndex=v+h;x&&(delete D.videoCountText,D.totalVideos=a)}};
_.Cq=function(D){D=n$i(D);if(D){var v=D.length;var h=-98%v;h<0&&(h=v+h);D=D.slice(v-h)+D.slice(0,v-h)}else D="";h="";for(v=0;v<D.length&&D[v]!==OO7;v++)h+=D[v];return h};
_.Kpc=function(D,v){var h=document.body;v=v===void 0?function(f){return f}:v;
var a,Q=null;D=_.P(D);for(a=D.next();!a.done;a=D.next()){var G=a.value;a="div";G[2]&&(a=v(G[2]));a=document.createElement(a);Q||(Q=a);var x=G[0];G=G[1];x&&(a.id=v(x));if(G)for(G=_.P(G),x=G.next();!x.done;x=G.next())a.classList.add(v(x.value));h.appendChild(a);h=a}return[Q,h]};
T2c=function(D,v){for(var h="",a=0;a<v;a++)h+=D.charAt(Math.floor(Math.random()*D.length));return h};
oX=function(D){return T2c("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",D)};
FT=function(D){return T2c("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",D)};
zb=function(D){return T2c("0123456789",D)};
RAI=function(){var D=performance.now(),v=new Date;var h="2."+v.getFullYear()+String(v.getMonth()+1).padStart(2,"0")+String(v.getDate()).padStart(2,"0");for(var a,Q=Math.floor(Math.random()*11)+15,G=[],x=0;x<Q;x++)G.push(Math.floor(Math.random()*26476865)+24547720);a=G.join(",");var f=oX(10),C=oX(100),U=oX(102),L=oX(106),Z=oX(108),E=oX(11),I=oX(1140),S=oX(123),B=oX(14),A=oX(16),d=oX(1900),b=oX(23),W=oX(26),K=oX(34),O=oX(397),R=oX(44),vA=oX(5),f7=oX(72),xL=oX(74),kL=oX(75),Z4=oX(88),S2=oX(91),s8="rr3---sn-ntqe6n76 rr1---sn-q4fzen7y rr5---sn-q4flrnle rr4---sn-q4fl6nsl rr2---sn-q4flrnel rr5---sn-q4flrn7k rr5---sn-hgn7rnls rr4---sn-q4fl6nds rr5---sn-q4flrnlz rr3---sn-q4flrne6 rr2---sn-q4fl6n6y rr2---sn-q4flrnlz rr1---sn-q4fl6nsy rr3---sn-q4fl6nzy rr5---sn-q4fl6nz6 rr4---sn-ntq7yned rr3---sn-q4fl6nsd rr1---sn-ntqe6nel rr1---sn-4g5e6nze rr1---sn-hgn7ynek".split(" ");
var Xf=s8[Math.floor(Math.random()*s8.length)];var dJ=(new Date("2010-01-01")).getTime();var R4=(new Date(dJ+Math.random()*((new Date).getTime()-dJ))).toISOString().split("T")[0];for(var sF,rc=[],I4=0;I4<4;I4++)rc.push(Math.floor(Math.random()*100));sF=rc.join(".");var q1=Number(zb(5)),jt=Number(zb(6)),rr=Number(zb(7)),Zb=Number(zb(9)),VO=zb(1),Pm=zb(10),Yp=zb(16),C3=zb(19),ZJ=zb(2),VK=zb(20),oP=zb(21),rJ=zb(3),o4=zb(4),Hm=zb(5),gr=zb(6),Jb=zb(7),kp=zb(8),E2=zb(9);var hw=T2c("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var NI=[FT(5),FT(5),FT(5)].join("%2C"),nf=[zb(3),zb(5),zb(5)].join("%2C"),W1=FT(0),PW=FT(1),Wm=FT(10),kC=FT(108),aU=FT(11),UM=FT(12),hN=FT(13),gW=FT(14),u9=FT(15),OX=FT(16),$E=FT(17),YL=FT(18),HA=FT(19),Tu=FT(2),L4=FT(20),U2=FT(22),A3=FT(23),YC=FT(24),gJ=FT(266),EF=FT(3),s2=FT(30),g0=FT(34),zy=FT(35),BW=FT(36),Hv=FT(4),w0=FT(40),OY=FT(43),tX=FT(47),Vy=FT(5),wD=FT(6),PR=FT(7),SV=FT(75),tc=FT(8),S$=FT(80),j$=FT(9),xC="https://www."+FT(12)+".com",Fx={},WW={},n0={},uP={},B4={},cY={},Xs={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:a}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:h},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+FT(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:h},{key:"client.name",value:"WEB"},{key:"client.fexp",value:a}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:oP+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+FT(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:w0,ypcGetOfflineUpsellEndpoint:{params:S$}},trackingParams:zy+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&cnr="+ZJ+"&ratebypass=yes&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&c=WEB&txp="+Jb+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:jt,width:640,height:360,lastModified:Yp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Jb,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+nf+"&mn="+
NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&cnr="+ZJ+"&ratebypass=yes&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&c=WEB&txp="+Jb+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+kC+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:jt,width:1280,
height:720,lastModified:Yp,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Jb,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+nf+"&mn="+NI+"&ms="+
NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+E2+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:rr,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:E2,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:rr,approxDurationMs:Jb},{itag:248,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+nf+"&mn="+NI+"&ms="+NI+"&mv="+
PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+E2+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:rr,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:E2,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:rr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:399,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+E2+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:rr,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:E2,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:rr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:136,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+E2+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:rr,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:E2,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:jt,approxDurationMs:Jb},{itag:247,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+nf+"&mn="+
NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+E2+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:rr,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:E2,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:398,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+E2+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:rr,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:E2,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:135,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:jt,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:jt,approxDurationMs:Jb},{itag:244,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+nf+"&mn="+
NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+kC+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:jt,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:397,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:jt,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:134,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:jt,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:jt,highReplication:!0,approxDurationMs:Jb},{itag:243,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:jt,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:396,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:jt,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:133,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:jt,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:jt,approxDurationMs:Jb},{itag:242,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+nf+"&mn="+
NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:jt,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:395,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:jt,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:jt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:160,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:jt,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:q1,approxDurationMs:Jb},{itag:278,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+nf+"&mn="+
NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:jt,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:q1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:394,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&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="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=video%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:q1,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:q1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Jb},{itag:140,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=audio%2Fmp4&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:jt,
initRange:{start:"0",end:"631"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:jt,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Jb,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+
ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=audio%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+Jb+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/webm; codecs="opus"',bitrate:q1,initRange:{start:"0",end:"265"},indexRange:{start:rJ,
end:o4},lastModified:Yp,contentLength:Jb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:q1,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Jb,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=audio%2Fwebm&ns="+
YC+"&gir="+EF+"&clen="+Jb+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/webm; codecs="opus"',bitrate:q1,initRange:{start:"0",end:"265"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:Jb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:q1,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Jb,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Pm+"&ei="+b+"&ip="+sF+"&id=o-AF"+OY+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+nf+"&mn="+NI+"&ms="+NI+"&mv="+PW+"&mvi="+VO+"&pl="+ZJ+"&initcwndbps="+Jb+"&siu="+VO+"&spc="+R+"&vprv="+VO+"&svpuc="+VO+"&mime=audio%2Fwebm&ns="+YC+"&gir="+EF+"&clen="+kp+"&dur="+kp+"&lmt="+Yp+"&mt="+Pm+"&fvip=3&keepalive="+EF+"&c=WEB&txp="+
Jb+"&n="+OX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/webm; codecs="opus"',bitrate:jt,initRange:{start:"0",end:"265"},indexRange:{start:rJ,end:o4},lastModified:Yp,contentLength:kp,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:jt,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Jb,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="+E2+"&docid="+E+"&ei="+b+"&feature="+f+"&fexp="+W1+"&ns="+Tu+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+PW+"&el="+Wm+"&len="+o4+"&of="+U2+
"&uga="+ZJ+"&vm="+gJ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+E2+"&docid="+E+"&ei="+b+"&feature="+f+"&fexp="+W1+"&ns="+Tu+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+PW+"&el="+Wm+"&len="+o4+"&of="+U2+"&uga="+ZJ+"&vm="+gJ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+E2+"&docid="+E+"&ei="+b+"&feature="+f+"&fexp="+W1+"&ns="+Tu+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
PW+"&el="+Wm+"&len="+o4+"&of="+U2+"&uga="+ZJ+"&vm="+gJ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+b+"&m="+Z4+"&oid="+U2+"&plid="+A+"&pltype="+PR+"&ptchn="+U2+"&ptk="+B+"&video_id="+E},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+E2+"&docid="+E+"&ei="+b+"&event="+gW+"&feature="+f+"&fexp="+W1+"&ns="+Tu+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+PW},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
OX+"&ver=2&cmt="+Hm+"&fmt="+rJ+"&fs="+VO+"&rt="+Hm+"&lact="+rJ+"&cl="+E2+"&mos="+VO+"&volume=100&cbrand="+Vy+"&cbr="+wD+"&cbrver="+sF+"&c=WEB&cver="+h+"&cplayer=UNIPLAYER&cos="+j$+"&cosver="+Jb+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+ZJ+"&len="+kp+"&fexp="+NI+"&feature=g-high-rec&afmt="+rJ+"&muted=0&conn=1&docid="+E+"&ei="+b+"&plid="+A+"&vm="+FT(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
E+"&caps="+EF+"&opi="+E2+"&xoaf="+VO+"&hl="+Tu+"&ip="+sF+"&ipbits="+VO+"&expire="+Pm+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+sF+"&key="+EF+"&lang="+vA,name:{simpleText:wD},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+E+"&caps="+EF+"&opi="+E2+"&xoaf="+VO+"&hl="+Tu+"&ip="+sF+"&ipbits="+VO+"&expire="+Pm+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+sF+"&key="+EF+"&kind="+EF+"&lang="+Tu,name:{simpleText:$E},
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:aU,title:hN,lengthSeconds:"1155",keywords:[PR,HA,Hv,u9],channelId:YC,isOwnerViewing:!1,shortDescription:$E,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+g0,width:168,height:94},{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+
"G&rs="+g0,width:196,height:110},{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+K,width:246,height:138},{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+K,width:336,height:188},{url:"https://i.ytimg.com/vi/"+E+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Jb,author:hN,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Jb,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
U2+"/featured_channel.jpg?v="+tc,width:40,height:40}]},trackingParams:zy+"=",navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"/channel/"+YC,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:YC}},channelName:hN,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:HA}]},subscribed:!1,enabled:!0,type:"FREE",channelId:YC,showPreferences:!1,subscribedButtonText:{runs:[{text:aU}]},unsubscribedButtonText:{runs:[{text:YL}]},
trackingParams:zy+"=",unsubscribeButtonText:{runs:[{text:PR}]},serviceEndpoints:[{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[YC],params:tc}},{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:w0,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zy+"=",dialogMessages:[{runs:[{text:OX},
{text:$E},{text:Vy}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:OX}]},serviceEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[YC],params:tc}},accessibility:{label:UM},trackingParams:zy+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:gW}]},accessibility:{label:UM},
trackingParams:zy+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:L4}},unsubscribeAccessibility:{accessibilityData:{label:Wm}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:kp},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[YC],
params:tc}},unsubscribeCommand:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[YC],params:tc}},addToWatchLaterCommand:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:aU,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:aU}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+E+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+BW+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+E+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+aU,width:1280,
height:720},title:{simpleText:u9},description:{simpleText:aU},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+$E,externalChannelId:YC,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:Jb,category:"Travel & Events",publishDate:R4,ownerChannelName:hN,uploadDate:R4}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Vy},trackingParams:zy+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:w0,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:zy+"="}}],headerText:{simpleText:HA},icon:{infoCardIconRenderer:{trackingParams:zy+"="}},closeButton:{infoCardIconRenderer:{trackingParams:zy+"="}},trackingParams:zy+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:zy+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+aU+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:hw,interpreterSafeUrl:(Fx.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+s2+".js",Fx),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:HA},{text:HA,bold:!0}]},endpoint:{clickTrackingParams:w0,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:zy+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:u9}]},actionButton:{buttonRenderer:{text:{runs:[{text:j$}]},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+E,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
E,target:"TARGET_NEW_WINDOW"}},trackingParams:zy+"="}},trackingParams:zy+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+f7+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+f7+"=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:Jb,endMs:Jb,title:{accessibility:{accessibilityData:{label:Vy}},simpleText:j$},metadata:{simpleText:Wm},callToAction:{simpleText:Wm},dismiss:{simpleText:PR},endpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"/channel/"+YC,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:YC}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:tc}]},subscribed:!1,enabled:!0,type:"FREE",channelId:YC,showPreferences:!1,
subscribedButtonText:{runs:[{text:OX}]},unsubscribedButtonText:{runs:[{text:YL}]},trackingParams:zy+"=",unsubscribeButtonText:{runs:[{text:Vy}]},serviceEndpoints:[{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[YC],params:tc}},{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:w0,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zy+
"=",dialogMessages:[{runs:[{text:u9},{text:HA},{text:YL}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:UM}]},serviceEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[YC],params:tc}},accessibility:{label:HA},trackingParams:zy+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:HA}]},
accessibility:{label:L4},trackingParams:zy+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:hN}},unsubscribeAccessibility:{accessibilityData:{label:u9}}}},trackingParams:zy+"=",isSubscribe:!0,id:VK}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+K,width:168,height:94},{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+g0,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+K,width:246,height:138},{url:"https://i.ytimg.com/vi/"+E+"/hqdefault.jpg?sqp=-oaymwE"+BW+"G&rs="+K,width:336,height:188},{url:"https://i.ytimg.com/vi/"+E+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Jb,endMs:Jb,title:{accessibility:{accessibilityData:{label:Vy}},simpleText:YL},metadata:{simpleText:UM},endpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
aU,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:aU,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Xf+".googlevideo.com/videoplayback?source=youtube&oeis="+VO+"&c=WEB&oad="+o4+"&ovd="+o4+"&oaad="+Hm+"&oavd="+Hm+"&ocs="+rJ+"&oewis="+VO+"&oputc="+VO+"&ofpcc="+VO+"&siu="+VO+"&msp="+VO+"&odepv="+VO+
"&id=o-AF"+OY+"&ip="+sF+"&initcwndbps="+Jb+"&mt="+Pm+"&oweuc="+W1}}}}},trackingParams:zy+"=",id:VK,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:YL}},simpleText:PR},style:"DEFAULT"}}]}}],startMs:Jb,trackingParams:zy+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:VO,offsetEndMilliseconds:Hm},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";ord="+Pm+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+rJ+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_ref=http://www.youtube.com/video/"+aU+";dc_pubid="+VO+";dc_btype=23?gclid="+S2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+VO+"&ns="+VO+"&event="+VO+"&device="+VO+"&content_v="+E+"&el="+Wm+"&ei="+b+"&devicever="+h+"&bti="+Jb+"&format="+gr+"&break_type="+VO+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+VO+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+sF+"&slot_pos="+VO+"&slot_len="+VO+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+nf+"&ad_len="+Hm+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
aU+"&aqi="+b+"&ad_rmp="+VO+"&sli="+VO}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+
";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+Jb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&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"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&ctype="+rJ+"&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"+
I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_engaged_view&ctype="+rJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+C3+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+A3+"&ad_cpn=[AD_CPN]&id="+wD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+wD+"&dc_pubid="+VO+"&dc_exteid="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+A3+"&ad_cpn=[AD_CPN]&id="+wD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+VO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+wD+"&avm="+VO+"&dc_pubid="+VO+"&dc_exteid="+
VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&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="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
U+"&sig="+A3+"&ad_cpn=[AD_CPN]&id="+wD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+VO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+wD+"&dc_pubid="+VO+"&dc_exteid="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:w0,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+
rJ+"&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/"+E+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zy+"="},trackingParams:zy+
"=",templatedCountdown:{templatedAdText:{text:HA,isTemplated:!0,trackingParams:zy+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:HA,isTemplated:!1,trackingParams:zy+"="},trackingParams:zy+"="}},trackingParams:zy+"=",skipOffsetMilliseconds:5E3}},trackingParams:zy+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:wD},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zy+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:u9,isTemplated:!1,trackingParams:zy+"="},trackingParams:zy+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:tc,isTemplated:!0,trackingParams:zy+"="}},trackingParams:zy+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:w0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(WW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Tu+"&origin=www.youtube.com&ata_theme="+Hv,WW),trackingParams:zy+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:zy+"="}},hoverText:{runs:[{text:gW}]},trackingParams:zy+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tX+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zy+"="},headline:{text:YL,isTemplated:!1,trackingParams:zy+"="},description:{text:hN,
trackingParams:zy+"="},actionButton:{buttonRenderer:{text:{simpleText:OX},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zy+"="}},startMs:VO,trackingParams:zy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:L4},elementId:u9}},elementId:Wm,trackingParams:zy+"=",legacyInfoCardVastExtension:Hv,sodarExtensionData:{siub:HA,bgub:L4,scs:Wm,bgp:Hv},externalVideoId:aU,adLayoutLoggingData:{serializedAdServingDataEntry:Vy},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tX+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zy+"="},
headline:{text:L4,isTemplated:!1,trackingParams:zy+"="},description:{text:j$,isTemplated:!1,trackingParams:zy+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:$E},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+
VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+
VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zy+"="}},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+
E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+
S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zy+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zy+"="},abandonCommands:{commands:[{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&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="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+
VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:w0,commandExecutorCommand:{commands:[{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:aU,isTemplated:!1,trackingParams:zy+
"="},trackingParams:zy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:PR},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+Jb+";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="+E2+";dc_trk_cid="+E2+";ord="+Pm+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+rJ+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_ref=http://www.youtube.com/video/"+aU+";dc_pubid="+VO+";dc_btype=23?gclid="+S2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+VO+"&ns="+VO+"&event="+VO+"&device="+VO+"&content_v="+E+"&el="+Wm+"&ei="+b+"&devicever="+h+"&bti="+Jb+"&format="+gr+"&break_type="+VO+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+VO+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+sF+"&slot_pos="+VO+"&slot_len="+VO+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
nf+"&ad_len="+Hm+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+aU+"&aqi="+b+"&ad_rmp="+VO+"&sli="+VO}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+
W+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+Jb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&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"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&ctype="+rJ+"&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"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_engaged_view&ctype="+rJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+A3+"&ad_cpn=[AD_CPN]&id="+
wD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+wD+"&dc_pubid="+VO+"&dc_exteid="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+
"&sig="+A3+"&ad_cpn=[AD_CPN]&id="+wD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+VO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+wD+"&avm="+VO+"&dc_pubid="+VO+"&dc_exteid="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&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="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+A3+"&ad_cpn=[AD_CPN]&id="+wD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+VO},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+wD+"&dc_pubid="+VO+"&dc_exteid="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+gr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+
rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&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/"+E+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zy+"="},trackingParams:zy+"=",templatedCountdown:{templatedAdText:{text:j$,isTemplated:!0,trackingParams:zy+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Vy,isTemplated:!1,trackingParams:zy+"="},trackingParams:zy+"="}},
trackingParams:zy+"=",skipOffsetMilliseconds:5E3}},trackingParams:zy+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Wm},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:YL,isTemplated:!1,trackingParams:zy+"="},trackingParams:zy+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:HA,
isTemplated:!0,trackingParams:zy+"="}},trackingParams:zy+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:w0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(n0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Tu+"&origin=www.youtube.com&ata_theme="+Hv,n0),trackingParams:zy+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:zy+"="}},hoverText:{runs:[{text:OX}]},trackingParams:zy+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xL+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zy+"="},headline:{text:aU,isTemplated:!1,trackingParams:zy+"="},description:{text:tc,trackingParams:zy+"="},actionButton:{buttonRenderer:{text:{simpleText:wD},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zy+"="}},startMs:VO,trackingParams:zy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gW},elementId:hN}},elementId:PR,trackingParams:zy+"=",legacyInfoCardVastExtension:Vy,sodarExtensionData:{siub:j$,bgub:YL,scs:PR,bgp:u9},externalVideoId:aU,adLayoutLoggingData:{serializedAdServingDataEntry:gW},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xL+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zy+"="},headline:{text:gW,
isTemplated:!1,trackingParams:zy+"="},description:{text:HA,isTemplated:!1,trackingParams:zy+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:PR},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zy+"="}},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+
VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zy+"="},abandonCommands:{commands:[{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&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="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+ZJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:w0,commandExecutorCommand:{commands:[{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:hN,isTemplated:!1,trackingParams:zy+"="},trackingParams:zy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:hN},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+VO+";dc_exteid="+VK+";met="+VO+";ecn"+VO+"="+VO+";etm1="+VO+";eid1="+
Jb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Hv}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:OX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Hm,offsetEndMilliseconds:gr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+b+"&m_pos="+ZJ+"&token=ALHj"+O+"&index="+VO+"&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="+h+"&m_pos_ms="+Hm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:OX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:gr,offsetEndMilliseconds:gr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+b+"&m_pos="+rJ+"&token=ALHj"+O+"&index="+VO+"&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="+
h+"&m_pos_ms="+gr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gr,offsetEndMilliseconds:gr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+b+"&m_pos="+rJ+"&token=ALHj"+O+"&index="+VO+"&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="+
h+"&m_pos_ms="+gr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gr,offsetEndMilliseconds:gr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+b+"&m_pos="+rJ+"&token=ALHj"+O+"&index="+VO+"&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="+
h+"&m_pos_ms="+gr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gr,offsetEndMilliseconds:ZJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+b+"&m_pos="+rJ+"&token=ALHj"+O+"&index="+VO+"&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="+
h+"&m_pos_ms="+gr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Hv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:ZJ,offsetEndMilliseconds:ZJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+b+"&m_pos="+ZJ+"&token=ALHj"+O+"&index="+VO+"&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="+
h+"&m_pos_ms="+ZJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:YL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Wm,isTemplated:!1,trackingParams:zy+"="},description:{text:Hv,isTemplated:!1,trackingParams:zy+"="},actionButton:{buttonRenderer:{text:{simpleText:OX},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tX+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:zy+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zy+"="},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+
";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:w0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(uP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Tu+"&origin=www.youtube.com&ata_theme="+Hv,uP),trackingParams:zy+"="}},popupType:"DIALOG"}},trackingParams:zy+"="}},hoverText:{runs:[{text:Vy}]},trackingParams:zy+"="}},adVideoId:aU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:u9},associatedCompositePlayerBytesLayoutId:OX}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:tc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Wm,isTemplated:!1,trackingParams:zy+"="},description:{text:YL,isTemplated:!1,trackingParams:zy+"="},actionButton:{buttonRenderer:{text:{simpleText:hN},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+
S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zy+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xL+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zy+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+SV+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zy+"="},navigationEndpoint:{clickTrackingParams:w0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+
VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:w0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(B4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Tu+"&origin=www.youtube.com&ata_theme="+Hv,B4),trackingParams:zy+"="}},popupType:"DIALOG"}},trackingParams:zy+"="}},
hoverText:{runs:[{text:gW}]},trackingParams:zy+"="}},adVideoId:aU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+aU+"&cid="+W+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:$E},associatedCompositePlayerBytesLayoutId:OX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$E}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:L4,
isTemplated:!1,trackingParams:zy+"="},description:{text:HA,isTemplated:!1,trackingParams:zy+"="},actionButton:{buttonRenderer:{text:{simpleText:YL},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+
ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+
K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zy+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tX+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zy+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zy+
"="},navigationEndpoint:{clickTrackingParams:w0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E2+";dc_trk_cid="+E2+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+VO+";ord="+E2+";dc_rui="+VO+";dc_exteid="+VK+";dc_av="+VO+";dc_sk="+VO+";dc_ctype="+ZJ+";dc_pubid="+VO+";dc_btype=3?gclid="+S2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+S+"AxAA&ase=2&num="+VO+"&cid="+W+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+xC+"&label=video_click_to_advertiser_site&ctype="+rJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zy+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:w0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(cY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Tu+"&origin=www.youtube.com&ata_theme="+Hv,cY),trackingParams:zy+"="}},popupType:"DIALOG"}},trackingParams:zy+
"="}},hoverText:{runs:[{text:Wm}]},trackingParams:zy+"="}},adVideoId:aU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+S+"AxAA&sigh="+E+"&cid="+W+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aU},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:OX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:j$}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:s2,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:s2,command:{innertubeCommand:{clickTrackingParams:w0,ypcGetOfflineUpsellEndpoint:{params:S$}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:zy+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Pm,nanos:Zb}}}},xE8=JSON.stringify(Xs),AI=performance.now()-D;return{objectRepresentation:Xs,jsonRepresentation:xE8,generationTime:AI}};
iO4=function(D,v){if(D===v)return!0;if(!D||!v||typeof D!==typeof v)return!1;if(D instanceof Array&&v instanceof Array){if(D.length!==v.length)return!1;for(var h=0;h<D.length;h++)if(!iO4(D[h],v[h]))return!1;return!0}if(typeof D==="object"&&typeof v==="object"&&D&&v){for(h in D)if(!(h in v&&iO4(D[h],v[h])))return!1;for(var a in v)if(!(a in D))return!1;return!0}return!1};
_.Lq=function(){if(!UL){UL=new Se(new Wpq);var D=_.oZ("client_streamz_web_flush_count",-1);D!==-1&&(UL.invocationLimit=D)}return UL};
Z6=function(D,v,h,a){if(D===v)return!0;if(Array.isArray(D)&&Array.isArray(v)){if(D.length!==v.length)return!1;for(var Q=0;Q<D.length;Q++)if(!Z6(D[Q],v[Q],h,a))return!1;return!0}if(D instanceof Set||v instanceof Set){if(D instanceof Set&&v instanceof Set){if(D.size!==v.size)return!1;a=_.P(D.values());for(Q=a.next();!Q.done;Q=a.next())if(!v.has(Q.value))return!1;return!0}return!1}if(D instanceof Function){if(a)return!0;D.name===""&&_.mV(Error("Nf"),"ERROR");return!1}if(D instanceof Date&&v instanceof
Date)return D.getTime()===v.getTime();if(D instanceof Object&&v instanceof Object){if(tu4(D)&&tu4(v))try{return D.equals(v)}catch(x){_.mV(Error("Of`"+x),"ERROR")}Q=Object.getOwnPropertyNames(D).filter(function(x){return h?D[x]!==void 0:!0});
var G=Object.getOwnPropertyNames(v).filter(function(x){return h?v[x]!==void 0:!0});
if(Q.length!==G.length)return!1;Q=_.P(Q);for(G=Q.next();!G.done;G=Q.next())if(G=G.value,!Z6(D[G],v[G],h,a))return!1;return!0}return!1};
tu4=function(D){D=Object.getPrototypeOf(D).equals;return D instanceof Function&&D.length===1};
_.Dmo=function(){return _.M(function(D){if(D.nextAddress==1)return rEI!==2?D.jumpTo(2):D.yield(uco(),3);D.nextAddress!=2&&(rEI=D.yieldResult);return D.return(rEI)})};
_.aZq=function(){return _.M(function(D){if(D.nextAddress==1)return _.g("ab_pl_man")?vic!==2?D.jumpTo(2):D.yield(heo(),3):D.return(1);D.nextAddress!=2&&(vic=D.yieldResult);return D.return(vic)})};
GJr=function(){return _.M(function(D){if(D.nextAddress==1)return _.g("ab_fk_sk_cl")?$m4!==2?D.jumpTo(2):D.yield(Q18(),3):D.return(1);D.nextAddress!=2&&($m4=D.yieldResult);return D.return($m4)})};
_.xmL=function(){return _.M(function(D){if(D.nextAddress==1)return _.g("ab_det_apb_b")?Vfc!==2?D.jumpTo(2):D.yield(PX8(),3):D.return(1);D.nextAddress!=2&&(Vfc=D.yieldResult);return D.return(Vfc)})};
CXf=function(){var D;return _.M(function(v){if(v.nextAddress==1)return v.yield(Promise.all([_.Dmo(),_.xmL(),_.aZq(),GJr()]),2);if(v.nextAddress!=3)return Mfr()?v.return(!0):v.yield(_.fZu(),3);D=v.yieldResult;return v.return(D===0)})};
Mfr=function(){var D=!1,v=function(h,a){oiq.increment(a,h);h===0&&(D=!0)};
v(_.F_2(),"j.s_");v(rEI,"f.i_");v(Vfc,"a.b_");v(vic,"p.m_");v($m4,"i.f_");zeq===2&&(zeq=_.Umq(L_r));v(zeq,"e.h_");_.g("ks_det_gpbl")||v(_.ZC8(),"p.i_");_.g("ks_get_o_pp")||v(_.EiA(),"g.o_");_.g("ab_deg_unex_thr")||v(_.IZu(),"a.o_");v(gi7,"s.t_");_.g("ab_det_sc_inj_enf")&&v(_.kJr(),"s.i_");v(S08,"d.p_");v(_.J9u(_.EL),"o.p_");v(_.p0u()===0?0:_.lZc(),"o.a_");return _.g("debug_sk_em_precheck")?!0:D};
Y02=function(){var D=[].concat(_.j_(NG8));try{var v=RAI();D.push({jsonRepresentation:v.jsonRepresentation,objectRepresentation:v.objectRepresentation})}catch(h){D=[].concat(_.j_(NG8))}return D};
BGi=function(){var D=["adPlacements","adSlots"];try{return D.filter(function(){return!0}).length!==D.length?0:1}catch(v){return 0}};
_.EiA=function(){if(BGi()===0)return 0;var D=RAI(),v=D.objectRepresentation,h=(0,_.sV.unsafeClone)(v),a=[];if(v&&typeof v==="object")for(var Q in v)a.push(Q);else return 4;D=D.objectRepresentation.adPlacements;if(!(D&&D.length>0))return 4;try{if(!iO4(a,Object.getOwnPropertyNames(v)))return 0}catch(G){return 0}return iO4(h,v)?1:0};
_.J9u=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var v=Object.getOwnPropertyNames(Object.prototype),h=0;h<D.length;h++)for(var a=_.Cq(D[h]),Q=_.P(v),G=Q.next();!G.done;G=Q.next())if(a===G.value)return 0;return 1};
c9i=function(D){var v=_.Cq(D[1]);if(D[0]===null)return v;D=D[0];for(var h={},a=0;a<D.length;a++){var Q=_.Cq(D[a]);if(a===0)h[Q]=v;else{var G={};G[Q]=h;h=G}}return h};
_.p0u=function(){for(var D=_.IX,v=0;v<D.length;v++){var h=c9i(D[v]),a=[];a.push(h);if(a.length===0)return 0}return 1};
_.lZc=function(){for(var D=_.IX,v={},h=0;h<D.length;v={nSz:void 0},h++){var a=[c9i(D[h])];v.nSz=[];a.forEach(function(Q){return function(G){Q.nSz[Q.nSz.length]=G}}(v));
if(v.nSz.length===0)return 0}return 1};
_.F_2=function(){for(var D=_.P(Y02()),v=D.next();!v.done;v=D.next()){var h=v.value;v=h.jsonRepresentation;h=h.objectRepresentation;try{var a=JSON.parse(v);if(!Z6(a,h,!1,!1))return 0}catch(Q){return 0}}return 1};
_.kJr=function(){try{var D=_.zi("ab_det_sc_inj_val");D.length===1&&D[0]===""&&(D=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var v=document.querySelectorAll("script"),h=_.P(v),a=h.next();!a.done;a=h.next())for(var Q=a.value,G=_.P(D),x=G.next();!x.done;x=G.next()){var f=x.value;v=void 0;if((v=Q.textContent)==null?0:v.includes(f))return 0}}catch(C){return 4}return 1};
_.fZu=function(){var D,v,h,a,Q,G,x;return _.M(function(f){switch(f.nextAddress){case 1:_.gE(f,2),D=_.P(NG8),v=D.next();case 4:if(v.done)return f.return(1);a=h=v.value;Q=a.jsonRepresentation;G=a.objectRepresentation;return f.yield((new Response(Q,{status:200})).json(),7);case 7:x=f.yieldResult;if(!Z6(x,G,!1,!1))return f.return(0);v=D.next();f.jumpTo(4);break;case 2:return _.NS(f),f.return(4)}})};
_.IZu=function(){try{btoa("abc")}catch(D){return 0}return 1};
uco=function(){var D,v,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){switch(Z.nextAddress){case 1:_.gE(Z,2),D=_.P(Y02()),v=D.next();case 4:if(v.done)return Z.return(1);a=h=v.value;Q=a.jsonRepresentation;G=a.objectRepresentation;x=btoa(Q);f="data:application/json;base64,"+x;C=new Request(f);Object.defineProperty(C,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(C,"method",{get:function(){return"POST"}});
Object.defineProperty(C,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(C,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(C,"body",{get:function(){return new ReadableStream}});
return Z.yield(fetch(C),7);case 7:return U=Z.yieldResult,Z.yield(U.json(),8);case 8:L=Z.yieldResult;if(!Z6(L,G,!1,!1))return Z.return(0);v=D.next();Z.jumpTo(4);break;case 2:return _.NS(Z),Z.return(4)}})};
_.Umq=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var v=function(Q){return _.Cq(Q)},h=2,a=0;a<D.length&&(h=_.X07(_.Kpc(D[a],v)),h!==0);a++);
return h};
_.X07=function(D){var v=_.P(D);D=v.next().value;v=v.next().value;try{var h=document.createElement("div");document.body.appendChild(h);var a=getComputedStyle(h).display;document.body.removeChild(h);if(a==="none")return 4;var Q=getComputedStyle(v).display==="none"?0:1;document.body.removeChild(D);return Q}catch(G){return 4}};
Q18=function(){var D,v,h;return _.M(function(a){D=new _.gT;v=document.createElement("button");v.classList.add("ytp-ad-skip-button");v.style.opacity="0";v.style.height="0px";v.style.width="0px";v.style.padding="0px";v.style.border="none";h=function(){v.parentElement&&v.parentElement.removeChild(v)};
v.onclick=function(){D.resolve(0);h()};
document.body.appendChild(v);setTimeout(function(){h();D.resolve(1)},50);
return a.return(D.promise)})};
heo=function(){var D,v,h,a,Q,G,x;return _.M(function(f){D=new _.gT;v=document.createElement("ytd-player");try{document.body.prepend(v)}catch(C){return f.return(4)}h=function(){v.parentElement&&v.parentElement.removeChild(v)};
v.getElementsByTagName("div").length>0?a=v.getElementsByTagName("div")[0]:(a=document.createElement("div"),v.appendChild(a));Q=document.createElement("div");a.appendChild(Q);G=document.createElement("video");x=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});G.src=_.mM(_.OQ(x));G.ontimeupdate=function(){h();D.resolve(0)};
Q.appendChild(G);G.classList.add("html5-main-video");setTimeout(function(){Q.classList.add("ad-interrupting")},200);
setTimeout(function(){h();D.resolve(1)},5E3);
return f.return(D.promise)})};
A9I=function(D){var v=RAI().objectRepresentation.playbackTracking;if(v){var h=[],a;h.push(v==null?void 0:(a=v.videostatsPlaybackUrl)==null?void 0:a.baseUrl);var Q;h.push(v==null?void 0:(Q=v.videostatsDelayplayUrl)==null?void 0:Q.baseUrl);var G;h.push(v==null?void 0:(G=v.videostatsWatchtimeUrl)==null?void 0:G.baseUrl);var x;h.push(v==null?void 0:(x=v.ptrackingUrl)==null?void 0:x.baseUrl);var f;h.push(v==null?void 0:(f=v.qoeUrl)==null?void 0:f.baseUrl);var C;h.push(v==null?void 0:(C=v.atrUrl)==null?
void 0:C.baseUrl);v=_.P(h);for(h=v.next();!h.done;h=v.next())if((h=h.value)&&D.test(h))return h.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
q0u=function(D,v){var h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:h=[],a=0;case 2:if(!(a<3)){Q.jumpTo(4);break}return Q.yield(fetch(D,{cache:"no-store",method:v}).then(function(G){h.push(G.status)}).catch(function(){h.push(-1)}),3);
case 3:a++;Q.jumpTo(2);break;case 4:return Q.return(h)}})};
bCr=function(D){return D.domainLookupStart===0&&D.domainLookupEnd===0&&D.connectStart===0&&D.connectEnd===0};
dmf=function(D,v,h){h=h===void 0?"GET":h;var a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){if(I.nextAddress==1)return I.yield(Promise.all([q0u(D,h),q0u(v,h)]),2);a=I.yieldResult;Q=_.P(a);G=Q.next().value;x=Q.next().value;f=G;C=x;if(Math.min.apply(Math,_.j_(C))!==Math.max.apply(Math,_.j_(C))||Math.min.apply(Math,_.j_(f))!==Math.max.apply(Math,_.j_(f)))return I.return(2);if(Math.min.apply(Math,_.j_(C))===Math.min.apply(Math,_.j_(f)))return I.return(1);L=(U=performance.getEntriesByName(D))==null?void 0:
U[0];E=(Z=performance.getEntriesByName(v))==null?void 0:Z[0];return L&&E?bCr(E)?I.return(1):bCr(L)?I.return(0):I.return(1):I.return(2)})};
PX8=function(){var D;return _.M(function(v){var h=[];var a;var Q,G,x;(Q=a=(Q=RAI().objectRepresentation.streamingData)==null?void 0:(G=Q.formats)==null?void 0:(x=G[0])==null?void 0:x.url)&&Q&&!a.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Q=Q.replace("initcwndbps","ctier=L&initcwndbps"),Q=Q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),a={testUrl:Q,baseUrl:a,method:"GET"}):a=void 0;a&&h.push(a);_.g("ab_net_tp_e")&&h.push({testUrl:_.$L.location.origin+"/ad_companion",baseUrl:_.$L.location.origin+
"/generate_204",method:"OPTIONS"});_.g("ab_fix_creator_view_cnt")&&(h.length=0,(a=A9I(/api\/stats\/atr/))&&h.push({testUrl:_.$L.location.origin+a,baseUrl:_.$L.location.origin+"/generate_204",method:"OPTIONS"}));_.g("ad_net_pb_pbp")&&(a=A9I(/api\/stats\/qoe/))&&h.push({testUrl:_.$L.location.origin+a,baseUrl:_.$L.location.origin+"/feed/download",method:"GET"});h=h.length!==0?h[Math.floor(Math.random()*h.length)]:void 0;return(D=h)?v.return(dmf(D.testUrl,D.baseUrl,D.method)):v.return(4)})};
_.ZC8=function(){if(_.$L.jAQ===void 0||_.$L.jAQ===null||typeof _.$L.jAQ!=="function")return 2;try{return _.$L.jAQ()===!0?0:1}catch(D){return 0}};
j1c=function(D){switch(D){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.K4(D,"unknown result type")}};
_.s1c=function(D,v){var h=Number(_.eA("CATSTAT",0));if(v.ysJ===void 0)return h;v=v.ysJ;D=j1c(D);return h&~(3<<v)|D<<v};
mm2=function(D){var v,h;if((D=(v=D.auxiliaryUi)==null?void 0:(h=v.messageRenderers)==null?void 0:h.bkaEnforcementMessageViewModel)&&D.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return D};
y97=function(){for(var D=_.P(Object.values(_.HCL)),v=D.next();!v.done;v=D.next())v=v.value,v.isAsync&&v.ysJ&&_.wM("CATSTAT",_.s1c(2,v))};
_.pq=function(D,v){D=_.kV("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",D);(v===void 0?0:v)?_.w0u(D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.SL(_.JQ(),D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
ni7=function(){if(!eeo){if(Polymer.Base){var D=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{D.apply(this,arguments)}catch(Z){_.OM(Z)}};
var v=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{v.apply(this,arguments)}catch(Z){_.OM(Z)}};
var h=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{h.apply(this,arguments)}catch(Z){_.OM(Z)}};
var a=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{a.apply(this,arguments)}catch(Z){_.OM(Z)}};
var Q=Polymer.Base._listen,G=new WeakMap;Polymer.Base._listen=function(Z,E,I){var S=function(){try{I.apply(this,arguments)}catch(B){_.OM(B)}};
G.set(I,S);Q.call(this,Z,E,S)};
var x=Polymer.Base._unlisten;Polymer.Base._unlisten=function(Z,E,I){x.call(this,Z,E,G.get(I))}}if(Polymer.Async){var f=Polymer.Async,C=f._atEndOfMicrotask;
f._atEndOfMicrotask=function(){try{C.apply(f,arguments)}catch(Z){_.OM(Z)}}}if(Polymer.RenderStatus){var U=Polymer.RenderStatus,L=U.afterNextRender;
U.afterNextRender=function(Z,E,I){L.call(U,Z,function(){try{E.apply(this,arguments)}catch(S){_.OM(S)}},I)}}eeo=!0}};
_.K_L=function(D){var v=D?_.gl(D):"";if(v){if(v.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(v.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(v.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(v.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(v.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.g("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(v.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";v=v.toLowerCase();if(v==="/")return"home";if(v==="/channel_memberships")return"channel-memberships-shopfront";if(v.indexOf("/feed/trending")===0)return"trending";if(v.indexOf("/feed/explore")===0)return"explore";if(v.indexOf("/live")===0)return"live";if(v.indexOf("/results")===0)return"search";if(v.indexOf("/sports")===0)return"sports";if(v.indexOf("/fashion")===0||v.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(v))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(v))return _.g("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(v.indexOf("/channel/")===0||v.indexOf("/user/")===0||v.indexOf("/gaming")===0||v.indexOf("/post/")===0)return"channel";if(OCi(D))return"show";if(v==="/playlist"||v.indexOf("/playlist/")===0||v==="/view_play_list"||v.indexOf("/view_play_list/")===0||v.indexOf("/show/")===0)return"playlist";if(v==="/feed/companion_canvas")return"companion-canvas";if(v==="/feed/history"||
v.indexOf("/feed/history/")===0)return"history";if(v==="/new")return"labs";if(v==="/feed/subscriptions")return"subscriptions";if(v.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(v==="/history_controls")return"standalone";if(v.indexOf("/account")===0||v==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(v.indexOf("/paid_memberships")===0||v.indexOf("/refund")===0||v.indexOf("/purchases")===0||v.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(v.indexOf("/product")===
0)return"yts-products";if(v.indexOf("/premium")===0||v.indexOf("/musicpremium")===0)return v.indexOf("/premium/offers")===0||v.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(v==="/cart/checkout"||v==="/cart")return"ypc-checkout";if(v.indexOf("/feed/downloads")===0||v.indexOf("/redeem")===0||v.indexOf("/reporthistory")===0)return"browse";if(v.indexOf("/hashtag")===0)return"hashtag-landing-page";if(v.indexOf("/handle")===0)return"handle";if(v.indexOf("/source")===0)return"audio-pivot";if(v.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(v.indexOf("/playables")===0)return"playables";if(v.indexOf("/create/live/join")===0)return"open-in-app";if(v.indexOf("/shorts")===0)return"shorts";if(v.indexOf("/feed/channels")===0)return"subscriptions-channels";(v=D?_.gl(D):"")&&v.indexOf("/watch")===0&&_.g("web_watch_enable_learning_journey")?(D=_.DX(D),D=!!D.list&&D.list.indexOf("LJPP")===0):D=!1;if(D)return"learning_journey_watch"}};
_.NP=function(D){var v,h;(D=(h=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:h.url)&&(v=_.K_L(D));return v};
OCi=function(D){var v=D?_.gl(D):"";if(!v)return!1;v=v.toLowerCase();return v.indexOf("/show/")===0||v.indexOf("/playlist")===0&&(D=_.DX(D),D.list&&D.list.indexOf("EL")===0)?!0:!1};
cR=function(D){var v="unknown",h;var a=((h=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:h.webPageType)||"";a?(h=a.toLowerCase(),h.startsWith("web_page_type_")&&(h=h.slice(14))):h=a;h&&TGf[h.toUpperCase()]?v=TGf[h.toUpperCase()]:_.k(D,_.YV)||_.k(D,Ref)?v="browse":_.k(D,_.BR)?v="search":_.k(D,_.hP)&&(v="watch");v==="watch"&&_.NP(D||null)==="learning_journey_watch"&&(v="learning_journey_watch");v==="unknown"&&_.yR(Error("Qf`"+JSON.stringify({clickTrackingParams:D==null?void 0:D.clickTrackingParams,
commandMetadata:D==null?void 0:D.commandMetadata,allEndpointKeys:Object.keys(D||[])})));return v};
_.XT=function(D){if(!_.iCc||D)_.iCc=_.NV();return _.iCc};
_.W_o=function(D){return!!_.k(D,_.hP)||!!_.k(D,_.AQ)&&_.g("kevlar_enable_shorts_prefetch")};
_.tfr=function(D,v){D=_.k(D,_.hP)||_.k(D,_.AQ);return"v"+D.videoId+(D.playlistId?"-pl"+D.playlistId:"")+(v?"-an1":"")+(D.params?"-pr"+D.params:"")};
qP=function(D){return function(){return new D}};
bu=function(D){var v=_.xd();return function(){return v.resolve(D)}};
ugi=function(D){var v=_.oZ("web_pbj_log_warning_rate",0);v=v>0&&Math.random()<v;if(!_.k(D,_.AQ))return v&&_.yR(Error("Tf")),!1;var h;return _.g("shorts_controller_retrieve_seedless_sequence_v2")&&((h=_.k(D,_.AQ))==null?void 0:h.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:r9I(D)?!0:(v&&_.yR(Error("Uf")),!1)};
r9I=function(D){var v=(_.k(D,_.hP)||_.k(D,_.AQ)).videoId;if(!v||!D4c.test(v))return!1;var h;return(D=(h=_.k(D.commandMetadata,_.Sa))==null?void 0:h.url)&&(D.includes(v)||D.startsWith("/clip"))?!0:!1};
_.hbO=function(){var D=_.YE();return D.getFlag(192)?D.getFlag(190):!(_.g("web_watch_cinematics_disabled_by_default")||_.g("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&v3c())};
_.dT=function(D,v,h){var a={};a.currentUrl=v;a.vis=D.vis!==void 0?D.vis:0;a.splay=!1;v=_.YE();a.autoCaptionsDefaultOn=v.getFlag(66);v.getFlag(141)?v.getFlag(140)?a.autonavState="STATE_OFF":a.autonavState="STATE_ON":a.autonavState="STATE_NONE";a.html5Preference="HTML5_PREF_WANTS";isNaN(_.eA("STS"))||(a.signatureTimestamp=_.eA("STS"));D.autonav&&(a.autoplay=!0,a.autonav=!0);D.mutedAutoplay&&(a.autoplay=!0,a.mutedAutoplay=!0);D.inlinePlayback&&(a.autoplay=!0,a.autonav=!1,a.isInlineUnmutedPlayback=!!D.inlineUnmuted);
a.referer=h;a.lactMilliseconds=D.lact!==void 0?D.lact.toString():"-1";_.g("enable_unknown_lact_fix_on_html5")&&a.lactMilliseconds==="-1"&&_.yR(new _.XH("Unknown LACT is set in playbackContext.",{"lact in tempData":D.lact||"undefined",autonav:D.autonav||"undefined"}));D={};v.getFlag(194)&&(D.hasShownAmbientMode=!0);v.getFlag(192)&&(D.hasToggledOffAmbientMode=!0);_.hbO()&&(D.watchAmbientModeEnabled=!0);a.watchAmbientModeContext=D;return a};
aef=function(D){var v={},h=D.pbis||0;h&&(v.playbackBeginsInSeconds=h);D.prefetch_reason&&D.prefetch_reason==="hc_pbis"&&(v.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return v};
_.sL=function(D){D=D===void 0?!1:D;var v=_.YE(),h="USER_INTERFACE_THEME_LIGHT";v.getFlag(165)?h="USER_INTERFACE_THEME_DARK":v.getFlag(174)?h="USER_INTERFACE_THEME_LIGHT":_.jL()&&(h="USER_INTERFACE_THEME_DARK");return D?h:$4r()||h};
_.Q8q=function(){return!_.g("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.jL=function(){return _.Q8q()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.mc=function(){var D=_.YE();return _.Q8q()&&!D.getFlag(165)&&!D.getFlag(174)};
$4r=function(){var D=D===void 0?window.location.href:D;if(_.g("kevlar_disable_theme_param"))return null;var v=_.gl(D);if(_.Gn8(v))return"USER_INTERFACE_THEME_DARK";try{var h=_.DX(D).theme;return VWq.get(h)||null}catch(a){}return null};
_.Gn8=function(D){return _.g("enable_dark_theme_only_on_shorts")?!(D==null||!D.startsWith("/shorts/")):!1};
_.MW8=function(D,v,h,a,Q){v=v===void 0?!1:v;h=h===void 0?!1:h;var G=_.eA("INNERTUBE_CONTEXT");if(!G)return _.mV(Error("Xf")),{};G=(0,_.sV.unsafeClone)(G);_.g("web_no_tracking_params_in_shell_killswitch")||delete G.clickTracking;G.client||(G.client={});var x=G.client;x.clientName==="MWEB"&&x.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(x.clientFormFactor=_.eA("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");x.screenWidthPoints=window.innerWidth;x.screenHeightPoints=window.innerHeight;x.screenPixelDensity=
Math.round(window.devicePixelRatio||1);x.screenDensityFloat=window.devicePixelRatio||1;x.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());x.userInterfaceTheme=_.sL();if(!v){var f=_.q4c();f&&(x.connectionType=f);_.g("web_log_effective_connection_type")&&(f=dDu())&&(G.client.effectiveConnectionType=f)}var C;if(_.g("web_log_memory_total_kbytes")&&((C=_.$L.navigator)==null?0:C.deviceMemory)){var U;C=(U=_.$L.navigator)==null?void 0:U.deviceMemory;G.client.memoryTotalKbytes=""+C*1E6}v&&a&&!_.g("web_it_context_set_original_url_ks")&&
(x.originalUrl=P6I(_.$L.location.href,a).toString());_.g("web_gcf_hashes_innertube")&&(f=Kcf())&&(U=f.coldConfigData,C=f.coldHashData,f=f.hotHashData,G.client.configInfo=G.client.configInfo||{},U&&(G.client.configInfo.coldConfigData=U),C&&(G.client.configInfo.coldHashData=C),f&&(G.client.configInfo.hotHashData=f));U=_.DX(_.$L.location.href);!_.g("web_populate_internal_geo_killswitch")&&U.internalcountrycode&&(x.internalGeo=U.internalcountrycode);!_.g("web_populate_client_screen_killswitch")&&Q&&(x.clientScreen=
Q);x.clientName==="MWEB"||x.clientName==="WEB"?(x.mainAppWebInfo||(x.mainAppWebInfo={}),x.mainAppWebInfo.graftUrl=a||_.$L.location.href,_.g("kevlar_woffle")&&_.HR.instance&&(a=_.HR.instance,x.mainAppWebInfo.pwaInstallabilityStatus=!a.appInstalledEventFired&&a.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),x.mainAppWebInfo.webDisplayMode=sX8(),x.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):x.clientName==="TVHTML5"&&
(!_.g("web_lr_app_quality_killswitch")&&(a=_.eA("LIVING_ROOM_APP_QUALITY"))&&(x.tvAppInfo=Object.assign(x.tvAppInfo||{},{appQuality:a})),a=_.eA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(x.tvAppInfo=Object.assign(x.tvAppInfo||{},{certificationScope:a}));!_.g("web_populate_time_zone_itc_killswitch")&&(a=XfI())&&(x.timeZone=a);(a=rPf())?x.experimentsToken=a:delete x.experimentsToken;x=u1c();a=_.x4O();a=(0,_.sV.getValues)(a.tokenJars);G.request=Object.assign({},G.request,{internalExperimentFlags:x,consistencyTokenJars:a});
!_.g("web_prequest_context_killswitch")&&(x=_.eA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(G.request.externalPrequestContext=x);a=_.YE();x=a.getFlag(58);a=a.get("gsml","");G.user=Object.assign({},G.user);x&&(G.user.enableSafetyMode=x);a&&(G.user.lockedSafetyMode=!0);_.g("warm_op_csn_cleanup")?h&&(v=_.wd())&&(G.clientScreenNonce=v):!v&&(v=_.wd())&&(G.clientScreenNonce=v);D&&(G.clickTracking={clickTrackingParams:D});if(D=_.T3("yt.mdx.remote.remoteClient_"))G.remoteClient=D;_.yy.getInstance().setLocationOnInnerTubeContext(G);
try{var L=xDA(),Z=L.bid;delete L.bid;G.adSignalsInfo={params:[],bid:Z};for(var E=_.P(Object.entries(L)),I=E.next();!I.done;I=E.next()){var S=_.P(I.value),B=S.next().value,A=S.next().value;L=B;Z=A;D=void 0;(D=G.adSignalsInfo.params)==null||D.push({key:L,value:""+Z})}var d,b;if(((d=G.client)==null?void 0:d.clientName)==="TVHTML5"||((b=G.client)==null?void 0:b.clientName)==="TVHTML5_UNPLUGGED"){var W=_.eA("INNERTUBE_CONTEXT");W.adSignalsInfo&&(G.adSignalsInfo.advertisingId=W.adSignalsInfo.advertisingId,
G.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",G.adSignalsInfo.limitAdTracking=W.adSignalsInfo.limitAdTracking)}}catch(K){_.mV(K)}return G};
_.eL=function(D,v,h){var a=h&&h>0?h:0;h=a?Date.now()+a*1E3:0;if((a=a?_.wT.getLocalStorage():_.wT.getSessionStorage())&&window.JSON){typeof v!=="string"&&(v=JSON.stringify(v,void 0));try{a.set(D,v,h)}catch(Q){a.remove(D)}}};
_.nq=function(D){var v=_.wT.getSessionStorage(),h=_.wT.getLocalStorage();if(!v&&!h||!window.JSON)return null;try{var a=v.get(D)}catch(Q){}if(typeof a!=="string")try{a=h.get(D)}catch(Q){}if(typeof a!=="string")return null;try{a=JSON.parse(a,void 0)}catch(Q){}return a};
_.OL=function(D){try{var v=_.wT.getSessionStorage(),h=_.wT.getLocalStorage();v&&v.remove(D);h&&h.remove(D)}catch(a){}};
_.feu=function(D){var v=new Kq(_.eA("ONE_PICK_URL",""));v.urlParamMap_.set("hostId",D);(D=_.eA("GAPI_LOCALE"))&&v.urlParamMap_.set("hl",D);(D=_.eA("SESSION_INDEX"))&&v.urlParamMap_.set("authuser",D);(D=_.eA("DELEGATED_SESSION_ID"))&&v.urlParamMap_.set("groupId",D);return v};
o3u=function(){var D=_.xd(),v=D.resolve(_.Tb);D=D.resolve(_.RX);return new C62(v,D)};
zbc=function(D){if(window.IntersectionObserver)return new FYo(D,400);throw new TypeError("dg");};
LYL=function(){var D=Hammer.TouchAction,v=D.prototype.preventDefaults;D.prototype.preventDefaults=function(h){var a=this.actions.indexOf("pan-down")>-1;if(!a)return v.call(this,h);if(!U4q){var Q=h.srcEvent;h=h.direction;var G;if((G=this.manager)==null?0:G.session.prevented)Q.preventDefault();else if(a&&h&Hammer.DIRECTION_DOWN)return this.preventSrc(Q)}}};
Znr=function(D){if(!D||D.size===0)return Hammer.DIRECTION_ALL;if(D.size===2){if(D.has("up")&&D.has("down"))return Hammer.DIRECTION_VERTICAL;if(D.has("right")&&D.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(D.size===1){if(D.has("up"))return Hammer.DIRECTION_UP;if(D.has("down"))return Hammer.DIRECTION_DOWN;if(D.has("right"))return Hammer.DIRECTION_RIGHT;if(D.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Ie8=function(){return E37?Promise.resolve(E37):new Promise(function(D,v){var h=self.indexedDB.open("swpushnotificationsdb");h.onerror=v;h.onsuccess=function(){var a=h.result;if(a.objectStoreNames.contains("swpushnotificationsstore"))E37=a,D(E37);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Ie8()};
h.onupgradeneeded=g32})};
g32=function(D){D=D.target.result;D.objectStoreNames.contains("swpushnotificationsstore")&&D.deleteObjectStore("swpushnotificationsstore");D.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Sti=function(D){var v=knc(),h;return _.M(function(a){switch(a.nextAddress){case 1:return _.gE(a,2),a.yield(D.match(v,{cacheName:"yt-appshell-assets"}),4);case 4:h=a.yieldResult;_.rl(a,3);break;case 2:_.NS(a);case 3:return a.return(h)}})};
knc=function(){var D=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?JqA.registration.scope:pMq;D.endsWith("/")&&(D=D.slice(0,-1));return D+"/app_shell_home"};
leI=function(D){D.map(function(v){return v.source}).join("|")};
_.Nuo=function(D){return _.M(function(v){return v.return(Sti(D))})};
Ytc=function(){var D=window.caches,v;return _.M(function(h){if(h.nextAddress==1)return h.yield(_.Nuo(D),2);v=h.yieldResult;return h.return(!!v)})};
d4f=function(){_.M(function(D){if(D.nextAddress==1){if(BuO)return D.jumpTo(0);BuO=!0;if(_.g("enable_system_health_primes_monitoring"))return _.Ez(cqq,3E4),XMc(),D.return();if(!(Math.random()<_.oZ("web_system_health_fraction")))return D.jumpTo(0);Aq4={heightPixels:screen.height,widthPixels:screen.width};iu&&!isNaN(iu.jsHeapSizeLimit)&&(Aq4.memoryTotalKbytes=String(Math.round(iu.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Aq4.devicePixelRatio=window.devicePixelRatio);return D.yield(qtu(),4)}_.Ez(cqq,
3E4);return D.yield(bnL(),0)})};
qtu=function(){return _.M(function(D){if(D.nextAddress==1)return WR.intersectionObserverPresent="IntersectionObserver"in window,WR.serviceWorkerPresent="serviceWorker"in navigator,WR.webSharePresent="share"in navigator,WR.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,WR.cacheStoragePresent="caches"in window,WR.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,WR.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
WR.webkitTemporaryStoragePresent="webkitTemporaryStorage"in tQ&&tQ.webkitTemporaryStorage&&"queryUsageAndQuota"in tQ.webkitTemporaryStorage,WR.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",D.yield(f6f(),2);WR.indexedDbPresent=D.yieldResult;WR.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;WR.broadcastChannelPresent="BroadcastChannel"in window;WR.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(WR.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,WR.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.YI(D)})};
cqq=function(){var D=9E4+Math.random()*2E3;_.x_()>D||(_.g("enable_system_health_primes_monitoring")?XMc():bnL())};
bnL=function(){var D;return _.M(function(v){if(v.nextAddress==1)return v.yield(j8L(),2);D=v.yieldResult;_.jj("systemHealthCaptured",D);_.YI(v)})};
XMc=function(){var D={metric:{}},v=s8c();v.networkEvents.length&&(D.metric.networkEvents=m4A(v));_.jj("systemHealthCaptured",D)};
j8L=function(){var D,v,h,a,Q,G,x,f,C,U;return _.M(function(L){switch(L.nextAddress){case 1:D={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};v=window.screen;_.g("enable_is_extended_monitoring")&&v&&"isExtended"in v&&(D.isExtended=!!v.isExtended);h={metric:{staticContext:Aq4,dynamicContext:D,webMetric:Hnc,webApiSupport:WR}};
if(a=_.wd())h.csn=a;iu&&(h.metric.webMetric.currentHeapKbytes=Math.round(iu.usedJSHeapSize/1E3));window.matchMedia&&(h.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,h.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,h.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in tQ&&typeof tQ.getBattery==="function")){L.jumpTo(2);break}return L.yield(tQ.getBattery(),3);case 3:if(Q=
L.yieldResult)h.metric.dynamicContext.chargingStatus=Q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(h.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(WR.storageEstimatePresent)return L.yield(navigator.storage.estimate(),8);if(!WR.webkitTemporaryStoragePresent){L.jumpTo(5);break}return L.yield(yq4(),7);case 7:G=L.yieldResult;L.jumpTo(5);break;case 8:G=L.yieldResult;case 5:return h.metric.dynamicContext.deviceStorageQuotaMbytes=((x=G)==null?0:x.quota)?String(Math.round(G.quota/
1048576/10)*10):"-1",h.metric.dynamicContext.deviceStorageUsageMbytes=((f=G)==null?0:f.usage)?String(Math.round(G.usage/1048576/10)*10):"-1",C=h.metric.dynamicContext,L.yield(Ytc(),9);case 9:return C.hasAppShell=L.yieldResult,U=s8c(),U.networkEvents.length&&(h.metric.networkEvents=m4A(U)),L.return(h)}})};
yq4=function(){return new Promise(function(D){var v;WR.webkitTemporaryStoragePresent&&(v=tQ.webkitTemporaryStorage)!=null&&v.queryUsageAndQuota?tQ.webkitTemporaryStorage.queryUsageAndQuota(function(h,a){D({usage:h,quota:a})}):D(void 0)})};
_.rT=function(D){D&=16777215;D=[(D&16711680)>>16,(D&65280)>>8,D&255];return wMI(D[0],D[1],D[2])};
_.uu=function(D){D=[(D&16711680)>>>16,(D&65280)>>>8,D&255,(D&4278190080)>>>24];var v=_.ebc(D,function(h){return h==(h&255)});
D[3]=(D[3]/255).toFixed(3);if(!v)throw Error("eg`"+D.join(","));return"rgba("+D.join(",")+")"};
_.n3L=function(D){return[(D&16711680)>>>16,(D&65280)>>>8,D&255]};
_.On7=function(D){D=D.map(function(v){v/=255;return v<=.03928?v/12.92:Math.pow((v+.05)/1.05,2.4)});
return D[0]*.2126+D[1]*.7152+D[2]*.0722};
DW=function(D,v){D=_.n3L(D);return"rgba("+D[0]+", "+D[1]+", "+D[2]+", "+v+")"};
_.KYq=function(){try{return!!self.localStorage}catch(D){return!1}};
WYf=function(){if(Tu4())_.yR(Error("fg"));else{var D=document.createElement("iframe");D.style.display="none";var v=v===void 0?window.location.href:v;var h=_.yx(_.eA("PERSIST_IDENTITY_IFRAME_URL"));v=h?h:(new URL(v)).host.indexOf("studio")===0?_.UV(Rbq,"persist_identity"):_.UV(in8,"persist_identity");_.CzA(D,1,v);D.id="persist_identity";var a;(a=document.body)==null||a.appendChild(D)}};
Tu4=function(){var D=tW8;D||(D=document.querySelector("#persist_identity"));return D};
rqA=function(){var D=!1;try{D=!!window.sessionStorage.getItem("session_logininfo")}catch(v){D=!0}return(_.eA("INNERTUBE_CLIENT_NAME")==="WEB"||_.eA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&D};
uOL=function(D,v){if(!rqA())return!1;v||(v=_.eA("LOGIN_INFO"));return v?(D.session_logininfo=v,!0):!1};
vui=function(D,v){D=D===void 0?!1:D;if((v===void 0||!v)&&DkA!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.nJ("LOG_STICKINESS",!1)){v=_.wd();var h=_.yC(),a={identityStickinessData:{initialState:DkA}};v&&h&&_.$Z(v,h,a)}if(v=Tu4())if(h=v.src?(new URL(v.src)).origin:"*",D){var Q;(Q=v.contentWindow)==null||Q.postMessage({action:"clear"},h)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(D=window.sessionStorage.getItem("session_logininfo"))){var G;(G=v.contentWindow)==null||G.postMessage({loginInfo:D},h)}};
_.vr=function(D){D=D===void 0?!0:D;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.wM("LOGIN_INFO",""),D&&window.sessionStorage.setItem("from_switch_account","1"),vui(!0,D)}catch(v){}};
hzO=function(D){D&&(D.startsWith("https://accounts.google.com/AddSession")?_.vr():D.startsWith("https://accounts.google.com/ServiceLogin")?_.vr():D.startsWith("https://myaccount.google.com")&&_.tN(D).getPath().endsWith("/youtubeoptions")&&_.vr())};
hV=function(D,v){hzO(D);if(_.nJ("LOGGED_IN",!0)&&rqA()){var h=H67(D);h==null&&(h={});uOL(h,v)&&_.Vp(D,h)}};
akc=function(){function D(v){for(v=v.target;v&&v.nodeName!=="A";)if(v=v.parentNode,!(v&&v instanceof HTMLElement))return;if(v&&!v.hasAttribute("download")&&v.getAttribute("rel")!=="external"&&v.href)return v.href}
document.addEventListener("mousedown",function(v){v.button!==0&&(v=D(v))&&hV(v)});
document.addEventListener("click",function(v){(v=D(v))&&hV(v)})};
GGq=function(){var D=new $ku;try{if(_.nJ("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(f){D.increment(5,!1);return}if(_.eA("LOGIN_INFO")){var v=Q_4?Q_4:window.location;_.eA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&WYf();var h=H67(v.href);h==null&&(h={});var a=h.session_logininfo,Q=Number(window.sessionStorage.getItem("stickiness_reload")),G=a===_.eA("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Q>=2||G)Q>=2?D.increment(2,G):G?D.increment(7,G):window.sessionStorage.getItem("session_logininfo")||(D.increment(3,G),DkA="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.eA("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.eA("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))D.increment(4,G),window.sessionStorage.removeItem("stickiness_reload");
else if(Q<2){window.sessionStorage.setItem("stickiness_reload",String(Q+1));var x=v.href;x=_.PU(x,"sttick");hV(x,window.sessionStorage.getItem("session_logininfo"));x=_.vV(x,{sttick:Q});D.increment(Q,G);_.Zf8(v,x)}}else D.increment(6,!1)}else _.vr(!1)}catch(f){}};
_.ay=function(D,v,h,a,Q){v=v===void 0?{}:v;h=h===void 0?"":h;a=a===void 0?window:a;D=_.hO(D,v);hV(D);h=_.nz(D+h,Q);_.Zf8(a.location,h)};
V12=function(D){if(D.urlEndpoint){if(D=_.DX(D.urlEndpoint.url),D.adurl)return VH(D.adurl)}else if(D.watchEndpoint)return"//www.youtube.com/watch?v="+D.watchEndpoint.videoId;return null};
PFf=function(D){if(!D||!D.reportingPings)return null;var v={};D.reportingPings.forEach(function(h){h.pingType in v?v[h.pingType].push(h.url):v[h.pingType]=[h.url]});
return{adpings:sNA(v)}};
_.$U=function(){return{isShellLoad:_.nJ("IS_SHELL_LOAD",!1)}};
M1u=function(){navigator.serviceWorker.getRegistrations().then(function(D){D.forEach(xk7)})};
xk7=function(D){D&&_.fk8(CFA,D.scope)};
_.fk8=function(D,v){v={scope:v||_.FH("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.qf(D),v)};
QT=function(D,v,h,a){if(v&&v.serializedYpcCujLoggingParams){if(h){var Q={};Q.transactionErrorType=h;a&&(Q.errorMessage=a);v.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Q}}}h={};h.ypcCujContext=v;D=_.kV("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",D,h);_.SL(_.JQ(),D,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ouL=function(D,v,h,a){var Q={};Q.serializedTransactionFlowLoggingParams=v;h&&(Q.errorType=h);a&&(Q.errorMessage=a);_.jj(D,Q);_.s5()};
_.FEA=function(D){D&&_.ouL("transactionFlowStarted",D)};
_.zzc=function(D){D&&_.ouL("transactionFlowCancelled",D)};
_.GH=function(D,v,h){v&&_.ouL("transactionFlowFailed",v,D,h)};
Ukc=function(D){var v=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");v&&(v.inert=D)};
_.VT=function(){this.megabloxUrl_=null};
_.Pr=function(D){try{var v=LEc==null?void 0:LEc.composedPath(D)}catch(h){v=D.composedPath?D.composedPath():[]}return v&&v.length>0?v:D.composedPath?D.composedPath():[]};
_.xU=function(D){return _.Pr(D)[0]};
_.Mi=function(D){if(!(D instanceof Element))return null;D=D.classList?Array.from(D.classList):void 0;if(!D)return null;var v=D.indexOf("style-scope");return v>-1&&v+1<D.length?D[v+1]:null};
fZ=function(D){if(!(D instanceof HTMLElement))return null;var v=D&&(D.$$||D.polymerController)?D.tagName.toLowerCase():null;return v?v:_.Mi(D)};
ZE4=function(D,v){return D.replace(/[^a-z]*[^\s]+/g,function(h){return h+".style-scope."+v})};
Eu7=function(D,v){return v?D.split(",").map(function(h){return ZE4(h.trim(),v)}).join(", "):D};
_.CZ=function(D){var v,h,a,Q;return(Q=(a=(h=(v=D.root)!=null?v:D.shadowRoot)!=null?h:D.__shady_native_shadowRoot)!=null?a:D.__shady_shadowRoot)!=null?Q:D};
oy=function(D){return D instanceof ShadowRoot?ShadowRoot:D instanceof DocumentFragment?DocumentFragment:D instanceof Document?Document:HTMLElement};
IkL=function(D){var v,h,a;return(a=(h=(v=D.parentElement)!=null?v:D.__shady_native_parentElement)!=null?h:D.__shady_parentElement)!=null?a:null};
guo=function(D){var v,h,a;return(a=(h=(v=D.parentNode)!=null?v:D.__shady_native_parentNode)!=null?h:D.__shady_parentNode)!=null?a:null};
kGf=function(D){var v,h,a;return(a=(h=(v=D.__shady_parentNode)!=null?v:D.__shady_native_parentNode)!=null?h:D.parentNode)!=null?a:null};
SpO=function(D){var v,h;return(h=(v=guo(D))!=null?v:D.host)!=null?h:null};
JjL=function(D){var v,h,a;return(a=(h=(v=D.nextSibling)!=null?v:D.__shady_native_nextSibling)!=null?h:D.__shady_nextSibling)!=null?a:null};
p$2=function(D){var v,h,a;return(a=(h=(v=D.previousSibling)!=null?v:D.__shady_native_previousSibling)!=null?h:D.__shady_previousSibling)!=null?a:null};
lkL=function(D){var v,h,a;return(a=(h=(v=D.nextElementSibling)!=null?v:D.__shady_native_nextElementSibling)!=null?h:D.__shady_nextElementSibling)!=null?a:null};
Nzc=function(D){var v,h,a;return(a=(h=(v=D.previousElementSibling)!=null?v:D.__shady_native_previousElementSibling)!=null?h:D.__shady_previousElementSibling)!=null?a:null};
Yp8=function(D){var v,h,a;return new Set([].concat(_.j_((v=D.children)!=null?v:[]),_.j_((h=D.__shady_native_children)!=null?h:[]),_.j_((a=D.__shady_children)!=null?a:[])))};
Bzc=function(D){var v,h,a;return new Set([].concat(_.j_((v=D.childNodes)!=null?v:[]),_.j_((h=D.__shady_native_childNodes)!=null?h:[]),_.j_((a=D.__shady_childNodes)!=null?a:[])))};
cjq=function(D){if(!D)return null;var v=_.Mi(D);if(!v){var h;return(h=Node.prototype.getRootNode)==null?void 0:h.call(D)}v=v.toUpperCase();for(D=IkL(D);D&&D.tagName!==v;)D=IkL(D);return D?_.CZ(D):null};
X$L=function(D){for(;D&&!(D instanceof HTMLElement);)D=SpO(D);return D};
Aji=function(D){var v=X$L(D);return D===v?_.Mi(D):v?fZ(v):null};
qpo=function(D){return(D=X$L(D))?fZ(D):null};
bE4=function(D){if(D instanceof Comment)return!1;if(D instanceof Text){var v,h;if(((h=(v=D.textContent)==null?void 0:v.trim())!=null?h:"")==="")return!1}return!0};
FS=function(D,v,h){var a=v(D);for(h=h===void 0?qpo(D):h;a&&(Aji(a)!==h||!bE4(a));)D=a,a=v(D);return a};
dk7=function(D,v,h){if(!v)return null;D=qpo(D);return Aji(v)===D&&bE4(v)?v:FS(v,h,D)};
j_2=function(D){return FS(D,kGf,_.Mi(D))};
s_L=function(D){return FS(D,lkL)};
mkf=function(D){return FS(D,JjL)};
HEO=function(D){return FS(D,Nzc)};
yjO=function(D){return FS(D,p$2)};
w$u=function(D){return dk7(D,D.firstChild||D.__shady_native_firstChild||D.__shady_firstChild||null,JjL)};
ez8=function(D){var v,h,a;var Q=(a=(h=(v=D.firstElementChild)!=null?v:D.__shady_native_firstElementChild)!=null?h:D.__shady_firstElementChild)!=null?a:null;return dk7(D,Q,lkL)};
nu4=function(D){var v,h,a;var Q=(a=(h=(v=D.lastChild)!=null?v:D.__shady_native_lastChild)!=null?h:D.__shady_lastChild)!=null?a:null;return dk7(D,Q,p$2)};
OEc=function(D){var v,h,a;var Q=(a=(h=(v=D.lastElementChild)!=null?v:D.__shady_native_lastElementChild)!=null?h:D.__shady_lastElementChild)!=null?a:null;return dk7(D,Q,Nzc)};
KEf=function(D){var v=qpo(D);return Array.from(Bzc(D)).filter(function(h){return Aji(h)===v})};
Tzc=function(D){var v=fZ(D);return Array.from(Yp8(D)).filter(function(h){return _.Mi(h)===v})};
_.zH=function(D,v,h){if(D instanceof HTMLElement&&_.Mi(D)===h){var a=Array.from(D.classList).indexOf("style-scope");if(a===-1)D.classList.add("style-scope"),D.classList.add(v);else if(!(a+1>=D.classList.length)){a=D.classList[a+1];var Q,G;D==null||(Q=D.classList)==null||(G=Q.replace)==null||G.call(Q,a,v)}}if(D instanceof HTMLElement||D instanceof DocumentFragment)for(Q=_.P(Yp8(D)),G=Q.next();!G.done;G=Q.next())_.zH(G.value,v,h);return D};
UI=function(D,v){if(D instanceof HTMLElement&&_.Mi(D)===v){var h=Array.from(D.classList).indexOf("style-scope");h===-1||h+1>=D.classList.length||D.classList.remove("style-scope",D.classList[h+1])}if(D instanceof HTMLElement||D instanceof DocumentFragment){h=_.P(D.children);for(var a=h.next();!a.done;a=h.next())UI(a.value,v)}return D};
_.Rz8=function(D,v){return oy(D).prototype.appendChild.call(D,v)};
iEo=function(D,v){if(D===v)return!0;D=Bzc(D);return Array.from(D).some(function(h){return iEo(h,v)})};
_.ZW=function(D,v){if(D instanceof LZ)return D;(v==null?0:v.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(D,"ownerDocument")&&Object.defineProperty(D,"ownerDocument",{get:function(){return window.document}});
return new LZ(D)};
t12=function(){var D=LZ.prototype,v=[].concat(_.j_(WEr?[]:["getRootNode"]),["setAttribute","removeAttribute"]);v=_.P(v);for(var h=v.next(),a={};!h.done;a={method$jscomp$51:void 0},h=v.next())a.method$jscomp$51=h.value,D[a.method$jscomp$51]=function(Q){return function(){return this.host[Q.method$jscomp$51].apply(this.host,arguments)}}(a)};
uE8=function(){var D=LZ.prototype,v=[].concat(_.j_(WEr?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.j_(rjO?[]:["querySelector","querySelectorAll"]));v=_.P(v);for(var h=v.next(),a={};!h.done;a={method$jscomp$52:void 0},h=v.next())a.method$jscomp$52=h.value,D[a.method$jscomp$52]=function(Q){return function(){return this.root[Q.method$jscomp$52].apply(this.root,arguments)}}(a)};
hRO=function(){var D=LZ.prototype,v=[].concat(_.j_(DN4?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.j_(vbc?[]:["parentNode"]));v=_.P(v);for(var h=v.next(),a={};!h.done;a={prop$jscomp$63:void 0},h=v.next())a.prop$jscomp$63=h.value,Object.defineProperty(D,a.prop$jscomp$63,{get:function(Q){return function(){return this.host[Q.prop$jscomp$63]}}(a),
configurable:!0})};
Q6I=function(){var D=LZ.prototype,v=["activeElement"].concat(_.j_(DN4?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.j_(ahL?[]:["children"]),_.j_($NO?[]:["lastChild"]));v=_.P(v);for(var h=v.next(),a={};!h.done;a={prop$jscomp$64:void 0},h=v.next())a.prop$jscomp$64=h.value,Object.defineProperty(D,a.prop$jscomp$64,{get:function(Q){return function(){return this.root[Q.prop$jscomp$64]}}(a),
configurable:!0})};
GIo=function(){for(var D=LZ.prototype,v=_.P(["innerHTML","textContent"]),h=v.next(),a={};!h.done;a={prop$jscomp$65:void 0},h=v.next())a.prop$jscomp$65=h.value,Object.defineProperty(D,a.prop$jscomp$65,{get:function(Q){return function(){return this.root[Q.prop$jscomp$65]}}(a),
set:function(Q){return function(G){this.root[Q.prop$jscomp$65]=G}}(a),
configurable:!0})};
Vl2=function(D){var v=LZ.prototype;D=_.P(Object.entries(D));for(var h=D.next(),a={};!h.done;a={fn$jscomp$402:void 0},h=D.next()){var Q=_.P(h.value);h=Q.next().value;Q=Q.next().value;a.fn$jscomp$402=Q;v[h]=function(G){return function(){return G.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.j_(arguments)))}}(a)}};
xN7=function(){for(var D=LZ.prototype,v=_.P(Object.entries(Pvi)),h=v.next(),a={};!h.done;a={fn$jscomp$403:void 0},h=v.next()){var Q=_.P(h.value);h=Q.next().value;Q=Q.next().value;a.fn$jscomp$403=Q;Object.defineProperty(D,h,{get:function(G){return function(){return G.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.j_(arguments)))}}(a),
configurable:!0})}};
_.EI=function(D){return D instanceof Mlf||D instanceof Document?D:new Mlf(D)};
fhA=function(){for(var D=Mlf.prototype,v=_.P("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),h=v.next(),a={};!h.done;a={method$jscomp$53:void 0},h=v.next())a.method$jscomp$53=h.value,D[a.method$jscomp$53]=function(Q){return function(){return HTMLElement.prototype[Q.method$jscomp$53].call.apply(HTMLElement.prototype[Q.method$jscomp$53],[this.node].concat(_.j_(arguments)))}}(a)};
Cvq=function(){for(var D=Mlf.prototype,v=_.P("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),h=v.next(),a={};!h.done;a={prop$jscomp$66:void 0},h=v.next())a.prop$jscomp$66=h.value,Object.defineProperty(D,a.prop$jscomp$66,{get:function(Q){return function(){var G;return(G=this.node["__shady_native_"+Q.prop$jscomp$66])!=null?G:this.node[Q.prop$jscomp$66]}}(a),
configurable:!0})};
_.Iy=function(D,v,h){h===void 0&&(h=!D.classList.contains(v));h?D.classList.add(v):D.classList.remove(v)};
_.gx=function(D,v,h){h===void 0&&(h=!D.hasAttribute(v));if(v==="class")throw Error("kg");h?_.EI(D).setAttribute(v,""):_.EI(D).removeAttribute(v)};
obq=function(D){return(D.localName!=="slot"?[]:(0,_.kU)(D).assignedNodes({flatten:!0})).filter(function(v){return v.nodeType===Node.ELEMENT_NODE})};
_.FiO=function(D){return(D=_.ZW(D).querySelector("slot"))&&D.localName==="slot"?obq(D):[]};
_.SB=function(D,v){window.ShadyCSS&&window.ShadyCSS.styleSubtree(D,v)};
JV=function(D,v){var h=v.bind(D);return function(a){h(a,a.detail)}};
_.pZ=function(D,v){var h=zRL.get(D);h||(h=new WeakMap,zRL.set(D,h));if(h.has(v))return h.get(v);if(_.g("web_fi_listen_disable_bound_fn_helper")){var a=v.bind(D);D=function(Q){a(Q,Q==null?void 0:Q.detail)}}else D=JV(D,v);
h.set(v,D);return D};
ZUc=function(D,v){UNf(D);D.created[Li2].push(v)};
UNf=function(D){if(!D.created||!D.created[Li2]){var v=D.created,h=v?[v]:[];D.created=function(){for(var a=_.P(h),Q=a.next();!Q.done;Q=a.next())Q.value.apply(this)};
D.created[Li2]=h}};
EbL=function(D){return function(){var v=_.Kz.apply(0,arguments);return function(h,a,Q){D.apply(null,_.j_(v))(h,a,Q)}}};
IhI=function(){return function(){var D=_.Kz.apply(0,arguments);return function(v,h,a){aBI.apply(null,_.j_(D))(v,h,a)}}};
_.l=function(D){return IhI()(D)};
_.N=function(){return EbL(VZc).apply(null,_.j_(_.Kz.apply(0,arguments)))};
_.lc=function(D){return _.g("pbcm_fi_listen_decorators")?gb2(D):EbL(QII)(D)};
gb2=function(D){return function(v,h){ZUc(v,function(){var a=this[h],Q=_.g("web_fi_listen_disable_bound_fn_helper")?function(G){a(G,G.detail)}.bind(this):JV(this,a);
kI7.has(D)?mK(this.hostElement,D,Q):this.hostElement.addEventListener(D,Q)})}};
_.Ni=function(){return EbL(Gr4).apply(null,_.j_(_.Kz.apply(0,arguments)))};
_.Y=function(D){D=D===void 0?{}:D;return EbL($E7)(D)};
_.YU=function(D){if(D.hostElement&&D!==D.hostElement){var v=_.qc(D.hostElement);v=D.renderIdom?v:v.shadowRoot}v||(D=D.root,v=D instanceof Node?_.qc(D):null);return v};
_.Br=function(D){return SC2?J6c(D):function(v,h){Object.defineProperty(v,h,{get:function(){var a;return(a=_.YU(this))==null?void 0:a.querySelector(D)},
enumerable:!0,configurable:!0})}};
J6c=function(D){return function(v,h){Object.defineProperty(v,h,{get:function(){var a,Q=(a=_.ZW(this.hostElement))==null?void 0:a.querySelector(D);if(Q)return Q;var G;return(G=_.YU(this))==null?void 0:G.querySelector(D)},
enumerable:!0,configurable:!0})}};
_.cr=function(D){return SC2?pjA(D):function(v,h){Object.defineProperty(v,h,{get:function(){var a;return(a=_.YU(this))==null?void 0:a.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
pjA=function(D){return function(v,h){Object.defineProperty(v,h,{get:function(){var a,Q=(a=_.ZW(this.hostElement))==null?void 0:a.querySelectorAll(D);if(Q==null?0:Q.length)return Q;var G;return(G=_.YU(this))==null?void 0:G.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
lhc=function(D){return function(v){if(![_.VC,_.c].includes(Object.getPrototypeOf(v.prototype).constructor))throw Error("lg");iWI(Object.assign({},typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(v)}};
_.AV=function(){var D=D===void 0?{}:D;return function(v){if(![PT,_.XS].includes(Object.getPrototypeOf(v.prototype).constructor))throw Error("mg");WTf(Object.assign({},D,{disableInheritanceCheck:!0}))(v)}};
YC8=function(D,v){N68[D]!=null||(N68[D]=new Set);N68[D].add(v)};
_.qi=function(){var D=_.Ni.apply(null,_.j_(_.Kz.apply(0,arguments)));return function(v,h){YC8(v.is,h);D(v,h)}};
jB=function(D,v,h){if(bc(D)&&!B6f.has(v)){v=v.replace(/^JSC\$[\d]+_/,"");v=v.replace(/\.\d+(\.|$)/g,function(G,x){return".#"+x});
dx[D]!=null||(dx[D]={});var a,Q;(a=dx[D])[Q=v]!=null||(a[Q]=new Set);dx[D][v].has(h)||(dx[D][v].add(h),_.jj("polymerPropertyAccessEvent",{componentName:D,propertyName:v,accessType:h}))}};
c6A=function(){return _.g("polymer_property_access_logging_debug")||_.g("polymer_enable_property_access_logging")};
bc=function(D){if(_.g("polymer_property_access_logging_debug"))return!0;if(!_.g("polymer_enable_property_access_logging"))return!1;Xjq||(Xjq=Date.now());return(WT(D)+Xjq)%100<_.oZ("polymer_property_access_logging_percent")};
A6O=function(D,v){return bc(v)&&D.hostElement.loggingStatus?new Proxy(D,{get:function(h,a,Q){if(h.hostElement.loggingStatus.bypassProxyController)return h[a];h.hostElement.loggingStatus.isExternalGet=!0;var G=h[a];h.hostElement.loggingStatus.isExternalGet=!1;if(G instanceof Function)return function(){var x=_.Kz.apply(0,arguments);try{return h.hostElement.loggingStatus.currentExternalCall=a,jB(v,a,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),G.apply(this===Q?h:this,x)}finally{h.hostElement.loggingStatus.currentExternalCall=
void 0}};
jB(v,a,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return G},
set:function(h,a,Q){if(h.hostElement.loggingStatus.bypassProxyController)return h[a]=Q,!0;h.hostElement.loggingStatus.isRendererStamper?jB(v,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):h.hostElement.loggingStatus.isDeclarativeExternal||jB(v,a,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{h.hostElement.loggingStatus.currentExternalSet=a,h[a]=Q}finally{h.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):D};
qCc=function(D,v){D&&D.loggingStatus&&!D.loggingStatus.isDeclarativeExternal&&!D.loggingStatus.isExternalGet&&D.loggingStatus.currentExternalSet!==v&&jB(D.tagName.toLowerCase(),v,"PROPERTY_ACCESS_GET_INTERNAL")};
sI=function(D,v,h){D&&(h||D.loggingStatus&&!D.loggingStatus.isInitializing&&!D.loggingStatus.isDefiningPropertyAccessor&&D.loggingStatus.currentExternalSet!==v)&&jB(D.tagName.toLowerCase(),v,"PROPERTY_ACCESS_SET_INTERNAL")};
bU2=function(){return{_definePropertyAccessor:function(D,v){var h=this,a=h.hostElement.loggingStatus;a&&(a.isDefiningPropertyAccessor=!0);var Q=h[D];Q!==void 0&&(h.__data?h._setPendingProperty(D,Q):(h.__dataProto!=null||(h.__dataProto={}),h.__dataProto[D]=Q));a&&(a.isDefiningPropertyAccessor=!1);Object.defineProperty(this,D,{get:function(){qCc(h.hostElement,D);return this.__data[D]},
set:function(G){v||this._setPendingProperty(D,G,!0)&&this._invalidateProperties()}})},
created:function(){var D=this._setPendingProperty.bind(this);this._setPendingProperty=function(v,h,a){sI(this.hostElement,v);return D.apply(this,[v,h,a])}}}};
dNf=function(D){c6A()&&_.l(mg.prototype)(D.prototype,"__templateBindingLoggingBehavior")};
j6q=function(D,v){if(v.resolvedFactories.length!==D.resolvedFactories.length)return!0;v=_.P(v.resolvedFactories.entries());for(var h=v.next();!h.done;h=v.next()){var a=_.P(h.value);h=a.next().value;a=a.next().value;if(a.providerClass){if(a.providerClass!==D.resolvedFactories[h].providerClass)return!0}else if(a.providerValue){if(a.providerValue!==D.resolvedFactories[h].providerValue)return!0}else if(a.factory!==D.resolvedFactories[h].factory)return!0}return!1};
s6L=function(D,v){D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,h.constructor===Array)s6L(h,v);else{var a=v;a.has(h)||(h.inject&&a.add(h),h.behaviors&&s6L(h.behaviors,a))}};
Hr=function(D,v){var h=D[v];D[v]=function(){var a=_.Kz.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(h)return h.apply(this,a)}};
wji=function(){_.yT.Class=function(h,a){h=mNc(h,a);Hr(h.prototype,"created");return h};
Hr(nZ.prototype,"_initializeProperties");Hr(_.OI.prototype,"_initializeProperties");if(HUc)Hr(y6A,"created");else{var D=function(){Hr(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))D();else{var v=customElements.define;customElements.define=function(h,a,Q){v.call(customElements,h,a,Q);h==="tp-yt-iron-list"&&(D(),customElements.define=v)}}}};
nbq=function(D,v){D.prototype.behaviors=D.prototype.behaviors||[];D.prototype.behaviors.unshift(eRA.InjectBehavior);D.prototype.provide=v};
_.Ry=function(D){return function(v){if(!D.disableElementRegistration){D.noInjection||nbq(v,D.providers);var h=v.prototype;h.__templateHelpers||aBI(KZ.prototype)(h,"__templateHelpers");h=D.is;OUf||(OUf=Date.now());(WT(h)+OUf)%100<_.oZ("polymer_log_prop_change_observer_percent")&&aBI(TH.prototype)(v.prototype,"__propertyObserverObserver");v.prototype.behaviors=v.prototype.behaviors||[];v.prototype.behaviors.unshift(_.KiO.YtHostElementBehavior);dNf(v);lhc({is:D.is,notifyObserversOnUndefined:D.notifyObserversOnUndefined!==
!1,fastInit:D.fastInit,template:D.template,disableEnforceFastDefaultValuesCheck:!0})(v)}}};
_.m=function(D){return _.Ry({is:D.is,template:D.template,disableElementRegistration:D.disableElementRegistration,cssBuildOptOut:D.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
iU7=function(D,v){if(T64){D=new D;for(var h=_.P(Object.getOwnPropertyNames(D)),a=h.next();!a.done;a=h.next())a=a.value,v[a]=D[a];for(h=v;h&&h!==Object.prototype;h=Object.getPrototypeOf(h)){a=_.P(Object.getOwnPropertyNames(h));for(var Q=a.next();!Q.done;Q=a.next())Q=Q.value,D.hasOwnProperty(Q)||Object.defineProperty(D,Q,RRc(v,Q))}}else D.apply(v)};
RRc=function(D,v){return{get:function(){var h=D[v];return h instanceof Function?h.bind(D):h},
set:function(h){D[v]=h}}};
tl4=function(D,v){for(var h=D._noAccessors,a=_.P(Object.getOwnPropertyNames(D)),Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,!WiA.has(Q))if(h)v[Q]=D[Q];else{var G=Object.getOwnPropertyDescriptor(D,Q);G&&(G.configurable=!0,Object.defineProperty(v,Q,G))}};
r68=function(D,v,h){return function(a){if(h){var Q=h();a.model=Q}if(D[v])D[v](a,a.detail)}};
ic=function(D){var v=[];if(typeof D==="string")D.length>0&&v.push.apply(v,_.j_(D.split(".")));else{D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,typeof h==="string"?v.push.apply(v,_.j_(h.split("."))):v.push(h)}return v};
uNu=function(D,v){if(v[v.length-1]!=="*"&&v[v.length-1]!=="splices"){for(var h=0;h<v.length;h++){if(!D)return;D=D[v[h]]}return D}};
D0c=function(D,v){if(D.length>v.length)return!1;for(var h=0;h<D.length;h++)if(D[h]!==v[h])return!1;return!0};
h9L=function(D,v,h){if(v.type==="compute"){var a=v.getter.bind(h);var Q=v.args}else a=function(){return h[v.method.methodName].apply(h,_.j_(_.Kz.apply(0,arguments)))},Q=v.method.args;
vvc(D,v.propertyKey,a,Q,v.value)};
$0u=function(D,v){if(v.readOnly){var h=Object.getOwnPropertyDescriptor(D.model,v.propertyKey);Object.defineProperty(D.model,v.propertyKey,{get:h.get,set:function(){}});
D.model[aRI(v.propertyKey)]=h.set}};
Qb8=function(D,v,h){if(h){var a=v.propertyKey,Q=v.selector;v=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.j_(v.selectorArgs.map(function(G){return{type:"path",path:G}})));
vvc(D,a,function(G){var x=_.Kz.apply(1,arguments);return Q.apply(null,[h.getState()].concat(_.j_(x)))},v)}};
VKc=function(D,v,h){var a=_.pm(v.propertyKey)+"-changed";Gj4(D,function(Q){var G={value:Q.value,queueProperty:!0};Q.path.split(".").length>1&&(G.path=Q.path);h.dispatchEvent(new CustomEvent(a,{detail:G}))},[{type:"wildcard",
path:v.propertyKey}])};
PRu=function(D,v,h){Gj4(D,function(){h[v.method.methodName].apply(h,_.j_(_.Kz.apply(0,arguments)))},v.method.args)};
aRI=function(D){return"_set"+(D.charAt(0).toUpperCase()+D.slice(1))};
x0o=function(){var D,v=jM(function(h){D=h},!1);
return[D,v]};
F82=function(D){D=D.trim().replace(MKO,",").replace(fRL,"$1");var v=D[0];v==="-"&&(v=D[1]);if(v>="0"&&v<="9")return{type:"literal",value:Number(D)};if(v==="'"||v==='"')return{type:"literal",value:D.slice(1,-1)};if(v=D.match(CRc)){v=v[1];var h=ov7[v];if(h)return{type:h,path:D.slice(0,-(v.length+1))}}return{type:"path",path:D}};
ZIA=function(D){var v=D.match(z9f);if(v)return D={methodName:v[1],args:U0A},v[2].trim()&&(v=v[2].replace(L8L,"&comma;").split(","),D.args=v.map(F82)),D};
Evo=function(D,v,h,a){a=a===void 0?!1:a;v=_.pm(v);var Q=Nb;Q&&(h=Q(h,v,"attribute",D));Wr(D,h,v,a)};
Wr=function(D,v,h,a){v=IR4(v,a===void 0?!1:a);v===void 0?D.removeAttribute(h):D.setAttribute(h,v)};
IR4=function(D,v){switch(typeof D){case "object":case "function":if(D instanceof Date)return D.toString();if(D){if((v===void 0?0:v)&&!_.g("polymer_reflect_objects_as_boolean_killswitch"))return D?"":void 0;v=window.trustedTypes?window.trustedTypes.isHTML(D)||window.trustedTypes.isScript(D)||window.trustedTypes.isScriptURL(D):void 0;if(v)return D;try{return JSON.stringify(D)}catch(h){_.yR(Error("Ig`"+D))}}break;case "boolean":return D?"":void 0;default:return D!==null&&D!==void 0?D.toString():void 0}};
gv8=function(D){if(D===void 0)throw Error("Jg");return D};
lRo=function(D,v,h,a){var Q=kji(a);if(Q.length){a=h;var G="property";SDI.test(h)?G="attribute":h[h.length-1]==="$"&&(h=h.slice(0,-1),G="attribute");var x=Jfu(Q);x&&G==="attribute"&&(h==="class"&&D.hasAttribute("class")&&(x+=" "+D.getAttribute(h)),Wr(D,x,h));G==="attribute"&&a==="disable-upgrade$"&&D.setAttribute("disable-upgrade","");D.localName==="input"&&a==="value"&&D.setAttribute("value","");D.removeAttribute(a);G==="property"&&(h=_.l4(h));v=gv8(v);p_c(v,G,h,Q);return!0}return h.slice(0,3)===
"on-"?(D.removeAttribute(h),(G=v).events!=null||(G.events=[]),v.events.push({name:h.slice(3),value:a}),!0):h==="id"?(v.id=a,!0):!1};
kji=function(D){for(var v=[],h=0,a;(a=NSi.exec(D))!==null;){a.index>h&&v.push({type:"literal",value:D.slice(h,a.index)});var Q=a[1][0];h=!!a[2];a=a[3].trim();if(Q==="{")throw Error("Kg");(Q=ZIA(a))?v.push({type:"method",negate:h,signature:Q}):v.push({type:"path",negate:h,path:a});h=NSi.lastIndex}h&&h<D.length&&(D=D.substring(h))&&v.push({type:"literal",value:D});return v};
Jfu=function(D){for(var v="",h=0;h<D.length;h++){var a=D[h];a.type==="literal"&&(v+=a.value)}return v};
p_c=function(D,v,h,a){D.bindings!=null||(D.bindings=[]);D.bindings.push({kind:v,target:h,parts:a})};
AfI=function(D,v,h){var a=!1;if(D.localName==="template"){a=h;var Q=v.stripWhitespace;Q=YDA(D,Q===void 0?!1:Q);var G=D.content.ownerDocument.createDocumentFragment();Q.content=G;G.appendChild(D.content);a&&(a.templateInfo=Q);a=!0}else D.localName==="slot"&&(v.hasInsertionPoint=!0);if(D.firstChild&&(Q=h,D.localName!=="script"&&D.localName!=="style")){G=0;for(var x=D.firstChild;x;){var f=x;if(f.localName==="template"){var C=f.getAttribute("is");if((x=C==="dom-if")||C==="dom-repeat"){f.removeAttribute("is");
C=f.ownerDocument.createElement("ps-"+C);f.parentNode.replaceChild(C,f);C.appendChild(f);var U=Array.from(f.attributes);U=_.P(U);for(var L=U.next();!L.done;L=U.next())L=L.value,x?BS4.has(L.name)&&Wr(C,L.value,L.name):cfo.has(L.name)?Wr(C,L.value,L.name):X_I.has(L.name),f.removeAttribute(L.name);x=C}else x=f}if(x.nodeType===Node.TEXT_NODE){f=void 0;C=D;for(U=x;((f=U.nextSibling)==null?void 0:f.nodeType)===Node.TEXT_NODE;)L=void 0,(L=U).textContent!=null||(L.textContent=""),U.nextSibling.textContent&&
(U.textContent+=U.nextSibling.textContent),C.removeChild(U.nextSibling);if(v.stripWhitespace&&x.textContent&&!x.textContent.trim()){D.removeChild(x);x=x.nextSibling;continue}}AfI(x,v,{parentIndex:G,parentInfo:Q});x.parentNode&&G++;x=x.nextSibling}}var Z;if((Z=D.hasAttributes)==null?0:Z.call(D)){Z=h=gv8(h);Q=!1;G=Array.from(D.attributes);G=_.P(G);for(f=G.next();!f.done;f=G.next())f=f.value,Q=lRo(D,Z,f.name,f.value)||Q;a=Q||a}D.nodeType===Node.TEXT_NODE&&(Z=kji(D.textContent),Z.length&&(D.textContent=
Jfu(Z)||" ",h=gv8(h),p_c(h,"text","textContent",Z),a=!0));h&&a&&(h.infoIndex=v.nodeInfoList.push(h)-1)};
YDA=function(D,v){v={nodeInfoList:[],stripWhitespace:(v===void 0?!1:v)||D.hasAttribute("strip-whitespace")};AfI(D.content,v);return v};
qDI=function(D){Object.assign(D,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
d0u=function(D,v,h){v.signalCache!=null||(v.signalCache={});var a=v.signalCache[h];if(!a){var Q=h.split(".");a=!bI2(D,Q[0]);if(Q.length>1&&a){var G=D.getPathMutationSignal(Q);a=function(){var x=Hl(D.owner,function(){return D.getWithPath([Q[0]])}),f,C=(f=G())==null?void 0:f.value;
return{rootWasDefined:x!==void 0,value:C}}}else a=function(){var x=D.getWithPath(Q);
return{rootWasDefined:x!==void 0,value:x}};
v.signalCache[h]=a}return a()};
sbc=function(D,v,h,a,Q){v=v.parts.map(function(x,f){if(x.type==="literal"){h.partWasDefined!=null||(h.partWasDefined=[]);var C;(C=h.partWasDefined)[f]||(C[f]=x.value!==void 0);return x.value}var U;if(x.type==="method"){var L,Z=(L=(U=h.partWasDefined)==null?void 0:U[f])!=null?L:!1;Z||(Z=x.signature.args.every(function(S){return S.type==="literal"}));
var E=!1,I=!0;U=x.signature.args.map(function(S){if(S.type==="literal")return S.value;if(S.type!=="path")throw Error("Lg`"+S.type);var B=d0u(D,h,S.path);S=B.value;B=B.rootWasDefined;E||(E=B);I&&(I=B);return S});
Z||(Z=Q===1?I:E);h.partWasDefined!=null||(h.partWasDefined={});h.partWasDefined[f]=Z;if(!Z)return;U=(f=d0u(D,h,x.signature.methodName).value)&&typeof f==="function"?f.apply(a,U):void 0}else L=d0u(D,h,x.path),U=L.value,h.partWasDefined!=null||(h.partWasDefined={}),(Z=h.partWasDefined)[f]||(Z[f]=U!==void 0||L.rootWasDefined);x.negate&&(U=!U);return U});
if(v.length===1){var G;return((G=h.partWasDefined)==null?0:G[0])?v[0]:jbL}return v.join("")};
m0i=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D&&"canNotifyPath"in D};
HII=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D};
yf7=function(D){return"polymerController"in D};
w_i=function(D,v){v=""+ic(v)[0];if(m0i(D))return D.canNotifyPath(v);if(yf7(D)&&m0i(D.polymerController))return D.polymerController.canNotifyPath(v);if(HII(D)){var h;return!((h=D.properties)==null||!h[v])}if(yf7(D)&&HII(D.polymerController)){var a;return!((a=D.polymerController.properties)==null||!a[v])}return!1};
e97=function(D,v,h){m0i(D)||HII(D)?D.notifyPath(v,h):yf7(D)&&(m0i(D.polymerController)||HII(D.polymerController))&&D.polymerController.notifyPath(v,h)};
OIO=function(D,v,h){if(h!==jbL){D.kind==="attribute"||D.target!=="textContent"&&(D.target!=="value"||v.localName!=="input"&&v.localName!=="textarea")||(h=h===void 0?"":h);var a,Q=(a=nvL.Polymer)==null?void 0:a.sanitizeDOMValue;Q&&(h=Q(h,D.target,D.kind,v));if(D.kind==="attribute"){D=D.target;if(D==="class"||D==="name"||D==="slot")v=(0,_.kU)(v);Wr(v,h,D)}else if(D=D.target,h!==v[D]||typeof h==="object")v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!0,jB(v.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
v[D]=h,v.loggingStatus&&(v.loggingStatus.isDeclarativeExternal=!1)}};
K88=function(D,v,h,a){var Q=v.parts[0];if(v.parts.length!==1||Q.type!=="path"||!w_i(h,v.target))return!1;var G=_.P(Q.path.split(".")),x=G.next().value,f=au(G);if(bI2(D,x))return!1;a.signalCache!=null||(a.signalCache={});G=a.signalCache[Q.path];var C;G=(C=G)==null?void 0:C().value;if((G==null?void 0:G.path)!==void 0){a=ic(G.path);var U=ic(Q.path);a=[v.target].concat(_.j_(a.slice(U.length-1)));e97(h,a,Q.negate?!G.value:G.value);return!0}var L=tV(D,x);var Z=L.getChangeRecordSignal(f),E=!1;G=function(){if(!E){var S=
Hl(D.owner,function(){return L.getWithPath([])});
E||(E=S!==void 0)}return{value:Z(),rootWasDefined:E}};
a.signalCache[Q.path]=G;a.partWasDefined!=null||(a.partWasDefined={});G=G();(U=a.partWasDefined)[0]||(U[0]=G.rootWasDefined);var I=Hl(D.owner,function(){return L.getWithPath(f)});
a.partWasDefined[0]&&Hl(D.owner,function(){return void OIO(v,h,Q.negate?!I:I)});
return!0};
TS8=function(D,v,h,a,Q,G){if(!K88(D,v,h,a)){var x=sbc(D,v,a,Q,G);Hl(D.owner,function(){return void OIO(v,h,x)})}};
R97=function(D,v,h,a,Q,G){h=_.P(h);for(var x=h.next(),f={};!x.done;f={infoIndex:void 0},x=h.next()){x=x.value;var C=x.bindings;f.infoIndex=x.infoIndex;x=x.parentInfo;if(C){C=_.P(C);for(var U=C.next(),L={};!U.done;L={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},U=C.next()){L.b$jscomp$254=U.value;if(f.infoIndex===void 0)throw Error("Mg");L.bindingCtx$jscomp$4={};D.effect(function(Z,E){return function(){Q&&!Q()||TS8(D,Z.b$jscomp$254,v[E.infoIndex],Z.bindingCtx$jscomp$4,a,G)}}(L,f))}}x&&R97(D,v,[x],
a,Q,G)}};
iI7=function(D,v){D=(v.parentInfo?iI7(D,v.parentInfo):D).firstChild;for(var h=0;D;D=D.nextSibling)if(v.parentIndex===h++)return D;throw Error("Ng");};
tKi=function(D,v,h,a){D=document.importNode(D.content,!0);D.__noInsertionPoint=!(a==null?0:a.hasInsertionPoint);for(var Q=Array(v.length),G={},x=0;x<v.length;x++){var f=v[x],C=iI7(D,f);Q[x]=C;f.id&&(G[f.id]=C);if(f.templateInfo){var U=C.parentElement;U&&(U.templateInfo=f.templateInfo,U.parentSignalProxy=h,U.eventListenerHost=a.eventListenerHost,U.stampingEnabled=a.enabledSignal)}U=void 0;if((U=f.events)==null?0:U.length)for(U=0;U<f.events.length;U++){var L=f.events[U];W8c(a.eventListenerHost,C,L.name,
L.value,a.getModel)}}R97(h,Q,v,a.thisCtx,a.enabledSignal,a.methodInvocationRequirement);return{root:D,nodes:Q,nodesById:G}};
uRc=function(D,v){D=D();var h;(h=rfq.ShadyCSS)==null||h.prepareTemplate(D,v);v=YDA(D);return{template:D,nodeInfoList:v.nodeInfoList,hasInsertionPoint:v.hasInsertionPoint}};
hYA=function(){Dz4=!1;for(var D=rx.length,v=0;v<D;v++){var h=rx[v];if(h)try{h()}catch(a){Promise.resolve().then(function(){throw a;})}}rx.splice(0,D);
vxq+=D};
GZq=function(D){Dz4||(Dz4=!0,ad4.textContent=($zL++).toString());rx.push(D);return QjA++};
_.hD=function(D,v,h){uc++;D=v?new Vso(uc,D,v,h):new PIo(uc,D);Dp.set(uc,D);return uc};
xzc=function(D){(D=Dp.get(D))&&D.cancel()};
fdu=function(D,v){D=Mso.get(D);return D?(v=D.get(v))?v:null:null};
_.aq=function(D,v,h,a){var Q=fdu(D,v);if(!Q){Q=new CIA;var G=Mso.get(D);G||(G=new Map,Mso.set(D,G));G.set(v,Q)}D=h.bind(D);Q.run(D,a,void 0)};
_.oxf=function(D,v){var h;(h=fdu(D,v))==null||h.cancel()};
F0i=function(D){var v;(v=fdu(D,"doRender"))==null||v.flush()};
$t=function(D){var v;return(v=D.hostElement)!=null?v:D};
zYc=function(D){var v=D.indexOf(".");return v===-1?D:D.slice(0,v)};
Uzq=function(D,v,h,a,Q,G){G=(Q=(a=G?zYc(v):v)?v:null)?D.get(Q):D.__data[v];Q&&G===void 0&&(G=h[v]);_.F1(D.hostElement,j5r(a)+"-changed",{value:G,queueProperty:!0,path:Q!=null?Q:void 0},{bubbles:!1,composed:!1})};
L0c=function(D,v){D.__isReflecting=!0;Evo(D.hostElement,v,D.__data[v]);D.__isReflecting=!1};
ZN2=function(D){if(D._onIronRequestResizeNotifications){var v=D._onIronRequestResizeNotifications.bind(D);D._onIronRequestResizeNotifications=function(h){_.xU(h)!==D.hostElement&&v(h)}}D._ariaActiveAttributeChanged&&(D._ariaActiveAttributeChanged=D._ariaActiveAttributeChanged.bind(D.hostElement));
D._activeChanged&&(D._activeChanged=function(h){D.toggles?Wr(D.hostElement,h?"true":"false",D.ariaActiveAttribute):D.hostElement.removeAttribute(D.ariaActiveAttribute);D._changedButtonState()});
D._asyncClick&&(D._asyncClick=function(){_.hD(function(){D.hostElement.click()},1)});
!D.keyEventTarget||D.keyEventTarget instanceof EventTarget||(D.keyEventTarget=$t(D.keyEventTarget));D._disabledChanged&&(D._disabledChanged=D._disabledChanged.bind(D.hostElement));D._observeItems&&(D._observeItems=function(h){var a=$t(h);return _.qc(a).observeNodes(function(Q){D._updateItems();D._updateSelected();_.F1(a,"iron-items-changed",Q,{bubbles:!1,cancelable:!1})})});
D._updateItems&&D._updateItems===_.Qs._updateItems&&(D._updateItems=function(){var h=_.qc(D.hostElement).queryDistributedElements(D.selectable||"*");h=Array.prototype.filter.call(h,D._bindFilterItem);D._setItems(h)});
D._computeKeyboardClass&&(D._computeKeyboardClass=function(h){_.Iy(D.hostElement,"keyboard-focus",h)});
D.ensureRipple&&(D.ensureRipple=function(h){if(D.hasRipple&&!D.hasRipple()){if(!D._createRipple)return;D._ripple=D._createRipple();D._ripple.noink=D.noink;var a=D._rippleContainer||D.hostElement;a&&_.ZW(a).appendChild(D._ripple)}var Q;if(h&&((Q=D._ripple)==null?0:Q.uiDownAction)){a=_.ZW(D._rippleContainer||D.hostElement);var G;Q=(G=h.composedPath())==null?void 0:G[0];a.contains(Q)&&D._ripple.uiDownAction(h)}});
D._updateMultiselectable&&(D._updateMultiselectable=function(h){h?D.hostElement.setAttribute("aria-multiselectable","true"):D.hostElement.removeAttribute("aria-multiselectable")})};
Exc=function(D,v,h){h=_.P(h);for(var a=h.next();!a.done;a=h.next())iU7(a.value.constructor,D);iU7(v.constructor,D)};
gx7=function(D,v){D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,h.type==="signal"){var a=h.propertyKey;if(v.hasOwnProperty(a)&&v[a]!=null&&h.attributeType===Object){a:{a=v[a].constructor;for(var Q=_.P(IdL),G=Q.next();!G.done;G=Q.next())if(G=G.value,a===G){a=G;break a}a=Object}h.attributeType=a}}};
kZO=function(){};
STc=function(D){var v;return(v=D.hostElement)!=null?v:D};
J0o=function(){throw Error("Rg");};
pHc=function(D,v){D.constructor.prototype.useSignals=!0;var h=new D.constructor;Exc(h,D,v.behaviors);gx7(v.reactiveSchemas,h);h={};for(var a=_.P(v.reactiveSchemas),Q=a.next();!Q.done;Q=a.next())Q=Q.value,Q.type==="signal"&&(h[Q.propertyKey]=Q.attributeType);var G={copyPropertiesToProto:J0o,didRegister:!1,typesForSignals:h},x=["disable-upgrade"].concat(_.j_(v.observedAttributes)),f=function(C){Gz.call(this,D,v,G,C)};
_.J(f,Gz);_.GT.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return x}}});
G.copyPropertiesToProto=function(){for(var C=0;C<v.behaviors.length;C++)tl4(v.behaviors[C],f.prototype);tl4(D,f.prototype)};
v.legacyOptimizations||G.copyPropertiesToProto();f.prototype.is=D.is;return f};
ldu=function(D,v){if(Object.getPrototypeOf(v.prototype).constructor!==_.c)throw Error("Sg");v.prototype.is=D.is;return pHc(v.prototype,D)};
NN8=function(D){return D.type==="compute"||D.type==="computeWithMethod"};
YT2=function(D){for(var v=D.reactiveSchemas.filter(NN8),h=new Map,a=new Map,Q=new Map,G=_.P(v),x=G.next();!x.done;x=G.next())x=x.value,h.set(x.propertyKey,x),a.set(x.propertyKey,[]),Q.set(x.propertyKey,0);G=0;v=_.P(v);for(x=v.next();!x.done;x=v.next()){x=x.value;for(var f=_.P(x.type==="computeWithMethod"?x.method.args:x.args),C=f.next();!C.done;C=f.next())C=C.value,C.type!=="literal"&&(C=C.path.split(".")[0],a.has(C)&&(a.get(C).push(x.propertyKey),Q.set(x.propertyKey,Q.get(x.propertyKey)+1),G++))}x=
[].concat(_.j_(a.keys())).filter(function(U){return Q.get(U)===0});
for(v=[];x.length;)for(f=x.shift(),v.push(h.get(f)),f=_.P(a.get(f)),C=f.next();!C.done;C=f.next())C=C.value,Q.set(C,Q.get(C)-1),G--,Q.get(C)===0&&x.push(C);h=D.reactiveSchemas.filter(function(U){return!NN8(U)});
D.reactiveSchemas=[].concat(_.j_(h),_.j_(v))};
BNu=function(D,v){if(v.properties)for(var h=_.P(Object.entries(v.properties)),a=h.next();!a.done;a=h.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;D.properties[a]=typeof Q==="function"?{type:Q}:Q}v.observers&&D.observers.push.apply(D.observers,_.j_(v.observers));v.disabledPolySiReactions&&D.disabledPolySiReactions.push.apply(D.disabledPolySiReactions,_.j_(v.disabledPolySiReactions))};
c0u=function(D,v){for(var h=v.length-1;h>=0;h--){var a=v[h];Array.isArray(a)?c0u(D,a):D.indexOf(a)<0&&D.unshift(a)}};
XH8=function(D,v){D.reactiveSchemas=D.reactiveSchemas.filter(function(h){return h.type==="observe"&&v.includes(h.method.methodName)||NN8(h)&&v.includes(h.propertyKey)?!1:!0})};
qTI=function(D,v){var h=v.prototype,a,Q,G={is:D.is,reactiveSchemas:[],observedAttributes:[],behaviors:[eRA.InjectBehavior,KZ.prototype],disableElementRegistration:D.disableElementRegistration,provide:(a=D.providers)!=null?a:[],reactivityMode:D.reactivityMode,signalProperties:(Q=h.signalProperties)!=null?Q:[]};"template"in v?G.templateGetter=function(){return v.template}:D.getTemplate&&(G.templateGetter=D.getTemplate);
h.behaviors&&c0u(G.behaviors,h.behaviors);A0O(G,v);return G};
A0O=function(D,v){for(var h=v.prototype,a={properties:{},observers:[],disabledPolySiReactions:[]},Q=_.P(D.behaviors),G=Q.next();!G.done;G=Q.next())BNu(a,G.value);BNu(a,h);if(D.signalProperties)for(h=_.P(D.signalProperties),Q=h.next();!Q.done;Q=h.next())delete a.properties[Q.value];h=_.P(Object.entries(a.properties));for(Q=h.next();!Q.done;Q=h.next()){G=_.P(Q.value);Q=G.next().value;G=G.next().value;var x=void 0;if((x=D.signalProperties)==null||!x.includes(Q)){x=void 0;var f=D,C=G.type;if(!C)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{C=Reflect.getMetadata("design:type",v,Q);for(var U=_.P(bN2),L=U.next();!L.done;L=U.next())if(L=L.value,C===L){C=L;break a}C=Object}else C=String;G.computed||G.selector||(f.reactiveSchemas.push({type:"signal",propertyKey:Q,value:G.value,attributeType:C,readOnly:G.readOnly}),f.observedAttributes.push(_.pm(Q)));G.reflectToAttribute&&f.reactiveSchemas.push({type:"reflect",propertyKey:Q});if(G.computed){C=ZIA(G.computed);if(!C)throw Error("Tg");f.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Q,method:C,value:G.value})}G.observer&&f.reactiveSchemas.push({type:"observe",method:{methodName:G.observer,args:[{type:"path",path:Q}]}});G.notify&&f.reactiveSchemas.push({type:"notify",propertyKey:Q});G.selector&&f.reactiveSchemas.push({type:"redux",propertyKey:Q,selector:G.selector,selectorArgs:(x=G.selectorArgs)!=null?x:[]})}}dzc&&YT2(D);v=_.P(a.observers);for(Q=v.next();!Q.done;Q=v.next())h=D,Q=Q.value,(G=ZIA(Q))?h.reactiveSchemas.push({type:"observe",method:G}):console.log('Warning: unable to parse observe declaration: "'+
Q+'"');XH8(D,a.disabledPolySiReactions)};
jjq=function(D,v){for(var h=0;h<v.length;h++){var a=v[h],Q=void 0;(Q=a).showHideApi!=null||(Q.showHideApi={});Q=void 0;!!D!==!((Q=a.showHideApi)==null||!Q.hideTemplateChildren)&&(a.nodeType===Node.TEXT_NODE?D?(a.showHideApi.polymerTextContent=a.textContent,a.textContent=""):(Q=void 0,a.textContent=(Q=a.showHideApi.polymerTextContent)!=null?Q:null):a instanceof Element&&a.localName==="slot"?D?(a.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.kU)((0,_.kU)(a).parentNode).replaceChild(a.showHideApi.polymerReplaced,
a)):(Q=a.showHideApi.polymerReplaced)&&(0,_.kU)((0,_.kU)(Q).parentNode).replaceChild(a,Q):a instanceof HTMLElement&&a.style&&(D?(a.showHideApi.polymerDisplay=a.style.display,a.style.display="none"):a.style.display=a.showHideApi.polymerDisplay));a.showHideApi.hideTemplateChildren=D;a.showHideChildren&&a.showHideChildren(D)}};
mzu=function(){if(!sjI){var D=document.createElement("style");D.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(D);sjI=!0}};
Vs=function(){return _.g("disable_hidden_dom_if_using_stamper")};
HNA=function(D,v){var h=_.P8().getState();return v?D.apply(null,[h].concat(_.j_(v))):D(h)};
eYr=function(){if(y0f)return y0f;var D=_.P(_.Zq(0,void 0,"MB1Hb")),v=D.next().value;D.next();var h=D.next().value;_.P8().subscribe(function(){wHo(h)});
return y0f=v};
wHo=function(D){nxr||(nxr=!0,Promise.resolve().then(function(){D(function(v){return v+1});
nxr=!1}))};
_.P8=function(){return ON2.getAppStore()};
K0c=function(D,v){return ON2.getSelectFn()(D,v)};
_.xt=function(D){ON2.getDispatchFn()(D)};
TNo=function(D,v){var h={},a;for(a in D)h[a]=v(D[a],a);return h};
_.MK=function(D,v){return function(){var h;return(h=_.sY(D))!=null?h:v}};
_.fb=function(D,v){var h=Object.assign({},D),a;for(a in v)v.hasOwnProperty(a)&&(h[a]=_.MK(D[a],v[a]));return h};
RY8=function(D,v,h){D instanceof Element&&(h.debugName||(h.debugName="<"+D.tagName.toLowerCase()+(D.tagName.includes("-")?">":"."+D.className+">")),_.g("ytwiz_enable_debug_component_props")&&(D.debugProps||(D.debugProps=TNo(v,function(a){return function(){return a()}}))))};
W04=function(D){var v;return iNq.value.traceAllComponents||((v=Ga.stack[Ga.stack.length-1])==null?void 0:v.name)!=="ytComponent"?oMf("ytComponent",{},D):D()};
_.H=function(D,v){var h=function(a){return W04(function(Q){var G=tsi={};var x;if(((x=h)==null?0:x.idomCompat)&&a.renderedFromIdom){var f;x=typeof h.idomCompat==="object"?(f=h)==null?void 0:f.idomCompat.callbacks:{};x=_.P(r0L(a,x,h.debugName));f=x.next().value;x.next();x=x.next().value;var C=u$c(D,f);G.privateValue=C;tsi=void 0;RY8(C,f,h);G={debugName:h.debugName};Q&&G&&Object.assign(Q.attributes,G);Q=fFr(C);Q=Array.isArray(Q)?Q[0]:Q;Q[Z0]||(Q[Z0]={});Q[Z0].updateSignalsFromIdomProps=x;D52(f,C);return C}x=
TNo(a,vQo);f=u$c(D,x);G.privateValue=f;tsi=void 0;RY8(f,x,h);G={debugName:h.debugName};Q&&G&&Object.assign(Q.attributes,G);D52(x,f);return f})};
h.debugName=v===void 0?"":v;return h};
u$c=function(D,v){D=D(v);return SA(D)};
h5O=function(D,v){D[v]||(D=new _.XH("IDOM interop setter undefined. Key:",v),_.mV(D))};
vQo=function(D,v){return v==="children"||v==="ref"||typeof D==="function"||D===void 0?D:function(){return _.sY(D)}};
r0L=function(D,v,h){var a={},Q={},G={},x={},f;for(f in D){x={key$jscomp$945:x.key$jscomp$945};x.key$jscomp$945=f;var C=D[x.key$jscomp$945];if(x.key$jscomp$945==="children"||x.key$jscomp$945==="ref")a[x.key$jscomp$945]=C;else if(typeof C==="function")x.key$jscomp$945 in v||C.length>0?(G[x.key$jscomp$945]=C,a[x.key$jscomp$945]=function(L){return function(){return G[L.key$jscomp$945].apply(G,_.j_(_.Kz.apply(0,arguments)))}}(x)):a[x.key$jscomp$945]=C;
else if(!(D[x.key$jscomp$945]===void 0&&x.key$jscomp$945 in v)){var U=_.P(_.Zq(D[x.key$jscomp$945],{debugName:x.key$jscomp$945+":cwis:"+h},"rvrjQe"));C=U.next().value;U=U.next().value;a[x.key$jscomp$945]=C;Q[x.key$jscomp$945]=U}}return[a,Q,function(L){var Z={},E;for(E in L)Z={key$jscomp$946:Z.key$jscomp$946,val$jscomp$122:void 0},Z.key$jscomp$946=E,Z.val$jscomp$122=L[Z.key$jscomp$946],Z.key$jscomp$946!=="children"&&Z.key$jscomp$946!=="ref"&&(typeof Z.val$jscomp$122==="function"?Z.key$jscomp$946 in
v?G[Z.key$jscomp$946]=Z.val$jscomp$122:Z.val$jscomp$122.length>0&&(G[Z.key$jscomp$946]=Z.val$jscomp$122,_.yR(new _.XH("Callback detected that was not set in the idomCompat callbacks map. Key:",Z.key$jscomp$946))):Z.key$jscomp$946 in v&&Z.val$jscomp$122===void 0||(h5O(Q,Z.key$jscomp$946),Jh(function(I){return function(){Q[I.key$jscomp$946](I.val$jscomp$122)}}(Z))))}]};
QCr=function(D,v,h){var a=OW7(D.prototype,aIA,D.prototype.behaviors);a.prototype.is=v;a.prototype.localName=v;h&&$5c(a,h);return function(Q){Q&&(a.prototype.hostElement=Q);var G=new a;G.root=G;G.hostElement=Q;return G}};
$5c=function(D,v){var h;Object.defineProperty(D.prototype,"_template",{get:function(){h===void 0&&(h=v());return h},
set:function(a){h=a},
configurable:!0,enumerable:!0})};
Mco=function(D,v,h,a){function Q(){if(!I){for(var S=new Set,B=_.P(L),A=B.next();!A.done;A=B.next()){A=A.value;for(var d=_.P(Object.getOwnPropertyNames(A)),b=d.next();!b.done;b=d.next()){b=b.value;var W=void 0,K=(W=Object.getOwnPropertyDescriptor(A,b))==null?void 0:W.value;K&&K instanceof Function&&!Cb(b)&&(!f[b]||_.g("polymer_forward_method_killswitch"))&&S.add(b)}}B=_.P(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(A=B.next();!A.done;A=B.next())d=_.P(A.value),A=d.next().value,
d=d.next().value,d.value instanceof Function&&!Cb(A)&&S.add(A);I=S}return I}
Gtr(D,v,a==null?void 0:a.providers);KTr(D.prototype,D,!0);var G=QCr(D,v,h),x,f=(x=D.prototype.properties)!=null?x:{},C,U,L=(U=(C=D.prototype.behaviors)==null?void 0:C.flat(Infinity))!=null?U:[];h=_.P(L);for(x=h.next();!x.done;x=h.next())f=Object.assign({},x.value.properties,f);var Z=[].concat(_.j_(Vc4),_.j_(Object.keys(f).map(function(S){return _.pm(S)}))),E=!1,I;
return{ctor:function(S,B){var A=G(S),d,b;S=[].concat(_.j_((d=a==null?void 0:a.allowedProps)!=null?d:[]),_.j_((b=a==null?void 0:a.allowedPropsFromBehaviors)!=null?b:[]));A.allowedProps=S.length>0?S:void 0;d={};b=_.P(Z);for(S=b.next();!S.done;S=b.next())S=S.value,d[S]=_.l4(S);A.__dataAttributes=d;var W=A.ready.bind(A);A.ready=function(){B.beforeReady();W();if(bc(v)&&!E){var K=A.__templateInfo;if(K==null?0:K.hostProps){K=_.P(Object.keys(K.hostProps));for(var O=K.next();!O.done;O=K.next())jB(v,O.value,
"PROPERTY_ACCESS_GET_INTERNAL")}E=!0}};
A._overrideLegacyUndefined=!0;return A},
props:f,observedAttributes:Z,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var S=[],B=new Set,A=_.P(Object.keys(f)),d=A.next();!d.done;d=A.next())d=d.value,S.push([d,f[d].readOnly]),B.add(d);A=Q();d=_.P(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var b=d.next();!b.done;b=d.next())b=b.value,!Pwq(b)||A.has(b)||B.has(b)||(S.push([b,!1]),B.add(b));B=_.P(x5c);for(A=B.next();!A.done;A=B.next())S.push([A.value,!0]);return S},
getPropsToForwardBeforeReady:function(S){for(var B=[],A=_.P(Object.entries(S)),d=A.next();!d.done;d=A.next()){var b=_.P(d.value);d=b.next().value;b=b.next().value;if(Pwq(d)&&!(b instanceof Function)&&(B.push([d,!1]),bc(v))){var W=b=void 0;(W=(b=S)._createPropertyAccessor)==null||W.call(b,d)}}return B},
shouldForwardProp:Pwq,shouldLog:bc}};
Gtr=function(D,v,h){nbq(D,h);D.prototype.behaviors.unshift(fI7);if(c6A()){if(bc(v)){var a;(a=D.prototype).behaviors!=null||(a.behaviors=[]);D.prototype.behaviors.unshift(bU2())}dNf(D)}_.l(KZ.prototype)(D.prototype,"__templateHelpers")};
Cb=function(D){return Cw2.has(D)||D.startsWith("__compute__")};
Pwq=function(D){return!Cb(D)&&!D.startsWith("_")&&!D.endsWith("_")};
LoI=function(D,v){function h(){var E=C();E=_.P(E);for(var I=E.next();!I.done;I=E.next()){var S=_.P(I.value);I=S.next().value;S=S.next().value;oQL(Z.prototype,I,S)}a=!0}
var a=!1,Q=D.ctor,G=D.getInitialMethods,x=D.observedAttributes,f=D.getPropsToForwardBeforeReady,C=D.getPropsToForwardBeforeRegister,U=D.shouldForwardProp,L=D.shouldLog,Z=function(){var E=HTMLElement.call(this)||this;E.didForwardDynamicProps=!1;E.loggingStatus={};a||h();E.inst=Q(E,{beforeReady:function(){E.didForwardDynamicProps||(E.forwardDynamicProps(),E.didForwardDynamicProps=!0)}});
E.controllerProxy=A6O(E.inst,v);E.forwardMethods();return E};
_.J(Z,HTMLElement);Z.prototype.forwardMethods=function(){for(var E=this,I=_.P(this.inst.getExtraMethodsToForward()),S=I.next(),B={};!S.done;B={method$jscomp$63:void 0},S=I.next()){var A=_.P(S.value);S=A.next().value;A=A.next().value;B.method$jscomp$63=A;this[S]=function(d){return function(){return d.method$jscomp$63.call.apply(d.method$jscomp$63,[E.inst].concat(_.j_(_.Kz.apply(0,arguments))))}}(B)}I=_.P(G());
for(B=I.next();!B.done;B=I.next())B=B.value,U(B)&&Foq(this,B),L(v)&&!Cb(B)&&z5L(this.inst,B)};
Z.prototype.forwardDynamicProps=function(){var E=f(this.inst);E=_.P(E);for(var I=E.next();!I.done;I=E.next()){var S=_.P(I.value);I=S.next().value;S=S.next().value;oQL(this,I,S);L(v)&&!Cb(I)&&U5A(this.inst,I)}};
Z.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
Z.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
Z.prototype.attributeChangedCallback=function(E,I,S){this.inst.attributeChangedCallbackWrapper(E,I,S)};
_.GT.Object.defineProperties(Z.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return v}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.GT.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return x}}});
customElements.define(v,Z)};
oQL=function(D,v,h){D.hasOwnProperty(v)||Object.defineProperty(D,v,{get:function(){var a,Q=((a=D.is)!=null?a:D.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||jB(Q,v,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,a=this.polymerController[v],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,a},
set:function(a){if(!h){var Q,G=((Q=D.is)!=null?Q:D.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||jB(G,v,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=v,this.loggingStatus.bypassProxyController=!0,this.polymerController[v]!==a&&(Q={},this.polymerController.setProperties((Q[v]=a,Q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Foq=function(D,v,h){var a=D.polymerController;D[v]=function(){var Q=_.Kz.apply(0,arguments);D.loggingStatus.currentExternalCall=v;D.loggingStatus.bypassProxyController=!0;var G,x=((G=D.is)!=null?G:D.tagName).toLowerCase();jB(x,v,"PROPERTY_ACCESS_CALL_EXTERNAL");var f;G=(f=h!=null?h:a[v])==null?void 0:f.call.apply(f,[a].concat(_.j_(Q)));D.loggingStatus.currentExternalCall=void 0;D.loggingStatus.bypassProxyController=!1;return G}};
z5L=function(D,v){var h=D.hostElement,a=D[v];D[v]=function(){var Q=_.Kz.apply(0,arguments);if(h.loggingStatus.currentExternalCall!==v){var G,x=((G=h.is)!=null?G:h.tagName).toLowerCase();jB(x,v,"PROPERTY_ACCESS_CALL_INTERNAL")}return a==null?void 0:a.apply(D,Q)}};
U5A=function(D,v){var h=Object.getOwnPropertyDescriptor(D,v);h&&!h.get&&Object.defineProperty(D,v,{get:function(){qCc(D.hostElement,v);return h.value},
set:function(a){sI(D.hostElement,v);h.value=a}})};
Z28=function(D){return _.g("poly_si_dom_repeat_detached_fix_killswitch")||D.tagName!=="PS-DOM-REPEAT"?D.tagName==="DOM-REPEAT":!0};
IIu=function(D,v){var h=EQi(D);D instanceof Element&&h.unshift(D);D=_.P(h.filter(Z28));for(var a=D.next();!a.done;a=D.next()){var Q=void 0;a=_.P((Q=a.value.__instances)!=null?Q:[]);for(Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,Q.root){Q=Array.from(Q.root.children);Q=_.P(Q);for(var G=Q.next();!G.done;G=Q.next())h.push.apply(h,_.j_(IIu(G.value,v)))}}return h.filter(function(x){return x.usePatchedLifecycles&&x.lifecycleIsConnected===v})};
EQi=function(D){var v=null;D instanceof Element?v=Element.prototype.querySelectorAll:D instanceof DocumentFragment&&(v=DocumentFragment.prototype.querySelectorAll);return v?Array.from(v.call(D,"*")):[]};
oq=function(D){_.LV(function(){for(var v=_.P(IIu(D,!1)),h=v.next();!h.done;h=v.next()){h=h.value;h.lifecycleIsConnected=!0;try{var a=void 0,Q=void 0,G=void 0,x=void 0;(a=(x=h.polymerController)!=null?x:h)==null||(G=(Q=a).connectedCallback)==null||G.call(Q)}catch(f){_.mV(f)}}})};
Fp=function(D){_.LV(function(){for(var v=_.P(IIu(D,!0)),h=v.next();!h.done;h=v.next()){h=h.value;h.lifecycleIsConnected=!1;try{var a=void 0,Q=void 0,G=void 0,x=void 0;(a=(x=h.polymerController)!=null?x:h)==null||(G=(Q=a).disconnectedCallback)==null||G.call(Q)}catch(f){_.mV(f)}}})};
NXf=function(){if(!gQ8){gQ8=!0;var D=[Node];zz&&D.push(zz.Wrapper);var v=Node.prototype.insertBefore,h=Node.prototype.removeChild;D=_.P(D);for(var a=D.next(),Q={};!a.done;Q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},a=D.next())a=a.value,Q.nativeInsertBefore=a.prototype.insertBefore,a.prototype.insertBefore=function(x){return function(f,C){if(f instanceof DocumentFragment){var U=Array.from(f.children);f=x.nativeInsertBefore.call(this,f,C);
if(this.isConnected&&x.nativeInsertBefore===v)for(C=_.P(U),U=C.next();!U.done;U=C.next())oq(U.value);return f}U=f instanceof Element&&f.isConnected;C=x.nativeInsertBefore.call(this,f,C);U&&Fp(f);this.isConnected&&oq(f);return C}}(Q),Q.nativeAppendChild=a.prototype.appendChild,a.prototype.appendChild=function(x){return function(f){if(f instanceof DocumentFragment){var C=Array.from(f.children);
f=x.nativeAppendChild.call(this,f);if(this.isConnected){C=_.P(C);for(var U=C.next();!U.done;U=C.next())oq(U.value)}return f}C=f instanceof Element&&f.isConnected;U=x.nativeAppendChild.call(this,f);C&&Fp(f);this.isConnected&&oq(f);return U}}(Q),Q.nativeRemoveChild=a.prototype.removeChild,a.prototype.removeChild=function(x){return function(f){var C=f instanceof Element&&f.isConnected,U=x.nativeRemoveChild.call(this,f);
C&&h===x.nativeRemoveChild&&Fp(f);return U}}(Q),Q.nativeReplaceChild=a.prototype.replaceChild,a.prototype.replaceChild=function(x){return function(f,C){if(f instanceof DocumentFragment){var U=Array.from(f.children);
f=x.nativeReplaceChild.call(this,f,C);if(this.isConnected)for(Fp(C),C=_.P(U),U=C.next();!U.done;U=C.next())oq(U.value);return f}U=f instanceof Element&&f.isConnected;var L=this.isConnected,Z=x.nativeReplaceChild.call(this,f,C);L&&Fp(C);U&&Fp(f);L&&oq(f);return Z}}(Q);
D=[Element];zz&&D.push(zz.Wrapper);D=_.P(D);a=D.next();for(Q={};!a.done;Q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},a=D.next())a=a.value,a.prototype.before=kt2(a.prototype.before),a.prototype.after=kt2(a.prototype.after),Q.nativeReplaceWith=a.prototype.replaceWith,a.prototype.replaceWith=function(x){return function(){var f=_.Kz.apply(0,arguments),C=_.P(SrI(f)),U=C.next().value,
L=C.next().value;C=this.isConnected;x.nativeReplaceWith.apply(this,f);f=_.P(L);for(L=f.next();!L.done;L=f.next())Fp(L.value);if(C)for(Fp(this),U=_.P(U),C=U.next();!C.done;C=U.next())C=C.value,C instanceof Element&&oq(C)}}(Q),Q.nativeRemove=a.prototype.remove,a.prototype.remove=function(x){return function(){var f=this.isConnected;
x.nativeRemove.call(this);f&&Fp(this)}}(Q),Q.nativeInsertAdjacentElement=a.prototype.insertAdjacentElement,a.prototype.insertAdjacentElement=function(x){return function(f,C){var U=C.isConnected;
f=x.nativeInsertAdjacentElement.call(this,f,C);U&&Fp(C);f.isConnected&&oq(f);return f}}(Q),Q.nativeSetAttribute=a.prototype.setAttribute,a.prototype.setAttribute=function(x){return function(f,C){var U=Jg8(this);
if(!U.usePatchedLifecycles)return x.nativeSetAttribute.call(this,f,C);var L=this.getAttribute(f);x.nativeSetAttribute.call(this,f,C);C=this.getAttribute(f);pSI(U,f,L,C)}}(Q),Q.nativeRemoveAttribute=a.prototype.removeAttribute,a.prototype.removeAttribute=function(x){return function(f){var C=Jg8(this);
if(!C.usePatchedLifecycles)return x.nativeRemoveAttribute.call(this,f);var U=this.getAttribute(f);x.nativeRemoveAttribute.call(this,f);U!==null&&pSI(C,f,U,null)}}(Q),Q.nativeToggleAttribute=a.prototype.toggleAttribute,a.prototype.toggleAttribute=function(x){return function(f,C){var U=Jg8(this);
if(!this.usePatchedLifecycles)return x.nativeToggleAttribute.call(this,f,C);var L=this.getAttribute(f),Z=L!==null;C=x.nativeToggleAttribute.call(this,f,C);C!==Z&&pSI(U,f,L,C?"":null);return C}}(Q);
D=[Document,DocumentFragment,Element,ShadowRoot];zz&&D.push(zz.Wrapper);D=_.P(D);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.prototype.prepend=kt2(Q.prototype.prepend),Q.prototype.append=kt2(Q.prototype.append);(zz==null?void 0:zz.noPatch)===!0&&lIu();document.readyState==="complete"?oq(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&oq(document.body)});
var G=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");G&&G.get&&G.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:G.enumerable,configurable:!0,get:G.get,set:function(x){x||Fp(this);G.set.call(this,x);return x}})}};
kt2=function(D){return function(){var v=_.Kz.apply(0,arguments),h=_.P(SrI(v)),a=h.next().value;h=h.next().value;D.apply(this,v);v=_.P(h);for(h=v.next();!h.done;h=v.next())Fp(h.value);if(this.isConnected)for(a=_.P(a),v=a.next();!v.done;v=a.next())v=v.value,v instanceof Element&&oq(v)}};
lIu=function(){for(var D=_.P(Yrc),v=D.next();!v.done;v=D.next()){v=v.value.prototype;for(var h=_.P(BX7),a=h.next();!a.done;a=h.next()){a=a.value;var Q=Object.getOwnPropertyDescriptor(v,a);Q&&Object.defineProperty(v,"__shady_native_"+a,Q)}}};
pSI=function(D,v,h,a){var Q,G;if((Q=D.polymerController)==null?0:(G=Q.observedAttributes)==null?0:G.includes(v))if(D=D.polymerController,D.attributeChangedCallbackWrapper)D.attributeChangedCallbackWrapper.call(D,v,h,a);else{var x;(x=D.attributeChangedCallback)==null||x.call(D,v,h,a)}};
SrI=function(D){var v=[],h=[];D=_.P(D);for(var a=D.next();!a.done;a=D.next())a=a.value,a instanceof Element&&a.isConnected&&h.push(a),a instanceof DocumentFragment?v.push.apply(v,_.j_(Array.from(a.children))):v.push(a);return[v,h]};
Jg8=function(D){return!(D instanceof Element)&&D.node instanceof Element?D.node:D};
cgf=function(D,v){var h=v?["children"].concat(_.j_(v)):["children"];v=[];h=_.P(h);for(var a=h.next();!a.done;a=h.next()){var Q=a.value;if(D.hasOwnProperty(Q)){a=D[Q];a=typeof a==="function"?a():a;a=Array.isArray(a)?a:[a];a=SA(a).flat();if(Q!=="children"){Q=j5r(Q);for(var G=_.P(a),x=G.next();!x.done;x=G.next())x=x.value,x instanceof Element&&x.setAttribute("slot",Q)}v.push(a)}}v.length===0?D=[]:(D=SA(_.F("div",null,v)),D=Array.from(D.childNodes));return D};
Ago=function(D,v,h){var a={};_.mt(function(){var Q={},G;for(G in v)if(v.hasOwnProperty(G)){var x=void 0,f=void 0;if(!(((x=h.slotProps)==null?0:x.includes(G))||G==="children"||((f=h.callbackProps)==null?0:f.includes(G))||G==="ref")&&(x=_.sY(v[G]),a[G]!==x)){a[G]=x;f=void 0;var C=(f=D.hostElement)!=null?f:D;XSf.has(G)&&(C[G]=x);Q[G]=x}}Jh(function(){if(D.setProperties)D.setProperties(Q);else for(var U=_.P(Object.entries(Q)),L=U.next();!L.done;L=U.next()){var Z=_.P(L.value);L=Z.next().value;Z=Z.next().value;
D[L]=Z}})},"h")};
b2c=function(D,v,h,a){var Q=cgf(h,a.slotProps),G=(0,_.kU)(D);Q=_.P(Q);for(var x=Q.next();!x.done;x=Q.next())G.appendChild(x.value);Ago(v,h,a);a=_.P(a.callbackProps||[]);Q=a.next();for(G={};!Q.done;G={kebabEventName:void 0,eventListener:void 0},Q=a.next())x=Q=Q.value,String(Q).substring(0,2)==="on"&&h[x]?(G.kebabEventName=j5r(String(Q).substring(2)),G.eventListener=h[x],D.addEventListener(G.kebabEventName,G.eventListener),_.dq(function(L){return function(){D.removeEventListener(L.kebabEventName,L.eventListener)}}(G))):
v[x]=h[x];
if(h.ref){h=_.P(qr8(h.ref));var f=h.next().value,C=h.next().value,U=v.attached.bind(v);v.attached=function(){f(D);U()};
_.dq(function(){C()})}};
qr8=function(D){if(typeof D==="function"){var v;return[function(h){v=D(h)},
function(){var h;(h=v)==null||h()}]}if(!D.onRender||!D.onUnmount)throw Error("Xg");
return[D.onRender,D.onUnmount]};
d58=function(D,v){v=v===void 0?{}:v;var h=function(a){var Q=document.createElement(D),G;var x=(G=Q.polymerController)!=null?G:Q;b2c(Q,x,a,v);return Q};
h.debugName=D+" (CoW wrapped)";return h};
H2c=function(D,v,h,a,Q){a=a===void 0?{}:a;var G=jCf,x=!1;G?(x=!0,jCf=void 0):(sCf=v,G=document.createElement(v),sCf=void 0);var f=G;f.usePatchedLifecycles=!0;f.lifecycleIsConnected=!1;G.loggingStatus={};var C=m5O(D,v,G,a,Q);_.dq(function(){f.lifecycleIsConnected&&(f.lifecycleIsConnected=!1,C.disconnectedCallback())});
x||(G.__noInsertionPoint=!0,b2c(G,C,h,a));return G};
m5O=function(D,v,h,a,Q){Q=Q===void 0?Mco:Q;yg8[v]!=null||(yg8[v]=Q(D,v,a==null?void 0:a.getTemplate,a));var G=yg8[v],x=G.ctor;Q=G.getInitialMethods;var f=G.getPropsToForwardBeforeReady;D=G.getPropsToForwardBeforeRegister;a=G.shouldForwardProp;var C=G.observedAttributes,U=G.shouldLog,L=x(h,{beforeReady:function(){var Z=L;Z._takeAttributes?Z._takeAttributes():Z.setPropertiesFromInitialAttributeValues&&Z.setPropertiesFromInitialAttributeValues();Z=_.P(f(h.polymerController));for(var E=Z.next();!E.done;E=
Z.next()){var I=_.P(E.value);E=I.next().value;I=I.next().value;oQL(h,E,I);U(v)&&!Cb(E)&&U5A(h.polymerController,E)}h.polymerController=A6O(L,v)}});
h.polymerController=L;h.polymerController.observedAttributes=C;G=_.P(L.getExtraMethodsToForward());for(x=G.next();!x.done;x=G.next())C=_.P(x.value),x=C.next().value,C=C.next().value,Foq(h,x,C);Q=_.P(Q());for(G=Q.next();!G.done;G=Q.next())G=G.value,a(G)&&Foq(h,G),U(v)&&!Cb(G)&&z5L(L,G);D=_.P(D());for(a=D.next();!a.done;a=D.next())Q=_.P(a.value),a=Q.next().value,Q=Q.next().value,oQL(h,a,Q);return L};
wS2=function(D){var v=U_;U_=D;return v};
nQ8=function(D){if(Lb.has(D)&&U_&&e5o(U_)===D){var v;(v=U_)._numRenders!=null||(v._numRenders=0);U_._numRenders++;if(U_._numRenders>1)throw Error("Yg");return U_}};
O27=function(D){Lb.has(e5o(D))&&U_!==D&&(D._isInert=!0)};
e5o=function(D){var v;return(v=D==null?void 0:D.tagName.toLowerCase())!=null?v:""};
Ko2=function(D,v){if(D.componentType===cl)throw Error("Zg");Lb.add(v);var h=function(){var a=HTMLElement.call(this)||this;a.is=v;if(sCf===v)return a.isInert=!0,a;a.createElement();return a};
_.J(h,HTMLElement);h.prototype.createElement=function(){if(!this.isInert){jCf=this;var a=_.P(_.mO7(function(){return _.F(D,null)})).next().value;
jCf=void 0;qDI(this);return a}};
customElements.define(v,h)};
R5O=function(D,v,h,a,Q){D.prototype.is=v;(a==null?0:a.useSink)?TXi(D,v,h,a,Q):(h=Mco(D,v,h,a),LoI(h,v));return D};
TXi=function(D,v,h,a,Q){NXf();var G=_.H(function(x){return H2c(D,v,x,Object.assign({},a,{getTemplate:h}),Q)},"i");
G.debugName=v+" (CoW wrapped)";Ko2(G,v);return G};
Wof=function(D){return!i2f.has(D)};
uPc=function(D,v,h,a){function Q(){if(!Z){for(var E=new Set(tcc),I=_.P(G.behaviors),S=I.next();!S.done;S=I.next()){S=S.value;for(var B=_.P(Object.getOwnPropertyNames(S)),A=B.next();!A.done;A=B.next()){A=A.value;var d=void 0,b=(d=Object.getOwnPropertyDescriptor(S,A))==null?void 0:d.value;b&&b instanceof Function&&(!U[A]||_.g("polymer_forward_method_killswitch"))&&E.add(A)}}I=_.P(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(S=I.next();!S.done;S=I.next())B=_.P(S.value),S=B.next().value,
B=B.next().value,B.value instanceof Function&&E.add(S);Z=E}return Z}
var G=qTI({is:v,disableElementRegistration:!1,getTemplate:h,providers:a==null?void 0:a.providers,reactivityMode:a==null?void 0:a.reactivityMode},D);if((a==null?0:a.allowedProps)||(a==null?0:a.allowedPropsFromBehaviors)){var x,f;G.allowedProps=[].concat(_.j_((x=a.allowedProps)!=null?x:[]),_.j_((f=a.allowedPropsFromBehaviors)!=null?f:[]))}var C=ldu(G,D);v=C.observedAttributes;var U={};h=_.P(G.reactiveSchemas);for(a=h.next();!a.done;a=h.next())if(a=a.value,a.type==="signal")U[a.propertyKey]={readOnly:a.readOnly},
a.readOnly&&(U[aRI(a.propertyKey)]={readOnly:!0});else if(a.type==="compute"||a.type==="computeWithMethod"||a.type==="redux")U[a.propertyKey]={readOnly:!0};var L=G.reactiveSchemas.length,Z;return{ctor:function(E,I){E=new C(E);E.beforeReady=I.beforeReady;return E},
props:U,observedAttributes:v,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var E=[],I=new Set,S=_.P(rg2),B=S.next();!B.done;B=S.next())B=B.value,E.push([B,B!=="observers"&&B!=="properties"]),I.add(B);S=_.P(Object.keys(U));for(B=S.next();!B.done;B=S.next())B=B.value,E.push([B,U[B].readOnly]),I.add(B);S=Q();B=_.P(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var A=B.next();!A.done;A=B.next())A=A.value,!Wof(A)||S.has(A)||I.has(A)||(E.push([A,!1]),I.add(A));E.push(["allowedProps",
!0]);return E},
getPropsToForwardBeforeReady:function(E){var I=[];E=_.P(Object.keys(E));for(var S=E.next();!S.done;S=E.next()){S=S.value;var B=Q();Wof(S)&&!B.has(S)&&I.push([S,!1])}E=_.P(G.reactiveSchemas.slice(L));for(S=E.next();!S.done;S=E.next())S=S.value,S.type!=="compute"&&S.type!=="computeWithMethod"&&S.type!=="redux"&&S.type!=="signal"||I.push([S.propertyKey,S.type==="signal"?S.readOnly:!0]);return I},
shouldForwardProp:Wof,shouldLog:bc}};
_.w=function(D,v,h,a){var Q,G,x=(G=(Q=a)==null?void 0:Q.mode)!=null?G:0;a!=null||(a={});var f;(f=a).reactivityMode!=null||(f.reactivityMode=0);x===1&&_.zi("creator_poly_si_disable_list").includes(v)&&(x=2);return x===1?R5O(D,v,h,Object.assign({},a,{useSink:!0}),uPc):R5O(D,v,h,Object.assign({},a,{useSink:x===2}))};
_.Zp=function(){return function(D,v,h,a){var Q,G,x=(G=(Q=a)==null?void 0:Q.mode)!=null?G:2;a!=null||(a={});var f;(f=a).reactivityMode!=null||(f.reactivityMode=0);if(x===0)throw Error("$g`"+x);return TXi(D,v,h,a,x===1?uPc:void 0)}};
_.E_=function(D){return _.g("creator_poly_si_killswitch")?!1:_.g("force_all_poly_si_batches")&&(D==="poly_si_all_on_test_check"||D==="creator_poly_si_batch_050"?0:D)||document.documentElement.hasAttribute("use-signals")?!0:!D||_.g(D+"_holdback_enabled")&&_.g("kevlar_polysi_holdback")?!1:_.g(D)};
Iq=function(D){return D?D.icon?D.icon.iconType.toLowerCase():D.customThumbnail?"member":"":""};
DoL=function(D){if(!D)return"";D=_.P(D);for(var v=D.next();!v.done;v=D.next())if((v=v.value)&&v.liveChatAuthorBadgeRenderer&&(v=Iq(v.liveChatAuthorBadgeRenderer))&&v!=="verified")return v;return""};
vD4=function(D,v){if(!D)return null;var h;return((h=D.find(function(a){return a&&a.liveChatAuthorBadgeRenderer?Iq(a.liveChatAuthorBadgeRenderer)===v:!1}))==null?void 0:h.liveChatAuthorBadgeRenderer)||null};
_.VUI=function(D){var v=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;D=h2I(D);v=h2I(v);var h=a_O(D.hex);v=a_O(v.hex);var a=v[0]/255;var Q=v[1]/255,G=v[2]/255,x=Math.max(a,Q,G),f=Math.min(a,Q,G),C=0,U=0,L=.5*(x+f);x!=f&&(x==a?C=60*(Q-G)/(x-f):x==Q?C=60*(G-a)/(x-f)+120:x==G&&(C=60*(a-Q)/(x-f)+240),U=0<L&&L<=.5?(x-f)/(2*L):(x-f)/(2-2*L));a=[Math.round(C+360)%360,U,L];h=$o7(h,v);for(D=QDI(D.hex);h<4.5;){D=a[2]>=.5?D.darker((4.5-h)/2):D.brighter((4.5-h)/2);h=D.toString();
Q=Gpu(h);if(!Q.length)throw Error("Wd`"+h);h=Q;h=$o7(h,v)}return D.hex()};
$o7=function(D,v){D=_.On7(D);v=_.On7(v);return(Math.max(D,v)+.05)/(Math.min(D,v)+.05)};
_.g4=function(D){return"#"+("000000"+(D&16777215).toString(16)).slice(-6)};
_.PJi=function(D){for(var v=0,h=0;h<D.length;h++)v=D.charCodeAt(h)+((v<<5)-v);D="#";for(h=0;h<3;h++)D+=("00"+(v>>h*8&255).toString(16)).slice(-2);return D};
xoI=function(D){D=(D||"").split(":");D.length===1&&D.unshift("yt-icons");D[1]=D[1].toLowerCase();return D};
z2i=function(D,v){var h=(v=v===void 0?!1:v)?MUr:f_q,a=v?CJc:oDu;D.getIconNames().forEach(function(Q){Q=v?Q:Q.substring(Q.indexOf(":")+1);D.name==="yt-icons"?FCr.add(Q):Q.includes("-filled")?h.add(Q):a.add(Q)})};
kt=function(D,v,h,a){h=h===void 0?!1:h;a=a===void 0?!1:a;var Q,G,x;return _.M(function(f){if(f.nextAddress==1)return f.yield(Uor,2);if(a)return f.return(FCr.has(D));Q=h?MUr:f_q;G=h?CJc:oDu;return v?(x=D.includes("-filled")?D:D.concat("-filled"),f.return(Q.has(x))):f.return(G.has(D))})};
_.EDO=function(D){if(LC8(D))return D;var v=D=D.toLowerCase();(D=Zdc.get(D))&&(v=D);return v};
_.SQ=function(D){if(LC8(D))return D.toString();var v=I_8.get(D);if(v)return v;v=D.toLowerCase();var h="yt-icons",a=v.replace(/_/g,"-");switch(D){case "MY_CHANNEL":v="account_circle";break;case "ADD_TO_LIBRARY":v="add";break;case "ALERT_WARN_RED":v="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":v="person_music";break;case "BLOCK_USER":v="block";break;case "CAPTIONS":v="closed_caption";break;case "CLOSED_CAPTION":h="av";v="closed-caption";break;case "COLLECTION":h="maps";v="layers";break;case "CONTACT":h=
"icons";v="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":h="ytcp-icons";v=a.split("creator-studio-")[1];break;case "DISMISSAL":v="close";break;case "DO_NOT_DISTURB":v="block";break;case "DOGFOOD":h="icons";v="pets";break;case "DRAFT":v="paper_corner_folded";break;
case "EMPTY_LIKE":v="like_outline";break;case "EXIT_APP":v="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":v=a;break;case "GAMES":h="ytg";v="my-games";break;case "GO_TO_PAGE":v="arrow-forward";break;case "GROUP":h="social";break;case "HIDE":v="not_interested";break;case "INPUT_COMPONENT":h="icons";v="settings-input-component";break;case "KIDS_BLOCK":v="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":h="ytg";v="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":h=
"ytg";v="membership-post-purchase";break;case "MULTIVIEW":v="screen_multi_view";break;case "MY_LOCATION":h="maps";v=a;break;case "NOTIFICATIONS_INBOX":v="NOTIFICATIONS";break;case "NEXT":v="chevron_right";break;case "OFFLINE":v="power-settings-new";break;case "PAUSE":h="miniplayer";break;case "PAYMENT":h="icons";break;case "PHONE_DOWNLOAD":v="phone_download";break;case "PREMIUM_STANDALONE":h="yt-logos";v="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":h="yt-logos";v="premium_standalone_cairo";
break;case "QUESTION_ANSWER":v="question_answer";break;case "REDEEM":h="icons";v="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":v="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":v="library_add";break;case "SCHOOL":h="yt-sys-icons";v="creator_academy";break;case "SETTINGS_LIGHT":v="settings_applications";break;case "SETTINGS_MATERIAL":v="settings";break;case "SEARCH_HISTORY":v="watch_history";break;case "SHOPPING_BAG":v="bag";break;case "SOCIAL":case "PEOPLE":h=
"yt-icons";v="people";break;case "STAFF_PICK":h="ytg";v="spotlight";break;case "START_DVR":v="add";break;case "STOP_DVR":h="av";v="stop";break;case "TAB_LIKED":v="like";break;case "TAB_INBOX":v="mail";break;case "TERMS_OF_SERVICE":h="icons";v="description";break;case "TRENDING":v="fire";break;case "UNBLOCK_USER":v="remove";break;case "UNPLUGGED_DARK_THEME":h="image";v="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":v="live";break;case "UNPLUGGED_SPORTS":h="ytu";v="visibility-off";break;
case "VIDEOS":h="av";v="play-circle-filled";break;case "YOUTUBE":h="yt-logos";v="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":h="yt-logos-ext";v="yt-logo-red-updated";break;case "YOUTUBE_LOGO":h="yt-logos-ext";v="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":h="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":h="shorts";v=a;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":h="yt-sys-icons";v="youtube_improve_tv";break;case "OUTLINE_BAG":h=
"yt-sys-icons";v="bag";break;case "QUEUE_PLAY_LAST":h="yt-sys-icons";v="list_queue_last";break;case "SLASH_CIRCLE_LEFT":v="slash_circle_left";break;case "SPEED_1_POINT_2X":v="1_point_2x";break;case "SPEED_1_POINT_5X":v="1_point_5x";break;case "SPEED_1_POINT_8X":v="1_point_8x";break;case "SPEED_POINT_2X":v="point_2x";break;case "SPEED_POINT_5X":v="point_5x";break;case "SPEED_POINT_8X":v="point_8x";break;case "SPEED_1X":v="1x";break;case "SPEED_2X":v="2x";break;case "TAB_BOOKMARK":v="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":h="yt-sys-icons";v="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":h="yt-sys-icons";v="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":h="yt-sys-icons",v="tic_tac_toe"}v=h+":"+v;I_8.set(D,v);return v};
LC8=function(D){var v;_.g("kevlar_use_wil_icons")?v=!!_.xd().resolve(_.JD).resolveIcon({iconName:D.toString()}):v=!1;return v};
_.lP=function(D,v,h,a){h=h===void 0?{}:h;a=a===void 0?!1:a;h===null&&(h={});var Q=_.zi("kevlar_command_handler_command_banlist");Q=_.P(Q);for(var G=Q.next();!G.done;G=Q.next())if(G=D?D.hasOwnProperty(G.value):void 0,G)return!1;Q=_.k(D.commandMetadata,_.Sa);return a&&Q!=null&&Q.url?!1:!v.disableCommandHandlerOverride&&_.pb.instance?(a=_.pb.instance,h.form||(h.form={element:v}),h.form.element||(h.form.element=v),!h.clickedVisualElement&&v.visualElement&&(h.clickedVisualElement=v.visualElement),a.resolveCommand(D,
h),!0):!1};
gDq=function(D,v){D=NK(D);for(var h=_.P(D.visibilityMonitorKeys||[]),a=h.next();!a.done;a=h.next())v.unobserveByKey(a.value);D.visibilityMonitorKeys=void 0};
pe2=function(D,v){if(_.wd()){if(_.g("kevlar_vimio_use_shared_monitor"))kpr(D,v.data);else if(!kpr(D,v.data))return;var h=v.data,a=Sh2(h);if(_.g("enable_client_ve_spec_logging"))gDq(D,v.observer);else{var Q=NK(D);Q.trackedParams&&Q.trackedParams!==a&&gDq(D,v.observer)}Q=NK(D);!h||Q.data&&Q.data===h||(Q.data=h);JvA(D,v);Q.trackedParams=a}};
JvA=function(D,v){var h=v.observer;if(!h&&_.g("web_skip_missing_vimio_observer")){var a,Q;_.yR(new _.XH("VisibilityObserver is not defined.",D.tagName,D.trackedParams,(a=v.data)==null?void 0:a.trackingParams,(Q=v.data)==null?void 0:Q.loggingDirectives))}else{var G=v.layer,x=v.visibilityCallback||function(){},f=v.prescanCallback,C=NK(D);
a=[];v.showOption&&a.push(h.observe(D,function(){v.skipLogging&&v.skipLogging()||_.Yt().reportShown(C,void 0,G);x(!0)},v.showOption));
v.hideOption&&a.push(h.observe(D,function(){_.Yt().reportHidden(C,void 0,G);x(!1)},v.hideOption));
v.prescanOption&&f&&a.push(h.observe(D,function(){f()},v.prescanOption));
C.visibilityMonitorKeys=a}};
kpr=function(D,v){D=NK(D);if(D.visualElement&&!v)return!0;if(!v)return!1;var h=!1;if(_.g("enable_client_ve_spec_logging")){var a,Q;h=!!((a=v.loggingDirectives)==null?0:(Q=a.clientVeSpec)==null?0:Q.uiType)}a=Sh2(v);if(!a&&!h)return!1;_.g("mweb_component_visibility_logging")&&(D.veContainer||(D.veContainer={}),D.veContainer.trackingParams=a);if(D.trackedParams&&D.trackedParams===a)return!1;var G;if(_.g("enable_client_ve_spec_logging")&&((G=D.visualElement)==null?0:G.isClientVe())){var x;G=(x=D.visualElement)==
null?void 0:x.getAsJspb();var f,C,U,L;if(_.C0(G,2)===((f=v.loggingDirectives)==null?void 0:(C=f.clientVeSpec)==null?void 0:C.uiType)&&_.C0(G,3,-1)===((U=v.loggingDirectives)==null?void 0:(L=U.clientVeSpec)==null?void 0:L.elementIndex))return!1}if(_.g("enable_client_ve_spec_logging")){var Z,E;!D.visualElement&&((Z=v.loggingDirectives)==null?0:(E=Z.clientVeSpec)==null?0:E.uiType)&&(f=v.loggingDirectives.clientVeSpec,v=f.uiType,x=f.elementIndex,f=f.clientYoutubeData,D.visualElement=_.B8(_.c8(),{veType:v,
elementIndex:x,clientYouTubeData:f}))}return!0};
Sh2=function(D){if(D==null?0:D.rendererContext){var v=_.k(D.rendererContext,_.Xp);if(v==null?0:v.loggingDirectives)return v.loggingDirectives.trackingParams}return(D==null?0:D.loggingDirectives)?D.loggingDirectives.trackingParams:D==null?void 0:D.trackingParams};
NK=function(D){var v;return(v=D.polymerController)!=null?v:D};
BV2=function(D){_.Yt();if(_.KJ(AD().JSC$12572_elementShouldLogGesture).bind(AD())(D,4)){l_A(D);var v=NV4(D);Yhr.set(D,v)}};
l_A=function(D){Yhr.has(D)&&(Yhr.get(D).cancel("untrack hover element"),Yhr.delete(D))};
NV4=function(D){var v,h=[],a=!1,Q=new _.IB(function(G,x){qK(D,"mouseenter",_.KJ(function(){var f,C,U;return _.M(function(L){if(L.nextAddress==1)return v=(0,_.xz)(),f=cvf(D),h.push(f),C=XeO(D,function(){a=!0;x(Error("ah"))}),L.yield(f,2);
if(L.nextAddress!=3)return C&&bP(C),U=AvO(D),h.push(U),L.yield(U,3);G();_.YI(L)})}))});
Q.then(function(){var G=(0,_.xz)()-v;G=Math.round(G);if(!(500>G||6E5<=G)){var x=D.getScreenLayer?D.getScreenLayer():void 0;x=_.wd(x)||"";var f=qhI(_.Yt(),D);_.aG(x,D.visualElement?D.visualElement:_.d4(f),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:G}})}BV2(D)},function(){jQ&&(jQ(),jQ=null);
a&&(l_A(D),BV2(D))});
return Q};
cvf=function(D){var v;return(new _.IB(function(h,a){jQ=function(){a(Error("bh"))};
v=_.HK.debounce(_.KJ(function(){bP(Q);h()}),1,100);
var Q=_.s_(D,"mousemove",v)})).thenCatch(function(){var h=_.HK.cancelDebouncedJobMap.get(v);
h&&_.HK.cancelJob(h)})};
AvO=function(D){var v;return(new _.IB(function(h,a){jQ=function(){a(Error("ch"))};
v=qK(D,"mouseleave",_.KJ(function(){h()}))})).thenCatch(function(){bP(v)})};
XeO=function(D,v){return qK(D,"mouseleave",_.KJ(v))};
dou=function(D){bdO&&_.mN.cancel(bdO);bdO=_.mN.run(function(){_.F1(D,"yt-visibility-refresh");bdO=0})};
jDL=function(D){D=Number(D);return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
moo=function(D){if(!D)return!1;if(_.k(D,_.sDc))return!0;var v;if(D=(v=_.k(D,_.IN))==null?void 0:v.commands)for(v=_.P(D),D=v.next();!D.done;D=v.next())if(_.k(D.value,_.sDc))return!0;return!1};
Hdq=function(D){var v=!0;v=v===void 0?!0:v;if(!D.useSignals&&!D.experimentalPropertiesChanged||_.g("experimental_templating_behavior_nopatch_killswitch")){var h=D._propertiesChanged;D._propertiesChanged=function(a,Q,G){v?D.debounceRender():D.doRender();h&&h.call(D,a,Q,G)}}};
yvI=function(D,v){if(D.useSignals||D.experimentalPropertiesChanged)if(_.g("experimental_templating_behavior_nopatch_killswitch"))D.experimentalPropertiesChanged=function(){};
else return;var h=new Set,a=[D].concat(_.j_(D.behaviors));a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next()){Q=Q.value;for(var G in Q.properties)h.has(G)||(D._addPropertyEffect(G,"function",v),h.add(G))}};
we2=function(){var D=Polymer.Element,v=D._prepareTemplate;D._prepareTemplate=function(){v.call(this);var h=this.prototype;if(h.experimentalTemplatingInUse&&h.experimentalTemplatingInUse()&&h.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.mV(Error("dh"));else{h=this.template.content.childNodes;for(var a=h.length-1;a>=0;a--){var Q=h[a];Q.nodeName!=="STYLE"&&Q.nodeName!=="LINK"&&Q.nodeName!=="SCRIPT"&&Q.nodeName!=="#comment"&&Q.remove()}}}};
e2q=function(D){var v=!0;v=v===void 0?!0:v;we2();var h=D.ready;D.ready=function(){this._template=null;h.call(this)};
yvI(D,v?D.debounceRender:D.doRender)};
Od4=function(D,v,h){if(h===null||h===void 0)return h;var a=kRI(D.tagName.toLowerCase(),v,function(){throw Error("Wb");});
if(a===null)return h;a=nDO[a];var Q;if((Q=a.isUnwrappable)==null?0:Q.call(a,h)){if(a.unwrap)return a.unwrap(h);throw Error("gh");}return a.filterString?a.filterString(D.tagName,v,String(h)):h};
KC4=function(D,v,h){var a=v[v.length-1]!=="$",Q=Od4(D,v,h);if(a)if(typeof Q==="function"&&v.startsWith("reactiveon")&&v===v.toLowerCase()){var G=Q6;XaI(D,v.slice(8),function(x){Hl(G,function(){Q(x)})})}else D[v]=Q;
else h=Q==null?null:String(Q),eM(D,v.slice(0,-1),h)};
ys=function(D){TVf.length===0&&requestAnimationFrame(function(){setTimeout(function(){var v=TVf.slice();TVf.length=0;v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;try{h()}catch(a){_.H8(a)}}})});
TVf.push(D)};
R28=function(D){if(D){var v=D.component;if(v){var h;v==null||(h=v.events)==null||h.publish("DISCONNECTED");var a;v==null||(a=v.onDisconnected)==null||a.call(v)}var Q,G;(Q=D.__spec)==null||(G=Q.didUnmount)==null||G.call(Q);for(v=0;v<D.childNodes.length;v++)R28(D.childNodes[v])}};
id7=function(D,v,h){var a=v&&v.key,Q=vv;Q[0]=D;Q[1]=a;Q[2]=void 0;for(var G in v)v.hasOwnProperty(G)&&(D=v[G],a=h$,a.push(G),a.push(D));v=vv;a:{if(G=vv[2])for(D=0;D<G.length;D+=2)if(G[D]==="nonce"){G=G[D+1];break a}G=""}G=O9O(v[0],v[1],G);D=KV(G);a=v[2];if(!D.staticsApplied&&(D.staticsApplied=!0,a&&a.length))if((Q=D._attrsArr)&&Q.length){for(Q=0;Q<a.length;Q+=2)w4[a[Q]]=Q+1;Q=D._attrsArr||(D._attrsArr=cHO(0));for(var x=0,f=0;f<Q.length;f+=2){var C=Q[f],U=Q[f+1],L=w4[C];L?a[L]===U&&delete w4[C]:(Q[x]=
C,Q[x+1]=U,x+=2)}wq(Q,x);for(var Z in w4)jMf(G,Z,a[w4[Z]],VX),delete w4[Z]}else for(Z=0;Z<a.length;Z+=2)jMf(G,a[Z],a[Z+1],VX);uLL(G,D,VX);wq(v,0);h&&h(TS);KK7()};
_.eQ=function(D,v,h){h===void 0?delete D[v.name]:D[v.name]=h};
_.nb=function(D){var v={androidIncludeFontPadding:!1},h=0,a=[],Q=[],G=[];if(D.simpleText)return v.content=D.simpleText,v;if(D.runs===void 0)return v.content="",v;D=_.P(D.runs);for(var x=D.next();!x.done;x=D.next()){x=x.value;var f=x.text,C=void 0,U=(C=f)==null?void 0:C.length;if(f&&U){a.push(f);if(x.bold||x.italics||x.strikethrough||x.underline||x.textColor!=null&&x.textColor!==0||x.deemphasize){f=Q;C=f.push;var L={startIndex:h,length:U};x.bold&&(L.weightLabel="FONT_WEIGHT_MEDIUM");x.italics&&(L.italic=
!0);x.strikethrough&&(L.strikethrough="LINE_STYLE_SINGLE");x.underline&&(L.underline="LINE_STYLE_SINGLE");x.textColor!=null&&x.textColor!==0?document.documentElement.hasAttribute("dark")?L.fontColor=x.darkModeTextColor||x.textColor:L.fontColor=x.textColor:x.deemphasize&&(document.documentElement.hasAttribute("dark")?L.fontColor=parseInt("ff"+WC4("#aaa").substring(1),16):L.fontColor=parseInt("ff"+WC4("#606060").substring(1),16));C.call(f,L)}x.navigationEndpoint&&(f=G,C=f.push,L={startIndex:h,length:U,
onTap:{innertubeCommand:x.navigationEndpoint}},x.loggingDirectives&&_.eQ(L,tUf,x.loggingDirectives),C.call(f,L));h+=U}}v.content=a.join("");v.styleRuns=Q.length?Q:void 0;v.commandRuns=G.length?G:void 0;return v};
uA7=function(D){if(D==null||!D.runs)return!0;D=_.P(D.runs);for(var v=D.next();!v.done;v=D.next())if(v=v.value,v.bracket||v.errorUnderline||v.deemphasize||_.k(v,O_)||_.k(v,rvf))return!1;return!0};
DJ8=function(D,v){return function(h){var a=v.unit;if(a!==h)throw Error("jh`"+D+"`"+a+"`"+h);return v}};
Kb=function(D){if(!((D==null?0:D.value)&&(D==null?0:D.unit)))return"";switch(D.unit){case "DIMENSION_UNIT_FRACTION":var v="%";break;default:v="px"}D=D.value;v==="%"&&(D*=100);return""+D+v};
vrI=function(D){try{return D()}catch(v){_.yR(v)}};
_.Rq=function(D){var v=_.k(D,_.Tz);if(v)return v;if((v=_.k(D,h1q))&&v.commands)return aTL(v.commands);if((v=_.k(D,$Jc))&&v.commands)return aTL(v.commands);if((D=_.k(D,Qcu))&&D.identifier&&D.command&&(GEL||(GEL=[]),!GEL.includes(D.identifier)))return GEL.push(D.identifier),_.k(D.command,_.Tz)};
aTL=function(D){if(D.length!==0){var v=[];D=_.P(D);for(var h=D.next();!h.done;h=D.next())(h=_.Rq(h.value))&&v.push(h);return{commandExecutorCommand:{commands:v}}}};
_.W8=function(D){var v=D.defaultTarget,h=D.elementConfig,a=D.elementsCommand,Q=D.skipOnClick,G=D.forceNewState,x=D.additionalCommandArgs,f=D.innertubeCommand||_.Rq(a);if(f){D={};var C=V4r(f);a=C.navigatingCommand;C=C.href;a&&C?(D.href$=C,P34(D,a,C,v),_.g("web_atagconfig_pointerdown")&&xJu(D,a),G&&(D["force-new-state$"]=!0)):(D.role$="button",D.href$="javascript:void(0);");_.k(f,M4I)&&(D["aria-haspopup$"]=!0);Q||(D.onclick=function(U){var L={};if(fT7(U)){var Z=(x==null?void 0:x.clickedVisualElement)||
(x==null?void 0:x.getClickedVisualElement)&&x.getClickedVisualElement();Z&&(L={clickedVisualElement:Z});L=Object.assign({},{form:{element:U.target,event:U,createScreenConfig:L}},x);U.preventDefault();_.iP(f,L)}});
return Object.assign({},h,D)}};
C3c=function(D){if(D.length){if(D.length===1)return D[0];var v={};_.eQ(v,_.IN,{commands:D});return v}};
tD=function(D){return D&&D.href$!=="javascript:void(0);"};
V4r=function(D){var v,h=((v=_.k(D,_.IN))==null?void 0:v.commands)||[D];D=_.P(h);for(v=D.next();!v.done;v=D.next()){v=v.value;var a=void 0,Q=void 0;h=(Q=_.k((a=v)==null?void 0:a.commandMetadata,_.Sa))==null?void 0:Q.url;_.g("web_remove_web_navigation_endpoint_data")||(a=void 0,h=h||((a=_.k(v,orc))==null?void 0:a.url));if(h&&h!=="/service_ajax"){if(a=_.yw(h,Fzc))return D=_.mM(a),{navigatingCommand:v,href:D};_.yR(new _.XH("AttributedString URL could not be sanitized",h))}}return{}};
fT7=function(D){return D.button!==void 0?D.button===0&&!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey):!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey)};
P34=function(D,v,h,a){h=!Gi(h);var Q,G,x;if((Q=_.k(v,_.YV))!=null&&Q.nofollow||(G=_.k(v,_.hP))!=null&&G.nofollow||(x=_.k(v,_.RB))!=null&&x.nofollow||h)D.rel$="nofollow";var f;v=((f=_.k(v,_.RB))==null?void 0:f.target)==="TARGET_NEW_WINDOW"?"_blank":a===void 0?"":a;D.target$=v};
xJu=function(D,v){v.clickTrackingParams&&(D.params={itct:v.clickTrackingParams});D.onpointerdown=function(h){z17(h)};
D._data=v};
UJr=function(D){(D.loggingUrls||[]).forEach(function(v){t2(v.baseUrl,v.attributionSrcMode)})};
z17=function(D){var v=D.currentTarget;D=vrI(function(){return v.href});
var h=v.params;D&&_.Vp(D,h||{},8,!0)};
_.r4=function(D,v){(D=_.Rq(D))&&_.iP(D,v)};
_.iP=function(D,v){Wn8(function(h){v?h.resolveCommand(D,v):h.resolveCommand(D)})};
IT7=function(D,v){var h=["yt-core-attributed-string__link"];v!=null&&v.noLinkColor||((v==null?0:v.isOverlay)?h.push("yt-core-attributed-string__link--overlay-call-to-action-color"):h.push("yt-core-attributed-string__link--call-to-action-color"),(v==null?0:v.linkInheritColor)&&h.push("yt-core-attributed-string--link-inherit-color"));h={className:h.join(" "),tabindex$:"0"};var a=D.onTap||D.onLongPress;if(!a)return h;var Q=Lzr(D);Q&&(h["aria-label$"]=Q);v=_.W8({elementsCommand:a,elementConfig:h,skipOnClick:!(v==
null||!v.skipOnClick),forceNewState:!0});D.onLongPress&&(a=new Zku(function(){var G=_.Rq(D.onLongPress);G&&_.xd().resolve(_.fx).resolveCommand(G)}),v&&Erc(a,v));
return v||h};
Lzr=function(D){var v,h;return(v=D.onTapOptions)==null?void 0:(h=v.accessibilityInfo)==null?void 0:h.accessibilityLabel};
gro=function(D){var v=D;D<=16777215&&(v+=parseInt("ff000000",16));return _.uu(v)};
kEc=function(D){var v=D.isDarkTheme;var h=D.extension;D=D.runColor;var a=void 0;if(h=h==null?void 0:h.colorMap){v=v?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";h=_.P(h);for(var Q=h.next();!Q.done;Q=h.next())if(Q=Q.value,v===Q.key){a=Q.value;break}}a==null&&D&&(a=D);if(a)return gro(a)};
D2=function(D){var v=D.config;var h=D.image;var a=D.imageConfig;var Q=D.imageWrapperConfig;var G=D.run;var x=D.tag;var f=D.textLength;var C=D.startIndex===void 0?0:D.startIndex;D=D.length;C===void 0&&(C=0);G={run:G,startIndex:C,endIndex:D!==void 0?C+D:f,tag:x};h&&(G.image=h);a&&(G.imageConfig=a);Q&&(G.imageWrapperConfig=Q);v&&(G.config=v);return G};
Jo4=function(D,v){var h=[];h.push("yt-core-attributed-string");(v==null?0:v.className)&&h.push(v==null?void 0:v.className);(v==null?0:v.ellipsisTruncate)?h.push("yt-core-attributed-string--ellipsis-truncate"):(v==null?0:v.noWrap)?h.push("yt-core-attributed-string--white-space-no-wrap"):(v==null?0:v.noPreWrap)||h.push("yt-core-attributed-string--white-space-pre-wrap");(v==null?0:v.linkInheritColor)&&h.push("yt-core-attributed-string--link-inherit-color");D.alignment&&h.push(Suq(D.alignment));D.lineBreakMode&&
h.push("yt-core-attributed-string--word-wrapping");return h.join(" ")};
pgo=function(D,v){if(D.weight)return D.weight;switch(D.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return v?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
lTO=function(D){switch(D){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
Suq=function(D){switch(D){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
a3=function(D,v,h){var a=v;D.content&&h&&(h=D.content.indexOf("\n"),h!==-1&&(a=Math.min(v,h)));if(!D.content||D.content.length<=a)v=D;else if(D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.paragraphStyleRuns){v=vX(D.content,a);h=a;var Q=D.attachmentRuns;if(Q){var G=[];Q=_.P(Q);for(var x=Q.next();!x.done;x=Q.next())x=Object.assign({},x.value),x.startIndex===void 0||x.startIndex>=h||(x.length||(x.length=0),x.length+x.startIndex>h&&(x.length=h-x.startIndex),G.push(x));h=G}else h=void 0;
G=Nnc(a,D.commandRuns);Q=a;var f=D.decorationRuns;if(f){x=[];f=_.P(f);for(var C=f.next();!C.done;C=f.next()){C=C.value;var U=_.k(C.textDecorator,hd);if(U&&U.startIndex!==void 0&&!(U.startIndex>=Q)){C=Object.assign({},C,{textDecorator:{highlightTextDecorator:Object.assign({},U)}});U=_.k(C.textDecorator,hd);if(!U.length||U.length+U.startIndex>Q)U.length=Q-U.startIndex;x.push(C)}}Q=x}else Q=void 0;x=Nnc(a,D.styleRuns);if(f=D.paragraphStyleRuns)for(D=[],f=_.P(f),C=f.next();!C.done;C=f.next()){var L=C.value;
C=Object.assign({},L);if(!(C.startIndex===void 0||C.startIndex>=a)){if(!C.length||C.length+C.startIndex>a)C.length=a-C.startIndex;U=[];var Z=void 0,E=void 0;if((Z=L)==null?0:(E=Z.listGroup)==null?0:E.listItems)for(L=_.P(L.listGroup.listItems),Z=L.next();!Z.done;Z=L.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=a)){if(!Z.length||Z.length+Z.startIndex>a)Z.length=a-Z.startIndex;U.push(Z)}U.length>0&&(C.listGroup||(C.listGroup={}),C.listGroup=Object.assign({},C.listGroup,
{listItems:U}));D.push(C)}}else D=void 0;v={content:v,attachmentRuns:h,commandRuns:G,decorationRuns:Q,styleRuns:x,paragraphStyleRuns:D}}else v=Object.assign({},D,{content:vX(D.content,a)});return v};
Nnc=function(D,v){if(v){var h=[];v=_.P(v);for(var a=v.next();!a.done;a=v.next())if(a=Object.assign({},a.value),!(a.startIndex===void 0||a.startIndex>=D)){if(!a.length||a.length+a.startIndex>D)a.length=D-a.startIndex;h.push(a)}return h}};
vX=function(D,v){var h=v,a;if(a=h>0)a=D.charCodeAt(h-1),a=a>=55296&&a<=56319;a&&(h=D.charCodeAt(h),a=h>=56320&&h<=57343);a&&--v;return D.substring(0,v)};
Xgf=function(D,v,h){h=h===void 0?Yuf:h;if(D){var a=_.xd().resolve(xX);a||_.g("mweb_no_observer_killswitch")?pe2(D,{data:v,observer:a,visibilityCallback:h,hideOption:BnL,showOption:coA,layer:D.layer}):_.yR(new _.XH("Warning: monitorVisibility called with null observer",D.tagName,v==null?void 0:v.loggingDirectives,v==null?void 0:v.trackingParams))}else _.yR(new _.XH("Warning: monitorVisibility called with null element",v==null?void 0:v.loggingDirectives,v==null?void 0:v.trackingParams,v==null?void 0:
v.rendererContext))};
mJu=function(D,v){var h=[],a=D.content.length,Q,G=(Q=_.xd().resolve(_.PV(_.$5)))==null?void 0:Q();if(D.paragraphStyleRuns){Q=_.P(D.paragraphStyleRuns);for(var x=Q.next();!x.done;x=Q.next()){var f=h.push,C=f.apply;var U=void 0;x=x.value;if((U=x.listGroup)!=null&&U.listItems){U=[];b:switch(x.listGroup.listType){case "LIST_TYPE_BULLET":var L="ul";break b;default:L="span"}U.push(D2({run:x,textLength:a,tag:L,config:{className:"yt-core-attributed-string__list-group"},startIndex:x.startIndex,length:x.length}));
L=_.P(x.listGroup.listItems);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;b:switch(x.listGroup.listType){case "LIST_TYPE_BULLET":var E="li";break b;default:E="span"}U.push(D2({run:x,textLength:a,tag:E,startIndex:Z.startIndex,length:Z.length}))}x=U}else x=[];C.call(f,h,_.j_(x))}}if(D.styleRuns&&(v==null||!v.noStyleRuns))for(Q=_.P(D.styleRuns),f=Q.next();!f.done;f=Q.next()){x=f=f.value;U=G;C=v;U=kEc({extension:_.k(x.styleRunExtensions,Ao7),isDarkTheme:U===void 0?!1:U,runColor:x.fontColor});Z=x;
L=[];U&&L.push("yt-core-attributed-string--link-inherit-color");Z.italic&&L.push("yt-core-attributed-string--italicized");Z.underline&&Z.strikethrough?L.push("yt-core-attributed-string--underline-strikethrough",lTO(Z.underline)):Z.underline?L.push("yt-core-attributed-string--underlined",lTO(Z.underline)):Z.strikethrough&&L.push("yt-core-attributed-string--strikethrough",lTO(Z.strikethrough));if(Z.baselineOffset){a:switch(Z.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Z="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":Z="yt-core-attributed-string--baseline-offset-superscript";break a;default:Z="yt-core-attributed-string--baseline-offset-unknown"}L.push(Z)}L=L.join(" ");Z={};if(x.weight||x.weightLabel)Z.fontWeight=pgo(x,C==null?void 0:C.isHeadline).toString();U&&(Z.color=U);h.push(D2({run:f,textLength:a,tag:"span",config:{className:L,style:Z},startIndex:f.startIndex,length:f.length}))}if(D.decorationRuns)for(Q=_.P(D.decorationRuns),f=Q.next();!f.done;f=Q.next())f=f.value,
C={},f.textDecorator&&(L=f.textDecorator,x=G===void 0?!1:G,Z=[],U=_.k(L,hd),L=_.k(L,quO),U?(L=Z,Z=L.concat,E=[],(x=kEc({extension:_.k(U.highlightTextDecoratorExtensions,bkc),isDarkTheme:x,runColor:U.backgroundColor}))&&E.push("background-color: "+x+";"),U.backgroundCornerRadius!==void 0&&E.push("border-radius: "+U.backgroundCornerRadius+"px;"),U.leftPadding!==void 0&&E.push("padding-left: "+U.leftPadding+"px;"),U.rightPadding!==void 0&&E.push("padding-right: "+U.rightPadding+"px;"),U.topPadding!==
void 0&&E.push("padding-top: "+U.topPadding+"px;"),U.bottomPadding!==void 0&&E.push("padding-bottom: "+U.bottomPadding+"px;"),Z=Z.call(L,E)):L&&(U=Z,Z=U.concat,x=x?"#2ba640":"#107516",x=L.color?gro(L.color):x,x=["padding: 2px;","border-top: solid "+x+" 2px;","border-bottom: solid "+x+" 2px;","background: linear-gradient(135deg, "+x+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+x+" 3px, rgba(0, 0, 0, 0) 3px);"],Z=Z.call(U,x)),x=Z.join(" "),C.style$=x,x=f.textDecorator,U=[],L=_.k(x,
quO),_.k(x,hd)?U.push("yt-core-attributed-string--highlight-text-decorator"):L&&U.push("yt-core-attributed-string--bracket-text-decorator"),x=U.join(" "),C.className=x,C.dir="auto"),x=_.k(f.textDecorator,hd),U=_.k(f.textDecorator,quO),L=_.k(f.textDecorator,hd),Z=_.k(f.textDecorator,quO),h.push(D2({run:f,textLength:a,tag:"span",config:C,startIndex:(x==null?void 0:x.startIndex)||(U==null?void 0:U.startIndex)||0,length:(L==null?void 0:L.length)||(Z==null?void 0:Z.length)||0}));if(D.commandRuns&&(v==
null||!v.noEndpoints))for(G=_.P(D.commandRuns),Q=G.next();!Q.done;Q=G.next())Q=Q.value,f=IT7(Q,v),h.push(D2({run:Q,textLength:a,tag:"a",config:f,startIndex:Q.startIndex,length:Q.length}));if(D.attachmentRuns)for(D=_.P(D.attachmentRuns),G=D.next();!G.done;G=D.next()){G=G.value;C=f=void 0;Q={className:"yt-core-attributed-string--inline-block-mod"};if((C=G.element)==null?0:C.properties){C=(f=G.element)==null?void 0:f.properties;f=[];C=_.k(C,dJ2);if(C==null?0:C.margin)C=C.margin,C.left&&f.push("margin-left: "+
Kb(C.left)+";"),C.right&&f.push("margin-right: "+Kb(C.right)+";"),C.top&&f.push("margin-top: "+Kb(C.top)+";"),C.bottom&&f.push("margin-bottom: "+Kb(C.bottom)+";");f=f.length!==0?f.join(" "):void 0;Q.style$=f}x=void 0;f={alt:"",preserveHeight:!0,preserveWidth:!0};C=["yt-core-attributed-string__image-element"];if(G.alignment){a:switch(G.alignment){case "ALIGNMENT_BASELINE":U="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":U="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:U="yt-core-attributed-string__image-element--image-alignment-bottom"}C.push(U)}if((x=G.element)==null?0:x.properties)x=[],U=_.k(G.element.properties,dJ2),(U==null?0:U.height)&&x.push("height: "+Kb(U.height)+";"),(U==null?0:U.width)&&x.push("width: "+Kb(U.width)+";"),x=x.length!==0?x.join(" "):void 0,f.style$=x,U=void 0,x=((U=_.k(G.element.properties,jcc))==null?void 0:U.label)||"",f.alt=x;f.className=C.join(" ");C=void 0;L=U=void 0;x=((L=G.element)==null?0:L.type)?(U=_.k(G.element.type,
scO))==null?void 0:U.image:void 0;h.push(D2({run:G,textLength:a,tag:"img",image:x,imageConfig:f,imageWrapperConfig:Q,startIndex:G.startIndex,length:(C=G.length)!=null?C:0}))}if(v==null?0:v.headerRuns)for(v=_.P(v.headerRuns),D=v.next();!D.done;D=v.next())if(D=D.value,D.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(D.headerMapping)){a:{switch(D.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":G=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":G="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":G="yt-core-attributed-string--heading-3";break a}G=void 0}h.push(D2({run:D,textLength:a,tag:"span",config:G?{className:G}:void 0,startIndex:D.startIndex,length:D.length}))}return h};
_.Q0=function(D){return(D==null?void 0:D.content)!==void 0};
Hko=function(D){return _.Q0(D)?D:_.nb(D)};
yo7=function(D){return D.image!==void 0&&D.imageConfig!==void 0};
wgi=function(D,v){if(v==null?0:v.userInput)for(D=_.P(D),v=D.next();!v.done;v=D.next())if(v=v.value,v.tag!=="a"&&v.tag!=="li"){var h=void 0;(h=v).config||(h.config={});v.config.dir=v.tag==="ul"?_.xd().resolve(_.Gh):"auto"}};
e1o=function(D){return function(v){var h=D.run;(h.onTap!==void 0||h.onLongPress!==void 0)&&_.k(h,tUf)&&Xgf(v,{loggingDirectives:_.k(h,tUf)})}};
nro=function(D){return function(v){for(var h in D)(VX[h]||VX[nV["default"]])(v,h,D[h])}};
R1A=function(D,v){Ok2(v);var h={data:null,start:0,end:D.length,parts:[]};v=_.P(v);for(var a=v.next();!a.done;a=v.next())a=a.value,Kzo(h,a.startIndex,a.endIndex,a);Tnr(D,h);return h};
Kzo=function(D,v,h,a){for(var Q=_.P(D.parts),G=Q.next();!G.done;G=Q.next()){G=G.value;if(typeof G==="string")throw Error("lh");if(G.start<=v&&h<=G.end){Kzo(G,v,h,a);return}}D.parts.push({data:a,parts:[],start:v,end:h})};
Tnr=function(D,v){for(var h=v.parts.length;h>=0;h--){var a=v.parts[h],Q=v.parts[h-1],G=h===v.parts.length?v.end:a.start;Q=h===0?v.start:Q.end;G!==Q&&v.parts.splice(h,0,D.slice(Q,G));a&&Tnr(D,a)}};
Ok2=function(D){D.sort(function(v,h){if(v.startIndex<h.startIndex)return-1;if(h.startIndex<v.startIndex)return 1;v=v.endIndex-v.startIndex;h=h.endIndex-h.startIndex;return v>h?-1:h>v?1:0})};
_.ikA=function(D){var v=D.thumbnails;if(v){D={sources:[]};v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a={};a.url=h.url;a.width=h.width;a.height=h.height;D.sources.push(a)}return D}};
Wzu=function(D,v,h,a){if(!v)return D.length>=1?D[D.length-1]:null;if(a)for(var Q=_.P(D),G=Q.next();!G.done;G=Q.next()){G=G.value;var x=void 0,f=(x=G.url)==null?void 0:x.indexOf(a);if(f!==void 0&&f>=0)return G}a=_.P(D);for(Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,Q.width&&Q.height&&(h&&Q.width>=v||!h&&Q.height>=v))return Q;for(v=D.length-1;v>=0;v--)if(h&&D[v].width||!h&&D[v].height)return D[v];return D[0]};
_.t4i=function(D){var v;return(D=(v=D.sources)==null?void 0:v[0])?D.width/D.height:0};
_.roc=function(D){if(D.sources){D=_.P(D.sources);for(var v=D.next();!v.done;v=D.next()){v=v.value;var h=void 0;if((h=v.clientResource)==null?0:h.imageName)return v}}};
uJc=function(D){var v;if((v=D.clientResource)!=null&&v.imageColor)return _.uu(D.clientResource.imageColor)};
_.vBL=function(D,v,h,a,Q,G,x){if(!v||v.length===0||v[0].clientResource)return null;if(h&&v[0].url)return v[0].url;a===void 0&&(a=!0);if(a){var f;D=Dac*(Q||(D==null?void 0:(f=D.getBoundingClientRect())==null?void 0:f.width)||0)}else{var C;D=Dac*(G||(D==null?void 0:(C=D.getBoundingClientRect())==null?void 0:C.height)||0)}v=Wzu(v,D,a,x);return(v==null?0:v.url)?v.url:(v==null?0:v.imageData)?v.imageData:null};
hIq=function(D,v,h){h=h?[h]:[];D.opacity&&h.push("opacity: "+D.opacity+";");v&&D.placeholderColor?(D=_.uu(D.placeholderColor),h.push("background-color: "+D+";")):h.push("background-color: transparent;");return h.join(" ")};
aG4=function(D,v,h,a,Q){var G=["ytCoreImageHost"];v&&G.push(v);h||G.push("ytCoreImageFillParentHeight");a||G.push("ytCoreImageFillParentWidth");switch(D.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":G.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":G.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":G.push("ytCoreImageContentModeCenter");break;default:G.push("ytCoreImageContentModeScaleToFill")}D.flipForRtlLayout&&G.push("ytCoreImageFlipRtl");
switch(Q){case "TOP_START":var x;G.push(((x=document.body)==null?void 0:x.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return G.join(" ")};
Q0I=function(D){var v;if(D==null?0:(v=D.clientResource)==null?0:v.imageName){var h;D=(h=D.clientResource)==null?void 0:h.imageName;a:{switch(D){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":h="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":h="yt-logos-ext:yt-logo-updated";break a}h=void 0}return h||$ac.get(D)||D}};
P5q=function(D){return _.g("mweb_wiz_skip_render")?G72(D):VVf(D)};
G72=function(D){return function(v){var h=O9O("wink-root");Tk8();KK7();ZSu(h,_.F(D,v))}};
VVf=function(D){var v=v===void 0?!1:v;return function(h){if(!v||!_.g("mweb_skip_keto_to_c3_if_no_data")||h.data!==void 0){var a=Md(!1);try{var Q=h.children;_.g("mweb_render_outside_patch_killswitch")||TS?Q?GR(_.F(D,h,Q)):GR(_.F(D,h)):_.yR(new _.XH("ketoToC3 called outside of a patch",{tagName:D.TAG_NAME}))}finally{Md(a)}}}};
xac=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
fGI=function(D,v){D.onViewportEntered=v;MVf.observe(D)};
C5c=function(){var D={rootMargin:"10%",threshold:.01};_.g("mweb_enable_set_io_root_to_null_safari")?D.root=null:_.g("mweb_enable_set_io_root_to_body_safari")&&(D.root=document.body);return new IntersectionObserver(function(v,h){v.filter(function(a){return a.intersectionRect.height>0}).forEach(function(a){a=a.target;
if(!_.g("mweb_enable_only_update_image_when_connected")||a.isConnected!==!1){var Q;(Q=a.onViewportEntered)==null||Q.call(a);h.unobserve(a)}})},D)};
oBc=function(D,v,h,a,Q){function G(){if(a){var f=a.loadedClass,C=a.notifyOnUnloaded;f&&_.V0(D,f);C&&D.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function x(){var f=h(v,D);f&&D.getAttribute("src")!==f&&(_.g("mweb_enable_only_update_image_when_connected")&&D.isConnected===!1||f===D.src||(D.src=f),G())}
Q=Q===void 0?!0:Q;D.removeAttribute("src");G();v&&(Q?fGI(D,x):x())};
FQu=function(D,v,h){if(!v)return!1;v=h(v,D);h=D.getAttribute("src");return v&&v===h&&D.complete};
zIr=function(D,v){for(var h in v)h==="className"?D.className=v[h]:(VX[h]||VX[nV.default])(D,h,v[h])};
Uaf=function(D,v,h,a){P5q(_.PX)({contentMode:v.contentMode,loadedClass:v.loadedClass,isPreloaded:v.isPreloaded,notifyOnLoaded:v.notifyOnLoaded,notifyOnUnloaded:v.notifyOnUnloaded,preferredThumbnail:v.preferredThumbnail,preserveHeight:v.preserveHeight,preserveWidth:v.preserveWidth,objectPosition:v.objectPosition,targetWidth:v.targetWidth,targetHeight:v.targetHeight,shouldShowPlaceholder:v.shouldShowPlaceholder,useWidth:v.useWidth,isToggled:v.isToggled,alt:v.alt,className:v.className,onerror:v.onerror,
onload:v.onload,style$:v.style$,color:v.color,width:v.width,height:v.height,"aria-hidden$":v["aria-hidden$"],draggable:v.draggable,"data-disabled$":v["data-disabled$"],data:D,callback:h,renderLazy:a===void 0?!0:a,hideOn404:!1})};
ZYo=function(D,v,h){h=h===void 0?!1:h;var a=D.sources!==void 0?D:_.ikA(D);if(a){var Q=v.onload;v.onload=function(C){var U=C.target;h&&U.naturalWidth===120||_.x5(U,"ytCoreImageLoaded");v.notifyOnLoaded&&U.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Q==null||Q(C)};
v.targetWidth&&v.preserveWidth&&(v.width=v.targetWidth);v.targetHeight&&v.preserveHeight&&(v.height=v.targetHeight);var G=_.roc(a),x=G&&Q0I(G);if(x)return(D=uJc(G))&&(v.color=D),{type:"icon",iconName:x,config:Object.assign({},v,v.alt?{}:{"aria-hidden$":"true"},{"aria-label$":v.alt,role:"img"})};if(D.sources===void 0){v.alt=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label||v.alt;v.style$=hIq(D,v.shouldShowPlaceholder,v.style$);var f;v.isPreloaded=!((f=_.k(D,
LQL))==null||!f.isPreloaded)}v.contentMode&&!a.contentMode&&(a.contentMode=v.contentMode);v.className=aG4(a,v.className,v.preserveHeight,v.preserveWidth,v.objectPosition);v.loadedClass="ytCoreImageLoaded";return{type:"image",image:a,config:v}}};
_.ML=function(){var D=_.Kz.apply(0,arguments);return _.$X(EBo,function(v){var h=D.map(function(a){return a==null?void 0:a(v)});
return function(){return void h.forEach(function(a){return void(a==null?void 0:a())})}})};
f_=function(D,v){var h=v==null?void 0:v.initial;return _.SM(function(){_.sY(!0);return h=D(h)},{equals:v==null?void 0:v.isEqual},"rSlKsc")};
IG8=function(D,v){if(D===v)return!0;if(D===void 0||v===void 0)return!1;var h,a,Q,G,x,f,C,U;return D.content===v.content&&((h=D.styleRuns)==null?void 0:h.length)===((a=v.styleRuns)==null?void 0:a.length)&&((Q=D.commandRuns)==null?void 0:Q.length)===((G=v.commandRuns)==null?void 0:G.length)&&((x=D.attachmentRuns)==null?void 0:x.length)===((f=v.attachmentRuns)==null?void 0:f.length)&&((C=D.decorationRuns)==null?void 0:C.length)===((U=v.decorationRuns)==null?void 0:U.length)};
SoI=function(D,v){if(D){var h=Hko(D);if(h!=null&&h.content)if(_.g("attr_string_reactive"))P5q(gBc)({text:D,config:v});else{var a=!(v==null||!v.ariaLabel)||!(h.commandRuns&&h.commandRuns.length!==0||h.paragraphStyleRuns&&h.paragraphStyleRuns.length!==0);D=a?v==null?void 0:v.ariaLabel:null;a=a?"text":null;id7("span",{className:Jo4(h,v),dir$:(v==null?0:v.userInput)?"auto":void 0,"aria-label$":D,role$:a},function(){if(h.styleRuns||h.commandRuns||h.attachmentRuns||h.decorationRuns||h.paragraphStyleRuns){var Q=
mJu(h,v);wgi(Q,v);Q=R1A(h.content,Q);Q=_.P(Q.parts);for(var G=Q.next();!G.done;G=Q.next())k7c(G.value)}else Dc4(h.content)})}}};
k7c=function(D){typeof D==="string"?Dc4(D):yo7(D.data)?id7("span",D.data.imageWrapperConfig,function(){Uaf(D.data.image,D.data.imageConfig)}):id7(D.data.tag,D.data.config,function(v){e1o(D.data)(v);
v=_.P(D.parts);for(var h=v.next();!h.done;h=v.next())k7c(h.value)})};
pEo=function(D){return D.parts.map(Juq)};
Juq=function(D){if(typeof D==="string")return D;D=yo7(D.data)?_.F("span",{el:_.ML(nro(D.data.imageWrapperConfig))},_.F(_.PX,Object.assign({},{data:D.data.image},D.data.imageConfig))):_.F(D.data.tag,{el:_.ML(e1o(D.data),nro(D.data.config))},D.parts.map(Juq));return SA(D)};
lG8=function(D,v){return D===v?!0:D===void 0||v===void 0?!1:D.noStyleRuns===v.noStyleRuns&&D.noLinkColor===v.noLinkColor&&D.noEndpoints===v.noEndpoints&&D.headerRuns===v.headerRuns&&D.isOverlay===v.isOverlay&&D.linkInheritColor===v.linkInheritColor&&D.userInput===v.userInput&&D.isHeadline===v.isHeadline};
Nbu=function(D){return function(){var v,h,a,Q,G,x,f,C,U,L,Z,E,I,S;return{ariaLabel:(v=D.ariaLabel)==null?void 0:v.call(D),className:(h=D.className)==null?void 0:h.call(D),ellipsisTruncate:(a=D.ellipsisTruncate)==null?void 0:a.call(D),isOverlay:(Q=D.isOverlay)==null?void 0:Q.call(D),linkInheritColor:(G=D.linkInheritColor)==null?void 0:G.call(D),noEndpoints:(x=D.noEndpoints)==null?void 0:x.call(D),noStyleRuns:(f=D.noStyleRuns)==null?void 0:f.call(D),noLinkColor:(C=D.noLinkColor)==null?void 0:C.call(D),
noPreWrap:(U=D.noPreWrap)==null?void 0:U.call(D),noWrap:(L=D.noWrap)==null?void 0:L.call(D),skipOnClick:(Z=D.skipOnClick)==null?void 0:Z.call(D),userInput:(E=D.userInput)==null?void 0:E.call(D),headerRuns:(I=D.headerRuns)==null?void 0:I.call(D),isHeadline:(S=D.isHeadline)==null?void 0:S.call(D)}}};
Bbf=function(D,v){D=new Yoo(D,v);_.mV(D);throw D;};
cuq=function(D,v,h){var a=wS2(D);D._numRenders=0;try{var Q=_.mO7(function(){return _.F(v,Object.assign({},h))})}catch(x){var G=function(f){f.args||(f.args=[]);
f.args.push("Error in web component wrapper");f.args.push(D.tagName.toLowerCase());return f};
_.H1(x instanceof Error?G(x):new Yoo("Wiz rendering error",D.tagName.toLowerCase()));throw x;}finally{wS2(a)}return Q};
_.zh=function(D,v,h){function a(L){var Z={};L=_.P(L);for(var E=L.next();!E.done;E=L.next()){E=E.value;var I=void 0,S=void 0,B=void 0,A=_.l4((B=(S=(I=E).getAttribute)==null?void 0:S.call(I,"slot"))!=null?B:"children");if(I=Z[A])I.push(E);else if(A in G||A==="children")Z[A]=[E]}L=_.P(Object.keys(Z));A=L.next();for(E={};!A.done;E={content$jscomp$57:void 0},A=L.next())A=A.value,A!=="children"&&(E.content$jscomp$57=Z[A],Z[A]=function(d){return function(){return d.content$jscomp$57}}(E));
return Z}
h=h===void 0?{}:h;D.componentType!==cl||Bbf("Components must be marked reactive to be used from web component wrapper.",v);var Q,G=(Q=h.props)!=null?Q:{};Lb.add(v);var x=XEu();Q=function(){var L=x.apply(this,arguments)||this;L.rawProps={};L.queuingRender=!1;L.dispose=function(){};
L.isWebComponentWrapper=!0;L.isReparenting=!1;L.hasRendered=!1;return L};
_.J(Q,x);Q.prototype.render=function(){this.hasRendered=!0;for(var L=_.P([].concat(_.j_(this.attributes))),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.name!=="slot"&&Z.name!=="hidden"&&this.removeAttribute(Z.name);L=Object.assign({},this.componentProps,this.slotProps);Z=_.P(cuq(this,D,L));L=Z.next().value;Z=Z.next().value;!(L[0]instanceof Element)||L.length>1?Bbf("Wrapped Wiz components must return a single root element.",v):(L=L[0].tagName.toLowerCase(),L!==v&&Bbf("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(L+" !== '"+v),v),this.dispose=Z)};
Q.prototype.setUpProps=function(){for(var L=this.rawProps,Z=this.attributes,E=_.P(Object.keys(G)),I=E.next();!I.done;I=E.next()){I=I.value;var S=void 0;((S=this)==null?0:S[I])&&this[I]!==AuI&&L[I]===void 0&&(L[I]=this[I],(S=Object.getOwnPropertyDescriptor(this.constructor.prototype,I))&&Object.defineProperty(this,I,S))}E=_.P(Z);for(I=E.next();!I.done;I=E.next()){S=I.value;I=_.l4(S.name);var B=I==="class"&&!Z.getNamedItem("class-name");if(I in G||B)S=S.value===""||S.value==="true"?!0:S.value==="false"?
!1:isNaN(Number(S.value))?S.value:Number(S.value),I!=="class"||L.className?L[I]=S:L.className=S}Z={};for(var A in G)G[A]!==_.C_&&G[A]!==qoL&&(L[A]instanceof Function&&Bbf("Function props must be configured as STATIC, not SIGNAL.",v),I=_.P(_.Zq(L[A],void 0,"q4ZVff")),E=I.next().value,I=I.next().value,Z[A]=I,L[A]=E);L=_.P([L,Z]);this.componentProps=L.next().value;this.setters=L.next().value;this.slotProps=a(this.childNodes)};
Q.prototype.connectedCallback=function(){bYc===v&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in G&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Q.prototype.disconnectedCallback=function(){if(!this._isInert){var L;a:{if(_.o3)for(L=this;L;){if(_.FZ.has(L)){L=!0;break a}L=L.parentElement}L=!1}if(L)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){L=_.P([].concat(_.j_(this.attributes)));for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var E=void 0;Z.name==="slot"||Z.name==="hidden"&&((E=h.unsafeExternallySettableAttributes)==null?0:E.has("hidden"))||this.removeAttribute(Z.name)}}this.innerText="";qDI(this)}}};
Q.prototype._setPendingPropertyOrPath=function(){};
Q.prototype.notifyPath=function(){};
_.GT.Object.defineProperties(Q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var f=_.P(Object.keys(G)),C=f.next(),U={};!C.done;U={prop$jscomp$105:void 0},C=f.next())U.prop$jscomp$105=C.value,C=void 0,((C=h.legacyPolymer)==null?0:C.forwardHostProps)&&XSf.has(U.prop$jscomp$105)||Object.defineProperty(Q.prototype,U.prop$jscomp$105,{set:function(L){return function(Z){var E=this;this._isInert||(this.setters?Jh(function(){var I,S;return void((S=(I=E.setters)[L.prop$jscomp$105])==null?void 0:S.call(I,Z))}):(this.rawProps[L.prop$jscomp$105]=Z,this.queuingRender&&L.prop$jscomp$105===
"data"&&Z!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(U),
get:da7.has(U.prop$jscomp$105)?void 0:function(){return AuI}});
customElements.define(v,Q)};
_.j0q=function(D,v){return(D=_.UA(D,v))?_.mM(_.nz(D)):null};
_.L_=function(D){if(D=_.UA(D,Number.MAX_VALUE,void 0,"width"))return _.nz(D)};
_.UA=function(D,v,h,a){a=a===void 0?"width":a;if(!D||!D.length)return null;if(_.g("kevlar_tuner_should_always_use_device_pixel_ratio")){var Q=window.devicePixelRatio;_.g("kevlar_tuner_should_clamp_device_pixel_ratio")?Q=Math.min(Q,_.oZ("kevlar_tuner_clamp_device_pixel_ratio")):_.g("kevlar_tuner_should_use_thumbnail_factor")&&(Q=_.oZ("kevlar_tuner_thumbnail_factor"));s0c=Q}else s0c||(s0c=window.devicePixelRatio);Q=s0c;_.g("kevlar_tuner_should_always_use_device_pixel_ratio")?v*=Q:Q>1&&(v*=Q);if(_.g("kevlar_tuner_min_thumbnail_quality"))return D[0].url||
null;Q=D.length;if(_.g("kevlar_tuner_max_thumbnail_quality"))return D[Q-1].url||null;if(h)for(var G=0;G<Q;G++)if(D[G].url.indexOf(h)>=0)return D[G].url||null;for(h=0;h<Q;h++)if(D[h][a]>=v)return D[h].url||null;for(v=Q-1;v>0;v--)if(D[v][a])return D[v].url||null;return D[0].url||null};
yuc=function(){Z2.size?setTimeout(function(){EA(ma2)},0):HYq=0};
ma2=function(){var D=(0,_.xz)(),v=null,h=!1;Z2.forEach(function(Q){Q.loaded=!0;Q.loadTime=D;Q.pendingPaint=!1;var G=wEi.get(Q);G&&G.resolve(D);v=Q;h||!Q.ftlEligible&&Q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(h=!0)});
var a;((a=v)==null?0:a.markDirty)&&v.markDirty();Z2.clear();HYq=0;h&&eI7(D)};
nBo=function(D){Z2.add(D);D.pendingPaint=!0;HYq||(HYq=_.I3(_.HK,yuc))};
OYO=function(D){D.loaded=!1;D.loadTime=Infinity;var v=wEi.get(D);v&&(v.reject(Error("rh")),wEi.delete(D));D.pendingPaint&&(Z2.delete(D),D.pendingPaint=!1)};
_.KQL=function(D){var v=D.indexOf(":");return v===-1?{originalName:D}:{originalName:D.substring(0,v),datasyncId:D.substring(v+1)}};
_.RIi=function(){return _.M(function(D){if(Tbr!==void 0)return D.return(Tbr);Tbr=new Promise(function(v){var h;return _.M(function(a){switch(a.nextAddress){case 1:return _.gE(a,2),a.yield(_.g1.open("test-only"),4);case 4:return a.yield(_.g1.delete("test-only"),5);case 5:_.rl(a,3);break;case 2:if(h=_.NS(a),h instanceof Error&&h.name==="SecurityError")return v(!1),a.return();case 3:v("caches"in window),_.YI(a)}})});
return D.return(Tbr)})};
tVi=function(){return _.M(function(D){if(D.nextAddress==1)return D.yield(_.RIi(),2);if(!D.yieldResult)return D.return(void 0);iYA||(iYA=new WQ4);return D.return(iYA)})};
rur=function(D){var v,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return G.yield(tVi(),2);case 2:v=G.yieldResult;if(!v)throw Error("th");return G.yield(v.open("yt-player-local-img"),3);case 3:return h=G.yieldResult,G.yield(h.match(D),4);case 4:a=G.yieldResult;if(!a)throw Error("uh");return G.yield(a.blob(),5);case 5:return Q=G.yieldResult,G.return(Q)}})};
u07=function(D,v){for(var h in D)if(D.hasOwnProperty(h)&&v[h])return h;return null};
D34=function(D){return"stamp"+D.replace("-","_")+"_"};
v4q=function(D){var v=D.match(/\[\[([\w\.]+)\]\]/);if(v&&v.length>1)return v[1];_.mV(Error("wh`"+D));return null};
hN7=function(D){return D===void 0?_.nJ("REUSE_COMPONENTS",!1):D||!1};
Qku=function(D,v,h){h&&(v.is?(aii.has(v)&&(D=aii.get(v),h=D.listener,delete v[D.property],h.type==="element"&&v.removeEventListener(h.eventName,h.handler),aii.delete(v)),$3q(v)):v.__proto__==HTMLElement.prototype&&(v=new _.XH("Rendererstamper removed a non custom element","Stamper: "+D+" element: "+(v&&v.nodeName)),_.yR(v)))};
Goi=function(D,v,h,a){var Q=v.node?v.node:v;_.ZW(h).parentNode===Q&&(v.removeChild(h),Qku(D,h,a));if(D=k5.get(h))k5.delete(h),_.HK.cancelJob(D);h.hidden=!1};
VTo=function(D,v,h,a){if(v&&v.children&&(h=v.children[h]))if(_.nJ("DEFERRED_DETACH"))for(;h&&!k5.has(h);){var Q=D,G=v,x=h,f=a;x.hidden=!0;Q=_.c1(_.HK,Goi.bind(null,Q,G,x,f),0);k5.set(x,Q);h=h.nextElementSibling}else for(;(x=v.lastElementChild)&&(v.removeChild(x),Qku(D,x,a),x!=h););};
_.S3=function(){for(var D=_.Kz.apply(0,arguments),v=!0,h=_.P(D),a=h.next();!a.done;a=h.next())if(typeof a.value!=="string"){v=!1;break}return v?D.join(" ").trim()||void 0:function(){for(var Q="",G=_.P(D),x=G.next();!x.done;x=G.next())if(x=x.value,typeof x==="function"&&(x=x()),x)if(typeof x==="string")Q+=" "+x;else for(var f in x)if(x.hasOwnProperty(f)){var C=x[f];typeof C==="function"&&(C=C());C&&(Q+=" "+f)}Q=Q.trim()||void 0;return _.sY(Q)}};
x3u=function(D){var v;return(v=PdA[D])!=null?v:"EVENT_SPAN_TYPE_UNKNOWN"};
MTq=function(D){var v=D.nodeName;if(D.id)return v+="#"+D.id;if(D.classList)for(var h=_.P(D.classList),a=h.next();!a.done;a=h.next())v+="."+a.value;D.parentElement&&(v=MTq(D.parentElement)+" > "+v);return v};
fiq=function(D){return function(v){var h=x3u(v.type);return h==="EVENT_SPAN_TYPE_UNKNOWN"?D(v):oMf("event",{type:h,nodepath:v.target instanceof Element?MTq(v.target):void 0},function(){return D(v)})}};
_.Jd=function(D){D&&M88("event")&&(D=fiq(D));return F2A(function(v){var h,a=(h=D)==null?void 0:h(v);return typeof a==="boolean"?a:!0})};
p_=function(D){return function(){return D()?D():void 0}};
zNu=function(D){var v=_.va("animated-rolling-character"),h=BKo(),a=Qp(D.character)||Qp(D.previousCharacter),Q=_.P(cmu()),G=Q.next().value,x=Q.next().value;_.jA(function(){if(window.ResizeObserver&&_.g("web_fix_rolling_numbers_zoom_safari")){var f=new ResizeObserver(function(){var C,U,L=Math.round(((U=(C=v.value.querySelector("div"))==null?void 0:C.getBoundingClientRect().height)!=null?U:0)*100)/100;L&&x(L)});
f.observe(v.value);return function(){f.disconnect()}}});
IDf(function(){var f=_.g("web_fix_rolling_numbers_zoom_safari")?G:D.marginMultiplier;if(f){var C;(C=h.value)==null||C.cancel();a?(C=D.previousCharacter?Number(D.previousCharacter)+10:D.rollUp?0:30,D.shouldAnimate||(C-=CdO(D,C))):(C=D.rollUp?0:2,D.shouldAnimate||(C-=D.rollUp?-1:1));v.value.style.marginTop="-"+C*f+"px";D.shouldAnimate?h.value=o4I(v.value,D,C,a,f):v.value.style.display=D.character?"":"none"}});
return _.F("animated-rolling-character",{el:v,class:"animatedRollingCharacterHost"},Bar(a,function(){for(var f=[],C=1;C<30;C++)f.push(_.F("div",null,C%10));return _.F(_.xf,null,_.F("div",null,"\u00a0"),f,_.F("div",null,"\u00a0"))},function(){return Flq(D.character)}))};
Flq=function(D){return _.F(_.xf,null,_.F("div",null,"\u00a0"),_.F(_.xf,null,Bar(!D||_.C7(D),function(){return _.F("div",null,"\u00a0")},function(){return _.F("div",null,D)})),_.F("div",null,"\u00a0"))};
o4I=function(D,v,h,a,Q){h=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(a?CdO(v,h):v.rollUp?-1:1)*Q+"px)"}],U37),document.timeline);v.character?(D.style.display="",h.onfinish=null):h.onfinish=function(){D.style.display="none"};
h.play();return h};
CdO=function(D,v){var h=Number(D.character)+10;if(D.previousCharacter)if(D.character){var a=Number(D.character),Q=Number(D.previousCharacter);D=D.rollUp?Q<a?h:h+10:Q<a?h-10:h}else D=D.rollUp?30:0;else D=D.character==="0"?h:D.rollUp?h-10:h+10;return v-D};
LlL=function(D){return function(v){var h={},a;for(a in v){var Q=void 0,G=void 0;((Q=void 0)==null?0:(G=Q.callbacks)==null?0:G[a])||(h[a]=v[a])}return _.F(sic,null,function(){for(var x in h)v[x]=_.sY(h[x]);v.disableReactiveLogging=!0;return _.F(D,Object.assign({},v))})}};
Iiu=function(D,v,h,a,Q,G,x){h=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(G?Zvf(v,h,a,Q):a?-1:1)*x+"px)"}],E4u),document.timeline);v?(D.style.display="",h.onfinish=null):h.onfinish=function(){D.style.display="none"};
h.play();return h};
Zvf=function(D,v,h,a){var Q=Number(D)+10;v?D?(D=Number(D),v=Number(v),h=h?v<D?Q:Q+10:v<D?Q-10:Q):h=h?30:0:h=D==="0"?Q:h?Q-10:Q+10;return a-h};
koc=function(D){var v=BKo(),h=BKo();JPi(function(){v.value=D.numberText;h.value=D.numberValue},[D.numberText]);
var a=D.fontSizeMultiplier?D.heightPx*D.fontSizeMultiplier:D.heightPx,Q=Y9I(function(){if(D.numberText){var x=D.numberText;var f=D.forceRollUp||!h.value||!D.numberValue||h.value<D.numberValue;var C=!!D.shouldAnimate,U=v.value,L=[],Z=0,E=0,I=(U?U.replace(/\D/g,"").length:0)-(x?x.replace(/\D/g,"").length:0);U=U?U.split(/(\d)/).filter(Boolean):[];for(x=x.split(/(\d)/).filter(Boolean);I<0;){var S=x[E];L.push({character:S,rollUp:f,marginMultiplier:a,shouldAnimate:C});E++;Qp(S)&&I++}for(;Z<I;)S=U[Z],L.push({previousCharacter:S,
rollUp:f,marginMultiplier:a,shouldAnimate:C}),Z++,Qp(S)||I++;for(;E<x.length;)I=x[E],S=U[Z],Qp(I)===Qp(S)?(E++,Z++):Qp(I)?(Z++,I=void 0):Qp(S)&&(E++,S=void 0),L.push({character:I,previousCharacter:S,rollUp:f,marginMultiplier:a,shouldAnimate:C});f=L}else f=[];return f},[D.numberText]),G=D.numberText?["height: "+a+"px;",
"line-height: "+D.heightPx+"px;"].join(" "):"";return _.F("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:G,dir:"ltr","aria-hidden":"true"},Q.map(function(x){return _.F(g4O,Object.assign({},x))}))};
SfO=function(D){switch(D){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
Jzo=function(D,v){if(!D&&!v)return"medium";D=Math.max(D||0,v||0);return D>=256?"large":D>=96?"medium":"small"};
pxr=function(D){switch(D){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
liA=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
N8A=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.lL=function(D){var v=f_(function(h){h=h?_.LV(h[0]):void 0;return _.Zq(D(h),void 0,"AwTxXe")},{isEqual:function(h,a){return _.LV(h[0])===_.LV(a[0])}});
return[function(){return v()[0]()},
function(h){return void v()[1](h)}]};
_.NL=function(D){return function(){var v="",h;for(h in D){for(var a=D[h];typeof a==="function";)a=a();a!==void 0&&a!==null&&(v+="; "+h+": "+a)}return v.length>0?_.sY(v.slice(2)):_.sY()}};
Yfc=function(D){switch(D){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
B8r=function(D,v){if(v)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(D)switch(D){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
bvO=function(D,v,h,a,Q,G,x){var f=czq(D),C=f.disabled,U=f.iconPosition,L=f.style,Z=f.focused,E=function(){return!!B()&&U()==="icon-only"},I=function(){return!!B()&&U()==="icon-only-40"},S=function(){return!!B()&&U()==="icon-with-label"},B=function(){return!!v||!(a==null||!a())};
return{type:function(){return L()==="call-to-action-inverse"?"text":L()==="overlay-dark"&&D().type!=="filled"&&D().type!=="tonal"?"tonal":D().type},
shouldFocus:function(){return(Z()||(G==null?void 0:G()))&&!C()},
hasIconLeading:function(){return!!B()&&U()==="leading"},
hasIconTrailing:function(){return!!B()&&U()==="trailing"},
hasIconLeadingTrailing:function(){return!!B()&&!!(h||Q!=null&&Q())&&U()==="leading-trailing"},
hasIconOnly:E,hasIconOnly40:I,hasIconWithLabel:S,iconButton:function(){return E()||I()||S()},
visiblyDisabled:function(){return(C()?"disabled":D().state)==="disabled"||C()},
overrideSmallSizeIcon:function(){return!D().ignoreIconSizeOverride&&Xx7(D(),B())},
iconToRender:v?v:function(){return _.F(_.Y5,{icon:a,size:function(){return AzI(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return qfI(D())},
animateIcon:x})},
secondaryIconToRender:h?h:function(){return _.F(_.Y5,{icon:Q,size:function(){return AzI(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return qfI(D())}})}}};
czq=function(D){return{size:function(){return D().size},
style:function(){return D().style},
focused:function(){return D().focused},
disabled:function(){return D().disabled},
onTap:function(v){var h,a;return(a=(h=D()).onTap)==null?void 0:a.call(h,v)},
alignByText:function(){return D().alignByText},
aTagConfig:function(){return D().aTagConfig},
customColors:function(){return D().customColors},
segmentedPosition:function(){return D().segmentedPosition},
toggled:function(){return D().toggled},
toggleable:function(){return D().toggleable},
accessibilityLabel:function(){return D().accessibilityLabel},
onToggle:function(v){var h,a;return(a=(h=D()).onToggle)==null?void 0:a.call(h,v)},
iconPosition:function(){return D().iconPosition},
oneOffCustomTextWrap:function(){return D().oneOffCustomTextWrap},
disableTextEllipsis:function(){return D().disableTextEllipsis},
disableBackdropFilter:function(){return D().disableBackdropFilter},
tooltipText:function(){return D().tooltipText},
ariaHidden:function(){return D().ariaHidden},
tabIndex:function(){return D().tabIndex},
buttonText:function(){return D().buttonText},
formattedButtonText:function(){return D().formattedButtonText},
animatedTextProps:function(){return D().animatedTextProps},
onClickRateLimitMs:function(){return D().onClickRateLimitMs}}};
Xx7=function(D,v){v=(D.iconPosition==="icon-only"||D.iconPosition==="icon-only-40"||D.iconPosition==="icon-with-label")&&v;return!D.segmentedPosition&&v&&D.size==="S"};
AzI=function(D,v,h){switch(D.size){case "XS":return 16;case "S":return!h&&Xx7(D,v)?24:16;default:return 24}};
d3O=function(D){switch(D){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
jkf=function(D){switch(D){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
sk8=function(D){switch(D){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
qfI=function(D){if(D.style==="overlay-dark"&&D.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
BX=function(D){return D&&D.endsWith("px")?Number(D.slice(0,-2)):0};
yzu=function(D){var v=v===void 0?{}:v;D=_.P(_.lL(D));var h=D.next().value;return[function(a){var Q=_.SM(function(){var f,C,U,L;return{text:(f=h())!=null?f:"",location:(C=v.location)!=null?C:"bottom",offset:(U=v.offset)!=null?U:16,delay:(L=v.delay)!=null?L:1}},void 0,"MgTrkc");
_.bW(function(){var f=Q();_.LV(function(){_.HK.addJob(function(){cX.notify(a,f)},4)})},"WlsgZc");
var G=function(){m38(a,Q())},x=function(){Hv4()};
a.addEventListener("mouseenter",G);a.addEventListener("focus",G);a.addEventListener("mouseleave",x);a.addEventListener("blur",x);a.addEventListener("tap",x);_.dq(function(){a.removeEventListener("mouseenter",G);a.removeEventListener("mouseleave",x);a.removeEventListener("focus",G);a.removeEventListener("blur",x);a.removeEventListener("tap",x);Hv4()})},
D.next().value]};
eN7=function(D,v){if(!Q6){var h;EXf(function(){return h=dOO(D,v)});
return h}D.parent=wxA();return dOO(D,v)};
wxA=function(){var D=_.V6(Q6||void 0,Am7);return _.qW2(D)?void 0:D};
XZ=function(D,v){_.iP(D,Object.assign({},v,{forceClickLogging:!0}))};
OvO=function(D,v){var h=_.Rq(D==null?void 0:D.onTap),a={};h&&(a.getClickedVisualElement=function(){var Q;return n47(D,h,v==null?void 0:(Q=v.value)==null?void 0:Q.visualElement)});
a=_.W8({elementsCommand:D.onTap,forceNewState:!0,additionalCommandArgs:a});return tD(a)?a:void 0};
Klc=function(D,v,h,a){XZ(D,Object.assign({},{form:{element:v,event:h}},a))};
T8f=function(D,v,h,a,Q){var G=void 0;return function(x){var f=_.Rq(h?D==null?void 0:D.onDisabledTap:D==null?void 0:D.onTap);if(f){var C;G=(C=G)!=null?C:v==null?void 0:v.value;if(f)if(_.g("web_button_vm_click_client_ve_killswitch"))Klc(f,G,x);else{var U;C=n47(D,f,(U=G)==null?void 0:U.visualElement);if(Q){Klc(f,Q,x,{clickedVisualElement:C,form:{element:Q}});return}Klc(f,G,x,{clickedVisualElement:C})}}a&&a(x)}};
n47=function(D,v,h){v=v==null?void 0:v.clickTrackingParams;var a,Q;D=D==null?void 0:(a=D.loggingDirectives)==null?void 0:(Q=a.clientVeSpec)==null?void 0:Q.uiType;if(h&&D&&!v)return h};
RNu=function(D){switch(D){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
iv4=function(D){switch(D){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
Wl7=function(D){switch(D){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
tT8=function(D){switch(D){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
rz8=function(D,v){return _.gR(D.entities,"engagementToolbarStateEntityPayload",v)};
Duf=function(D){(D=_.d4(D))&&_.uUr(D)};
_.uUr=function(D){var v=_.wd();v&&_.u1(v,D)};
vg8=function(D,v,h){_.zU(D,"yt-open-popup-action",[v,h||D])};
hTI=function(D,v){var h=_.m9(D,"endpoint"),a=_.m9(D,"action");return(h=a?a:h)&&v&&(h=v.navigationEndpointPopupMap[h])&&(D=_.T3(h,D),(h=_.m9(D,"renderer"))&&v.supportedPopups.hasOwnProperty(h))?{openPopupAction:{popupType:v.popupTypeMap[h],popup:D}}:null};
a12=function(D,v,h,a){if(a){var Q;h=h==null?void 0:(Q=h.data)==null?void 0:Q.contents;(Q=h instanceof Array&&h.length?h[0]:h)&&(h=_.m9(Q,"renderer"))&&a.supportedPopups.hasOwnProperty(h)&&(v.stopPropagation(),vg8(D,{openPopupAction:{popupType:a.popupTypeMap[h],popup:Q}}))}};
G5f=function(D,v,h,a){a=a===void 0?!1:a;var Q=$uf(v);if(Q){Q.href&&hV(Q.href);var G=v.button;G=G!==void 0?G===0&&!Ad(v):!Ad(v);Q.data&&G&&QF8(D,Q,v,h,a)}};
QF8=function(D,v,h,a,Q){Q=Q===void 0?!1:Q;var G=_.oZ("pbj_navigate_limit",-1)===0;VGf(v);_.xd().resolve(_.PV(TC));var x=v.data;if(Object.keys(x).length!==0)if(!_.g("unplugged_web_disable_actions_for_cec_endpoint")&&_.k(x,_.IN))_.g("endpoint_behavior_command_executor_fix_killswitch")||(h.preventDefault(),h.stopPropagation()),_.ZD(D,[x],D);else if(a=hTI(x,a))x.loggingUrls&&x.loggingUrls.forEach(function(C){C.baseUrl&&_.WK(C.baseUrl)}),h.preventDefault(),h.stopPropagation(),vg8(D,a,v);
else{var f=PBI(0,v.data,h);if(D=v.getForm)D=D(),f.tempData=f.tempData||{},f.tempData=Object.assign({},f.tempData,D);D=_.Pr(h);if(a=D.find(function(C){return!!C.visualElement}))f.createScreenConfig=f.createScreenConfig||{},f.createScreenConfig.clickedVisualElement=a.visualElement;
if(!G)if(h.preventDefault(),h.stopPropagation(),_.k(x,_.xur)&&!Q&&_.pb.instance)_.pb.instance.resolveCommand(x,f);else if(_.g("kevlar_command_handler_formatted_string")&&!Q&&_.pb.instance&&MGI(x))Q=D.find(function(C){return!!C.is})||h.target,h={form:Object.assign({},f,{event:h,
element:Q,originatingNode:v})},_.pb.instance.resolveCommand(x,h);else{x=_.Pr(h);h=[];for(Q=0;Q<x.length;Q++)(G=x[Q].is)&&h.push(G);tbA({parents:h.join(","),text:v.innerText},function(){_.F1(v,"yt-navigate",f)})}}};
f1I=function(D){if(D=$uf(D))VGf(D),hzO(D.href)};
$uf=function(D){D=_.Pr(D);for(var v,h=0;h<D.length;h++)if(v=D[h],v.tagName==="A"&&v.classList.contains("yt-simple-endpoint")){if(!v.data)break;return v}return null};
Ad=function(D){return D.shiftKey||D.altKey||D.metaKey||D.ctrlKey};
CBI=function(D,v){var h={itct:v.clickTrackingParams};_.g("kevlar_client_side_screens")&&(!_.k(v,_.AQ)||_.g("kevlar_exclude_endpoint_killswitch"))&&(h.endpoint=JSON.stringify(v));_.g("enable_unknown_lact_fix_on_html5")&&_.xd().resolve(_.PV(_.qL))&&(h.lact=_.x_());uOL(h);_.Vp(D,h)};
VGf=function(D){D.href&&Object.keys(D.data).length!==0&&CBI(D.href,D.data)};
MGI=function(D){for(var v=_.P(ogL),h=v.next();!h.done;h=v.next())if(D[h.value])return!1;return!0};
_.F5c=function(D,v){return _.gR(D.entities,"markersEngagementPanelSyncEntity",v)};
zTO=function(D,v){return _.gR(D.entities,"playerStateEntity",v)};
Uuf=function(D,v){return _.gR(D.entities,"fantasyWinProbabilityEntity",v)};
L5I=function(D,v){return _.gR(D.entities,"fantasyTeamEntity",v)};
ZBO=function(D,v){return _.gR(D.entities,"fantasyPlayerEntity",v)};
Egu=function(D,v){return _.gR(D.entities,"booleanEntity",v)};
I1c=function(D,v){return _.gR(D.entities,"qrCodeEntity",v)};
gg4=function(D){return _.gR(D.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
k5A=function(){if(bL)return bL;if(window.lottie)return bL=Promise.resolve(window.lottie);var D=_.yx(_.eA("LOTTIE_URL"));return D?bL=new Promise(function(v,h){var a=document.createElement("script");a.addEventListener("load",function(){v(lottie)});
a.addEventListener("error",function(Q){var G="Lottie library failed to load.";Q?Q.message&&(G+=" Original description: "+Q.message,_.wf(Q,G)):Q=Error(G);_.yR(Q);h(Q)});
a.setAttribute("async","");_.Ge(a,D);document.head.appendChild(a)}):Promise.reject(Error("xh"))};
Sli=function(){return bL?bL:k5A()};
JSc=function(D){if(D)switch(D){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.g("kevlar_use_wil_icons"))return D=(D=gg4(_.Gb().getState()))&&D.animationLightUrl&&D.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:D.animationLightUrl,pathDarkTheme:D.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,D?D:d1.get("LIKE");break;case "LIKE_DELHI_PLAYER":return d1.get("LIKE_DELHI_PLAYER")}};
pBq=function(D){var v=JSc(D);if(v)return v;switch(D){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return d1.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return d1.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return d1.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return d1.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return d1.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return d1.get("NOTIFICATION_BELL")}};
l1L=function(D,v){if(!D.closest)return!1;v=!!JSc(v);return _.eA("ID_TOKEN")&&v?!!D.closest("segmented-like-dislike-button-view-model")||!!D.closest("yt-player-quick-action-buttons"):!1};
Yl8=function(D,v){if(!D||NC7)v=!1;else{var h;if(!(h=l1L(D,v)))if(D.closest)if(h=!_.eA("ID_TOKEN"),D=D.closest("ytd-subscription-notification-toggle-button-renderer-next"),h||!D)h=!1;else{var a;h=((a=D.data)==null?void 0:a.targetId)==="notification-bell"&&v!=="EXPAND_MORE"}else h=!1;v=h}return v};
BC4=function(D){var v,h;return _.M(function(a){switch(a.nextAddress){case 1:return _.gE(a,2),a.yield(fetch(D),4);case 4:return v=a.yieldResult,a.yield(v.json(),5);case 5:return a.return(a.yieldResult);case 2:h=_.NS(a),_.yR(h),_.YI(a)}})};
cSL=function(D,v){var h,a,Q;return _.M(function(G){if(G.nextAddress==1)return(h=v?D.pathDarkTheme:D.path)?G.yield(Promise.all([BC4(h),k5A()]),2):G.return();a=G.yieldResult;Q=a[0];j3.set(h,Q);_.YI(G)})};
ASq=function(D,v,h,a){function Q(x,f){if(v.value===f&&!v.cancelled&&D!=null&&D.value){for(;D.value.firstChild;)D.value.removeChild(D.value.firstChild);D.value.classList.add("ytSpecIconShapeHost");x(D.value,a)}}
var G=_.XB8(_.xd().resolve(_.JD),h);typeof G==="function"?(v.value=null,Q(G,null)):(v.value=G,G.then(function(x){Q(x,G)}))};
bBq=function(D,v){var h=document.createElement("div"),a=_.by(h,function(){return _.F(_.z,{cond:D,then:function(Q){return _.F(qlf,{data:Q,options:v})}})},"X");
return[h,a]};
_.sA=function(D,v){if(v){var h={};duq.forEach(function(a){a=jFi(v,a,"--yt-lightsource-");Object.assign(h,a)});
sFi.forEach(function(a){a=jFi(v,a,"--yt-basic-");Object.assign(h,a)});
_.SB(D,h)}};
jFi=function(D,v,h){var a={};a[h+_.pm(v)]=D&&D[v]?_.uu(D[v]):"";return a};
_.HX=function(D,v,h){mr[D]||(mr[D]={});mr[D][v]=h};
_.y0=function(D){mr[D]||(mr[D]={});return mr[D]};
muo=function(D){if(!D)return{};var v=D.foregroundTitleColor,h=D.backgroundColor;D=D.borderColor;var a="text";D?a="outline":h&&(a="filled");return{type:a,customColors:{color:v?_.uu(v):void 0,backgroundColor:h?_.uu(h):void 0,borderColor:D?_.uu(D):void 0}}};
ngf=function(D){var v=D.renderer;var h=D.element;var a=D.commandController;var Q=D.onTapCallback;var G=D.skipCommandHandling;var x=D.overrides;var f=D.forceIcon;var C=D.forceModernIconButton;var U=D.forceDisabled;var L=D.isSubscribe===void 0?!1:D.isSubscribe;var Z=D.isPressed===void 0?!1:D.isPressed;var E=D.useButtonSize===void 0?!1:D.useButtonSize;D=HB8(v);L&&(D.style="mono",D.type="filled");f=!v.icon||!f&&v.text?v.icon?v.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:C?"icon-only":"icon-only-40";f==="icon-only-40"&&(D.type="text");var I;C=Object;L=C.assign;E=ySf(v,E);Z=!!v.isSelected||!_.g("web_propagate_is_pressed_killswitch")&&!!Z;var S=v.isSelected!==void 0;U=U===void 0?v.isDisabled:U;var B=v.text?_.nb(v.text):void 0;var A,d,b,W=((A=v.accessibilityData)==null?void 0:(d=A.accessibilityData)==null?void 0:d.label)||((b=v.accessibility)==null?void 0:b.label);A=W?W:_.$V(v.text);h=wBq(v,h,a,Q,G);a=eTf(v);a!=null&&a.length?(a=_.W8({innertubeCommand:C3c(a),
forceNewState:!0}),a=tD(a)?a:void 0):a=void 0;return L.call(C,{},D,E,{iconPosition:f},x,{focused:!1,toggled:Z,toggleable:S,disabled:U,formattedButtonText:B,accessibilityLabel:A,onTap:h,aTagConfig:a},muo((I=v.colorData)==null?void 0:I.basicColorPaletteData),{oneOffCustomTextWrap:v.oneOffCustomTextWrap})};
wBq=function(D,v,h,a,Q){return function(G){var x=eTf(D);a(x,G);if(!Q){x=_.P(x);for(var f=x.next();!f.done;f=x.next())XZ(f.value,{form:{element:v,event:G},commandController:h})}}};
eTf=function(D){var v=[];D.command&&v.push(D.command);D.serviceEndpoint&&v.push(D.serviceEndpoint);D.navigationEndpoint&&v.push(D.navigationEndpoint);return v};
ySf=function(D,v){if(v)switch(D.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(D.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
HB8=function(D){switch(D.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
OBi=function(D,v){return typeof D!=="object"||D===null?!1:Object.keys(v).every(function(h){return h in D})};
_.w1=function(D){return Object.fromEntries(Object.keys(D).map(function(v){return[v,v]}))};
K52=function(D,v,h){return n98(h,function(a,Q){return function(G){var x=_.Kz.apply(1,arguments);return OBi(G,D)?Q.apply(null,[G[v]].concat(_.j_(x))):Q.apply(null,[G].concat(_.j_(x)))}})};
_.e3=function(D){return function(v,h){return K52(D,v,h)}};
_.n_=function(D){return D!=null&&D.watch?D.watch.isTheaterMode:!1};
_.OA=function(D){return D!=null&&D.watch?D.watch.isWatchFullscreen:!1};
_.K_=function(D){D=_.TCc(D);return _.g("web_watch_enable_single_column_grid_view")?D:!1};
_.TCc=function(D){return D.watch.isWatchNarrowWidth};
_.RTf=function(D){return D.watch.openEngagementPanels};
_.Th=function(D){return _.SM(function(){eYr()();return K0c(D)},{debugName:"d8B62c"},"DEXkhd")};
R3=function(D,v){return _.gR(D.entities,"likeStatusEntity",v)};
iBI=function(D,v){return _.gR(D.entities,"likeCountEntity",v)};
_.W54=function(D,v){return _.gR(D.entities,"stringEntity",v)};
tG7=function(D,v){return _.gR(D.entities,"dataFreshnessEntity",v)};
rSf=function(D,v){if(!D)return!1;var h,a=(h=_.k(D,_.kE))==null?void 0:h.signal;if(a&&v.signalEndpointMap)return!!v.signalEndpointMap[a];var Q;if((h=(Q=_.k(D,_.iL))==null?void 0:Q.request)&&v.continuationEndpointMap)return!!v.continuationEndpointMap[h];for(var G in D)if(v.commandEndpointMap[G])return!0;return!1};
u57=function(D,v){if(v.streamingEndpointMap)for(var h in D)if(v.streamingEndpointMap[h]&&(D=v.streamingEndpointMap[h]))return D()};
DjL=function(D,v){var h,a=(h=_.k(D,_.kE))==null?void 0:h.signal;if(a&&v.signalEndpointMap&&(h=v.signalEndpointMap[a]))return h();var Q;if((h=(Q=_.k(D,_.iL))==null?void 0:Q.request)&&v.continuationEndpointMap&&(Q=v.continuationEndpointMap[h]))return Q();for(var G in D)if(v.commandEndpointMap[G]&&(D=v.commandEndpointMap[G]))return D()};
v8A=function(D){var v={"Content-Type":"application/json"};_.eA("EOM_VISITOR_DATA")?v["X-Goog-EOM-Visitor-Id"]=_.eA("EOM_VISITOR_DATA"):_.eA("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=_.eA("VISITOR_DATA"));v["X-Youtube-Bootstrap-Logged-In"]=_.eA("LOGGED_IN",!1);_.eA("DEBUG_SETTINGS_METADATA")&&(v["X-Debug-Settings-Metadata"]=_.eA("DEBUG_SETTINGS_METADATA"));if(D!=="cors"){var h=_.eA("INNERTUBE_CONTEXT_CLIENT_NAME");h&&(v["X-Youtube-Client-Name"]=h);(h=_.eA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(v["X-Youtube-Client-Version"]=
h);(h=_.eA("CHROME_CONNECTED_HEADER"))&&(v["X-Youtube-Chrome-Connected"]=h);(h=_.eA("DOMAIN_ADMIN_STATE"))&&(v["X-Youtube-Domain-Admin-State"]=h)}_.nJ("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(D=_.eA("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(v["X-YouTube-Lava-Device-Context"]=D):D!=="cors"&&_.nJ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(D=_.eA("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(v["X-YouTube-Lava-Device-Context"]=D);return v};
h0A=function(D,v){v.watchNextResponse||v.reelItemWatchResponse?v.watchNextResponse?D.content=v.watchNextResponse:D.content=v.reelItemWatchResponse:v.playerResponse?D.player=v.playerResponse:v.reelWatchSequenceResponse&&(D.reelSequence=v.reelWatchSequenceResponse)};
_.WX=function(D){if(!D)return null;for(var v=[],h=0;h<D.textSegments.length;h++){var a=D.textSegments[h];a.text?v.push(a):a.emojiId&&v.push({emoji_id:a.emojiId})}return{text_segments:v}};
VXL=function(D,v,h,a,Q,G,x){G=G===void 0?[]:G;var f=new _.td;f.endpoint=h;if(!h)return _.H1(new _.XH("handle undefined endpoint",v.tagName)),f;var C=GNf(h);C.length&&(_.ZD(D,C,v,a),f.actions=C);h.loggingUrls&&h.loggingUrls.forEach(function(L){L.baseUrl&&t2(L.baseUrl,L.attributionSrcMode)});
C=!_.g("web_skip_impression_click_killswitch")&&a&&a.impression;if(h.clickTrackingParams&&!arq(h)&&!$jA(v)&&!C&&(C=_.c8(),!_.r1(C,v))){var U=v.getScreenLayer&&v.getScreenLayer();U?C.clickCommand(h,null,U):C.clickCommand(h,null)}C=!1;for(U=0;U<G.length;U++)if((0,G[U])(v,h,a)){C=!0;break}!C&&Qf4(h)&&(f.ajaxPromise=G8f(D,v,h,a,Q,x));return f};
$jA=function(D){var v;return(D=(v=D.data)==null?void 0:v.navigationEndpoint)&&!!D.clickTrackingParams};
arq=function(D){var v=_.k(D,_.kE);if(v&&(v=v.signal)&&PxI.indexOf(v)>=0)return!0;for(var h in D)if(xjO.indexOf(h)>=0)return!0;return!1};
Qf4=function(D){var v;if(((v=_.k(D,_.kE))==null?void 0:v.signal)==="CLIENT_SIGNAL")return!1;for(var h in D)if(MXI.indexOf(h)>=0)return!1;D=Object.keys(D);return D.length===1&&D[0]==="loggingUrls"?!1:!0};
ZAf=function(D,v,h,a,Q,G,x){var f=_.uL.instance;if(f&&_.DY(f,a))var C=_.v4(f,a,Q).then(function(L){return(L==null?0:L.data)?L:{data:L}});
else C=D.requestDataForServiceEndpoint(a,Q),_.k(a,fro)||_.k(a,Cxi)||_.k(a,_.o8q)||_.k(a,Ffo)||_.yR(new _.XH("No RequestBuilder for endpoint",a));var U=_.hn();U.promise.thenCatch(function(){var L=_.m9(a,"action")||_.m9(a,"command")||_.m9(a,"endpoint");L&&(L=a[L],L.hasOwnProperty("onFailureAction")?_.ZD(v,[L.onFailureAction],h):L.hasOwnProperty("onFailureCommand")&&_.ZD(v,L.onFailureCommand,h));C.cancel("Resolver promise rejected")});
C.then(function(L){if(L){var Z=L.error;if(Z){if(G&&G.onServerError)G.onServerError(a,L);U.reject(new _.XH("Response error",a,Z))}else if(L=L.data)if(Z=L.error){if(G&&G.onServerError)G.onServerError(a,L);U.reject(new _.XH("Returned error",a,Z))}else{z0r(v,h,L,a);Uj8(L);if(Z=QiL(L))for(var E=_.P(Z),I=E.next();!I.done;I=E.next()){I=I.value;var S=_.xd().resolve(_.PV(Lfq))||ag;if(!_.uL.instance||!S.some(function(A){return!!_.k(a,A)})||_.g("kevlar_response_processor_allowlist_killswitch")){var B=S=void 0;
((B=_.k((S=I)==null?void 0:S.commandMetadata,_.Sa))==null?0:B.sendPost)?_.L1(v,[I]):_.ZD(v,[I],h)}}(E=_.k(L==null?void 0:L.frameworkUpdates,$e))&&x&&x(E);if(G&&G.onSuccess)G.onSuccess(a,L);U.resolve(new _.QL(L,Z))}}else U.reject(new _.XH("Invalid service endpoint provided",a))},function(L){U.reject(L)});
return U.promise};
Uj8=function(D){var v;(D=(v=_.k(D==null?void 0:D.onResponseReceivedCommand,_.E8u))==null?void 0:v.continuationItems)&&(D==null?void 0:D.length)===1&&_.k(D[0],Iru)&&_.ea("so_r",void 0,"search_overview_answer")};
G8f=function(D,v,h,a,Q,G){var x;return(x=v.getNetworkManager&&v.getNetworkManager()?v.getNetworkManager():_.xd().resolve(_.PV(_.Tb)))?ZAf(x,D,v,h,a,Q,G):_.H8("No network manager.")};
z0r=function(D,v,h,a){if(h=h.trackingParams||h.loggingDirectives&&h.loggingDirectives.trackingParams){var Q;(_.k(a,g82)||_.k(a,k8r)||_.k(a,SE8))&&a.clickTrackingParams?Q=_.d4(a.clickTrackingParams):_.g("web_graft_to_parent_command")&&a.clickTrackingParams&&(Q=_.d4(a.clickTrackingParams));var G;a=(G=v.getScreenLayer)==null?void 0:G.call(v);v=_.c8().graftServerVe(h,Q,a);_.U9(D,"yt-store-grafted-ve-action",[v])}};
_.JsO=function(D){var v=new Image;return new _.IB(function(h,a){v.addEventListener("load",function(){h()});
v.addEventListener("error",function(){a()});
v.src=D})};
pkf=function(D){return!!D};
lrL=function(D){return!!D};
Ny4=function(D,v,h){var a=D.rowIndex;a!==void 0&&_.U9(D.hostElement,"yt-section-reactive-dismissal",[a,v,h])};
_.Gf=function(D,v,h){D=_.P(D);for(var a=D.next();!a.done;a=D.next()){a=a.value;if(a===v)break;for(var Q=_.P(h),G=Q.next();!G.done;G=Q.next())if(G=G.value,a.tagName===G||!_.g("web_event_button_role_check_killswitch")&&a.role==="button"&&G==="BUTTON")return!0}return!1};
_.VL=function(D,v,h){D=_.P(D);for(var a=D.next();!a.done;a=D.next()){a=a.value;if(a===v)break;for(var Q=_.P(h),G=Q.next();!G.done;G=Q.next())if(a.id===G.value)return!0}return!1};
_.Mq=function(){var D=_.xd().resolve(_.PV(_.P4));return D?(D=D.getCurrentPage())?_.xe(D):null:null};
_.fj=function(){var D=_.Mq();if(!D){var v=_.xd().resolve(_.PV(_.P4)),h=v?typeof v:"no page manager";v=v?v.getCurrentPage():null;h=new _.XH("Player is missing when requested.",h,v?v.tagName:"no page");_.mV(h)}return D};
_.xe=function(D){return D&&D.getPlayer?D.getPlayer():null};
YEO=function(D,v){D={args:{raw_player_response:D}};v&&(D.args=Object.assign({},D.args,v));return D};
Byc=function(D){if(D.args){if(D.args.raw_player_response)return D.args.raw_player_response;if(D.args.player_response)return JSON.parse(D.args.player_response)}};
_.csc=function(D,v){var h={url:"/watch?v="+D.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};D.playlistId&&(h.url+="&list="+D.playlistId);D.playerParams&&(h.url+="&pp="+D.playerParams);D={watchEndpoint:D,commandMetadata:{webCommandMetadata:h}};v&&(D.clickTrackingParams=v);return D};
As2=function(){return Xku||!!_.T3("yt.player.Application")};
bAo=function(){return qEq||!!document.querySelector("link#player-css")};
jf8=function(){function D(){Xku=!0;djc.resolve()}
var v,h;return _.M(function(a){djc||(djc=new _.gT,As2()?D():(v=document.createElement("script"),v.addEventListener("load",D),h=_.dW(_.eA("PLAYER_JS_URL")),_.Ge(v,h),document.head.appendChild(v)));return a.return(djc.promise)})};
mj7=function(){function D(){qEq=!0;sfL.resolve()}
if(!sfL)if(sfL=new _.gT,bAo())D();else{var v=document.createElement("link");v.id="player-css";v.addEventListener("load",D);var h=_.dW(_.eA("PLAYER_CSS_URL"));_.xI(v,h,"stylesheet");document.head.appendChild(v)}return sfL.promise};
HA7=function(){return As2()&&bAo()?Promise.resolve([]):Promise.all([jf8(),mj7()])};
ysq=function(D,v,h){var a={args:{}};D&&(a.args.raw_player_response=D);v&&(a.args.raw_watch_next_response=v);h&&(a.args=Object.assign({},a.args,h));return a};
OAO=function(D,v,h){var a=!1;a=a===void 0?!0:a;D=typeof D==="string"?_.Cj(document,D):D;var Q=wk7+"_"+_.iq(D),G=e0o[Q];if(G&&a)return n8L(v,h)?G.api.loadVideoByPlayerVars(v.args||null):G.loadNewVideoConfig(v),G.api;G=new og(D,Q,v,h,void 0);e0o[Q]=G;G.addOnDisposeCallback(function(){delete e0o[G.getId()]});
return G.api};
n8L=function(D,v){return v&&v.serializedExperimentFlags?v.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):D&&D.args&&D.args.fflags?D.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Kfi=function(){var D=new _.gT;D.resolved=!1;var v=D.resolve;D.resolve=function(h){D.resolved=!0;v(h)};
return D};
R0r=function(D){var v={};Ty8().install((v.document_disposed={callback:D},v))};
Fe=function(D,v){if(!D&&Math.random()<=_.oZ("kevlar_unified_player_logging_threshold")){D=Error("zh`"+(v?v:"Unspecified error"));if(_.g("kevlar_unified_player_throw_errors"))throw D;_.yR(D)}};
_.iA8=function(){var D=_.T3("ytDebugData.callbacks");D||(D={},_.Gm("ytDebugData.callbacks",D));return D};
tX2=function(D,v){var h=_.iA8();if(_.g("web_dd_iu")||WfI.includes(D))h[D]=v};
rs8=function(){return _.M(function(D){return D.return({isLeader:_.Bhf(_.Gb().getState()),c:_.eA("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.eA("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
ubc=function(){var D;_.M(function(v){if(v.nextAddress==1)return tX2("APP_STATE",rs8),v.yield(_.xd().resolve(_.zf),2);D=v.yieldResult;tX2("PI",function(){return _.M(function(h){return h.return(D.getVideoStats())})});
_.YI(v)})};
Dni=function(D){var v=_.GU(_.tB(_.$L.location.href));D=_.GU(_.tB(D));return _.g("kevlar_clear_non_displayable_url_params")?v==Un(D):Un(v)==Un(D)};
Un=function(D){var v=_.vKu(D);D=D.slice(0);var h=["frags"];_.g("kevlar_hide_pp_url_param")&&h.push("pp");_.g("kevlar_hide_time_continue_url_param")&&h.push("time_continue");h=_.P(h);for(var a=h.next();!a.done;a=h.next())a=a.value,D=_.PU(_.GU(D),a);return _.GU(D)+(v?"#"+v:"")};
Lj=function(D,v){v=Number(v)*1E3;var h=Math.round((0,_.xz)()),a=h.toString();D={innertubeResponse:D,serverDateTimestampMs:a,lastModifiedTimestampMs:a,expireTimestampMs:(h+v).toString()};if(v=_.eA("INNERTUBE_CONTEXT_CLIENT_NAME"))D.clientName=v;return D};
anr=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++hO7};
$nu=function(D){return!isNaN(D)&&D>0};
GDu=function(){_.g("web_adaptive_repeat_ase")&&QE8&&_.jj("applicationStarted",QE8)};
_.VEL=function(){var D=_.yC(),v=_.wd();v&&D&&_.vf(v,[D],!0)};
xnO=function(D){return D&&PAi.some(function(v){return D.includes(v)})};
zO8=function(D){var v=_.k(D,_.RB);if(!v)return!1;var h=v.url,a=v.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!h)return _.mV(Error("Eh")),!1;if(v.target==="TARGET_NEW_WINDOW"){v={};_.g("resolve_url_parent_tracking_params")&&(!_.$d(h)||QH(window.location.href,h))&&(v={endpoint:D,itct:D.clickTrackingParams});uOL(v);D=null;try{if(a){a:{var Q=h,G=v;a=a===void 0?!1:a;G&&_.Vp(Q,G);var x=_.nz(Q),f=_.mM(x);Q!=f&&_.Wv(Error("gg`"+Q));Q=f;try{if(a){f=Q;f=yD7(f);hV(f);D=_.Dx(window,f,"_blank",
"attributionsrc");break a}}catch(E){_.OM(E)}hV(Q);D=_.Dx(window,x,"_blank")}ME8(_.xd().resolve(fnO),D,h);return!0}}catch(E){_.mV(E)}_.Vp(h,v);v={target:"_blank",noopener:!1};x=window;f=sQ(h)?h:_.nz(typeof h.href!="undefined"?h.href:String(h));a=self.crossOriginIsolated!==void 0;D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);Q=v.noreferrer;if(a&&Q&&D==="unsafe-url")throw Error("ue");D=Q&&!a;Q=v.target||h.target;G=[];var C=[],U=!1;for(Z in v){var L=v[Z];switch(Z){case "width":case "height":case "top":case "left":G.push(Z+
"="+L);break;case "target":break;case "noopener":case "noreferrer":L?C.push(Z):(U=!0,C.push(Z+"=false"));break;case "attributionsrc":G.push(Z+(L?"="+L:""));break;default:G.push(Z+"="+(L?1:0))}}var Z=Q!==void 0&&!["_blank","_self","_top","_parent",""].includes(Q);Z=BA()&&Z;CAu&&a&&G.length===0&&C.length>0&&!Z&&!U?(C.length===2&&(C=["noreferrer"]),_.Dx(x,f,Q,C[0]),D=oKr()):(Z=G.join(","),_.qr()&&x.navigator&&x.navigator.standalone&&Q&&Q!="_self"?(Z=_.l9("A"),Rm(Z,f),Z.target=Q,D&&(Z.rel="noreferrer"),
((v=v.attributionsrc)||v==="")&&Z.setAttribute("attributionsrc",v),v=document.createEvent("MouseEvent"),v.initMouseEvent("click",!0,!0,x,1),Z.dispatchEvent(v),Z=oKr()):D?(Z=_.Dx(x,"",Q,Z),x=_.mM(f),Z&&(Z.opener=null,x===""&&(x="javascript:''"),x='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ZY(x)+'">',x=Wd(x),(v=Z.document)&&v.write&&(v.write(r0(x)),v.close()))):((Z=_.Dx(x,f,Q,Z))&&v.noopener&&(Z.opener=null),Z&&v.noreferrer&&(Z.opener=null)),D=Z);ME8(_.xd().resolve(fnO),
D,h);return!0}Z=_.gl(h);Z=xnO(Z)||h==="https://studio.youtube.com/";if(_.$d(h)&&!QH(window.location.href,h)||Z)hV(h),mn(),_.ay(h,void 0,void 0,window.top,F18);else return _.yR(new _.XH("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",D)),!1;return!0};
_.Z5o=function(D,v){v=v===void 0?0:v;if(!(_.k(D,Unf)||_.k(D,L1u)||_.k(D,_.RB)&&_.k(D,_.RB).url))return!1;var h,a=(h=_.k(D,_.RB))==null?void 0:h.url;h=a?{externalLinkData:{url:a}}:null;return _.c8().clickCommand(D,h,v)};
EKo=function(D,v){return _.gR(D.entities,"subscriptionStateEntity",v)};
Ino=function(D,v){return _.gR(D.entities,"subscriptionNotificationStateEntity",v)};
gK7=function(D,v){return _.gR(D.entities,"upcomingEventReminderStateEntity",v)};
kDr=function(D,v){return _.gR(D.entities,"engagementToolbarSurfaceEntityPayload",v)};
Sxr=function(D,v){return _.gR(D.entities,"triStateButtonStateEntityPayload",v)};
JWr=function(D,v){return _.gR(D.entities,"commerceCartCheckoutButtonEntity",v)};
_.pIL=function(D,v){return _.gR(D.entities,"playlistLoopStateEntity",v)};
ln7=function(D,v){return _.gR(D.entities,"commandEntity",v)};
Yxc=function(D,v,h,a,Q){Q=Q===void 0?{}:Q;return function(G){var x,f;var C=((x=D.loggingDirectives)==null?0:(f=x.clientVeSpec)==null?0:f.uiType)?_.En(D.loggingDirectives.clientVeSpec.uiType):void 0;Q.clickedVisualElement||(Q.clickedVisualElement=C);C=N7I(D,v);h(C,G);C=_.P(C);for(x=C.next();!x.done;x=C.next()){x=x.value;f=a;var U=G,L=Q;L.form?L.form.event=U:L.form={element:f,event:U};XZ(x,L)}}};
N7I=function(D,v){var h=[];v?(D.toggledCommand&&h.push(D.toggledCommand),D.toggledServiceEndpoint&&h.push(D.toggledServiceEndpoint)):(D.defaultCommand&&h.push(D.defaultCommand),D.defaultServiceEndpoint&&h.push(D.defaultServiceEndpoint),D.defaultNavigationEndpoint&&h.push(D.defaultNavigationEndpoint));return h};
B7u=function(D,v){var h=D.toggledStyle||D.style,a;switch((a=v?h:D.style)==null?void 0:a.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"}}};
_.Ig=function(){return _.M(function(D){return D.nextAddress==1?D.yield(_.xd().resolve(_.zf),2):D.return(_.xd().resolve(cWO)())})};
_.gp=function(){return _.xd().resolve(cWO)()};
_.ke=function(){return sM(function(){return{lottieEl:void 0}})};
XIA=function(D,v){return D.startsWith(v.uniqueId)};
AWf=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(_.Ig(),2);v=a.yieldResult;if((h=v)==null||!h.addEventListener)return Sb(),a.return();v.addEventListener("onCueRangeEnter",D);_.YI(a)})};
qxf=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(_.Ig(),2);v=a.yieldResult;if((h=v)==null||!h.removeEventListener)return Sb(),a.return();v.removeEventListener("onCueRangeEnter",D);_.YI(a)})};
b57=function(D){var v,h,a,Q,G;_.M(function(x){if(x.nextAddress==1)return x.yield(_.Ig(),2);v=x.yieldResult;if((h=v)==null||!h.addCueRange)return Sb(),x.return();a=_.P(D.timings);for(Q=a.next();!Q.done;Q=a.next())G=Q.value,v.addCueRange(D.uniqueId+"-"+G,G/1E3,(G+100)/1E3);_.YI(x)})};
dnI=function(D){var v,h,a,Q,G;_.M(function(x){if(x.nextAddress==1)return x.yield(_.Ig(),2);v=x.yieldResult;if((h=v)==null||!h.removeCueRange)return Sb(),x.return();a=_.P(D.timings);for(Q=a.next();!Q.done;Q=a.next())G=Q.value,v.removeCueRange(D.uniqueId+"-"+G);_.YI(x)})};
jE7=function(){var D,v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(_.Ig(),2);D=a.yieldResult;if((v=D)==null||!v.getPlayerState)return Sb(),a.return();h=D.getPlayerState();return a.return(h===2)})};
Sb=function(){_.yR(new _.XH("Smartimation player does not exist or is corrupted"))};
sEA=function(){try{var D;return(D=window.CSS)!=null&&D.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(v){return _.yR(new _.XH("Smartimation CSS.supports threw an error")),!1}};
O57=function(D,v,h,a,Q){var G=D.playlistId?mnf:H5q;v=v();h=h();Q=!!D.videoId&&Q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.cf(v))return yWi({data:D,actionType:G,disabled:Q},h);if(D.videoId&&a())return wI4({data:D,actionType:G,disabled:Q});switch(v){case "TRANSFER_STATE_UNKNOWN":return wI4({data:D,actionType:G,disabled:Q});case "TRANSFER_STATE_FAILED":return D.videoId?eOc({data:D,actionType:G,disabled:Q}):nKr({data:D,actionType:G,disabled:Q});case "TRANSFER_STATE_COMPLETE":return nKr({data:D,
actionType:G,disabled:Q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return yWi({data:D,actionType:G,disabled:Q},h);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return D.videoId?eOc({data:D,actionType:G,disabled:Q}):wI4({data:D,actionType:G,disabled:Q});default:return wI4({data:D,actionType:G,disabled:Q})}};
K12=function(D,v){var h=D.onTapCommand,a=_.Rq(h);if(D.videoId&&_.k(a,_.Jn))return _.k(a,_.Jn).action=v,h;D.playlistId&&_.k(a,_.pj)&&(_.k(a,_.pj).action=v);return h};
wI4=function(D){var v=D.data;var h=D.actionType;D=D.disabled;return{text:T7u,iconType:"OFFLINE_DOWNLOAD",onTap:K12(v,h.ACTION_ADD),disabled:D}};
yWi=function(D,v){var h=D.data;var a=D.actionType;D=D.disabled;var Q="OFFLINE_DOWNLOAD";v>=0&&v<=.1?Q="OFFLINE_DOWNLOADING_ZERO":v>.1&&v<=.3?Q="OFFLINE_DOWNLOADING_TWENTY":v>.3&&v<=.5?Q="OFFLINE_DOWNLOADING_FORTY":v>.5&&v<=.7?Q="OFFLINE_DOWNLOADING_SIXTY":v>.7&&v<1?Q="OFFLINE_DOWNLOADING_EIGHTY":v===1&&(Q="OFFLINE_PIN");return{text:RO4,iconType:Q,onTap:K12(h,a.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
nKr=function(D){var v=D.data;var h=D.actionType;D=D.disabled;return{text:i5f,iconType:"OFFLINE_PIN",onTap:K12(v,h.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
eOc=function(D){var v=D.data;var h=D.actionType;D=D.disabled;return{text:W1c,iconType:"OFFLINE_DOWNLOAD",onTap:K12(v,h.ACTION_RETRY),disabled:D}};
_.l7=function(D,v){var h=eYr();return _.SM(function(){h();return K0c(D,[_.sY(v)||""])},{debugName:"LUZslf"},"Z105t")};
tEq=function(D){var v=_.l7(_.KG,function(){return D().videoId}),h=_.l7(_.Ta,function(){return D().playlistId});
return function(){return D().videoId?v:D().playlistId?h:_.P(_.Zq("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
rWI=function(D){var v=_.l7(RG,function(){return D().videoId}),h=_.l7(_.YHr,function(){return D().playlistId});
return function(){return D().videoId?v:D().playlistId?h:_.P(_.Zq(0,void 0,"K4tgOc")).next().value}};
u3q=function(D){var v=_.l7(_.slL,function(){return D().videoId});
return function(){return D().videoId?v:_.P(_.Zq(!1,void 0,"Oaxwcf")).next().value}};
Deu=function(D){var v=_.l7(XCI,function(){return D().videoId});
return function(){return D().videoId?v:_.P(_.Zq("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
vS7=function(){return{}};
_.G98=function(D,v,h){return{submitForm:function(){var a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){a=hqf(D());if(!a)return f.return();if(a.onSubmit)return aPc(v),a.onSubmit(),aPc(h),f.return();if(!a.submitConfig||!a.formData)return f.jumpTo(0);a.disableDuringSubmission&&$e2(D(),!0);aPc(v);return f.yield(Q$L(a.submitConfig,a.formData()),3)}Q=f.yieldResult;aPc(h);if(((G=Q)==null?0:G.submitResult)&&((x=a)==null?0:x.onSubmitResult))a.onSubmitResult(Q.submitResult);a.disableDuringSubmission&&$e2(D(),
!1);return f.return()})},
isValid:function(){var a=hqf(D());if(a){var Q;return!((Q=a.isValid)==null||!Q.call(a))}return!0},
isSubmitting:function(){var a,Q;return!!((a=hqf(D()))==null?0:(Q=a.isSubmitting)==null?0:Q.call(a))}}};
_.Nq=function(){if(!VSf){var D=_.P(_.Zq(new Map,void 0,"Y1XnBc"));VSf=D.next().value;PV8=D.next().value}return VSf};
_.xec=function(D){PV8(new Map(D))};
hqf=function(D){if(D)return _.Nq()().get(D)};
Q$L=function(D,v){var h;return _.M(function(a){return a.nextAddress==1?v?(h=_.xd().resolve(_.PV(MSi)))&&D.submitId?a.yield(h.submitForm(D.submitId,v,fPi,D.params,D.clickTrackingParams),2):a.return(Promise.reject(Error("Gh"))):a.return(Promise.reject(Error("Fh"))):a.return(a.yieldResult)})};
$e2=function(D,v){if(D){var h=_.Nq();h().set(D,Object.assign({},h().get(D),{isSubmitting:function(){return v}}));
_.xec(h())}};
aPc=function(D){if(D){var v=_.xd().resolve(_.fx);v&&(D=_.Rq(D()))&&v.resolveCommand(D)}};
oSf=function(D,v){v=v===void 0?{shouldPersist:!0}:v;return{useUpdatableData:function(h,a){var Q=[],G=_.P(_.lL(function(){var U=h();if(a!=null&&a.length&&Q){var L=Q.length>0;for(var Z=!1,E=0;E<a.length;E++){var I=a[E]();L&&I!==Q[E]&&(Z=!0);Q[E]=I}L=Z}else L=!1;if(L)_.Ye.remove(C());else if(L=_.Ye.get(C()))return L;return U})),x=G.next().value,f=G.next().value,C=_.SM(function(){return D(h())},void 0,"mX326");
_.bW(function(){if(C()!=null){CVA.set(C(),[x,f]);var U=C();_.dq(function(){CVA.delete(U)})}},"MgKPjb");
return[x,function(U){f(U);v.shouldPersist&&_.Ye.set(C(),U)}]},
getData:function(h){var a;return(a=CVA.get(D(h)))==null?void 0:a[0]()},
updateData:function(h,a){h=D(h);var Q=CVA.get(h);if(!Q)return!1;var G=_.P(Q);Q=G.next().value;G=G.next().value;a=a(Q());G(a);v.shouldPersist&&_.Ye.set(h,a);return!0}}};
FWA=function(D){var v=_.P(_.Zq(!0,void 0,"bKtO6d")),h=v.next().value;v.next();return function(){var a=SA(D.children());return _.F(_.z,{cond:h,then:function(){return a},
else:D.fallback})}()};
_.c4=function(D){var v=zq8(D),h=v.data,a=v.mapping,Q=v.wrapper;v=v.pendingFallback;var G=function(){return UeO(_.sY(h))},x=function(){var f=G(),C=[];
f=_.P(f);for(var U=f.next();!U.done;U=f.next()){var L=void 0;U=U.value;var Z=void 0;for(L in U)if(!(!U).hasOwnProperty(L)){Z=L;break}(L=Z)&&C.push(L)}return C};
return D.data?_.F(FWA,{fallback:v},function(){return _.F(_.Xd,{each:x},function(f,C){var U=Q?function(Z){return Q(function(){return a[f](Z,C)},L,C)}:function(Z){return a[f](Z,C)};
U.debugName||(U.debugName=String(f));if(!a[String(f)])return document.createComment("");U.componentType!==cl&&LWL(String(f));var L=ZMO(G,f,C);return _.F(U,{data:L})})}):_.F(_.xf,null)};
zq8=function(D){var v=D.targetId||ESO(D.children);if(!D.data||!v||_.g("mweb_new_replaceables_killswitch"))return Object.assign({},D,{mapping:D.children,wrapper:void 0});var h="stamper-"+IPL++,a=function(){var f;return(f=typeof D.targetId==="function"?D.targetId(h):D.targetId)!=null?f:h};
v=_.P(gS8(function(){var f=UeO(D.data());f.targetId=a;return f})).next().value;
var Q=Object.assign({},(_.xd().resolve(_.PV(k9c))||{}).replaceableMapping,D.children);if(D.replacementWrapper){var G=Q.notificationTextRenderer,x=Q.notificationMultiActionRenderer;G&&(Q.notificationTextRenderer=function(f,C){return D.replacementWrapper(G({data:f.data},C))});
x&&(Q.notificationMultiActionRenderer=function(f,C){return D.replacementWrapper(x({data:f.data},C))})}return Object.assign({},D,{data:v,
mapping:Q,wrapper:function(f,C,U){return eN7({targetId:a,stamperIndex:U},f)}})};
ZMO=function(D,v,h){var a;return _.SM(function(){var Q=D()[h()];if(Q)a=Q[v];else return _.yR(new _.XH("Stamper failed to find "+String(v)+" at index "+h()+" of data array of length "+(D().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),a;return Q[v]},void 0,"wgRPHd")};
ESO=function(D){D=_.P(Object.keys(D));for(var v=D.next();!v.done;v=D.next())if(v=v.value,S34.includes(v)||Jac.includes(v)||pnq.includes(v))return!0;return!1};
UeO=function(D){return D?Array.isArray(D)?D:[D]:[]};
LWL=function(D){if(_.g("web_enable_renderer_logger")){var v;(v=_.xd().resolve(_.PV(lPo)))!=null&&v.loggingEnabled&&!v.ids.has(D)&&v.ids.add(D)}};
NHo=function(){var D,v;return(v=(D=_.xd().resolve(_.PV(_.$5)))==null?void 0:D())!=null?v:!1};
BHf=function(D,v){D=D===void 0?Y3o:D;switch(v.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},D,{isOpen:v.payload});default:return D}};
Xno=function(D,v){D=D===void 0?ca7:D;switch(v.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},D,{isAllowed:v.payload});default:return D}};
q3A=function(D,v){D=D===void 0?AaL:D;switch(v.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{errorMessage:v.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{title:v.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},D,{privacy:v.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},D,{isDisabled:v.payload});default:return D}};
deq=function(D,v){D=D===void 0?bMc:D;switch(v.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},D,{isOpen:v.payload});default:return D}};
s$L=function(D,v){D=D===void 0?j$q:D;switch(v.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},D,{isFullscreen:v.payload});case "SET_NAVIGATION_BUTTON":var h=v.payload.targetId,a=Object.assign({},D.navigationButtons);a[h]=v.payload.button;return Object.assign({},D,{navigationButtons:a});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},D,{topPanelId:v.payload});case "SET_SECONDARY_HEADER":return h=v.payload.panelId,a=Object.assign({},D.secondaryHeader),a[h]=v.payload.secondaryHeader,
Object.assign({},D,{secondaryHeader:a});default:return D}};
wnL=function(){return SC(Object.assign({},{voiceSearch:Vuu,engagementPanel:s$L,bottomSheet:BHf,cinematicSetting:Xno,shorts:zAL,drawerLayout:deq,createPlaylist:q3A,locationCollection:me2,reportChannel:HM7,reportForm:yaO},Uti))};
eq4=function(D,v){_.HK.addLowPriorityJob(function(){var h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return _.gE(G,2),G.yield(k5A(),4);case 4:return G.yield(fetch(D),5);case 5:return h=G.yieldResult,G.yield(h.json(),6);case 6:a=G.yieldResult;j3.set(D,a);requestAnimationFrame(function(){v(a)});
_.rl(G,0);break;case 2:Q=_.NS(G),_.yR(Q),_.YI(G)}})})};
nSc=function(D){var v={animationConfig:{},listeners:{}},h=function(){D(!0)};
v.listeners.data_failed=h;v.listeners.error=h;v.listeners.data_ready=function(){D(!1)};
return v};
TH4=function(D){var v=D.model;var h=D.subscribed;var a=D.isOverlay;var Q=D.element;var G=D.commandController;var x=D.notificationState;if(h){var f,C;var U=(v==null?void 0:(f=v.buttonStyle)==null?void 0:f.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:v==null?void 0:(C=v.unsubscribeButtonContent)==null?void 0:C.buttonText}else{var L;U=v==null?void 0:(L=v.subscribeButtonContent)==null?void 0:L.buttonText}a:{var Z;switch(v==null?void 0:(Z=v.buttonStyle)==
null?void 0:Z.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":f="S";break a;default:f="M"}}a:if(a)a="overlay";else switch(v.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":a="overlay";break a;default:a="mono"}a:if(h)var E="tonal";else switch((E=v.buttonStyle)==
null?void 0:E.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":E="tonal";break a;default:E="filled"}return{style:a,type:E,state:v.disableSubscribeButton?"disabled":"active",size:f,focused:D.focused,toggled:h,accessibilityLabel:OMO(v,h,x),buttonText:U,iconPosition:v.disableNotificationBell?"none":"leading-trailing",onTap:KW2(v,h,Q,G),disableTextEllipsis:!!D.disableTextEllipsis}};
KW2=function(D,v,h,a){return function(Q){if(v){var G;var x=D.disableNotificationBell?_.Rq(D==null?void 0:(G=D.unsubscribeButtonContent)==null?void 0:G.onTapCommand):_.Rq(D==null?void 0:D.onShowSubscriptionOptions)}else{var f;x=_.Rq(D==null?void 0:(f=D.subscribeButtonContent)==null?void 0:f.onTapCommand)}x&&XZ(x,{form:{element:h==null?void 0:h.value},commandController:a});Q.stopPropagation()}};
OMO=function(D,v,h){if(v){if(D==null?0:D.disableNotificationBell){var a;return D==null?void 0:(a=D.unsubscribeButtonContent)==null?void 0:a.accessibilityText}switch(h){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Q;return D==null?void 0:(Q=D.bellAccessibilityData)==null?void 0:Q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var G;return D==null?void 0:(G=D.bellAccessibilityData)==null?void 0:G.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var x;return D==null?void 0:(x=
D.bellAccessibilityData)==null?void 0:x.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var f;return D==null?void 0:(f=D.bellAccessibilityData)==null?void 0:f.disabledLabel;default:var C;return D==null?void 0:(C=D.unsubscribeButtonContent)==null?void 0:C.accessibilityText}}else{var U;return D==null?void 0:(U=D.subscribeButtonContent)==null?void 0:U.accessibilityText}};
RqL=function(D){if(D){switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":D="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":D="NOTIFICATIONS_OFF";break;default:D="NOTIFICATIONS_NONE"}return D}};
iMq=function(D,v,h){h.subscribed!==v&&((h=h.key)&&_.xt(_.Xe("subscriptionStateEntity",h,{key:h,subscribed:v})),D.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:v})),v||_.zU(D,"yt-unsubscribe-action"))};
tSL=function(D){D=_.k(_.Rq(D),_.An);var v,h,a,Q;return(Q=_.k(D==null?void 0:(v=D.panelLoadingStrategy)==null?void 0:(h=v.inlineContent)==null?void 0:(a=h.sheetViewModel)==null?void 0:a.content,WWc))==null?void 0:Q.listItems};
ra2=function(D,v){if(D.onShowSubscriptionOptions&&v&&(D=tSL(D.onShowSubscriptionOptions),D!=null&&D.length)){var h=RqL(v);D.forEach(function(a){a=_.k(a,_.qq);var Q,G,x,f,C=a==null?void 0:(Q=a.leadingImage)==null?void 0:(G=Q.sources)==null?void 0:(x=G[0])==null?void 0:(f=x.clientResource)==null?void 0:f.imageName;a&&C&&(a.isSelected=C===h)})}};
ulo=function(D,v,h,a){v&&h?D.style.width=h+"px":!v&&a&&(D.style.width=a+"px")};
DWu=function(D,v,h){var a;(a=D.lottieEl)==null||a.goToAndPlay(0);var Q;(Q=v.lottieEl)==null||Q.goToAndPlay(0);_.b7(_.HK,function(){var G;(G=h.lottieEl)==null||G.goToAndPlay(0)},300)};
vW4=function(D){return!(D==null||!D.iconName||(D==null?0:D.title))};
hWu=function(D,v,h,a){h&&_.HK.cancelJob(h);h=_.HK.addLowPriorityJob(function(){a(void 0)},5E3);
a(h);v&&D!==(v.likeStatus==="LIKE")&&v.key&&_.xt(_.Xe("likeStatusEntity",v.key,{key:v.key,likeStatus:D?"LIKE":"INDIFFERENT",hadUserInteraction:D}))};
_.a8L=function(D,v){return _.gR(D.entities,"accountLinkStatusEntity",v)};
$W4=function(D,v){return _.gR(D.entities,"hatsSurveyEntity",v)};
Qxi=function(D,v){return _.gR(D.entities,"hatsSurveyStateEntity",v)};
G$O=function(D,v){return _.gR(D.entities,"quantityIncrementerEntity",v)};
VP2=function(D){switch(D){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
PGq=function(D){switch(D){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
xWr=function(D){switch(D){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.f8o=function(D){var v=_.oZ("web_generic_client_event_wait_period ",0);v||(v=3E5);var h=MP8.get(D);!_.g("enable_web_client_experiment_event_timeout_killswitch")&&h&&(0,_.xz)()-h<v||(MP8.set(D,(0,_.xz)()),_.jj("genericClientExperimentEvent",{eventType:D}))};
CGu=function(D){switch(D){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
oWL=function(D){if(!D)return"";var v,h=(v=_.xd().resolve(_.PV(_.$5)))==null?void 0:v(),a;if(!h&&((a=D.vibrantColorPalette)==null?0:a.iconInactiveColor))return DW(D.vibrantColorPalette.iconInactiveColor,"1");var Q;return h&&((Q=D.darkColorPalette)==null?0:Q.iconInactiveColor)?DW(D.darkColorPalette.iconInactiveColor,"1"):D.color?DW(D.color,"1"):D.sampledThumbnailColor?(D=D.sampledThumbnailColor,"rgba("+D.red+","+D.green+","+D.blue+");"):""};
_.dp=function(D,v){if(!D.includes("DATE_PLACEHOLDER"))return D;var h=new Date(0);h.setUTCSeconds(v);return D.replace("DATE_PLACEHOLDER",Fw2(h))};
zW4=function(D,v,h){return function(a){var Q=D.command;Q&&(XZ(Q,{form:{element:h}}),v([Q],a))}};
LwA=function(D,v,h,a,Q){return function(G){var x=UWf(D,v);x&&XZ(x,{form:{element:h},commandController:a});Q&&G.stopPropagation()}};
UWf=function(D,v){if(D.signInEndpoint&&!_.g("web_subscribe_sign_in_endpoint_killswitch"))return D.signInEndpoint;if(v){if(D.serviceEndpoints)return D.serviceEndpoints[1];if(D.onUnsubscribeEndpoints)return D.onUnsubscribeEndpoints[0]}else{if(D.serviceEndpoints)return D.serviceEndpoints[0];if(D.onSubscribeEndpoints)return D.onSubscribeEndpoints[0]}};
ZtA=function(D,v){var h,a,Q,G;v=v&&((h=D.unsubscribeAccessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label)||((Q=D.subscribeAccessibility)==null?void 0:(G=Q.accessibilityData)==null?void 0:G.label);return D.longSubscriberCountText?[v,_.$V(D.longSubscriberCountText)].filter(function(x){return x}).join(" "):v};
jb=function(D,v){return v||(D==null?0:D.isChannelDelegate)?"disabled":"active"};
EWA=function(D,v){var h;switch((h=D.style)==null?void 0:h.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:jb(D)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:jb(D)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:jb(D,!0)};case "OVERLAY":return v?{style:"overlay",type:"tonal",state:jb(D)}:{style:"overlay",type:"filled",state:jb(D)};default:return v?{style:"mono",type:"tonal",state:jb(D)}:{style:"mono",type:"filled",state:jb(D)}}};
_.sn=function(){for(var D=[],v=_.P(_.Kz.apply(0,arguments)),h=v.next();!h.done;h=v.next())if(h=h.value)if(typeof h==="string")D.push(h);else{h=_.P(Object.entries(h));for(var a=h.next();!a.done;a=h.next()){var Q=_.P(a.value);a=Q.next().value;(Q=Q.next().value)&&D.push(a)}}return D.join(" ")};
I8O=function(D){switch(D){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
gW7=function(D){switch(D){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
k$u=function(D,v){var h=D.map(function(a){return a.toString()});
return _.Jd(function(a){if(h.includes(a.key)){v&&a.preventDefault();var Q;(Q=a.currentTarget)==null||Q.click()}})};
_.SsA=function(){return k$u(["Enter"])};
_.JCf=function(){return k$u(["Enter"," "],!0)};
_.ms=function(D){if(D.composedPath)return D.composedPath();if(!D.__composedPath){for(var v=[],h=D.target;h;)v.push(h),h=h.parentNode;v.push(window);D.__composedPath=v}return D.__composedPath};
_.H4=function(D,v,h){D=_.P(D);for(var a=D.next();!a.done;a=D.next()){a=a.value;if(a===v)break;for(var Q=_.P(h),G=Q.next();!G.done;G=Q.next())if(G=G.value,a.tagName===G||a.role==="button"&&G==="BUTTON")return!0}return!1};
l87=function(D,v){var h,a=(h=v.observer)!=null?h:_.xd().resolve(xX);if(D){h=py7(D);var Q=[];v.showOption&&Q.push(a.observe(D,function(){v.visibilityCallback(!0,D)},v.showOption));
v.hideOption&&Q.push(a.observe(D,function(){v.visibilityCallback(!1,D)},v.hideOption));
v.prescanOption&&v.prescanCallback&&Q.push(a.observe(D,function(){v.prescanCallback()},v.prescanOption));
var G;h.visibilityMonitorKeys=((G=h.visibilityMonitorKeys)!=null?G:[]).concat(Q)}};
py7=function(D){var v;return(v=D.polymerController)!=null?v:D};
_.wp=function(D){return!!_.yL(D)};
_.eb=function(D,v,h,a,Q){return function(G){var x=wxA();_.bW(function(){if(G){Ng8(G,D(),Q);var f=Ysi(G,D(),v,h,a,x);_.dq(f)}},"nr377e")}};
Ng8=function(D,v,h){var a=Bgc(v),Q=cCI(v);v=a&&Xy2;var G=Q&&AC2;(a||Q)&&l87(D,{visibilityCallback:function(x){var f=_.xd().resolve(_.fx);x&&a?f.resolveCommand(a,{form:{element:h?D:void 0},disableClickTracking:!0}):!x&&Q&&f.resolveCommand(Q,{form:{element:h?D:void 0},disableClickTracking:!0})},
showOption:v,hideOption:G})};
Ysi=function(D,v,h,a,Q,G){var x=new Map;if(v=_.yL(v)){var f;D=(a==null?void 0:(f=a.onTap)==null?void 0:f.value)||D;h=qs2(v,D,h==null?void 0:h.onTap,Q,G);D.addEventListener("click",h);x.set("click",h)}return function(){for(var C=_.P(x),U=C.next();!U.done;U=C.next()){var L=_.P(U.value);U=L.next().value;L=L.next().value;D.removeEventListener(U,L)}}};
_.yL=function(D){var v;return(D=(v=_.k(D,btI))==null?void 0:v.onTap)&&_.Rq(D)};
Bgc=function(D){var v;return(D=(v=_.k(D,btI))==null?void 0:v.onVisible)&&_.Rq(D)};
cCI=function(D){var v;return(D=(v=_.k(D,btI))==null?void 0:v.onHidden)&&_.Rq(D)};
qs2=function(D,v,h,a,Q){var G=function(f){_.xd().resolve(_.fx).resolveCommand(D,f)},x=function(f){a&&_.H4(_.ms(f),v,a)||G(f.target?{form:{element:f.target,
sourceData:D,mutationContext:Q}}:void 0)};
h&&(x=function(f){h(f,G)});
return x};
dWi=function(D){switch(D){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
jxI=function(D){var v=D.numAvatarsInCluster;switch(D.clusterSize){case "small":return v===2?22:18;case "40":return v===2?24:22;default:return v===2?24:20}};
sxc=function(D,v){return function(h){var a=Object.keys(v);_.bW(function(){if(D!=null&&D()){for(var Q=_.P(a),G=Q.next();!G.done;G=Q.next())G=G.value,h.addEventListener(G,v[G]);_.dq(function(){for(var x=_.P(a),f=x.next();!f.done;f=x.next())f=f.value,h.removeEventListener(f,v[f])})}},"bXZGfe")}};
mWO=function(D){switch(jxI(D)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
Ht2=function(D){switch(D){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
yCf=function(D){switch(jxI(D)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
wyf=function(D){switch(D){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
eW8=function(D){switch(D){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
nWL=function(D){return D==="medium"||D==="48"||D==="large"||D==="extra-large"||D==="extra-extra-large"||D==="giant"};
Otr=function(D){return!!((D==null?0:D.includes(3))||(D==null?0:D.includes(5)))};
Tgc=function(D){var v=D.data;return{size:Kw8(v.avatarImageSize),type:v.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:D.onTap,decorations:D.decorations||[],badgeText:D.badgeText,accessibilityText:D.accessibilityText,avatarButtonCustomClassName:D.avatarButtonCustomClassName,clusterLayoutConfig:D.clusterLayoutConfig}};
Kw8=function(D){switch(D){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
RWc=function(D){switch(D){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
itq=function(D){switch(D){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
Ww4=function(D){var v=D.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",h,a=D.avatars&&D.avatars.length>0?(h=_.k(D.avatars[0],_.nj))==null?void 0:h.avatarImageSize:"AVATAR_SIZE_UNKNOWN";h=RWc(a)||0;if(v){var Q,G=(Q=D.avatarClusterSize)!=null?Q:"AVATAR_SIZE_M";v=RWc(G);var x,f,C=Math.min((f=(x=D.avatars)==null?void 0:x.length)!=null?f:0,4),U;return{avatars:((U=D.avatars)==null?void 0:U.slice(0,4))||[],avatarSizeInPx:h,avatarStackStyle:{width:v+"px",height:v+"px",position:"relative"},avatarStyle:function(Z){var E=
jxI({clusterSize:Kw8(G),numAvatarsInCluster:C,avatarIndex:Z});var I=RWc(G);C===3&&Z===2?(I=(I-E)/2,I=(_.eA("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*I):I=void 0;return{position:"absolute",top:C===2&&Z===1||C===3&&Z===2||C===4&&Z>=2?"0":void 0,bottom:C===2&&Z===0||C>2&&Z<2?"0":void 0,left:C===2&&Z===1||C>2&&(Z===1||Z===3)?"0":void 0,right:C<=3&&Z===0||C===4&&(Z===0||Z===2)?"0":void 0,transform:I?"translateX("+I+"px)":void 0,width:E+"px",height:E+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(Z){return{clusterSize:Kw8(D.avatarClusterSize),numAvatarsInCluster:C,avatarIndex:Z}},
avatarButtonCustomClassName:void 0}}var L;return{avatars:((L=D.avatars)==null?void 0:L.slice())||[],avatarSizeInPx:h,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:itq(a),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
tP2=function(D,v,h){return function(){XZ(D,{form:{element:v},commandController:h})}};
rCI=function(D){switch(D){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
uDq=function(D){switch(D){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
DUc=function(D){if("accessibilityText"in D)return D.accessibilityText||"";if("title"in D){var v,h,a;return((v=D.title)==null?void 0:(h=v.accessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label)||""}if("accessibility"in D){var Q,G;return((Q=D.accessibility)==null?void 0:(G=Q.accessibilityData)==null?void 0:G.label)||""}return""};
vj8=function(D){return"inlinePlayerData"in D};
On=function(D){return new hLA(D)};
aA8=function(D){return function(v){D&&(D.thumbnailElRef=v.thumbnailElRef,D.thumbnail=v.thumbnail,D.thumbnailOverlays=v.thumbnailOverlays,D.thumbnailSize=v.thumbnailSize)}};
$Ui=function(D){switch(D){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
Ggi=function(D){var v=_.P(_.Zq(!1,void 0,"RIOonf")),h=v.next().value,a=v.next().value;_.jA(function(){var Q=D==null?void 0:D();if(Q){var G=_.xd().resolve(_.PV(Qwr));if(G){var x={triggeringElement:Q,onDwellTriggeredFn:function(){a(!0)},
onDwellEndFn:function(){a(!1)}};
G.registerElement(x);_.dq(function(){_.Kj(G,x)})}}});
return h};
VNA=function(D,v,h){h?h(v):_.r4(v,D.target?{form:{element:D.target}}:void 0)};
_.Tf=function(D,v,h,a){return function(Q){_.bW(function(){function G(L){L=L.composedPath();L=_.P(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;if(Z===Q)break;if(Z.className.indexOf("HostIsClickableAdComponent")>=0||Z.tagName==="A".toString()||Z.tagName==="BUTTON".toString())return!0}return!1}
var x=new Map,f,C=(f=D())==null?void 0:f.onTap;if(C){f=function(L){G(L)||VNA(L,C,v)};
var U=function(L){G(L)||L.key!=="Enter"||VNA(L,C,v)};
(h==null?0:h())||_.g("enable_web_home_top_landscape_image_layout_level_click")?(Q.addEventListener("tap",f),x.set("tap",f)):(Q.addEventListener("click",f),x.set("click",f));if(a==null?0:a())Q.addEventListener("keydown",U),x.set("keydown",U)}_.dq(function(){for(var L=_.P(x),Z=L.next();!Z.done;Z=L.next()){var E=_.P(Z.value);Z=E.next().value;E=E.next().value;Q.removeEventListener(Z,E)}})},"D7XqOc")}};
Paq=function(D,v){var h,a=(h=D.interaction)==null?void 0:h.onTap;if(D=_.W8({elementsCommand:a,forceNewState:!0,skipOnClick:!0}))return D.onclick=function(Q){fT7(Q)&&(Q.preventDefault(),a&&VNA(Q,a,v))},tD(D)?D:void 0};
xUO=function(D){switch(D){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
MNr=function(D){switch(D){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
fA7=function(D){switch(D){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.Ca2=function(D){return _.g("rich_grid_enable_dynamic_offset")&&D?Math.max(Math.round((D-_.oZ("rich_grid_dynamic_offset_anchor_width",1300))/100*_.oZ("rich_grid_dynamic_offset_offset_per_100",10)),_.oZ("rich_grid_dynamic_offset_lower_bound",-60)):0};
oj8=function(D,v){switch(v){case 4:return 16;case 1:return D<528?16:D<1024?32:48;case 2:return(D>=528?16:8)/2;case 3:return(D<528?16:D<1024?32:48)+(D>=528?16:8)/2;default:return 0}};
Fhr=function(D){var v=D.originalContainerWidth;var h=D.sizing;var a=D.standardUnit;if(D.isCompactList&&v<528)return 1;switch(h){case "STANDARD":return a;case "COMPACT":return a+1;case "EXTRA_COMPACT":return _.g("web_responsive_extra_compact_2x")?a*2:_.g("web_responsive_current")?a===1?2:a%2===0?a/2*3:a+2:a<4?a*2:Math.ceil(a*3/2);case "MINI":return a>1?a*2:3;default:return a}};
UUu=function(D){var v=D.containerWidth;var h=D.peek;var a=D.gutter;var Q=D.numItems;D=D.ignoreMaxWidthLimit;v=h?Math.max((v-h-a*Q)/Q,0):Math.max((v-a*(Q-1))/Q,0);return D?v:Math.min(v,zLA)};
_.Rg=function(D){var v=D.containerWidth;var h=D.hasPeek;var a=D.sizing;var Q=D.marginSettings;var G=D.isCompactList;var x=D.enableFullBleedForSingleCol;var f=D.standardUnitMinWidth;a=a||"STANDARD";h=!!h;D=v>=528?16:8;var C=h?v>=528?48:24:0;Q=oj8(v,Q);var U=Math.max(v-Q*2,0);f=_.g("kevlar_disable_min_width_override")?void 0:f;f=Math.min(Math.max(Math.floor((U-C+D)/((f!=null?f:Lh7)+_.Ca2(v)+D)),1),6);var L=(x=!!x&&f===1)||f===1&&a!=="STANDARD";h=h||L?U:Math.min(U,(zLA+D)*f-D);a=Fhr({originalContainerWidth:v,
sizing:a,standardUnit:f,isCompactList:G});return{itemWidth:UUu({containerWidth:h,peek:C,gutter:D,numItems:a,ignoreMaxWidthLimit:L}),gutter:D,maxContainerWidth:h,numItems:a,margin:x?0:Q,contentMargin:oj8(v,1),typographyBump:UUu({containerWidth:h,peek:C,gutter:D,numItems:f,ignoreMaxWidthLimit:L})>400&&!(G&&v<528),standardUnit:f}};
Z84=function(D){switch(D){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.EjA=function(D){if(D){var v;if((v=D.responsiveContainerConfiguration)==null?0:v.responsiveSize)return Z84(D.responsiveContainerConfiguration.responsiveSize);if(D.layoutSizing)switch(D.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
IAf=function(D){if(D.fullbleed)return 1;switch(D.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
J_L=function(D,v,h,a,Q,G,x,f){a:if(D===4&&a==="LOCKUP_CONTENT_TYPE_SOURCE")var C=1;else switch(D){case 3:C=1;break a;default:C=0}a:switch(D){case 4:G=!!(G&&G<100);break a;default:G=!1}a:switch(D){case 3:case 4:var U=a==="LOCKUP_CONTENT_TYPE_CHANNEL"||a==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:U=!1}a:switch(D){case 5:var L=!0;break a;case 4:L=!1;break a;default:L=!1}return{isOverlay:L,isCard:gj4(a,x),sizing:v!=null?v:"STANDARD",typographyBump:h!=null?h:!1,isTiny:G,isCentered:U,isCollection:kgu(a),
arrangement:C,addMarginForFullbleed:D===1&&a!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:D===1&&a==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:SUo(a,Q,f),disableRounding:D===5||gj4(a,x)||D===1&&a==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:kgu(a)?2:0,useLegacyTypography:!(f==null||!f.useLegacyTypography),useRichGridLegacyTypography:!(f==null||!f.useRichGridLegacyTypography)&&!_.g("web_enable_typography_bump"),compactMetadata:C===0&&a==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:f==null?void 0:f.onFocusEffect}};
kgu=function(D){switch(D){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
gj4=function(D,v){if(v&&D==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(D){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
SUo=function(D,v,h){if(v&&(h==null||!h.alwaysRespectPodcastShowAspectRatio||D!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(D){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
pG4=function(D){switch(D){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
lA7=function(D){switch(D){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
N$8=function(D){switch(D){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
_.i7=function(D){if(D){var v;return((v=_.xd().resolve(_.PV(_.$5)))==null?0:v())?D.darkThemeImage:D.image}};
c_A=function(D,v,h,a,Q,G){if(Q&&G&&v==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Q,height:G};if(!h)return{};Q=h.size;h=h.allowFullWidth;if(v==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&h)return{fullWidth:!0};if(Q===void 0)return{};switch(D){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Q,height:Q};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Q,height:1/YUO*Q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Q*
B$q,height:Q};default:return(a==null?0:a.height)&&(a==null?0:a.width)?a.width/a.height>1?{maxWidth:Q*B$q}:{maxWidth:Q}:{maxWidth:Q}}};
XG2=function(D){var v;return D&&((v=_.i7(D.themedImage))!=null?v:D.image)};
A_c=function(D){var v;return D==null?void 0:(v=D.sources)==null?void 0:v[0]};
qUq=function(D){switch(D){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.b8u=function(D){if(D)return"content-id-"+D};
dUc=function(D){switch(D.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
jwO=function(D){var v=_.W4.currentPageSubTypeSelector(_.P8().getState())||"";return D?D+v:""};
swr=function(D){switch(D){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
H8c=function(D){var v=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],h=_.P(_.Zq(void 0,void 0,"JrqNsb")),a=h.next().value,Q=h.next().value,G=_.P(_.Zq(void 0,void 0,"rWytse"));h=G.next().value;var x=G.next().value;G=_.P(_.Zq(void 0,void 0,"DHRqxe"));var f=G.next().value,C=G.next().value;return{touchFeedbackEvents:{pointerUpEvent:a,pointerDownEvent:h,pointerLeaveEvent:f},touchFeedbackOnPointerUp:_.Jd(function(U){mU8(_.ms(U),v)||(Q(U),x(void 0),C(void 0))}),
touchFeedbackOnPointerDown:_.Jd(function(U){D==null||D(U);mU8(_.ms(U),v)||(x(U),Q(void 0),C(void 0))}),
touchFeedbackOnPointerLeave:_.Jd(function(U){mU8(_.ms(U),v)||(C(U),x(void 0),Q(void 0))})}};
mU8=function(D,v){v=v===void 0?[]:v;v=[].concat(_.j_(v),["BUTTON".toString()]);D=_.P(D);for(var h=D.next();!h.done;h=D.next()){h=h.value;for(var a=_.P(v),Q=a.next();!Q.done;Q=a.next())if(h.tagName===Q.value)return!0}return!1};
y_c=function(D){switch(D){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
wG4=function(D){return D.scrollHeight-D.offsetHeight>1};
eLf=function(D,v){var h;return a3(D,((h=D.content)==null?void 0:h.length)||0,!v)};
KhL=function(D,v,h,a,Q,G){if(!v||nj4){var x;return a3(D,((x=D.content)==null?void 0:x.length)||0,!0)}v=a.value;if(!h.value||!v||!D.content)return D;h=0;a=D.content.length;x=0;O8i||(O8i=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var f=O8i;for(Q=Q*G*f;h<=a;)G=Math.floor(h+(a-h)/2),f=a3(D,G)||D,v.firstChild&&(v.firstChild.textContent=f.content),v.scrollHeight>Q?a=G-1:(x=G,h=G+1);return a3(D,x)};
T$u=function(D,v){var h,a;return(((h=D.content)==null?void 0:h.length)||0)>(((a=v.content)==null?void 0:a.length)||0)};
RL7=function(D,v,h,a,Q,G){var x=_.va("truncated-text-content"),f=_.va("truncated-text-content"),C=_.va("button"),U=_.va("button"),L=_.va("button"),Z=_.xd().resolve(_.Gh),E=_.P(_.lL(function(){return eLf(D(),Q())})),I=E.next().value,S=E.next().value;
E=_.P(_.lL(function(){return T$u(D(),I())}));
var B=E.next().value,A=E.next().value,d=null;_.bW(function(){function b(){if(x.value&&C.value&&L.value){var O=G()?D():KhL(D(),Q(),x,f,v(),h());S(O);requestAnimationFrame(function(){if(x.value&&C.value&&L.value){var R=wG4(x.value)||T$u(D(),O);A(R);if(!a()){var vA=wG4(x.value),f7=h(),xL=x.value,kL=C.value,Z4=L.value,S2=Z==="rtl";if(xL&&kL){var s8=kL.offsetLeft;S2&&(s8=xL.offsetWidth-kL.offsetWidth-kL.offsetLeft);if(R){R=kL.offsetWidth;kL=xL.offsetWidth;var Xf=vA?kL-R-70:s8-70;f7="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
f7+"rem,\n      #000 "+f7+"rem,\n      #000 100%), linear-gradient(\n      to "+((S2?"left":"right")+",\n      #000 0px,\n      #000 "+Xf+"px,\n      transparent "+(vA?kL-R:Xf+70)+"px)");xL.style.setProperty("-webkit-mask-image",f7);xL.style.setProperty("mask-image",f7)}else xL.style.setProperty("-webkit-mask-image",""),xL.style.setProperty("mask-image","");vA?S2?(Z4.style.setProperty("left","0"),Z4.style.setProperty("right","unset")):(Z4.style.setProperty("left",""),Z4.style.setProperty("right",
"0")):S2?(Z4.style.setProperty("left","unset"),Z4.style.setProperty("right",s8+"px")):(Z4.style.setProperty("left",s8+"px"),Z4.style.setProperty("right","unset"))}}}})}}
var W,K;(W=d)==null||(K=W.stop)==null||K.call(W);W=new _.tn(b,17);b();d=W},"KjwIxd");
_.jA(function(){S(eLf(D(),Q()));A(T$u(D(),I()));var b=function(){O8i=void 0;var K,O;(K=d)==null||(O=K.fire)==null||O.call(K)};
if(window.ResizeObserver){var W=new ResizeObserver(b);W.observe(x.value);_.dq(function(){var K,O;(K=d)==null||(O=K.stop)==null||O.call(K);W.disconnect()})}else window.addEventListener("resize",b),_.dq(function(){var K,O;
(K=d)==null||(O=K.stop)==null||O.call(K);window.removeEventListener("resize",b)})});
return{isTruncated:B,displayText:I,contentRef:x,hiddenRef:f,placeholderTruncationTextRef:C,hiddenTruncationTextRef:U,truncationTextRef:L}};
i82=function(D){return{content:D!=null?D:""}};
WhA=function(D){return _.Rq(D.onTap)||_.yL(D.rendererContext)};
tNO=function(D){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:D.overflowMenuA11yLabel,onTap:function(v){v.preventDefault();v.stopPropagation();if(D.overflowMenuOnTap){var h=_.W8({elementsCommand:D.overflowMenuOnTap,forceNewState:!0});if(h==null?0:h.onclick)h.onclick(v)}}}};
_.u7=function(D,v,h,a,Q){a=a===void 0?{}:a;if(!Q||Math.random()<5E-4){v=v||null;h=h||null;D=D instanceof Error?D:new _.XH(D);if(D.args)for(var G=_.P(D.args),x=G.next();!x.done;x=G.next())x=x.value,x instanceof Object&&(a=Object.assign({},x,a));a.category="H5 Ads Control Flow";v&&(a.slot=v?"slot:  "+v.slotType:"");h&&(a.layout=h?"layout:  "+h.layoutType:"",a.layoutId=h.layoutId);Q&&(a.known_error_aggressively_sampled=!0);D.args=[a];_.yR(D)}};
_.r_O=function(D,v){v=_.MP(v);_.zU(D,"yt-open-popup-action",[v,D])};
_.Dj=function(D,v){_.r_O(D,_.aX(v))};
DRA=function(D){if(!D)return"";if(uKc[D])return uKc[D];vO||(vO=_.l9("A"));vO.href!==D&&Rm(vO,D);var v=vO.pathname;uKc[D]=v.startsWith("/")?v:"/"+v;return uKc[D]};
v04=function(){var D=DRA(window.location.href);if(D==="/")return"home";if(D.startsWith("/results"))return"search";if(D.startsWith("/watch"))return"watch";if(D.startsWith("/shorts"))return"shorts";if(D.startsWith("/hashtag"))return"hashtag";if(D.startsWith("/create_channel"))return"create_channel";if(D.startsWith("/@")||D.startsWith("/user/")||D.startsWith("/channel/"))return"channel";if(D.startsWith("/experiments"))return"experiments";if(D.startsWith("/sponsor_channel"))return"sponsorship";if(D.startsWith("/select_site"))return"settings";
if(D.startsWith("/locate"))return"locate";if(D.startsWith("/redeem"))return"redeem";if(D.startsWith("/musicpremium")||D.startsWith("/premium")||D.startsWith("/red"))return"premium";if(D.startsWith("/paid_memberships"))return"paid_memberships";if(D.startsWith("/oops"))return"oops";if(D.startsWith("/clip"))return"clip";var v;return(hm==null?void 0:(v=hm.response)==null?void 0:v.page)==="404"?"404":D.startsWith("/feed/history")?"history":D.startsWith("/feed/library")?"library":D.startsWith("/feed/subscriptions")?
"subscriptions":D.startsWith("/feed/trending")?"trending":D.startsWith("/feed/news_destination")?"news":D.startsWith("/playlist")?"playlist":D.startsWith("/minor_moment")?"minor_moment":D.startsWith("/playable/")||D.match("^/playables/(?!saved).")?"mini_app":D.startsWith("/playables")?"playables":D.startsWith("/create/live/join")?"open_in_app":D.startsWith("/feed/explore")?"explore":"browse"};
_.QOq=function(){var D=hm==null?void 0:hm.response,v=D==null?void 0:D.endpoint;if(!v)return(D==null?void 0:D.page)==="watch"?"watch":v04();var h;D=(h=_.k(v==null?void 0:v.commandMetadata,_.Sa))==null?void 0:h.webPageType;h=!1;if(D&&!hpI.includes(D))switch(D){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var a;return((a=_.k(v==null?void 0:v.commandMetadata,_.Sa))==null?0:a.url)&&DRA(_.k(v.commandMetadata,_.Sa).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Q;return(v=(Q=_.k(v,_.YV))==null?void 0:Q.browseId)?at7[v]||"browse":"browse";default:h=!0}if(_.k(v,_.ai)||_.k(v,$Rc))return"sponsorship";Q=DRA(window.location.href);if(Q.startsWith("/experiments"))return"experiments";if(Q.startsWith("/create_channel"))return"create_channel";
if(_.k(v,_.RB)&&Q.startsWith("/shorts"))return"shorts";if(_.k(v,_.RB)&&Q.startsWith("/watch"))return"watch";h&&(v=new _.XH("Unsupported mWeb page type",{pathname:Q,webPageType:D}),_.mV(v));return"browse"};
$2=function(D,v,h,a){return D&&v?D!==h||v!==a?(_.u7(Error("Ph"),void 0,void 0,{"stored-slot":D,"stored-layout":v,"latest-slot":h,"latest-layout":a}),!1):!0:!1};
Viu=function(D,v,h){return D({targetId:v},function(a){return h.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},a,{contents:[h.continuationItems?_.k(h.continuationItems[0],Gx7):{}]}):h.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},a,{header:h.continuationItems?h.continuationItems[0]:void 0}):Object.assign({},a,{contents:h.continuationItems?h.continuationItems:[]})})};
Pof=function(D,v,h,a){if(v=v.trackingParams){var Q,G=(Q=h.getScreenLayer)==null?void 0:Q.call(h);h=_.wd(G);Q=_.yC(G);if(h&&Q){var x=_.d4(v);_.g("combine_ve_grafts")?D.graftServerVe(v,Q,G):_.tP(h,Q,x);a==null||a(x)}}};
Mir=function(D){var v;return((v=xRI.get(D))==null?void 0:v.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
o0c=function(D,v){var h={type:v.slotType,controlFlowManagerLayer:ftA.get(v.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};v.slotEntryTrigger&&(h.entryTriggerType=v.slotEntryTrigger.triggerType);v.slotPhysicalPosition!==1&&(h.slotPhysicalPosition=v.slotPhysicalPosition);if(D){h.debugData={slotId:v.slotId};if(D=v.slotEntryTrigger)h.debugData.slotEntryTriggerData=Coc(D);D=v.slotFulfillmentTriggers;h.debugData.fulfillmentTriggerData=[];D=_.P(D);for(var a=D.next();!a.done;a=D.next())h.debugData.fulfillmentTriggerData.push(Coc(a.value));
v=v.slotExpirationTriggers;h.debugData.expirationTriggerData=[];v=_.P(v);for(D=v.next();!D.done;D=v.next())h.debugData.expirationTriggerData.push(Coc(D.value))}return h};
Coc=function(D,v){var h={type:D.triggerType};v!=null&&(h.category=v);D.triggeringSlotId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedSlotId=D.triggeringSlotId);D.triggeringLayoutId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedLayoutId=D.triggeringLayoutId);return h};
Fui=function(D,v,h,a){v={opportunityType:v};D&&(a||h)&&(a=_.mO(a||[],function(Q){return o0c(D,Q)}),v.debugData=Object.assign({},h&&h.length>0?{associatedSlotId:h}:{},a.length>0?{slots:a}:{}));
return v};
zpc=function(D){return QV(D.opportunityAdapterMap).concat(QV(D.triggerAdapterMap)).concat(QV(D.fulfillmentAdapterFactoryMap)).concat(QV(D.slotAdapterFactoryMap)).concat(QV(D.layoutRenderingAdapterFactoryMap))};
QV=function(D){var v=[];D=_.P(D.values());for(var h=D.next();!h.done;h=D.next())h=h.value,h.isAdsControlFlowEventListener&&v.push(h);return v};
VV=function(D){var v=D.slotId,h=D.slotType,a=D.slotPhysicalPosition;return v===void 0?new GN("Cannot construct a slot due to the missing id.",{adSlotMetadata:D}):h===void 0?new GN("Cannot construct a slot due to the missing type.",{adSlotMetadata:D}):a===void 0?new GN("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:D}):{slotId:v,slotType:h,slotPhysicalPosition:a,managerLayer:"external",adSlotLoggingData:D.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new URA}};
Lu4=function(D){var v=D.layoutId,h=D.layoutType;return v===void 0?new PO("Cannot construct a layout due to the missing id.",{adLayoutMetadata:D}):h===void 0?new PO("Cannot construct a layout due to the missing type.",{adLayoutMetadata:D}):{layoutId:v,layoutType:h,managerLayer:"external",adLayoutLoggingData:D.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new URA,interactionLoggingAdsClientData:{}}};
ZF7=function(D){if(D.querySelector("img")){var v=D.querySelector("img");v.addEventListener("error",function(){rur(v.src).then(function(h){(h=_.OQ(h).toString())?v.src=h:v.removeAttribute("src")}).catch(function(){v.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
MO=function(D,v){if(v&&(E0f(v.viewableCommand)||E0f(v.endOfSessionCommand))){var h=Itr(v==null?void 0:v.viewableCommand);v=Itr(v==null?void 0:v.endOfSessionCommand);if(!x2){var a=_.oZ("custom_active_view_tos_timeout_ms");x2=a>0&&a!==36E5?new g0f(kxf(),a):new g0f(kxf())}SvA(x2,D);JiA(x2,D,h,v)}};
fS=function(D){x2&&SvA(x2,D)};
kxf=function(){var D=_.eA("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
E0f=function(D){D=_.Rq(D);return!(D==null||!D.loggingUrls)&&D.loggingUrls.length>0};
Itr=function(D){if(!D)return[];var v=[],h,a;((a=(h=_.Rq(D))==null?void 0:h.loggingUrls)!=null?a:[]).forEach(function(Q){Q.baseUrl&&v.push(Q.baseUrl)});
return v};
p3i=function(D){if(_.g("stop_av_measurement_on_detach"))return function(){fS(D)}};
ltu=function(D){return function(){_.g("stop_av_measurement_on_detach")&&fS(D)}};
NF2=function(D){if(_.g("stop_av_measurement_on_detach"))return function(){fS(D)}};
Yv7=function(D){return D.shorts.isDesktopSmallWidth};
_.BF7=function(D){return D.shorts.isShortsActive};
_.ci2=function(D){return D.shorts.isWatchWhileMode};
_.CS=function(D){return D.shorts.isFullscreen};
_.oi=function(D){return D.shorts.isShortsPipActive};
Aic=function(D){var v,h;if(D=(v=_.k(D.reelsAdCardButtoned,X3I))==null?void 0:(h=v.animatedRenderingConfig)==null?void 0:h.easeOutSeconds)return D+"s"};
bFO=function(D,v,h){return _.M(function(a){return a.return(new Promise(function(Q){var G=new Image;G.onload=function(){Q(new qvo(D,v,h,G.naturalWidth,G.naturalHeight))};
G.src=h.toString()}))})};
dRO=function(D,v){return Math.round(D/1E-5)===Math.round(v/1E-5)};
jOc=function(D,v){return Math.round(D/1E-5)===Math.round(v/1E-5)};
sOi=function(D,v){return D.year===v.year&&D.month===v.month&&D.day===v.day};
mRc=function(D,v){return D.year!==v.year?D.year<v.year:D.month!==v.month?D.month<v.month:D.day<v.day};
yi7=function(D){return D.day===HFA(D.year,D.month)?D.month===11?{year:D.year+1,month:0,day:1}:{year:D.year,month:D.month+1,day:1}:{year:D.year,month:D.month,day:D.day+1}};
w3r=function(){var D=new Date,v={year:D.getFullYear(),month:D.getMonth(),day:D.getDate()};return{start:v,end:{year:D.getFullYear()+2,month:D.getMonth(),day:D.getDate()},selectedDate:yi7(v)}};
epA=function(D){return(new hQ(2)).format(new Date(D.year,D.month,D.day))};
n0q=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
OFo=function(D,v){D=(D+(Number(v.utcOffsetSec)+(new Date(D*1E3)).getTimezoneOffset()*60))*1E3;v=n0q(new Date(D));return{date:v,secondsSinceMidnight:Math.floor((D-(new Date(v.year,v.month,v.day)).getTime())/1E3)}};
KuO=function(D,v){v=v.months.findIndex(function(h){return h.year===D.year&&h.month===D.month});
return v>=0?v:void 0};
TFc=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENTBOX")return!0}catch(v){return!1}return TFc(D.parentNode)};
Fv=function(D){return D?!(D.tagName!=="A"||!D.href||!D.classList.contains("yt-simple-endpoint")):!1};
Rp2=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
iF2=function(D,v,h){if(!D)return null;var a=Fv(D);if(a&&h)return v=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+v);if(a&&!h)return document.createTextNode("");if(Rp2(D))return h=D.alt,D=D.dataset.emojiId,!D&&v&&(v=_.zN(v,h))&&v.isCustomEmoji&&(D=v.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(h);a=D.cloneNode(!1);for(var Q=0;Q<D.childNodes.length;++Q){var G=iF2(D.childNodes[Q],v,h);G&&a.appendChild(G)}return a};
Uy=function(D){return D?Fv(D)?D:Uy(D.lastChild):null};
WuA=function(D){return D?Fv(D)?D:WuA(D.firstChild):null};
tiI=function(D){if(!D)return null;for(var v=D.previousSibling;v;)if(v.nodeType===Node.ELEMENT_NODE&&v.nodeName==="BR")v=v.previousSibling;else if(v.nodeType===Node.TEXT_NODE&&/\s+/.test(v.textContent))v=v.previousSibling;else break;(v=Uy(v))?D=v:D=(D=D.parentNode)?Uy(D.previousElementSibling):null;return D};
riu=function(D){if(!D)return null;for(var v=D.nextSibling;v;)if(v.nodeType===Node.ELEMENT_NODE&&v.nodeName==="BR")v=v.nextSibling;else if(v.nodeType===Node.TEXT_NODE&&/\s+/.test(v.textContent))v=v.nextSibling;else break;return(v=WuA(v))?v:riu(D.parentNode)};
uMA=function(D){var v=_.LS(),h=v.JSC$11351_getStartNode();if(!TFc(h.parentNode))return null;v=v.JSC$11351_getStartOffset();if(h.nodeType===Node.TEXT_NODE){var a=_.OV(h,Fv);if(a){if(D&&v===0||!D&&v===h.length)return a}else{if(D&&v===h.length)return!h||h.nodeName==="BR"||h.nextElementSibling&&_.Zj(h.nextElementSibling,"display")==="block"?null:WuA(h.nextElementSibling);if(!D&&v===0)return h?Uy(h.previousElementSibling):null}}if(h.nodeType===Node.ELEMENT_NODE)if(D){if(0<=v&&v<h.childNodes.length)return WuA(h.childNodes[v])}else if(0<
v&&v<=h.childNodes.length)return Uy(h.childNodes[v-1]);return null};
D2A=function(D,v,h){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(h){var a=tiI(D);if(a&&!/^\s+\S/.test(D.wholeText.substr(0,v)))return a}else if((a=riu(D))&&!/\S\s+/.test(D.wholeText.substr(v,D.wholeText.length)))return a;return D.nodeType===Node.ELEMENT_NODE?h?tiI(D.childNodes[v]):riu(D.childNodes[v]):D2A(D.parentNode,v,h)};
vni=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var v="";for(D=D.firstChild;D;D=D.nextSibling)v+=vni(D);return v;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
Ey=function(D,v){return D.year===v.year&&D.month===v.month&&D.day===v.day};
Ii=function(D,v){return D.year!==v.year?D.year<v.year:D.month!==v.month?D.month<v.month:D.day<v.day};
h8i=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
aaq=function(D){var v=rUq;v=v===void 0?rUq:v;v(new Date(D.year,D.month,D.day))};
gv=function(D){return h8i(new Date(Number(D.seconds)*1E3))};
$2c=function(D){return D.year!==void 0&&D.month!==void 0&&D.day!==void 0};
QLc=function(D){return D.start!==void 0&&D.end!==void 0};
GWu=function(D){return QLc(D)?D.start:D};
VFI=function(D){return QLc(D)?D.end:void 0};
x28=function(D,v){for(var h=[],a=new Date(D.start.year,D.start.month);a.getFullYear()<D.end.year||a.getFullYear()===D.end.year&&a.getMonth()<=D.end.month;){var Q=h,G=Q.push,x=a.getFullYear(),f=a.getMonth(),C=D,U=v,L=void 0,Z=[],E=Object.freeze({extraCssClass:"invisible"}),I=new Date(x,f),S=h8i(I);I=I.getDay();for(var B=h8i(new Date);S.month===f;){I!==PZf&&L||(L=Array.from({length:7}).fill(E),Z.push(L));var A={date:{year:x,month:f,day:S.day},extraCssClass:"",debugClass:""};A.extraCssClass=U(A.date,
S,B,C).trim();L[(I-PZf+7)%7]=A;S=S.day===HFA(S.year,S.month)?S.month===11?{year:S.year+1,month:0,day:1}:{year:S.year,month:S.month+1,day:1}:{year:S.year,month:S.month,day:S.day+1};I=(I+1)%7}G.call(Q,{weeks:Z,monthLabel:k2.SHORTMONTHS[f]+" "+x,year:x,month:f,monthLabelExtraCssClass:Z[0][2]===E?"shift-down-label":""});a.setMonth(a.getMonth()+1)}return h};
MFq=function(D,v){v=v.months.findIndex(function(h){return h.year===D.year&&h.month===D.month});
return v>=0?v:void 0};
CZf=function(D,v){a:{var h=h===void 0?[2,3]:h;h=_.P(h);for(var a=h.next();!a.done;a=h.next()){var Q=new Date;if((new fac(a.value)).parse(v,Q,{validate:!0})){Q.setHours(0,0,0,0);v=Q;break a}}v=null}if(!v)return{isValid:!1,value:void 0};v=h8i(v);h=D.end;return Ii(v,D.start)||Ii(h,v)?{isValid:!1,value:void 0}:{isValid:!0,value:v}};
Le2=function(D){var v=onc;v=v===void 0?Feq:v;var h=D.columnsToShow||[],a=z8L(D.columnDimensions,D.columnsToShow,D.leftFloatingColumns,v);return h.map(function(Q,G){var x=D.columns[Q];if(x===void 0)throw Error("Vh");var f=a?a[G]:"";var C=D.getCustomTooltip?D.getCustomTooltip(Q,x.headerTooltipParagraphs):x.headerTooltipParagraphs;var U=U2r(D,Q);return{type:Q,index:G,style:f,classes:U,headerName:x.headerName||"",headerIcon:x.headerIcon,headerTooltipParagraphs:C||[],headerTooltipHelpContext:x.headerTooltipHelpContext,
sortOrders:x.sortOrders||[],selectionState:x.isSelectionCheckbox?D.selectionState:void 0}})};
U2r=function(D,v){var h=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],a=D.columns[v];if(a===void 0)return"";var Q=h.includes("DEFAULTS")&&a.cssClass?[a.cssClass]:[];if(h.includes("SORTING")){a.sortOrders&&a.sortOrders.length&&Q.push("sortable");if(D.sorting&&D.sorting.columnType===v)a:switch(D.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var G="column-sorted";break a;default:G=""}else G="";G&&Q.push(G)}h.includes("FLOATING")&&(v=D.columnsToShow.indexOf(v),D.leftFloatingColumns&&v<D.leftFloatingColumns&&
Q.push("floating-column"),D.leftFloatingColumns&&v===D.leftFloatingColumns-1&&Q.push("last-floating-column"));h.includes("RIGHT_ALIGN")&&a.rightAlignHeader&&Q.push("right-align");return Q.filter(function(x){return x}).join(" ")};
z8L=function(D,v,h,a){h=h===void 0?0:h;a=a===void 0?Feq:a;if(D){var Q=[],G=0;ZPO(D,v,a).forEach(function(x,f){var C="min-width:"+x.minWidth+"px;padding-left:"+x.paddingLeft+"px;padding-right:"+x.paddingRight+"px;flex:"+x.flexGrow+" 0 "+x.minWidth+"px;";x.maxWidth!==Infinity&&(C=[C,"max-width:"+x.maxWidth+"px;"].join(""));G>0&&f<h&&(C=[C,"left:"+G+"px;"].join(""));Q.push(C);G+=x.minWidth+x.paddingLeft+x.paddingRight});
return Q}};
ZPO=function(D,v,h){h=h===void 0?Feq:h;return v.map(function(a,Q){a=D&&D[a]||{};var G=Q===0?h.paddingLeftFirstColumn:h.padding;a.paddingLeft!==void 0&&(G=a.paddingLeft);Q=Q===v.length-1?h.paddingRightLastColumn:h.padding;a.paddingRight!==void 0&&(Q=a.paddingRight);return{paddingLeft:G,paddingRight:Q,minWidth:a.minWidth!==void 0?a.minWidth:h.minWidth,maxWidth:a.maxWidth!==void 0?a.maxWidth:h.maxWidth,flexGrow:a.flexGrow!==void 0?a.flexGrow:h.flexGrow}})};
EnL=function(D){var v=D.reduce(function(a,Q){var G=Q.columnId,x={};Q.headerText&&(x.headerName=_.$V(Q.headerText));Q.rightAlignHeader&&(x.rightAlignHeader=Q.rightAlignHeader);var f;if((f=Q.headerIcon)==null?0:f.iconType)x.headerIcon=_.SQ(Q.headerIcon.iconType);a[G]=x;return a},{}),h=D.filter(function(a){return!a.hideColumn}).map(function(a){return a.columnId});
D=D.filter(function(a){return!!a.dimensions}).reduce(function(a,Q){a[Q.columnId]=Q.dimensions;
return a},{});
return{columns:v,columnsToShow:h,columnDimensions:D}};
_.IaL=function(D){return D?D.simpleText?D.simpleText:D.runs?D.runs.map(function(v){return v.text}).join(""):"":""};
pbi=function(D){var v=D.data;var h=D.onTap;var a=D.isSelected;var Q=D.onFocusIn;if(!v)return{};D=gnA(v);a===void 0&&(a=v==null?void 0:v.isSelected);var G;return{text:kW4(v,D),startIcon:(G=v.icon)==null?void 0:G.iconType,state:a?0:2,type:0,onTap:Swf(v,h),accessibilityLabel:JR4(v,D),onFocusIn:function(){return Q==null?void 0:Q()}}};
kW4=function(D,v){if(!v)return D.text?_.IaL(D.text):void 0};
Swf=function(D,v){return function(h){v==null||v(h,D)}};
gnA=function(D){D=D.style&&D.style.styleType;return!nj4&&D==="STYLE_EXPLORE_LAUNCHER_CHIP"};
JR4=function(D,v){if(v){var h,a,Q;return(Q=(h=D.accessibilityData)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label)!=null?Q:kW4(D,!1)}};
So=function(D){return{signalAction:{signal:D}}};
Ywr=function(){return _.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?laI:_.NiI};
Bic=function(D,v){D=D===void 0?"SOFT_RELOAD_PAGE":D;v=v===void 0?49504:v;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.MD(_.p1("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:v}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:D}}]}}}};
cRu=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.MD(_.p1("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Ywr()}};
Xbf=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.MD(_.p1("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Ywr()}};
ARi=function(D,v){var h=_.MD(_.p1("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),a=_.MD(_.p1("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.MD(_.p1("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Q.serviceEndpoint=D?D:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[So("SOFT_RELOAD_PAGE")]}};return{title:h,bodyText:a,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Q},
style:{value:v!=null?v:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
bPI=function(D){D=D===void 0?{}:D;return{title:_.MD(D.localizedZeroStateTitleText===void 0?"":D.localizedZeroStateTitleText),bodyText:_.MD(D.localizedZeroStateMessage===void 0?"":D.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.MD(D.localizedZeroStateButtonText===void 0?"":D.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[qw7]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
jLO=function(D){D=D===void 0?{}:D;return{title:_.MD(D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText),titleLength:19,subtitle:_.MD(D.localizedOptInMessage===void 0?"":D.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.MD(_.p1("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:_.MD(_.p1("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:[d2f]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
HPu=function(D,v){var h=v=v===void 0?{}:v;v=h.offlineTitleText===void 0?"":h.offlineTitleText;var a=h.offlineDescriptionText===void 0?"":h.offlineDescriptionText,Q=h.formattedSupplementalText,G=h.actionButtonText===void 0?"":h.actionButtonText,x=h.titleText===void 0?"":h.titleText;h=h.descriptionText===void 0?"":h.descriptionText;var f={title:G,accessibilityText:G,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};D||(x=v,h=a,f={title:G,accessibilityText:G,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.MD(x),titleLength:x.length,overrideTitleMaxFontSize:30,subtitle:_.MD(h),supplementalText:Q,primaryButton:{buttonViewModel:f},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[sLu]},darkTileImage:{thumbnails:[m2r]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.e88=function(D,v,h,a,Q,G,x,f,C,U,L){Q=Q===void 0?!1:Q;G=G===void 0?!1:G;x=x===void 0?0:x;f=f===void 0?-Infinity:f;C=C===void 0?!1:C;U=U===void 0?!1:U;L=L===void 0?!1:L;var Z=[],E=_.MD(_.p1("SMART_DOWNLOADS",void 0,"Smart downloads")),I=_.MD(yR4(x,f,D.length));f=x=void 0;U?x={statementBannerRenderer:HPu(L,a)}:Q?D.length>0?f=wbI(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.g("kevlar_manual_downloads_above"),E,I):C?f={alertBannerViewModel:{heading:{content:h.localizedOptInBannerTitleText===
void 0?"":h.localizedOptInBannerTitleText},body:{content:h.localizedPromptMessage===void 0?"":h.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.p1("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.p1("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:_.G4I}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:G&&(f={backgroundPromoRenderer:{bodyText:_.MD(_.p1("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
G&&(f={alertBannerViewModel:{heading:{content:h.localizedOptInBannerTitleText===void 0?"":h.localizedOptInBannerTitleText},body:{content:h.localizedOptInMessage===void 0?"":h.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.p1("TURN_ON",void 0,"Turn on"),accessibilityText:_.p1("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}}}}}});h=_.MD(_.p1("YOUR_DOWNLOADS",void 0,"Your downloads"));a=void 0;v.length>0?(a=void 0,_.g("kevlar_display_downloads_numbers")&&(a=_.MD(_.l1("VIDEO_COUNT",v.length))),a=wbI(v,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,h,a)):Q||D.length||
U||(a={backgroundPromoRenderer:{bodyText:_.MD(_.p1("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}}}});x?Z.push({richSectionRenderer:{content:x}}):f&&!_.g("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
a&&Z.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:51721}}}});f&&_.g("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(v.length>0||Q&&D.length>0&&!U)&&Z.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.MD(_.p1("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:Z}};
_.OPL=function(D){return nn4(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Keo=function(D){return nn4(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
nn4=function(D,v){var h=[];D=wbI(D,v,!0);h.push({richSectionRenderer:{content:D}});return{contents:h}};
wbI=function(D,v,h,a,Q){h=h===void 0?!1:h;var G="RESPONSIVE_SIZE_STANDARD";_.g("kevlar_standard_rich_grid_on_offline_home")&&v==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?G="RESPONSIVE_SIZE_STANDARD":_.g("kevlar_modern_downloads_compact")?G="RESPONSIVE_SIZE_COMPACT":_.g("kevlar_modern_downloads_extra_compact")?G="RESPONSIVE_SIZE_EXTRA_COMPACT":_.g("kevlar_modern_downloads_tiny")&&(G="RESPONSIVE_SIZE_TINY");D={isExpanded:h,contents:Jm(D),entitySelectorType:v,responsiveContainerConfiguration:{responsiveSize:G}};
a&&(D.title=a);Q&&(D.subtitle=Q);h||(_.g("kevlar_smart_downloads_show_more_button")?(D.showMoreButton={buttonRenderer:{accessibility:{label:_.p1("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.MD(_.p1("SHOW_MORE",void 0,"Show more"))}},D.showLessButton={buttonRenderer:{accessibility:{label:_.p1("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.MD(_.p1("SHOW_LESS",void 0,"Show less"))}}):(D.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.p1("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},D.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.p1("HORIZONTAL_LIST_NEXT_LABEL",
void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},D.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.p1("VIEW_ALL",void 0,"View all"),accessibilityText:_.p1("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:_.Pf("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:D}};
Jm=function(D){var v=[];D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,e$q(h)){var a=v,Q=a.push;var G=void 0;if(h==null?0:(G=h.videoEntity)==null?0:G.videoId){G=i0(_.Gb().getState(),h.videoEntity.videoId);var x=_.Gb().getState();var f=_.IG(h.videoEntity.videoId,"mainVideoEntity");x=!!_.dR(x.entities)[f];x={videoId:h.videoEntity.videoId,title:fG(h.videoEntity.title),shortBylineText:fG(h.channelEntity.title),thumbnail:h.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:x&&_.g("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:EMi(h.videoEntity.videoId,G,h.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.p1("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};h.videoEntity.lengthSeconds&&(x.thumbnailOverlays=UvL(h.videoEntity.lengthSeconds,G));x.isWatched=G>0;_.g("kevlar_modern_downloads_page")&&(x.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:h.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.p1("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},x.badges=void 0);h=x}else h={};Q.call(a,{richItemRenderer:{content:{videoRenderer:h},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(wiL(h)){a=v;Q=a.push;var C=f=G=void 0,U=void 0,L=void 0,Z=void 0,E=void 0,I=void 0,S=void 0,B=void 0,A=void 0,d=void 0;x=h.mainPlaylistEntity.playlistId;var b=h==null?void 0:(d=h.mainPlaylistEntity)==null?void 0:(A=d.thumbnailStyleData)==null?void 0:(B=A[0])==null?void 0:(S=B.value)==null?void 0:(I=S.collageThumbnail)==
null?void 0:I.coverThumbnail;if(x&&b){I=IQ4(x);!_.g("enable_offline_playlist_page")&&(h==null?0:(E=h.mainPlaylistEntity)==null?0:E.videos)&&(E=h==null?void 0:(Z=h.mainPlaylistEntity)==null?void 0:(L=Z.videos)==null?void 0:L[0],L=_.LG(E).entityId,L=JSON.parse(L).videoId,L!==void 0&&(Z=i0(_.Gb().getState(),L),I=_.xZ(L,x,void 0,void 0,Z)));L=[];if(h==null?0:(U=h.mainPlaylistEntity)==null?0:(C=U.videos)==null?0:C.length)L=[tk4(),Object.assign({},(f=Wqq(h==null?void 0:h.mainPlaylistEntity.videos.length))!=
null?f:{})];h={playlistId:x,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:b}},navigationEndpoint:I,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:L,title:fG(h.mainPlaylistEntity.title),shortBylineText:fG(h==null?void 0:(G=h.channelEntity)==null?void 0:G.title),badges:[{metadataBadgeRenderer:{label:_.p1("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.g("kevlar_modern_downloads_page")&&(h.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:TiL,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.p1("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},h.badges=void 0)}else h=void 0;Q.call(a,{richItemRenderer:{content:{playlistRenderer:h},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return v};
yR4=function(D,v,h){D=D?R8o(D):"";v!==void 0&&isFinite(v)?v===0?v=_.p1("UPDATING",void 0,"Updating..."):(v=z72(new Date(v),new Date),v=_.p1("UPDATED_TIME",{relative_time:v},"Updated "+v)):v="";var a="";D&&v&&(a=" \u2022 ");if(h&&_.g("kevlar_display_downloads_numbers")){h=_.l1("VIDEO_COUNT",h);if(D||v)a=" \u2022 ";return h+a+D+a+v}return D+a+v};
iPI=function(D){return qer(D.entities).length};
_.We4=function(D,v){var h=Z84(D.responsiveSize),a;D=!((a=D.responsiveMap)==null||!a.some(function(Q){return Q.containerSize==="CONTAINER_SIZE_NARROW"&&Q.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:v,sizing:h,enableFullBleedForSingleCol:!1,isCompactList:h==="COMPACT"&&D}};
tFq=function(D,v){return _.gR(D.entities,"votingEntity",v)};
pS=function(D){if(D){var v;return((v=_.xd().resolve(_.PV(_.$5)))==null?0:v())?D.darkTheme:D.lightTheme}};
rRc=function(D,v){if(D.simpleText)return Object.assign({},D,{simpleText:vX(D.simpleText,v)});if(!D.runs)return D;for(var h=Object.assign({},D,{runs:[]}),a=0,Q=_.P(D.runs),G=Q.next();!G.done;G=Q.next())if(G=G.value,G.text)if(a+G.text.length<=v)h.runs.push(G),a+=G.text.length;else return h.runs.push(Object.assign({},G,{text:vX(G.text,v-a)})),h;return D};
ujq=function(D,v){return _.gR(D.entities,"chipBarStateEntity",v)};
D$c=function(D,v){return _.gR(D.entities,"chipEntity",v)};
h4O=function(D,v,h,a){return function(){var Q=vwi.has(D.displayType)&&D.selected,G=Q&&D.deselectCommand?D.deselectCommand:D.tapCommand;!G||Q&&a||_.r4(G,{form:{element:v==null?void 0:v.value}});h==null||h()}};
agL=function(D){switch(D){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
$$L=function(D,v){return{triggeringElement:D,onDwellTriggeredFn:function(){var h={triggeringElement:D,loadVideoPreviewEventData:v},a=document.querySelector(".video-preview");a&&a.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:h}))},
onDwellEndFn:function(){var h=document.querySelector(".video-preview");h&&h.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
QVf=function(D,v){var h=_.xd().resolve(_.PV(Qwr)),a=function(){var Q=v();return h&&Q?$$L(D.value,Q):null};
_.bW(function(){var Q=a();h&&Q&&Promise.resolve().then(function(){h.registerElement(Q)});
_.dq(function(){h&&Q&&Promise.resolve().then(function(){_.Kj(h,Q)})})},"csPUge")};
VYq=function(D){var v=D.dataset.resizeObserverId;if(v)return v;v=""+GOu++;return D.dataset.resizeObserverId=v};
Pi4=function(D,v){var h=VYq(D);lj.has(h)||lj.set(h,new Set);lj.get(h).add(v);NO.has(h)&&v(Object.assign({},{target:D},NO.get(h)))};
x$A=function(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var h=VYq(v.target),a=Object.assign({},{target:v.target},NO.get(h));if(a!=null&&a.contentRect?a.contentRect.width!==v.contentRect.width||a.contentRect.height!==v.contentRect.height:1)for(NO.set(h,{borderBoxSize:v.borderBoxSize,contentBoxSize:v.contentBoxSize,contentRect:v.contentRect,devicePixelContentBoxSize:v.devicePixelContentBoxSize}),h=_.P(lj.get(h)||[]),a=h.next();!a.done;a=h.next())a=a.value,a(v)}};
fgA=function(){return Y2?Y2:Y2=new MYi(x$A)};
Ciu=function(D,v){var h=VYq(D);lj.has(h)&&(lj.get(h).delete(v),lj.get(h).size===0&&(lj.delete(h),NO.delete(h),Y2.unobserve(D),delete D.dataset.resizeObserverId));lj.size===0&&Y2&&(Y2.disconnect(),Y2=void 0)};
Fx4=function(D,v){var h=_.xd().resolve(xX);return owO.map(function(a){return h.observe(D,v,a)})};
z48=function(D){var v=_.xd().resolve(xX);D.forEach(function(h){v.unobserveByKey(h)})};
_.Zof=function(D,v){var h=Object.assign({},U$2,v);v=_.P(Hpc());var a=v.next().value,Q=v.next().value,G=function(x){var f=x.contentRect.height;if((x=x.contentRect.width)||f||h.canHaveZeroSize)a.width()===x&&a.height()===f||Q(a,{height:f,width:x})};
_.jA(function(){var x=D instanceof HTMLElement?D:D.value,f=Lxr(G,h.throttleMs),C=[];h.useVisibilityObserver&&(C=Fx4(x,function(U,L){requestAnimationFrame(function(){L==="visible"?(Pi4(x,f),fgA().observe(x)):Ciu(x,f)})}));
C.length||(Pi4(x,f),fgA().observe(x));_.dq(function(){C.length&&(z48(C),C.length=0);Ciu(x,f)})});
return a};
Ig4=function(D,v,h,a,Q){D=v?D.switchOffCommand:D.switchOnCommand;if(a&&Q)Ewu(D,h,Q);else{var G,x;(G=_.W8({elementsCommand:D}))==null||(x=G.onclick)==null||x.call(G,h)}};
Ewu=function(D,v,h){D=_.W8({elementsCommand:D,additionalCommandArgs:{commandController:{onSuccess:function(){h(!1)},
onServerError:function(){h(!1)}}}});
if(D==null?0:D.onclick)D.onclick(v),h(!0)};
kOr=function(D){if(D)return _.k(D,gw2)};
SKo=function(D){if(!((D==null?0:D.entitySelectorType)&&(D==null?0:D.entityKey)))return{};switch(D.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.g("enable_web_shorts_captions_language_command")){var v;var h=(v=_.gp())==null?void 0:v.getOption("captions","track");var a,Q=typeof(h==null?void 0:h.translationLanguage)==="object"&&((a=h.translationLanguage)==null?void 0:a.languageName)||(h==null?void 0:h.displayName)||"";h=Object.assign({},!!Q&&
{selectionText:{content:Q}},!!Q&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof h==="undefined"})}else h={};return h;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.g("web_shorts_audio_track_picker")){var G;a=((G=_.gp())==null?void 0:G.getAudioTrack())||void 0;v=a==null?void 0:(Q=a.getLanguageInfo())==null?void 0:Q.getName();a=Object.assign({},{selectionText:{content:v}},v&&!(a==null?0:(h=a.getLanguageInfo())==
null?0:h.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}else a={};return a;default:return{}}};
JIu=function(D){var v=["A".toString(),"BUTTON".toString()];return function(h){var a=function(Q){_.H4(_.ms(Q),h,v)||D(Q)};
h.addEventListener("click",a);return function(){h.removeEventListener("click",a)}}};
_.pYA=function(D){return function(){return _.k(D(),_.BO)}};
cIO=function(D,v,h){if(v)return[lgu];switch(D){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[cO];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return h?[cO]:[NQc,cO];case "TRANSFER_STATE_PAUSED_BY_USER":return[YKO,cO];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[BQ8,cO];default:return[lgu]}};
XYf=function(D,v,h,a){return cIO(D,v,a).map(function(Q){var G=Q.text,x=Q.iconType,f=Q.videoAction;Q=Q.playlistAction;G=G?{content:G}:void 0;x=x&&{sources:[{clientResource:{imageName:x}}]};var C=(0,_.sV.unsafeClone)(h);if(C){var U=_.k(C,_.Jn),L=_.k(C,_.pj);U&&f?U.action=f:L&&Q&&(L.action=Q)}return{title:G,leadingImage:x,rendererContext:C&&{commandContext:{onTap:{innertubeCommand:C}}}}})};
AIi=function(D){D=_.yL(D.rendererContext);var v;return(v=_.k(D,_.pj))==null?void 0:v.playlistId};
qK8=function(D){var v;return(v=D.listItems)==null?void 0:v.some(function(h){var a;return _.wp((a=_.k(h,_.qq))==null?void 0:a.rendererContext)})};
jV4=function(D){var v;return(v=D.listItems)==null?void 0:v.some(function(h){var a,Q,G=(Q=(a=_.k(h,bof))==null?void 0:a.defaultListItem)!=null?Q:h;h=_.k(G,_.qq);return!!_.k(h==null?void 0:h.leadingAccessory,d$I)})};
HoI=function(D){var v=D.element;var h=D.veType;var a=D.storedVisualElement===void 0?null:D.storedVisualElement;var Q=D.elementIndex===void 0?0:D.elementIndex;D=D.clientYouTubeData;var G=_.wd();G!==sVA&&(m$I.clear(),sVA=G);if(v.visualElement&&m$I.has(v.visualElement))return null;if(a&&m$I.has(a))return v.visualElement=a,null;h=_.B8(_.c8(),{veType:h,elementIndex:Q,clientYouTubeData:D});if(!h)return null;v.visualElement=h;m$I.add(h);return h};
_.Xv=function(D,v,h,a){h=h===void 0?null:h;a=a===void 0?Yuf:a;var Q=Q===void 0?null:Q;ys(function(){if(v){h instanceof Function&&(h=h());var G=HoI({element:v,veType:D,storedVisualElement:h,clientYouTubeData:void 0});G&&(Xgf(v,Q),a(G))}})};
Am=function(D,v){if(D){switch(v){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.rT(D)}};
qO=function(D,v){if(D){switch(v){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.rT(D)}};
yIc=function(D){return D?_.uu(D):""};
wYA=function(D){return(D==null?void 0:D.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
e48=function(D,v){return _.gR(D.entities,"videoOverviewAsyncDataEntity",v)};
nwc=function(D,v){var h;return"linear-gradient(to bottom, "+((h=v==null?void 0:v.map(function(a){var Q=D?a.darkThemeColor:a.lightThemeColor;return Q?_.uu(Q)+" "+((a==null?void 0:a.startLocation)||0)*100+"%":"transparent"}))==null?void 0:h.join(", "))+")"};
Ooo=function(D,v,h,a,Q){if(!((a==null?0:a.height)&&(a==null?0:a.width)))return{size:0};var G=a.width;a=a.height;if(Q)return v==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||v==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&G>a?{size:312/B$q}:v==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(h!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||D!==1&&D!==2||v!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&v!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&v!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(v==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||v==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||a===G)switch(D){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(v==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||a>G)switch(D){case 1:case 3:return{size:240*YUO};default:return{size:360*YUO}}switch(D){case 1:case 2:return{size:1/B$q*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Kx2=function(D){if(!("matchMedia"in window))return _.Wv(Error("Wh")),function(){return!1};
var v=window.matchMedia(D);D=_.P(_.Zq(v.matches,void 0,"jLJc8e"));var h=D.next().value,a=D.next().value,Q=function(G){a(G.matches)};
v.addEventListener?(v.addEventListener("change",Q),_.dq(function(){v.removeEventListener("change",Q)})):v.addListener&&(v.addListener(Q),_.dq(function(){v.removeListener(Q)}));
return h};
TQi=function(D){return D==="IMAGE_BANNER_STYLE_INSET"||D==="IMAGE_BANNER_STYLE_UNKNOWN"};
R4r=function(){if(!("matchMedia"in window))return _.Wv(Error("Wh")),function(){return 0};
var D=sM(function(){return window.matchMedia("(max-width: 527.9px)")}),v=sM(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),h=sM(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),a=sM(function(){return window.matchMedia("(min-width: 1024px)")}),Q=_.P(_.Zq(D.matches,void 0,"og9kEc")),G=Q.next().value,x=Q.next().value;
Q=_.P(_.Zq(v.matches,void 0,"ybDWCb"));var f=Q.next().value,C=Q.next().value;Q=_.P(_.Zq(h.matches,void 0,"o0Gfh"));var U=Q.next().value,L=Q.next().value;Q=_.P(_.Zq(a.matches,void 0,"yqUUgd"));var Z=Q.next().value,E=Q.next().value,I=sM(function(){return function(d){x(d.matches)}}),S=sM(function(){return function(d){C(d.matches)}}),B=sM(function(){return function(d){L(d.matches)}}),A=sM(function(){return function(d){E(d.matches)}});
_.jA(function(){D.addEventListener?(D.addEventListener("change",I),v.addEventListener("change",S),h.addEventListener("change",B),a.addEventListener("change",A)):D.addListener&&(D.addListener(I),v.addListener(S),h.addListener(B),a.addListener(A));_.dq(function(){D.removeEventListener?(D.removeEventListener("change",I),v.removeEventListener("change",S),h.removeEventListener("change",B),a.removeEventListener("change",A)):D.removeListener&&(D.removeListener(I),v.removeListener(S),h.removeListener(B),
a.removeListener(A))})});
return function(){return G()?1:f()?2:U()?3:Z()?4:0}};
ioi=function(D){var v=0;D=_.P([D.title,D.metadata,D.actions,D.description,D.attribution]);for(var h=D.next();!h.done;h=D.next())h.value&&v++;return v};
Wxf=function(D){return D===1||D===2?1:0};
rI4=function(D){D=(new tYc).parse(D);return(new gd).render(D).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(v){var h=v.split(":").map(Number),a=0,Q=0;if(h.length===3)h=_.P(h),a=h.next().value,Q=h.next().value,h=h.next().value;else if(h.length===2)h=_.P(h),Q=h.next().value,h=h.next().value;else if(h.length===1)h=_.P(h).next().value;else throw Error("Xh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(a*3600+Q*60+h)+'" role="button">'+v+"</span>"})};
usI=function(D){D=_.P(D.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var v=D.next(),h={};!v.done;h={clickHandler$jscomp$5:void 0},v=D.next()){v=v.value;h.clickHandler$jscomp$5=function(Q){Q=Number(Q.target.getAttribute("data-time"));if(isNaN(Q))throw Error("Yh");var G;(G=_.gp())==null||G.seekTo(Q,!0)};
var a=function(Q){return function(G){G.key!=="Enter"&&G.key!=="Space"||(0,Q.clickHandler$jscomp$5)(G)}}(h);
v.setAttribute("tabindex","0");v.removeEventListener("click",h.clickHandler$jscomp$5);v.removeEventListener("keydown",a);v.addEventListener("click",h.clickHandler$jscomp$5);v.addEventListener("keydown",a)}};
DGI=function(){return _.F("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.F(bj,{percentWidth:100}),_.F(bj,{animationDelay:200}),_.F(bj,{animationDelay:400}),_.F(bj,{animationDelay:600}),_.F(bj,{animationDelay:800,percentWidth:60}),_.F("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.F(bj,{percentWidth:100}),_.F(bj,{animationDelay:200}),_.F(bj,{animationDelay:400}),_.F(bj,{animationDelay:600,percentWidth:50}))};
bj=function(D){return _.F("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(D.percentWidth===void 0?100:D.percentWidth)+"%"},_.F("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(D.animationDelay===void 0?0:D.animationDelay)+"ms"}))};
v6I=function(){var D=_.P(_.Zq(function(){return""},void 0,"dXJHWc")),v=D.next().value;
return[function(){return v()()},
D.next().value]};
hQq=function(D,v){D=D?R8o(D):"";v!==void 0&&isFinite(v)?v===0?v=_.p1("UPDATING",void 0,"Updating..."):(v=z72(new Date(v),new Date),v=_.p1("UPDATED_TIME",{relative_time:v},"Updated "+v)):v="";var h="";D&&v&&(h=" \u2022 ");return _.MD(D+h+v)};
QKq=function(D,v,h,a,Q,G){v=v===void 0?0:v;var x=amc[v],f=x.title,C=x.iconType,U=x.topButtonRenderer,L=x.sectionClientVE;x=x.videoClientVE;var Z;if(v!==1||D.length){h=[];D=_.P(D);for(a=D.next();!a.done;a=D.next()){var E=a.value;if(e$q(E))h.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:E.videoEntity.videoId,title:fG(E.videoEntity.title),shortBylineText:fG(E.channelEntity.title),thumbnail:E.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:E.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.p1("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:x}}}}}});else if(wiL(E)){a=h;var I=a.push;var S=void 0,B=void 0,A=void 0,d=void 0,b=void 0,W=void 0,K=void 0,O=void 0,R=E.mainPlaylistEntity.playlistId,vA=E==null?void 0:(O=E.mainPlaylistEntity)==null?void 0:(K=O.thumbnailStyleData)==null?void 0:(W=K[0])==null?void 0:(b=W.value)==null?void 0:(d=b.collageThumbnail)==null?void 0:d.coverThumbnail;d=IQ4(R);if(!_.g("enable_offline_playlist_page")&&
(E==null?0:(A=E.mainPlaylistEntity)==null?0:A.videos)){b:{A=E==null?void 0:(B=E.mainPlaylistEntity)==null?void 0:B.videos;B=_.Gb().getState().entities;if(A!=null&&A.length&&B)for(A=_.P(A),b=A.next();!b.done;b=A.next())if(b=_.LG(b.value).entityId,(b=JSON.parse(b).videoId)&&Xic(B,b)==="TRANSFER_STATE_COMPLETE"){B=b;break b}B=""}B!==void 0&&(d=i0(_.Gb().getState(),B),d=_.xZ(B,R,void 0,void 0,d))}B=kXA(_.p1("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),IQ4(R));E=R&&vA&&B?{playlistId:R,navigationEndpoint:d,
viewPlaylistText:B,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:vA}},title:fG(E.mainPlaylistEntity.title),shortBylineText:fG(E==null?void 0:(S=E.channelEntity)==null?void 0:S.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:$G4,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:R,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.p1("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:x}}}:
void 0;I.call(a,{gridPlaylistRenderer:E})}}x={gridRenderer:{items:h}};v===1&&(Z=hQq(Q,G))}else if(a){var f7=_.MD((I=h==null?void 0:h.localizedPromptMessage)!=null?I:"");x={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.MD(_.p1("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.G4I}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.MD(_.p1("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};Z=hQq(Q,G)}else f7=_.MD(_.p1("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
x={};return{contents:[{shelfRenderer:{title:f,titleAnnotation:Z,icon:{iconType:C},subtitle:f7,content:x,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:U}]}}}}],loggingDirectives:{clientVeSpec:{uiType:L}}}};
Gl7=function(D,v,h,a,Q,G,x,f,C,U,L){h=h===void 0?{}:h;a=a===void 0?{}:a;Q=Q===void 0?!1:Q;G=G===void 0?!1:G;x=x===void 0?!1:x;f=f===void 0?!1:f;C=C===void 0?!1:C;U=U===void 0?0:U;L=L===void 0?-Infinity:L;if(!(v.length||D.length||Q||f))return G?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:bPI(h)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.MD(_.p1("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var Z=[];D.length&&Z.push(QKq(D,0));f?Z.push({contents:[{statementBannerRenderer:HPu(C,a)}]}):Q?Z.push(QKq(v,1,h,x,U,L)):G&&Z.push({contents:[{statementBannerRenderer:jLO(h)}]});(Q&&v.length||D.length)&&Z.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.MD(_.p1("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return Z.map(function(E){return{itemSectionRenderer:E}})};
dv=function(D,v){if(typeof D!=="object")return null;D=_.P(Object.entries(D));for(var h=D.next();!h.done;h=D.next()){var a=_.P(h.value);h=a.next().value;a=a.next().value;if(h===v)return h;if(a=dv(a,v))return h+"."+a}return null};
jo=function(D){var v=D.content;return(D=D.styleRuns)&&v?{runs:D.map(function(h){var a={text:v.slice(h.startIndex,h.startIndex+h.length)};h.fontColor&&(a.textColor=h.fontColor);return a})}:{simpleText:v}};
xGO=function(D,v,h,a){var Q=Vpo;a&&(D.quantity=a);if(!D.quantity||!D.maxQuantity)return{};a=D.minusButton;var G=D.plusButton,x,f,C,U;return{value:D.quantity,maxValue:D.maxQuantity,onChangeCallback:function(L){Q(D,L)},
minusLabel:(x=_.k(a,PfL))==null?void 0:x.label,minimumReachedLabel:(f=_.k(a,PfL))==null?void 0:f.limitReachedLabel,plusLabel:(C=_.k(G,PfL))==null?void 0:C.label,maximumReachedLabel:(U=_.k(G,PfL))==null?void 0:U.limitReachedLabel,disabled:v,onRemoveCommand:h}};
Vpo=function(D,v){var h=D.quantityIncrementerEntityKey;if(h){var a={};a.quantity=v;_.xt(_.sy("quantityIncrementerEntity",h,a));D.onChangeCommand&&_.r4(D.onChangeCommand)}};
Mpo=function(D){if(D)return D===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(D).overflowY)?D:Mpo(D.parentElement)};
o68=function(D,v){(D=fmq(D))&&((_.g("enable_mini_app_command_handler_mweb_fix")?0:v)?Cf4.push({command:D,sourceData:{},commandContext:void 0}):_.xd().resolve(_.fx).resolveCommand(D))};
fmq=function(D){return _.k(D,_.Tz)};
FA8=function(){var D=window.performance.timeOrigin+window.performance.now(),v=(new _.m2).setSeconds(D/1E9);return _.h3(v,2,_.QK(D%1E9),0)};
UGo=function(D,v){var h;D=(h=_.k(_.k(D,_.Tz),zQI))==null?void 0:h.methodName;var a,Q;(h=window.youtubewebview||((a=window.webkit)==null?void 0:(Q=a.messageHandlers)==null?void 0:Q.youtubewebview))&&D&&(a=new HO,D=_.Xx(a,1,D),D=_.dr(D.JSC$12397_serializeBinary()),v=_.dr(v),h.postMessage(D+","+v))};
yV=function(D,v){var h=_.k(_.k(D,_.Tz),zQI);h&&(v&&(h.serializedAdditionalMetadata=_.dr(v)),o68(D,!0))};
LAA=function(D){switch(D){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
Z$c=function(){return!!_.eA("ID_TOKEN")};
g62=function(D){return D instanceof Error&&D.cause instanceof E6c&&D.cause.rpcErrorCode!==void 0?!Imr.includes(D.cause.rpcErrorCode):!0};
S62=function(){return _.hO(klu,{authuser:""+(_.eA("SESSION_INDEX")||0)})};
wv=function(D,v,h,a){h=h===void 0?"MINI_APP_SDK_API_UNSPECIFIED":h;a=a===void 0?"":a;var Q=new _.XH;h={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:a,sdkApi:h};D instanceof Error&&(Q.message=D.message,Q.name=D.name,D.cause instanceof E6c&&D.cause.rpcErrorCode!==void 0&&(h.rpcErrorCode=D.cause.rpcErrorCode));var G;(G=v.onError)==null||G.call(v,{loggingError:Q,metadata:h})};
ph7=function(D,v,h,a){switch(D){case "MINI_APP_SOURCE_GAMESNACKS":return new eo(v,h,a);default:return new JtO(v,h,a)}};
lm2=function(D){switch(D){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
NU2=function(D){switch(D){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
Y6L=function(D){switch(D){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
BUc=function(){return Math.floor(Math.random()*4)+1};
ctA=function(D,v,h,a){D=_.P(Object.entries(D));for(var Q=D.next(),G={};!Q.done;G={message$jscomp$993:void 0},Q=D.next()){var x=_.P(Q.value);Q=x.next().value;x=x.next().value;G.message$jscomp$993=x;v.push(setTimeout(function(f){return function(){a(!1);h(f.message$jscomp$993.text)}}(G),G.message$jscomp$993.delayMs));
Number(Q)>0&&v.push(setTimeout(function(){a(!0)},G.message$jscomp$993.delayMs-400))}};
XhI=function(D,v){var h=h===void 0?Yuf:h;_.g("mweb_fix_monitor_visibility_after_render")?D&&ys(function(){Xgf(D,v,h)}):ys(function(){Xgf(D,v,h)})};
Ati=function(D,v){var h=document.createElement("ytd-engagement-panel-section-list-renderer");h.data=D;if(v==null?0:v.isPersistentPanel)h.isPersistentPanel=!0;return h};
jK4=function(D){q6q||(q6q=b$o(new _.rR(1,void 0,void 0,dG7),0));var v=q6q.format(Math.floor(D));v=Wf==="be"||Wf==="bg"||Wf==="es"||Wf==="et"||Wf==="hu"||Wf==="ka"||Wf==="lv"||Wf==="pl"||Wf==="pt-PT"||Wf==="sq"?v.replace(new RegExp("^(\\d)"+dG7.GROUP_SEP.replace(".","\\.")+"(\\d+("+dG7.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):v;return D>=1E3&&D<=9999&&v[1]==="."&&(Wf==="sl"||Wf==="it")?v.replace(".",""):v};
sKc=function(D,v){id7("ytd-button-renderer",{data:D,className:v?v.className:"",overrides:v==null?void 0:v.buttonOverrides},Tk8)};
ytf=function(D,v,h,a){if(D)return a=a||D.likeStatus,v?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:a==="LIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:h},defaultText:a==="LIKE"?D.likeCountWithUnlikeText:D.likeCountText,toggledText:a==="LIKE"?D.likeCountText:D.likeCountWithLikeText,defaultNavigationEndpoint:mGA(D,"LIKE"),defaultServiceEndpoint:H$f(D,"LIKE"),toggledServiceEndpoint:H$f(D,"INDIFFERENT"),defaultTooltip:_.$V(D.likeCountTooltipText),toggledTooltip:_.$V(D.likeCountTooltipText),
targetId:D.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:a==="DISLIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:h},defaultText:a==="DISLIKE"?D.dislikeCountWithUndislikeText:D.dislikeCountText,toggledText:a==="DISLIKE"?D.dislikeCountText:D.dislikeCountWithDislikeText,defaultNavigationEndpoint:mGA(D,"DISLIKE"),defaultServiceEndpoint:H$f(D,"DISLIKE"),toggledServiceEndpoint:H$f(D,"INDIFFERENT"),defaultTooltip:_.$V(D.dislikeCountTooltipText),
toggledTooltip:_.$V(D.dislikeCountTooltipText)}};
mGA=function(D,v){if(v==="LIKE")return D.likeCommand;if(v==="DISLIKE")return D.dislikeNavigationEndpoint};
H$f=function(D,v){var h;return(h=D.serviceEndpoints)==null?void 0:h.find(function(a){var Q;return((Q=_.k(a,_.nS))==null?void 0:Q.status)===v})};
_.n6f=function(D,v,h){return window.spf&&!_.g("web_disable_spfjs_client")?wh2(D,v,h):eQO(D,v)};
wh2=function(D,v,h){var a=null,Q=(new _.IB(function(G,x){var f={};if(v){f.method=v.method;var C=v.postParams||{};C0q(D,v)&&(C[_.eA("XSRF_FIELD_NAME")]=_.eA("XSRF_TOKEN"));f.postData=_.SO(C);v.type&&(f.type=v.type);C=v.headers}f.headers=Ga2(D,C);_.g("debug_forward_web_query_parameters")&&(D=_.Mqi(D,window.location.search));f.experimental_headers=f.headers;f.onError=function(U){U.err&&U.xhr&&(U.err.params={url:U.xhr.responseURL,response:U.xhr.responseText.substr(0,64)});x(U.err)};
f.onPartDone=function(U){h&&h.call(null,U.part)};
f.onDone=function(U){var L=O$r(U.response,"xsrf_token");QH(window.location.href,D)&&L&&_.wM("XSRF_TOKEN",L);if(L=O$r(U.response,"service_worker_killswitch"))_.wM("SERVICE_WORKER_KILLSWITCH",L),M1u();G(U.response)};
a=spf.request(D,f)})).then(KAr);
Q.thenCatch(function(G){var x=G instanceof _.Oy,f=G&&G.hasOwnProperty("params")&&G.params.response?G.params.response:"";G instanceof Error&&(f?x?WsI(G):f===')]}\'\n{"reload":"now"}'?WsI(G):(TU2(G,D,f),RQ2(G,f)?_.yR(G):_.mV(G)):WsI(G));a&&a.abort()});
return Q};
KAr=function(D){if(D.type==="multipart"){var v=D.timing;D=D.parts.reduce(function(h,a){Object.assign(h,a);return h},{});
D.timing=D.timing||{};Object.assign(D.timing,v);D.type="reduced"}return D};
eQO=function(D,v){v=v===void 0?{}:v;var h=null,a=new _.IB(function(Q,G){v.onFinish=function(x){if(x.readyState===XMLHttpRequest.DONE)if(x.status===200){if(x.responseType!=="json"){var f=x.response;f.substring(0,5)===")]}'\n"&&(f=f.substring(5));try{var C=JSON.parse(f)}catch(U){C=U}}else C=x.response;C instanceof Error?G(C):(f=O$r(C,"xsrf_token"),QH(window.location.href,D)&&f&&_.wM("XSRF_TOKEN",f),x=x.responseURL,window.performance&&window.performance.getEntriesByName?(f=window.performance.getEntriesByName(x).pop())?
x={responseStart:(0,_.xz)()-(f.responseEnd-f.responseStart)}:(Math.random()<.01&&(f=Error("ji"),f.params=x,_.yR(f)),x={responseStart:-1}):x={responseStart:0},C.timing=C.timing||{},Object.assign(C.timing,x),Q(C))}else G(Error("ii`"+x.status))};
(h=_.kd(D,v))||G(Error("ii`"+h.status))});
a.thenCatch(function(Q){Q instanceof Error&&(TU2(Q,D),RQ2(Q)&&(Q.level="WARNING"))});
_.g("cancel_pending_navs")&&a.thenCatch(function(){h.abort()});
return a};
O$r=function(D,v){var h=D[v],a=D.parts;D.type==="multipart"&&a&&(h=(D=a.find(function(Q){return v in Q}))&&D[v]);
return h};
TU2=function(D,v,h){var a=D.message||"";v={original:a,url:v};if(h)if(a=a.match(/position:?\s*(\d+)/)){a=a&&Number(a[1])?Number(a[1]):0;var Q=Math.max(a-25,0);v.position=a;v.response=h.substring(Q,a+25)}else v.response=h.substring(0,50);_.wf(D,v);try{D.message="JSON parse error"}catch(G){}};
RQ2=function(D,v){D=D.message||"";D=!!(D.indexOf("<")>=0||D.indexOf("end of ")>=0||D.indexOf("Unterminated string")>=0||D.indexOf("Unexpected EOF"));if(!D&&v)for(var h=v.length,a=!1,Q=0;Q<h;Q++)if(a&&v[Q]==="\\")Q++;else if(v[Q]==='"')a=!a;else if(v[Q]==="<"&&!a){D=!0;break}return D};
i$I=function(){return document.documentElement.hasAttribute("dark")};
_.WAu=function(D,v){if(D!=="GFEEDBACK"&&D!=="GUIDED_HELP")_.OM(Error("ki`"+D));else{var h=_.xd().resolve(_.PV(_.P4));if(h&&(h=h.getCurrentPage())&&h.getServiceTrackingParams&&(h=h.getServiceTrackingParams()))for(var a=0,Q;Q=h[a++];)if(Q.service===D){if(D=Q.params)for(h=0;a=D[h++];)v[a.key]=a.value;break}}};
_.tpu=function(D){var v=_.Mq();v&&(v=v.getPlayer())&&(v.pauseVideo(),D.playback_id=v.getVideoData().cpn,D.eid=v.getVideoData().eventId,Object.assign(D,v.getFeedbackProductData()))};
rt2=function(){var D={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.eA("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(D.enableAnonymousFeedback=!0);_.eA("SESSION_INDEX")&&(D.authuser=String(_.eA("SESSION_INDEX")));_.g("enable_pageid_for_feedback")&&_.eA("DELEGATED_SESSION_ID")&&(D.pageId=String(_.eA("DELEGATED_SESSION_ID")));return D};
_.KS=function(D){_.g("enable_ypc_spinners")&&_.zU(D,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},D])};
_.TN=function(D){_.g("enable_ypc_spinners")&&_.zU(D,"yt-close-popup-action",["yt-loading-renderer"])};
urO=function(D){return new Promise(function(v,h){_.iP({verifyCommand:{recaptchaToken:D.recaptchaResponse}},{commandController:{onSuccess:function(a,Q){Q||h("ChallengeService did not return a response.");var G;v({challengeCompleted:(G=Q.verified)!=null?G:!1})},
onServerError:function(a,Q){h(Q)}}})})};
Dgo=function(D,v,h,a){v({recaptchaResponse:a}).then(function(Q){Q.challengeCompleted?_.Yd()?(h(3),_.xd().resolve(_.fx).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:D}})):h(2):h(4)},function(){h(4)})};
hX8=function(D,v,h){_.i4(_.UV(vOL,_.eA("HL")),function(){var a;(a=window.grecaptcha)==null||a.ready(function(){var Q=window.grecaptcha;Q?(h(Q.render(D,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Dgo.bind(null,D,urO,v)})),v(1)):v(4)})})};
aCO=function(D,v){return function(){switch(v()){case 0:return D().captchaLoadingMessage;case 1:return D().challengeReason;case 3:return D().captchaSuccessfulMessage;case 2:return D().captchaCookieSetFailureMessage;case 4:return D().captchaFailedMessage;default:return D().challengeReason}}()};
_.Ri=function(){if(!$go){var D=document.querySelector("#player.skeleton");D&&(_.Np(D),$go=!0)}};
_.GBu=function(){return Qz4=Mfr()};
xgA=function(){return _.M(function(D){return Vxu!==void 0?D.return():D.yield(Pgq(),0)})};
Pgq=function(){return _.M(function(D){if(D.nextAddress==1)return D.yield(CXf(),2);Qz4=D.yieldResult;Vxu=_.HK.addLowPriorityJob(Pgq,5E3);_.YI(D)})};
zXf=function(D){var v=v===void 0?MxI:v;var h,a,Q=(h=D.responseContext)==null?void 0:(a=h.mainAppWebResponseContext)==null?void 0:a.trackingParam;if(!Q){v.increment("MISSING");var G,x,f,C,U,L;_.yR(new _.XH("282054944_a",{pQb:!!((G=D.responseContext)==null?0:(x=G.mainAppWebResponseContext)==null?0:x.loggedOut),jz4:((f=D.responseContext)==null?void 0:f.mainAppWebResponseContext)===void 0,tjU:D.responseContext===void 0,cp:(C=D.playabilityStatus)==null?void 0:C.contextParams,ud4:(((U=D.streamingData)==
null?void 0:U.formats)||[]).length>0,egS:(((L=D.streamingData)==null?void 0:L.adaptiveFormats)||[]).length>0,os:!!D.offlineState,cotn:D.cotn}));return 2}h="";try{h=fC8(Q)}catch(I){return v.increment("C_ERROR"),_.mV(I),2}try{var Z=_.Cg7(h);var E=oOq(Z)}catch(I){return v.increment("P_ERROR"),_.mV(I),2}E=_.Mp(E,FUO,1,_.f0());Q=[];E=_.P(E);for(Z=E.next();!Z.done;Z=E.next())a=Z.value,Z=a.getPath(),h=(0,_.sV.getValueByKeys)(D,Z.split(".")),h=String(h===void 0||h===null?"":h),a=a.getValue()||"",G=/[+\-\/_]/g,
h.replace(G,"")!==a.replace(G,"")&&(v.increment("MISMATCH"),_.g("ab_mis_log_err")&&(h=new _.XH("282054944_p",{r6X:Z,g:String(h),e:String(a)}),_.mV(h)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(Z)||(Z.match(/enforcementMessageViewModel/i)?Q.push(3):Q.push(2)));if(Q.length>0)return Math.max.apply(Math,_.j_(Q));v.increment("SUCCESS");return 1};
Zsc=function(D){var v=new ij;if(D.interpreterJavascript){var h=_.wrI(D.interpreterJavascript);h=oIq(h).toString();var a=new UgL;_.Xx(a,6,h);_.lH(v,1,a,Bm)}else D.interpreterUrl&&(h=_.yx(D.interpreterUrl),h=_.qf(h).toString(),a=new _.LUc,_.Xx(a,4,h),_.lH(v,2,a,Bm));D.interpreterHash&&_.WO(v,3,D.interpreterHash,Bm);D.program&&_.WO(v,4,D.program,Bm);D.globalName&&_.WO(v,5,D.globalName,Bm);D.clientExperimentsStateBlob&&_.WO(v,7,D.clientExperimentsStateBlob,Bm);return v};
tm=function(D){var v={};D=_.P(D.split("&"));for(var h=D.next();!h.done;h=D.next())h=h.value.split("="),h.length===2&&(v[h[0]]=h[1]);return v};
EOf=function(D){return Number(D.t)||7200};
HJA=function(){if(_.g("bg_st_hr"))return"havuokmhhs-0";var D,v=((D=globalThis.performance)==null?void 0:D.timeOrigin)||0;return"havuokmhhs-"+Math.floor(v)};
ICf=function(){return new Promise(function(D){var v=window;v.ntpevasrs!==void 0?D(new rv(v.ntpevasrs)):(v.ntpqfbel===void 0&&(v.ntpqfbel=[]),v.ntpqfbel.push(function(h){D(new rv(h))}))})};
gOo=function(D){var v=D.rLZ.bind(D);_.Gm("yt.aba.att",v);D=D.qeX.bind(D);_.Gm("yt.aba.att2",D)};
Sqi=function(D){switch(_.gl(D.input)){case _.xV(kBf):var v={};return v.encryptedVideoId=D.innerTubeRequest.externalVideoId,v}return{}};
lC2=function(D){switch(_.gl(D.input)){case _.xV(kBf):if(_.g("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.xV(JML):if(_.g("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.xV(uj):if(_.g("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&D.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.xV(pJu):var v,h;if(_.g("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((h=_.k((v=D.config)==null?void 0:v.command,g82))==null?0:h.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.YqO=function(D){var v;if(D.playlistVideoRenderer&&((v=D.playlistVideoRenderer)==null?0:v.engagementBar))return NwO(D.playlistVideoRenderer.engagementBar);if(_.k(D,DS)){var h;if(D=(h=_.k(D,DS))==null?void 0:h.engagementBar)return NwO(D)}return""};
NwO=function(D){if(!D)return"";D=_.k(D,_.Bwo);if(D==null||!D.actions)return"";D=_.P(D.actions);for(D=D.next();!D.done;D=D.next()){D=_.k(D.value,_.cM4);var v=void 0;if((v=D)==null||!v.itemId)break;return D.itemId}return""};
_.XJc=function(D){var v;if(D.playlistVideoRenderer&&((v=D.playlistVideoRenderer)==null?0:v.videoId))return D.playlistVideoRenderer.videoId;if(_.k(D,DS)){var h,a;if(D=(h=_.k(D,DS))==null?void 0:(a=h.playlistItemData)==null?void 0:a.videoId)return D}return""};
_.AMq=function(D){var v;if(D.playlistVideoRenderer&&((v=D.playlistVideoRenderer)==null?0:v.voteCount))return D.playlistVideoRenderer.voteCount;if(_.k(D,DS)){var h,a;if(D=(h=_.k(D,DS))==null?void 0:(a=h.playlistItemData)==null?void 0:a.voteCount)return D}return 0};
_.v7=function(D,v){return _.gR(D.entities,"flowStateEntity",v)};
bs7=function(D,v,h,a){var Q=void 0;D=_.P(D[v.iconName]||[]);for(var G=D.next();!G.done;G=D.next()){G=G.value;var x=v.iconSize;var f=v.iconStyle;x=!x||x===G[2];var C=qqA[G[0]];a&&a!==G[1]||!x||f&&f!==C?f=!1:Q?(f=qqA[G[0]],f=!!v.iconStyle||f==="youtube_outline",x=Q.version<=G[1],f=(!!v.iconSize||G[2]===24)&&f&&x):f=!0;f&&(Q={name:v.iconName,style:qqA[G[0]],size:G[2],version:G[1],allowMirroring:!!G[3],url:h(v.iconName,G)})}return Q};
dg8=function(D,v,h,a){return D+(""+qqA[h[0]]+((a===void 0?0:a)?"_experimental":"")+"/"+v+"/v"+h[1]+"/")+(h[2]+"px.svg")};
jzA=function(D){return _.eA("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.eA("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":D};
szI=function(D,v){return dg8("https://fonts.gstatic.com/s/i/",D,v)};
mgf=function(D,v){return dg8("https://fonts.gstatic.com/s/i/",D,v,!0)};
Hsf=function(D,v){return dg8("https://www.gstatic.com/youtube/img/icons/web/",D,v)};
wJq=function(D){var v=D.enabled;var h=D.itemPlaybackModel;var a=D.thumbnailElRef;var Q=D.containerElRef;var G=D.options;var x;_.bW(function(){var f=Q==null?void 0:Q.value;var C,U=(C=a())==null?void 0:C.value;C=h();var L=G();if(v&&C&&f&&U&&(L==null?0:L.thumbnail)){var Z={data:C,hostElement:f},E,I,S=_.g("web_explore_hub_on_hover")||_.g("web_client_explore_hub_on_hover")?[].concat(_.j_((E=L.thumbnailOverlays)!=null?E:[]),_.j_((I=C.overlays)!=null?I:[])):L.thumbnailOverlays||[],B,A;f={mediaRenderer:Z,
lockupElement:f,thumbnailElement:U,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Rq((B=C.inlinePlayerData)==null?void 0:B.onVisible),navigationEndpoint:_.Rq((A=C.inlinePlayerData)==null?void 0:A.onSelect),thumbnail:L.thumbnail,thumbnailOverlays:S,accessibilityText:L.accessibilityText||""},thumbnailSize:L.thumbnailSize,enableRounding:L.enableRounding,mouseleaveCallback:L.mouseleaveCallback}}}else f=void 0;if(B=f){var d;(d=x)==null||hL(d);x=On(B);var b,W;((b=h())==null?0:(W=b.inlinePlayerData)==
null?0:W.forceImpAutoplay)&&yMI(x)}},"qy9yNe");
_.dq(function(){var f;(f=x)==null||hL(f)})};
eXA=function(D){D=atob(D);for(var v=[],h=0;h<D.length;h++)v.push(D.charCodeAt(h));return new Blob([new Uint8Array(v)],{type:"image/png"})};
Osc=function(D,v,h,a){a=a===void 0?"INSERTION_POSITION_UNSPECIFIED":a;return D({targetId:v},function(Q){var G,x=(G=Q.contents)!=null?G:[];G=h!=null?h:[];var f=nOi(x);switch(a){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Q,{contents:[].concat(_.j_(x.slice(0,f)),_.j_(G),_.j_(x.slice(f+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Q,{contents:[].concat(_.j_(G),_.j_(x))});case "INSERTION_POSITION_LAST":return Object.assign({},Q,{contents:[].concat(_.j_(x),_.j_(G))});
default:return Q}})};
Twr=function(D,v,h,a,Q){Q=Q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Q;return D({targetId:v},function(G){var x,f=(x=G.contents)!=null?x:[];x=KUo(f,h);if(x<0)return G;x=Q==="RELATIVE_INSERTION_POSITION_BEFORE"?x:x+1;return Object.assign({},G,{contents:[].concat(_.j_(f.slice(0,x)),_.j_(a),_.j_(f.slice(x)))})})};
nOi=function(D){var v=D.findIndex(function(h){return _.k(h,_.aQ)});
return v>=0?v:D.length};
KUo=function(D,v){return D.findIndex(function(h){a:{h=_.P(Object.values(h));for(var a=h.next();!a.done;a=h.next())if((a=a.value)&&a.targetId){h=a.targetId;break a}h=""}return h===v})};
isA=function(D,v,h){return D({targetId:v},function(a){var Q,G=(Q=a.contents)!=null?Q:[];return Object.assign({},a,{contents:RXc(G,h)})})};
RXc=function(D,v){return D.filter(function(h){var a=v.includes;a:{h=_.P(Object.values(h));for(var Q=h.next();!Q.done;Q=h.next())if((Q=Q.value)&&Q.targetId){h=Q.targetId;break a}h=""}return!a.call(v,h||"")})};
_.WUA=function(D,v){return{engagementPanelSectionListRenderer:{panelIdentifier:D,identifier:v,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
txO=function(D,v){D=D.getAvailableAudioTracks();if(D.length)return D==null?void 0:D.find(function(h){var a;return(h==null?void 0:(a=h.getLanguageInfo())==null?void 0:a.getId())===v})};
_.ua2=function(D){var v,h=(v=D.getOption("captions","tracklist",{includeAsr:!0}))!=null?v:[];return h=rM4(h,D)};
DsO=function(D){return D.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
rM4=function(D,v){v=DsO(v);if(v==null||!v.length)return D;var h=v.filter(function(x){return x});
v=D.filter(function(x){return x.languageCode.startsWith("en")});
h=_.P(h);for(var a=h.next();!a.done;a=h.next())if(a=a.value,v.length){var Q=v[0],G=Object.assign({},Q);Q.languageCode!==a.languageCode&&(G.displayName=Q.languageName+" >> "+a.languageName,G.translationLanguage=a,D.push(G))}return D};
vcI=function(D,v,h){D=_.ua2(D);if(D.length)return h?D.find(function(a){if(typeof(a==null?void 0:a.translationLanguage)==="object"){var Q;return((Q=a.translationLanguage)==null?void 0:Q.languageCode)===v}return!1}):D==null?void 0:D.find(function(a){return a.languageCode===v})};
hn2=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
asA=function(D){var v=D.getAvailableAudioTracks();if(v!=null&&v.length){var h=D.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.j_(v.map(function(a){return{listItemViewModel:{title:{content:a.getLanguageInfo().getName()},isSelected:a.getLanguageInfo().getId()===(h==null?void 0:h.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:a.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
$so=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
Qnf=function(D){var v=$so(D);if(v==null?0:v.length)return v;D.loadModule("captions");return $so(D)};
Gs2=function(D){var v=D.getOption("captions","track");if(v)return v;D.loadModule("captions");return D.getOption("captions","track")};
PQc=function(D){var v=Qnf(D);if(v!=null&&v.length){var h=Gs2(D),a;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.p1("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(h==null?0:h.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.j_(v.map(function(Q){return{listItemViewModel:{title:{content:Q.displayName},
isSelected:Q.displayName===(h==null?void 0:h.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.p1("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!h.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!h.translationLanguage&&{selectionText:{content:(h==null?void 0:(a=h.translationLanguage)==null?void 0:a.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[V7I(D)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
V7I=function(D){var v=DsO(D);if(v==null||!v.length)throw Error("Ji");var h=Gs2(D);D=v.filter(function(a){return!a.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.j_(D.map(function(a){var Q;return{listItemViewModel:{title:{content:a.languageName},isSelected:a.languageName===(h==null?void 0:(Q=h.translationLanguage)==null?void 0:Q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:a.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
CQo=function(D){return new Promise(function(v,h){if(D===void 0)_.mV(Error("Ni"),"ERROR"),h(Error("Ni"));else{h=new _.xsf;var a=_.M77();h=h.init();var Q=_.fs8(_.eA("YPC_MB_URL"),!0);Promise.all([h,Q]).then(function(){var G=_.$Y.payments.business.integration.ClientTokenFactory.createClientToken(D,a);v(G)})}})};
zn7=function(D,v,h,a,Q,G,x){var f=_.hn();h=h.replace(/-/g,"+").replace(/_/g,"/");var C=_.YE().get("hl"),U=_.Qf(_.VT),L=v==null?void 0:v.element;L&&_.KS(L);oc2(v,!0);_.Fyf(U,h,f.resolve,function(){L&&_.TN(L)},function(Z){L&&_.TN(L);
f.reject(Z)},C,a?function(Z){a&&_.v4(D,a,{backend_analytics:Z})}:void 0,f.resolve,Q,G,x);
return f.promise};
oc2=function(D,v){!(D=D==null?void 0:D.element)||D.tagName!=="YT-BUTTON-RENDERER"&&D.tagName!=="YTD-BUTTON-RENDERER"||(D.disabled=v)};
UsI=function(){var D=_.p1("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.MD(D),actionButton:{buttonRenderer:Xbf()}}},popupType:"TOAST"}};
Lyc=function(){var D=_.p1("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.MD(D),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Zwu=function(D){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:D}]}}};
Gk=function(D,v,h,a){var Q;return _.M(function(G){if(G.nextAddress==1)return _.gE(G,2),G.yield(D,4);if(G.nextAddress!=2)return(Q=_.AA(v.getState().entities).length>0)?G.return({title:_.MD(_.p1("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.MD(_.p1("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:cRu()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
G.return(ARi(h,a));_.NS(G);return G.return(ARi(h,a))})};
Eci=function(D,v){return v?v==="PPSV"||bHc(D,v):!1};
Isc=function(D){D.responseContext||(D.responseContext={});D.responseContext.maxAgeSeconds=0;return D};
P7=function(D){var v;return _.M(function(h){return h.nextAddress==1?h.yield(gc7(D,"service:topbar:fallback"),2):(v=h.yieldResult)&&_.Vf(v)?h.return(Isc(_.Vf(v))):h.return()})};
ksr=function(D){var v;return _.M(function(h){return h.nextAddress==1?h.yield(gc7(D,"service:downloads_settings:fallback"),2):(v=h.yieldResult)&&_.Vf(v)?h.return(v):h.return()})};
gc7=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1)return D?a.yield(D.get(v),2):a.return();h=a.yieldResult;return!h||!_.Vf(h)||!isNaN(Number(h.data.expireTimestampMs))&&h.isExpired()?a.return():a.return(h)})};
S7O=function(D){var v=_.xd().resolve(xY).getState().entities;return D.playlistId?Eci(v,D.playlistId):!1};
JYu=function(D,v){var h;if(v==null?0:(h=v.requestTemplate)==null?0:h.panelId)D.panelId=v.requestTemplate.panelId;var a;if(v==null?0:(a=v.requestTemplate)==null?0:a.params)D.params=v.requestTemplate.params};
ls7=function(){if(pcc)return pcc();var D=!_.g("idb_response_store_auth_killswitch"),v={};pcc=PK("yt-it-response-store",{objectStores:(v.ResponseStore={addedAtVersion:1},v),shared:!D,upgrade:function(h,a){a(1)&&(h=Tm(h,"ResponseStore",{keyPath:["key","clientName"]}),Re(h,"byExpiration","expireTimestampMs"),Re(h,"byInterface","clientName"))},
version:1});return pcc()};
NL7=function(D){return _.Do(ls7(),D)};
BLA=function(D,v){var h;return _.M(function(a){return a.nextAddress==1?a.yield(_.Vx(),2):(h=a.yieldResult)?a.return(new Y7r(D,v,h)):a.return()})};
cYr=function(D){var v=Object.keys(D)[0];if(v)return D.screenExit&&(v=v+";"+D.screenExit.screen),v};
Xci=function(D){var v=new Map;D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,h!=null&&(v.has(h.taskType)||v.set(h.taskType,[]),v.get(h.taskType).push(h));return v};
AYq=function(D){D=[].concat(_.j_(D)).sort(function(h,a){return h-a});
var v=Math.floor(D.length/2);return D.length%2?D[v]:(D[v-1]+D[v])/2};
dsO=function(D,v){D=D===void 0?bjc:D;v=v===void 0?{}:v;_.Gm("yt.logging.errors.log",_.mV);AnO();q7u(Hjc(),v);window.onerror=D;bwo=qnc;window.addEventListener("unhandledrejection",function(h){if(h.reason instanceof Error){var a=h.reason;_.wf(a,{source:"unhandledrejection"});a.name==="AbortError"&&(a.level="WARNING")}qnc(h.reason);h.preventDefault()})};
_.jnc=function(D){var v,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL,kL,Z4,S2,s8,Xf,dJ,R4,sF,rc,I4,q1,jt,rr,Zb,VO;return _.M(function(Pm){if(Pm.nextAddress==1)return Pm.yield(_.ND(D,{mode:"readonly",enableRetries:!0},function(Yp){return YZ(Yp,"playbackData").then(function(C3){var ZJ=C3.map(function(o4){return o4.transfer}).filter(function(o4){return!!o4}),VK=C3.map(function(o4){return o4.offlineVideoPolicy}).filter(function(o4){return!!o4}),oP=C3.filter(function(o4){return!!o4.key}).map(function(o4){return _.IG(_.LG(o4.key).entityId,
"downloadStatusEntity")});
ZJ=YZ(Yp,"transfer",ZJ);VK=YZ(Yp,"offlineVideoPolicy",VK);oP=YZ(Yp,"downloadStatusEntity",oP);var rJ=ZJ.then(function(o4){o4=o4.reduce(function(Hm,gr){(gr==null?0:gr.offlineVideoStreams)&&Hm.push.apply(Hm,_.j_(gr.offlineVideoStreams));return Hm},[]).filter(function(Hm){return!!Hm});
return YZ(Yp,"offlineVideoStreams",o4)});
return Ti.all([ZJ,VK,rJ,oP]).then(function(o4){var Hm=_.P(o4);o4=Hm.next().value;var gr=Hm.next().value;var Jb=Hm.next().value;Hm=Hm.next().value;return[C3,o4,gr,Jb,Hm]})})}),2);
if(Pm.nextAddress!=3)return v=Pm.yieldResult,Pm.yield(_.ND(D,{mode:"readonly",enableRetries:!0},function(Yp){return YZ(Yp,"mainDownloadsListEntity").then(function(C3){var ZJ,VK;return(VK=(ZJ=C3[0])==null?void 0:ZJ.downloads)!=null?VK:[]})}),3);
h=Pm.yieldResult;a=_.P(v);Q=a.next().value;G=a.next().value;x=a.next().value;f=a.next().value;C=a.next().value;U=Q;L=G;Z=x;E=f;I=C;S={};B={};A={};d={};b={};W=[];K=_.P(L);for(O=K.next();!O.done;O=K.next())(R=O.value)&&(S[R.key]=R);vA=_.P(Z);for(f7=vA.next();!f7.done;f7=vA.next())(xL=f7.value)&&(B[xL.key]=xL);kL=_.P(I);for(Z4=kL.next();!Z4.done;Z4=kL.next())(S2=Z4.value)&&(A[S2.key]=S2);s8=_.P(E);for(Xf=s8.next();!Xf.done;Xf=s8.next())(dJ=Xf.value)&&(d[dJ.key]=dJ);R4=_.P(h);for(sF=R4.next();!sF.done;sF=
R4.next())rc=sF.value,I4=void 0,b[(I4=rc.videoItem)!=null?I4:""]=!0,rc.videoItem&&(jt=q1=void 0,rr=(jt=(q1=_.LG(rc.videoItem))==null?void 0:q1.entityId)!=null?jt:"",W.push({externalVideoId:rr}));Zb=U.filter(function(Yp){if(!Yp||!Yp.key||!Yp.offlineVideoPolicy)return!1;Yp=_.LG(Yp.key).entityId;Yp=_.IG(Yp,"downloadStatusEntity");var C3;return!(Yp&&((C3=A[Yp])==null?void 0:C3.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
VO=Zb.map(function(Yp){var C3=S[Yp.transfer],ZJ=[];if(C3==null?0:C3.offlineVideoStreams)for(var VK=_.P(C3.offlineVideoStreams),oP=VK.next();!oP.done;oP=VK.next())(oP=d[oP.value])&&ZJ.push(oP);VK=B[Yp.offlineVideoPolicy];oP=b;var rJ=Yp==null?void 0:Yp.playerResponseTimestamp,o4=_.LG(VK.key).entityId;Yp=_.IG(o4,"mainVideoEntity");if(VK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Hm="OFFLINE_VIDEO_STATE_DISABLED";VK.expirationTimestamp&&Number(VK.expirationTimestamp)<Date.now()/1E3&&(Hm="OFFLINE_VIDEO_STATE_EXPIRED")}else if(VK.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Hm="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(C3==null?void 0:C3.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Hm="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Hm="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Hm="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Hm="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Hm="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Hm="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Hm="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Hm==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(C3==null?void 0:C3.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Hm="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Hm="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Hm=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}o4={id:o4,videoState:Hm};if(C3==null?0:C3.cotn)o4.cotn=C3.cotn;if(C3==null?0:C3.maximumDownloadQuality)o4.selectedVideoQuality=C3==null?void 0:C3.maximumDownloadQuality;if(C3==null?0:C3.lastProgressTimeMs)o4.lastProgressTimeMs=C3.lastProgressTimeMs;rJ&&(o4.playerResponseSavedTimeMs=String(Number(rJ)*1E3));C3=String;rJ=0;ZJ=_.P(ZJ);for(Hm=ZJ.next();!Hm.done;Hm=ZJ.next())if(Hm=Hm.value,Hm.streamsProgress){Hm=_.P(Hm.streamsProgress);for(var gr=Hm.next();!gr.done;gr=
Hm.next()){var Jb=void 0;rJ+=Number((Jb=gr.value.numBytesDownloaded)!=null?Jb:0)}}o4.downloadedBytes=C3(rJ);o4.selectedOfflineMode=oP[Yp]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";VK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(o4.offlinePlaybackDisabledReason=VK.offlinePlaybackDisabledReason);return o4});
return Pm.return({offlineVideos:VO,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:W}}})})};
sno=function(){var D;return _.M(function(v){return v.nextAddress==1?v.yield(_.JA(),2):(D=v.yieldResult)?v.return(_.jnc(D)):v.return({state:"PES Unavailable"})})};
yY4=function(){var D,v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(_.JA(),2);if(Q.nextAddress!=3)return(D=Q.yieldResult)?Q.yield(msA(D),3):Q.return({state:"PES Unavailable"});v=Q.yieldResult;h={};a=v.reduce(function(G,x){G[x.key]=x;return G},h);
return Q.return(Hwu(a))})};
Hwu=function(D){for(var v={},h=[],a=_.P(Object.keys(D)),Q=a.next();!Q.done;Q=a.next()){var G=Q.value;Q=D[G];var x=void 0;if(((x=Q)==null?void 0:x.entityType)==="mainVideoEntity"){delete D[G];var f=Q.data;Q={};if(f){var C=void 0;x=(C=f.videoId)!=null?C:"vid-"+G;G=D;Q.video=f;delete Q.video.formattedDescription;delete Q.video.thumbnail;f.owner&&(C=G[f.owner],C==null?0:C.data)&&(delete G[C.key],Q.video.owner=C.data,delete Q.video.owner.avatar);if(f=f.downloadState)if(C=G[f],C==null?0:C.data)if(delete G[f],
f=C.data.playbackData)if(C=G[f],C!=null&&C.data){delete G[f];f=C.data;delete f.playerResponseJson;Q.playbackData=f;if(f.transfer&&(C=G[f.transfer],C==null?0:C.data)){delete G[C.key];var U=C.data;Q.transfer=U;C=[];U=_.P(U.offlineVideoStreams||[]);for(var L=U.next();!L.done;L=U.next())if(L=G[L.value])delete G[L.key],C.push(L.data);C&&(Q.streams=C)}(f=f.offlineVideoPolicy)&&(f=G[f])&&f.data&&(delete G[f.key],Q.offlineVideoPolicy=f.data)}v[x]=Q}}else Q&&Q.entityType==="offlineOrchestrationActionWrapperEntity"&&
Q.data&&(delete D[Q.key],x=Q.data,G=void 0,h.push({id:x.rootActionId,type:((G=x.actionProto)==null?void 0:G.actionType)||"",entity:Q}))}v.wrapperEntities=h;Object.keys(D).length>0&&(v.unknownKeys=D);return v};
wco=function(){var D,v,h,a,Q,G,x,f,C;return _.M(function(U){if(U.nextAddress==1)return D=!!(new _.OW("")).expiringStorage_,a=!!((v=_.$L.crypto)==null?0:(h=v.subtle)==null?0:h.importKey),Q=!!_.$L.BroadcastChannel,G=!!_.$L.navigator.locks,U.yield(f6f(),2);x=U.yieldResult;f=D&&a&&Q&&G&&x;C={isSupported:f};if(f)return U.return(C);C.missingBrowserFeatures=[];x||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");D||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
a||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Q||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");G||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return U.return(C)})};
enc=function(){var D;return!((D=Mh?Mh:null)==null||!D.window)};
_.Owc=function(D){if(_.cA()&&_.kuq("Chromium")>=120){var v=_.ncO().mediaSession;try{v.setActionHandler("enterpictureinpicture",function(){D()})}catch(h){}}};
Kyc=function(D){for(var v=[],h=_.P(document.styleSheets),a=h.next(),Q={};!a.done;Q={node$jscomp$731:void 0},a=h.next())Q.node$jscomp$731=a.value.ownerNode,Q.node$jscomp$731&&(Q.node$jscomp$731 instanceof HTMLStyleElement||Q.node$jscomp$731 instanceof HTMLLinkElement)&&v.push(new Promise(function(G){return function(x){var f=G.node$jscomp$731.cloneNode(!0);f.onload=function(){x()};
f.onerror=function(){_.yR(Error("pj"));x()};
D.document.head.appendChild(f)}}(Q)));
return Promise.all(v)};
hG8=function(D){var v=[_.CT(TL8),_.CT(Rnc),_.CT(iwI)];WyO(window.document.documentElement,D.document.documentElement,[_.CT(t7I),_.CT(rYc),_.CT(uzq),_.CT(DQi),_.CT(vlc)]);WyO(window.document.body,D.document.body,v)};
WyO=function(D,v,h){D=_.P(D.attributes);for(var a=D.next();!a.done;a=D.next())if(a=a.value)try{_.Pp(h,v,a.name,a.value)}catch(Q){}};
$Qq=function(D,v){D=new _.fK(D.document.documentElement);D.start(ayA,v);return D};
Qh8=function(D){var v=D.document.documentElement;v.addEventListener("click",function(h){G5f(v,h)});
v.addEventListener("touchstart",function(h){f1I(h)});
v.addEventListener("mousedown",function(h){f1I(h)})};
Vwi=function(D,v,h,a){a=a===void 0?!1:a;v=new Gv2(v||D,h||D);return{x:D.x+((a===void 0?0:a)?v.lengthX*-1:v.lengthX)*.2,y:D.y+((a===void 0?0:a)?v.lengthY*-1:v.lengthY)*.2}};
Pm2=function(D){if(!D)return!1;var v=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",h,a,Q,G=(Q=(h=D.errorScreen)==null?void 0:h.playerLegacyDesktopYpcTrailerRenderer)!=null?Q:(a=D.errorScreen)==null?void 0:a.ypcTrailerRenderer;return!!v||!!G};
_.xQ8=function(D,v){if(!D)return!1;var h,a=(h=D.errorScreen)==null?void 0:h.playerLegacyDesktopYpcOfferRenderer,Q;v=!!(v==null?0:(Q=v.playerOverlayRenderer)==null?0:Q.gatedActionsOverlayRenderer);return!!Pm2(D)||!!a||!!v};
Cmr=function(D){return Mwf(D,0,"gclid",D.search(fy2))>=0||Mwf(D,0,"gad_source",D.search(fy2))>=0};
ol8=function(D){var v=[],h=0;return{clear:function(){h=v.length=0},
push:function(a){v[h]=a;h=(h+1)%D},
iterate:function(){return function Q(){var G,x,f,C;return _.CK(Q,function(U){switch(U.nextAddress){case 1:_.Jw(U,2),G=v.length,x=0;case 4:if(!(x<G)){U.jumpTo(2);break}f=h+x;C=_.oQ;return U.yield(v[f%G],7);case 7:C(U.yieldResult);x++;U.jumpTo(4);break;case 2:_.S_(U),_.pf(U,0)}})}()}}};
FL2=function(D){D.eventsToIgnore||(D.eventsToIgnore=[]);var v=D.eventsToIgnore.map(x3u),h=new Set(v),a=ol8(D.bufferSize);return{flush:function(){var Q=Array.from(a.iterate());a.clear();Q=Q.map(function(G){return{name:G.name,timestamp:G.startTime,attributes:G.attributes}});
return JSON.stringify(Q)},
onSpanStart:function(Q){Q.name==="event"&&h.has(Q.attributes.type)||a.push(Q)}}};
zGA=function(D){D=FL2(D);var v=D.flush;Ga.processors.push({onSpanStart:D.onSpanStart});Ojc.subscribe("handleError",function(h){try{h.params.breadcrumbs=v()}catch(a){_.mV(a,"WARNING")}})};
UQr=function(){yp("web_tracing_action");_.wK("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
LLL=function(){yp("web_tracing_action");_.wK("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Elc=function(D,v,h){if(v===void 0){Zcc||(LLL(),setInterval(LLL,6E5),Zcc=!0);var a="web_tracing_action"}else a=v;var Q,G=((Q=D.endTime)!=null?Q:D.startTime)-D.startTime,x={};Q=D.name;var f=D.startTime;x={webTracing:(x[D.name]=D.attributes,x)};h=_.KJ(N3o)(Q,G,f,x,h,a);if(D.children)for(D=_.P(D.children),a=D.next();!a.done;a=D.next())Elc(a.value,v,h)};
Iy8=function(D){var v=F4u.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(h){h.data&&typeof h.data==="object"&&(h=h.data,h.from==="extension"&&h.app==="yt.telemetry"&&(v("Received message from extension",h),D.onMessage(h)))});
return function(h,a){h={app:"yt.telemetry",from:"app",key:h,payload:a};v("Sending message to extension",h);window.postMessage(h,"*")}};
glf=function(){var D=D===void 0?3E3:D;var v=Iy8({onMessage:function(){}}),h=[];
return{onSpanEnd:function(a){a.parentId==null&&h.push(a)===1&&setTimeout(function(){var Q=[].concat(_.j_(h));h.length=0;v("spansReported",{spans:Q})},D)}}};
Sdc=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var D=window.performance.getEntriesByType("navigation");if(D.length>0){var v=D[0];oMf("pageLoad",{navigationType:kvi(v.type),unloadEventStart:Math.round(v.unloadEventStart),unloadEventEnd:Math.round(v.unloadEventEnd),domInteractive:Math.round(v.domInteractive),domContentLoadedEventStart:Math.round(v.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(v.domContentLoadedEventEnd),
domComplete:Math.round(v.domComplete),loadEventStart:Math.round(v.loadEventStart),loadEventEnd:Math.round(v.loadEventEnd),redirectCount:v.redirectCount},function(){})}}catch(h){}})};
kvi=function(D){switch(D){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
lyL=function(){for(var D=iNq.value,v={},h=_.P(D.enabledSpansArray),a=h.next();!a.done;a=h.next())v[a.value]=!0;if(D.exportToCsi||D.exportBreadcrumbs)v={sessionId:Rg2(),enabledSpans:v},Ga.initialized=!0,Ga.sessionId=v.sessionId||"",Ga.enabledSpans=v.enabledSpans,v.shouldSampleFn!=null&&(Ga.shouldSampleFn=v.shouldSampleFn),M88("pageLoad")&&Sdc();D.exportBreadcrumbs&&zGA({eventsToIgnore:JKO,bufferSize:D.bufferSize});D.exportToCsi&&Ga.processors.push(pLO);D.exportToDevTools&&(D=glf(),Ga.processors.push(D))};
NZc=function(D){return new Promise(function(v){window.setTimeout(v,D)})};
Yd8=function(D){var v={bicf:function(G){D.nl6=G},
blc:function(){return D.getLatestChallengeResponse()},
bcr:function(G){D.ip8.push(G)}},h=window;
h.ntpevasrs=v;if(h.ntpqfbel!==void 0)for(var a=_.P(h.ntpqfbel),Q=a.next();!Q.done;Q=a.next())Q=Q.value,Q(v);h.ntpqfbel=void 0};
BZf=function(D){return _.M(function(v){if(v.nextAddress==1)return _.gE(v,2),v.yield(D.pzX(),4);if(v.nextAddress!=2)return _.rl(v,0);_.NS(v);_.YI(v)})};
cKi=function(D){var v,h;(v=D.ytcsi)==null||(h=v.tick)==null||h.call(v,"pot_ist")};
XLI=function(D){if(D instanceof Error){var v=_.T3("yt.logging.errors.log");v&&v(D,"WARNING")}};
AKc=function(D){try{var v=JSON.parse(D);if(v.bgChallenge)return v}catch(h){}};
bcI=function(){var D=window,v={networkStatusManagerPromise:_.xd().resolve(new i1c(_.ra)),initialChallengeSli:_.g("wpo_att_sli")?new _.osc("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};D=D===void 0?window:D;var h=D.ytAtR,a;v==null||(a=v.initialChallengeSli)==null||_.FC(a);if(h){if(h=AKc(h)){var Q;v==null||(Q=v.initialChallengeSli)==null||_.zk(Q,"SUCCESS");qdo(h,v)}D.ytAtR=void 0}else D.ytAtRC=function(G){if(G=AKc(G)){var x;v==null||(x=v.initialChallengeSli)==null||
_.zk(x,"SUCCESS");qdo(G,v);D.ytAtRC=void 0}}};
shA=function(){if(dQA)return dQA;try{var D=_.l9("IFRAME");_.uH(D,_.UV(jhi));D.sandbox.add("allow-same-origin");D.style.display="none";document.body.appendChild(D);return dQA=D}catch(v){D=new _.XH("Failed to create sandbox iframe"),_.mV(D)}};
mQI=function(D){var v,h;return(h=D==null?void 0:(v=D.contentWindow)==null?void 0:v.fetch)!=null?h:window.fetch};
Hc7=function(D){var v,h;return(h=D==null?void 0:(v=D.contentWindow)==null?void 0:v.Request)!=null?h:window.Request};
yKo=function(D){var v,h;return(h=D==null?void 0:(v=D.contentWindow)==null?void 0:v.TextDecoder)!=null?h:window.TextDecoder};
wL2=function(){return function(D,v){_.eA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[D]=v}};
eGq=function(){return function(D,v){var h={};h[D]=v;D=_.KJ(_.pq7)(h);Object.keys(D).length>0&&_.HU(D)}};
KLA=function(){if(a2L()==="hidden")var D="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else a2L()==="visible"&&(D="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",nl4=null);D&&Ocu(D)};
Ocu=function(D){if(D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(TZO===D)return;TZO=D}var v=9E4+Math.random()*2E3;if(D!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.x_()>v)&&a2L()==="visible"){v=-1;nl4&&(v=Math.round((0,_.xz)()-nl4));var h=String;var a=_.T3("_fact",window);a=a==null||a==-1?-1:Math.max(Date.now()-a,0);_.jj("foregroundHeartbeat",{firstActivityMs:h(a),clientDocumentNonce:iyr,index:String(RG2),lastEventDeltaMs:String(v),trigger:D});
_.Gm("_fact",-1,window);RG2++;nl4=(0,_.xz)()}};
_.icc=function(){try{return!!self.sessionStorage}catch(D){return!1}};
WLc=function(){var D=navigator;return new Promise(function(v,h){var a;(a=D.webkitTemporaryStorage)!=null&&a.queryUsageAndQuota?D.webkitTemporaryStorage.queryUsageAndQuota(function(Q,G){v({usage:Q,quota:G})},function(Q){h(Q)}):h(Error("zj"))})};
twi=function(D,v){var h={errorSeverity:v.errorSeverity.toString(),wizFeatureFlags:Object.entries(v.featureFlags).join("\n")};X4A(v,h);v=v.errorSeverity;v===3?_.mV(D,"ERROR",void 0,void 0,void 0,h):v===2&&_.mV(D,"WARNING",void 0,void 0,void 0,h);_.g("cow_if_errors_in_popup")&&v===3&&D.message.indexOf("<If>")!==-1&&window.alert(D.message)};
rKc=function(D,v){var h=Q_.get(D)||{layerNode:v};h.layerNode=v;xBf(D,h);D.getScreenLayer=function(){return Uk(h.layerNode)}};
uuu=function(D){var v;D=D.parentNode;for(var h;D&&((v=Q_.get(D))==null||!v.isRenderer)&&!((h=D.polymerController)!=null?h:D).isRenderer_;)D=D.parentNode||D.host;if(v=D)return Q_.get(v)};
DXL=function(D){if(D){Q_.delete(D);var v=_.xd().resolve(xX);gDq(D,v)}};
hou=function(D,v,h){if(h===void 0?0:h){if(h=D.getAttribute("client-ve-type"),v.data&&!v.disableReactiveLogging||h)_.mt(function(){vPO(D,_.sY(v.data))},"$f"),_.dq(function(){return void DXL(D)})}else typeof v.data!=="function"&&vPO(D,v.data)};
vPO=function(D,v){a77++;$X4(D,v)&&_.HK.addJob(function(){_.LK(_.HK,function(){if($X4(D,v)&&D.ownerDocument.documentElement===document.documentElement&&D){var h;if(D.getAttribute("layer")){var a=h=Number(D.getAttribute("layer")),Q=Q_.get(D);Q?Q.layerNode.layer=a:rKc(D,new Q7L(a));(a=uuu(D))&&(Q=Q_.get(D))!=null&&(Q.layerNode.parent=a.layerNode)}else if(h=Q_.get(D))h=Uk(h.layerNode);else{h=Uk;a=new Q7L;if(Q=uuu(D))a.parent=Q.layerNode;rKc(D,a);h=h(a)}h!=null||(h=0);a=D.getAttribute("client-ve-type");
Q=Number(a);var G=!1;a=!1;var x=Q_.get(D),f;if((f=x)&&!(f=x[G1I]!==v)&&(f=Q)){var C;f=((C=Q_.get(D))==null?void 0:C.clientVeType)===void 0}f&&(x[G1I]=v,G=a=x.isRenderer=!0);Q_.has(D)&&(Q_.get(D).clientVeType=Q);D.visualElement&&(a=!0);if(_.g("wiz_next_ld_fix_client_ve_spec")){var U;C=((U=_.k(v==null?void 0:v.rendererContext,_.Xp))==null?void 0:U.loggingDirectives)||(v==null?void 0:v.loggingDirectives)}else C=v==null?void 0:v.loggingDirectives;C&&C.clientVeSpec&&(U=VHq(_.Yt(),D),U=_.PCL(_.c8(),C,U||
void 0,h))&&(D.visualElement=U);!D.visualElement&&Q&&G&&(D.veType=Q,U=void 0,_.g("wiz_next_client_ve_parent_fix")&&(U=VHq(_.Yt(),D)),U=_.B8(_.c8(),D,U,h),D.visualElement=U);a&&(U=_.xd().resolve(xX),pe2(D,{data:v,observer:U,layer:h,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
$X4=function(D,v){return(v==null?0:v.trackingParams)||(v==null?0:v.loggingDirectives)||_.k(v==null?void 0:v.rendererContext,_.Xp)||D.getAttribute("client-ve-type")?!0:!1};
xXo=function(D,v,h){D.componentType!==cl&&h instanceof HTMLElement&&v&&!_.g("cow_logging_in_component_wrapper")&&hou(h,v,!0)};
oPO=function(){if(!MHA){MHA=!0;var D=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.g("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:twi,enableComponentStacksInErrorMessages:!1});Object.assign(Mx,D);imc=f7q;CCi();DFq=nQ8;tCf=O27}};
CCi=function(){_.g("cow_logging_in_component_wrapper")?(D52=function(D,v){v instanceof HTMLElement&&hou(v,D,!0)},srL=function(){}):(D52=function(){},srL=xXo)};
FXL=function(D,v,h){v=v===void 0?{}:v;var a,Q=(a=_.k(D.commandMetadata,_.Sa))==null?void 0:a.url;a=v.form||{};!h||a.element||a.skipDefaultElement||(v.form=v.form||{},v.form.element=h);if(Q&&Q!=="/service_ajax")return{type:0,command:D,form:v.form};if(_.g("kevlar_service_command_check")){if(_.DY(_.xd().resolve(_.RX),D))return Object.assign({},{type:1,command:D},v)}else{var G;if((G=_.k(D.commandMetadata,_.Sa))==null?0:G.apiUrl)return Object.assign({},{type:1,command:D},v)}return{type:2,command:D,form:v.form}};
zo2=function(D){if(D.form){var v=D.form,h=Object.assign({},v);v=v.element;h=(delete h.element,h);if(v)return[_.L1(v,[D.command,h,D.commandController])]}return[]};
UXA=function(D){if(D.form){var v=D.form,h=Object.assign({},v);v=v.element;h=(delete h.element,h);v&&_.ZD(v,[D.command],v,h)}};
ZQ7=function(D,v,h){var a=new LXc(D,v),Q=new ZS(D,v,h);D={"/youtubei/v1/browse":new Ek(D,v,h),"/youtubei/v1/player":a,"/youtubei/v1/navigation/resolve_url":new IQ,"/youtubei/v1/next":Q,"/youtubei/v1/guide":new go(h),"/youtubei/v1/search":new kY(D,v,h),"/youtubei/v1/reel/reel_item_watch":new S6(D,v,h),"/youtubei/v1/get_watch":new JL(a,Q)};D["/youtubei/v1/account/account_menu"]=new pK;D["/youtubei/v1/notification/get_notification_menu"]=new lp;return D};
YY=function(){var D=_.xd().resolve(Nh);return Promise.resolve(EPo(D,_.$L.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
I7L=function(D){return D&&(D=_.B7(_.vKu(D)))?(new URLSearchParams(D)).get("service"):null};
AL=function(D,v){_.I3(_.c7(),function(){_.ea("adl")});
_.xd().resolve(gPq)(v);D=D.root;D.loadData&&D.loadData(v);(v==null?0:v.response)?_.zk(U_q(),"SUCCESS"):_.yR(new _.XH("Lifecycle: No response in data",_.nJ("IS_SHELL_LOAD"),v?v.page:"NO_PAGE",v?v.endpoint:"NO_ENDPOINT"));D.polymerController.$["page-manager"].lazyPrepareCriticalPages((v==null?void 0:v.page)||"",v.endpoint);var h,a;((a=_.k(v==null?void 0:(h=v.endpoint)==null?void 0:h.commandMetadata,_.Sa))==null?0:a.webPageType)&&_.Gb().dispatch(_.XC(_.k(v.endpoint.commandMetadata,_.Sa).webPageType))};
k1c=function(){var D,v;return _.M(function(h){switch(h.nextAddress){case 1:D=window;if(!D.getDataPromise){h.jumpTo(2);break}_.gE(h,3);return h.yield(D.getDataPromise(),5);case 5:return h.return(h.yieldResult);case 3:return _.NS(h),h.yield(YY(),6);case 6:return h.return(h.yieldResult);case 2:if(D.getInitialData)return v=D.getInitialData(),D.getInitialData=void 0,h.return(v);throw Error("Bj`"+_.$L.location.href);}})};
J4c=function(){_.wM("CSI_SERVICE_NAME","youtube");_.HU({loadType:"cold"});_.g("kevlar_log_lcp")&&Sb4(function(D){_.ea("lcp",D.value)})};
pPO=function(){var D=_.i9(document.location.href,"enable");D&&D.indexOf("scraper")>-1&&_.wM("ADD_SCRAPER_ATTRIBUTES",!0)};
A4q=function(D){var v=D.root;D=[l7c,N5o,_.qh];_.g("web_feedback_endpoint_autolog_allowlist_killswitch")&&D.push(_.bp,YbL);var h=[];_.g("web_talk_to_recs_double_click_fix")&&h.push(_.B5I,c42);XPc(function(a,Q){return FXL(a,Q,v)},function(a){if(!a.command)return[];
var Q;((Q=a.form)==null?0:Q.element)?a.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},a.form,{endpoint:a.command})})):v.handleNavigate(a);return[]},D,h);
_.xd().addProvider({provide:_.fx,useValue:_.pb.instance})};
bQr=function(){var D={},v={},h;for(h in qbo){var a=_.P(_.Zq(qbo[h],void 0,"IAtZ7"));D[h]=a.next().value;v[h]=a.next().value}return[D,function(Q){for(var G in Q){var x=void 0;(x=v[G])==null||x(Q[G])}}]};
_.j6=function(D,v,h){v=v===void 0?!1:v;var a=_.sV.getValueByKeys(D,"contents","twoColumnWatchNextResults","results","results","contents"),Q=_.sV.getValueByKeys(D,"contents","twoColumnWatchNextResults","playlist","playlist")||null;v&&(Q=null);var G=v=null;if(Q)v=_.sV.getValueByKeys(Q,"titleText"),G=_.sV.unsafeClone(_.sV.getValueByKeys(Q,"longBylineText")),a="",G&&(a=_.$V(G)),G=_.aX(a);else if(a){a=_.P(a);for(var x=a.next();!x.done;x=a.next())x=x.value,x.videoPrimaryInfoRenderer&&(v=_.sV.getValueByKeys.apply(_.sV,
[x].concat(_.j_(dXi)))),x.videoSecondaryInfoRenderer&&(G=_.sV.getValueByKeys.apply(_.sV,[x].concat(_.j_(j7O))))}else _.Wv(Error("Gj"));var f;D.currentVideoEndpoint?f=D.currentVideoEndpoint:_.Wv(Error("Hj"));var C;h&&(C=_.sV.getValueByKeys(h,"playabilityStatus","miniplayer","miniplayerRenderer"));D={miniplayerTitle:v,miniplayerSubtitle:G,watchEndpoint:f,playlistData:Q};C&&(D.miniplayerRenderer=C);return D};
s7c=function(D){if(D)return _.nb(D)};
_.mXu=function(){return{isFullscreen:function(){throw Error("Ij");},
toggleFullscreen:function(){throw Error("Jj");},
exitFullscreen:function(){throw Error("Kj");},
isAutonavEnabled:function(){throw Error("Lj");},
setAutonavEnabled:function(){throw Error("Mj");},
isAutoplaySetExplicitly:function(){throw Error("Nj");}}};
HQ8=function(D){return D.videoDuration?D.numTaps>1&&D.tapDirection!==0?_.sk(D.draggedTime/D.videoDuration,0,1):_.sk((D.playedTime||0)/D.videoDuration,0,1):0};
y4L=function(D){return D.videoDuration?D.isDragging||D.numTaps>1&&D.tapDirection!==0?_.sk(D.draggedTime/D.videoDuration,0,1):_.sk((D.playedTime||0)/D.videoDuration,0,1):0};
eo4=function(D){var v,h,a;return _.k(D==null?void 0:(v=D.markersMap)==null?void 0:(h=v.find(function(Q){return Q.key==="HEATSEEKER"}))==null?void 0:(a=h.value)==null?void 0:a.heatmap,wP4)};
nP2=function(D){var v,h;return(h=(v=eo4(D))==null?void 0:v.heatMarkersDecorations)!=null?h:[]};
OQo=function(D){if(_.g("mweb_supported_chapters_killswitch"))return!0;var v;return!!(D==null?0:(v=D.markersMap)==null?0:v.find(function(h){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(h.key)}))};
_.KXA=function(D){var v=Object,h=v.assign,a;D={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(a=D==null?void 0:D.getPlayerState())!=null?a:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return h.call(v,{},{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},D,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
T5O=function(D){return function(v){var h=D(),a,Q=(a=h.playerApi)==null?void 0:a.getPlayerState();v&&v!==h.playerState&&(v===1||v===2)&&h.setState({playerState:Q})}};
iQL=function(D){return function(v){var h=D(),a=h.playerApi;a&&(v==null?void 0:v.type)==="newdata"&&(RoI&&(clearTimeout(RoI),RoI=void 0),_.g("web_shorts_use_progress_state_for_gapless")?(v=a==null?void 0:a.getProgressState(v==null?void 0:v.playertype),v=v.seekableEnd-v.seekableStart):v=a==null?void 0:a.getDuration(v==null?void 0:v.playertype),h.setState({playedTime:0,videoDuration:v}))}};
WXf=function(D){return function(v){var h=D(),a=h.playerApi;if(a){var Q=a.getPresentingPlayerType();_.g("web_shorts_use_progress_state_for_gapless")?(a=a.getProgressState(Q),a=a.seekableEnd-a.seekableStart):a=a.getDuration(Q);h.setState({playedTime:v,videoDuration:a})}}};
r4L=function(D){_.Xv(112394,D,function(){return tHf},function(v){tHf=v})};
vTA=function(D,v){if(!D)return[];var h,a,Q;D=((h=D.markersMap)==null?void 0:(a=h.find(function(G){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(G.key)}))==null?void 0:(Q=a.value)==null?void 0:Q.chapters)||[];
!uFL(D)||(v==null?0:v.ignoreStub)||(D=[Dl2()].concat(_.j_(D)));return D};
Dl2=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
uFL=function(D){if(D.length===0)return!1;var v;return((v=_.k(D[0],mP))==null?void 0:v.timeRangeStartMillis)!==0};
H7=function(D){return D?D.timeRangeStartMillis||0:0};
au2=function(D,v){if(D.isDragging&&v)return D=hKc(D,v),D===-1?Dl2():vTA(v)[D]};
hKc=function(D,v){return D.isDragging&&v?vTA(v,{ignoreStub:!0}).findIndex(function(h,a,Q){h=$lO(D);return QTf(h,Q,a).scrubberHovering}):-1};
$lO=function(D){return Object.assign({},D,{videoDuration:D.videoDuration*1E3,playedTime:D.playedTime*1E3,draggedTime:D.draggedTime*1E3})};
QTf=function(D,v,h){var a=H7(_.k(v[h],mP));v=H7(_.k(v[h+1],mP))||D.videoDuration;h=D.isDragging;var Q;if(Q=D.isDragging)Q=D.draggedTime,Q=Q!==null&&Q>=a&&Q<v;var G=D.playedTime;return G!==null&&G>=a&&G<v?{videoPosition:"active",isScrubbing:h,scrubberHovering:Q}:D.playedTime<a?{videoPosition:"pending",isScrubbing:h,scrubberHovering:Q}:{videoPosition:"seen",isScrubbing:h,scrubberHovering:Q}};
G_c=function(D,v){return D.videoPosition==="seen"||(v===void 0?0:v)>0};
Vm7=function(D,v,h){v=D/v.storyboardInterval;var a=vTA(h);if(!a.length)return-v*72;h=0;a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next())if(H7(_.k(Q.value,mP))/1E3<D)h++;else break;return-(v*72)-h*56};
PhO=function(D){return D?D.width/D.columns:0};
xli=function(D){return D.isHovering?D.hoveredTime:D.draggedTime};
Mmo=function(D,v){D=D.draggedTime*1E3;return D>=v.visibleTimeRangeStartMillis&&D<=v.visibleTimeRangeEndMillis};
_.fuL=function(D){if(D===void 0||Number.isNaN(D))return"--:--";var v=Math.abs(Math.floor(D)),h=Math.floor(v/86400),a=Math.floor(v%86400/3600),Q=Math.floor(v%3600/60);v=Math.floor(v%60);var G="";h>0&&(G+=h+":",a<10&&(G+="0"));if(h>0||a>0)G+=a+":",Q<10&&(G+="0");G+=Q+":";v<10&&(G+="0");G+=v;return D>=0?G:"-"+G};
Ch4=function(D,v){return function(){var h=xli(D());var a=v();var Q=D().playerApi;if(Q&&Q.getNumberOfStoryboardLevels()!==0){var G=Q.getStoryboardFrameIndex(h,1);G!==-1?a=Q.getStoryboardFrame(G,1):(h=Q.getStoryboardFrameIndex(h,0),Q=Q.getStoryboardFrame(h,0),a&&Q&&(Q.height*=3,Q.width*=3),a=Q)}else a=null;if(!a)return null;v()&&(a.width=90*a.columns,a.height=160*a.rows);return a}};
_.yf=function(D){if(!D||D.getVideoData)return D};
oTO=function(){var D;return{playerApi:(D=_.gp())!=null?D:void 0}};
F7r=function(D){var v;_.M(function(h){if(h.nextAddress==1)return h.yield(_.Ig(),2);if(v=h.yieldResult)v.unMute(!0),v.setVolume(D,!0);_.YI(h)})};
zKu=function(D,v){D&&(D.value=""+v,D.style.setProperty("--gradient-percent",v+"%"))};
Ulo=function(D){var v;return(v=D==null?void 0:D.value)!=null?v:0};
L7c=function(){var D;_.M(function(v){if(v.nextAddress==1)return v.yield(_.Ig(),2);D=v.yieldResult;if(!D)return v.return();D.isMuted()?D.unMute(!0):D.mute(!0);_.YI(v)})};
Zlc=function(D){var v=_.xd().resolve(_.Ok).getPlayerElement();v&&D&&(D===1?v.pause():v.play())};
ETO=function(D){_.U9(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Iuo=function(D){_.U9(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
k_c=function(D){return _.by(D.document.body,function(){return _.F(gTo,null)},"Lg")};
SSf=function(){var D=window.performance.getEntriesByType("navigation");return D?D.map(function(v){return v.type}).includes("reload"):!1};
Xzf=function(){KK(KK(KK(KK(KK(KK(KK(_.xd().resolve(_.Tk),_.J7r),_.pzf),_.lu4),_.NOL),_.YSu),_.BOc),_.c7c)};
A7q=function(D,v){v=v===void 0?!1:v;var h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return v||!_.g("kevlar_shorts_seedless_retry_initial_load")||(h=window,a=!(!h.getDataPromise&&!h.getInitialData),a)?x.yield(k1c(),2):(setTimeout(A7q.bind(window,D,!0),1E3),x.return());if(x.nextAddress!=3)return Q=x.yieldResult,x.yield(qS8(Q),3);G=x.yieldResult;AL(D,G);_.YI(x)})};
qS8=function(D){var v;if((v=D.response)==null||!v.replacementEndpoint)return _.E9(D);v=_.xd().resolve(Nh);D=D.response;_.k(D.replacementEndpoint,_.AQ)&&D.sequenceContinuation&&(_.k(D.replacementEndpoint,_.AQ).sequenceParams=D.sequenceContinuation);return RQ(v,D.replacementEndpoint,{},_.$L.location.href,"shorts",function(){},function(){return!1})};
dlA=function(D){var v=_.xd().resolve(blA);D.playerResponse&&v.handleResponse(D.playerResponse);D.response&&v.handleResponse(D.response)};
jTI=function(D){var v=_.Gb(),h,a=_.k((h=D.response)==null?void 0:h.frameworkUpdates,$e),Q;h=_.k((Q=D.playerResponse)==null?void 0:Q.frameworkUpdates,$e);var G;D=_.k((G=D.reelWatchSequenceResponse)==null?void 0:G.frameworkUpdates,$e);a&&_.l0(a,v);h&&_.l0(h,v);D&&_.l0(D,v)};
sTu=function(D){var v;_.g("enable_redirect_linking_for_desktop_web_client")&&((v=window.location.hash)==null?0:v.includes("redirect_state"))&&D.url&&(D.url=D.url.toString()+window.location.hash)};
y7c=function(D){var v=_.xd(),h=v.resolve(Nh);v=v.resolve(_.mlr);D.endpoint&&(h=Hlo(h,D.endpoint),h.content&&D.response&&_.ip(v,D.response,h.content),h.player&&D.playerResponse&&_.ip(v,D.playerResponse,h.player),h.reelSequence&&D.reelWatchSequenceResponse&&_.ip(v,D.reelWatchSequenceResponse,h.reelSequence))};
W7=function(D,v){dlA(v);jTI(v);var h;(v==null?0:v.url)&&((h=window.location.hash)==null?0:h.includes("redirect_state"))&&(sTu(v),(h=I7L(v.url))&&_.zU(D.root,"yt-initialize-third-party",[h,v]));y7c(v);h=_.xd();var a=h.resolve(wzc);v.playerResponse&&h.resolve(eKi).handleResponse(v.playerResponse);if(v.playerResponse){h=void 0;if(_.g("ab_v_vid_sig")&&v.endpoint){var Q,G=(Q=_.k(v.endpoint,_.hP))!=null?Q:_.k(v.endpoint,_.AQ);G&&(h=G.videoId)}nT8(a,v.playerResponse,h)}v.playerResponse&&mm2(v.playerResponse)&&
_.g("web_enable_ab_rsp_cl")?xgA().then(function(){Oli(a,v.playerResponse);AL(D,v)}):AL(D,v)};
TO8=function(D){if(D=D.root.data){var v=_.xd().resolve(K7r);D.endpoint&&(D.response&&v.handleResponse(D.response,void 0,document.querySelector("ytd-app")),D.playerResponse&&v.handleResponse(D.playerResponse),D.reelWatchSequenceResponse&&v.handleResponse(D.reelWatchSequenceResponse))}};
RK8=function(D){var v,h,a,Q,G,x;return _.M(function(f){switch(f.nextAddress){case 1:v=window;if(!v.getDataPromise){f.jumpTo(2);break}_.gE(f,3);return f.yield(v.getDataPromise(),5);case 5:h=f.yieldResult;W7(D,h);_.rl(f,4);break;case 3:return _.NS(f),f.yield(YY(),6);case 6:a=f.yieldResult,AL(D,a);case 4:return f.return();case 2:if(!_.g("sw_nav_preload_pbj")){f.jumpTo(7);break}v.fetchInitialData=function(){var C;return _.M(function(U){if(U.nextAddress==1)return U.yield(YY(),2);C=U.yieldResult;AL(D,C);
_.YI(U)})};
if(v.getInitialData){v.loadInitialData=function(C){W7(D,C)};
Q=v.getInitialData();v.getInitialData=void 0;W7(D,Q);f.jumpTo(8);break}v.fetchInitialData=void 0;return f.yield(YY(),9);case 9:G=f.yieldResult,AL(D,G);case 8:return f.return();case 7:v.getInitialData?(x=v.getInitialData(),v.getInitialData=void 0,W7(D,x)):v.loadInitialData=function(C){W7(D,C)},_.YI(f)}})};
ilc=function(D){var v=0;return function(){return v<D.length?{done:!1,value:D[v++]}:{done:!0}}};
W72=typeof Object.defineProperties=="function"?Object.defineProperty:function(D,v,h){if(D==Array.prototype||D==Object.prototype)return D;D[v]=h.value;return D};
tmi=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var v=0;v<D.length;++v){var h=D[v];if(h&&h.Math==Math)return h}throw Error("a");};
_.GT=tmi(this);tL=function(D,v){if(v)a:{var h=_.GT;D=D.split(".");for(var a=0;a<D.length-1;a++){var Q=D[a];if(!(Q in h))break a;h=h[Q]}D=D[D.length-1];a=h[D];v=v(a);v!=a&&v!=null&&W72(h,D,{configurable:!0,writable:!0,value:v})}};
tL("Symbol",function(D){if(D)return D;var v=function(G,x){this.$jscomp$symbol$id_=G;W72(this,"description",{configurable:!0,writable:!0,value:x})};
v.prototype.toString=function(){return this.$jscomp$symbol$id_};
var h="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",a=0,Q=function(G){if(this instanceof Q)throw new TypeError("b");return new v(h+(G||"")+"_"+a++,G)};
return Q});
tL("Symbol.iterator",function(D){if(D)return D;D=Symbol("c");for(var v="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<v.length;h++){var a=_.GT[v[h]];typeof a==="function"&&typeof a.prototype[D]!="function"&&W72(a.prototype,D,{configurable:!0,writable:!0,value:function(){return r7f(ilc(this))}})}return D});
tL("Symbol.asyncIterator",function(D){return D?D:Symbol("d")});
var r7f=function(D){D={next:D};D[Symbol.iterator]=function(){return this};
return D},uVc=typeof Object.create=="function"?Object.create:function(D){var v=function(){};
v.prototype=D;return new v},DTL=function(){function D(){function h(){}
new h;Reflect.construct(h,[],function(){});
return new h instanceof h}
if(typeof Reflect!="undefined"&&Reflect.construct){if(D())return Reflect.construct;var v=Reflect.construct;return function(h,a,Q){h=v(h,a);Q&&Reflect.setPrototypeOf(h,Q.prototype);return h}}return function(h,a,Q){Q===void 0&&(Q=h);
Q=uVc(Q.prototype||Object.prototype);return Function.prototype.apply.call(h,Q,a)||Q}}(),vhu;
if(typeof Object.setPrototypeOf=="function")vhu=Object.setPrototypeOf;else{var ha8;a:{var aH2={a:!0},$Tu={};try{$Tu.__proto__=aH2;ha8=$Tu.a;break a}catch(D){}ha8=!1}vhu=ha8?function(D,v){D.__proto__=v;if(D.__proto__!==v)throw new TypeError("e`"+D);return D}:null}ro=vhu;
_.J=function(D,v){D.prototype=uVc(v.prototype);D.prototype.constructor=D;if(ro)ro(D,v);else for(var h in v)if(h!="prototype")if(Object.defineProperties){var a=Object.getOwnPropertyDescriptor(v,h);a&&Object.defineProperty(D,h,a)}else D[h]=v[h];D.superClass_=v.prototype};
_.P=function(D){var v=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(v)return v.call(D);if(typeof D.length=="number")return{next:ilc(D)};throw Error("f`"+String(D));};
au=function(D){for(var v,h=[];!(v=D.next()).done;)h.push(v.value);return h};
_.j_=function(D){return D instanceof Array?D:au(_.P(D))};
_.DK=function(D){return up(D,D)};
up=function(D,v){D.raw=v;Object.freeze&&(Object.freeze(D),Object.freeze(v));return D};
vD=function(D,v){return Object.prototype.hasOwnProperty.call(D,v)};
Q2c=function(D){if(D==null)throw new TypeError("g");return Object(D)};
GVr=typeof Object.assign=="function"?Object.assign:function(D,v){D=Q2c(D);for(var h=1;h<arguments.length;h++){var a=arguments[h];if(a)for(var Q in a)vD(a,Q)&&(D[Q]=a[Q])}return D};
tL("Object.assign",function(D){return D||GVr});
var h8=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},VrI=function(D){if(D.isRunning_)throw new TypeError("i");
D.isRunning_=!0};
h8.prototype.JSC$8724_next_=function(D){this.yieldResult=D};
var P$o=function(D,v){D.abruptCompletion_={exception:v,isException:!0};D.nextAddress=D.catchAddress_||D.finallyAddress_};
h8.prototype.return=function(D){this.abruptCompletion_={return:D};this.nextAddress=this.finallyAddress_};
h8.prototype.yield=function(D,v){this.nextAddress=v;return{value:D}};
h8.prototype.jumpTo=function(D){this.nextAddress=D};
_.YI=function(D){D.nextAddress=0};
_.gE=function(D,v,h){D.catchAddress_=v;h!=void 0&&(D.finallyAddress_=h)};
_.Jw=function(D,v){D.catchAddress_=0;D.finallyAddress_=v||0};
_.rl=function(D,v,h){D.nextAddress=v;D.catchAddress_=h||0};
_.NS=function(D,v){D.catchAddress_=v||0;v=D.abruptCompletion_.exception;D.abruptCompletion_=null;return v};
_.S_=function(D,v,h,a){a?D.finallyContexts_[a]=D.abruptCompletion_:D.finallyContexts_=[D.abruptCompletion_];D.catchAddress_=v||0;D.finallyAddress_=h||0};
_.pf=function(D,v,h){h=D.finallyContexts_.splice(h||0)[0];(h=D.abruptCompletion_=D.abruptCompletion_||h)?h.isException?D.nextAddress=D.catchAddress_||D.finallyAddress_:h.jumpTo!=void 0&&D.finallyAddress_<h.jumpTo?(D.nextAddress=h.jumpTo,D.abruptCompletion_=null):D.nextAddress=D.finallyAddress_:D.nextAddress=v};
xTc=function(D){this.JSC$8729_context_=new h8;this.program_=D};
fHu=function(D,v){VrI(D.JSC$8729_context_);var h=D.JSC$8729_context_.yieldAllIterator_;if(h)return Mrr(D,"return"in h?h["return"]:function(a){return{value:a,done:!0}},v,D.JSC$8729_context_.return);
D.JSC$8729_context_.return(v);return ap(D)};
Mrr=function(D,v,h,a){try{var Q=v.call(D.JSC$8729_context_.yieldAllIterator_,h);if(!(Q instanceof Object))throw new TypeError("h`"+Q);if(!Q.done)return D.JSC$8729_context_.isRunning_=!1,Q;var G=Q.value}catch(x){return D.JSC$8729_context_.yieldAllIterator_=null,P$o(D.JSC$8729_context_,x),ap(D)}D.JSC$8729_context_.yieldAllIterator_=null;a.call(D.JSC$8729_context_,G);return ap(D)};
ap=function(D){for(;D.JSC$8729_context_.nextAddress;)try{var v=D.program_(D.JSC$8729_context_);if(v)return D.JSC$8729_context_.isRunning_=!1,{value:v.value,done:!1}}catch(h){D.JSC$8729_context_.yieldResult=void 0,P$o(D.JSC$8729_context_,h)}D.JSC$8729_context_.isRunning_=!1;if(D.JSC$8729_context_.abruptCompletion_){v=D.JSC$8729_context_.abruptCompletion_;D.JSC$8729_context_.abruptCompletion_=null;if(v.isException)throw v.exception;return{value:v.return,done:!0}}return{value:void 0,done:!0}};
C$8=function(D){this.next=function(v){VrI(D.JSC$8729_context_);D.JSC$8729_context_.yieldAllIterator_?v=Mrr(D,D.JSC$8729_context_.yieldAllIterator_.next,v,D.JSC$8729_context_.JSC$8724_next_):(D.JSC$8729_context_.JSC$8724_next_(v),v=ap(D));return v};
this.throw=function(v){VrI(D.JSC$8729_context_);D.JSC$8729_context_.yieldAllIterator_?v=Mrr(D,D.JSC$8729_context_.yieldAllIterator_["throw"],v,D.JSC$8729_context_.JSC$8724_next_):(P$o(D.JSC$8729_context_,v),v=ap(D));return v};
this.return=function(v){return fHu(D,v)};
this[Symbol.iterator]=function(){return this}};
_.CK=function(D,v){v=new C$8(new xTc(v));ro&&D.prototype&&ro(v,D.prototype);return v};
ohu=function(D){function v(a){return D.next(a)}
function h(a){return D.throw(a)}
return new Promise(function(a,Q){function G(x){x.done?a(x.value):Promise.resolve(x.value).then(v,h).then(G,Q)}
G(D.next())})};
_.M=function(D){return ohu(new C$8(new xTc(D)))};
_.kI=function(D){var v=D[Symbol.asyncIterator];return v!==void 0?v.call(D):new Fai(_.P(D))};
Fai=function(D){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return D};
this.next=function(v){return Promise.resolve(D.next(v))};
this["throw"]=function(v){return new Promise(function(h,a){var Q=D["throw"];Q!==void 0?h(Q.call(D,v)):(h=D["return"],h!==void 0&&h.call(D),a(new TypeError("j")))})};
D["return"]!==void 0&&(this["return"]=function(v){return Promise.resolve(D["return"](v))})};
_.Kz=function(){for(var D=Number(this),v=[],h=D;h<arguments.length;h++)v[h-D]=arguments[h];return v};
_.oQ=function(D){return D};
tL("globalThis",function(D){return D||_.GT});
tL("Reflect",function(D){return D?D:{}});
tL("Reflect.construct",function(){return DTL});
tL("Reflect.setPrototypeOf",function(D){return D?D:ro?function(v,h){try{return ro(v,h),!0}catch(a){return!1}}:null});
tL("Promise",function(D){function v(){this.batch_=null}
function h(x){return x instanceof Q?x:new Q(function(f){f(x)})}
if(D&&(typeof _.GT.PromiseRejectionEvent!=="undefined"||!_.GT.Promise||_.GT.Promise.toString().indexOf("[native code]")===-1))return D;v.prototype.asyncExecute=function(x){if(this.batch_==null){this.batch_=[];var f=this;this.asyncExecuteFunction(function(){f.executeBatch_()})}this.batch_.push(x)};
var a=_.GT.setTimeout;v.prototype.asyncExecuteFunction=function(x){a(x,0)};
v.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var x=this.batch_;this.batch_=[];for(var f=0;f<x.length;++f){var C=x[f];x[f]=null;try{C()}catch(U){this.asyncThrow_(U)}}}this.batch_=null};
v.prototype.asyncThrow_=function(x){this.asyncExecuteFunction(function(){throw x;})};
var Q=function(x){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var f=this.createResolveAndReject_();try{x(f.resolve,f.reject)}catch(C){f.reject(C)}};
Q.prototype.createResolveAndReject_=function(){function x(U){return function(L){C||(C=!0,U.call(f,L))}}
var f=this,C=!1;return{resolve:x(this.resolveTo_),reject:x(this.JSC$8757_reject_)}};
Q.prototype.resolveTo_=function(x){if(x===this)this.JSC$8757_reject_(new TypeError("n"));else if(x instanceof Q)this.settleSameAsPromise_(x);else{a:switch(typeof x){case "object":var f=x!=null;break a;case "function":f=!0;break a;default:f=!1}f?this.resolveToNonPromiseObj_(x):this.fulfill_(x)}};
Q.prototype.resolveToNonPromiseObj_=function(x){var f=void 0;try{f=x.then}catch(C){this.JSC$8757_reject_(C);return}typeof f=="function"?this.settleSameAsThenable_(f,x):this.fulfill_(x)};
Q.prototype.JSC$8757_reject_=function(x){this.settle_(2,x)};
Q.prototype.fulfill_=function(x){this.settle_(1,x)};
Q.prototype.settle_=function(x,f){if(this.state_!=0)throw Error("o`"+x+"`"+f+"`"+this.state_);this.state_=x;this.result_=f;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Q.prototype.scheduleUnhandledRejectionCheck_=function(){var x=this;a(function(){if(x.notifyUnhandledRejection_()){var f=_.GT.console;typeof f!=="undefined"&&f.error(x.result_)}},1)};
Q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var x=_.GT.CustomEvent,f=_.GT.Event,C=_.GT.dispatchEvent;if(typeof C==="undefined")return!0;typeof x==="function"?x=new x("unhandledrejection",{cancelable:!0}):typeof f==="function"?x=new f("unhandledrejection",{cancelable:!0}):(x=_.GT.document.createEvent("CustomEvent"),x.initCustomEvent("unhandledrejection",!1,!0,x));x.promise=this;x.reason=this.result_;return C(x)};
Q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var x=0;x<this.onSettledCallbacks_.length;++x)G.asyncExecute(this.onSettledCallbacks_[x]);this.onSettledCallbacks_=null}};
var G=new v;Q.prototype.settleSameAsPromise_=function(x){var f=this.createResolveAndReject_();x.callWhenSettled_(f.resolve,f.reject)};
Q.prototype.settleSameAsThenable_=function(x,f){var C=this.createResolveAndReject_();try{x.call(f,C.resolve,C.reject)}catch(U){C.reject(U)}};
Q.prototype.then=function(x,f){function C(E,I){return typeof E=="function"?function(S){try{U(E(S))}catch(B){L(B)}}:I}
var U,L,Z=new Q(function(E,I){U=E;L=I});
this.callWhenSettled_(C(x,U),C(f,L));return Z};
Q.prototype.catch=function(x){return this.then(void 0,x)};
Q.prototype.callWhenSettled_=function(x,f){function C(){switch(U.state_){case 1:x(U.result_);break;case 2:f(U.result_);break;default:throw Error("p`"+U.state_);}}
var U=this;this.onSettledCallbacks_==null?G.asyncExecute(C):this.onSettledCallbacks_.push(C);this.isRejectionHandled_=!0};
Q.resolve=h;Q.reject=function(x){return new Q(function(f,C){C(x)})};
Q.race=function(x){return new Q(function(f,C){for(var U=_.P(x),L=U.next();!L.done;L=U.next())h(L.value).callWhenSettled_(f,C)})};
Q.all=function(x){var f=_.P(x),C=f.next();return C.done?h([]):new Q(function(U,L){function Z(S){return function(B){E[S]=B;I--;I==0&&U(E)}}
var E=[],I=0;do E.push(void 0),I++,h(C.value).callWhenSettled_(Z(E.length-1),L),C=f.next();while(!C.done)})};
return Q});
var $7=function(D,v,h){if(D==null)throw new TypeError("q`"+h);if(v instanceof RegExp)throw new TypeError("r`"+h);return D+""};
tL("String.prototype.startsWith",function(D){return D?D:function(v,h){var a=$7(this,v,"startsWith"),Q=a.length,G=v.length;h=Math.max(0,Math.min(h|0,a.length));for(var x=0;x<G&&h<Q;)if(a[h++]!=v[x++])return!1;return x>=G}});
tL("Object.setPrototypeOf",function(D){return D||ro});
tL("Symbol.dispose",function(D){return D?D:Symbol("s")});
tL("SuppressedError",function(D){function v(h,a,Q){if(!(this instanceof v))return new v(h,a,Q);Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.message=Q.message;this.error=h;this.suppressed=a}
if(D)return D;_.J(v,Error);v.prototype.name="SuppressedError";return v});
tL("Array.from",function(D){return D?D:function(v,h,a){h=h!=null?h:function(f){return f};
var Q=[],G=typeof Symbol!="undefined"&&Symbol.iterator&&v[Symbol.iterator];if(typeof G=="function"){v=G.call(v);for(var x=0;!(G=v.next()).done;)Q.push(h.call(a,G.value,x++))}else for(G=v.length,x=0;x<G;x++)Q.push(h.call(a,v[x],x));return Q}});
var zac=function(D,v,h){D instanceof String&&(D=String(D));for(var a=D.length,Q=0;Q<a;Q++){var G=D[Q];if(v.call(h,G,Q,D))return{i:Q,v:G}}return{i:-1,v:void 0}};
tL("Array.prototype.find",function(D){return D?D:function(v,h){return zac(this,v,h).v}});
tL("WeakMap",function(D){function v(){}
function h(C){var U=typeof C;return U==="object"&&C!==null||U==="function"}
function a(C){if(!vD(C,G)){var U=new v;W72(C,G,{value:U})}}
function Q(C){var U=Object[C];U&&(Object[C]=function(L){if(L instanceof v)return L;Object.isExtensible(L)&&a(L);return U(L)})}
if(function(){if(!D||!Object.seal)return!1;try{var C=Object.seal({}),U=Object.seal({}),L=new D([[C,2],[U,3]]);if(L.get(C)!=2||L.get(U)!=3)return!1;L.delete(C);L.set(U,4);return!L.has(C)&&L.get(U)==4}catch(Z){return!1}}())return D;
var G="$jscomp_hidden_"+Math.random();Q("freeze");Q("preventExtensions");Q("seal");var x=0,f=function(C){this.JSC$8765_id_=(x+=Math.random()+1).toString();if(C){C=_.P(C);for(var U;!(U=C.next()).done;)U=U.value,this.set(U[0],U[1])}};
f.prototype.set=function(C,U){if(!h(C))throw Error("t");a(C);if(!vD(C,G))throw Error("u`"+C);C[G][this.JSC$8765_id_]=U;return this};
f.prototype.get=function(C){return h(C)&&vD(C,G)?C[G][this.JSC$8765_id_]:void 0};
f.prototype.has=function(C){return h(C)&&vD(C,G)&&vD(C[G],this.JSC$8765_id_)};
f.prototype.delete=function(C){return h(C)&&vD(C,G)&&vD(C[G],this.JSC$8765_id_)?delete C[G][this.JSC$8765_id_]:!1};
return f});
tL("Map",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var f=Object.seal({x:4}),C=new D(_.P([[f,"s"]]));if(C.get(f)!="s"||C.size!=1||C.get({x:4})||C.set({x:4},"t")!=C||C.size!=2)return!1;var U=C.entries(),L=U.next();if(L.done||L.value[0]!=f||L.value[1]!="s")return!1;L=U.next();return L.done||L.value[0].x!=4||L.value[1]!="t"||!U.next().done?!1:!0}catch(Z){return!1}}())return D;
var v=new WeakMap,h=function(f){this[0]={};this[1]=G();this.size=0;if(f){f=_.P(f);for(var C;!(C=f.next()).done;)C=C.value,this.set(C[0],C[1])}};
h.prototype.set=function(f,C){f=f===0?0:f;var U=a(this,f);U.list||(U.list=this[0][U.id]=[]);U.entry?U.entry.value=C:(U.entry={next:this[1],previous:this[1].previous,head:this[1],key:f,value:C},U.list.push(U.entry),this[1].previous.next=U.entry,this[1].previous=U.entry,this.size++);return this};
h.prototype.delete=function(f){f=a(this,f);return f.entry&&f.list?(f.list.splice(f.index,1),f.list.length||delete this[0][f.id],f.entry.previous.next=f.entry.next,f.entry.next.previous=f.entry.previous,f.entry.head=null,this.size--,!0):!1};
h.prototype.clear=function(){this[0]={};this[1]=this[1].previous=G();this.size=0};
h.prototype.has=function(f){return!!a(this,f).entry};
h.prototype.get=function(f){return(f=a(this,f).entry)&&f.value};
h.prototype.entries=function(){return Q(this,function(f){return[f.key,f.value]})};
h.prototype.keys=function(){return Q(this,function(f){return f.key})};
h.prototype.values=function(){return Q(this,function(f){return f.value})};
h.prototype.forEach=function(f,C){for(var U=this.entries(),L;!(L=U.next()).done;)L=L.value,f.call(C,L[1],L[0],this)};
h.prototype[Symbol.iterator]=h.prototype.entries;var a=function(f,C){var U=C&&typeof C;U=="object"||U=="function"?v.has(C)?U=v.get(C):(U=""+ ++x,v.set(C,U)):U="p_"+C;var L=f[0][U];if(L&&vD(f[0],U))for(f=0;f<L.length;f++){var Z=L[f];if(C!==C&&Z.key!==Z.key||C===Z.key)return{id:U,list:L,index:f,entry:Z}}return{id:U,list:L,index:-1,entry:void 0}},Q=function(f,C){var U=f[1];
return r7f(function(){if(U){for(;U.head!=f[1];)U=U.previous;for(;U.next!=U.head;)return U=U.next,{done:!1,value:C(U)};U=null}return{done:!0,value:void 0}})},G=function(){var f={};
return f.previous=f.next=f.head=f},x=0;
return h});
tL("Set",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),a=new D(_.P([h]));if(!a.has(h)||a.size!=1||a.add(h)!=a||a.size!=1||a.add({x:4})!=a||a.size!=2)return!1;var Q=a.entries(),G=Q.next();if(G.done||G.value[0]!=h||G.value[1]!=h)return!1;G=Q.next();return G.done||G.value[0]==h||G.value[0].x!=4||G.value[1]!=G.value[0]?!1:Q.next().done}catch(x){return!1}}())return D;
var v=function(h){this.JSC$8779_map_=new Map;if(h){h=_.P(h);for(var a;!(a=h.next()).done;)this.add(a.value)}this.size=this.JSC$8779_map_.size};
v.prototype.add=function(h){h=h===0?0:h;this.JSC$8779_map_.set(h,h);this.size=this.JSC$8779_map_.size;return this};
v.prototype.delete=function(h){h=this.JSC$8779_map_.delete(h);this.size=this.JSC$8779_map_.size;return h};
v.prototype.clear=function(){this.JSC$8779_map_.clear();this.size=0};
v.prototype.has=function(h){return this.JSC$8779_map_.has(h)};
v.prototype.entries=function(){return this.JSC$8779_map_.entries()};
v.prototype.values=function(){return this.JSC$8779_map_.values()};
v.prototype.keys=v.prototype.values;v.prototype[Symbol.iterator]=v.prototype.values;v.prototype.forEach=function(h,a){var Q=this;this.JSC$8779_map_.forEach(function(G){return h.call(a,G,G,Q)})};
return v});
tL("Math.log2",function(D){return D?D:function(v){return Math.log(v)/Math.LN2}});
tL("Object.values",function(D){return D?D:function(v){var h=[],a;for(a in v)vD(v,a)&&h.push(v[a]);return h}});
tL("Object.is",function(D){return D?D:function(v,h){return v===h?v!==0||1/v===1/h:v!==v&&h!==h}});
tL("Array.prototype.includes",function(D){return D?D:function(v,h){var a=this;a instanceof String&&(a=String(a));var Q=a.length;h=h||0;for(h<0&&(h=Math.max(h+Q,0));h<Q;h++){var G=a[h];if(G===v||Object.is(G,v))return!0}return!1}});
tL("String.prototype.includes",function(D){return D?D:function(v,h){return $7(this,v,"includes").indexOf(v,h||0)!==-1}});
tL("Object.entries",function(D){return D?D:function(v){var h=[],a;for(a in v)vD(v,a)&&h.push([a,v[a]]);return h}});
tL("Number.isFinite",function(D){return D?D:function(v){return typeof v!=="number"?!1:!isNaN(v)&&v!==Infinity&&v!==-Infinity}});
tL("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
tL("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
tL("Number.isInteger",function(D){return D?D:function(v){return Number.isFinite(v)?v===Math.floor(v):!1}});
tL("Number.isSafeInteger",function(D){return D?D:function(v){return Number.isInteger(v)&&Math.abs(v)<=Number.MAX_SAFE_INTEGER}});
tL("String.prototype.endsWith",function(D){return D?D:function(v,h){var a=$7(this,v,"endsWith");h===void 0&&(h=a.length);h=Math.max(0,Math.min(h|0,a.length));for(var Q=v.length;Q>0&&h>0;)if(a[--h]!=v[--Q])return!1;return Q<=0}});
var UT8=function(D,v){D instanceof String&&(D+="");var h=0,a=!1,Q={next:function(){if(!a&&h<D.length){var G=h++;return{value:v(G,D[G]),done:!1}}a=!0;return{done:!0,value:void 0}}};
Q[Symbol.iterator]=function(){return Q};
return Q};
tL("Array.prototype.entries",function(D){return D?D:function(){return UT8(this,function(v,h){return[v,h]})}});
tL("Math.trunc",function(D){return D?D:function(v){v=Number(v);if(isNaN(v)||v===Infinity||v===-Infinity||v===0)return v;var h=Math.floor(Math.abs(v));return v<0?-h:h}});
tL("Number.isNaN",function(D){return D?D:function(v){return typeof v==="number"&&isNaN(v)}});
tL("Array.prototype.keys",function(D){return D?D:function(){return UT8(this,function(v){return v})}});
tL("Array.prototype.values",function(D){return D?D:function(){return UT8(this,function(v,h){return h})}});
tL("Array.prototype.fill",function(D){return D?D:function(v,h,a){var Q=this.length||0;h<0&&(h=Math.max(0,Q+h));if(a==null||a>Q)a=Q;a=Number(a);a<0&&(a=Math.max(0,Q+a));for(h=Number(h||0);h<a;h++)this[h]=v;return this}});
var QF=function(D){return D?D:Array.prototype.fill};
tL("Int8Array.prototype.fill",QF);tL("Uint8Array.prototype.fill",QF);tL("Uint8ClampedArray.prototype.fill",QF);tL("Int16Array.prototype.fill",QF);tL("Uint16Array.prototype.fill",QF);tL("Int32Array.prototype.fill",QF);tL("Uint32Array.prototype.fill",QF);tL("Float32Array.prototype.fill",QF);tL("Float64Array.prototype.fill",QF);
tL("Object.fromEntries",function(D){return D?D:function(v){var h={};if(!(Symbol.iterator in v))throw new TypeError("v`"+v);v=v[Symbol.iterator].call(v);for(var a=v.next();!a.done;a=v.next()){a=a.value;if(Object(a)!==a)throw new TypeError("w");h[a[0]]=a[1]}return h}});
tL("String.prototype.replaceAll",function(D){return D?D:function(v,h){if(v instanceof RegExp&&!v.global)throw new TypeError("x");return v instanceof RegExp?this.replace(v,h):this.replace(new RegExp(String(v).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),h)}});
tL("Object.getOwnPropertySymbols",function(D){return D?D:function(){return[]}});
tL("String.prototype.repeat",function(D){return D?D:function(v){var h=$7(this,null,"repeat");if(v<0||v>1342177279)throw new RangeError("y");v|=0;for(var a="";v;)if(v&1&&(a+=h),v>>>=1)h+=h;return a}});
tL("Array.prototype.findIndex",function(D){return D?D:function(v,h){return zac(this,v,h).i}});
tL("Array.prototype.flatMap",function(D){return D?D:function(v,h){var a=[];Array.prototype.forEach.call(this,function(Q,G){Q=v.call(h,Q,G,this);Array.isArray(Q)?a.push.apply(a,Q):a.push(Q)});
return a}});
tL("String.prototype.codePointAt",function(D){return D?D:function(v){var h=$7(this,null,"codePointAt"),a=h.length;v=Number(v)||0;if(v>=0&&v<a){v|=0;var Q=h.charCodeAt(v);if(Q<55296||Q>56319||v+1===a)return Q;v=h.charCodeAt(v+1);return v<56320||v>57343?Q:(Q-55296)*1024+v+9216}}});
tL("String.fromCodePoint",function(D){return D?D:function(v){for(var h="",a=0;a<arguments.length;a++){var Q=Number(arguments[a]);if(Q<0||Q>1114111||Q!==Math.floor(Q))throw new RangeError("z`"+Q);Q<=65535?h+=String.fromCharCode(Q):(Q-=65536,h+=String.fromCharCode(Q>>>10&1023|55296),h+=String.fromCharCode(Q&1023|56320))}return h}});
tL("String.prototype.trimLeft",function(D){function v(){return this.replace(/^[\s\xa0]+/,"")}
return D||v});
tL("String.prototype.trimStart",function(D){return D||String.prototype.trimLeft});
tL("String.prototype.padStart",function(D){return D?D:function(v,h){var a=$7(this,null,"padStart");v-=a.length;h=h!==void 0?String(h):" ";return(v>0&&h?h.repeat(Math.ceil(v/h.length)).substring(0,v):"")+a}});
tL("Promise.prototype.finally",function(D){return D?D:function(v){return this.then(function(h){return Promise.resolve(v()).then(function(){return h})},function(h){return Promise.resolve(v()).then(function(){throw h;
})})}});
tL("Math.imul",function(D){return D?D:function(v,h){v=Number(v);h=Number(h);var a=v&65535,Q=h&65535;return a*Q+((v>>>16&65535)*Q+a*(h>>>16&65535)<<16>>>0)|0}});
tL("Object.hasOwn",function(D){return D?D:function(v,h){return Object.prototype.hasOwnProperty.call(v,h)}});
tL("Math.sign",function(D){return D?D:function(v){v=Number(v);return v===0||isNaN(v)?v:v>0?1:-1}});
tL("Array.prototype.flat",function(D){return D?D:function(v){v=v===void 0?1:v;var h=[];Array.prototype.forEach.call(this,function(a){Array.isArray(a)&&v>0?(a=Array.prototype.flat.call(a,v-1),h.push.apply(h,a)):h.push(a)});
return h}});
tL("String.raw",function(D){return D?D:function(v,h){v=Q2c(v);for(var a=v.raw,Q=a.length,G="",x=0;x<Q;++x)G+=a[x],x+1<Q&&x+1<arguments.length&&(G+=String(arguments[x+1]));return G}});
tL("Reflect.ownKeys",function(D){return D?D:function(v){var h=[],a=Object.getOwnPropertyNames(v);v=Object.getOwnPropertySymbols(v);for(var Q=0;Q<a.length;Q++)(a[Q].substring(0,14)=="jscomp_symbol_"?v:h).push(a[Q]);return h.concat(v)}});
tL("Object.getOwnPropertyDescriptors",function(D){return D?D:function(v){for(var h={},a=Reflect.ownKeys(v),Q=0;Q<a.length;Q++)h[a[Q]]=Object.getOwnPropertyDescriptor(v,a[Q]);return h}});
tL("WeakSet",function(D){if(function(){if(!D||!Object.seal)return!1;try{var h=Object.seal({}),a=Object.seal({}),Q=new D([h]);if(!Q.has(h)||Q.has(a))return!1;Q.delete(h);Q.add(a);return!Q.has(h)&&Q.has(a)}catch(G){return!1}}())return D;
var v=function(h){this.JSC$8791_map_=new WeakMap;if(h){h=_.P(h);for(var a;!(a=h.next()).done;)this.add(a.value)}};
v.prototype.add=function(h){this.JSC$8791_map_.set(h,!0);return this};
v.prototype.has=function(h){return this.JSC$8791_map_.has(h)};
v.prototype.delete=function(h){return this.JSC$8791_map_.delete(h)};
return v});
tL("Promise.allSettled",function(D){function v(a){return{status:"fulfilled",value:a}}
function h(a){return{status:"rejected",reason:a}}
return D?D:function(a){var Q=this;a=Array.from(a,function(G){return Q.resolve(G).then(v,h)});
return Q.all(a)}});
tL("Number.parseInt",function(D){return D||parseInt});
_._DumpException=window._DumpException||function(D){throw D;};
window._DumpException=_._DumpException;var Laq=window.ytcsi;Laq&&typeof Laq.tick==="function"&&Laq.tick("rses_dpj");var Zu7,Gw,VF,PD,Ehi,IHc,ghA,kVf,Ar,SJA;Zu7=Zu7||{};_.$L=this||self;_.Gm=function(D,v,h){D=D.split(".");h=h||_.$L;for(var a;D.length&&(a=D.shift());)D.length||v===void 0?h[a]&&h[a]!==Object.prototype[a]?h=h[a]:h=h[a]={}:h[a]=v};
Gw=function(D,v){var h=_.T3("WIZ_global_data.oxN3nb");D=h&&h[D];return D!=null?D:v};
VF=_.$L._F_toggles_default_kevlar_base||[];PD=function(){};
PD.get=function(){return null};
_.W28=null;_.T3=function(D,v){D=D.split(".");v=v||_.$L;for(var h=0;h<D.length;h++)if(v=v[D[h]],v==null)return null;return v};
_.x7=function(D){D.instance_=void 0;D.getInstance=function(){return D.instance_?D.instance_:D.instance_=new D}};
_.us=function(D){var v=typeof D;return v!="object"?v:D?Array.isArray(D)?"array":v:"null"};
_.O8=function(D){var v=_.us(D);return v=="array"||v=="object"&&typeof D.length=="number"};
_.Ro=function(D){var v=typeof D;return v=="object"&&D!=null||v=="function"};
_.iq=function(D){return Object.prototype.hasOwnProperty.call(D,Ehi)&&D[Ehi]||(D[Ehi]=++IHc)};
Ehi="closure_uid_"+(Math.random()*1E9>>>0);IHc=0;ghA=function(D,v,h){return D.call.apply(D.bind,arguments)};
kVf=function(D,v,h){if(!D)throw Error();if(arguments.length>2){var a=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,a);return D.apply(v,Q)}}return function(){return D.apply(v,arguments)}};
_.qp=function(D,v,h){_.qp=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ghA:kVf;return _.qp.apply(null,arguments)};
_.NF=function(D,v){var h=Array.prototype.slice.call(arguments,1);return function(){var a=h.slice();a.push.apply(a,arguments);return D.apply(this,a)}};
_.M6=function(){return Date.now()};
Ar=function(D){return D};
_.fa=function(D,v){function h(){}
h.prototype=v.prototype;D.superClass_=v.prototype;D.prototype=new h;D.prototype.constructor=D;D.base=function(a,Q,G){for(var x=Array(arguments.length-2),f=2;f<arguments.length;f++)x[f-2]=arguments[f];return v.prototype[Q].apply(a,x)}};
SJA=function(D){return D};var JZc,p6i;_.e=function(D,v,h,a){var Q=arguments.length,G=Q<3?v:a===null?a=Object.getOwnPropertyDescriptor(v,h):a,x;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(D,v,h,a);else for(var f=D.length-1;f>=0;f--)if(x=D[f])G=(Q<3?x(G):Q>3?x(v,h,G):x(v,h))||G;Q>3&&G&&Object.defineProperty(v,h,G)};
_.n=function(D,v){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(D,v)};
JZc=function(D,v){if(v!==null&&v!==void 0){if(typeof v!=="object"&&typeof v!=="function")throw new TypeError("A");if(h===void 0){if(!Symbol.dispose)throw new TypeError("C");var h=v[Symbol.dispose]}if(typeof h!=="function")throw new TypeError("D");D.stack.push({value:v,dispose:h,async:!1})}return v};
p6i=function(D){function v(G){D.error=D.hasError?new SuppressedError(G,D.error,"An error was suppressed during disposal."):G;D.hasError=!0}
function h(){for(;a=D.stack.pop();)try{if(!a.async&&Q===1)return Q=0,D.stack.push(a),Promise.resolve().then(h);if(a.dispose){var G=a.dispose.call(a.value);if(a.async)return Q|=2,Promise.resolve(G).then(h,function(x){v(x);return h()})}else Q|=1}catch(x){v(x)}if(Q===1)return D.hasError?Promise.reject(D.error):Promise.resolve();
if(D.hasError)throw D.error;}
var a,Q=0;h()};var lHf="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(" ");DrA()&&lHf.push("details:not(:has(summary))");var hic=lHf.join(",");_.fa(_.hc,Error);_.hc.prototype.name="CustomError";var N_f;var YJu=void 0,B_o,cZI=typeof TextDecoder!=="undefined",f4L,M2I=typeof String.prototype.isWellFormed==="function",xr7=typeof TextEncoder!=="undefined";var X6i;_.X6=function(D){for(var v=[],h=0,a=0;a<D.length;a++){var Q=D.charCodeAt(a);Q<128?v[h++]=Q:(Q<2048?v[h++]=Q>>6|192:((Q&64512)==55296&&a+1<D.length&&(D.charCodeAt(a+1)&64512)==56320?(Q=65536+((Q&1023)<<10)+(D.charCodeAt(++a)&1023),v[h++]=Q>>18|240,v[h++]=Q>>12&63|128):v[h++]=Q>>12|224,v[h++]=Q>>6&63|128),v[h++]=Q&63|128)}return v};
X6i=function(D){for(var v=[],h=0,a=0;h<D.length;){var Q=D[h++];if(Q<128)v[a++]=String.fromCharCode(Q);else if(Q>191&&Q<224){var G=D[h++];v[a++]=String.fromCharCode((Q&31)<<6|G&63)}else if(Q>239&&Q<365){G=D[h++];var x=D[h++],f=D[h++];Q=((Q&7)<<18|(G&63)<<12|(x&63)<<6|f&63)-65536;v[a++]=String.fromCharCode(55296+(Q>>10));v[a++]=String.fromCharCode(56320+(Q&1023))}else G=D[h++],x=D[h++],v[a++]=String.fromCharCode((Q&15)<<12|(G&63)<<6|x&63)}return v.join("")};var zu=String.prototype.trim?function(D){return D.trim()}:function(D){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(D)[1]},AZA=/&/g,qJL=/</g,buO=/>/g,dTq=/"/g,j2A=/'/g,s28=/\x00/g,mTo=/[\x00&<>"']/;var Ca=!!(VF[0]>>15&1),Huu=!!(VF[0]&1024),yZf=!!(VF[0]>>16&1),w67=!!(VF[0]&8),ea2=!!(VF[0]&2),nh2=!!(VF[0]&4),Ouc=!!(VF[0]&16),KaL=!!(VF[0]&128);var T_o=Gw(1,!0),Io=Ca?yZf:Gw(610401301,!1),RaI=Ca?w67:Gw(772657768,!1),iuu=Ca?ea2:Gw(513659523,!1),Wa8=Ca?Huu||!nh2:Gw(568333945,!0),CAu=Ca?Ouc:Gw(1331761403,!1),Ib7=Ca?Huu||!KaL:Gw(748402147,T_o);var Jc,tro=_.$L.navigator;Jc=tro?tro.userAgentData||null:null;var DM;_.yO=function(D,v){return Array.prototype.indexOf.call(D,v,void 0)};
_.rM=function(D,v,h){Array.prototype.forEach.call(D,v,h)};
_.op=function(D,v,h){return Array.prototype.filter.call(D,v,h)};
_.mO=function(D,v,h){return Array.prototype.map.call(D,v,h)};
DM=function(D,v,h){return Array.prototype.some.call(D,v,h)};
_.ebc=function(D,v,h){return Array.prototype.every.call(D,v,h)};var Ft=function(D){Ft[" "](D);return D};
Ft[" "]=function(){};
var bT8=function(D,v){try{return Ft(D[v]),!0}catch(h){}return!1},Nau=function(D,v,h,a){a=a?a(v):v;
return Object.prototype.hasOwnProperty.call(D,a)?D[a]:D[a]=h(v)};var rZf,$z,uGu,DZo,hHI,avA,qZ7,$Zi,QJ8,GM7,nj4,P_c,xZO,o1O,F$q,zHc;_.ncO=function(){return _.$L.navigator||null};
rZf=zio();_.zw=Ur8();$z=lq("Edge");uGu=$z||_.zw;_.U1=lq("Gecko")&&!(_.Ff(_.E8(),"WebKit")&&!lq("Edge"))&&!(lq("Trident")||lq("MSIE"))&&!lq("Edge");_.La=_.Ff(_.E8(),"WebKit")&&!lq("Edge");DZo=_.La&&lq("Mobile");_.v1I=_.pA7();hHI=_.l4O();avA=(Ac()?Jc.platform==="Linux":lq("Linux"))||_.Nci();qZ7=_.S8r();$Zi=Jcu();QJ8=lq("iPad");GM7=lq("iPod");_.VzI=_.qr();nj4=_.Ff(_.E8(),"KaiOS");P_c=function(){var D=_.$L.document;return D?D.documentMode:void 0};
a:{var Mzc="",fvc=function(){var D=_.E8();if(_.U1)return/rv:([^\);]+)(\)|;)/.exec(D);if($z)return/Edge\/([\d\.]+)/.exec(D);if(_.zw)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(D);if(_.La)return/WebKit\/(\S+)/.exec(D);if(rZf)return/(?:Version)[ \/]?(\S+)/.exec(D)}();
fvc&&(Mzc=fvc?fvc[1]:"");if(_.zw){var C_4=P_c();if(C_4!=null&&C_4>parseFloat(Mzc)){xZO=String(C_4);break a}}xZO=Mzc}o1O=xZO;F$q={};_.ZK=function(D){return Nau(F$q,D,function(){return _.U8(o1O,D)>=0})};
if(_.$L.document&&_.zw){var UZo=P_c();zHc=UZo?UZo:parseInt(o1O,10)||void 0}else zHc=void 0;_.L$L=zHc;var nZf,OGq,ZRq;_.E1=BA();nZf=Jcu()||lq("iPod");OGq=lq("iPad");ZRq=_.ELf();_.Ip=_.cA();_.Oz=_.Z72()&&!_.qr();var E1O,gY,uxo,n$i,g14,Ivf;E1O={};gY=null;uxo=_.U1||_.La||typeof _.$L.btoa=="function";_.dr=function(D,v){v===void 0&&(v=0);Ivf();v=E1O[v];for(var h=Array(Math.floor(D.length/3)),a=v[64]||"",Q=0,G=0;Q<D.length-2;Q+=3){var x=D[Q],f=D[Q+1],C=D[Q+2],U=v[x>>2];x=v[(x&3)<<4|f>>4];f=v[(f&15)<<2|C>>6];C=v[C&63];h[G++]=U+x+f+C}U=0;C=a;switch(D.length-Q){case 2:U=D[Q+1],C=v[(U&15)<<2]||a;case 1:D=D[Q],h[G]=v[D>>2]+v[(D&3)<<4|U>>4]+C+a}return h.join("")};
n$i=function(D){var v="";g14(D,function(h){v+=String.fromCharCode(h)});
return v};
_.Cg7=function(D){var v=[];g14(D,function(h){v.push(h)});
return v};
_.DJ=function(D){var v=D.length,h=v*3/4;h%3?h=Math.floor(h):_.oo("=.",D[v-1])&&(h=_.oo("=.",D[v-2])?h-2:h-1);var a=new Uint8Array(h),Q=0;g14(D,function(G){a[Q++]=G});
return Q!==h?a.subarray(0,Q):a};
g14=function(D,v){function h(C){for(;a<D.length;){var U=D.charAt(a++),L=gY[U];if(L!=null)return L;if(!_.C7(U))throw Error("H`"+U);}return C}
Ivf();for(var a=0;;){var Q=h(-1),G=h(0),x=h(64),f=h(64);if(f===64&&Q===-1)break;v(Q<<2|G>>4);x!=64&&(v(G<<4&240|x>>2),f!=64&&v(x<<6&192|f))}};
Ivf=function(){if(!gY){gY={};for(var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),v=["+/=","+/","-_=","-_.","-_"],h=0;h<5;h++){var a=D.concat(v[h].split(""));E1O[h]=a;for(var Q=0;Q<a.length;Q++){var G=a[Q];gY[G]===void 0&&(gY[G]=Q)}}}};var ufi=typeof Uint8Array!=="undefined",wAr=!_.zw&&typeof btoa==="function",ei7=/[-_.]/g,H7O={"-":"+",_:"/",".":"="},p4={};var St,Smi;St=function(D,v){if(v!==p4)throw Error("J");this.JSC$8825_value_=D;if(D!=null&&D.length===0)throw Error("I");};
_.ls=function(){return kMi||(kMi=new St(null,p4))};
Smi=function(D){return new Uint8Array(nC8(D)||0)};
St.prototype.isEmpty=function(){return this.JSC$8825_value_==null};
St.prototype.sizeBytes=function(){var D=nC8(this);return D?D.length:0};
var nC8=function(D){if(p4!==p4)throw Error("J");var v=D.JSC$8825_value_;v==null||ufi&&v!=null&&v instanceof Uint8Array||(typeof v==="string"?v=nLc(v):(_.us(v),v=null));return v==null?v:D.JSC$8825_value_=v},kMi;var KI4=void 0;var Gy=typeof Symbol==="function"&&typeof Symbol()==="symbol",J5u=Q$("jas",void 0,!0),yb8=Q$(void 0,"0di"),$o=Q$(void 0,"1oa"),qI=Q$(void 0,Symbol()),abI=Q$(void 0,"0ub"),QUA=Q$(void 0,"0ubs"),lfL=Q$(void 0,"0ubsb"),kd2=Q$(void 0,"0actk"),lS=Q$("m_m","messagePrototypeMarker",!0),zZO=Q$(void 0,"vps"),DI4=Q$();var i7o,Ri2,iS,p58;i7o={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Ri2=Object.defineProperties;_.V$=Gy?J5u:"internalArrayState";p58=[];xp(p58,7);iS=Object.freeze(p58);var Bs={},C4={},lv8=function(D,v,h){this.iterable=D;this.mapper=v;this.thisArg=h};
lv8.prototype.next=function(){var D=this.iterable.next();D.done||(D.value=this.mapper.call(this.thisArg,D.value));return D};
lv8.prototype[Symbol.iterator]=function(){return this};
var NBf=Object.freeze({}),Bm={};_.Ymo=X9(function(D){return D!==null&&D!==void 0});var Q4c=X9(function(D){return typeof D==="number"}),$1o=X9(function(D){return typeof D==="string"}),Vtr=X9(function(D){return typeof D==="boolean"}),BB7=X9(function(D){return D!=null&&typeof D==="object"&&typeof D.then==="function"}),sZq=X9(function(D){return typeof D==="function"}),fV=X9(function(D){return!!D&&(typeof D==="object"||typeof D==="function")});var Gy7=typeof _.$L.BigInt==="function"&&typeof _.$L.BigInt(0)==="bigint";var b47=X9(function(D){return Gy7?D>=c5A&&D<=X5f:D[0]==="-"?Psi(D,A5q):Psi(D,qmO)}),A5q=Number.MIN_SAFE_INTEGER.toString(),c5A=Gy7?BigInt(Number.MIN_SAFE_INTEGER):void 0,qmO=Number.MAX_SAFE_INTEGER.toString(),X5f=Gy7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var bR8=typeof Uint8Array.prototype.slice==="function",bs=0,mR=0,fJ2;var MI,zd,Db,FX,IJ2;MI=typeof BigInt==="function"?BigInt.asIntN:void 0;_.L3=typeof BigInt==="function"?BigInt.asUintN:void 0;zd=Number.isSafeInteger;Db=Number.isFinite;FX=Math.trunc;IJ2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var UIA={};var tt8={},dZ4=function(){try{var D=function(){return DTL(Map,[],this.constructor)};
_.J(D,Map);Ft(new D);return!1}catch(v){return!0}}(),k7=function(){this.JSC$8844_map_=new Map};
_.V=k7.prototype;_.V.get=function(D){return this.JSC$8844_map_.get(D)};
_.V.set=function(D,v){this.JSC$8844_map_.set(D,v);this.size=this.JSC$8844_map_.size;return this};
_.V.delete=function(D){D=this.JSC$8844_map_.delete(D);this.size=this.JSC$8844_map_.size;return D};
_.V.clear=function(){this.JSC$8844_map_.clear();this.size=this.JSC$8844_map_.size};
_.V.has=function(D){return this.JSC$8844_map_.has(D)};
_.V.entries=function(){return this.JSC$8844_map_.entries()};
_.V.keys=function(){return this.JSC$8844_map_.keys()};
_.V.values=function(){return this.JSC$8844_map_.values()};
_.V.forEach=function(D,v){return this.JSC$8844_map_.forEach(D,v)};
k7.prototype[Symbol.iterator]=function(){return this.entries()};
var mm=function(){if(dZ4)return Object.setPrototypeOf(k7.prototype,Map.prototype),Object.defineProperties(k7.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),k7;var D=function(){return DTL(Map,[],this.constructor)};
_.J(D,Map);return D}(),XX=function(D,v,h,a){h=h===void 0?KRo:h;
a=a===void 0?KRo:a;var Q=mm.call(this)||this;Q.arrayState=D[_.V$]|0;Q.valueCtor=v;Q.keyToApi=h;Q.valueToApi=Q.valueCtor?RMu:a;for(var G=0;G<D.length;G++){var x=D[G],f=h(x[0],!1,!0),C=x[1];v?C===void 0&&(C=null):C=a(x[1],!1,!0,void 0,void 0,Q.arrayState);mm.prototype.set.call(Q,f,C)}return Q};
_.J(XX,mm);var jJA=function(D){if(D.arrayState&2)throw Error("N");},psc=function(D){return Array.from(mm.prototype.entries.call(D))};
_.V=XX.prototype;_.V.clear=function(){jJA(this);mm.prototype.clear.call(this)};
_.V.delete=function(D){jJA(this);return mm.prototype.delete.call(this,this.keyToApi(D,!0,!1))};
_.V.entries=function(){if(this.valueCtor){var D=mm.prototype.keys.call(this);D=new lv8(D,i42,this)}else D=mm.prototype.entries.call(this);return D};
_.V.values=function(){if(this.valueCtor){var D=mm.prototype.keys.call(this);D=new lv8(D,XX.prototype.get,this)}else D=mm.prototype.values.call(this);return D};
_.V.forEach=function(D,v){this.valueCtor?mm.prototype.forEach.call(this,function(h,a,Q){D.call(v,Q.get(a),a,Q)}):mm.prototype.forEach.call(this,D,v)};
_.V.set=function(D,v){jJA(this);D=this.keyToApi(D,!0,!1);return D==null?this:v==null?(mm.prototype.delete.call(this,D),this):mm.prototype.set.call(this,D,this.valueToApi(v,!0,!0,this.valueCtor,!1,this.arrayState))};
_.V.has=function(D){return mm.prototype.has.call(this,this.keyToApi(D,!1,!1))};
_.V.get=function(D){D=this.keyToApi(D,!1,!1);var v=mm.prototype.get.call(this,D);if(v!==void 0){var h=this.valueCtor;return h?(h=this.valueToApi(v,!1,!0,h,this.callToMutableOnAccess,this.arrayState),h!==v&&mm.prototype.set.call(this,D,h),h):v}};
XX.prototype[Symbol.iterator]=function(){return this.entries()};
XX.prototype.toJSON=void 0;var WRq;var xIA=function(){},V$O=function(D,v){for(var h in D)!isNaN(h)&&v(D,+h,D[h])},M$A=function(D){var v=new xIA;
V$O(D,function(h,a,Q){v[a]=OF(Q)});
v.reviveUnknownFields=D.reviveUnknownFields;return v},vCI={reviveIntoImmutable:!0};var PSL;var Lmi,Z3c;var sJf,Df,gf,lD,mZu,cD,JX,HRc,y57,bT,w5I,dY,mv,HD;sJf=_.Ab(0);_.SI={};_.J8=function(D,v,h,a,Q){v=Df(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v,h,Q);if(v!==null||a&&D.noLegacyNull!==C4)return v};
Df=function(D,v,h,a){if(v===-1)return null;var Q=v+(h?0:-1),G=D.length-1;if(!(G<1+(h?0:-1))){if(Q>=G){var x=D[G];if(x!=null&&typeof x==="object"&&x.constructor===Object){h=x[v];var f=!0}else if(Q===G)h=x;else return}else h=D[Q];if(a&&h!=null){a=a(h);if(a==null)return a;if(!Object.is(a,h))return f?x[v]=a:D[Q]=a,a}return h}};
_.Fk=function(D,v,h,a){O2(D);var Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;RU(Q,Q[_.V$]|0,v,h,a);return D};
_.pa=function(D,v,h){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mIu(D,D[_.V$]|0,v,h)!==void 0};
_.lT=function(D,v,h,a){var Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mIu(Q,Q[_.V$]|0,v,lD(D,a,h))!==void 0};
_.f0=function(D){return D===NBf?2:4};
_.N6=function(D,v){D=_.J8(D,v,void 0,void 0,Aru);return D==null?_.ls():D};
gf=function(D,v,h,a){O2(D);var Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Q[_.V$]|0;if(a==null){var x=dIq(Q);if(jU2(x,Q,G,h)===v)x.set(h,0);else return D}else G=sUI(Q,G,h,v);RU(Q,G,v,a);return D};
_.Y7=function(D,v,h,a){var Q=D[_.V$]|0,G=cm(Q);Q=sUI(D,Q,h,v,G);RU(D,Q,v,a,G)};
lD=function(D,v,h){return _.BD(D,v)===h?h:-1};
_.BD=function(D,v){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jU2(dIq(D),D,void 0,v,void 0)};
mZu=function(D,v,h){var a=D[_.V$]|0,Q=cm(a),G=Df(D,h,Q);if(G!=null&&G[lS]===Bs){if(!UF(G))return n3(G),G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var x=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(G)&&(x=G);if(x){var f=x[_.V$]|0;f&2&&(x=e$(x,f))}x=wr(x,v,!0);x!==G&&RU(D,a,h,x,Q);return x};
_.CL=function(D,v,h,a){var Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Q[_.V$]|0;v=mIu(Q,G,v,h,a);if(v==null)return v;G=Q[_.V$]|0;if(!UF(D,G)){var x=TJu(v);x!==v&&(n3(D)&&(Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Q[_.V$]|0),v=x,G=RU(Q,G,h,v,a),K3(Q,G))}return v};
_.Mp=function(D,v,h,a){var Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return H3o(D,Q,Q[_.V$]|0,v,h,a,!1,!0)};
_.lH=function(D,v,h,a){h=yrf(h);_.Fk(D,v,h,a);h&&!UF(h)&&K3(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
_.Nf=function(D,v,h,a){a=yrf(a);gf(D,v,h,a);a&&!UF(a)&&K3(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
cD=function(D,v,h){O2(D);var a=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=a[_.V$]|0;if(h==null)return RU(a,Q,v),D;for(var G=h===iS?7:h[_.V$]|0,x=G,f=uS(G),C=f||Object.isFrozen(h),U=!0,L=!0,Z=0;Z<h.length;Z++){var E=h[Z];f||(E=UF(E),U&&(U=!E),L&&(L=E))}f||(G=U?13:5,G=L?G&-4097:G|4096);C&&G===x||(h=OF(h),x=0,G=Ws(G,Q));G!==x&&xp(h,G);Q=RU(a,Q,v,h);2&G||!(4096&G||16&G)||K3(a,Q);return D};
JX=function(D,v,h,a){eZ7(D,v,h,a);return D};
HRc=function(D,v,h){eZ7(D,v,Xt,void 0,h,1,!0);return D};
_.A8=function(D,v,h){D=_.J8(D,v,void 0,h);v=typeof D;D=D==null?D:v==="bigint"?_.Ab((0,_.L3)(64,D)):_.vs(D)?v==="string"?_.qFr(D):_.Xm7(D):void 0;return D};
_.q6=function(D,v){var h=h===void 0?!1:h;var a;return(a=_.Epi(_.J8(D,v)))!=null?a:h};
_.C0=function(D,v,h){h=h===void 0?0:h;var a;return(a=_.Gd(_.J8(D,v)))!=null?a:h};
y57=function(D,v){var h=h===void 0?0:h;D=_.ky2(_.J8(D,v));return D!=null?D:h};
bT=function(D,v,h){h=h===void 0?sJf:h;var a;return(a=_.s47(_.J8(D,v)))!=null?a:h};
w5I=function(D){var v=v===void 0?sJf:v;var h;return(h=_.A8(D,23))!=null?h:v};
dY=function(D,v){var h=h===void 0?0:h;var a;return(a=_.J8(D,v,void 0,void 0,_.is))!=null?a:h};
_.jI=function(D,v,h,a){h=h===void 0?"":h;var Q;return(Q=_.p3(_.J8(D,v,a)))!=null?Q:h};
_.s1=function(D,v){var h=h===void 0?0:h;var a;return(a=_.$C(_.J8(D,v)))!=null?a:h};
mv=function(D,v){var h=h===void 0?"0":h;D=j4A(_.J8(D,v),!0);return D!=null?D:h};
HD=function(D,v,h){return _.jI(D,lD(D,h,v))};
_.yF=function(D,v,h,a){return _.CL(D,v,lD(D,a,h),void 0)};
_.p0=function(D,v){return _.p3(_.J8(D,v,void 0,_.SI))};
_.UN=function(D,v,h){return _.Fk(D,v,Z4q(h))};
_.si=function(D,v,h){return _.h3(D,v,Z4q(h),!1)};
_.wY=function(D,v,h){return _.Fk(D,v,_.QK(h))};
_.Y_=function(D,v,h){return _.Fk(D,v,oU(h))};
_.Xx=function(D,v,h){return _.Fk(D,v,Jr(h))};
_.WO=function(D,v,h,a){return _.h3(D,v,Jr(h),"",a)};
_.oe=function(D,v,h){return _.Fk(D,v,h==null?h:_.hr(h))};
_.eI=function(D,v,h){return _.h3(D,v,h==null?h:_.hr(h),0)};var Qw=function(D,v,h){this.buffer=D;if(h&&!v)throw Error();this.JSC$8856_isImmutable=v};var eHf=function(D,v,h,a){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8859_start_=0;this.init(D,v,h,a)},na,OR2,K$O,TBq,RHc,iRA,zB7,n1A;
_.V=eHf.prototype;_.V.init=function(D,v,h,a){var Q=a===void 0?{}:a;a=Q.aliasBytesFields===void 0?!1:Q.aliasBytesFields;Q=Q.treatNewDataAsImmutable===void 0?!1:Q.treatNewDataAsImmutable;this.aliasBytesFields=a;this.treatNewDataAsImmutable=Q;D&&(D=O3i(D,this.treatNewDataAsImmutable),this.bytes_=D.buffer,this.bytesAreImmutable_=D.JSC$8856_isImmutable,this.JSC$8859_start_=v||0,this.end_=h!==void 0?this.JSC$8859_start_+h:this.bytes_.length,this.cursor_=this.JSC$8859_start_)};
_.V.free=function(){this.clear();n1A.length<100&&n1A.push(this)};
_.V.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8859_start_=0;this.aliasBytesFields=!1};
_.V.reset=function(){this.cursor_=this.JSC$8859_start_};
_.V.atEnd=function(){return this.cursor_==this.end_};
_.O1=function(D,v){var h=0,a=0,Q=0,G=D.bytes_,x=D.cursor_;do{var f=G[x++];h|=(f&127)<<Q;Q+=7}while(Q<32&&f&128);if(Q>32)for(a|=(f&127)>>4,Q=3;Q<32&&f&128;Q+=7)f=G[x++],a|=(f&127)<<Q;na(D,x);if(!(f&128))return v(h>>>0,a>>>0);throw Error();};
na=function(D,v){D.cursor_=v;if(v>D.end_)throw Error();};
_.Ka=function(D){var v=D.bytes_,h=D.cursor_,a=v[h++],Q=a&127;if(a&128&&(a=v[h++],Q|=(a&127)<<7,a&128&&(a=v[h++],Q|=(a&127)<<14,a&128&&(a=v[h++],Q|=(a&127)<<21,a&128&&(a=v[h++],Q|=a<<28,a&128&&v[h++]&128&&v[h++]&128&&v[h++]&128&&v[h++]&128&&v[h++]&128)))))throw Error();na(D,h);return Q};
_.Tw=function(D){var v=D.bytes_,h=D.cursor_,a=v[h],Q=v[h+1],G=v[h+2];v=v[h+3];na(D,D.cursor_+4);return(a<<0|Q<<8|G<<16|v<<24)>>>0};
OR2=function(D){var v=_.Tw(D);D=_.Tw(D);return op2(v,D)};
K$O=function(D){var v=_.Tw(D);D=(v>>31)*2+1;var h=v>>>23&255;v&=8388607;return h==255?v?NaN:D*Infinity:h==0?D*1.401298464324817E-45*v:D*Math.pow(2,h-150)*(v+8388608)};
TBq=function(D){var v=_.Tw(D),h=_.Tw(D);D=(h>>31)*2+1;var a=h>>>20&2047;v=4294967296*(h&1048575)+v;return a==2047?v?NaN:D*Infinity:a==0?D*4.9E-324*v:D*Math.pow(2,a-1075)*(v+4503599627370496)};
RHc=function(D){for(var v=0,h=D.cursor_,a=h+10,Q=D.bytes_;h<a;){var G=Q[h++];v|=G;if((G&128)===0)return na(D,h),!!(v&127)}throw Error();};
iRA=function(D,v){if(v<0)throw Error();var h=D.cursor_;v=h+v;if(v>D.end_)throw Error();D.cursor_=v;return h};
zB7=function(D,v){if(v==0)return _.ls();var h=iRA(D,v);D.aliasBytesFields&&D.bytesAreImmutable_?h=D.bytes_.subarray(h,h+v):(D=D.bytes_,v=h+v,h=h===v?new Uint8Array(0):bR8?D.slice(h,v):new Uint8Array(D.subarray(h,v)));return h.length==0?_.ls():new St(h,p4)};
n1A=[];var tz7=function(D,v,h,a){if(n1A.length){var Q=n1A.pop();Q.init(D,v,h,a);D=Q}else D=new eHf(D,v,h,a);this.decoder_=D;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;W$O(this,a)},W$O=function(D,v){v=v===void 0?{}:v;
D.discardUnknownFields=v.discardUnknownFields===void 0?!1:v.discardUnknownFields},Zzr=function(D,v,h,a){if(r5q.length){var Q=r5q.pop();
W$O(Q,a);Q.decoder_.init(D,v,h,a);return Q}return new tz7(D,v,h,a)},CHf,FM8,Rp,u4u,r5q;
tz7.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;r5q.length<100&&r5q.push(this)};
tz7.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
CHf=function(D){if(D.decoder_.atEnd())return!1;D.fieldCursor_=D.decoder_.cursor_;var v=_.Ka(D.decoder_)>>>0,h=v>>>3;v&=7;if(!(v>=0&&v<=5))throw Error();if(h<1)throw Error();D.nextField_=h;D.nextWireType_=v;return!0};
FM8=function(D){switch(D.nextWireType_){case 0:D.nextWireType_!=0?FM8(D):RHc(D.decoder_);break;case 1:D=D.decoder_;na(D,D.cursor_+8);break;case 2:if(D.nextWireType_!=2)FM8(D);else{var v=_.Ka(D.decoder_)>>>0;D=D.decoder_;na(D,D.cursor_+v)}break;case 5:D=D.decoder_;na(D,D.cursor_+4);break;case 3:v=D.nextField_;do{if(!CHf(D))throw Error();if(D.nextWireType_==4){if(D.nextField_!=v)throw Error();break}FM8(D)}while(1);break;default:throw Error();}};
Rp=function(D,v,h){var a=D.decoder_.end_,Q=_.Ka(D.decoder_)>>>0;Q=D.decoder_.cursor_+Q;var G=Q-a;G<=0&&(D.decoder_.end_=Q,h(v,D,void 0,void 0,void 0),G=Q-D.decoder_.cursor_);if(G)throw Error();D.decoder_.cursor_=Q;D.decoder_.end_=a;return v};
u4u=function(D){var v=_.Ka(D.decoder_)>>>0;D=D.decoder_;var h=iRA(D,v);D=D.bytes_;if(cZI){var a=D,Q;(Q=B_o)||(Q=B_o=new TextDecoder("utf-8",{fatal:!0}));v=h+v;a=h===0&&v===a.length?a:a.subarray(h,v);try{var G=Q.decode(a)}catch(U){if(YJu===void 0){try{Q.decode(new Uint8Array([128]))}catch(L){}try{Q.decode(new Uint8Array([97])),YJu=!0}catch(L){YJu=!1}}!YJu&&(B_o=void 0);throw U;}}else{G=h;v=G+v;h=[];for(var x=null,f,C;G<v;)f=D[G++],f<128?h.push(f):f<224?G>=v?ao():(C=D[G++],f<194||(C&192)!==128?(G--,
ao()):h.push((f&31)<<6|C&63)):f<240?G>=v-1?ao():(C=D[G++],(C&192)!==128||f===224&&C<160||f===237&&C>=160||((Q=D[G++])&192)!==128?(G--,ao()):h.push((f&15)<<12|(C&63)<<6|Q&63)):f<=244?G>=v-2?ao():(C=D[G++],(C&192)!==128||(f<<28)+(C-144)>>30!==0||((Q=D[G++])&192)!==128||((a=D[G++])&192)!==128?(G--,ao()):(f=(f&7)<<18|(C&63)<<12|(Q&63)<<6|a&63,f-=65536,h.push((f>>10&1023)+55296,(f&1023)+56320))):ao(),h.length>=8192&&(x=Pqf(x,h),h.length=0);G=Pqf(x,h)}return G};
_.D7r=function(D){var v=_.Ka(D.decoder_)>>>0;return zB7(D.decoder_,v)};
_.vAO=function(D,v,h){var a=_.Ka(D.decoder_)>>>0;for(a=D.decoder_.cursor_+a;D.decoder_.cursor_<a;)h.push(v(D.decoder_))};
r5q=[];var hEI=function(D,v){this.JSC$8866_lo=D>>>0;this.JSC$8866_hi=v>>>0},a9c=function(D){D=BigInt.asUintN(64,D);
return new hEI(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)))},RZf=function(D){if(!D)return $7r||($7r=new hEI(0,0));
if(!/^\d+$/.test(D))return null;n4(D);return new hEI(bs,mR)},$7r,XdL=function(D,v){this.JSC$8868_lo=D>>>0;
this.JSC$8868_hi=v>>>0},Km4=function(D){if(!D)return QsI||(QsI=new XdL(0,0));
if(!/^-?\d+$/.test(D))return null;n4(D);return new XdL(bs,mR)},QsI;var iT=function(){this.JSC$8870_buffer_=[]},UQ,Zf,G24;
iT.prototype.length=function(){return this.JSC$8870_buffer_.length};
iT.prototype.end=function(){var D=this.JSC$8870_buffer_;this.JSC$8870_buffer_=[];return D};
UQ=function(D,v,h){for(;h>0||v>127;)D.JSC$8870_buffer_.push(v&127|128),v=(v>>>7|h<<25)>>>0,h>>>=7;D.JSC$8870_buffer_.push(v)};
Zf=function(D,v){for(;v>127;)D.JSC$8870_buffer_.push(v&127|128),v>>>=7;D.JSC$8870_buffer_.push(v)};
_.A3O=function(D,v){if(v>=0)Zf(D,v);else{for(var h=0;h<9;h++)D.JSC$8870_buffer_.push(v&127|128),v>>=7;D.JSC$8870_buffer_.push(1)}};
G24=function(D,v){n4(v);FRr(function(h,a){UQ(D,h>>>0,a>>>0)})};
iT.prototype.writeUint8=function(D){this.JSC$8870_buffer_.push(D>>>0&255)};
_.zK=function(D,v){D.JSC$8870_buffer_.push(v>>>0&255);D.JSC$8870_buffer_.push(v>>>8&255);D.JSC$8870_buffer_.push(v>>>16&255);D.JSC$8870_buffer_.push(v>>>24&255)};
iT.prototype.writeInt8=function(D){this.JSC$8870_buffer_.push(D>>>0&255)};var V02,Mf,bz7,smq,rrA;V02=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new iT};
Mf=function(D,v){v.length!==0&&(D.blocks_.push(v),D.totalLength_+=v.length)};
_.Pko=function(D,v){_.FY(D,v,2);v=D.encoder_.end();Mf(D,v);v.push(D.totalLength_);return v};
_.x77=function(D,v){var h=v.pop();for(h=D.totalLength_+D.encoder_.length()-h;h>127;)v.push(h&127|128),h>>>=7,D.totalLength_++;v.push(h);D.totalLength_++};
_.FY=function(D,v,h){Zf(D.encoder_,v*8+h)};
bz7=function(D,v,h){if(h!=null)switch(i3A(h),_.FY(D,v,1),typeof h){case "number":D=D.encoder_;x12(h);_.zK(D,bs);_.zK(D,mR);break;case "bigint":h=a9c(h);D=D.encoder_;v=h.JSC$8866_hi;_.zK(D,h.JSC$8866_lo);_.zK(D,v);break;default:h=RZf(h),D=D.encoder_,v=h.JSC$8866_hi,_.zK(D,h.JSC$8866_lo),_.zK(D,v)}};
smq=function(D,v,h){_.FY(D,v,2);Zf(D.encoder_,h.length);Mf(D,D.encoder_.end());Mf(D,h)};
rrA=function(D,v,h,a){h!=null&&(v=_.Pko(D,v),a(h,D),_.x77(D,v))};var WmI,M04,f9c,Ckq,oA7,zEu,U7I,Ziq,EAo;WmI=GK();M04=GK();f9c=GK();Ckq=GK();oA7=GK();_.FH8=GK();_.WD=GK();zEu=GK();U7I=GK();_.LHc=GK();Ziq=GK();EAo=GK();_.I9L=GK();_.gAr=GK();_.xo=function(D,v,h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,v,h)};
_.xo.prototype.toJSON=function(){return Hs(this)};
_.xo.prototype.serialize=function(D){return JSON.stringify(Hs(this,D))};
var T02=function(D,v){if(v==null||v=="")return new D;v=JSON.parse(v);if(!Array.isArray(v))throw Error("V");return new D(rcL(v))};
_.xo.prototype.getExtension=function(D){$Ii(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D.fieldIndex);hZc(this,D.fieldIndex);return D.ctor?D.isRepeated?D.getExtensionFn(this,D.ctor,D.fieldIndex,_.f0(),D.JSC$8881_hasMessageId):D.getExtensionFn(this,D.ctor,D.fieldIndex,D.JSC$8881_hasMessageId):D.isRepeated?D.getExtensionFn(this,D.fieldIndex,_.f0(),D.JSC$8881_hasMessageId):D.getExtensionFn(this,D.fieldIndex,D.defaultValue,D.JSC$8881_hasMessageId)};
_.xo.prototype.clone=function(){var D=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=D[_.V$]|0;return Y2I(this,D,v)?Nrf(this,D,!0):new this.constructor(e$(D,v,!1))};
_.xo.prototype[lS]=Bs;_.xo.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Vw=function(D,v,h){this.$$binaryReaderFn=D;this.$$binaryWriterFn=v;D=Ar(WmI);this.$$isMsg=!!D&&h===D||!1},$fc=t$u(function(D,v,h,a,Q){if(D.nextWireType_!==2)return!1;
Rp(D,mZu(v,a,h),Q);return!0},DfI),Qmi=t$u(function(D,v,h,a,Q){if(D.nextWireType_!==2)return!1;
Rp(D,mZu(v,a,h),Q);return!0},DfI),If2=Symbol(),PHO=Symbol(),ff2=Symbol(),SQi=Symbol(),UfA=Symbol(),voO,hBI;var noc,k28,t8,SgL,JGq,por,l9r,uT,NAL,DN,YgO,BA2,cGi,Xou,AGf,qg8,bi2,jsA,sso,m7o,Hi8;noc=function(D,v){var h=new V02;J3c(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h,Pd(If2,Eor,gof,v));Mf(h,h.encoder_.end());D=new Uint8Array(h.totalLength_);v=h.blocks_;for(var a=v.length,Q=0,G=0;G<a;G++){var x=v[G];D.set(x,Q);Q+=x.length}h.blocks_=[D];return D};
k28=t$u(function(D,v,h,a,Q){if(D.nextWireType_!==2)return!1;D=Rp(D,wr([void 0,void 0],a,!0),Q);D=OF(D);a=v[_.V$]|0;Q=cm(a);if(a&2)throw Error();var G=Df(v,h,Q);G instanceof XX?(G.arrayState&2)!=0?(G=psc(G),G.push(D),RU(v,a,h,G,Q)):(v=G,h=v.keyToApi(D[0],!1,!0),D=D[1],D=v.valueCtor?D===void 0?null:D:v.valueToApi(D,!1,!0,void 0,!1,v.arrayState),mm.prototype.set.call(v,h,D)):Array.isArray(G)?((G[_.V$]|0)&2&&(G=q2o(G),RU(v,a,h,G,Q)),G.push(D)):RU(v,a,h,[D],Q);return!0},function(D,v,h,a,Q){if(v instanceof
XX)v.forEach(function(f,C){rrA(D,h,wr([C,
f],a,!1),Q)});
else if(Array.isArray(v))for(var G=0;G<v.length;G++){var x=v[G];Array.isArray(x)&&rrA(D,h,wr(x,a,!1),Q)}});
t8=_.Cz(function(D,v,h){if(D.nextWireType_!==1)return!1;_.om(v,h,TBq(D.decoder_));return!0},B0O,EAo);
SgL=_.Cz(function(D,v,h,a){if(D.nextWireType_!==1)return!1;_.Y7(v,h,a,TBq(D.decoder_));return!0},B0O,EAo);
JGq=_.Cz(function(D,v,h){if(D.nextWireType_!==5)return!1;_.om(v,h,K$O(D.decoder_));return!0},c3f,Ziq);
por=_.YQO(function(D,v,h){if(D.nextWireType_!==5&&D.nextWireType_!==2)return!1;v=_.am(v,v[_.V$]|0,h);D.nextWireType_==2?_.vAO(D,K$O,v):v.push(K$O(D.decoder_));return!0},function(D,v,h){v=_.N0I(_.is,v,!0);
if(v!=null&&v.length)for(_.FY(D,h,2),Zf(D.encoder_,v.length*4),h=0;h<v.length;h++){var a=D.encoder_;Cso(v[h]);_.zK(a,bs)}},Ziq);
l9r=_.Cz(function(D,v,h,a){if(D.nextWireType_!==5)return!1;_.Y7(v,h,a,K$O(D.decoder_));return!0},c3f,Ziq);
_.rY=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,_.O1(D.decoder_,et));return!0},_.Lz,_.WD);
uT=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;D=_.O1(D.decoder_,et);_.om(v,h,D===0?void 0:D);return!0},_.Lz,_.WD);
NAL=_.Cz(function(D,v,h,a){if(D.nextWireType_!==0)return!1;_.Y7(v,h,a,_.O1(D.decoder_,et));return!0},_.Lz,_.WD);
DN=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,_.O1(D.decoder_,op2));return!0},function(D,v,h){v=H47(v);
if(v!=null&&(i3A(v),v!=null))switch(_.FY(D,h,0),typeof v){case "number":D=D.encoder_;y$(v);UQ(D,bs,mR);break;case "bigint":h=a9c(v);UQ(D.encoder_,h.JSC$8866_lo,h.JSC$8866_hi);break;default:h=RZf(v),UQ(D.encoder_,h.JSC$8866_lo,h.JSC$8866_hi)}},zEu);
_.vu=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,_.Ka(D.decoder_));return!0},qQO,Ckq);
YgO=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;D=_.Ka(D.decoder_);_.om(v,h,D===0?void 0:D);return!0},qQO,Ckq);
BA2=_.Cz(function(D,v,h,a){if(D.nextWireType_!==0)return!1;_.Y7(v,h,a,_.Ka(D.decoder_));return!0},qQO,Ckq);
cGi=_.Cz(function(D,v,h){if(D.nextWireType_!==1)return!1;_.om(v,h,OR2(D.decoder_));return!0},_.dfL,_.LHc);
Xou=_.YQO(function(D,v,h){if(D.nextWireType_!==1&&D.nextWireType_!==2)return!1;v=_.am(v,v[_.V$]|0,h);D.nextWireType_==2?_.vAO(D,OR2,v):v.push(OR2(D.decoder_));return!0},function(D,v,h){v=_.N0I(H47,v,!1);
if(v!=null)for(var a=0;a<v.length;a++)bz7(D,h,v[a])},_.LHc);
_.hy=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,RHc(D.decoder_));return!0},jmf,M04);
_.aH=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;D=RHc(D.decoder_);_.om(v,h,D===!1?void 0:D);return!0},jmf,M04);
AGf=_.Cz(function(D,v,h,a){if(D.nextWireType_!==0)return!1;_.Y7(v,h,a,RHc(D.decoder_));return!0},jmf,M04);
_.$a=_.Cz(function(D,v,h){if(D.nextWireType_!==2)return!1;_.om(v,h,u4u(D));return!0},mfI,f9c);
_.Qa=_.Cz(function(D,v,h){if(D.nextWireType_!==2)return!1;D=u4u(D);_.om(v,h,D===""?void 0:D);return!0},mfI,f9c);
_.G6=_.Cz(function(D,v,h,a){if(D.nextWireType_!==2)return!1;_.Y7(v,h,a,u4u(D));return!0},mfI,f9c);
qg8=_.YQO(function(D,v,h){if(D.nextWireType_!==2)return!1;D=u4u(D);_.am(v,v[_.V$]|0,h).push(D);return!0},function(D,v,h){v=_.N0I(_.p3,v,!0);
if(v!=null)for(var a=0;a<v.length;a++){var Q=D,G=h,x=v[a];x!=null&&smq(Q,G,Cqf(x))}},f9c);
bi2=void 0;bi2=bi2===void 0?WmI:bi2;_.Va=new Vw(function(D,v,h,a,Q){if(D.nextWireType_!==2)return!1;a=wr(void 0,a,!0);_.am(v,v[_.V$]|0,h).push(a);Rp(D,a,Q);return!0},function(D,v,h,a,Q){if(Array.isArray(v))for(var G=0;G<v.length;G++)Hzc(D,v[G],h,a,Q)},bi2);
_.Pu=t$u(function(D,v,h,a,Q,G){if(D.nextWireType_!==2)return!1;var x=v[_.V$]|0;sUI(v,x,G,h,cm(x));v=mZu(v,a,h);Rp(D,v,Q);return!0},Hzc);
_.d7q=_.Cz(function(D,v,h){if(D.nextWireType_!==2)return!1;_.om(v,h,_.D7r(D));return!0},_.y3c,_.I9L);
jsA=_.Cz(function(D,v,h,a){if(D.nextWireType_!==2)return!1;_.Y7(v,h,a,_.D7r(D));return!0},_.y3c,_.I9L);
sso=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,_.Ka(D.decoder_)>>>0);return!0},wd4,oA7);
m7o=_.Cz(function(D,v,h,a){if(D.nextWireType_!==0)return!1;_.Y7(v,h,a,_.Ka(D.decoder_)>>>0);return!0},wd4,oA7);
_.xa=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,_.Ka(D.decoder_));return!0},_.eB7,_.gAr);
_.MA=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;D=_.Ka(D.decoder_);_.om(v,h,D===0?void 0:D);return!0},_.eB7,_.gAr);
Hi8=_.Cz(function(D,v,h){if(D.nextWireType_!==0)return!1;_.om(v,h,_.O1(D.decoder_,zML));return!0},function(D,v,h){v=m12(v);
if(v!=null&&(Tr8(v),v!=null))switch(_.FY(D,h,0),typeof v){case "number":D=D.encoder_;h=v;v=h<0;h=Math.abs(h)*2;x12(h);h=bs;var a=mR;v&&(h==0?a==0?a=h=4294967295:(a--,h=4294967295):h--);bs=h;mR=a;UQ(D,bs,mR);break;case "bigint":D=D.encoder_;v=v<<BigInt(1)^v>>BigInt(63);bs=Number(BigInt.asUintN(32,v));mR=Number(BigInt.asUintN(32,v>>BigInt(32)));UQ(D,bs,mR);break;default:G24(D.encoder_,v)}},U7I);var eEr=function(){var D=yGo,v=woc;this.fieldIndex=175237375;this.ctor=v;this.isRepeated=0;this.getExtensionFn=_.CL;this.defaultValue=void 0;this.JSC$8881_hasMessageId=D.messageId!=null?Bm:void 0};
eEr.prototype.register=function(){Ft(this)};var nAq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(nAq,_.xo);var Oiq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Oiq,_.xo);var WMA=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(WMA,_.xo);var KHI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(KHI,_.xo);var TA4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(TA4,_.xo);var REc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(REc,_.xo);var iiq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(iiq,_.xo);iiq.prototype.getData=function(){return _.N6(this,2)};var WHI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(WHI,_.xo);var t0I=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(t0I,_.xo);t0I.prototype.getStyle=function(){return _.CL(this,nAq,1)};var pz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(pz,_.xo);pz.prototype.getPayloadCase=function(){return _.BD(this,Yo)};
pz.prototype.getStyle=function(){return _.yF(this,t0I,6,Yo)};
var rGL=function(){var D=new pz,v=new TA4;return _.Nf(D,7,Yo,v)},u8u=function(){var D=new pz,v=new REc;
return _.Nf(D,8,Yo,v)},Yo=[1,
2,3,4,5,6,7,8];var Drm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Drm,_.xo);var vLR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(vLR,_.xo);var hiJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(hiJ,_.xo);var a4$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(a4$,_.xo);var $rM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J($rM,_.xo);var QoM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(QoM,_.xo);var Gum=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Gum,_.xo);var V2s=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(V2s,_.xo);V2s.prototype.getData=function(){return _.N6(this,2)};var Pq9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Pq9,_.xo);var izI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(izI,_.xo);izI.prototype.getPayloadCase=function(){return _.BD(this,fW)};
var fW=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var CW=function(D,v){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=v===void 0?2:v};
_.J(CW,Error);var xr4=Promise;var M2R=function(D){this.channelPromise=D};
M2R.prototype.send=function(D,v,h){this.channelPromise.then(function(a){a.send(D,v,h)})};var f4p=function(D,v){this.data=D;this.channel=v};
f4p.prototype.reply=function(D,v,h){this.channel.send(D,v,h)};var Cq9=function(D){this.JSC$8947_port_=D};
Cq9.prototype.send=function(D,v,h){h=h===void 0?[]:h;var a=new MessageChannel;oL4(a.port1,v);this.JSC$8947_port_.postMessage(D,[a.port2].concat(h))};
var FIJ=function(D,v){oL4(D,v);return new Cq9(D)},oL4=function(D,v){v&&(D.onmessage=function(h){v(new f4p(h.data,FIJ(h.ports[0])))})};var zi4=function(D){this.verifier_=D};
zi4.prototype.verify=function(D){return this.verifier_(D)};
var UrF=function(D){var v=Object.create(null);(typeof D==="string"?[D]:D).forEach(function(h){if(h==="null")throw Error("X");v[h]=!0});
return function(h){return v[h]===!0}};_.LI4=function(){if(!_.$L.addEventListener||!Object.defineProperty)return!1;var D=!1,v=Object.defineProperty({},"passive",{get:function(){D=!0}});
try{var h=function(){};
_.$L.addEventListener("test",h,v);_.$L.removeEventListener("test",h,v)}catch(a){}return D}();var Z7t;_.oH=function(D){var v=D.destination;var h=D.iframe;var a=D.origin;var Q=D.channelName===void 0?"ZNWN1d":D.channelName;var G=D.onMessage===void 0?void 0:D.onMessage;D=D.onEstablished===void 0?void 0:D.onEstablished;return Z7t({destination:v,getSource:function(){return h.contentWindow},
originVerifier:a instanceof zi4?a:typeof a==="function"?new zi4(a):new zi4(UrF(a)),channelName:Q,onMessage:G,onEstablished:D})};
Z7t=function(D){var v=D.destination;var h=D.getSource;var a=D.originVerifier;var Q=D.token===void 0?void 0:D.token;var G=D.channelName;var x=D.onMessage===void 0?void 0:D.onMessage;var f=D.onEstablished===void 0?void 0:D.onEstablished;return new M2R(new xr4(function(C,U){var L=function(Z){Z.source&&Z.source===h()&&a.verify(Z.origin)&&(Z.data.n||Z.data)===G&&(v.removeEventListener("message",L,!1),Q&&Z.data.t!==Q?U(Error("Y`"+G+"`"+Q+"`"+Z.data.t)):(C(FIJ(Z.ports[0],x)),f&&f(Z)))};
v.addEventListener("message",L,!1)}))};var EL9=function(D){try{D()}catch(v){QO(v)}};var gLm=function(D){var v=this;var h=D.getMessageType;var a=D.onUnregisteredMessage===void 0?function(){}:D.onUnregisteredMessage;
var Q=D.onBeforeRegisteredMessage===void 0?function(){}:D.onBeforeRegisteredMessage;
D=D.onAfterRegisteredMessage===void 0?function(){}:D.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=h;this.onUnregisteredMessage_=a;this.onBeforeRegisteredMessage_=Q;this.onAfterRegisteredMessage_=D;this.onMessage=function(G){return I4R(v,G)}};
gLm.prototype.register=function(D,v){this.registry_.set(D,v);return this};
var I4R=function(D,v){var h=D.getMessageType_(v.data),a=D.registry_.get(h);a?(EL9(function(){return D.onBeforeRegisteredMessage_(v,h)}),EL9(function(){return a(v)}),EL9(function(){return D.onAfterRegisteredMessage_(v,h)})):EL9(function(){return D.onUnregisteredMessage_(v,h)})};var kus=function(D){this.JSC$8964_channel_=D},Jcy,pA4;
kus.prototype.send=function(D,v,h){this.JSC$8964_channel_.send(Hs(D),v,h)};
_.S81=function(D,v){return function(h){var a=new D(h.data);return v(new f4p(a,h.channel))}};
Jcy=function(D){return function(v){return D(new f4p(v.data,new kus(v.channel)))}};
pA4=function(D,v){return Jcy(_.S81(D,v))};var l4$=function(D,v,h,a){this.registry=D;this.delegate=v;this.receiveMessageConstructor=h;this.createInitMessage=a;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},RBu=function(D){var v=new gLm({getMessageType:D.getPayloadCase});
return new l4$(v,new kus(_.oH({iframe:D.child,destination:window,origin:D.origin,channelName:D.channelName,onMessage:pA4(D.receiveMessageConstructor,v.onMessage)})),D.receiveMessageConstructor,D.createInitMessage)},NcM=function(D,v){D.createInitMessage=v};
l4$.prototype.send=function(D){if(!this.initialised)throw new CW("Attempted to send a message before initialisation.");this.delegate.send(D)};
var Y8p=function(D,v){return _.M(function(h){if(!D.initialised)throw new CW("Attempted to send a message before initialisation.");return h.return(new Promise(function(a){D.delegate.send(v,pA4(D.receiveMessageConstructor,a))}))})};
l4$.prototype.init=function(){var D=this;return _.M(function(v){if(D.initialised)throw new CW("Attempted to initialise twice. The SDK can only be initialised once.");if(D.createInitMessage!==void 0){var h=D.delegate,a=h.send,Q=D.createInitMessage;var G=new Oiq;var x=[].concat(_.j_(D.features));G=_.vd(G,1,x,_.hr);a.call(h,Q.call(D,G))}D.initialised=!0;_.YI(v)})};
var F_=function(D,v){if(D.initialised)throw new CW('Attempted to set up API "'+v+'" after initialisation. All APIs must be set up before initialising the SDK.');D.features.add(v);return D.registry};
_.GT.Object.defineProperties(l4$.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var BcJ=function(D){this.channel=D;this.registered=!1};
BcJ.prototype.update=function(D){if(this.channel.isInitialised){if(!this.registered)throw new CW("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var v=new pz;var h=new KHI;h=_.UN(h,1,D);v=_.Nf(v,2,Yo,h);this.channel.send(v)}else this.register();this.JSC$8978_audioEnabled=D};
BcJ.prototype.register=function(){F_(this.channel,1);this.registered=!0};
BcJ.prototype.isAudioEnabled=function(){return this.JSC$8978_audioEnabled};var ccm=function(D){this.channel=D};
_.V=ccm.prototype;_.V.onFirstFrameReady=function(D){F_(this.channel,2).register(11,function(v){v=_.yF(v.data,Drm,11,fW);if(!v)throw new CW("Unexpectedly nonexistent GameFirstFrameReadyEvent");D(_.jI(v,1))})};
_.V.onReady=function(D){F_(this.channel,2).register(4,function(v){v=_.yF(v.data,hiJ,4,fW);if(!v)throw new CW("Unexpectedly nonexistent GameReadyEvent");D(_.jI(v,1))})};
_.V.onLevelComplete=function(D){F_(this.channel,2).register(5,function(v){v=_.yF(v.data,a4$,5,fW);if(!v)throw new CW("Unexpectedly nonexistent LevelCompleteEvent");D(_.jI(v,1),_.C0(v,2))})};
_.V.onGameOver=function(D){F_(this.channel,2).register(6,function(v){v=_.yF(v.data,vLR,6,fW);if(!v)throw new CW("Unexpectedly nonexistent GameOverEvent");D(_.jI(v,1))})};
_.V.pause=function(){var D=this;if(!this.channel.isInitialised)return F_(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new CW("Using unregistered Game Feature: pause.");var v=rGL();return new Promise(function(h){return _.M(function(a){if(a.nextAddress==1)return a.yield(Y8p(D.channel,v),2);h();_.YI(a)})})};
_.V.resume=function(){var D=this;if(!this.channel.isInitialised)return F_(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new CW("Using unregistered Game Feature: resume.");var v=u8u();return new Promise(function(h){return _.M(function(a){if(a.nextAddress==1)return a.yield(Y8p(D.channel,v),2);h();_.YI(a)})})};var XAM=function(D){this.channel=D};
XAM.prototype.onReady=function(D){F_(this.channel,5).register(8,function(v){if(!_.yF(v.data,$rM,8,fW))throw new CW("Unexpectedly nonexistent PageReadyEvent");D()})};var Acm=function(D){this.channel=D};
Acm.prototype.onChange=function(D){F_(this.channel,3).register(7,function(v){v=_.yF(v.data,QoM,7,fW);if(!v)throw new CW("Unexpectedly nonexistent ScoreEvent");D(_.jI(v,1),_.C0(v,2))})};var q84={load:function(){throw new CW("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new CW("Storage used, but storage.onSave() listener not set!");}},b71=function(D){this.channel=D;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},drM=function(D){F_(D.channel,4).register(2,q84.load).register(3,q84.save);
D.initialSetupDone=!0};
b71.prototype.onLoad=function(D){this.initialSetupDone||drM(this);this.loadRegistered||(this.loadRegistered=!0,F_(this.channel,4).register(2,function(v){var h,a,Q;return _.M(function(G){if(G.nextAddress==1){h=_.yF(v.data,Gum,2,fW);if(!h)throw new CW("Unexpectedly nonexistent StorageLoad");a=_.jI(h,1);return G.yield(D(a),2)}Q=G.yieldResult;var x=v.reply,f=new pz;var C=new iiq;C=_.Xx(C,1,a);C=_.Fk(C,2,_.N1(Q,!1));f=_.Nf(f,3,Yo,C);x.call(v,f);_.YI(G)})}))};
b71.prototype.onSave=function(D){this.initialSetupDone||drM(this);this.saveRegistered||(this.saveRegistered=!0,F_(this.channel,4).register(3,function(v){var h,a,Q;return _.M(function(G){if(G.nextAddress==1){h=_.yF(v.data,V2s,3,fW);if(!h)throw new CW("Unexpectedly nonexistent StorageSave");a=_.jI(h,1);Q=Smi(h.getData());return G.yield(D(a,Q),2)}var x=v.reply,f=new pz;var C=new WHI;C=_.Xx(C,1,a);f=_.Nf(f,4,Yo,C);x.call(v,f);_.YI(G)})}))};var job=function(D){this.channel=D};
job.prototype.update=function(D){if(!this.channel.features.has(6))throw new CW("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var v=new pz,h=new t0I;D=_.lH(h,1,D);v=_.Nf(v,6,Yo,D);this.channel.send(v)};
job.prototype.register=function(){F_(this.channel,6)};var soy=function(D){this.channel=D;this.userActivityLoggingIntervalMs=0};
soy.prototype.onUserActivity=function(D,v){this.userActivityLoggingIntervalMs=v;F_(this.channel,7).register(9,function(h){if(!_.yF(h.data,Pq9,9,fW))throw new CW("Unexpectedly nonexistent ClickEvent");D()})};var mr$=function(D){var v=this;this.channel=D;this.init=this.channel.init.bind(this.channel);this.page=new XAM(this.channel);this.game=new ccm(this.channel);this.audio=new BcJ(this.channel);this.score=new Acm(this.channel);this.storage=new b71(this.channel);this.style=new job(this.channel);this.userActivity=new soy(this.channel);NcM(this.channel,function(h){var a=new WMA;h=_.lH(a,1,h);h=_.wY(h,3,v.userActivity.userActivityLoggingIntervalMs);a=v.audio.isAudioEnabled();a!==void 0&&_.UN(h,2,a);a=new pz;
return _.Nf(a,5,Yo,h)})};var H7$=function(){this.timedFunctionContext=0};
H7$.prototype.timeExecution=function(D,v){var h=this;return function(){var a=_.Kz.apply(0,arguments);h.timedFunctionContext=D;return v.apply(null,_.j_(a))}};var ycp=function(){var D={};this.priorityTasks=(D[3]=[],D[2]=[],D[1]=[],D);this.isFlushing=!1},S9=function(D,v,h){var a=wA1(D,h);
D.priorityTasks[h].push(v);a&&D.priorityTasks[h].length===1&&D.flush()},wA1=function(D,v){return Object.keys(D.priorityTasks).map(function(h){return Number(h)}).filter(function(h){return!isNaN(h)&&h>v}).every(function(h){return D.priorityTasks[h].length===0})};
ycp.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(D){return D.length>0});)ei4(this,3),ei4(this,2),ei4(this,1)}catch(D){throw Object.values(this.priorityTasks).forEach(function(v){return void v.splice(0,v.length)}),D;
}finally{this.isFlushing=!1}}};
var ei4=function(D,v){for(;wA1(D,v)&&D.priorityTasks[v].length>0;)D.priorityTasks[v][0](),D.priorityTasks[v].shift()};
_.GT.Object.defineProperties(ycp.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(D){return D.length>0})}}});var axO={};var nLb=globalThis.trustedTypes,r3A=nLb,DSr;var cd=function(D){this.privateDoNotAccessOrElseWrappedResourceUrl=D};
cd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var O7J,KIJ,Tcb,Rit,i74,WIM,t29,rcp;O7J=_.DK([""]);KIJ=up(["\x00"],["\\0"]);Tcb=up(["\n"],["\\n"]);Rit=up(["\x00"],["\\u0000"]);i74=_.DK([""]);WIM=up(["\x00"],["\\0"]);t29=up(["\n"],["\\n"]);rcp=up(["\x00"],["\\u0000"]);_.ufM=hJ7(function(D){return D(O7J)})||hJ7(function(D){return D(KIJ)})||hJ7(function(D){return D(Tcb)})||hJ7(function(D){return D(Rit)});
_.D14=_.bH(i74)&&_.bH(WIM)&&_.bH(t29)&&_.bH(rcp);var eR;_.d0=function(D,v){this.privateDoNotAccessOrElseWrappedUrl=v};
_.d0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.vp$=jR("about:blank");eR=jR("about:invalid#zClosurez");var $So=function(D){this.isValid=D},hM1=new $So(function(D){return/^[^:]*([/?#]|$)/.test(D)}),aJF=Hd("data"),$14=Hd("http"),Q4J=Hd("https"),Gy4=Hd("ftp"),Vt1=Hd("mailto"),PsM=Hd("intent"),x1t=Hd("vnd.youtube"),Q9u=[aJF,
$14,Q4J,Vt1,Gy4,hM1],V_L=Bd(function(){return typeof URL==="function"}),MtJ=["data:",
"http:","https:","mailto:","ftp:"],xS2=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var iH=function(D){this.privateDoNotAccessOrElseWrappedHtml=D};
iH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var J28=Bd(function(){return new iH(nLb?nLb.emptyHTML:"")});var fJt={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"},fxf=function(D,v){var h=Error.call(this,D+" cannot be used with intent "+fJt[v]);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.type=D;this.intent=v;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.J(fxf,Error);_.a9=function(D){this.privateDoNotAccessOrElseWrappedScript=D};
_.a9.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var zJu=function(D){this.privateDoNotAccessOrElseWrappedAttributePrefix=D};
zJu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var USf="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var MS=function(D){this.privateDoNotAccessOrElseWrappedStyleSheet=D};
MS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var mqL=function(D){var v=_.T3("window.location.href");D==null&&(D='Unknown Error of type "null/undefined"');if(typeof D==="string")return{message:D,name:"Unknown error",lineNumber:"Not available",fileName:v,stack:"Not available"};var h=!1;try{var a=D.lineNumber||D.line||"Not available"}catch(x){a="Not available",h=!0}try{var Q=D.fileName||D.filename||D.sourceURL||_.$L.$googDebugFname||v}catch(x){Q="Not available",h=!0}v=Cs4(D);if(!(!h&&D.lineNumber&&D.fileName&&D.stack&&D.message&&D.name)){h=D.message;
if(h==null){if(D.constructor&&D.constructor instanceof Function){if(D.constructor.name)h=D.constructor.name;else if(h=D.constructor,z6[h])h=z6[h];else{h=String(h);if(!z6[h]){var G=/function\s+([^\(]+)/m.exec(h);z6[h]=G?G[1]:"[Anonymous]"}h=z6[h]}h='Unknown Error of type "'+h+'"'}else h="Unknown Error of unknown type";typeof D.toString==="function"&&Object.prototype.toString!==D.toString&&(h+=": "+D.toString())}return{message:h,name:D.name||"UnknownError",lineNumber:a,fileName:Q,stack:v||"Not available"}}return{message:D.message,
name:D.name,lineNumber:D.lineNumber,fileName:D.fileName,stack:v}},Cs4=function(D,v){v||(v={});
v[opt(D)]=!0;var h=D.stack||"",a=D.cause;a&&!v[opt(a)]&&(h+="\nCaused by: ",a.stack&&a.stack.indexOf(a.toString())==0||(h+=typeof a==="string"?a:a.message+"\n"),h+=Cs4(a,v));D=D.errors;if(Array.isArray(D)){a=1;var Q;for(Q=0;Q<D.length&&!(a>4);Q++)v[opt(D[Q])]||(h+="\nInner error "+a++ +": ",D[Q].stack&&D[Q].stack.indexOf(D[Q].toString())==0||(h+=typeof D[Q]==="string"?D[Q]:D[Q].message+"\n"),h+=Cs4(D[Q],v));Q<D.length&&(h+="\n... "+(D.length-Q)+" more inner errors")}return h},opt=function(D){var v=
"";
typeof D.toString==="function"&&(v=""+D);return v+D.stack},z6={};var FR1,VH,ZY,U11,LRp,zMp,WQ,WT,EpM;FR1=function(D,v){for(var h=D.split("%s"),a="",Q=Array.prototype.slice.call(arguments,1);Q.length&&h.length>1;)a+=h.shift()+Q.shift();return a+h.join("%s")};
_.t$=function(D){return encodeURIComponent(String(D))};
VH=function(D){return decodeURIComponent(D.replace(/\+/g," "))};
ZY=function(D){mTo.test(D)&&(D.indexOf("&")!=-1&&(D=D.replace(AZA,"&amp;")),D.indexOf("<")!=-1&&(D=D.replace(qJL,"&lt;")),D.indexOf(">")!=-1&&(D=D.replace(buO,"&gt;")),D.indexOf('"')!=-1&&(D=D.replace(dTq,"&quot;")),D.indexOf("'")!=-1&&(D=D.replace(j2A,"&#39;")),D.indexOf("\x00")!=-1&&(D=D.replace(s28,"&#0;")));return D};
U11=function(D){var v={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var h=_.$L.document.createElement("div");return D.replace(zMp,function(a,Q){var G=v[a];if(G)return G;Q.charAt(0)=="#"&&(Q=Number("0"+Q.slice(1)),isNaN(Q)||(G=String.fromCharCode(Q)));G||(_.VM(h,Wd(a+" ")),G=h.firstChild.nodeValue.slice(0,-1));return v[a]=G})};
LRp=function(D){return D.replace(/&([^;]+);/g,function(v,h){switch(h){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return h.charAt(0)!="#"||(h=Number("0"+h.slice(1)),isNaN(h))?v:String.fromCharCode(h)}})};
zMp=/&([^;\s<&]+);?/g;_.LDA=function(D){return String(D).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Z4s=String.prototype.repeat?function(D,v){return D.repeat(v)}:function(D,v){return Array(v+1).join(D)};
_.UO=function(D,v){if(!Number.isFinite(D))return String(D);D=String(D);var h=D.indexOf(".");h===-1&&(h=D.length);var a=D[0]==="-"?"-":"";a&&(D=D.substring(1));return a+(0,_.Z4s)("0",Math.max(0,v-h))+D};
WQ=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.M6()).toString(36)};
WT=function(D){for(var v=0,h=0;h<D.length;++h)v=31*v+D.charCodeAt(h)>>>0;return v};
_.l4=function(D){return String(D).replace(/\-([a-z])/g,function(v,h){return h.toUpperCase()})};
_.pm=function(D){return String(D).replace(/([A-Z])/g,"-$1").toLowerCase()};
EpM=function(D){return D.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(v,h,a){return h+a.toUpperCase()})};var IJt=function(){this.names=new Map};
IJt.prototype.getName=function(D){var v=this.names.get(D);if(v)return v;var h;v=(h=D.description)!=null?h:WQ();this.names.set(D,v);return v};var gpF=function(D){var v=Error.call(this,D?D.length+" errors occurred during unsubscription:\n"+D.map(function(h,a){return a+1+") "+h.toString()}).join("\n  "):"");
this.message=v.message;"stack"in v&&(this.stack=v.stack);this.errors=D;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.J(gpF,Error);var Cf=function(D){this.initialTeardown=D;this.closed=!1;this._teardowns=this._parentage=null};
_.V=Cf.prototype;
_.V.unsubscribe=function(){if(!this.closed){this.closed=!0;var D=this._parentage;if(Array.isArray(D))for(var v=_.P(D),h=v.next();!h.done;h=v.next())h.value.remove(this);else D==null||D.remove(this);v=this.initialTeardown;if(ff(v))try{v()}catch(G){var a=G instanceof gpF?G.errors:[G]}var Q=this._teardowns;if(Q)for(this._teardowns=null,v=_.P(Q),h=v.next();!h.done;h=v.next()){h=h.value;try{ff(h)?h():h.unsubscribe()}catch(G){h=void 0,a=(h=a)!=null?h:[],G instanceof gpF?a=[].concat(_.j_(a),_.j_(G.errors)):
a.push(G)}}if(a)throw new gpF(a);}};
_.V.add=function(D){if(D&&D!==this)if(this.closed)ff(D)?D():D.unsubscribe();else{if(D instanceof Cf){if(D.closed||D._hasParent(this))return;D._addParent(this)}var v;(this._teardowns=(v=this._teardowns)!=null?v:[]).push(D)}};
_.V._hasParent=function(D){var v=this._parentage;return v===D||Array.isArray(v)&&v.includes(D)};
_.V._addParent=function(D){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(D),v):v?[v,D]:D};
_.V._removeParent=function(D){var v=this._parentage;v===D?this._parentage=null:Array.isArray(v)&&IxL(v,D)};
_.V.remove=function(D){var v=this._teardowns;v&&IxL(v,D);D instanceof Cf&&D._removeParent(this)};
var kyt=new Cf;kyt.closed=!0;Cf.JSC$9074_EMPTY=kyt;var keq=function(){setTimeout.apply(null,_.j_(_.Kz.apply(0,arguments)))};var LW=function(D){Cf.call(this);this.JSC$9079_isStopped=!1;this.destination=D instanceof LW?D:new ZN(!D||ff(D)?{next:D!=null?D:void 0}:D);gIL(D)&&D.add(this)};
_.J(LW,Cf);LW.JSC$9074_EMPTY=Cf.JSC$9074_EMPTY;LW.create=function(D,v,h){return new EO(D,v,h)};
_.V=LW.prototype;_.V.next=function(D){this.JSC$9079_isStopped||this._next(D)};
_.V.error=function(D){this.JSC$9079_isStopped||(this.JSC$9079_isStopped=!0,this._error(D))};
_.V.complete=function(){this.JSC$9079_isStopped||(this.JSC$9079_isStopped=!0,this._complete())};
_.V.unsubscribe=function(){this.closed||(this.JSC$9079_isStopped=!0,Cf.prototype.unsubscribe.call(this))};
_.V._next=function(D){this.destination.next(D)};
_.V._error=function(D){this.destination.error(D);this.unsubscribe()};
_.V._complete=function(){this.destination.complete();this.unsubscribe()};
var ZN=function(D){this.partialObserver=D};
ZN.prototype.next=function(D){var v=this.partialObserver;if(v.next)try{v.next(D)}catch(h){Fy(h)}};
ZN.prototype.error=function(D){var v=this.partialObserver;if(v.error)try{v.error(D)}catch(h){Fy(h)}else Fy(D)};
ZN.prototype.complete=function(){var D=this.partialObserver;if(D.complete)try{D.complete()}catch(v){Fy(v)}};
var EO=function(D,v,h){LW.call(this);var a;ff(D)||!D?a={next:D!=null?D:void 0,error:v!=null?v:void 0,complete:h!=null?h:void 0}:a=D;this.destination=new ZN(a)};
_.J(EO,LW);EO.JSC$9074_EMPTY=LW.JSC$9074_EMPTY;EO.create=LW.create;var Zx=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Lf=function(D){D&&(this._subscribe=D)};
_.V=Lf.prototype;_.V.lift=function(D){var v=new Lf;v.source=this;v.operator=D;return v};
_.V.subscribe=function(D,v,h){D=D&&D instanceof LW||D&&ff(D.next)&&ff(D.error)&&ff(D.complete)&&gIL(D)?D:new EO(D,v,h);v=this.operator;h=this.source;D.add(v?v.call(D,h):h?this._subscribe(D):this._trySubscribe(D));return D};
_.V._trySubscribe=function(D){try{return this._subscribe(D)}catch(v){D.error(v)}};
_.V.forEach=function(D,v){var h=this;v=Jwr(v);return new v(function(a,Q){var G=h.subscribe(function(x){try{D(x)}catch(f){Q(f),G==null||G.unsubscribe()}},Q,a)})};
_.V._subscribe=function(D){var v;return(v=this.source)==null?void 0:v.subscribe(D)};
Lf.prototype[Zx]=function(){return this};
Lf.prototype.pipe=function(){var D=_.Kz.apply(0,arguments);return D.length?SX8(D)(this):this};
Lf.create=function(D){return new Lf(D)};var SFJ=function(){var D=Error.call(this,"object unsubscribed");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.J(SFJ,Error);var IP=function(){this.observers=[];this.hasError=this.JSC$9095_isStopped=this.closed=!1;this.thrownError=null};
_.J(IP,Lf);_.V=IP.prototype;_.V.lift=function(D){var v=new IH(this,this);v.operator=D;return v};
_.V._throwIfClosed=function(){if(this.closed)throw new SFJ;};
_.V.next=function(D){this._throwIfClosed();if(!this.JSC$9095_isStopped){var v=this.observers.slice();v=_.P(v);for(var h=v.next();!h.done;h=v.next())h.value.next(D)}};
_.V.error=function(D){this._throwIfClosed();if(!this.JSC$9095_isStopped){this.hasError=this.JSC$9095_isStopped=!0;this.thrownError=D;for(var v=this.observers;v.length;)v.shift().error(D)}};
_.V.complete=function(){this._throwIfClosed();if(!this.JSC$9095_isStopped){this.JSC$9095_isStopped=!0;for(var D=this.observers;D.length;)D.shift().complete()}};
_.V.unsubscribe=function(){this.JSC$9095_isStopped=this.closed=!0;this.observers=null};
_.V._trySubscribe=function(D){this._throwIfClosed();return Lf.prototype._trySubscribe.call(this,D)};
_.V._subscribe=function(D){this._throwIfClosed();this._checkFinalizedStatuses(D);return this._innerSubscribe(D)};
_.V._innerSubscribe=function(D){var v=this,h=this.JSC$9095_isStopped,a=this.observers;return this.hasError||h?Cf.JSC$9074_EMPTY:(a.push(D),new Cf(function(){return IxL(v.observers,D)}))};
_.V._checkFinalizedStatuses=function(D){var v=this.thrownError,h=this.JSC$9095_isStopped;this.hasError?D.error(v):h&&D.complete()};
IP.create=function(D,v){return new IH(D,v)};
var IH=function(D,v){IP.call(this);this.destination=D;this.source=v};
_.J(IH,IP);IH.create=IP.create;IH.prototype.next=function(D){var v,h;(v=this.destination)==null||(h=v.next)==null||h.call(v,D)};
IH.prototype.error=function(D){var v,h;(v=this.destination)==null||(h=v.error)==null||h.call(v,D)};
IH.prototype.complete=function(){var D,v;(D=this.destination)==null||(v=D.complete)==null||v.call(D)};
IH.prototype._subscribe=function(D){var v,h;return(h=(v=this.source)==null?void 0:v.subscribe(D))!=null?h:Cf.JSC$9074_EMPTY};var iU=function(D){IP.call(this);this._value=D};
_.J(iU,IP);iU.create=IP.create;iU.prototype._subscribe=function(D){var v=IP.prototype._subscribe.call(this,D);!v.closed&&D.next(this._value);return v};
iU.prototype.getValue=function(){var D=this.thrownError,v=this._value;if(this.hasError)throw D;this._throwIfClosed();return v};
iU.prototype.next=function(D){IP.prototype.next.call(this,this._value=D)};
_.GT.Object.defineProperties(iU.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var wE=new Lf(function(D){return D.complete()});var YXi=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var qXI=function(D){return D&&typeof D.length==="number"&&typeof D!=="function"};var Jbs={now:function(){return(Jbs.delegate||Date).now()},
delegate:void 0};var Qz=function(D,v,h){D=D===void 0?Infinity:D;v=v===void 0?Infinity:v;h=h===void 0?Jbs:h;IP.call(this);this.bufferSize=D;this.windowTime=v;this.timestampProvider=h;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=v===Infinity;this.bufferSize=Math.max(1,D);this.windowTime=Math.max(1,v)};
_.J(Qz,IP);Qz.create=IP.create;Qz.prototype.next=function(D){var v=this.buffer,h=this.infiniteTimeWindow,a=this.timestampProvider,Q=this.windowTime;this.JSC$9095_isStopped||(v.push(D),!h&&v.push(a.now()+Q));pm9(this);IP.prototype.next.call(this,D)};
Qz.prototype._subscribe=function(D){this._throwIfClosed();pm9(this);for(var v=this._innerSubscribe(D),h=this.infiniteTimeWindow,a=this.buffer.slice(),Q=0;Q<a.length&&!D.closed;Q+=h?1:2)D.next(a[Q]);this._checkFinalizedStatuses(D);return v};
var pm9=function(D){var v=D.bufferSize,h=D.timestampProvider,a=D.buffer;D=D.infiniteTimeWindow;var Q=(D?1:2)*v;v<Infinity&&Q<a.length&&a.splice(0,a.length-Q);if(!D){v=h.now();h=0;for(D=1;D<a.length&&a[D]<=v;D+=2)h=D;h&&a.splice(0,h+1)}};var NJb=function(D,v){v=v===void 0?lJp:v;this.schedulerActionCtor=D;this.now=v};
NJb.prototype.schedule=function(D,v,h){v=v===void 0?0:v;return(new this.schedulerActionCtor(this,D)).schedule(h,v)};
var lJp=Jbs.now;var pWi=function(){var D=Error.call(this,"no elements in sequence");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.J(pWi,Error);var qS=function(D,v,h,a,Q){LW.call(this,D);this.onUnsubscribe=Q;v&&(this._next=function(G){try{v(G)}catch(x){this.destination.error(x)}});
h&&(this._error=function(G){try{h(G)}catch(x){this.destination.error(x)}this.unsubscribe()});
a&&(this._complete=function(){try{a()}catch(G){this.destination.error(G)}this.unsubscribe()})};
_.J(qS,LW);qS.JSC$9074_EMPTY=LW.JSC$9074_EMPTY;qS.create=LW.create;qS.prototype.unsubscribe=function(){var D;this.closed||(D=this.onUnsubscribe)!=null&&D.call(this);LW.prototype.unsubscribe.call(this)};var aP=function(D,v){this.source=D;this.subjectFactory=v;this._subject=null;this._refCount=0;this._connection=null};
_.J(aP,Lf);aP.create=Lf.create;aP.prototype._subscribe=function(D){return YFt(this).subscribe(D)};
var YFt=function(D){var v=D._subject;if(!v||v.JSC$9095_isStopped)D._subject=D.subjectFactory();return D._subject};
aP.prototype._teardown=function(){this._refCount=0;var D=this._connection;this._subject=this._connection=null;D==null||D.unsubscribe()};
aP.prototype.connect=function(){var D=this,v=this._connection;if(!v){v=this._connection=new Cf;var h=YFt(this);v.add(this.source.subscribe(new qS(h,void 0,function(a){D._teardown();h.error(a)},function(){D._teardown();
h.complete()},function(){return D._teardown()})));
v.closed&&(this._connection=null,v=Cf.JSC$9074_EMPTY)}return v};var Kkc=Array.isArray;var RJo=Array.isArray,BJ4=Object,ifo=BJ4.getPrototypeOf,Wk7=BJ4.prototype,t_f=BJ4.keys;var mk=function(D,v,h){LW.call(this,D);this._next=v;this.shouldComplete=h};
_.J(mk,LW);mk.JSC$9074_EMPTY=LW.JSC$9074_EMPTY;mk.create=LW.create;mk.prototype._complete=function(){this.shouldComplete()?LW.prototype._complete.call(this):this.unsubscribe()};var GY4=["addListener","removeListener"],QPI=["addEventListener","removeEventListener"],PUc=["on","off"];var gs=function(){Cf.call(this)};
_.J(gs,Cf);gs.JSC$9074_EMPTY=Cf.JSC$9074_EMPTY;gs.prototype.schedule=function(){return this};var cbm=function(D,v){return setInterval.apply(null,[D,v].concat(_.j_(_.Kz.apply(2,arguments))))};var ka=function(D,v){Cf.call(this);this.scheduler=D;this.work=v;this.pending=!1};
_.J(ka,gs);ka.JSC$9074_EMPTY=gs.JSC$9074_EMPTY;ka.prototype.schedule=function(D,v){v=v===void 0?0:v;if(this.closed)return this;this.state=D;D=this.id;var h=this.scheduler;D!=null&&(this.id=Xm4(this,D,v));this.pending=!0;this.delay=v;this.id=this.id||this.requestAsyncId(h,this.id,v);return this};
ka.prototype.requestAsyncId=function(D,v,h){h=h===void 0?0:h;return cbm(D.flush.bind(D,this),h)};
var Xm4=function(D,v,h){h=h===void 0?0:h;if(h!=null&&D.delay===h&&D.pending===!1)return v;clearInterval(v)};
ka.prototype.execute=function(D,v){if(this.closed)return Error("ha");this.pending=!1;if(D=this._execute(D,v))return D;this.pending===!1&&this.id!=null&&(this.id=Xm4(this,this.id,null))};
ka.prototype._execute=function(D){var v=!1;try{this.work(D)}catch(a){v=!0;var h=!!a&&a||Error(a)}if(v)return this.unsubscribe(),h};
ka.prototype.unsubscribe=function(){if(!this.closed){var D=this.id,v=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;IxL(v,this);D!=null&&(this.id=Xm4(this,D,null));this.delay=null;gs.prototype.unsubscribe.call(this)}};var AbR=function(D,v){v=v===void 0?lJp:v;NJb.call(this,D,v);this.actions=[];this.active=!1;this.scheduled=void 0};
_.J(AbR,NJb);AbR.prototype.flush=function(D){var v=this.actions;if(this.active)v.push(D);else{var h;this.active=!0;do if(h=D.execute(D.state,D.delay))break;while(D=v.shift());this.active=!1;if(h){for(;D=v.shift();)D.unsubscribe();throw h;}}};var bU=new Lf(o9);var xVc=Array.isArray;var SD=function(D,v){ka.call(this,D,v);this.scheduler=D;this.work=v};
_.J(SD,ka);SD.JSC$9074_EMPTY=ka.JSC$9074_EMPTY;SD.prototype.schedule=function(D,v){v=v===void 0?0:v;if(v>0)return ka.prototype.schedule.call(this,D,v);this.delay=v;this.state=D;this.scheduler.flush(this);return this};
SD.prototype.execute=function(D,v){return v>0||this.closed?ka.prototype.execute.call(this,D,v):this._execute(D,v)};
SD.prototype.requestAsyncId=function(D,v,h){h=h===void 0?0:h;return h!=null&&h>0||h==null&&this.delay>0?ka.prototype.requestAsyncId.call(this,D,v,h):D.flush(this)};var qF1=function(){AbR.apply(this,arguments)};
_.J(qF1,AbR);var nI2=new qF1(SD);var b44=function(){this.performanceMonitor=new H7$;this.queue=new ycp;this.internalSymbol=Symbol();this.debugNames=new IJt};
b44.prototype.getOnBackgrounded=function(){return bU};
_.GT.Object.defineProperties(b44.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Jy=function(D,v){v=Error.call(this,v?D+": "+v:String(D));this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=D;this.__proto__=Jy.prototype;this.name=String(D)};
_.J(Jy,Error);var dD=function(D){Jy.call(this,1E3,'sfr:"'+D+'"');this.measurementStrategyFailureReason=D;this.__proto__=dD.prototype};
_.J(dD,Jy);var j9=function(){Jy.call(this,1003);this.__proto__=j9.prototype};
_.J(j9,Jy);var pW=function(){Jy.call(this,1009);this.__proto__=pW.prototype};
_.J(pW,Jy);var d1p=function(){Jy.call(this,1011);this.__proto__=d1p.prototype};
_.J(d1p,Jy);var j4m=function(){Jy.call(this,1007);this.__proto__=j9.prototype};
_.J(j4m,Jy);var A1=function(D){Jy.call(this,1004,String(D));this.inputObservableIndex=D;this.__proto__=A1.prototype};
_.J(A1,Jy);var nqi=function(D){Jy.call(this,1010,D);this.__proto__=O0c.prototype};
_.J(nqi,Jy);var O0c=function(D){Jy.call(this,1005,D);this.__proto__=O0c.prototype};
_.J(O0c,Jy);var s44=function(D){var v=_.Kz.apply(1,arguments),h=this;this.orderedFactories=[];this.orderedFactories.push(D);v.forEach(function(a){h.orderedFactories.push(a)})};
s44.prototype.isSupported=function(D){return this.orderedFactories.some(function(v){return v.isSupported(D)})};
s44.prototype.makeBeacon=function(D,v){for(var h=0;h<this.orderedFactories.length;h++)if(this.orderedFactories[h].isSupported(v))return this.orderedFactories[h].makeBeacon(D,v);throw new pW;};var AhO=Symbol("ia"),m1t=Symbol("ja"),iz=function(D,v){this.value=D;this.timeline=v},R9=function(D,v){if(v.timeline!==D.timeline)throw new j4m;
return D.value-v.value};
_.V=iz.prototype;_.V.equals=function(D){return R9(this,D)===0};
_.V.maximum=function(D){if(D.timeline!==this.timeline)throw new j4m;return this.value>=D.value?this:D};
_.V.round=function(){return new iz(Math.round(this.value),this.timeline)};
_.V.add=function(D){return new iz(this.value+D,this.timeline)};
_.V.toString=function(){return String(this.value)};var l2=function(D,v){this.context=D;this.JSC$9201_pinger=v};
l2.prototype.isSupported=function(D){return this.JSC$9201_pinger.isSupported(D)};
l2.prototype.makeBeacon=function(D,v){if(!this.isSupported(v))throw new pW;return new Ya(this.context,this.JSC$9201_pinger,v!=null?v:void 0,D)};
var Ya=function(D,v,h,a){var Q=this;this.JSC$9207_pinger=v;this.properties=h;this.url=a;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var G;this.method=(G=h==null?void 0:h.beaconMethod)!=null?G:"GET";this.backgroundedSubscription=D.getOnBackgrounded().subscribe(function(){Q.sendNow()})};
Ya.prototype.deactivate=function(){this.internalIsPending=!1};
Ya.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9207_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var D,v;this.JSC$9207_pinger.pingWithHeadersAndBody((D=this.properties)!=null?D:{},this.customHeaders,(v=this.body)!=null?v:"",this.url)}else this.JSC$9207_pinger.ping(this.url);this.internalIsPending=!1}catch(h){}else this.internalIsPending=!1};
Ya.prototype.setHeader=function(D,v){this.customHeaders.set(D,v)};
_.GT.Object.defineProperties(Ya.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var ybF=function(){for(var D=_.P(_.Kz.apply(0,arguments)),v=D.next();!v.done;v=D.next())if(v=v.value,v.available()){this.timeProvider=v;return}this.timeProvider=new H44};
_.V=ybF.prototype;_.V.available=function(){return this.timeProvider.available()};
_.V.now=function(){return this.timeProvider.now()};
_.V.setTimeout=function(D,v){return this.timeProvider.setTimeout(D,v)};
_.V.clearTimeout=function(D){this.timeProvider.clearTimeout(D)};
_.V.interval=function(D,v){var h=this.intervalObservable(D).subscribe(v);return function(){return void h.unsubscribe()}};
_.V.intervalObservable=function(D){return this.timeProvider.intervalObservable(D)};
_.GT.Object.defineProperties(ybF.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var H44=function(){this.timeline=Symbol()};
_.V=H44.prototype;_.V.available=function(){return!1};
_.V.now=function(){return new iz(0,this.timeline)};
_.V.setTimeout=function(){return 0};
_.V.clearTimeout=function(){};
_.V.interval=function(){return function(){}};
_.V.intervalObservable=function(){return bU};var Bu=function(D,v){this.intrinsicFunctionNamespace=D;this.performanceMonitor=v};
_.V=Bu.prototype;_.V.setTimeout=function(D,v){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,D),v)};
_.V.clearTimeout=function(D){this.intrinsicFunctionNamespace.clearTimeout(D)};
_.V.interval=function(D,v){var h=this.intervalObservable(D).subscribe(v);return function(){return void h.unsubscribe()}};
_.V.intervalObservable=function(D){var v=this;return new Lf(function(h){var a=0,Q=v.intrinsicFunctionNamespace.setInterval(function(){h.next(a++)},D);
return function(){v.intrinsicFunctionNamespace.clearInterval(Q)}})};
_.V.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var wmJ=function(D,v){Bu.call(this,D,v);this.timeline=m1t};
_.J(wmJ,Bu);wmJ.prototype.now=function(){return new iz(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
wmJ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Bu.prototype.available.call(this)};var eMJ=function(D,v){Bu.call(this,D,v);this.timeline=AhO};
_.J(eMJ,Bu);eMJ.prototype.now=function(){return new iz(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
eMJ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Bu.prototype.available.call(this)};var O44=function(D){this.context=D;if(npp===void 0)a:{var v,h,a=(v=D.global)==null?void 0:(h=v.document)==null?void 0:h.createElement("meta");if(a)try{a.httpEquiv="origin-trial";a.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";D.global.document.head.append(a);npp=a;break a}catch(Q){}npp=void 0}},
npp;
O44.prototype.isSupported=function(D){return EJi(this.context)!==void 0&&!(D==null||!D.endOfSession)&&!cu(this.context)&&!(D==null?0:D.attributionEnabled)&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
O44.prototype.makeBeacon=function(D,v){if(!this.isSupported(v))throw new pW;return new X_(this.context,D,v)};
var X_=function(D,v,h){this.context=D;this.properties=h;this.JSC$9234_urlWithoutToken=v;var a;this.beaconMethod=(a=h==null?void 0:h.beaconMethod)!=null?a:"GET";D=EJi(this.context);if(D===void 0)throw Error();this.fetchLater=D;KR4(this,TJy(this))},KR4=function(D,v){D.beaconResult&&D.beaconResult.activated||(D.beaconAbort=new AbortController,D.beaconResult=D.fetchLater(v,{method:D.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:D.beaconAbort.signal,activateAfter:96E4}))},TJy=function(D){D=D.JSC$9234_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"flapi=1"};
X_.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
X_.prototype.sendNow=function(){};
X_.prototype.setHeader=function(){};
_.GT.Object.defineProperties(X_.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9234_urlWithoutToken},
set:function(D){this.JSC$9234_urlWithoutToken=D;D=TJy(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);KR4(this,D)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var RMy=function(D){this.context=D};
RMy.prototype.isSupported=function(){return!cu(this.context)&&!!this.context.global.fetch};
RMy.prototype.ping=function(){var D=this;return e_.apply(null,_.j_(_.Kz.apply(0,arguments).map(function(v){return I9(D.context.global.fetch(v,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(dE(function(h){return h.status===200}))}))).pipe(l3L(function(v){return v}),YVI())};
RMy.prototype.pingWithHeadersAndBody=function(D,v,h){for(var a=_.Kz.apply(3,arguments),Q=this,G=new Headers,x=_.P(v.entries()),f=x.next();!f.done;f=x.next()){var C=_.P(f.value);f=C.next().value;C=C.next().value;G.set(f,C)}var U,L=(U=D.keepAlive)!=null?U:!1;e_.apply(null,_.j_(a.map(function(Z){return I9(Q.context.global.fetch(Z,Object.assign({},{method:String(D.beaconMethod),cache:"no-cache"},L?{keepalive:!0}:{},{mode:"no-cors",headers:G,body:h}))).pipe(dE(function(E){return E.status===200}))}))).pipe(l3L(function(Z){return Z}),
YVI())};var i4t,Lxr,WRs;_.Ay=function(){};
_.mI=function(D){return D};
i4t=function(D){var v=v||0;return function(){return D.apply(this,Array.prototype.slice.call(arguments,0,v))}};
_.qA=function(D){var v=!1,h;return function(){v||(h=D(),v=!0);return h}};
_.b2=function(D,v){var h=0;return function(a){_.$L.clearTimeout(h);var Q=arguments;h=_.$L.setTimeout(function(){D.apply(void 0,Q)},v)}};
Lxr=function(D,v){var h=0,a=!1,Q=[],G=function(){h=0;a&&(a=!1,x())},x=function(){h=_.$L.setTimeout(G,v);
var f=Q;Q=[];D.apply(void 0,f)};
return function(f){Q=arguments;h?a=!0:x()}};
WRs=function(D,v){var h=0,a=function(){h=0};
return function(Q){h||(h=_.$L.setTimeout(a,v),D.apply(void 0,arguments))}};var rb1=function(){return Io&&Jc?Jc.mobile:!ttF()&&(lq("iPod")||lq("iPhone")||lq("Android")||lq("IEMobile"))},ttF=function(){return Io&&Jc?!Jc.mobile&&(lq("iPad")||lq("Android")||lq("Silk")):lq("iPad")||lq("Android")&&!lq("Mobile")||lq("Silk")};var ds=function(D,v,h,a,Q){this.allowedElements=D;this.elementPolicies=v;this.allowedGlobalAttributes=h;this.globalAttributePolicies=a;this.globallyAllowedAttributePrefixes=Q},u9t=function(D,v,h){h=D.elementPolicies.get(h);
return(h==null?0:h.has(v))?h.get(v):D.allowedGlobalAttributes.has(v)?{policyAction:1}:(h=D.globalAttributePolicies.get(v))?h:D.globallyAllowedAttributePrefixes&&[].concat(_.j_(D.globallyAllowedAttributePrefixes)).some(function(a){return v.indexOf(a)===0})?{policyAction:1}:{policyAction:0}};var DIJ="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(" "),
vCR=[["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}]])]],hZJ="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(" "),
abR=[["dir",{policyAction:3,conditions:Bd(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Bd(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Bd(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Bd(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],$IM=new ds(new Set(DIJ),new Map(vCR),new Set(hZJ),new Map(abR)),QUm=new ds(new Set(DIJ.concat(["BUTTON",
"INPUT"])),new Map(vCR),new Set(Bd(function(){return hZJ.concat(["class","id","name"])})),new Map(Bd(function(){return abR.concat([["style",
{policyAction:1}]])})));var Gdm,V$$,xIm;Gdm=function(D,v,h,a,Q){this.JSC$9291_sanitizerTable=D;this.styleElementSanitizer=v;this.styleAttributeSanitizer=h;this.JSC$9291_resourceUrlPolicy=a;this.JSC$9291_navigationUrlPolicy=Q;this.changes=[]};
_.PSp=function(D,v){var h=document.implementation.createHTMLDocument("");D=V$$(D,v,h);h=h.body;h.appendChild(D);h=(new XMLSerializer).serializeToString(h);h=h.slice(h.indexOf(">")+1,h.lastIndexOf("</"));return Wd(h)};
V$$=function(D,v,h){v=mVI(v,h);v=document.createTreeWalker(v,5,function(f){if(f.nodeType===3)f=1;else if(y1f(f))if(f=HTA(f),f===null)f=2;else{var C=D.JSC$9291_sanitizerTable;f=f!=="FORM"&&(C.allowedElements.has(f)||C.elementPolicies.has(f))?1:2}else f=2;return f});
for(var a=v.nextNode(),Q=h.createDocumentFragment(),G=Q;a!==null;){var x=void 0;if(a.nodeType===3)D.styleElementSanitizer&&G.nodeName==="STYLE"?(a=D.styleElementSanitizer(a.data),x=D.createTextNode(a)):x=D.createTextNode(a.data);else if(y1f(a))x=xIm(D,a,h);else throw Error("Z");G.appendChild(x);if(a=v.firstChild())G=x;else for(;!(a=v.nextSibling())&&(a=v.parentNode());)G=G.parentNode}return Q};
Gdm.prototype.createTextNode=function(D){return document.createTextNode(D)};
xIm=function(D,v,h){var a,Q=HTA(v);h=h.createElement(Q);v=v.attributes;for(var G=_.P(v),x=G.next();!x.done;x=G.next()){var f=x.value;x=f.name;f=f.value;var C=u9t(D.JSC$9291_sanitizerTable,x,Q);a:{if(a=C.conditions){a=_.P(a);for(var U=a.next();!U.done;U=a.next()){var L=_.P(U.value);U=L.next().value;L=L.next().value;var Z=void 0;if((U=(Z=v.getNamedItem(U))==null?void 0:Z.value)&&!L.has(U)){a=!1;break a}}}a=!0}if(a)switch(C.policyAction){case 1:zY(h,x,f);break;case 2:throw Error();case 3:zY(h,x,f.toLowerCase());
break;case 4:D.styleAttributeSanitizer?(f=D.styleAttributeSanitizer(f),zY(h,x,f)):zY(h,x,f);break;case 5:D.JSC$9291_resourceUrlPolicy?(C={type:2,attributeName:x,elementName:Q},f=sPL(f),(f=D.JSC$9291_resourceUrlPolicy(f,C))&&zY(h,x,f.toString())):zY(h,x,f);break;case 6:if(D.JSC$9291_resourceUrlPolicy){C={type:2,attributeName:x,elementName:Q};a=[];f=_.P(f.split(","));for(U=f.next();!U.done;U=f.next())L=_.P(U.value.trim().split(/\s+/,2)),U=L.next().value,L=L.next().value,a.push({url:U,descriptor:L});
f={parts:[]};a=_.P(a);for(U=a.next();!U.done;U=a.next())U=U.value,L=sPL(U.url),(L=D.JSC$9291_resourceUrlPolicy(L,C))&&f.parts.push({url:L.toString(),descriptor:U.descriptor});zY(h,x,wWO(f))}else zY(h,x,f);break;case 7:C=f;if(D.JSC$9291_navigationUrlPolicy){C={type:2,attributeName:x,elementName:Q};f=sPL(f);f=D.JSC$9291_navigationUrlPolicy(f,C);if(f===null)break;C=f.toString()}f=C;C=_.PzI(f);C=C!==void 0&&MtJ.indexOf(C.toLowerCase())!==-1?f:"about:invalid#zClosurez";zY(h,x,C)}}return h};
_.M$m=Bd(function(){return new Gdm($IM)});
_.fbF=Bd(function(){return new Gdm(QUm)});var CS$=function(){this.calledBuild=!1;this.JSC$9303_sanitizerTable=$IM},oCp=function(){CS$.apply(this,arguments)};
_.J(oCp,CS$);oCp.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new Gdm(this.JSC$9303_sanitizerTable,void 0,void 0,this.JSC$9303_resourceUrlPolicy,this.JSC$9303_navigationUrlPolicy)};var FmR=/[^#]*/;var XWO={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"},zZ$=_.qA(function(){return qVA()}),
LmM=function(){var D=UIm("IFRAME"),v={};
_.rM(zZ$(),function(h){D.sandbox&&D.sandbox.supports&&D.sandbox.supports(h)&&(v[h]=!0)});
return v},UIm=function(D,v){v=v===void 0?document:v;
return v.createElement(String(D).toLowerCase())};var jD;_.sk=function(D,v,h){return Math.min(Math.max(D,v),h)};
jD=function(D,v,h){return D+h*(v-D)};_.HW=function(D,v){this.x=D!==void 0?D:0;this.y=v!==void 0?v:0};
_.V=_.HW.prototype;_.V.clone=function(){return new _.HW(this.x,this.y)};
_.V.equals=function(D){return D instanceof _.HW&&(this==D?!0:this&&D?this.x==D.x&&this.y==D.y:!1)};
_.V.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.V.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.V.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.V.translate=function(D,v){D instanceof _.HW?(this.x+=D.x,this.y+=D.y):(this.x+=Number(D),typeof v==="number"&&(this.y+=v));return this};
_.V.scale=function(D,v){this.x*=D;this.y*=typeof v==="number"?v:D;return this};_.lU=function(D,v){this.width=D;this.height=v};
_.V=_.lU.prototype;_.V.clone=function(){return new _.lU(this.width,this.height)};
_.V.area=function(){return this.width*this.height};
_.V.aspectRatio=function(){return this.width/this.height};
_.V.isEmpty=function(){return!this.area()};
_.V.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.V.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.V.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.V.scale=function(D,v){this.width*=D;this.height*=typeof v==="number"?v:D;return this};var Z3b;_.sV={};Z3b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.sV.add=function(D,v,h){if(D!==null&&v in D)throw Error("na`"+v);D[v]=h};
_.sV.clear=function(D){for(var v in D)delete D[v]};
_.sV.clone=function(D){var v={},h;for(h in D)v[h]=D[h];return v};
_.sV.contains=function(D,v){return OTu(D,v)};
_.sV.containsKey=function(D,v){return D!==null&&v in D};
_.sV.containsValue=OTu;_.sV.create=R3u;_.sV.createImmutableView=function(D){var v=D;Object.isFrozen&&!Object.isFrozen(D)&&(v=Object.create(D),Object.freeze(v));return v};
_.sV.createSet=iTq;_.sV.equals=function(D,v){for(var h in D)if(!(h in v)||D[h]!==v[h])return!1;for(var a in v)if(!(a in D))return!1;return!0};
_.sV.every=function(D,v,h){for(var a in D)if(!v.call(h,D[a],a,D))return!1;return!0};
_.sV.extend=function(D,v){for(var h,a,Q=1;Q<arguments.length;Q++){a=arguments[Q];for(h in a)D[h]=a[h];for(var G=0;G<Z3b.length;G++)h=Z3b[G],Object.prototype.hasOwnProperty.call(a,h)&&(D[h]=a[h])}};
_.sV.filter=function(D,v,h){var a={},Q;for(Q in D)v.call(h,D[Q],Q,D)&&(a[Q]=D[Q]);return a};
_.sV.findKey=KOA;_.sV.findValue=function(D,v,h){return(v=KOA(D,v,h))&&D[v]};
_.sV.forEach=function(D,v,h){for(var a in D)v.call(h,D[a],a,D)};
_.sV.get=function(D,v,h){return D!==null&&v in D?D[v]:h};
_.sV.getAllPropertyNames=function(D,v,h){if(!D)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return nJc(D);for(var a={};D&&(D!==Object.prototype||v)&&(D!==Function.prototype||h);){for(var Q=Object.getOwnPropertyNames(D),G=0;G<Q.length;G++)a[Q[G]]=!0;D=Object.getPrototypeOf(D)}return nJc(a)};
_.sV.getAnyKey=function(D){for(var v in D)return v};
_.sV.getAnyValue=function(D){for(var v in D)return D[v]};
_.sV.getCount=function(D){var v=0,h;for(h in D)v++;return v};
_.sV.getKeys=nJc;_.sV.getSuperClass=function(D){return(D=Object.getPrototypeOf(D.prototype))&&D.constructor};
_.sV.getValueByKeys=function(D,v){var h=_.O8(v),a=h?v:arguments;for(h=h?0:1;h<a.length;h++){if(D==null)return;D=D[a[h]]}return D};
_.sV.getValues=function(D){var v=[],h=0,a;for(a in D)v[h++]=D[a];return v};
_.sV.isEmpty=function(D){for(var v in D)return!1;return!0};
_.sV.isImmutableView=function(D){return!!Object.isFrozen&&Object.isFrozen(D)};
_.sV.map=function(D,v,h){var a={},Q;for(Q in D)a[Q]=v.call(h,D[Q],Q,D);return a};
_.sV.remove=function(D,v){var h;(h=v in D)&&delete D[v];return h};
_.sV.set=function(D,v,h){D[v]=h};
_.sV.setIfUndefined=function(D,v,h){return v in D?D[v]:D[v]=h};
_.sV.setWithReturnValueIfNotSet=function(D,v,h){if(v in D)return D[v];h=h();return D[v]=h};
_.sV.some=function(D,v,h){for(var a in D)if(v.call(h,D[a],a,D))return!0;return!1};
_.sV.transpose=function(D){var v={},h;for(h in D)v[D[h]]=h;return v};
_.sV.unsafeClone=TD4;var ej=function(D,v){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=D===w4c&&v||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=ECs};
ej.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Ib4=function(D){return D instanceof ej&&D.constructor===ej&&D.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===ECs?D.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ECs={},w4c={};
new ej(w4c,"");var cW,Yq,mT,gCb,JrF,S2y,yz,lbR,Y2R,Nr9,eD,Br9,jUt,dIs,b3M,sUR,mIy,H34,yr9,Ghr,wsb,nCF,O3M,eZ4,sO;cW=function(D){return D?new sO(_.e9(D)):N_f||(N_f=new sO)};
_.Cj=function(D,v){return typeof v==="string"?D.getElementById(v):v};
Yq=function(D,v){return(v||document).getElementsByTagName(String(D))};
_.kdt=function(D){return gCb("yt-formatted-string","paper-input-input",D)};
mT=function(D,v,h,a){D=a||D;return(v=v&&v!="*"?String(v).toUpperCase():"")||h?D.querySelectorAll(v+(h?"."+h:"")):D.getElementsByTagName("*")};
gCb=function(D,v,h){var a=document,Q=D&&D!="*"?String(D).toUpperCase():"";return Q||v?(h||a).querySelector(Q+(v?"."+v:"")):mT(a,D,v,h)[0]||null};
JrF=function(D,v){_.sV.forEach(v,function(h,a){a=="style"?D.style.cssText=h:a=="class"?D.className=h:a=="for"?D.htmlFor=h:S2y.hasOwnProperty(a)?D.setAttribute(S2y[a],h):_.Gu(a,"aria-")||_.Gu(a,"data-")?D.setAttribute(a,h):D[a]=h})};
S2y={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"};_.NV=function(D){D=(D||window).document;D=D.compatMode=="CSS1Compat"?D.documentElement:D.body;return new _.lU(D.clientWidth,D.clientHeight)};
_.psJ=function(D){var v=_.Hu(D);D=D.defaultView;return new _.HW((D==null?void 0:D.pageXOffset)||v.scrollLeft,(D==null?void 0:D.pageYOffset)||v.scrollTop)};
_.Hu=function(D){return D.scrollingElement?D.scrollingElement:_.La||D.compatMode!="CSS1Compat"?D.body||D.documentElement:D.documentElement};
yz=function(D){return D?D.defaultView:window};
_.ya=function(D,v,h){return lbR(document,arguments)};
lbR=function(D,v){var h=v[1],a=Nr9(D,String(v[0]));h&&(typeof h==="string"?a.className=h:Array.isArray(h)?a.className=h.join(" "):JrF(a,h));v.length>2&&Y2R(D,a,v,2);return a};
Y2R=function(D,v,h,a){function Q(f){f&&v.appendChild(typeof f==="string"?D.createTextNode(f):f)}
for(;a<h.length;a++){var G=h[a];if(!_.O8(G)||_.Ro(G)&&G.nodeType>0)Q(G);else{a:{if(G&&typeof G.length=="number"){if(_.Ro(G)){var x=typeof G.item=="function"||typeof G.item=="string";break a}if(typeof G==="function"){x=typeof G.item=="function";break a}}x=!1}_.rM(x?_.n7(G):G,Q)}}};
_.l9=function(D){return Nr9(document,D)};
Nr9=function(D,v){v=String(v);D.contentType==="application/xhtml+xml"&&(v=v.toLowerCase());return D.createElement(v)};
_.ws=function(){return document.createTextNode("\n")};
eD=function(D){if(D.nodeType!=1)return!1;switch(D.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
Br9=function(D,v){Y2R(_.e9(D),D,arguments,1)};
_.nW=function(D){for(var v;v=D.firstChild;)D.removeChild(v)};
_.OO=function(D,v){v.parentNode&&v.parentNode.insertBefore(D,v)};
_.KW=function(D,v){v.parentNode&&v.parentNode.insertBefore(D,v.nextSibling)};
_.Np=function(D){return D&&D.parentNode?D.parentNode.removeChild(D):null};
_.cr9=function(D,v){var h=v.parentNode;h&&h.replaceChild(D,v)};
_.Xs1=function(D){var v,h=D.parentNode;if(h&&h.nodeType!=11)if(D.removeNode)D.removeNode(!1);else{for(;v=D.firstChild;)h.insertBefore(v,D);_.Np(D)}};
_.T6=function(D){return D.children!=void 0?D.children:Array.prototype.filter.call(D.childNodes,function(v){return v.nodeType==1})};
_.q24=function(D){return D.nextElementSibling!==void 0?D.nextElementSibling:_.Ary(D.nextSibling,!0)};
_.Ary=function(D,v){for(;D&&D.nodeType!=1;)D=v?D.nextSibling:D.previousSibling;return D};
_.aB=function(D){return _.Ro(D)&&D.nodeType==1};
_.Ra=function(D,v){if(!D||!v)return!1;if(D.contains&&v.nodeType==1)return D==v||D.contains(v);if(typeof D.compareDocumentPosition!="undefined")return D==v||!!(D.compareDocumentPosition(v)&16);for(;v&&D!=v;)v=v.parentNode;return v==D};
jUt=function(D,v){if(D==v)return 0;if(D.compareDocumentPosition)return D.compareDocumentPosition(v)&2?1:-1;if("sourceIndex"in D||D.parentNode&&"sourceIndex"in D.parentNode){var h=D.nodeType==1,a=v.nodeType==1;if(h&&a)return D.sourceIndex-v.sourceIndex;var Q=D.parentNode,G=v.parentNode;return Q==G?b3M(D,v):!h&&_.Ra(Q,v)?-1*dIs(D,v):!a&&_.Ra(G,D)?dIs(v,D):(h?D.sourceIndex:Q.sourceIndex)-(a?v.sourceIndex:G.sourceIndex)}a=_.e9(D);h=a.createRange();h.selectNode(D);h.collapse(!0);D=a.createRange();D.selectNode(v);
D.collapse(!0);return h.compareBoundaryPoints(_.$L.Range.START_TO_END,D)};
dIs=function(D,v){var h=D.parentNode;if(h==v)return-1;for(;v.parentNode!=h;)v=v.parentNode;return b3M(v,D)};
b3M=function(D,v){for(;v=v.previousSibling;)if(v==D)return-1;return 1};
sUR=function(D){var v,h=arguments.length;if(!h)return null;if(h==1)return arguments[0];var a=[],Q=Infinity;for(v=0;v<h;v++){for(var G=[],x=arguments[v];x;)G.unshift(x),x=x.parentNode;a.push(G);Q=Math.min(Q,G.length)}G=null;for(v=0;v<Q;v++){x=a[0][v];for(var f=1;f<h;f++)if(x!=a[f][v])return G;G=x}return G};
_.e9=function(D){return D.nodeType==9?D:D.ownerDocument||D.document};
mIy=function(D){return D.contentDocument||D.contentWindow.document};
_.RH=function(D,v){if("textContent"in D)D.textContent=v;else if(D.nodeType==3)D.data=String(v);else if(D.firstChild&&D.firstChild.nodeType==3){for(;D.lastChild!=D.firstChild;)D.removeChild(D.lastChild);D.firstChild.data=String(v)}else _.nW(D),D.appendChild(_.e9(D).createTextNode(String(v)))};
H34={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};yr9={IMG:" ",BR:"\n"};Ghr=function(D){var v;D.tagName=="A"&&D.hasAttribute("href")||D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="BUTTON"?v=!D.disabled&&(!D.hasAttribute("tabindex")||wsb(D)):v=D.hasAttribute("tabindex")&&wsb(D);return v};
wsb=function(D){D=D.tabIndex;return typeof D==="number"&&D>=0&&D<32768};
nCF=function(D){var v=[];eZ4(D,v,!0);D=v.join("");D=D.replace(/ \xAD /g," ").replace(/\xAD/g,"");D=D.replace(/\u200B/g,"");D=D.replace(/ +/g," ");D!=" "&&(D=D.replace(/^\s*/,""));return D};
O3M=function(D){var v=[];eZ4(D,v,!1);return v.join("")};
eZ4=function(D,v,h){if(!(D.nodeName in H34))if(D.nodeType==3)h?v.push(String(D.nodeValue).replace(/(\r\n|\r|\n)/g,"")):v.push(D.nodeValue);else if(D.nodeName in yr9)v.push(yr9[D.nodeName]);else for(D=D.firstChild;D;)eZ4(D,v,h),D=D.nextSibling};
_.KmJ=function(D,v,h){if(!v&&!h)return null;var a=v?String(v).toUpperCase():null;return _.OV(D,function(Q){return(!a||Q.nodeName==a)&&(!h||typeof Q.className==="string"&&_.wc(Q.className.split(/\s+/),h))},!0)};
_.OV=function(D,v,h){D&&!h&&(D=D.parentNode);for(h=0;D;){if(v(D))return D;D=D.parentNode;h++}return null};
sO=function(D){this.JSC$9330_document_=D||_.$L.document||document};
_.V=sO.prototype;_.V.getElement=function(D){return _.Cj(this.JSC$9330_document_,D)};
_.V.$=sO.prototype.getElement;_.V.getElementsByTagName=function(D,v){return(v||this.JSC$9330_document_).getElementsByTagName(String(D))};
_.V.getElementsByTagNameAndClass=function(D,v,h){return mT(this.JSC$9330_document_,D,v,h)};
_.V.$$=sO.prototype.getElementsByTagNameAndClass;_.V.setProperties=JrF;_.V.JSC$9332_createDom=function(D,v,h){return lbR(this.JSC$9330_document_,arguments)};
_.V.createElement=function(D){return Nr9(this.JSC$9330_document_,D)};
_.V.createTextNode=function(D){return this.JSC$9330_document_.createTextNode(String(D))};
_.V.getWindow=function(){return this.JSC$9330_document_.defaultView};
var YJ=function(D){return _.psJ(D.JSC$9330_document_)};
_.V=sO.prototype;_.V.appendChild=function(D,v){D.appendChild(v)};
_.V.append=Br9;_.V.canHaveChildren=eD;_.V.removeNode=_.Np;_.V.getChildren=_.T6;_.V.contains=_.Ra;_.V.isFocusable=Ghr;_.V=EV.prototype;_.V.getWidth=function(){return this.right-this.left};
_.V.getHeight=function(){return this.bottom-this.top};
_.V.clone=function(){return new EV(this.top,this.right,this.bottom,this.left)};
_.V.contains=function(D){return this&&D?D instanceof EV?D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom:D.x>=this.left&&D.x<=this.right&&D.y>=this.top&&D.y<=this.bottom:!1};
_.V.expand=function(D,v,h,a){_.Ro(D)?(this.top-=D.top,this.right+=D.right,this.bottom+=D.bottom,this.left-=D.left):(this.top-=D,this.right+=Number(v),this.bottom+=Number(h),this.left-=Number(a));return this};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(D,v){D instanceof _.HW?(this.left+=D.x,this.right+=D.x,this.top+=D.y,this.bottom+=D.y):(this.left+=D,this.right+=D,typeof v==="number"&&(this.top+=v,this.bottom+=v));return this};
_.V.scale=function(D,v){v=typeof v==="number"?v:D;this.left*=D;this.right*=D;this.top*=v;this.bottom*=v;return this};var i2=function(D,v,h,a){this.left=D;this.top=v;this.width=h;this.height=a};
_.V=i2.prototype;_.V.clone=function(){return new i2(this.left,this.top,this.width,this.height)};
_.V.boundingRect=function(D){var v=Math.max(this.left+this.width,D.left+D.width),h=Math.max(this.top+this.height,D.top+D.height);this.left=Math.min(this.left,D.left);this.top=Math.min(this.top,D.top);this.width=v-this.left;this.height=h-this.top};
_.V.contains=function(D){return D instanceof _.HW?D.x>=this.left&&D.x<=this.left+this.width&&D.y>=this.top&&D.y<=this.top+this.height:this.left<=D.left&&this.left+this.width>=D.left+D.width&&this.top<=D.top&&this.top+this.height>=D.top+D.height};
_.V.distance=function(D){var v=D.x<this.left?this.left-D.x:Math.max(D.x-(this.left+this.width),0);D=D.y<this.top?this.top-D.y:Math.max(D.y-(this.top+this.height),0);return Math.sqrt(v*v+D*D)};
_.V.getSize=function(){return new _.lU(this.width,this.height)};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(D,v){D instanceof _.HW?(this.left+=D.x,this.top+=D.y):(this.left+=D,typeof v==="number"&&(this.top+=v));return this};
_.V.scale=function(D,v){v=typeof v==="number"?v:D;this.left*=D;this.width*=D;this.top*=v;this.height*=v;return this};var RZ9,rs,IqO,ty,rrm,t$y,uXy,Pn4,DfR,hBR;_.Wu=function(D,v,h){if(typeof v==="string")(v=_.TrF(D,v))&&(D.style[v]=h);else for(var a in v){h=D;var Q=v[a],G=_.TrF(h,a);G&&(h.style[G]=Q)}};
RZ9={};_.TrF=function(D,v){var h=RZ9[v];if(!h){var a=_.l4(v);h=a;D.style[a]===void 0&&(a=(_.La?"Webkit":_.U1?"Moz":null)+EpM(a),D.style[a]!==void 0&&(h=a));RZ9[v]=h}return h};
_.Zj=function(D,v){var h=_.e9(D);return h.defaultView&&h.defaultView.getComputedStyle&&(D=h.defaultView.getComputedStyle(D,null))?D[v]||D.getPropertyValue(v)||"":""};
_.TQ=function(D,v){return _.Zj(D,v)||(D.currentStyle?D.currentStyle[v]:null)||D.style&&D.style[v]};
_.i3m=function(D){return _.TQ(D,"position")};
rs=function(D,v,h){if(v instanceof _.HW){var a=v.x;v=v.y}else a=v,v=h;D.style.left=ty(a,!1);D.style.top=ty(v,!1)};
IqO=function(D){try{return D.getBoundingClientRect()}catch(v){return{left:0,top:0,right:0,bottom:0}}};
_.nT=function(D){var v=_.e9(D),h=new _.HW(0,0);if(D==(v?_.e9(v):document).documentElement)return h;D=IqO(D);v=YJ(cW(v));h.x=D.left+v.x;h.y=D.top+v.y;return h};
_.WmR=function(D,v,h){if(v instanceof _.lU)h=v.height,v=v.width;else if(h==void 0)throw Error("oa");D.style.width=ty(v,!0);D.style.height=ty(h,!0)};
ty=function(D,v){typeof D=="number"&&(D=(v?Math.round(D):D)+"px");return D};
rrm=function(D){return t$y(D)};
t$y=function(D){var v=uXy;if(_.TQ(D,"display")!="none")return v(D);var h=D.style,a=h.display,Q=h.visibility,G=h.position;h.visibility="hidden";h.position="absolute";h.display="inline";D=v(D);h.display=a;h.position=G;h.visibility=Q;return D};
uXy=function(D){var v=D.offsetWidth,h=D.offsetHeight,a=_.La&&!v&&!h;return(v===void 0||a)&&D.getBoundingClientRect?(D=IqO(D),new _.lU(D.right-D.left,D.bottom-D.top)):new _.lU(v,h)};
Pn4=function(D){var v=_.nT(D);D=t$y(D);return new i2(v.x,v.y,D.width,D.height)};
DfR=function(D,v){D=D.style;"opacity"in D?D.opacity=v:"MozOpacity"in D?D.MozOpacity=v:"filter"in D&&(D.filter=v===""?"":"alpha(opacity="+Number(v)*100+")")};
_.vl=function(D,v){D.style.display=v?"":"none"};
_.vo$=function(D){return"rtl"==_.TQ(D,"direction")};
hBR=function(D){var v=_.Zj(D,"marginLeft"),h=_.Zj(D,"marginRight"),a=_.Zj(D,"marginTop");D=_.Zj(D,"marginBottom");return new EV(parseFloat(a),parseFloat(h),parseFloat(D),parseFloat(v))};
_.af4=function(D){var v=_.Zj(D,"borderLeftWidth"),h=_.Zj(D,"borderRightWidth"),a=_.Zj(D,"borderTopWidth");D=_.Zj(D,"borderBottomWidth");return new EV(parseFloat(a),parseFloat(h),parseFloat(D),parseFloat(v))};var u2=function(D){this.context=D};
u2.prototype.isSupported=function(D){return(D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="POST"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive)?!1:!cu(this.context)};
u2.prototype.ping=function(){var D=this;return cp(_.Kz.apply(0,arguments).map(function(v){try{var h=D.context.global,a=!1;a=a===void 0?!1:a;h.google_image_requests||(h.google_image_requests=[]);var Q=UIm("IMG",h.document);a&&(Q.attributionSrc="");Q.src=v;h.google_image_requests.push(Q);return!0}catch(G){return!1}}).every(function(v){return v}))};
u2.prototype.pingWithHeadersAndBody=function(D,v,h){this.ping.apply(this,_.j_(_.Kz.apply(3,arguments)))};var $fb=function(D){this.context=D};
$fb.prototype.isSupported=function(D){return QmM&&!cu(this.context)&&WOi(this.context)!==void 0&&!(D==null?0:D.attributionEnabled)&&(D==null?void 0:D.beaconMethod)!=="POST"&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
$fb.prototype.makeBeacon=function(D,v){if(!this.isSupported(v))throw new pW;return new DB(this.context,D)};
var QmM=!1,DB=function(D,v){this.context=D;this.JSC$9351_urlWithoutToken=v;D=WOi(this.context);if(D===void 0)throw Error();this.wrappedBeacon=new D(GK4(this),{})},GK4=function(D){D=D.JSC$9351_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"pbapi=1"};
DB.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
DB.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
DB.prototype.setHeader=function(){};
_.GT.Object.defineProperties(DB.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9351_urlWithoutToken},
set:function(D){this.JSC$9351_urlWithoutToken=D;this.wrappedBeacon.setURL(GK4(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(D){if(D!=="GET")throw new pW;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var VR$=function(D){this.context=D};
VR$.prototype.isSupported=function(D){if((D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="GET"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive))return!1;var v;return!cu(this.context)&&((v=this.context.global.navigator)==null?void 0:v.sendBeacon)!==void 0};
VR$.prototype.ping=function(){var D=this;return cp(_.Kz.apply(0,arguments).map(function(v){var h;return(h=D.context.global.navigator)==null?void 0:h.sendBeacon(v)}).every(function(v){return v}))};
VR$.prototype.pingWithHeadersAndBody=function(D,v,h){this.ping.apply(this,_.j_(_.Kz.apply(3,arguments)))};var J1=function(D){this.value=D},aa=function(D,v){return cp(D.value).pipe(kJ(v))},Q5=new J1(!1),A$r=new J1(!0);var KT=function(D){this.value=D;this.releasedSubject=new IP};
KT.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.GT.Object.defineProperties(KT.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9364_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var xp8=["FRAME","IMG","IFRAME"],aco=/^[01](px)?$/,P92=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Ve8=function(){var D=new P92;
D.crossDomainLoadedDefault=!0;D.pendingImagesBlockLoad=!0;return D};var PH$=function(D,v){var h=UpA(D);if(h)if(h.onCreativeLoad)h.onCreativeLoad(v);else{var a=v?[v]:[],Q=function(G){for(var x=0;x<a.length;++x)try{a[x](1,G)}catch(f){}a={push:function(f){f(1,G)}}};
h.onCreativeLoad=function(G){a.push(G)};
h.setAttribute("data-creative-load-listener","");h.addEventListener("creativeLoad",function(G){Q(G.detail)});
_.$L.addEventListener("message",function(G){zP2(h,Q,G)})}};var vZ=function(D,v){var h=this;this.global=D;this.parentContext=v;this.JSC$9375_onVisibilityChange=this.document?e_(cp(!0),yM(this.document,"visibilitychange")).pipe(Wp(this.parentContext.performanceMonitor,748),dE(function(){return h.getVisibilityState()}),vW()):cp("visible");
this.document?yM(this.document,"DOMContentLoaded").pipe(Wp(this.parentContext.performanceMonitor,739),D3(1)):cp(vq7("DOMContentLoaded"))},Xvi=function(D){return D.document!==null&&D.document.visibilityState!==void 0};
vZ.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
vZ.prototype.querySelector=function(D){return this.document?this.document.querySelector(D):null};
vZ.prototype.querySelectorAll=function(D){return this.document?_.n7(this.document.querySelectorAll(D)):[]};
vZ.prototype.elementFromPoint=function(D,v){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;D=this.document.elementFromPoint(D,v);return D===null?null:new KT(D)};
var I02=function(D,v,h){h=h===void 0?!1:h;if(v.ref===void 0||!D.document)return cp(v).pipe(Wp(D.parentContext.performanceMonitor,749));var a=new Qz(1),Q=function(){a.next(v)};
h||PH$(v.ref,Q);Me2(v.ref,Q);return a.pipe(Wp(D.parentContext.performanceMonitor,749),D3(1))};
_.GT.Object.defineProperties(vZ.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return bT8(this.global,"document")?this.global.document||null:null}}});var LS4=_.DK(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Z08=_.DK(["./reach_worklet.js"]),Eqf=_.DK(["./reach_worklet.js"]),xfR=_.DK(["./reach_worklet.html"]),MR4=_.DK(["./reach_worklet.js"]),fft=_.DK(["./reach_worklet.js"]);_.UV(xfR);_.UV(MR4);_.UV(fft);var t1={left:0,top:0,width:0,height:0};var CH9,oos,FMF,zB4,QH,LMF,Zz1,Eo1,Mwf,fy2,kKs,SQM;CH9=function(D,v,h,a,Q,G,x){var f="";D&&(f+=D+":");h&&(f+="//",v&&(f+=v+"@"),f+=h,a&&(f+=":"+a));Q&&(f+=Q);G&&(f+="?"+G);x&&(f+="#"+x);return f};
oos=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.aZ=function(D){return D.match(oos)};
_.B7=function(D,v){return D?v?decodeURI(D):decodeURIComponent(D):D};
FMF=function(D){D=_.aZ(D)[1]||null;!D&&_.$L.self&&_.$L.self.location&&(D=_.$L.self.location.protocol.slice(0,-1));return D?D.toLowerCase():""};
_.$d=function(D){return _.B7(_.aZ(D)[3]||null,!0)};
_.gl=function(D){return _.B7(_.aZ(D)[5]||null,!0)};
_.vKu=function(D){var v=D.indexOf("#");return v<0?null:D.slice(v+1)};
zB4=function(D){D=_.aZ(D);return CH9(D[1],D[2],D[3],D[4])};
_.Ufm=function(D){D=_.aZ(D);return CH9(D[1],null,D[3],D[4])};
_.tB=function(D){D=_.aZ(D);return CH9(null,null,null,null,D[5],D[6],D[7])};
_.GU=function(D){var v=D.indexOf("#");return v<0?D:D.slice(0,v)};
QH=function(D,v){D=_.aZ(D);v=_.aZ(v);return D[3]==v[3]&&D[1]==v[1]&&D[4]==v[4]};
LMF=function(D,v){if(D){D=D.split("&");for(var h=0;h<D.length;h++){var a=D[h].indexOf("="),Q=null;if(a>=0){var G=D[h].substring(0,a);Q=D[h].substring(a+1)}else G=D[h];v(G,Q?VH(Q):"")}}};
Zz1=function(D){var v=D.indexOf("#");v<0&&(v=D.length);var h=D.indexOf("?");if(h<0||h>v){h=v;var a=""}else a=D.substring(h+1,v);return[D.slice(0,h),a,D.slice(v)]};
Eo1=function(D,v){return v?D?D+"&"+v:v:D};
_.Ift=function(D,v){if(!v)return D;D=Zz1(D);D[1]=Eo1(D[1],v);return D[0]+(D[1]?"?"+D[1]:"")+D[2]};
_.go9=function(D,v,h){if(Array.isArray(v))for(var a=0;a<v.length;a++)_.go9(D,String(v[a]),h);else v!=null&&h.push(D+(v===""?"":"="+_.t$(v)))};
_.SO=function(D){var v=[],h;for(h in D)_.go9(h,D[h],v);return v.join("&")};
_.hO=function(D,v){v=_.SO(v);return _.Ift(D,v)};
_.hJ=function(D,v,h){h=h!=null?"="+_.t$(h):"";return _.Ift(D,v+h)};
Mwf=function(D,v,h,a){for(var Q=h.length;(v=D.indexOf(h,v))>=0&&v<a;){var G=D.charCodeAt(v-1);if(G==38||G==63)if(G=D.charCodeAt(v+Q),!G||G==61||G==38||G==35)return v;v+=Q+1}return-1};
fy2=/#|$/;_.i9=function(D,v){var h=D.search(fy2),a=Mwf(D,0,v,h);if(a<0)return null;var Q=D.indexOf("&",a);if(Q<0||Q>h)Q=h;a+=v.length+1;return VH(D.slice(a,Q!==-1?Q:0))};
kKs=/[?&]($|#)/;_.PU=function(D,v){for(var h=D.search(fy2),a=0,Q,G=[];(Q=Mwf(D,a,v,h))>=0;)G.push(D.substring(a,Q)),a=Math.min(D.indexOf("&",Q)+1||h,h);G.push(D.slice(a));return G.join("").replace(kKs,"$1")};
_.np=function(D,v,h){return _.hJ(_.PU(D,v),v,h)};
SQM=function(D){var v=Zz1(window.location.href),h=v[1],a=[];h&&h.split("&").forEach(function(Q){var G=Q.indexOf("=");G=G>=0?Q.slice(0,G):Q;D.hasOwnProperty(G)||a.push(Q)});
v[1]=Eo1(a.join("&"),_.SO(D));return v[0]+(v[1]?"?"+v[1]:"")+v[2]};var H0c=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(H0c,_.xo);H0c.prototype.getVersion=function(){return _.jI(this,2)};var mpO=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(mpO,_.xo);var ANo=function(D,v){return _.Xx(D,2,v)},sac=function(D,v){return _.Xx(D,3,v)};
mpO.prototype.getModel=function(){return _.jI(this,4)};
var b0q=function(D,v){return _.Xx(D,4,v)},XQq=function(D,v){return _.Xx(D,5,v)},ja4=function(D,v){return _.Xx(D,9,v)},cNu=function(D,v){return cD(D,10,v)},BWO=function(D,v){return _.UN(D,11,v)},qNA=function(D,v){return _.Xx(D,1,v)},dpO=function(D,v){return _.UN(D,7,v)};var NWf="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var $q=function(D,v,h,a){D=D===void 0?window:D;v=v===void 0?null:v;h=h===void 0?new H7$:h;a=a===void 0?Icc():a;b44.call(this);var Q=this;this.global=D;this.debugChannel=v;this.performanceMonitor=h;this.onPageHide=$Vi(function(){return yM(Q.global,"pagehide")}).pipe(Wp(this.performanceMonitor,941));
this.onLoad=$Vi(function(){return yM(Q.global,"load")}).pipe(Wp(this.performanceMonitor,738),D3(1));
this.onResize=$Vi(function(){return yM(Q.global,"resize")}).pipe(Wp(this.performanceMonitor,741));
this.onMessage=$Vi(function(){return yM(Q.global,"message")}).pipe(Wp(this.performanceMonitor,740));
this.document=new vZ(this.global,this);this.timeProvider=new ybF(new eMJ(this.intrinsicFunctionNamespace,this.performanceMonitor),new wmJ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new s44(new O44(this),new $fb(this),new l2(this,new RMy(this)),new l2(this,new VR$(this)),new l2(this,new u2(this)))};
_.J($q,b44);var cu=function(D){var v=D.global;return!!D.global.HTMLFencedFrameElement&&!!v.fence&&typeof v.fence.reportEvent==="function"};
_.V=$q.prototype;_.V.reportFencedFrameEvent=function(D){cu(this)&&this.global.fence.reportEvent(D)};
_.V.getOnBackgrounded=function(){return this.onPageHide.pipe(Wp(this.performanceMonitor,942),kJ(this.queue),dE(function(){}))};
_.V.postMessage=function(D,v,h){h=h===void 0?[]:h;this.global.postMessage(D,v,h)};
_.V.getWidth=function(){return dVI(this.global)?this.global.width:0};
_.V.getHeight=function(){return dVI(this.global)?this.global.height:0};
_.V.isMobile=function(){return ttF()||rb1()};
var TY=function(D,v){try{var h=JNq(v,D.global,D.isMobile());return{left:h.left,top:h.top,width:h.getWidth(),height:h.getHeight()}}catch(a){return t1}};
$q.prototype.validate=function(){var D=this.beaconFactory.isSupported()||cu(this);return this.global&&this.timeProvider.available()&&D};
var r1c=function(D){return(D=wQc(D.global))?I9(D):null};
_.GT.Object.defineProperties($q.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(D){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!dVI(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}}});_.J3b=!_.zw&&!_.Z72();var qMi=function(D){return D};var ddI=function(D){return D.pipe(Kf(function(v){var h=v.endOfSessionReason;var a;return((a=v.viewable)==null?void 0:a.extrapolateToNow().value)||h!=void 0}),D3(1),rE())};var i0u=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},WSo=function(D){var v=D.sequenceNumber.toString(10).padStart(2,"0");
v=""+D.startTime+v;D.sequenceNumber<99&&D.sequenceNumber++;return v};var c$7=UX(fT(function(D){return D.endOfSessionReason===void 0}),dE(function(D){return Object.assign({},D,{timestamps:qV(D)})}),Kf(function(D){var v=D.viewable;
D=D.timestamps;var h;return(h=v==null?void 0:v.extrapolateUsingTimestampMap(D).value)!=null?h:!1}),dE(function(D){var v=D.beaconFactory;
var h=D.timestampedExposureHistory;var a=D.timeOnScreen;var Q=D.binaryContext;D=D.timestamps;if(v===void 0||h===void 0||a===void 0||Q===void 0)return!1;if(a.extrapolateUsingTimestampMap(D).value.every(function(G){return G>=0}))return!0;
h=h.map(function(G){return G.timestamp+":"+G.value}).join(",");
a=teA({bin:Q,tos:a},D);v.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+a+("&eh="+h)).sendNow();return!0}),fT(function(D){return!D}),rE());var u6I=function(D){return{id:D.pingId,mcvt:D.maxConsecutiveViewTime,p:D.creativePosition,asp:D.adSpeedPosition,tm:D.totalMeasurementTime,tu:D.totalUnviewedTime,mtos:D.maxTimeOnScreen,tos:D.timeOnScreen,v:D.binaryVersion,bin:D.binaryContext,avms:D.measurementStrategy,bs:D.browserSize,mc:D.maximumExposure,"if":D.crossDomainIframeState,vu:D.delayedImpressionJsState,app:D.inApp,mse:D.mraidError,mtop:D.mraidSituation,itpl:D.injectedTemplateId,adk:D.adKey,exk:D.awbidKey,rs:D.requestSource,la:D.isLargeAd,
cr:D.isContentRecommendationAd,uach:D.userAgentClientHints,vs:D.viewState,r:D.reasonCode,pay:D.hasCpmavUrl,co:D.clientPingOrderCounter,rst:D.adRenderStartTime,rpt:D.adRenderPeriodTime,isd:D.initialScrollDepth,lsd:D.loadedScrollDepth,context:D.errorContext,msg:D.errorMessage,stack:D.errorStack,name:D.errorName,ec:D.hasElementChanged,sfr:D.strategyFailureReasons,met:D.creativeSearchResult,wmsd:D.webMeasurementStartDiagnostic,pv:D.pageVisible,epv:D.eosPageVisible,pbe:D.inStatefulBeaconExperiment,fle:D.inFetchLaterBeaconExperiment,
vae:D.inViewableAttributionExperiment,spb:D.supportsPendingBeacon,sfl:D.supportsFetchLater,ffslot:D.isFencedFrameSlotTurtlex,reach:D.sharedStorageReachMode,io2:D.v2VisibilityBitVector,rxdbg:D.rxDebugger,omida:D.omidAppId,omidp:D.omidPartner,omidpv:D.omidPartnerVersion,omidor:D.omidOcclusionReasons,omidv:D.omidVersion,omids:D.omidSessionType,omidam:D.omidAccessMode,omidct:D.omidCreativeType,omidia:D.omidInApp,omiddc:D.omidDeviceCategory,omidlat:D.omidLastActivity,omiddit:D.omidDeviceIdleTime,qid:D.errorEscapedQueryId}};var bJO=function(D){var v=[];return D.pipe(dE(function(h){var a=h.beaconFactory,Q=h.fetchBeaconFactory,G=h.timeOnScreen,x=h.timeOnScreenUrlPrefixes,f=h.payloadMapper,C=h.timeOnScreenPingId,U=h.timeOnScreenReason,L=h.urlSerializer,Z=h.viewable,E=h.hasImpressionFired,I=h.inStatefulBeaconExperiment,S=h.supportsPendingBeacon,B=h.supportsFetchLater,A=h.turtlexReportEventData;if(!h.geometryMeasurable||!E||h.maxTimeOnScreen===void 0||G===void 0||x===void 0||f===void 0||C===void 0||L===void 0||a===void 0)return!1;
if(h.isTurtlex){if(U===void 0)return!1;x=h.reportFencedFrameEvent;if(!x)return!1;x({eventType:"active-view-time-on-screen",eventData:A!=null?A:"",destination:["buyer"]});return!0}if(!(I||B||U))return!1;A=qV(h);var d;Z=(d=Z==null?void 0:Z.extrapolateUsingTimestampMap(A).value)!=null?d:!1;d=L(Object.assign({},h,{pingId:C,viewState:Z?4:3,reasonCode:U!=null?U:"u",payloadMapper:f,urlPrefixes:x}),A);if(I){for(;v.length>x.length;)h=void 0,(h=v.shift())==null||h.deactivate();d.forEach(function(W,K){K>=v.length?
v.push(a.makeBeacon(W)):v[K].url=W});
return S&&Q&&U!==void 0?(d.forEach(function(W){Q.makeBeacon(W).sendNow()}),!0):U!==void 0}if(S&&Q&&U!==void 0)return d.forEach(function(W){Q.makeBeacon(W).sendNow()}),!0;
if(B&&Q){for(;v.length>x.length;)S=void 0,(S=v.shift())==null||S.deactivate();var b=L(Object.assign({},h,{pingId:C,viewState:Z?4:3,reasonCode:U!=null?U:"u",payloadMapper:f,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),A)[0];d.forEach(function(W,K){K>=v.length?v.push(a.makeBeacon(b,{endOfSession:!0})):v[K].url=b});
return U!==void 0?(d.forEach(function(W){Q.makeBeacon(W).sendNow()}),!0):U!==void 0}return U!==void 0?(d.forEach(function(W){a.makeBeacon(W).sendNow()}),!0):!1}),fT(function(h){return!h}),rE())};var jtr=UX(Kf(function(D){return D.immediateUrlPrefixes!==void 0&&D.payloadMapper!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),Kf(function(D){return VMq(D)!==null}),QuO(function(D){return D.activeViewUnmeasurableEvent},function(D){return D.emit}),dE(function(D){if(D.isTurtlex){var v=D.reportFencedFrameEvent;
if(v){var h;v({eventType:"active-view-unmeasurable",eventData:(h=D.turtlexReportEventData)!=null?h:"",destination:["buyer"]})}}else{h=void 0;var a=VMq(D);if(a==="x"){var Q,G=(Q=D.geometricMeasurementErrors)!=null?Q:D.contextValidationErrors;G&&(v=G.stack,h=G.message)}D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:2,reasonCode:a,errorMessage:h,errorStack:v}),qV(D)).forEach(function(x){D.beaconFactory.makeBeacon(x).sendNow()})}}),
D3(1),rE());var PW4=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var BMA=UX(Kf(function(D){return D.payloadMapper!==void 0&&D.immediateUrlPrefixes!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),dE(function(D){return Object.assign({},D,{timestamps:qV(D)})}),Kf(function(D){var v=D.viewable;
var h=D.hasImpressionFired;D=D.timestamps;var a;return!!h&&((a=v==null?void 0:v.extrapolateUsingTimestampMap(D).value)!=null?a:!1)}),QuO(function(D){return D.activeViewViewableEvent},function(D){return D.emit}),dE(function(D){var v=D.beaconFactory,h=D.turtlexReportEventData;
if(D.isTurtlex){var a=D.reportFencedFrameEvent;if(!a)return!1;a({eventType:"active-view-viewable",eventData:h!=null?h:"",destination:["buyer"]});return!0}h=D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:4,reasonCode:"v"}),D.timestamps);(a=D.cpmavUrls)&&a.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(a,D).forEach(function(Q){v.makeBeacon(Q).sendNow()});
(a=D.viewableRelayUrls)&&a.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(a,D).forEach(function(Q){v.makeBeacon(Q).sendNow()});
h.forEach(function(Q){v.makeBeacon(Q,{attributionEnabled:D.isViewableAttributionEnabled}).sendNow()});
return!0}),fT(function(D){return!D}),rE());var uoA=dE(function(D){return[D.value.topWindowViewportExternalGeometry.width,D.value.topWindowViewportExternalGeometry.height]});var RP=function(D,v){this.callback=D;this.options=v;this.intersectionObserverV2=this.intersectionObserverV1=null},bVr=function(D,v){v?D.intersectionObserverV2||(v=Object.assign({},D.options,{delay:100,
trackVisibility:!0}),D.intersectionObserverV2=new IntersectionObserver(D.callback,v)):D.intersectionObserverV1||(D.intersectionObserverV1=new IntersectionObserver(D.callback,D.options))},pdF=function(D,v){D=v?D.intersectionObserverV2:D.intersectionObserverV1;
if(!D)throw new d1p;return D};
RP.prototype.observe=function(D,v){pdF(this,D).observe(v)};
RP.prototype.unobserve=function(D,v){pdF(this,D).unobserve(v)};
RP.prototype.disconnect=function(D){pdF(this,D).disconnect()};
RP.prototype.takeRecords=function(D){return pdF(this,D).takeRecords()};var kSO={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:t1,topWindowViewportExternalGeometry:t1,measurementRequests:new IP,elementGeometrySourceName:"ns",elementGeometry:t1,intersectionGeometry:t1,viewportLocalAppOffset:{x:0,y:0}};var wli=rD(UX(dE(function(D){var v;return(v=D.exposureOverride)!=null?v:juI(D)}),dE(function(D){return isFinite(D)?D:0}))),iVL=rD(UX(dE(function(D){var v;
return(v=D.exposureOverride)!=null?v:juI(D)}),dE(function(D){return isFinite(D)?D:-1})));var aI=function(D,v){this.a=D;this.b=v;if(D.clock.timeline!==v.clock.timeline)throw Error();};
aI.prototype.equivalentTo=function(D){return D instanceof aI?this.a.equivalentTo(D.a)&&this.b.equivalentTo(D.b):!1};
aI.prototype.extrapolateToTime=function(D){var v=this.a.extrapolateToTime(D).value,h=this.b.extrapolateToTime(D).value;return{timestamp:D,value:[v,h]}};
_.GT.Object.defineProperties(aI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var D=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),v=this.a.lastMeasurement.timestamp.equals(D)?this.a.lastMeasurement.value:this.a.extrapolateToTime(D).value,h=this.b.lastMeasurement.timestamp.equals(D)?this.b.lastMeasurement.value:this.b.extrapolateToTime(D).value;return{timestamp:D,value:[v,h]}}}});var $y=function(D,v){this.input=D;this.mapFunction=v;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
$y.prototype.equivalentTo=function(D){return D instanceof $y?this.input.equivalentTo(D.input)&&this.mapFunction===D.mapFunction:!1};
$y.prototype.extrapolateToTime=function(D){D=this.input.extrapolateToTime(D);return{timestamp:D.timestamp,value:this.mapFunction(D.value)}};
_.GT.Object.defineProperties($y.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var QS=function(){};
QS.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
QS.prototype.extrapolateUsingTimestampMap=function(D){var v=this.clock.timeline,h,a=(h=D.get(v))!=null?h:this.clock.now();D.set(v,a);return this.extrapolateToTime(a)};
QS.prototype.map=function(D){return new lfp(this,D)};
QS.prototype.joinWith=function(D){return new N0R(this,D)};
var N0R=function(){aI.apply(this,arguments);this.map=QS.prototype.map;this.joinWith=QS.prototype.joinWith;this.extrapolateToNow=QS.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=QS.prototype.extrapolateUsingTimestampMap};
_.J(N0R,aI);var lfp=function(){$y.apply(this,arguments);this.map=QS.prototype.map;this.joinWith=QS.prototype.joinWith;this.extrapolateToNow=QS.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=QS.prototype.extrapolateUsingTimestampMap};
_.J(lfp,$y);var Dc=function(D,v){this.lastMeasurement=v;this.extrapolateToNow=QS.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=QS.prototype.extrapolateUsingTimestampMap;this.map=QS.prototype.map;this.joinWith=QS.prototype.joinWith;this.clock=D};
Dc.prototype.equivalentTo=function(D){return D.active};
Dc.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.GT.Object.defineProperties(Dc.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var rhi=dE(function(D){if(D.value.viewportGeometrySourceName==="omid"){if(D.value.elementGeometrySourceName==="nio")return"omio";if(D.value.elementGeometrySourceName==="geo")return"omgeo"}return D.value.elementGeometrySourceName==="geo"||D.value.elementGeometrySourceName==="nio"?D.value.viewportGeometrySourceName:D.value.elementGeometrySourceName});var mxO=UX(Kf(function(D){return!isNaN(D)}),Vz(function(D,v){return isNaN(D)?v:Math.min(D,v)},NaN),vW());var er4=rD(UX(dE(function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.exposedViewportLocalGeometry.width*D.exposedViewportLocalGeometry.height)}),dE(function(D){return isFinite(D)?Math.min(1,D):0})));var tMf=UX(rD(dE(function(D){D=D.exposureOverride?D.elementGeometry.width*D.elementGeometry.height*D.exposureOverride/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height):D.intersectionGeometry.width*D.intersectionGeometry.height/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height);return isFinite(D)?D:0})));var hj7=function(D,v){var h=this;this.timeProvider=D;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=v.pipe(vW()).subscribe(function(a){$dL(h);h.measurementRequestObserver=a})},Qtu=function(D,v){$dL(D);
D.lastMeasurementRequest=D.timeProvider.setTimeout(function(){var h;return void((h=D.measurementRequestObserver)==null?void 0:h.next())},v)},$dL=function(D){D.lastMeasurementRequest!==null&&D.timeProvider.clearTimeout(D.lastMeasurementRequest);
D.lastMeasurementRequest=null};
hj7.prototype.dispose=function(){$dL(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var YQ$=function(){};var l0f=function(D,v){this.context=D;this.strategies=v};
_.J(l0f,YQ$);l0f.prototype.buildGeometrySource=function(D,v){var h=this.strategies.map(function(G){return G.buildGeometrySource(D,v)}),a=MAi(h.map(function(G){return G.geometrySource})),Q=a.capturedErrors.pipe(B0$());
return{geometrySource:a.chain.pipe(kJ(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Q,strategyErrors:a.capturedErrors}].concat(_.j_(h.map(function(G){return G.additionalOutputs}))))}};
var B0$=function(){return Vz(function(D,v){v instanceof dD?D.push(v.measurementStrategyFailureReason):D.push(-1);return D},[])};var YMq=function(D,v){this.context=D;this.poller=v};
_.J(YMq,YQ$);YMq.prototype.buildGeometrySource=function(D,v){var h=f0i(ofI(this.context,this.poller),SY8(this.context,v.requestSource));return{geometrySource:xdf(D.measurableCreative.pipe(h),v.inApp),additionalOutputs:{}}};var NM2=function(D,v,h){h=h===void 0?Bqc(D,v):h;this.context=D;this.intersectionObserverStrategy=h};
_.J(NM2,YQ$);NM2.prototype.buildGeometrySource=function(D,v){var h=this.intersectionObserverStrategy(v.useV2);return{geometrySource:xdf(D.measurableCreative.pipe(h,chc(this.context)),v.inApp),additionalOutputs:{}}};var c39=function(D,v,h){var a=a===void 0?Symbol():a;this.element=D;this.immediateUrls=v;this.timeOnScreenUrls=h;this.symbol=a};var vf7=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),ZJr=Object.freeze([1,.75,vf7.exposureThreshold,vf7.largeAdExposureThreshold,0]);var g0f=function(D,v){v=v===void 0?36E5:v;var h=h===void 0?!0:h;this.creatives=new IP;this.elementsToUnregister=new IP;this.elementMap=new Map;var a=new $q(window,null);a.beaconFactory=new l2(a,new u2(a));pvr(a,this.creatives,this.elementsToUnregister,D,v,h).subscribe()},JiA=function(D,v,h,a){if(!D.elementMap.has(v)){var Q=new KT(v);
D.elementMap.set(v,Q);D.creatives.next(new c39(Q,h,a))}},SvA=function(D,v){D.elementsToUnregister.next(v);
var h=D.elementMap.get(v);h!==void 0&&(h.release(),D.elementMap.delete(v))};var dKu=function(D){var v=D.url;D=D.uaDataValues;this.JSC$9480_url_=v;this.uaDataValues_=D;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var h=/[?&]([^&=]+)=([^&]*)/g;D=h.exec(v);)this.urlParamValues_[D[1]]=D[2]},jqA=function(D){D=D.uaDataValues_;
if(!D)return"";var v=GQ("uap",D.platform)+GQ("uapv",D.platformVersion)+GQ("uafv",D.uaFullVersion)+GQ("uaa",D.architecture)+GQ("uam",D.model)+GQ("uab",D.bitness);D.fullVersionList&&(v+="&uafvl="+encodeURIComponent(D.fullVersionList.map(function(h){return encodeURIComponent(h.brand)+";"+encodeURIComponent(h.version)}).join("|")));
D.wow64!=null&&(v+="&uaw="+Number(D.wow64));return v.slice(1)};var Xdp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Xdp,_.xo);Xdp.prototype.getId=function(){return _.jI(this,1)};var Gr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Gr,_.xo);Gr.prototype.getSeconds=function(){return bT(this,1)};
Gr.prototype.setSeconds=function(D){return _.h3(this,1,oU(D),"0")};_.m2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(_.m2,_.xo);_.m2.prototype.getSeconds=function(){return bT(this,1)};
_.m2.prototype.setSeconds=function(D){return _.h3(this,1,oU(D),"0")};
_.A3$=function(D){var v=Number(mv(D,1));D=_.C0(D,2);return new Date(v*1E3+D/1E6)};var VS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(VS,_.xo);VS.prototype.getUrl=function(){return _.jI(this,1)};
VS.prototype.setUrl=function(D){return _.WO(this,1,D)};
VS.prototype.getHeight=function(){return _.C0(this,2)};
VS.prototype.getWidth=function(){return _.C0(this,3)};var PZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(PZ,_.xo);PZ.prototype.getAspectRatio=function(){return dY(this,1)};
PZ.prototype.getDuration=function(){return _.CL(this,Gr,2)};var qQ$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(qQ$,_.xo);var bz4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(bz4,_.xo);var dfp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(dfp,_.xo);var jm9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(jm9,_.xo);var sms=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(sms,_.xo);var mfR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(mfR,_.xo);var Hzb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Hzb,_.xo);var y3J=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(y3J,_.xo);var wdJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(wdJ,_.xo);var xy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(xy,_.xo);var ME=[2,4,5,6,7];var eB4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(eB4,_.xo);var Xt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Xt,_.xo);_.V=Xt.prototype;_.V.getId=function(){return _.CL(this,Xdp,1)};
_.V.getName=function(){return _.jI(this,2)};
_.V.setDescription=function(D){return _.WO(this,3,D)};
_.V.getUrl=function(){return _.jI(this,8)};
_.V.setUrl=function(D){return _.WO(this,8,D)};
var fD=function(D){return _.Mp(D,VS,10,_.f0())};
Xt.prototype.getOwner=function(D){var v=_.tr(this,40,_.p3,3,!0);D17(v,D);return v[D]};
Xt.prototype.getVersion=function(){return bT(this,45)};
var CD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(CD,_.xo);_.oI=[0,uT,YgO];_.FI=[0,uT,YgO];var noJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(noJ,_.xo);var zr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(zr,_.xo);zr.prototype.getStatus=function(){return _.s1(this,1)};
zr.prototype.removeItem=function(D){return HRc(this,2,D)};var Ozb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Ozb,_.xo);Ozb.prototype.getName=function(){return _.jI(this,8)};var UP=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(UP,_.xo);UP.prototype.getCommand=function(){return _.s1(this,1)};
UP.prototype.getSource=function(){return _.CL(this,Ozb,2)};
UP.prototype.setVisible=function(D){return _.si(this,5,D)};
UP.prototype.removeItem=function(D){return HRc(this,7,D)};var KMF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(KMF,_.xo);KMF.prototype.getCommand=function(){return _.s1(this,1)};
KMF.prototype.removeItem=function(D){return HRc(this,4,D)};
var T0t=_.ko(KMF);var LD=function(D,v,h){h=h===void 0?Error():h;var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=D;v+=":";h instanceof Error?(this.message=v+h.message,this.stack=h.stack||""):(this.message=v+String(h),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.J(LD,Error);_.AN=function(){this.JSC$9538_disposed_=this.JSC$9538_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.AN.prototype.JSC$9538_disposed_=!1;_.AN.prototype.isDisposed=function(){return this.JSC$9538_disposed_};
_.AN.prototype.dispose=function(){this.JSC$9538_disposed_||(this.JSC$9538_disposed_=!0,this.disposeInternal())};
_.AN.prototype[Symbol.dispose]=function(){this.dispose()};
_.Ia=function(D,v){D.addOnDisposeCallback(_.NF(_.V5,v))};
_.AN.prototype.addOnDisposeCallback=function(D,v){this.JSC$9538_disposed_?v!==void 0?D.call(v):D():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),v&&(D=D.bind(v)),this.onDisposeCallbacks_.push(D))};
_.AN.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ZB=function(D){_.AN.call(this);this.wpc=D};
_.J(ZB,_.AN);ZB.prototype.pzX=function(){return this.wpc.f()};
ZB.prototype.iot=function(D){return this.wpc.c(D)};
ZB.prototype.b6=function(D){return this.wpc.m(wvf(D))};
ZB.prototype.znr=function(D){return this.wpc.mws(wvf(D))};
var xq=function(D){_.AN.call(this);var v=this;this.vm=D;this.wAX="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.xbW=void 0;this.tU6=this.vm.p;this.spa=this.lkK.bind(this);this.addOnDisposeCallback(function(){return void RBy(v)})};
_.J(xq,_.AN);var izR=function(D){var v;return _.M(function(h){if(h.nextAddress==1){if(!D.vm.wpc)throw new LD(30,"NWA");return D.zyE?h.return(D.zyE):h.yield(D.vm.wpc(),2)}v=h.yieldResult;D.zyE=new ZB(v);return h.return(D.zyE)})};
xq.prototype.snapshot=function(D){return this.vm.s(Object.assign({},D.pG&&{c:D.pG},D.j1G&&{s:D.j1G},D.zW6!==void 0&&{p:D.zW6}))};
xq.prototype.lkK=function(D){this.vm.e(D)};
xq.prototype.h2H=function(D,v){return this.vm.c(D,v,!1)};
var RBy=function(D){D.xbW!==void 0&&(D.wAX.forEach(function(v){var h;(h=D.xbW)==null||h.removeEventListener(v,D.spa)}),D.xbW=void 0)};
xq.prototype.w32=function(){return this.vm.l()};var EP=function(){_.AN.apply(this,arguments);this.cQw=1};
_.J(EP,_.AN);EP.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.cQw++;return this};
EP.prototype.dispose=function(){--this.cQw||_.AN.prototype.dispose.call(this)};var WMm=function(D){this.pZs=D;D.addNewEventMetric("/client_streamz/bg/frs",_.zQ("mk"))};
WMm.prototype.record=function(D,v){this.pZs.record("/client_streamz/bg/frs",D,v)};
var tRy=function(D){this.wZq=D;D.addNewEventMetric("/client_streamz/bg/wrl",_.zQ("mn"),F6("ac"),F6("sc"),_.zQ("rk"),_.zQ("mk"))};
tRy.prototype.record=function(D,v,h,a,Q,G){this.wZq.record("/client_streamz/bg/wrl",D,v,h,a,Q,G)};
var r3m=function(D){this.vvS=D;D.addNewCounter("/client_streamz/bg/ec",_.zQ("en"),_.zQ("mk"))};
r3m.prototype.increment=function(D,v){this.vvS.JSC$9791_incrementCounter("/client_streamz/bg/ec",D,v)};
var uYs=function(D){this.jni=D;D.addNewEventMetric("/client_streamz/bg/el",_.zQ("en"),_.zQ("mk"))};
uYs.prototype.record=function(D,v,h){this.jni.record("/client_streamz/bg/el",D,v,h)};
var DS1=function(D){this.mnw=D;D.addNewCounter("/client_streamz/bg/cec",F6("ec"),_.zQ("mk"))};
DS1.prototype.increment=function(D,v){this.mnw.JSC$9791_incrementCounter("/client_streamz/bg/cec",D,v)};
var vIy=function(D){this.tuc=D;D.addNewCounter("/client_streamz/bg/po/csc",F6("cs"),_.zQ("mk"))};
vIy.prototype.increment=function(D,v){this.tuc.JSC$9791_incrementCounter("/client_streamz/bg/po/csc",D,v)};
var hJ4=function(D){this.kda=D;D.addNewCounter("/client_streamz/bg/po/ctav",_.zQ("av"),_.zQ("mk"))};
hJ4.prototype.increment=function(D,v){this.kda.JSC$9791_incrementCounter("/client_streamz/bg/po/ctav",D,v)};
var ax$=function(D){this.iDC=D;D.addNewCounter("/client_streamz/bg/po/cwsc",_.zQ("su"),_.zQ("mk"))};
ax$.prototype.increment=function(D,v){this.iDC.JSC$9791_incrementCounter("/client_streamz/bg/po/cwsc",D,v)};var UM8=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(UM8,_.xo);var zxI=function(D,v){return _.vd(D,3,v,gp8)};var $S4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J($S4,_.xo);var Q9y=[1,2,3];var Gep=[0,Q9y,_.G6,BA2,AGf];var V_p=[0,_.Va,[0,t8,_.rY]];var PzR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(PzR,_.xo);var xSt=[1,2,3];var M_F=[0,xSt,NAL,SgL,_.Pu,V_p];var fx9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(fx9,_.xo);var Czm=[0,_.Va,Gep,M_F];var oIs=[0,_.$a];var Fk$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Fk$,_.xo);var zJy=[0,_.$a,-1,_.hy];var US9=[0,_.$a,-1,_.vu,_.hy];var Lk4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Lk4,_.xo);var ZfF=[1,2,3];var EIF=[0,ZfF,_.Pu,zJy,_.Pu,US9,_.Pu,oIs];var Ixp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Ixp,_.xo);Ixp.prototype.JSC$9611_serializeBinary=Ozc([0,_.$a,EIF,qg8,_.Va,Czm,cGi,Xou]);var gIp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(gIp,_.xo);var Jw1=function(D){var v=new Ixp;v=_.Xx(v,1,D.JSC$9727_metricName);var h=kes(D);v=_.vd(v,3,h,_.IU);h=[];for(var a=[],Q=_.P(D.cellMap.keys()),G=Q.next();!G.done;G=Q.next())a.push(G.value.split(","));for(Q=0;Q<a.length;Q++){G=a[Q];for(var x=D.cellType,f=D.getCells(G)||[],C=[],U=0;U<f.length;U++){var L=f[U],Z=L&&L.cellValue;L=new PzR;switch(x){case 3:Z=Number(Z);Number.isFinite(Z)&&gf(L,1,xSt,oU(Z));break;case 2:gf(L,2,xSt,_.Ty(Number(Z)))}C.push(L)}x=C;for(f=0;f<x.length;f++){C=x[f];U=new fx9;C=_.lH(U,
2,C);U=[];L=SXF(D);for(Z=0;Z<L.length;Z++){var E=L[Z],I=G[Z],S=new $S4;switch(E){case 3:gf(S,1,Q9y,Jr(String(I)));break;case 2:E=Number(I);Number.isFinite(E)&&gf(S,2,Q9y,_.QK(E));break;case 1:gf(S,3,Q9y,Z4q(I==="true"))}U.push(S)}cD(C,1,U);h.push(C)}}cD(v,4,h);return v};var ppR=function(D){if(!D)return"";if(/^about:(?:blank|srcdoc)$/.test(D))return window.origin||"";D.indexOf("blob:")===0&&(D=D.substring(5));D=D.split("#")[0].split("?")[0];D=D.toLowerCase();D.indexOf("//")==0&&(D=window.location.protocol+D);/^[\w\-]*:\/\//.test(D)||(D=window.location.href);var v=D.substring(D.indexOf("://")+3),h=v.indexOf("/");h!=-1&&(v=v.substring(0,h));h=D.substring(0,D.indexOf("://"));if(!h)throw Error("qa`"+D);if(h!=="http"&&h!=="https"&&h!=="chrome-extension"&&h!=="moz-extension"&&
h!=="file"&&h!=="android-app"&&h!=="chrome-search"&&h!=="chrome-untrusted"&&h!=="chrome"&&h!=="app"&&h!=="devtools")throw Error("ra`"+h);D="";var a=v.indexOf(":");if(a!=-1){var Q=v.substring(a+1);v=v.substring(0,a);if(h==="http"&&Q!=="80"||h==="https"&&Q!=="443")D=":"+Q}return h+"://"+v+D};var NEJ=function(D,v,h){var a=String(_.$L.location.href);return a&&D&&v?[v,lx$(ppR(a),D,h||null)].join(" "):null},lx$=function(D,v,h){var a=[],Q=[];
if((Array.isArray(h)?2:1)==1)return Q=[v,D],_.rM(a,function(f){Q.push(f)}),YXM(Q.join(" "));
var G=[],x=[];_.rM(h,function(f){x.push(f.key);G.push(f.value)});
h=Math.floor((new Date).getTime()/1E3);Q=G.length==0?[h,v,D]:[G.join(":"),h,v,D];_.rM(a,function(f){Q.push(f)});
D=YXM(Q.join(" "));D=[h,D];x.length==0||D.push(x.join(""));return D.join("_")},YXM=function(D){var v=W9A();
v.update(D);return v.digestString().toLowerCase()};var II=function(D){this.JSC$9622_document_=D||{cookie:""}},BEy;
_.V=II.prototype;_.V.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};
_.V.set=function(D,v,h){var a=!1;if(typeof h==="object"){var Q=h.sameSite;a=h.secure||!1;var G=h.domain||void 0;var x=h.path||void 0;var f=h.maxAge}if(/[;=\s]/.test(D))throw Error("sa`"+D);if(/[;\r\n]/.test(v))throw Error("ta`"+v);f===void 0&&(f=-1);h=G?";domain="+G:"";x=x?";path="+x:"";a=a?";secure":"";f=f<0?"":f==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+f*1E3)).toUTCString();this.JSC$9622_document_.cookie=D+"="+v+h+x+f+a+(Q!=null?";samesite="+Q:"")};
_.V.get=function(D,v){for(var h=D+"=",a=(this.JSC$9622_document_.cookie||"").split(";"),Q=0,G;Q<a.length;Q++){G=zu(a[Q]);if(G.lastIndexOf(h,0)==0)return G.slice(h.length);if(G==D)return""}return v};
_.V.remove=function(D,v,h){var a=this.containsKey(D);this.set(D,"",{maxAge:0,path:v,domain:h});return a};
_.V.getKeys=function(){return BEy(this).keys};
_.V.getValues=function(){return BEy(this).values};
_.V.isEmpty=function(){return!this.JSC$9622_document_.cookie};
_.V.getCount=function(){return this.JSC$9622_document_.cookie?(this.JSC$9622_document_.cookie||"").split(";").length:0};
_.V.containsKey=function(D){return this.get(D)!==void 0};
_.V.containsValue=function(D){for(var v=BEy(this).values,h=0;h<v.length;h++)if(v[h]==D)return!0;return!1};
_.V.clear=function(){for(var D=BEy(this).keys,v=D.length-1;v>=0;v--)this.remove(D[v])};
BEy=function(D){D=(D.JSC$9622_document_.cookie||"").split(";");for(var v=[],h=[],a,Q,G=0;G<D.length;G++)Q=zu(D[G]),a=Q.indexOf("="),a==-1?(v.push(""),h.push(Q)):(v.push(Q.substring(0,a)),h.push(Q.substring(a+1)));return{keys:v,values:h}};
_.l8=new II(typeof document=="undefined"?null:document);var ATA,cwm;ATA=function(){var D=_.$L.__SAPISID||_.$L.__APISID||_.$L.__3PSAPISID||_.$L.__1PSAPISID||_.$L.__OVERRIDE_SID;if(D)return!0;typeof document!=="undefined"&&(D=new II(document),D=D.get("SAPISID")||D.get("APISID")||D.get("__Secure-3PAPISID")||D.get("__Secure-1PAPISID"));return!!D};
cwm=function(D,v,h,a){(D=_.$L[D])||typeof document==="undefined"||(D=(new II(document)).get(v));return D?NEJ(D,h,a):null};
_.fpc=function(D){var v=ppR(_.$L==null?void 0:_.$L.location.href),h=[];if(ATA()){v=v.indexOf("https:")==0||v.indexOf("chrome-extension:")==0||v.indexOf("chrome-untrusted://new-tab-page")==0||v.indexOf("moz-extension:")==0;var a=v?_.$L.__SAPISID:_.$L.__APISID;a||typeof document==="undefined"||(a=new II(document),a=a.get(v?"SAPISID":"APISID")||a.get("__Secure-3PAPISID"));(a=a?NEJ(a,v?"SAPISIDHASH":"APISIDHASH",D):null)&&h.push(a);v&&((v=cwm("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",D))&&h.push(v),
(D=cwm("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",D))&&h.push(D))}return h.length==0?null:h.join(" ")};var Xp9=function(){this.minSize=1024};
Xp9.prototype.compress=function(D){var v,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return v=new CompressionStream("gzip"),h=(new Response(v.readable)).arrayBuffer(),a=v.writable.getWriter(),G.yield(a.write((new TextEncoder).encode(D)),2);case 2:return G.yield(a.close(),3);case 3:return Q=Uint8Array,G.yield(h,4);case 4:return G.return(new Q(G.yieldResult))}})};
Xp9.prototype.isSupported=function(D){return D<this.minSize?!1:typeof CompressionStream!=="undefined"};var Awt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Awt,_.xo);var g9=function(D,v){this.intervalMs=D;this.callback=v;this.enabled=!1;this.nowFn=function(){return _.M6()};
this.lastTimeMs=this.nowFn()};
g9.prototype.setInterval=function(D){this.intervalMs=D;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
g9.prototype.start=function(){var D=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){D.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
g9.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
g9.prototype.tick=function(){var D=this;if(this.enabled){var v=Math.max(this.nowFn()-this.lastTimeMs,0);v<this.intervalMs*.8?this.timer=setTimeout(function(){D.tick()},this.intervalMs-v):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var qXR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(qXR,_.xo);var bfs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(bfs,_.xo);var dS4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(dS4,_.xo);dS4.prototype.getTransmissionType=function(){return _.s1(this,1)};var DMc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(DMc,_.xo);DMc.prototype.getVersion=function(){return _.jI(this,2)};var ky=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(ky,_.xo);var udA=function(D){cD(vdu,1,D)};
ky.prototype.getModel=function(){return _.jI(this,6)};
var j94=_.ko(ky);var s94=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(s94,_.xo);var tAo=["platform","platformVersion","architecture","model","uaFullVersion"],vdu=new ky,r$q=null;var SZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(SZ,_.xo);var mS1=function(D){return _.oe(D,1,1)};var Hfs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,4)};
_.J(Hfs,_.xo);_.JJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,36)};
_.J(_.JJ,_.xo);_.JJ.prototype.getExperimentIds=function(){return _.CL(this,Awt,16)};var ywR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,19)};
_.J(ywR,_.xo);ywR.prototype.setLogSource=function(D){return _.oe(this,2,D)};
ywR.prototype.setScheduler=function(D){return _.oe(this,10,D)};var eJ9=function(D,v){this.isServiceWorkerScope=v=v===void 0?!1:v;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new ywR;Number.isInteger(D)&&this.logRequest.setLogSource(D);v||(this.locale=document.documentElement.getAttribute("lang"));wpJ(this,new SZ)};
eJ9.prototype.setLogSource=function(D){this.logRequest.setLogSource(D);return this};
var wpJ=function(D,v){_.lH(D.logRequest,1,v);_.s1(v,1)||mS1(v);D.isServiceWorkerScope||(v=pD(D),_.jI(v,5)||_.Xx(v,5,D.locale));D.uach&&(v=pD(D),_.CL(v,ky,9)||_.lH(v,9,D.uach))},nIt=function(D,v){D.transmissionType=v},Of4=function(D){var v=v===void 0?tAo:v;
var h=D.isServiceWorkerScope?void 0:yz();h?hx8(h,v).then(function(a){D.uach=j94(a!=null?a:"[]");a=pD(D);_.lH(a,9,D.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},pD=function(D){var v=_.CL(D.logRequest,SZ,1);
v||(v=new SZ,wpJ(D,v));D=v;v=_.CL(D,s94,11);v||(v=new s94,_.lH(D,11,v));return v};
eJ9.prototype.build=function(D,v,h,a,Q,G){v=v===void 0?0:v;h=h===void 0?0:h;a=a===void 0?null:a;Q=Q===void 0?0:Q;G=G===void 0?0:G;if(!this.isServiceWorkerScope){var x=pD(this);var f=new dS4;f=_.oe(f,1,this.transmissionType);f=_.UN(f,2,this.isFinal);h=_.wY(f,3,h>0?h:void 0);h=_.wY(h,4,Q>0?Q:void 0);h=_.wY(h,5,G>0?G:void 0);Q=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=Q[_.V$]|0;h=UF(h,G)?h:Y2I(h,Q,G)?Nrf(h,Q):new h.constructor(e$(Q,G,!0));_.lH(x,10,h)}x=this.logRequest.clone();h=Date.now().toString();
x=_.Fk(x,4,oU(h));D=D.slice();D=cD(x,3,D);a&&(x=new qXR,a=_.wY(x,13,a),x=new bfs,a=_.lH(x,2,a),x=new Hfs,a=_.lH(x,1,a),a=_.oe(a,2,9),_.lH(D,18,a));v&&_.Y_(D,14,v);return D};L0.prototype.currBackoffCount_=0;L0.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
L0.prototype.getValue=function(){return this.currValue_};
var Kkb=function(D){D.currBaseValue_=Math.min(D.maxValue_,D.currBaseValue_*D.backoffFactor_);D.currValue_=Math.min(D.maxValue_,D.currBaseValue_+(D.randomFactor_?Math.round(D.randomFactor_*(Math.random()-.5)*2*D.currBaseValue_):0));D.currBackoffCount_++};var yGo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,8)};
_.J(yGo,_.xo);var TEp=_.ko(yGo);var woc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(woc,_.xo);var ln;ln=new eEr;var NE=function(D){_.AN.call(this);var v=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9700_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$9700_sendBeaconApiEnabled=!1;this.logSource=D.logSource;this.getAuthHeaderValue=
D.getAuthHeaderValue||function(){};
this.logRequestBuilder=new eJ9(D.logSource,D.isServiceWorkerScope);this.network=D.network||null;this.productID=D.productID||null;this.bufferSize=1E3;this.clearcutUrl=D.urlOverride||null;this.sessionIndex=D.sessionIndex||null;this.disableAutomaticFlush=D.disableAutomaticFlush||!1;this.withCredentials=!D.disableWithCredentials;this.isServiceWorkerScope=D.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!yz()&&!!yz().navigator&&yz().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(RJ4())).searchParams&&!!(new URL(RJ4())).searchParams.set;var h=mS1(new SZ);wpJ(this.logRequestBuilder,h);this.flushBackoff=new L0(1E4,3E5,.1);D=if4(this,D.backgroundJobDeferrer);this.JSC$9700_flushTimer=new g9(this.flushBackoff.getValue(),D);this.backupTimer=new g9(6E5,D);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Wk4(v);
var a;(a=v.metalogService)==null||a.flush()}}),document.addEventListener("pagehide",function(){Wk4(v);
var a;(a=v.metalogService)==null||a.flush()}))};
_.J(NE,_.AN);var if4=function(D,v){return D.isBrowserSupported?v?function(){v().then(function(){D.flush()})}:function(){D.flush()}:function(){}};
NE.prototype.disposeInternal=function(){Wk4(this);this.JSC$9700_flushTimer.stop();this.backupTimer.stop();_.AN.prototype.disposeInternal.call(this)};
var t_9=function(D){D.clearcutUrl||(D.clearcutUrl=RJ4());try{return(new URL(D.clearcutUrl)).toString()}catch(v){return(new URL(D.clearcutUrl,yz().location.origin)).toString()}};
NE.prototype.dispatch=function(D){if(D instanceof _.JJ)this.log(D);else try{var v=new _.JJ,h=D.serialize();var a=_.Xx(v,8,h);this.log(a)}catch(Q){Yy(this,4,1)}};
var Yy=function(D,v,h){D.metalogService&&D.metalogService.increment(v,h)};
NE.prototype.log=function(D){Yy(this,2,1);if(this.isBrowserSupported){D=D.clone();var v=this.sequencePosition++;D=_.Y_(D,21,v);this.componentId&&_.Xx(D,26,this.componentId);v=D;if(j4A(_.J8(v,1))==null){var h=Date.now();h=Number.isFinite(h)?h.toString():"0";_.Fk(v,1,oU(h))}_.d1L(_.J8(v,15))!=null||_.Y_(v,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(h=this.experimentIds.clone(),_.lH(v,16,h));Yy(this,1,1);v=this.pendingEvents.length-this.bufferSize+1;v>0&&(this.pendingEvents.splice(0,v),
this.numLogsDroppedSinceLastFlush+=v,Yy(this,3,v));this.pendingEvents.push(D);this.disableAutomaticFlush||this.JSC$9700_flushTimer.enabled||this.JSC$9700_flushTimer.start()}};
NE.prototype.flush=function(D,v){var h=this;if(this.pendingEvents.length===0)D&&D();else if(this.JSC$9700_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,rw4(this);else{var a=Date.now();if(this.noFlushUntilMs>a&&this.startWaitingMs<a)v&&v("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?nIt(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Q=this.pendingEvents.length,
G=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),x=this.getAuthHeaderValue();if(x&&this.lastFailedAuth===x)v&&v("stale-auth-token");else{this.pendingEvents=[];this.JSC$9700_flushTimer.enabled&&this.JSC$9700_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;a=G.serialize();var f;this.JSC$9700_compressor&&this.JSC$9700_compressor.isSupported(a.length)&&
(f=this.JSC$9700_compressor.compress(a));var C=uy1(this,a,x),U=function(E){h.flushBackoff.reset();h.JSC$9700_flushTimer.setInterval(h.flushBackoff.getValue());if(E){var I=null;try{var S=JSON.stringify(JSON.parse(E.replace(")]}'\n","")));I=TEp(S)}catch(B){}I&&(E=Number(bT(I,1,_.Ab("-1"))),E>0&&(h.startWaitingMs=Date.now(),h.noFlushUntilMs=h.startWaitingMs+E),$Ii(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,ln.fieldIndex),hZc(I,ln.fieldIndex),I=ln.ctor?ln.getExtensionFn(I,ln.ctor,ln.fieldIndex,
ln.JSC$8881_hasMessageId):ln.getExtensionFn(I,ln.fieldIndex,null,ln.JSC$8881_hasMessageId),I=I===null?void 0:I)&&(I=_.C0(I,1,-1),I!==-1&&(h.flushBackoff=new L0(I<1?1:I,3E5,.1),h.JSC$9700_flushTimer.setInterval(h.flushBackoff.getValue())))}D&&D();h.numRetriesSinceLastSuccessfulFlush=0},L=function(E,I){var S=_.Mp(G,_.JJ,3,_.f0());
var B=Number(bT(G,14));Kkb(h.flushBackoff);h.JSC$9700_flushTimer.setInterval(h.flushBackoff.getValue());E===401&&x&&(h.lastFailedAuth=x);B&&(h.numLogsDroppedSinceLastFlush+=B);I===void 0&&(I=h.isRetryable(E));I&&(h.pendingEvents=S.concat(h.pendingEvents),h.disableAutomaticFlush||h.JSC$9700_flushTimer.enabled||h.JSC$9700_flushTimer.start());Yy(h,7,1);v&&v("net-send-failed",E);++h.numRetriesSinceLastSuccessfulFlush},Z=function(){h.network&&h.network.send(C,U,L)};
f?f.then(function(E){Yy(h,5,Q);C.requestHeaders["Content-Encoding"]="gzip";C.requestHeaders["Content-Type"]="application/binary";C.body=E;C.bodyType=2;Z()},function(){Yy(h,6,Q);
Z()}):Z()}}}};
var uy1=function(D,v,h){h=h===void 0?null:h;var a=a===void 0?D.withCredentials:a;var Q={},G=new URL(t_9(D));h&&(Q.Authorization=h);D.sessionIndex&&(Q["X-Goog-AuthUser"]=D.sessionIndex,G.searchParams.set("authuser",D.sessionIndex));D.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:D.pageId}),G.searchParams.set("pageId",D.pageId));return{url:G.toString(),body:v,bodyType:1,requestHeaders:Q,requestType:"POST",withCredentials:a,timeoutMillis:D.timeoutMillis}},Wk4=function(D){D.logRequestBuilder.isFinal=
!0;
D.flush();D.logRequestBuilder.isFinal=!1},rw4=function(D){DV1(D,function(v,h){v=new URL(v);
v.searchParams.set("format","json");var a=!1;try{a=yz().navigator.sendBeacon(v.toString(),h.serialize())}catch(Q){}a||(D.isSendBeaconSupported=!1);return a})},DV1=function(D,v){if(D.pendingEvents.length!==0){var h=new URL(t_9(D));
h.searchParams.delete("format");var a=D.getAuthHeaderValue();a&&h.searchParams.set("auth",a);h.searchParams.set("authuser",D.sessionIndex||"0");for(a=0;a<10&&D.pendingEvents.length;++a){var Q=D.pendingEvents.slice(0,32),G=D.logRequestBuilder.build(Q,D.numLogsDroppedSinceLastFlush,D.numRetriesSinceLastSuccessfulFlush,D.productID,D.persistedLogRecoveredCount,D.persistedLogExpiredCount);if(!v(h.toString(),G)){++D.numRetriesSinceLastSuccessfulFlush;break}D.numLogsDroppedSinceLastFlush=0;D.numRetriesSinceLastSuccessfulFlush=
0;D.persistedLogRecoveredCount=0;D.persistedLogExpiredCount=0;D.pendingEvents=D.pendingEvents.slice(Q.length)}D.JSC$9700_flushTimer.enabled&&D.JSC$9700_flushTimer.stop()}};
NE.prototype.isRetryable=function(D){return 500<=D&&D<600||D===401||D===0};
var RJ4=function(){return"https://play.google.com/log?format=json&hasfast=true"};var vJ4=function(){this.abortSupported=typeof AbortController!=="undefined"};
vJ4.prototype.send=function(D,v,h){var a=this,Q,G,x,f,C,U,L,Z,E,I;return _.M(function(S){switch(S.nextAddress){case 1:return G=(Q=a.abortSupported?new AbortController:void 0)?setTimeout(function(){Q.abort()},D.timeoutMillis):void 0,_.gE(S,2,3),x=Object.assign({},{method:D.requestType,
headers:Object.assign({},D.requestHeaders)},D.body&&{body:D.body},D.withCredentials&&{credentials:"include"},{signal:D.timeoutMillis&&Q?Q.signal:null}),S.yield(fetch(D.url,x),5);case 5:f=S.yieldResult;if(f.status!==200){(C=h)==null||C(f.status);S.jumpTo(3);break}if((U=v)==null){S.jumpTo(7);break}return S.yield(f.text(),8);case 8:U(S.yieldResult);case 7:case 3:_.S_(S);clearTimeout(G);_.pf(S,0);break;case 2:L=_.NS(S);switch((Z=L)==null?void 0:Z.name){case "AbortError":(E=h)==null||E(408);break;default:(I=
h)==null||I(400)}S.jumpTo(3)}})};
vJ4.prototype.getTransmissionType=function(){return 4};_.EN=function(D,v){v=v===void 0?"0":v;_.AN.call(this);this.logSource=D;this.sessionIndex=v;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9718_clearExperimentIds=this.productID=null;this.JSC$9718_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.J(_.EN,_.AN);var C8u=function(D,v){D.buildLabel=v;return D},fXL=function(D,v){D.network=v;
return D},Fbu=function(D,v){D.JSC$9718_clearExperimentIds=v},MOr=function(D){D.JSC$9718_sendBeaconApiEnabled=!0;
return D};
_.EN.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.EN.prototype.build=function(){this.network||(this.network=new vJ4);var D=new NE({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.fpc,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Ia(this,D);if(this.buildLabel){var v=this.buildLabel,h=
pD(D.logRequestBuilder);_.Xx(h,7,v)}D.JSC$9700_compressor=new Xp9;this.componentId&&(D.componentId=this.componentId);this.productID&&(D.productID=this.productID);this.pageId&&(D.pageId=this.pageId);this.JSC$9718_clearExperimentIds&&((h=this.JSC$9718_clearExperimentIds)?(D.experimentIds||(D.experimentIds=new Awt),v=D.experimentIds,h=h.serialize(),_.Xx(v,4,h)):D.experimentIds&&_.Fk(D.experimentIds,4));this.JSC$9718_sendBeaconApiEnabled&&(D.JSC$9700_sendBeaconApiEnabled=D.isSendBeaconSupported);Of4(D.logRequestBuilder);
this.bufferSize&&(D.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(D);return D};var Lb8=function(D,v,h,a,Q,G,x){D=D===void 0?-1:D;v=v===void 0?"":v;h=h===void 0?"":h;a=a===void 0?!1:a;Q=Q===void 0?"":Q;_.AN.call(this);this.logSource=D;this.componentId=v;G?v=G:(D=new _.EN(D,"0"),D.componentId=v,_.Ia(this,D),h!==""&&(D.destinationUrl=h),a&&(D.serviceWorkerScopeEnabled=!0),Q&&C8u(D,Q),x&&fXL(D,x),v=D.build());this.JSC$9722_transport=v};
_.J(Lb8,_.AN);Lb8.prototype.flush=function(D){D=D||[];if(D.length){for(var v=new gIp,h=[],a=0;a<D.length;a++){var Q=D[a],G=Jw1(Q);h.push(G);Q.clear()}cD(v,1,h);this.JSC$9722_transport.dispatch(v);this.JSC$9722_transport.flush()}};var h3$=function(D){this.cellValue=D};var BZ=function(D,v,h){this.JSC$9727_metricName=D;this.cellType=v;this.fields=h||[];this.cellMap=new Map},SXF=function(D){return D.fields.map(function(v){return v.fieldType})},kes=function(D){return D.fields.map(function(v){return v.fieldName})};
_.V=BZ.prototype;_.V.addCell=function(D){var v=_.Kz.apply(1,arguments),h=this.getCells(v);h?h.push(new h3$(D)):this.JSC$9727_setCell(D,v)};
_.V.JSC$9727_setCell=function(D){var v=this.JSC$9727_getKey(_.Kz.apply(1,arguments));this.cellMap.set(v,[new h3$(D)])};
_.V.getCells=function(){var D=this.JSC$9727_getKey(_.Kz.apply(0,arguments));return this.cellMap.has(D)?this.cellMap.get(D):void 0};
_.V.getCell=function(){var D=this.getCells(_.Kz.apply(0,arguments));return D&&D.length?D[0]:void 0};
_.V.clear=function(){this.cellMap.clear()};
_.V.JSC$9727_getKey=function(){var D=_.Kz.apply(0,arguments);return D?D.join(","):"key"};var a3F=function(D,v){BZ.call(this,D,3,v)};
_.J(a3F,BZ);a3F.prototype.JSC$9730_incrementCounterBy=function(D){var v=_.Kz.apply(1,arguments),h=0,a=this.getCell(v);a&&(h=a.cellValue);this.JSC$9727_setCell(h+D,v)};var $VM=function(D,v){BZ.call(this,D,2,v)};
_.J($VM,BZ);$VM.prototype.record=function(D){this.addCell(D,_.Kz.apply(1,arguments))};_.cZ=function(D){this.id=D};
_.cZ.prototype.toString=function(){return this.id};_.XI=function(D,v){this.type=D instanceof _.cZ?String(D):D;this.currentTarget=this.target=v;this.defaultPrevented=this.propagationStopped_=!1};
_.XI.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.XI.prototype.preventDefault=function(){this.defaultPrevented=!0};_.AJ=function(D,v){_.XI.call(this,D?D.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;D&&this.init(D,v)};
_.fa(_.AJ,_.XI);
_.AJ.prototype.init=function(D,v){var h=this.type=D.type,a=D.changedTouches&&D.changedTouches.length?D.changedTouches[0]:null;this.target=D.target||D.srcElement;this.currentTarget=v;v=D.relatedTarget;v||(h=="mouseover"?v=D.fromElement:h=="mouseout"&&(v=D.toElement));this.relatedTarget=v;a?(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.offsetX=_.La||D.offsetX!==void 0?D.offsetX:D.layerX,
this.offsetY=_.La||D.offsetY!==void 0?D.offsetY:D.layerY,this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0);this.button=D.button;this.keyCode=D.keyCode||0;this.key=D.key||"";this.charCode=D.charCode||(h=="keypress"?D.keyCode:0);this.ctrlKey=D.ctrlKey;this.altKey=D.altKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pointerId=D.pointerId||0;this.pointerType=D.pointerType;this.state=D.state;
this.timeStamp=D.timeStamp;this.event_=D;D.defaultPrevented&&_.AJ.superClass_.preventDefault.call(this)};
_.AJ.prototype.isButton=function(D){return this.event_.button==D};
_.AJ.prototype.stopPropagation=function(){_.AJ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.AJ.prototype.preventDefault=function(){_.AJ.superClass_.preventDefault.call(this);var D=this.event_;D.preventDefault?D.preventDefault():D.returnValue=!1};var QPR="closure_listenable_"+(Math.random()*1E6|0),qE=function(D){return!(!D||!D[QPR])};var GYJ=0;var V9b=function(D,v,h,a,Q){this.listener=D;this.proxy=null;this.src=v;this.type=h;this.capture=!!a;this.handler=Q;this.key=++GYJ;this.removed=this.callOnce=!1},PUb=function(D){D.removed=!0;
D.listener=null;D.proxy=null;D.src=null;D.handler=null};Zc.prototype.add=function(D,v,h,a,Q){var G=D.toString();D=this.listeners[G];D||(D=this.listeners[G]=[],this.typeCount_++);var x=xVb(D,v,a,Q);x>-1?(v=D[x],h||(v.callOnce=!1)):(v=new V9b(v,this.src,G,!!a,Q),v.callOnce=h,D.push(v));return v};
Zc.prototype.remove=function(D,v,h,a){D=D.toString();if(!(D in this.listeners))return!1;var Q=this.listeners[D];v=xVb(Q,v,h,a);return v>-1?(PUb(Q[v]),_.XAi(Q,v),Q.length==0&&(delete this.listeners[D],this.typeCount_--),!0):!1};
var M9y=function(D,v){var h=v.type;if(!(h in D.listeners))return!1;var a=_.e2(D.listeners[h],v);a&&(PUb(v),D.listeners[h].length==0&&(delete D.listeners[h],D.typeCount_--));return a};
Zc.prototype.removeAll=function(D){D=D&&D.toString();var v=0,h;for(h in this.listeners)if(!D||h==D){for(var a=this.listeners[h],Q=0;Q<a.length;Q++)++v,PUb(a[Q]);delete this.listeners[h];this.typeCount_--}return v};
Zc.prototype.getListener=function(D,v,h,a){D=this.listeners[D.toString()];var Q=-1;D&&(Q=xVb(D,v,h,a));return Q>-1?D[Q]:null};
Zc.prototype.hasListener=function(D,v){var h=D!==void 0,a=h?D.toString():"",Q=v!==void 0;return _.sV.some(this.listeners,function(G){for(var x=0;x<G.length;++x)if(!(h&&G[x].type!=a||Q&&G[x].capture!=v))return!0;return!1})};
var xVb=function(D,v,h,a){for(var Q=0;Q<D.length;++Q){var G=D[Q];if(!G.removed&&G.listener==v&&G.capture==!!h&&G.handler==a)return Q}return-1};var f3F,CUp,oJt,z34,UV4,qK,bP,EJM,LOt,ZTt,bn,I3J,FO4;f3F="closure_lm_"+(Math.random()*1E6|0);CUp={};oJt=0;_.s_=function(D,v,h,a,Q){if(a&&a.once)return qK(D,v,h,a,Q);if(Array.isArray(v)){for(var G=0;G<v.length;G++)_.s_(D,v[G],h,a,Q);return null}h=FO4(h);return qE(D)?D.listen(v,h,_.Ro(a)?!!a.capture:!!a,Q):z34(D,v,h,!1,a,Q)};
z34=function(D,v,h,a,Q,G){if(!v)throw Error("va");var x=_.Ro(Q)?!!Q.capture:!!Q,f=bn(D);f||(D[f3F]=f=new Zc(D));h=f.add(v,h,a,x,G);if(h.proxy)return h;a=UV4();h.proxy=a;a.src=D;a.listener=h;if(D.addEventListener)_.LI4||(Q=x),Q===void 0&&(Q=!1),D.addEventListener(v.toString(),a,Q);else if(D.attachEvent)D.attachEvent(LOt(v.toString()),a);else if(D.addListener&&D.removeListener)D.addListener(a);else throw Error("wa");oJt++;return h};
UV4=function(){var D=ZTt,v=function(h){return D.call(v.src,v.listener,h)};
return v};
qK=function(D,v,h,a,Q){if(Array.isArray(v)){for(var G=0;G<v.length;G++)qK(D,v[G],h,a,Q);return null}h=FO4(h);return qE(D)?D.listenOnce(v,h,_.Ro(a)?!!a.capture:!!a,Q):z34(D,v,h,!0,a,Q)};
_.d9=function(D,v,h,a,Q){if(Array.isArray(v))for(var G=0;G<v.length;G++)_.d9(D,v[G],h,a,Q);else a=_.Ro(a)?!!a.capture:!!a,h=FO4(h),qE(D)?D.unlisten(v,h,a,Q):D&&(D=bn(D))&&(v=D.getListener(v,h,a,Q))&&bP(v)};
bP=function(D){if(typeof D==="number"||!D||D.removed)return!1;var v=D.src;if(qE(v))return M9y(v.eventTargetListeners_,D);var h=D.type,a=D.proxy;v.removeEventListener?v.removeEventListener(h,a,D.capture):v.detachEvent?v.detachEvent(LOt(h),a):v.addListener&&v.removeListener&&v.removeListener(a);oJt--;(h=bn(v))?(M9y(h,D),h.typeCount_==0&&(h.src=null,v[f3F]=null)):PUb(D);return!0};
EJM=function(D,v,h,a,Q){h=FO4(h);a=!!a;return qE(D)?D.getListener(v,h,a,Q):D?(D=bn(D))?D.getListener(v,h,a,Q):null:null};
LOt=function(D){return D in CUp?CUp[D]:CUp[D]="on"+D};
ZTt=function(D,v){if(D.removed)D=!0;else{v=new _.AJ(v,this);var h=D.listener,a=D.handler||D.src;D.callOnce&&bP(D);D=h.call(a,v)}return D};
bn=function(D){D=D[f3F];return D instanceof Zc?D:null};
I3J="__closure_events_fn_"+(Math.random()*1E9>>>0);FO4=function(D){if(typeof D==="function")return D;D[I3J]||(D[I3J]=function(v){return D.handleEvent(v)});
return D[I3J]};_.jZ=function(){_.AN.call(this);this.eventTargetListeners_=new Zc(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.fa(_.jZ,_.AN);_.jZ.prototype[QPR]=!0;_.V=_.jZ.prototype;_.V.setParentEventTarget=function(D){this.parentEventTarget_=D};
_.V.addEventListener=function(D,v,h,a){_.s_(this,D,v,h,a)};
_.V.removeEventListener=function(D,v,h,a){_.d9(this,D,v,h,a)};
_.V.dispatchEvent=function(D){var v,h=this.parentEventTarget_;if(h)for(v=[];h;h=h.parentEventTarget_)v.push(h);h=this.actualEventTarget_;var a=D.type||D;if(typeof D==="string")D=new _.XI(D,h);else if(D instanceof _.XI)D.target=D.target||h;else{var Q=D;D=new _.XI(a,h);_.sV.extend(D,Q)}Q=!0;var G;if(v)for(G=v.length-1;!D.propagationStopped_&&G>=0;G--){var x=D.currentTarget=v[G];Q=gJJ(x,a,!0,D)&&Q}D.propagationStopped_||(x=D.currentTarget=h,Q=gJJ(x,a,!0,D)&&Q,D.propagationStopped_||(Q=gJJ(x,a,!1,D)&&
Q));if(v)for(G=0;!D.propagationStopped_&&G<v.length;G++)x=D.currentTarget=v[G],Q=gJJ(x,a,!1,D)&&Q;return Q};
_.V.disposeInternal=function(){_.jZ.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.V.listen=function(D,v,h,a){return this.eventTargetListeners_.add(String(D),v,!1,h,a)};
_.V.listenOnce=function(D,v,h,a){return this.eventTargetListeners_.add(String(D),v,!0,h,a)};
_.V.unlisten=function(D,v,h,a){return this.eventTargetListeners_.remove(String(D),v,h,a)};
_.V.removeAllListeners=function(D){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(D):0};
var gJJ=function(D,v,h,a){v=D.eventTargetListeners_.listeners[String(v)];if(!v)return!0;v=v.concat();for(var Q=!0,G=0;G<v.length;++G){var x=v[G];if(x&&!x.removed&&x.capture==h){var f=x.listener,C=x.handler||x.src;x.callOnce&&M9y(D.eventTargetListeners_,x);Q=f.call(C,a)!==!1&&Q}}return Q&&!a.defaultPrevented};
_.jZ.prototype.getListener=function(D,v,h,a){return this.eventTargetListeners_.getListener(String(D),v,h,a)};
_.jZ.prototype.hasListener=function(D,v){return this.eventTargetListeners_.hasListener(D!==void 0?String(D):void 0,v)};var sP=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(D){return D&&AsyncContext.Snapshot.wrap(D)}:function(D){return D};var kY$=function(D,v){this.create_=D;this.reset_=v;this.occupants_=0;this.JSC$9762_head_=null};
kY$.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var D=this.JSC$9762_head_;this.JSC$9762_head_=D.next;D.next=null}else D=this.create_();return D};
kY$.prototype.put=function(D){this.reset_(D);this.occupants_<100&&(this.occupants_++,D.next=this.JSC$9762_head_,this.JSC$9762_head_=D)};var SVJ=function(){this.workTail_=this.workHead_=null};
SVJ.prototype.add=function(D,v){var h=$Mu.get();h.set(D,v);this.workTail_?this.workTail_.next=h:this.workHead_=h;this.workTail_=h};
SVJ.prototype.remove=function(){var D=null;this.workHead_&&(D=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),D.next=null);return D};
var $Mu=new kY$(function(){return new J1m},function(D){return D.reset()}),J1m=function(){this.next=this.scope=this.fn=null};
J1m.prototype.set=function(D,v){this.fn=D;this.scope=v;this.next=null};
J1m.prototype.reset=function(){this.next=this.scope=this.fn=null};var pWM,QZf,aXo,l3p;QZf=!1;aXo=new SVJ;_.mF=function(D,v){pWM||l3p();QZf||(pWM(),QZf=!0);aXo.add(D,v)};
l3p=function(){var D=Promise.resolve(void 0);pWM=function(){D.then(Gii)}};var NDR=function(D){D.prototype.$goog_Thenable=!0},YVR=function(D){if(!D)return!1;
try{return!!D.$goog_Thenable}catch(v){return!1}};var BD$,c14,XW$,qVm,bTF,dVR,HTm,e3J,TDJ,OTy,bwo;_.IB=function(D,v){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(D!=_.Ay)try{var h=this;D.call(v,function(a){h.resolve_(2,a)},function(a){h.resolve_(3,a)})}catch(a){this.resolve_(3,a)}};
BD$=function(){this.next=this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
BD$.prototype.reset=function(){this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
c14=new kY$(function(){return new BD$},function(D){D.reset()});
XW$=function(D,v,h){var a=c14.get();a.JSC$9773_onFulfilled=D;a.JSC$9773_onRejected=v;a.context=h;return a};
_.E9=function(D){if(D instanceof _.IB)return D;var v=new _.IB(_.Ay);v.resolve_(2,D);return v};
_.H8=function(D){return new _.IB(function(v,h){h(D)})};
qVm=function(D,v,h){A1J(D,v,h,null)||_.mF(_.NF(v,D))};
_.HZ=function(D){return new _.IB(function(v,h){var a=D.length,Q=[];if(a)for(var G=function(U,L){a--;Q[U]=L;a==0&&v(Q)},x=function(U){h(U)},f,C=0;C<D.length;C++)f=D[C],qVm(f,_.NF(G,C),x);
else v(Q)})};
bTF=function(D){return new _.IB(function(v){var h=D.length,a=[];if(h)for(var Q=function(f,C,U){h--;a[f]=C?{fulfilled:!0,value:U}:{fulfilled:!1,reason:U};h==0&&v(a)},G,x=0;x<D.length;x++)G=D[x],qVm(G,_.NF(Q,x,!0),_.NF(Q,x,!1));
else v(a)})};
dVR=function(D){return new _.IB(function(v,h){var a=D.length,Q=[];if(a)for(var G=function(U){v(U)},x=function(U,L){a--;
Q[U]=L;a==0&&h(Q)},f,C=0;C<D.length;C++)f=D[C],qVm(f,G,_.NF(x,C));
else v(void 0)})};
_.hn=function(){var D,v,h=new _.IB(function(a,Q){D=a;v=Q});
return new jP4(h,D,v)};
_.IB.prototype.then=function(D,v,h){return sPp(this,sP(typeof D==="function"?D:null),sP(typeof v==="function"?v:null),h)};
NDR(_.IB);HTm=function(D,v,h,a){mVR(D,XW$(v||_.Ay,h||null,a))};
_.yS=function(D,v){v=sP(v);v=XW$(v,v);v.always=!0;mVR(D,v);return D};
_.IB.prototype.finally=function(D){var v=this;D=sP(D);return new _.IB(function(h,a){HTm(v,function(Q){D();h(Q)},function(Q){D();
a(Q)})})};
_.IB.prototype.thenCatch=function(D,v){return sPp(this,null,sP(D),v)};
_.IB.prototype.catch=_.IB.prototype.thenCatch;_.IB.prototype.cancel=function(D){if(this.state_==0){var v=new _.Oy(D);_.mF(function(){y19(this,v)},this)}};
var y19=function(D,v){if(D.state_==0)if(D.parent_){var h=D.parent_;if(h.callbackEntries_){for(var a=0,Q=null,G=null,x=h.callbackEntries_;x&&(x.always||(a++,x.child==D&&(Q=x),!(Q&&a>1)));x=x.next)Q||(G=x);Q&&(h.state_==0&&a==1?y19(h,v):(G?(a=G,a.next==h.callbackEntriesTail_&&(h.callbackEntriesTail_=a),a.next=a.next.next):wW$(h),e3J(h,Q,3,v)))}D.parent_=null}else D.resolve_(3,v)},mVR=function(D,v){D.callbackEntries_||D.state_!=2&&D.state_!=3||nJb(D);
D.callbackEntriesTail_?D.callbackEntriesTail_.next=v:D.callbackEntries_=v;D.callbackEntriesTail_=v},sPp=function(D,v,h,a){var Q=XW$(null,null,null);
Q.child=new _.IB(function(G,x){Q.JSC$9773_onFulfilled=v?function(f){try{var C=v.call(a,f);G(C)}catch(U){x(U)}}:G;
Q.JSC$9773_onRejected=h?function(f){try{var C=h.call(a,f);C===void 0&&f instanceof _.Oy?x(f):G(C)}catch(U){x(U)}}:x});
Q.child.parent_=D;mVR(D,Q);return Q.child};
_.IB.prototype.unblockAndFulfill_=function(D){this.state_=0;this.resolve_(2,D)};
_.IB.prototype.unblockAndReject_=function(D){this.state_=0;this.resolve_(3,D)};
_.IB.prototype.resolve_=function(D,v){this.state_==0&&(this===v&&(D=3,v=new TypeError("xa")),this.state_=1,A1J(v,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=v,this.state_=D,this.parent_=null,nJb(this),D!=3||v instanceof _.Oy||OTy(this,v)))};
var A1J=function(D,v,h,a){if(D instanceof _.IB)return HTm(D,v,h,a),!0;if(YVR(D))return D.then(v,h,a),!0;if(_.Ro(D))try{var Q=D.then;if(typeof Q==="function")return KOm(D,Q,v,h,a),!0}catch(G){return h.call(a,G),!0}return!1},KOm=function(D,v,h,a,Q){var G=!1,x=function(C){G||(G=!0,h.call(Q,C))},f=function(C){G||(G=!0,a.call(Q,C))};
try{v.call(D,x,f)}catch(C){f(C)}},nJb=function(D){D.executing_||(D.executing_=!0,_.mF(D.executeCallbacks_,D))},wW$=function(D){var v=null;
D.callbackEntries_&&(v=D.callbackEntries_,D.callbackEntries_=v.next,v.next=null);D.callbackEntries_||(D.callbackEntriesTail_=null);return v};
_.IB.prototype.executeCallbacks_=function(){for(var D;D=wW$(this);)e3J(this,D,this.state_,this.result_);this.executing_=!1};
e3J=function(D,v,h,a){if(h==3&&v.JSC$9773_onRejected&&!v.always)for(;D&&D.hadUnhandledRejection_;D=D.parent_)D.hadUnhandledRejection_=!1;if(v.child)v.child.parent_=null,TDJ(v,h,a);else try{v.always?v.JSC$9773_onFulfilled.call(v.context):TDJ(v,h,a)}catch(Q){bwo.call(null,Q)}c14.put(v)};
TDJ=function(D,v,h){v==2?D.JSC$9773_onFulfilled.call(D.context,h):D.JSC$9773_onRejected&&D.JSC$9773_onRejected.call(D.context,h)};
OTy=function(D,v){D.hadUnhandledRejection_=!0;_.mF(function(){D.hadUnhandledRejection_&&bwo.call(null,v)})};
bwo=QO;_.Oy=function(D){_.hc.call(this,D)};
_.fa(_.Oy,_.hc);_.Oy.prototype.name="cancel";var jP4=function(D,v,h){this.promise=D;this.resolve=v;this.reject=h};var w9;_.Cm=function(D,v){_.jZ.call(this);this.JSC$9785_interval_=D||1;this.timerObject_=v||_.$L;this.boundTick_=(0,_.qp)(this.tick_,this);this.last_=_.M6()};
_.fa(_.Cm,_.jZ);_.V=_.Cm.prototype;_.V.enabled=!1;_.V.JSC$9787_timer_=null;_.V.setInterval=function(D){this.JSC$9785_interval_=D;this.JSC$9787_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9787_timer_&&this.stop()};
_.V.tick_=function(){if(this.enabled){var D=_.M6()-this.last_;D>0&&D<this.JSC$9785_interval_*.8?this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_-D):(this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.V.start=function(){this.enabled=!0;this.JSC$9787_timer_||(this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_),this.last_=_.M6())};
_.V.stop=function(){this.enabled=!1;this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null)};
_.V.disposeInternal=function(){_.Cm.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
w9=function(D,v,h){if(typeof D==="function")h&&(D=(0,_.qp)(D,h));else if(D&&typeof D.handleEvent=="function")D=(0,_.qp)(D.handleEvent,D);else throw Error("ya");return Number(v)>2147483647?-1:_.$L.setTimeout(D,v||0)};
_.R3y=function(D){var v=null;return(new _.IB(function(h,a){v=w9(function(){h(void 0)},D);
v==-1&&a(Error("za"))})).thenCatch(function(h){_.$L.clearTimeout(v);
throw h;})};var Se=function(D){_.AN.call(this);this.streamzLogger=D;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9791_flushTimer=new _.Cm(this.flushInterval);this.JSC$9791_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Ia(this,this.JSC$9791_flushTimer)};
_.J(Se,_.AN);Se.prototype.sendIsolatedPayload=function(D){this.shouldSendIsolatedPayload=D;this.invocationLimit=1};
var iTs=function(D){D.JSC$9791_flushTimer.enabled||D.JSC$9791_flushTimer.start();D.invocationCount++;D.invocationCount>=D.invocationLimit&&D.snapshotAndFlush()};
Se.prototype.snapshotAndFlush=function(){var D=this.metricMap.values();D=[].concat(_.j_(D)).filter(function(v){return v.cellMap.size});
D.length&&this.streamzLogger.flush(D,this.shouldSendIsolatedPayload);WOM(D);this.invocationCount=0;this.JSC$9791_flushTimer.enabled&&this.JSC$9791_flushTimer.stop()};
Se.prototype.addNewCounter=function(D){var v=_.Kz.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new a3F(D,v))};
Se.prototype.addNewEventMetric=function(D){var v=_.Kz.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new $VM(D,v))};
var t99=function(D,v){return D.disabledMetrics.has(v)?void 0:D.metricMap.get(v)};
Se.prototype.JSC$9791_incrementCounter=function(D){this.JSC$9791_incrementCounterBy(D,1,_.Kz.apply(1,arguments))};
Se.prototype.JSC$9791_incrementCounterBy=function(D,v){var h=_.Kz.apply(2,arguments),a=t99(this,D);a&&a instanceof a3F&&(a.JSC$9730_incrementCounterBy(v,h),iTs(this))};
Se.prototype.record=function(D,v){var h=_.Kz.apply(2,arguments),a=t99(this,D);a&&a instanceof $VM&&(a.record(v,h),iTs(this))};
var WOM=function(D){for(var v=0;v<D.length;v++)D[v].clear()};_.eZ=function(D,v,h){h=h===void 0?{}:h;v=Error.call(this,v);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=D;this.metadata=h;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.J(_.eZ,Error);_.eZ.prototype.toString=function(){var D="RpcError("+(P88(this.code)||String(this.code))+")";this.message&&(D+=": "+this.message);return D};_.r1J=_.$L.JSON.parse;_.nD=_.$L.JSON.stringify;_.jC=_.$L.JSON.parse;_.ux4=function(D){switch(D){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var Dpy=function(D){switch(D){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var vq4,hP$=function(){};
_.fa(hP$,_.xM2);hP$.prototype.createInstance=function(){return new XMLHttpRequest};
vq4=new hP$;_.OP=function(D){_.jZ.call(this);this.headers=new Map;this.JSC$9800_xmlHttpFactory_=D||null;this.JSC$9800_active_=!1;this.JSC$9800_xhr_=null;this.JSC$9800_lastUri_="";this.JSC$9800_lastErrorCode_=0;this.JSC$9800_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9800_timeoutId_=null;this.responseType_="";this.JSC$9800_withCredentials_=!1};
_.fa(_.OP,_.jZ);var ac4=/^https?$/i,$ps=["POST","PUT"],Qas=[],dw7=function(D,v,h,a,Q,G,x){var f=new _.OP;Qas.push(f);v&&f.listen("complete",v);f.listenOnce("ready",f.cleanupSend_);G&&(f.timeoutInterval_=Math.max(0,G));x&&(f.JSC$9800_withCredentials_=x);f.send(D,h,a,Q)};
_.OP.prototype.cleanupSend_=function(){this.dispose();_.e2(Qas,this)};
_.OP.prototype.send=function(D,v,h,a){if(this.JSC$9800_xhr_)throw Error("Aa`"+this.JSC$9800_lastUri_+"`"+D);v=v?v.toUpperCase():"GET";this.JSC$9800_lastUri_=D;this.JSC$9800_lastError_="";this.JSC$9800_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9800_active_=!0;this.JSC$9800_xhr_=this.createXhr();this.JSC$9800_xhr_.onreadystatechange=sP((0,_.qp)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9800_xhr_.open(v,String(D),!0),this.inOpen_=!1}catch(x){GQy(this,x);return}D=h||"";h=new Map(this.headers);
if(a)if(Object.getPrototypeOf(a)===Object.prototype)for(var Q in a)h.set(Q,a[Q]);else if(typeof a.keys==="function"&&typeof a.get==="function"){Q=_.P(a.keys());for(var G=Q.next();!G.done;G=Q.next())G=G.value,h.set(G,a.get(G))}else throw Error("Ba`"+String(a));a=Array.from(h.keys()).find(function(x){return"content-type"==x.toLowerCase()});
Q=_.$L.FormData&&D instanceof _.$L.FormData;!_.wc($ps,v)||a||Q||h.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");v=_.P(h);for(a=v.next();!a.done;a=v.next())h=_.P(a.value),a=h.next().value,h=h.next().value,this.JSC$9800_xhr_.setRequestHeader(a,h);this.responseType_&&(this.JSC$9800_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9800_xhr_&&this.JSC$9800_xhr_.withCredentials!==this.JSC$9800_withCredentials_&&(this.JSC$9800_xhr_.withCredentials=this.JSC$9800_withCredentials_);
try{this.JSC$9800_timeoutId_&&(clearTimeout(this.JSC$9800_timeoutId_),this.JSC$9800_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9800_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9800_xhr_.send(D),this.inSend_=!1}catch(x){GQy(this,x)}};
_.OP.prototype.createXhr=function(){return this.JSC$9800_xmlHttpFactory_?this.JSC$9800_xmlHttpFactory_.createInstance():vq4.createInstance()};
_.OP.prototype.timeout_=function(){typeof Zu7!="undefined"&&this.JSC$9800_xhr_&&(this.JSC$9800_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9800_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var GQy=function(D,v){D.JSC$9800_active_=!1;D.JSC$9800_xhr_&&(D.inAbort_=!0,D.JSC$9800_xhr_.abort(),D.inAbort_=!1);D.JSC$9800_lastError_=v;D.JSC$9800_lastErrorCode_=5;VeF(D);P9t(D)},VeF=function(D){D.errorDispatched_||(D.errorDispatched_=!0,D.dispatchEvent("complete"),D.dispatchEvent("error"))};
_.OP.prototype.abort=function(D){this.JSC$9800_xhr_&&this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1,this.JSC$9800_lastErrorCode_=D||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),P9t(this))};
_.OP.prototype.disposeInternal=function(){this.JSC$9800_xhr_&&(this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1),P9t(this,!0));_.OP.superClass_.disposeInternal.call(this)};
_.OP.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)xpF(this);else this.onReadyStateChangeEntryPoint_()};
_.OP.prototype.onReadyStateChangeEntryPoint_=function(){xpF(this)};
var xpF=function(D){if(D.JSC$9800_active_&&typeof Zu7!="undefined")if(D.inSend_&&_.KD(D)==4)setTimeout(D.onReadyStateChange_.bind(D),0);else if(D.dispatchEvent("readystatechange"),D.isComplete()){D.JSC$9800_active_=!1;try{if(D.isSuccess())D.dispatchEvent("complete"),D.dispatchEvent("success");else{D.JSC$9800_lastErrorCode_=6;try{var v=_.KD(D)>2?D.JSC$9800_xhr_.statusText:""}catch(h){v=""}D.JSC$9800_lastError_=v+" ["+D.getStatus()+"]";VeF(D)}}finally{P9t(D)}}},P9t=function(D,v){if(D.JSC$9800_xhr_){D.JSC$9800_timeoutId_&&
(clearTimeout(D.JSC$9800_timeoutId_),D.JSC$9800_timeoutId_=null);
var h=D.JSC$9800_xhr_;D.JSC$9800_xhr_=null;v||D.dispatchEvent("ready");try{h.onreadystatechange=null}catch(a){}}};
_.OP.prototype.isActive=function(){return!!this.JSC$9800_xhr_};
_.OP.prototype.isComplete=function(){return _.KD(this)==4};
_.OP.prototype.isSuccess=function(){var D=this.getStatus(),v;if(!(v=Dpy(D))){if(D=D===0)D=FMF(String(this.JSC$9800_lastUri_)),D=!ac4.test(D);v=D}return v};
_.KD=function(D){return D.JSC$9800_xhr_?D.JSC$9800_xhr_.readyState:0};
_.V=_.OP.prototype;_.V.getStatus=function(){try{return _.KD(this)>2?this.JSC$9800_xhr_.status:-1}catch(D){return-1}};
_.V.getResponseText=function(){try{return this.JSC$9800_xhr_?this.JSC$9800_xhr_.responseText:""}catch(D){return""}};
_.V.getResponse=function(){try{if(!this.JSC$9800_xhr_)return null;if("response"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9800_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.mozResponseArrayBuffer}return null}catch(D){return null}};
_.V.getAllResponseHeaders=function(){return this.JSC$9800_xhr_&&_.KD(this)>=2?this.JSC$9800_xhr_.getAllResponseHeaders()||"":""};
_.V.getLastError=function(){return typeof this.JSC$9800_lastError_==="string"?this.JSC$9800_lastError_:String(this.JSC$9800_lastError_)};var odA=function(){};
odA.prototype.send=function(D,v,h){v=v===void 0?function(){}:v;
h=h===void 0?function(){}:h;
dw7(D.url,function(a){a=a.target;a.isSuccess()?v(a.getResponseText()):h(a.getStatus())},D.requestType,D.body,D.requestHeaders,D.timeoutMillis,D.withCredentials)};
odA.prototype.getTransmissionType=function(){return 1};var Met=function(D,v){this.y3i=D;this.event=v;this.startTime=JN()},Edc;
Met.prototype.done=function(){this.y3i.jo(this.event,JN()-this.startTime)};
var Tr=function(){EP.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.J(Tr,EP);_.RI=function(D,v,h){var a=JN();v=v();D.jo(h,JN()-a);return v};
Edc=function(){Tr.apply(this,arguments)};
_.J(Edc,Tr);_.V=Edc.prototype;_.V.uI6=function(){};
_.V.su=function(){};
_.V.jo=function(){};
_.V.logError=function(){};
_.V.oF=function(){};
_.V.syz=function(){};
_.V.d9r=function(){};
_.V.nkz=function(){};
var fc4=function(D){Tr.call(this);var v=this;this.qk=D;this.TEST_ONLY={wPS:function(){return v.qk},
getExperimentIds:function(){return v.qk.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void v.qk.dispose()})};
_.J(fc4,Tr);_.V=fc4.prototype;_.V.update=function(D){this.qk.dispose();this.qk=D};
_.V.su=function(D){this.qk.su(D)};
_.V.jo=function(D,v){this.qk.jo(D,v)};
_.V.logError=function(D){this.qk.logError(D)};
_.V.oF=function(){this.qk.oF()};
_.V.syz=function(D){this.qk.syz(D)};
_.V.d9r=function(D){this.qk.d9r(D)};
_.V.nkz=function(D){this.qk.nkz(D)};
_.V.uI6=function(D){this.qk.uI6(D)};
var C9s=function(D,v){_.AN.call(this);var h=this;this.callback=D;this.vTz=v;this.y5Q=-v;this.addOnDisposeCallback(function(){return void clearTimeout(h.timer)})};
_.J(C9s,_.AN);var oqJ=function(D){if(D.timer===void 0){var v=Math.max(0,D.y5Q+D.vTz-JN());D.timer=setTimeout(function(){try{D.callback()}finally{D.y5Q=JN(),D.timer=void 0}},v)}},FSp=function(D,v){Tr.call(this);
this.metrics=D;this.mK=v};
_.J(FSp,Tr);_.V=FSp.prototype;_.V.uI6=function(D){this.metrics.iiA.record(D,this.mK)};
_.V.su=function(D){this.metrics.eventCount.increment(D,this.mK)};
_.V.jo=function(D,v){this.metrics.v7a.record(v,D,this.mK)};
_.V.logError=function(D){this.metrics.errorCount.increment(D,this.mK)};
_.V.syz=function(D){this.metrics.vMF.increment(D,this.mK)};
_.V.d9r=function(D){this.metrics.yFz.increment(D,this.mK)};
_.V.nkz=function(D){this.metrics.wgc.increment(D,this.mK)};
var IX4=function(D,v){v=v===void 0?[]:v;var h={mK:D.mK||"_",vmG:D.vmG||[],u3d:D.u3d|0,destinationUrl:D.destinationUrl,wBJ:D.wBJ||function(){},
u1z:D.u1z||function(G,x){return ZxO(G,x,h.wBJ,h.destinationUrl)}},a=h.u1z("51",h.vmG.concat(v));
FSp.call(this,{iiA:new WMm(a),errorCount:new DS1(a),eventCount:new r3m(a),v7a:new uYs(a),lzs:new tRy(a),vMF:new vIy(a),yFz:new hJ4(a),wgc:new ax$(a)},h.mK);var Q=this;this.TEST_ONLY={getExperimentIds:function(){return Q.options.vmG.concat(Q.wSa).sort(function(G,x){return G-x})}};
this.options=h;this.service=a;this.hKi=!D.u1z;this.flushDebouncer=new C9s(function(){return void Q.service.snapshotAndFlush()},h.u3d);
this.addOnDisposeCallback(function(){Q.flushDebouncer.dispose();Q.hKi&&Q.service.dispose()});
(this.wSa=v.slice()).sort(_.dri)};
_.J(IX4,FSp);IX4.prototype.oF=function(){oqJ(this.flushDebouncer)};var UgL=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(UgL,_.xo);_.LUc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(_.LUc,_.xo);var ij=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,0,ij.messageId)};
_.J(ij,_.xo);var zPt=_.KM8(ij);ij.messageId="bfkj";var K9c=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(K9c,_.xo);var Upm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Upm,_.xo);var LSJ=_.ko(Upm);_.gT=function(){var D=this;this.promise=new Promise(function(v,h){D.resolve=v;D.reject=h})};_.WZ=function(D){_.AN.call(this);var v=this;this.f6X=Math.floor(Math.random()*200);this.biO=new Upm;if("challenge"in D&&zPt(D.challenge)){var h=_.jI(D.challenge,4,void 0,Bm);var a=_.jI(D.challenge,5,void 0,Bm);_.jI(D.challenge,7,void 0,Bm)&&(this.biO=LSJ(_.jI(D.challenge,7,void 0,Bm)))}else h=D.program,a=D.globalName;this.addOnDisposeCallback(function(){var S,B,A;return _.M(function(d){if(d.nextAddress==1)return d.yield(v.bZZ,2);S=d.yieldResult;B=S.sV4;(A=B)==null||A();_.YI(d)})});
this.xD=gd7(D.aEZ||{},this.biO);_.Ia(this,this.xD);var Q=new _.gT;this.bZZ=Q.promise;this.xD.su("t");var G=this.xD.share(),x=new Met(G,"t"),f=function(S,B,A,d){if(!v.xD.isDisposed()){var b="k";B?b="h":A&&(b="u");b!=="k"?d!==0&&(v.xD.su(b),v.xD.jo(b,S)):v.f6X<=0?(v.xD.su(b),v.xD.jo(b,S),v.f6X=Math.floor(Math.random()*200)):v.f6X--}},C=function(S,B,A,d){Promise.resolve().then(function(){x.done();
G.oF();G.dispose();Q.resolve({cpL:S,sV4:B,cdA:A,mq5:d})})};
if(!_.$L[a])throw this.xD.logError(25),Error("Ca");if(!_.$L[a].a)throw this.xD.logError(26),Error("Da");try{var U=_.$L[a].a;a=[];for(var L=[],Z=TMo(this.biO),E=0;E<Z.length;E++)a.push(Z[E]),L.push(1);var I=Rj2(this.biO);for(Z=0;Z<I.length;Z++)a.push(I[Z]),L.push(2);this.oEQ=_.P(U(h,C,!0,D.zhS,f,[a,L],_.jI(this.biO,5),!1)).next().value;this.tU6=Q.promise.then(function(){})}catch(S){throw this.xD.logError(28),S;
}};
_.J(_.WZ,_.AN);_.WZ.prototype.snapshot=function(D){if(this.isDisposed())throw Error("Ea");this.xD.su("n");var v=this.xD.share();return this.bZZ.then(function(h){var a=h.cpL;return new Promise(function(Q){var G=new Met(v,"n");a(function(x){G.done();v.uI6(x.length);v.oF();v.dispose();Q(x)},[D.pG,
D.j1G,D.gRO,D.zW6])})})};
_.WZ.prototype.lkK=function(D){this.bZZ.then(function(v){var h;(h=v.cdA)==null||h(D)})};
_.WZ.prototype.h2H=function(D,v){return this.bZZ.then(function(h){var a;return(a=h.mq5)==null?void 0:a(D,v,!1)})};
_.WZ.prototype.w32=function(){return this.xD.share()};var Z0F=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Z0F,_.xo);var zuq=_.KM8(Z0F);var Eq9=function(){this.promises={};this.bAY=null},Icb=function(){Eq9.instance||(Eq9.instance=new Eq9);
return Eq9.instance},kQF=function(D,v){return gqm(D,_.CL(v,UgL,1,Bm),_.CL(v,_.LUc,2,Bm),_.jI(v,3,void 0,Bm))},gqm=function(D,v,h,a){if(!v&&!h)return Promise.resolve();
if(!a)return lXc(v,h);var Q;(Q=D.promises)[a]||(Q[a]=new Promise(function(G,x){lXc(v,h).then(function(){D.bAY=a;G()},function(f){delete D.promises[a];
x(f)})}));
return D.promises[a]};var SNs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(SNs,_.xo);var JNs=function(D,v){return _.WO(D,1,v)},pQ$=function(D,v){return _.WO(D,2,v)};var tJ=function(D){_.AN.call(this);var v=this;this.options=D;this.aXj=new _.gT;this.tU6=this.aXj.promise;this.cFd=new _.gT;this.hVY=1;this.yNO=new _.gT;this.mHE=[];this.lOn=D.lOn||function(){};
this.drn=new fc4(gd7(D.aEZ||{}));lcJ(this,D.d0,D.mds,D.xKS,D.ibU,Object.assign({},NW9,D.cdJ||{}));this.addOnDisposeCallback(function(){return void YNm(v)})};
_.J(tJ,_.AN);tJ.prototype.snapshot=function(D){var v=this;return _.M(function(h){switch(h.nextAddress){case 1:if(v.isDisposed())throw Error("Ea");if(v.n6||v.z9X){h.jumpTo(2);break}return h.yield(v.cFd.promise,2);case 2:if(!v.n6){h.jumpTo(4);break}return h.yield(v.n6.snapshot(D),5);case 5:return h.return(h.yieldResult);case 4:throw v.z9X;}})};
var BW$=function(D){var v;return _.M(function(h){if(D.isDisposed())throw Error("Ea");(v=D.oz)!=null&&(v.endTimeMs=0,v.resolver(1));return h.yield(D.yNO.promise,0)})},YNm=function(D){D.z9X=Error("Ga");
D.cFd.resolve();iJo(D.aXj.promise);D.aXj.reject(Error("Ga"));D.drn.dispose();Promise.all(D.mHE).then(function(){var h;return _.M(function(a){(h=D.n6)==null||h.dispose();D.n6=void 0;_.YI(a)})});
D.mHE=[];var v;(v=D.oz)!=null&&(v.endTimeMs=0,v.resolver(1));iJo(D.yNO.promise);D.yNO.reject(Error("Ga"))};
tJ.prototype.lkK=function(D){var v,h;(v=this.n6)==null||(h=v.lkK)==null||h.call(v,D)};
tJ.prototype.h2H=function(D,v){var h,a,Q;return(Q=(h=this.n6)==null?void 0:(a=h.h2H)==null?void 0:a.call(h,D,v))!=null?Q:Promise.resolve()};
var cNy=function(D,v){var h=D.lOn;D.lOn=function(){h();v()}},XQs=function(D,v){D.isDisposed()||(D.n6=v,D.drn.update(v.w32()),D.cFd.resolve(),D.aXj.resolve(void 0),D.lOn())};
tJ.prototype.handleError=function(D){if(!this.isDisposed()){this.z9X=D;this.cFd.resolve();var v,h;(h=(v=this.options).cWX)==null||h.call(v,D)}};
var AN4=function(D,v){v&&(Promise.all(D.mHE).then(function(){return void v.dispose()}),D.mHE=[])},r9=function(D,v){D.hVY=v;
var h,a;(a=(h=D.options).cIb)==null||a.call(h,v)},qNm=function(D){D.isDisposed()||(D.yNO.resolve(),D.yNO=new _.gT)},lcJ=function(D,v,h,a,Q,G){a=a===void 0?Icb():a;
Q=Q===void 0?Promise.resolve(void 0):Q;var x,f,C,U,L,Z,E,I,S,B,A,d;_.M(function(b){switch(b.nextAddress){case 1:return b.yield(0,3);case 3:f=null;if(!x){b.jumpTo(6);break}r9(D,7);_.gE(b,7);return b.yield(BQ(x.snapshot({}),G.h0z,function(){return Promise.resolve("E:CTO")}),9);
case 9:f=b.yieldResult;_.rl(b,6);break;case 7:_.NS(b),f="E:UCE";case 6:C=void 0,U=x?G.bkS:G.hvi,L=new L0(U,G.d0O,G.nxX,G.zv5),Z=1;case 10:if(!(Z<=G.maxAttempts)){b.jumpTo(12);break}if(Z===1){b.jumpTo(13);break}r9(D,0);D.oz=new b0s(L.getValue(),G.rXq,G.hJL);return b.yield(D.oz.promise,14);case 14:E=b.yieldResult,D.oz=void 0,E===1?(Z=1,L.reset()):Kkb(L);case 13:_.gE(b,15);I=void 0;if(h){I=h;b.jumpTo(17);break}r9(D,5);S=a.bAY;return b.yield(BQ(dp$(v,S,f),G.dwL,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:I=b.yieldResult;case 17:return r9(D,3),b.yield(BQ(kQF(a,I),G.nsO,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return r9(D,8),b.yield(Q,20);case 20:return B=new _.WZ({challenge:I,aEZ:D.options.aEZ,zhS:D.options.zhS}),b.yield(BQ(B.tU6,G.zjS,function(){return Promise.reject(Error("Ja"))}),21);
case 21:C=B;b.jumpTo(12);break;case 15:A=_.NS(b),D.handleError(A),qNm(D);case 11:Z++;b.jumpTo(10);break;case 12:if(D.isDisposed()){b.jumpTo(5);break}C&&(h=void 0,AN4(D,x),x=C,XQs(D,C),qNm(D));r9(D,2);D.oz=new b0s(G.lSS,G.rXq,G.hJL);return b.yield(D.oz.promise,22);case 22:D.oz=void 0;if(D.isDisposed()){b.jumpTo(5);break}b.jumpTo(3);break;case 5:(d=x)==null||d.dispose(),_.YI(b)}})};
tJ.prototype.w32=function(){return this.drn.share()};
var NW9={lSS:432E5,rXq:3E5,hJL:10,h0z:1E4,dwL:3E4,nsO:3E4,zjS:6E4,hvi:1E3,bkS:6E4,d0O:6E5,nxX:.25,zv5:2,maxAttempts:10},b0s=function(D,v,h){var a=this;this.endTimeMs=Date.now()+D;this.promise=new Promise(function(G){a.resolver=G});
var Q=function(){var G=a.endTimeMs-Date.now();G<=h?a.resolver(0):setTimeout(Q,Math.min(G,v))};
Q()};var jaJ,Bl4=(jaJ=Math.imul)!=null?jaJ:function(D,v){return D*v|0},cQ=[196,
200,224,18],un=function(D,v,h){h=h===void 0?[]:h;this.maxItems=D;this.lV=v===void 0?0:v;this.bX=h},sab=function(D){var v=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!v)return new un(D);var h=v.split(",");if(h.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new un(D);v=h.slice(1);v.length===1&&v[0]===""&&(v=[]);h=Number(h[0]);return isNaN(h)||h<0||h>v.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new un(D)):new un(D,h,v)};
un.prototype.serialize=function(){return String(this.lV)+","+this.bX.join()};
un.prototype.insert=function(D,v){var h=void 0;if(this.bX[this.lV]!==D){var a=this.bX.indexOf(D);a!==-1?(this.bX.splice(a,1),a<this.lV&&this.lV--,this.bX.splice(this.lV,0,D)):(h=this.bX[this.lV],this.bX[this.lV]=D)}this.lV=(this.lV+1)%this.maxItems;D=Nlf("iU5q-!O9@$",this.serialize());h&&D&&v(h);return D};
var mp$=function(D,v){this.h1J=v;try{var h=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(a){h=!1}h&&(this.index=sab(D))},H0b=function(D,v,h,a,Q){var G=D.index?_.RI(D.h1J,function(){return qzf(D.index,XV4(v),h,a,Q)},"W"):"u";
D.h1J.nkz(G)},yNt=function(D,v,h){var a=_.P(D.index?_.RI(D.h1J,function(){return bxI(XV4(v),h)},"R"):["u"]),Q=a.next().value;
a=a.next().value;D.h1J.d9r(Q);return a};var wQJ={toString:function(D){var v=[],h=0;D-=-2147483648;v[h++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(D%52);for(D=Math.floor(D/52);D>0;)v[h++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(D%62),D=Math.floor(D/62);return v.join("")}};var O0b=function(D){D=eP1(D);for(var v=2654435769,h=2654435769,a=314159265,Q=D.length,G=Q,x=0,f=function(){v-=h;v-=a;v^=a>>>13;h-=a;h-=v;h^=v<<8;a-=v;a-=h;a^=h>>>13;v-=h;v-=a;v^=a>>>12;h-=a;h-=v;h^=v<<16;a-=v;a-=h;a^=h>>>5;v-=h;v-=a;v^=a>>>3;h-=a;h-=v;h^=v<<10;a-=v;a-=h;a^=h>>>15};G>=12;G-=12,x+=12)v+=nqM(D,x),h+=nqM(D,x+4),a+=nqM(D,x+8),f();
a+=Q;switch(G){case 11:a+=D[x+10]<<24;case 10:a+=D[x+9]<<16;case 9:a+=D[x+8]<<8;case 8:h+=D[x+7]<<24;case 7:h+=D[x+6]<<16;case 6:h+=D[x+5]<<8;case 5:h+=D[x+4];case 4:v+=D[x+3]<<24;case 3:v+=D[x+2]<<16;case 2:v+=D[x+1]<<8;case 1:v+=D[x]}f();return wQJ.toString(a)},eP1=function(D){for(var v=[],h=0;h<D.length;h++)v.push(D.charCodeAt(h));
return v},nqM=function(D,v){return D[v]+(D[v+1]<<8)+(D[v+2]<<16)+(D[v+3]<<24)};var D5=function(D){_.AN.call(this);this.uc=D;this.kud=new _.gT};
_.J(D5,_.AN);var KSJ=function(D,v){var h=setTimeout(function(){D.kud.resolve()},v);
D.addOnDisposeCallback(function(){return void clearTimeout(h)})};
D5.prototype.znr=function(D,v){var h=this.b6(D);v==null||v(h);return _.RI(this.uc,function(){return _.dr(h,2)},this.xcI)};
var TWp=function(D,v,h,a){return _.RI(D.uc,function(){return h?D.znr(v,a):D.b6(v,a)},D.brn)},RPb=function(D,v,h,a){D5.call(this,D);
this.tAq=v;this.i2w=h;this.brn="m";this.xcI="x";this.kHi=0;KSJ(this,a)};
_.J(RPb,D5);RPb.prototype.b6=function(D,v){var h=this;this.uc.su(this.brn);++this.kHi>=this.i2w&&this.kud.resolve();var a=D();D=_.RI(this.uc,function(){return h.tAq(a)},"C");
if(D===void 0)throw new LD(17,"YNJ:Undefined");if(!(D instanceof Uint8Array))throw new LD(18,"ODM:Invalid");v==null||v(D);return D};
var i0y=function(D,v,h){D5.call(this,D);this.zut=v;this.brn="f";this.xcI="z";KSJ(this,h)};
_.J(i0y,D5);i0y.prototype.b6=function(){return this.zut};
var WS4=function(D,v,h){D5.call(this,D);this.xcO=v;this.brn="w";this.xcI="z";KSJ(this,h)};
_.J(WS4,D5);WS4.prototype.b6=function(){var D=this;return _.RI(this.uc,function(){return _.DJ(D.xcO)},"d")};
WS4.prototype.znr=function(){return this.xcO};
var tem=function(D,v){D5.call(this,D);this.error=v;this.brn="e";this.xcI="y"};
_.J(tem,D5);var rNs=function(D,v){var h=(v(D.error.message)+":"+v(D.error.stack)).substring(0,2048);v=h.length+1;h=dM7(h);var a=new Uint8Array(4+h.length);a.set([42,v&127|128,v>>7,D.error.code]);a.set(h,4);return a};
tem.prototype.b6=function(){if(this.bky)return this.bky;this.bky=rNs(this,function(D){return"_"+O0b(D)});
return rNs(this,function(D){return D})};
var u6R=function(D,v,h){D5.call(this,D);this.cEi=v;this.clientState=h;this.brn="S";this.xcI="q"};
_.J(u6R,D5);u6R.prototype.b6=function(){var D=Math.floor(Date.now()/1E3),v=[Math.random()*255,Math.random()*255],h=v.concat([this.cEi&255,this.clientState],[D>>24&255,D>>16&255,D>>8&255,D&255]);D=new Uint8Array(2+h.length);D[0]=34;D[1]=h.length;D.set(h,2);h=D.subarray(2);for(var a=v=v.length;a<h.length;++a)h[a]^=h[a%v];this.uc.syz(this.clientState);return D};var DxR={pnt:3E4,fIK:2E4},v9=function(D){_.AN.call(this);var v=this;this.rS6=new _.gT;this.jHG=0;this.nW=void 0;this.state=2;this.vm=D.vm;this.d0=D.d0;this.cdJ=Object.assign({},DxR,D.cdJ||{});this.jR=D.vm.w32();var h;this.onError=(h=D.onError)!=null?h:function(){};
this.pwY=D.pwY||!1;if(vHy(D)){var a=this.vm;this.zd4=function(){return BW$(a).catch(function(x){x=v.reportError(new LD(v.oU?20:32,"TRG:Disposed",x));v.nW=x;var f;(f=v.oU)==null||f.dispose();v.oU=void 0;v.rS6.reject(x)})};
cNy(a,function(){return void hrp(v)});
a.hVY===2&&hrp(this)}else this.zd4=D.tkS,hrp(this);var Q=this.jR.share();Q.su("o");var G=new Met(Q,"o");this.rS6.promise.then(function(){G.done();Q.oF();Q.dispose()},function(){return void Q.dispose()});
this.addOnDisposeCallback(function(){v.oU?(v.oU.dispose(),v.oU=void 0):v.nW?v.jR.oF():(v.nW=v.reportError(new LD(32,"TNP:Disposed")),v.jR.oF(),v.rS6.reject(v.nW))});
_.Ia(this,this.jR)};
_.J(v9,_.AN);v9.prototype.pzX=function(){return this.rS6.promise};
var aqp=function(D,v){if(!(v instanceof LD))if(v instanceof _.eZ){var h=Error(v.toString());h.stack=v.stack;v=new LD(11,"EBH:Error",h)}else v=new LD(12,"BSO:Unknown",v);return D.reportError(v)},hrp=function(D){var v,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B;
return _.M(function(A){switch(A.nextAddress){case 1:v=void 0;D.jHG++;h=new _.gT;D.vm instanceof tJ&&D.vm.mHE.push(h.promise);if(!D.pwY){A.jumpTo(2);break}a=new _.gT;setTimeout(function(){return void a.resolve()});
return A.yield(a.promise,2);case 2:return Q=D.jR.share(),_.gE(A,4,5),D.state=5,G={},x=[],A.yield(BQ(D.vm.snapshot({pG:G,gRO:x}),D.cdJ.fIK,function(){return Promise.reject(new LD(15,"MDA:Timeout"))}),7);
case 7:f=A.yieldResult;if(D.isDisposed())throw new LD(D.oU?20:32,"MDA:Disposed");C=x[0];D.state=6;return A.yield(BQ($x9(D.d0,f),D.cdJ.pnt,function(){return Promise.reject(new LD(10,"BWB:Timeout"))}),8);
case 8:U=A.yieldResult;if(D.isDisposed())throw new LD(D.oU?20:32,"BWB:Disposed");D.state=7;v=_.RI(Q,function(){var b=Qu$(D,U,h,C);b.kud.promise.then(function(){return void D.zd4()});
return b},"i");
case 5:_.S_(A);Q.dispose();_.pf(A,6);break;case 4:L=_.NS(A);(Z=v)==null||Z.dispose();if(!D.nW){E=aqp(D,L);h.resolve();var d;if(d=D.vm instanceof tJ&&D.jHG<2)a:if(L instanceof LD)d=L.code!==32&&L.code!==20&&L.code!==10;else{if(L instanceof _.eZ)switch(L.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return I=(1+Math.random()*.25)*(D.oU?6E4:1E3),S=setTimeout(function(){return void D.zd4()},I),D.addOnDisposeCallback(function(){return void clearTimeout(S)}),A.return();
D.nW=E}Q.logError(D.oU?13:14);D.rS6.reject(D.nW);return A.return();case 6:D.state=8,D.jHG=0,(B=D.oU)==null||B.dispose(),D.oU=v,D.rS6.resolve(),_.YI(A)}})},Qu$=function(D,v,h,a){var Q=y57(v,2)*1E3;
if(Q<=0)throw new LD(31,"TTM:Invalid");if(_.jI(v,4))return new WS4(D.jR,_.jI(v,4),Q);if(!y57(v,3))return new i0y(D.jR,Smi(_.N6(v,1)),Q);if(!a)throw new LD(4,"PMD:Undefined");a=a(Smi(_.N6(v,1)));if(!(a instanceof Function))throw new LD(16,"APF:Failed");D.hii=Math.floor((Date.now()+Q)/1E3);D=new RPb(D.jR,a,y57(v,3),Q);D.addOnDisposeCallback(function(){return void h.resolve()});
return D};
v9.prototype.b6=function(D){return GSF(this,Object.assign({},D),!1)};
v9.prototype.znr=function(D){return GSF(this,Object.assign({},D),!0)};
v9.prototype.iot=function(D){if(D>150)return!1;try{return this.cache=new mp$(D,this.jR),!0}catch(v){return this.reportError(new LD(22,"GBJ:init",v)),!1}};
v9.prototype.reportError=function(D){this.jR.logError(D.code);this.onError(D);return D};
var VMs=function(D,v){v=v instanceof LD?v:new LD(5,"TVD:error",v);return D.reportError(v)},GSF=function(D,v,h){try{if(D.isDisposed())throw new LD(21,"BNT:disposed");
if(!D.oU&&D.nW)throw D.nW;var a,Q;return(Q=(a=PWJ(D,v,h))!=null?a:xx$(D,v,h))!=null?Q:MMJ(D,v,h)}catch(G){if(!v.ppQ)throw VMs(D,G);return fqF(D,h,G)}},PWJ=function(D,v,h){var a;
return(a=D.oU)==null?void 0:TWp(a,function(){return CWb(D,v)},h,function(Q){var G;
if(D.oU instanceof RPb&&((G=v.l8)==null?0:G.kES))try{var x;(x=D.cache)==null||H0b(x,CWb(D,v),Q,v.l8.rlK,D.hii-120)}catch(f){D.reportError(new LD(24,"ELX:write",f))}})},xx$=function(D,v,h){var a;
if((a=v.l8)!=null&&a.uzd)try{var Q,G=(Q=D.cache)==null?void 0:yNt(Q,CWb(D,v),v.l8.rlK);return G?h?_.RI(D.jR,function(){return _.dr(G,2)},"a"):G:void 0}catch(x){D.reportError(new LD(23,"RXO:read",x))}},MMJ=function(D,v,h){var a={stack:[],
error:void 0,hasError:!1};try{if(!v.sx8)throw new LD(29,"SDF:notready");return TWp(JZc(a,new u6R(D.jR,0,D.state)),function(){return CWb(D,v)},h)}catch(Q){a.error=Q,a.hasError=!0}finally{p6i(a)}},fqF=function(D,v,h){var a={stack:[],
error:void 0,hasError:!1};try{var Q=VMs(D,h);return TWp(JZc(a,new tem(D.jR,Q)),function(){return[]},v)}catch(G){a.error=G,a.hasError=!0}finally{p6i(a)}},CWb=function(D,v){return v.aHO?v.aHO:v.pG?_.RI(D.jR,function(){return v.aHO=dM7(v.pG)},"c"):[]},vHy=function(D){return X9(function(v){if(!fV(v))return!1;
for(var h=_.P(Object.entries(D)),a=h.next();!a.done;a=h.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;if(!(a in v)){if(Q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Q(v[a]))return!1}return!0})}({vm:function(D){return X9(function(v){return v instanceof D})}(tJ)},"");var oHm=function(){var D=_.Lq();this.JSC$9918_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",oa("cookie_enabled"),oa("cookie_3p_enabled"),_.zQ("browser"))};
oHm.prototype.increment=function(D,v,h){this.JSC$9918_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",D,v,h)};
var $ku=function(){var D=_.Lq();this.JSC$9942_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",F6("tick"),oa("from_st_cookie"))};
$ku.prototype.increment=function(D,v){this.JSC$9942_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",D,v)};
var Ft9=function(){var D=_.Lq();this.JSC$9948_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.zQ("status"))};
Ft9.prototype.increment=function(D){this.JSC$9948_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",D)};
var zr9=function(){var D=_.Lq();this.JSC$9951_streamzService=D;D.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.zQ("stage"),oa("is_using_ytd_player"),oa("has_expandable_tiles"))};
zr9.prototype.increment=function(D,v,h){this.JSC$9951_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",D,v,h)};
var Ux$=function(){var D=_.Lq();this.JSC$9954_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/response_signature",_.zQ("check_status"))};
Ux$.prototype.increment=function(D){this.JSC$9954_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/response_signature",D)};
var LtF=function(){var D=_.Lq();this.JSC$9957_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.zQ("sig"),F6("de"))};
LtF.prototype.increment=function(D,v){this.JSC$9957_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_log",D,v)};
var ZVb=function(){var D=_.Lq();this.JSC$9960_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.zQ("sig"),F6("de"))};
ZVb.prototype.increment=function(D,v){this.JSC$9960_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_en",D,v)};
_.EH9=function(){var D=_.Lq();this.JSC$9963_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.zQ("action"))};
_.EH9.prototype.increment=function(D){this.JSC$9963_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/enforcement_intent",D)};var hF=window;var Iq$=(new Date).getTime();_.sV.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.sV.createSet("action","cite","data","formaction","href","manifest","poster","src");var gH4=function(D){this.servicePromise_=D;D.then((0,_.qp)(function(){},this),function(){},this)},kS$=function(D,v,h){D.servicePromise_.then(function(a){var Q=a[v];
if(!Q)throw Error("Ka`"+v);return Q.apply(a,h)})},pl1=function(D,v,h){for(var a=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)a[Q-2]=arguments[Q];
Q=SYF(D,v).then(function(G){return G.apply(null,a)},function(G){G=Error("La`"+v+"`"+D,{cause:G});
delete JhJ[v];return _.H8(G)});
return new gH4(Q)},JhJ={},SYF=function(D,v){var h=JhJ[v];
if(h)return h;h=(h=_.T3(v))?_.E9(h):(new _.IB(function(a,Q){var G=(new sO(document)).createElement("SCRIPT");G.async=!0;_.Ge(G,_.XY(Ib4(D)));G.onload=G.onreadystatechange=function(){G.readyState&&G.readyState!="loaded"&&G.readyState!="complete"||a()};
G.onerror=function(x){Q(Error("Ma`"+v+"`"+D,{cause:x}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(G)})).then(function(){var a=_.T3(v);
if(!a)throw Error("Na`"+v+"`"+D);return a});
return JhJ[v]=h};var lq4={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},YYJ=function(){var D=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=jZO(function(){return _.M(function(v){if(v.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?v.return(Promise.resolve()):v.yield(Nq4(D),2);D.rsaForList.length>
0&&document.addEventListener("click",D.requestAccessForHelpPanel);_.YI(v)})});
this.requestAccessForHelpPanel=function(){if(!(D.rsaForPromises.length>0)){for(var v=_.P(D.rsaForList),h=v.next();!h.done;h=v.next()){h=h.value;try{D.rsaForPromises.push(document.requestStorageAccessFor(h))}catch(a){}}Promise.all(D.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){D.reset()})}}};
YYJ.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Nq4=function(D){var v,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:v=_.P(Object.values(lq4)),h=v.next();case 2:if(h.done){G.jumpTo(0);break}a=h.value;_.gE(G,5);return G.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:a}),7);case 7:Q=G.yieldResult;Q.state!=="granted"&&D.rsaForList.push(a);_.rl(G,3);break;case 5:_.NS(G);G.jumpTo(0);break;case 3:h=v.next(),G.jumpTo(2)}})};(new YYJ).initialize();var BqJ=function(D){this.JSC$9977_loader_=D};
BqJ.prototype.startHelp=function(D){kS$(this.JSC$9977_loader_,"startHelp",arguments)};
BqJ.prototype.JSC$9979_loadChatSupport=function(D){kS$(this.JSC$9977_loader_,"loadChatSupport",arguments)};
var XlF=function(D,v){v=v||{};D=pl1(chb,"help.service.Lazy.create",D,{apiKey:v.apiKey||v.apiKey,asxUiUri:v.asxUiUri||v.asxUiUri,environment:v.environment||v.environment,flow:v.flow||v.flow,frdProductData:v.frdProductData||v.frdProductData,frdProductDataSerializedJspb:v.frdProductDataSerializedJspb||v.frdProductDataSerializedJspb,helpCenterPath:v.helpCenterPath||v.helpCenterPath,locale:v.locale||v.locale||"en-US".replace(/-/g,"_"),nonce:v.nonce||v.nonce,productData:v.productData||v.productData,receiverUri:v.receiverUri||
v.receiverUri,renderApiUri:v.renderApiUri||v.renderApiUri,theme:v.theme||v.theme,window:v.window||v.window});return new BqJ(D)},chb=new ej(w4c,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Ah$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Ah$,_.xo);var qYR=_.ko(Ah$);var bV1=[0,_.Qa,uT,YgO];_.dx1=new function(D,v,h,a){this.configType=D;this.flagName=h;this.defaultValue=a;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 su4=function(){this.retriever=_.xd().resolve(juR)};_.$Y={get payments(){return window.payments}};mMc(Node);mMc(Element);var mx$=mMc(HTMLElement);mMc(SVGElement);var HVs,yhb,Qb,wlM;HVs=function(D){return typeof D.className=="string"?D.className:D.getAttribute&&D.getAttribute("class")||""};
yhb=function(D){return D.classList?D.classList:HVs(D).match(/\S+/g)||[]};
_.av=function(D,v){typeof D.className=="string"?D.className=v:D.setAttribute&&D.setAttribute("class",v)};
_.$N=function(D,v){return D.classList?D.classList.contains(v):_.wc(yhb(D),v)};
_.x5=function(D,v){if(D.classList)D.classList.add(v);else if(!_.$N(D,v)){var h=HVs(D);_.av(D,h+(h.length>0?" "+v:v))}};
Qb=function(D,v){if(D.classList)Array.prototype.forEach.call(v,function(Q){_.x5(D,Q)});
else{var h={};Array.prototype.forEach.call(yhb(D),function(Q){h[Q]=!0});
Array.prototype.forEach.call(v,function(Q){h[Q]=!0});
v="";for(var a in h)v+=v.length>0?" "+a:a;_.av(D,v)}};
_.V0=function(D,v){D.classList?D.classList.remove(v):_.$N(D,v)&&_.av(D,Array.prototype.filter.call(yhb(D),function(h){return h!=v}).join(" "))};
wlM=function(D,v){D.classList?Array.prototype.forEach.call(v,function(h){_.V0(D,h)}):_.av(D,Array.prototype.filter.call(yhb(D),function(h){return!_.wc(v,h)}).join(" "))};var erJ=function(D){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=D.document},Kts=function(D,v){nHs(D);
var h=document.createElement("div"),a;(a=v.parentNode)==null||a.insertBefore(h,v);h.tabIndex=0;h.id="fc-focus-trap-pre-div";h=document.createElement("div");var Q;(Q=v.parentNode)==null||Q.insertBefore(h,v.nextSibling);h.tabIndex=0;h.id="fc-focus-trap-post-div";var G=OVs(D,v),x=OVs(D,v,!0);G&&x&&(D.focusChangeHandler=function(){var f=D.document.activeElement;if(f)if(_.Ra(v,f))D.previouslyFocusedElement=f;else if(f===D.document.activeElement)switch(D.previouslyFocusedElement){case G:x.focus();D.previouslyFocusedElement=
x;break;default:G.focus(),D.previouslyFocusedElement=G}},D.document.addEventListener("focus",D.focusChangeHandler,!0),D.document.addEventListener("focusin",D.focusChangeHandler))},nHs=function(D){D.focusChangeHandler&&(document.removeEventListener("focus",D.focusChangeHandler,!0),document.removeEventListener("focusin",D.focusChangeHandler),D.focusChangeHandler=null);
var v;(v=document.getElementById("fc-focus-trap-pre-div"))==null||v.remove();var h;(h=document.getElementById("fc-focus-trap-post-div"))==null||h.remove()},Tqm=function(D,v,h,a,Q){h=h===void 0?!0:h;
var G;Q=(G=Q===void 0?null:Q)!=null?G:OVs(D,v,a===void 0?!1:a);Q!==null&&(Q.focus(),h&&Kts(D,v))};
erJ.prototype.disableButton=function(D,v){v=v===void 0?null:v;D.disabled=!0;v&&_.x5(D,v)};
var OVs=function(D,v,h){h=h===void 0?!1:h;if(Ghr(v)&&!h)return v;var a=h?[].slice.call(v.children,0).reverse():v.children;a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,mx$(Q)&&(Q=OVs(D,Q,h)))return Q;return Ghr(v)&&h?v:null};var Rrb=function(D){this.originalBodyOverflow="";this.JSC$10004_domHelper=cW(D)};
Rrb.prototype.enableScrolling=function(){this.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=this.originalBodyOverflow};_.fa(_.b9,_.AN);_.V=_.b9.prototype;_.V.JSC$10007_id_=0;_.V.disposeInternal=function(){_.b9.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10005_listener_;delete this.handler_};
_.V.start=function(D){this.stop();this.JSC$10007_id_=w9(this.callback_,D!==void 0?D:this.JSC$10005_interval_)};
_.V.stop=function(){this.isActive()&&_.$L.clearTimeout(this.JSC$10007_id_);this.JSC$10007_id_=0};
_.V.fire=function(){this.stop();this.JSC$10007_doAction_()};
_.V.isActive=function(){return this.JSC$10007_id_!=0};
_.V.JSC$10007_doAction_=function(){this.JSC$10007_id_=0;this.JSC$10005_listener_&&this.JSC$10005_listener_.call(this.handler_)};_.or=function(D){_.AN.call(this);this.handler_=D;this.JSC$10008_keys_={}};
_.fa(_.or,_.AN);var iVp=[];_.or.prototype.listen=function(D,v,h,a){Array.isArray(v)||(v&&(iVp[0]=v.toString()),v=iVp);for(var Q=0;Q<v.length;Q++){var G=_.s_(D,v[Q],h||this.handleEvent,a||!1,this.handler_||this);if(!G)break;this.JSC$10008_keys_[G.key]=G}return this};
_.or.prototype.listenOnce=function(D,v,h,a){return WtJ(this,D,v,h,a)};
var WtJ=function(D,v,h,a,Q,G){if(Array.isArray(h))for(var x=0;x<h.length;x++)WtJ(D,v,h[x],a,Q,G);else{v=qK(v,h,a||D.handleEvent,Q,G||D.handler_||D);if(!v)return D;D.JSC$10008_keys_[v.key]=v}return D};
_.or.prototype.unlisten=function(D,v,h,a,Q){if(Array.isArray(v))for(var G=0;G<v.length;G++)this.unlisten(D,v[G],h,a,Q);else if(D=EJM(D,v,h||this.handleEvent,_.Ro(a)?!!a.capture:!!a,Q||this.handler_||this))bP(D),delete this.JSC$10008_keys_[D.key];return this};
_.or.prototype.removeAll=function(){_.sV.forEach(this.JSC$10008_keys_,function(D,v){this.JSC$10008_keys_.hasOwnProperty(v)&&bP(D)},this);
this.JSC$10008_keys_={}};
_.or.prototype.disposeInternal=function(){_.or.superClass_.disposeInternal.call(this);this.removeAll()};
_.or.prototype.handleEvent=function(){throw Error("Oa");};var Gq=function(){_.AN.call(this);this.services_={}};
_.fa(Gq,_.AN);Gq.prototype.connect=function(D){D&&D()};
Gq.prototype.isConnected=function(){return!0};
Gq.prototype.registerService=function(D,v,h){this.services_[D]={callback:v,objectPayload:!!h}};
Gq.prototype.getService=function(D,v){var h=this.services_[D];return h?h:this.defaultService_?{callback:_.NF(this.defaultService_,D),objectPayload:_.Ro(v)}:null};
var tM9=function(D,v){if(v&&typeof D==="string")try{return JSON.parse(D)}catch(h){return null}else if(!v&&typeof D!=="string")return(0,_.nD)(D);return D};
Gq.prototype.disposeInternal=function(){Gq.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 Vb=function(D,v){this.sequence_=[];this.onCancelFunction_=D;this.defaultScope_=v||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};
Vb.prototype.cancel=function(D){if(this.fired_)this.result_ instanceof Vb&&this.result_.cancel();else{if(this.parent_){var v=this.parent_;delete this.parent_;D?v.cancel(D):(v.branches_--,v.branches_<=0&&v.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new P9(this))}};
Vb.prototype.continue_=function(D,v){this.blocked_=!1;rhM(this,D,v)};
var rhM=function(D,v,h){D.fired_=!0;D.result_=h;D.hadError_=!v;uom(D)},vf4=function(D){if(D.fired_){if(!D.silentlyCanceled_)throw new DdR(D);
D.silentlyCanceled_=!1}};
Vb.prototype.callback=function(D){vf4(this);rhM(this,!0,D)};
Vb.prototype.errback=function(D){vf4(this);rhM(this,!1,D)};
var hj4=function(D,v,h){xN(D,v,null,h)};
Vb.prototype.finally=function(D){var v=this;return a0F(new Promise(function(h,a){xN(v,function(Q){D();h(Q)},function(Q){D();
a(Q)})}))};
var xN=function(D,v,h,a){var Q=D.fired_;Q||(v===h?v=h=sP(v):(v=sP(v),h=sP(h)));D.sequence_.push([v,h,a]);Q&&uom(D)};
Vb.prototype.then=function(D,v,h){var a,Q,G=new _.IB(function(x,f){Q=x;a=f});
xN(this,Q,function(x){x instanceof P9?G.cancel():a(x);return $dp},this);
return G.then(D,v,h)};
NDR(Vb);var Qty=function(D,v){v instanceof Vb?hj4(D,(0,_.qp)(v.branch,v)):hj4(D,function(){return v})};
Vb.prototype.branch=function(D){var v=new Vb;xN(this,v.callback,v.errback,v);D&&(v.parent_=this,this.branches_++);return v};
Vb.prototype.isError=function(D){return D instanceof Error};
var G34=function(D){return DM(D.sequence_,function(v){return typeof v[1]==="function"})},$dp={},uom=function(D){if(D.unhandledErrorId_&&D.fired_&&G34(D)){var v=D.unhandledErrorId_,h=VAR[v];
h&&(_.$L.clearTimeout(h.JSC$10025_id_),delete VAR[v]);D.unhandledErrorId_=0}D.parent_&&(D.parent_.branches_--,delete D.parent_);v=D.result_;for(var a=h=!1;D.sequence_.length&&!D.blocked_;){var Q=D.sequence_.shift(),G=Q[0],x=Q[1];Q=Q[2];if(G=D.hadError_?x:G)try{var f=G.call(Q||D.defaultScope_,v);f===$dp&&(f=void 0);f!==void 0&&(D.hadError_=D.hadError_&&(f==v||D.isError(f)),D.result_=v=f);if(YVR(v)||typeof _.$L.Promise==="function"&&v instanceof _.$L.Promise)a=!0,D.blocked_=!0}catch(C){v=C,D.hadError_=
!0,G34(D)||(h=!0)}}D.result_=v;a&&(f=(0,_.qp)(D.continue_,D,!0),a=(0,_.qp)(D.continue_,D,!1),v instanceof Vb?(xN(v,f,a),v.blocking_=!0):v.then(f,a));h&&(v=new Py4(v),VAR[v.JSC$10025_id_]=v,D.unhandledErrorId_=v.JSC$10025_id_)},a0F=function(D){var v=new Vb;
D.then(function(h){v.callback(h)},function(h){v.errback(h)});
return v},DdR=function(){_.hc.call(this)};
_.fa(DdR,_.hc);DdR.prototype.message="Deferred has already fired";DdR.prototype.name="AlreadyCalledError";var P9=function(){_.hc.call(this)};
_.fa(P9,_.hc);P9.prototype.message="Deferred was canceled";P9.prototype.name="CanceledError";var Py4=function(D){this.JSC$10025_id_=_.$L.setTimeout((0,_.qp)(this.throwError,this),0);this.JSC$10025_error_=D};
Py4.prototype.throwError=function(){delete VAR[this.JSC$10025_id_];throw this.JSC$10025_error_;};
var VAR={};var xd9={1:"NativeMessagingTransport"},MAM=["pu","lru","pru","lpu","ppu"],Cym=function(){for(var D=10,v=f0M,h=v.length,a="";D-- >0;)a+=v.charAt(Math.floor(Math.random()*h));return a},f0M="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var MC=function(D){_.AN.call(this);this.JSC$10028_domHelper_=D||cW()};
_.fa(MC,_.AN);MC.prototype.transportType=0;MC.prototype.getWindow=function(){return this.JSC$10028_domHelper_.getWindow()};
MC.prototype.getName=function(){return xd9[String(this.transportType)]||""};var fX=function(D,v,h,a,Q){MC.call(this,h);this.JSC$10031_channel_=D;this.protocolVersion_=Q||2;this.peerHostname_=v||"*";this.JSC$10031_eventHandler_=new _.or(this);this.maybeAttemptToConnectTimer_=new _.Cm(100,this.getWindow());this.oneSidedHandshake_=!!a;this.setupAckReceived_=new Vb;this.setupAckSent_=new Vb;this.JSC$10031_connected_=new Vb;this.endpointId_=Cym();this.peerEndpointId_=null;this.oneSidedHandshake_?ofR(this.JSC$10031_channel_)==1?Qty(this.JSC$10031_connected_,this.setupAckReceived_):
Qty(this.JSC$10031_connected_,this.setupAckSent_):(Qty(this.JSC$10031_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Qty(this.JSC$10031_connected_,this.setupAckSent_));hj4(this.JSC$10031_connected_,this.notifyConnected_,this);this.JSC$10031_connected_.callback(!0);this.JSC$10031_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.fa(fX,MC);fX.prototype.peerProtocolVersion_=null;fX.prototype.initialized_=!1;fX.prototype.transportType=1;var F9t={};fX.prototype.sendTimerId_=0;
var L9s=function(D){var v=D.event_.data;if(typeof v!=="string")return!1;var h=v.indexOf("|"),a=v.indexOf(":");if(h==-1||a==-1)return!1;var Q=v.substring(0,h);h=v.substring(h+1,a);v=v.substring(a+1);if(a=CX[Q])return a.xpcDeliver(h,v,D.event_.origin),!0;a=zjJ(v)[0];for(var G in CX){var x=CX[G];if(ofR(x)==1&&!x.isConnected()&&h=="tp"&&(a=="SETUP"||a=="SETUP_NTPV2")&&Ud4(x,D.event_.origin))return delete CX[x.name],x.name=Q,CX[Q]=x,x.xpcDeliver(h,v),!0}return!1},ZJ1=function(D){D.protocolVersion_!=2||
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||D.send("tp","SETUP_NTPV2,"+D.endpointId_);
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||D.send("tp","SETUP")},EfF=function(D,v){if(D.protocolVersion_!=2||D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||v!=2){if(D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||v!=1)return;
D.send("tp","SETUP_ACK")}else D.send("tp","SETUP_ACK_NTPV2");D.setupAckSent_.fired_||D.setupAckSent_.callback(!0)},I0t=function(D,v){v>D.peerProtocolVersion_&&(D.peerProtocolVersion_=v);
D.peerProtocolVersion_==1&&(D.setupAckSent_.fired_||D.oneSidedHandshake_||D.setupAckSent_.callback(!0),D.peerEndpointId_=null)};
_.V=fX.prototype;_.V.connect=function(){var D=this.getWindow(),v=_.iq(D),h=F9t[v];typeof h!=="number"&&(h=0);h==0&&_.s_(D.postMessage?D:D.document,"message",L9s,!1,fX);F9t[v]=h+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.V.maybeAttemptToConnect_=function(){var D=ofR(this.JSC$10031_channel_)==0;this.oneSidedHandshake_&&D||this.JSC$10031_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),ZJ1(this))};
_.V.send=function(D,v){var h=this.JSC$10031_channel_.peerWindowObject_;h&&(this.send=function(a,Q){var G=this,x=this.JSC$10031_channel_.name;this.sendTimerId_=w9(function(){G.sendTimerId_=0;try{var f=h.postMessage?h:h.document;f.postMessage&&f.postMessage(x+"|"+a+":"+Q,G.peerHostname_)}catch(C){}},0)},this.send(D,v))};
_.V.notifyConnected_=function(){var D=this.JSC$10031_channel_,v=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;D.isConnected()||D.connectionDelay_&&D.connectionDelay_.isActive()||(D.state_=2,_.V5(D.connectionDelay_),v!==void 0?(D.connectionDelay_=new _.b9(D.connectCb_,v),D.connectionDelay_.start()):(D.connectionDelay_=null,D.connectCb_()))};
_.V.disposeInternal=function(){if(this.initialized_){var D=this.getWindow(),v=_.iq(D),h=F9t[v];F9t[v]=h-1;h==1&&_.d9(D.postMessage?D:D.document,"message",L9s,!1,fX)}this.sendTimerId_&&(_.$L.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.V5(this.JSC$10031_eventHandler_);delete this.JSC$10031_eventHandler_;_.V5(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10031_connected_.cancel();delete this.JSC$10031_connected_;delete this.send;fX.superClass_.disposeInternal.call(this)};
var zjJ=function(D){D=D.split(",");D[1]=D[1]||null;return D};var k3J;_.ov=function(D){if(D.getValues&&typeof D.getValues=="function")return D.getValues();if(typeof Map!=="undefined"&&D instanceof Map||typeof Set!=="undefined"&&D instanceof Set)return Array.from(D.values());if(typeof D==="string")return D.split("");if(_.O8(D)){for(var v=[],h=D.length,a=0;a<h;a++)v.push(D[a]);return v}return _.sV.getValues(D)};
_.gfm=function(D){if(D.getKeys&&typeof D.getKeys=="function")return D.getKeys();if(!D.getValues||typeof D.getValues!="function"){if(typeof Map!=="undefined"&&D instanceof Map)return Array.from(D.keys());if(!(typeof Set!=="undefined"&&D instanceof Set)){if(_.O8(D)||typeof D==="string"){var v=[];D=D.length;for(var h=0;h<D;h++)v.push(h);return v}return _.sV.getKeys(D)}}};
k3J=function(D,v,h){if(D.forEach&&typeof D.forEach=="function")D.forEach(v,h);else if(_.O8(D)||typeof D==="string")Array.prototype.forEach.call(D,v,h);else for(var a=_.gfm(D),Q=_.ov(D),G=Q.length,x=0;x<G;x++)v.call(h,Q[x],a&&a[x],D)};var P6I,Iv,kN,BMm,SMR,pv1,J$t,YMs,l09;
_.aN=function(D,v){this.JSC$10036_domain_=this.userInfo_=this.scheme_="";this.JSC$10036_port_=null;this.fragment_=this.JSC$10036_path_="";this.JSC$10036_ignoreCase_=!1;var h;D instanceof _.aN?(this.JSC$10036_ignoreCase_=v!==void 0?v:D.JSC$10036_ignoreCase_,_.FW(this,D.scheme_),this.userInfo_=D.userInfo_,_.zq(this,D.JSC$10036_domain_),_.UG(this,D.JSC$10036_port_),_.LX(this,D.getPath()),_.Z5(this,D.JSC$10036_queryData_.clone()),_.EG(this,D.fragment_)):D&&(h=_.aZ(String(D)))?(this.JSC$10036_ignoreCase_=
!!v,_.FW(this,h[1]||"",!0),this.userInfo_=Iv(h[2]||""),_.zq(this,h[3]||"",!0),_.UG(this,h[4]),_.LX(this,h[5]||"",!0),_.Z5(this,h[6]||"",!0),_.EG(this,h[7]||"",!0)):(this.JSC$10036_ignoreCase_=!!v,this.JSC$10036_queryData_=new _.gI(null,this.JSC$10036_ignoreCase_))};
_.aN.prototype.toString=function(){var D=[],v=this.scheme_;v&&D.push(kN(v,SMR,!0),":");var h=this.JSC$10036_domain_;if(h||v=="file")D.push("//"),(v=this.userInfo_)&&D.push(kN(v,SMR,!0),"@"),D.push(_.t$(h).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h=this.JSC$10036_port_,h!=null&&D.push(":",String(h));if(h=this.getPath())this.JSC$10036_domain_&&h.charAt(0)!="/"&&D.push("/"),D.push(kN(h,h.charAt(0)=="/"?J$t:pv1,!0));(h=this.JSC$10036_queryData_.toString())&&D.push("?",h);(h=this.fragment_)&&D.push("#",
kN(h,l09));return D.join("")};
_.aN.prototype.resolve=function(D){var v=this.clone(),h=!!D.scheme_;h?_.FW(v,D.scheme_):h=!!D.userInfo_;h?v.userInfo_=D.userInfo_:h=!!D.JSC$10036_domain_;h?_.zq(v,D.JSC$10036_domain_):h=D.JSC$10036_port_!=null;var a=D.getPath();if(h)_.UG(v,D.JSC$10036_port_);else if(h=!!D.JSC$10036_path_){if(a.charAt(0)!="/")if(this.JSC$10036_domain_&&!this.JSC$10036_path_)a="/"+a;else{var Q=v.getPath().lastIndexOf("/");Q!=-1&&(a=v.getPath().slice(0,Q+1)+a)}Q=a;if(Q==".."||Q==".")a="";else if(_.oo(Q,"./")||_.oo(Q,
"/.")){a=_.Gu(Q,"/");Q=Q.split("/");for(var G=[],x=0;x<Q.length;){var f=Q[x++];f=="."?a&&x==Q.length&&G.push(""):f==".."?((G.length>1||G.length==1&&G[0]!="")&&G.pop(),a&&x==Q.length&&G.push("")):(G.push(f),a=!0)}a=G.join("/")}else a=Q}h?_.LX(v,a):h=D.JSC$10036_queryData_.toString()!=="";h?_.Z5(v,D.JSC$10036_queryData_.clone()):h=!!D.fragment_;h&&_.EG(v,D.fragment_);return v};
_.aN.prototype.clone=function(){return new _.aN(this)};
_.FW=function(D,v,h){D.scheme_=h?Iv(v,!0):v;D.scheme_&&(D.scheme_=D.scheme_.replace(/:$/,""));return D};
_.zq=function(D,v,h){D.JSC$10036_domain_=h?Iv(v,!0):v;return D};
_.UG=function(D,v){if(v){v=Number(v);if(isNaN(v)||v<0)throw Error("Pa`"+v);D.JSC$10036_port_=v}else D.JSC$10036_port_=null;return D};
_.aN.prototype.getPath=function(){return this.JSC$10036_path_};
_.LX=function(D,v,h){D.JSC$10036_path_=h?Iv(v,!0):v;return D};
_.Z5=function(D,v,h){v instanceof _.gI?(D.JSC$10036_queryData_=v,NMt(D.JSC$10036_queryData_,D.JSC$10036_ignoreCase_)):(h||(v=kN(v,YMs)),D.JSC$10036_queryData_=new _.gI(v,D.JSC$10036_ignoreCase_));return D};
_.Dq=function(D,v,h){D.JSC$10036_queryData_.set(v,h);return D};
_.rW=function(D,v){return D.JSC$10036_queryData_.get(v)};
_.EG=function(D,v,h){D.fragment_=h?Iv(v):v;return D};
_.Sv=function(D){_.Dq(D,"zx",WQ());return D};
_.tN=function(D,v){return D instanceof _.aN?D.clone():new _.aN(D,v)};
P6I=function(D,v){D instanceof _.aN||(D=_.tN(D));v instanceof _.aN||(v=_.tN(v));return D.resolve(v)};
Iv=function(D,v){return D?v?decodeURI(D.replace(/%25/g,"%2525")):decodeURIComponent(D):""};
kN=function(D,v,h){return typeof D==="string"?(D=encodeURI(D).replace(v,BMm),h&&(D=D.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D):null};
BMm=function(D){D=D.charCodeAt(0);return"%"+(D>>4&15).toString(16)+(D&15).toString(16)};
SMR=/[#\/\?@]/g;pv1=/[#\?:]/g;J$t=/[#\?]/g;YMs=/[#\?@]/g;l09=/#/g;_.gI=function(D,v){this.count_=this.keyMap_=null;this.encodedQuery_=D||null;this.JSC$10037_ignoreCase_=!!v};
_.JF=function(D){D.keyMap_||(D.keyMap_=new Map,D.count_=0,D.encodedQuery_&&LMF(D.encodedQuery_,function(v,h){D.add(VH(v),h)}))};
_.V=_.gI.prototype;_.V.getCount=function(){_.JF(this);return this.count_};
_.V.add=function(D,v){_.JF(this);this.encodedQuery_=null;D=pX(this,D);var h=this.keyMap_.get(D);h||this.keyMap_.set(D,h=[]);h.push(v);this.count_+=1;return this};
_.V.remove=function(D){_.JF(this);D=pX(this,D);return this.keyMap_.has(D)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(D).length,this.keyMap_.delete(D)):!1};
_.V.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.V.isEmpty=function(){_.JF(this);return this.count_==0};
_.V.containsKey=function(D){_.JF(this);D=pX(this,D);return this.keyMap_.has(D)};
_.V.containsValue=function(D){var v=this.getValues();return _.wc(v,D)};
_.V.forEach=function(D,v){_.JF(this);this.keyMap_.forEach(function(h,a){h.forEach(function(Q){D.call(v,Q,a,this)},this)},this)};
_.V.getKeys=function(){_.JF(this);for(var D=Array.from(this.keyMap_.values()),v=Array.from(this.keyMap_.keys()),h=[],a=0;a<v.length;a++)for(var Q=D[a],G=0;G<Q.length;G++)h.push(v[a]);return h};
_.V.getValues=function(D){_.JF(this);var v=[];if(typeof D==="string")this.containsKey(D)&&(v=v.concat(this.keyMap_.get(pX(this,D))));else{D=Array.from(this.keyMap_.values());for(var h=0;h<D.length;h++)v=v.concat(D[h])}return v};
_.V.set=function(D,v){_.JF(this);this.encodedQuery_=null;D=pX(this,D);this.containsKey(D)&&(this.count_-=this.keyMap_.get(D).length);this.keyMap_.set(D,[v]);this.count_+=1;return this};
_.V.get=function(D,v){if(!D)return v;D=this.getValues(D);return D.length>0?String(D[0]):v};
_.c$4=function(D,v,h){D.remove(v);h.length>0&&(D.encodedQuery_=null,D.keyMap_.set(pX(D,v),_.n7(h)),D.count_+=h.length)};
_.gI.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var D=[],v=Array.from(this.keyMap_.keys()),h=0;h<v.length;h++){var a=v[h],Q=_.t$(a);a=this.getValues(a);for(var G=0;G<a.length;G++){var x=Q;a[G]!==""&&(x+="="+_.t$(a[G]));D.push(x)}}return this.encodedQuery_=D.join("&")};
_.gI.prototype.clone=function(){var D=new _.gI;D.encodedQuery_=this.encodedQuery_;this.keyMap_&&(D.keyMap_=new Map(this.keyMap_),D.count_=this.count_);return D};
var pX=function(D,v){v=String(v);D.JSC$10037_ignoreCase_&&(v=v.toLowerCase());return v},NMt=function(D,v){v&&!D.JSC$10037_ignoreCase_&&(_.JF(D),D.encodedQuery_=null,D.keyMap_.forEach(function(h,a){var Q=a.toLowerCase();
a!=Q&&(this.remove(a),_.c$4(this,Q,h))},D));
D.JSC$10037_ignoreCase_=v};
_.gI.prototype.extend=function(D){for(var v=0;v<arguments.length;v++)k3J(arguments[v],function(h,a){this.add(a,h)},this)};var lE=function(D,v){Gq.call(this);for(var h=0,a;a=MAM[h];h++)if(a in D&&!/^https?:\/\//.test(D[a]))throw Error("Ra`"+D[a]+"`"+a);this.cfg_=D;this.name=this.cfg_.cn||Cym();this.JSC$10032_domHelper_=v||cW();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.or(this);D.lpu=D.lpu||zB4(this.JSC$10032_domHelper_.getWindow().location.href)+"/robots.txt";D.ppu=D.ppu||zB4(D.pu||"")+"/robots.txt";CX[this.name]=this;EJM(window,"unload",XvM)||qK(window,"unload",XvM)};
_.fa(lE,Gq);var A$1=RegExp("^%*tp$"),qMM=RegExp("^%+tp$");_.V=lE.prototype;_.V.connectionDelay_=null;_.V.peerWindowDeferred_=null;_.V.transport_=null;_.V.state_=1;_.V.isConnected=function(){return this.state_==2};
_.V.peerWindowObject_=null;_.V.iframeElement_=null;_.V.getConfig=function(){return this.cfg_};
_.V.connect=function(D){this.connectCb_=D||_.Ay;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?hj4(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.V.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10032_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var D=this.iframeElement_.contentWindow;D||(D=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=D}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10032_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new fX(this,this.cfg_.ph,this.JSC$10032_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()()};
_.V.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.V5(this.transport_);this.connectCb_=this.transport_=null;_.V5(this.connectionDelay_);this.connectionDelay_=null};
_.V.send=function(D,v){if(this.isConnected()){try{var h=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Q){h=!1}if(h){_.Ro(v)&&(v=(0,_.nD)(v));h=this.transport_;var a=h.send;A$1.test(D)&&(D="%"+D);D=D.replace(/[%:|]/g,encodeURIComponent);a.call(h,D,v)}else this.close()}};
_.V.xpcDeliver=function(D,v,h){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.qp)(this.xpcDeliver,this,D,v,h));else if(Ud4(this,h)&&!this.isDisposed()&&this.state_!=3)if(D&&D!="tp")this.isConnected()&&(D=D.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),D=qMM.test(D)?D.substring(1):D,D=this.getService(D,v))&&(v=tM9(v,D.objectPayload),v!=null&&D.callback(v));else switch(D=this.transport_,h=zjJ(v),v=h[1],h[0]){case "SETUP_ACK":I0t(D,1);D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":D.protocolVersion_==2&&(I0t(D,2),D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0));break;case "SETUP":I0t(D,1);EfF(D,1);break;case "SETUP_NTPV2":D.protocolVersion_==2&&(h=D.peerProtocolVersion_,I0t(D,2),EfF(D,2),h!=1&&D.peerEndpointId_==null||D.peerEndpointId_==v||ZJ1(D),D.peerEndpointId_=v)}};
var ofR=function(D){var v=D.cfg_.role;return typeof v==="number"?v:window.parent==D.peerWindowObject_?1:0},Ud4=function(D,v){var h=D.cfg_.ph;
return _.C7(v==null?"":String(v))||_.C7(h==null?"":String(h))||v==D.cfg_.ph};
lE.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete CX[this.name];_.V5(this.peerLoadHandler_);delete this.peerLoadHandler_;lE.superClass_.disposeInternal.call(this)};
var XvM=function(){for(var D in CX)_.V5(CX[D])},CX={};var ddR=function(D,v){this.JSC$10046_win=D;this.allowAdsHttpEndpoint=v;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10046_domHelper=cW(D);this.scrollManager=new Rrb(D);this.accessibilityManager=new erJ(D);bJ$(this)},bJ$=function(D){var v=function(){D.allowAdsPopup&&D.allowAdsPopup.style.setProperty("display","none","important");
D.wallElement.style.setProperty("display","","important");nHs(D.accessibilityManager);Tqm(D.accessibilityManager,D.wallElement.querySelector(".fc-dialog-container"),!1,!1,D.wallElement.querySelector(".fc-button-whitelist"));D.scrollManager.enableScrolling()};
D.allowAdsPopup=D.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-root"});D.allowAdsPopup.style.setProperty("display","none","important");D.JSC$10046_domHelper.appendChild(D.JSC$10046_domHelper.JSC$9330_document_.body,D.allowAdsPopup);var h=D.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-dialog-overlay"});D.JSC$10046_domHelper.appendChild(D.allowAdsPopup,h);var a=D.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:v});D.JSC$10046_domHelper.appendChild(D.allowAdsPopup,
a);h=D.JSC$10046_domHelper.JSC$9332_createDom("IFRAME");h.className="fc-whitelist-dialog";h.frameBorder="0";h.id="fc-whitelist-iframe";h.tabIndex="0";_.uH(h,D.allowAdsHttpEndpoint);D.JSC$10046_domHelper.appendChild(a,h);a={};a.pu=_.qf(D.allowAdsHttpEndpoint).toString();a.tp=1;a.cn="fc-whitelist-channel";a.ifrid=h.id;a.osh=!0;D.allowAdsCrossPageChannel=new lE(a);D.allowAdsCrossPageChannel.registerService("close",v);D.allowAdsCrossPageChannel.registerService("refresh",function(){D.JSC$10046_win.location.reload()});
D.allowAdsCrossPageChannel.registerService("resize",function(Q){if(Q){var G=D.allowAdsPopup.querySelector(".fc-whitelist-dialog");Q.width&&G.style.setProperty("width",Q.width,"important");Q.height&&G.style.setProperty("height",Q.height,"important")}},!0);
D.allowAdsCrossPageChannel.connect()};
ddR.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10046_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var NC=window,YN=document,jt1=NC.location,sts=function(){},mdF=/\[native code\]/,B9=function(D,v,h){return D[v]=D[v]||h},HJm=function(D){D=D.sort();
for(var v=[],h=void 0,a=0;a<D.length;a++){var Q=D[a];Q!=h&&v.push(Q);h=Q}return v},c9=function(){var D;
if((D=Object.create)&&mdF.test(D))D=D(null);else{D={};for(var v in D)D[v]=void 0}return D},XW=B9(NC,"gapi",{});var qC={};qC=B9(NC,"___jsl",c9());B9(qC,"I",0);B9(qC,"hel",10);var y$$=function(){var D=jt1.href;if(qC.dpo)var v=qC.h;else{v=qC.h;var h=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),a=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(D=D&&(h.exec(D)||a.exec(D)))try{v=decodeURIComponent(D[2])}catch(Q){}}return v},wv9=function(D){var v=B9(qC,"PQ",[]);
qC.PQ=[];var h=v.length;if(h===0)D();else for(var a=0,Q=function(){++a===h&&D()},G=0;G<h;G++)v[G](Q)},ejF=function(D){return B9(B9(qC,"H",c9()),D,c9())};var bE=function(D){this.JSC$10048_obj_=D};
bE.prototype.value=function(){return this.JSC$10048_obj_};
bE.prototype.getWidth=function(){return this.JSC$10048_obj_.width};
bE.prototype.getHeight=function(){return this.JSC$10048_obj_.height};
bE.prototype.getStyle=function(){return this.JSC$10048_obj_.style};var nfs=function(D){this.JSC$10051_obj_=D||{}};
_.V=nfs.prototype;_.V.value=function(){return this.JSC$10051_obj_};
_.V.setUrl=function(D){this.JSC$10051_obj_.url=D;return this};
_.V.getUrl=function(){return this.JSC$10051_obj_.url};
_.V.getStyle=function(){return this.JSC$10051_obj_.style};
_.V.getId=function(){return this.JSC$10051_obj_.id};
_.V.getContext=function(){return this.JSC$10051_obj_.context};
var OJp=function(D){D.JSC$10051_obj_.attributes=D.JSC$10051_obj_.attributes||{};return new bE(D.JSC$10051_obj_.attributes)};var K9J=function(){nfs.apply(this,arguments)};
_.J(K9J,nfs);var TM4=B9(qC,"perf",c9());B9(TM4,"g",c9());var Rjt=B9(TM4,"i",c9());B9(TM4,"r",[]);c9();c9();var W9m=function(D,v,h){v&&v.length>0&&(v=iJ4(v),h&&h.length>0&&(v+="___"+iJ4(h)),v.length>28&&(v=v.substr(0,28)+(v.length-28)),h=v,v=B9(Rjt,"_p",c9()),B9(v,h,c9())[D]=(new Date).getTime(),v=TM4.r,typeof v==="function"?v(D,"_p",h):v.push([D,"_p",h]))},iJ4=function(D){return D.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var tA4=c9(),r$s=[],dI=function(D){throw Error("Ua`"+D);};
r$s.push(["jsl",function(D){for(var v in D)if(Object.prototype.hasOwnProperty.call(D,v)){var h=D[v];typeof h=="object"?qC[v]=B9(qC,v,[]).concat(h):B9(qC,v,h)}if(v=D.u)D=B9(qC,"us",[]),D.push(v),(v=/^https:(.*)$/.exec(v))&&D.push("http:"+v[1])}]);
var udm=/^(\/[a-zA-Z0-9_\-]+)+$/,DMJ=[/\/amp\//,/\/amp$/,/^\/amp$/],vdy=/^[a-zA-Z0-9\-_\.,!]+$/,hxF=/^gapi\.loaded_[0-9]+$/,aX4=/^[a-zA-Z0-9,._-]+$/,VOJ=function(D,v,h,a,Q){var G=D.split(";"),x=G.shift(),f=tA4[x],C=null;f?C=f(G,v,h,a):dI("no hint processor for: "+x);C||dI("failed to generate load url");v=C;h=v.match($My);(a=v.match(QZ9))&&a.length===1&&GiM.test(v)&&h&&h.length===1||dI("failed sanity: "+D);try{D="?";if(Q&&Q.length>0){b7r(Q);var U=Q.join(",");C=C+"?le="+U;D="&"}if(qC.rol){var L=qC.ol;
L&&L.length&&(C=""+C+D+"ol="+L.length)}}catch(Z){}return C},MO1=function(D,v,h,a){D=P8F(D);
hxF.test(h)||dI("invalid_callback");v=xMt(v);a=a&&a.length?xMt(a):null;var Q=function(G){return encodeURIComponent(G).replace(/%2C/g,",")};
return[encodeURIComponent(D.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Q(D.version),"/m=",Q(v),a?"/exm="+Q(a):"","/rt=j/sv=1/d=1/ed=1",D.activeMods?"/am="+Q(D.activeMods):"",D.resourceSig?"/rs="+Q(D.resourceSig):"",D.zcms?"/t="+Q(D.zcms):"","/cb=",Q(h)].join("")},P8F=function(D){D.charAt(0)!=="/"&&dI("relative path");
for(var v=D.substring(1).split("/"),h=[];v.length;){D=v.shift();if(!D.length||D.indexOf(".")==0)dI("empty/relative directory");else if(D.indexOf("=")>0){v.unshift(D);break}h.push(D)}D={};for(var a=0,Q=v.length;a<Q;++a){var G=v[a].split("="),x=decodeURIComponent(G[0]),f=decodeURIComponent(G[1]);G.length==2&&x&&f&&(D[x]=D[x]||f)}v="/"+h.join("/");udm.test(v)||dI("invalid_prefix");h=0;for(a=DMJ.length;h<a;++h)DMJ[h].test(v)&&dI("invalid_prefix");h=fXp(D,"k",!0);a=fXp(D,"am");Q=fXp(D,"rs");D=fXp(D,"t");
return{pathPrefix:v,version:h,activeMods:a,resourceSig:Q,zcms:D}},xMt=function(D){for(var v=[],h=0,a=D.length;h<a;++h){var Q=D[h].replace(/\./g,"_").replace(/-/g,"_");
aX4.test(Q)&&v.push(Q)}return v.join(",")},fXp=function(D,v,h){D=D[v];
!D&&h&&dI("missing: "+v);if(D){if(vdy.test(D))return D;dI("invalid: "+v)}return null},GiM=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,QZ9=/\/cb=/g,$My=/\/\//g;
tA4.m=function(D,v,h,a){(D=D[0])||dI("missing_hint");return"https://apis.google.com"+MO1(D,v,h,a)};
var C8y=decodeURI("%73cript"),odm=/^[-+_0-9\/A-Za-z]+={0,2}$/,Fby=function(D,v){for(var h=[],a=0;a<D.length;++a){var Q=D[a],G;if(G=Q){a:{for(G=0;G<v.length;G++)if(v[G]===Q)break a;G=-1}G=G<0}G&&h.push(Q)}return h},zxR=function(){var D=qC.nonce;
return D!==void 0?D&&D===String(D)&&D.match(odm)?D:qC.nonce=null:YN.querySelector?(D=YN.querySelector("script[nonce]"))?(D=D.nonce||D.getAttribute("nonce")||"",D&&D===String(D)&&D.match(odm)?qC.nonce=D:qC.nonce=null):null:null},Zx$=function(D){if(YN.readyState!="loading")UMF(D);
else{var v=zxR(),h="";v!==null&&(h=' nonce="'+v+'"');D="<"+C8y+' src="'+encodeURI(D)+'"'+h+"></"+C8y+">";YN.write(LbF?LbF.createHTML(D):D)}},UMF=function(D){var v=YN.createElement(C8y);
v.setAttribute("src",LbF?LbF.createScriptURL(D):D);D=zxR();D!==null&&v.setAttribute("nonce",D);v.async="true";(D=YN.getElementsByTagName(C8y)[0])?D.parentNode.insertBefore(v,D):(YN.head||YN.body||YN.documentElement).appendChild(v)},IXJ=function(D,v,h){Edb(function(){var a=v===y$$()?B9(XW,"_",c9()):c9();
a=B9(ejF(v),"_",a);D(a)},h)},Tmc=function(D,v){var h=v||{};
typeof v=="function"&&(h={},h.callback=v);var a=(v=h)&&v._c;if(a)for(var Q=0;Q<r$s.length;Q++){var G=r$s[Q][0],x=r$s[Q][1];x&&Object.prototype.hasOwnProperty.call(a,G)&&x(a[G],D,v)}v=[];D?v=D.split(":"):h.features&&(v=h.features);if(!(D=h.h)&&(D=y$$(),!D))throw Error("Va");gd4(v||[],h,D)},gd4=function(D,v,h){D=HJm(D)||[];
var a=v.callback,Q=v.config,G=v.timeout,x=v.ontimeout,f=v.onerror,C=void 0;typeof f=="function"&&(C=f);var U=null,L=!1;if(G&&!x||!G&&x)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";f=B9(ejF(h),"r",[]).sort();var Z=B9(ejF(h),"L",[]).sort(),E=qC.le||[],I=[].concat(f),S=function(W,K){if(L)return 0;NC.clearTimeout(U);Z.push.apply(Z,B);var O=((XW||{}).config||{}).update;O?O(Q):Q&&B9(qC,"cu",[]).push(Q);if(K){W9m("me0",W,I);try{IXJ(K,h,C)}finally{W9m("me1",W,I)}}return 1};
G>0&&(U=NC.setTimeout(function(){L=!0;x()},G));
var B=Fby(D,Z);if(B.length){B=Fby(D,f);var A=B9(qC,"CP",[]),d=A.length;A[d]=function(W){if(!W)return 0;W9m("ml1",B,I);var K=function(R){A[d]=null;S(B,W)&&wv9(function(){a&&a();R()})},O=function(){var R=A[d+1];
R&&R()};
d>0&&A[d-1]?A[d]=function(){K(O)}:K(O)};
if(B.length){var b="loaded_"+qC.I++;XW[b]=function(W){A[d](W);XW[b]=null};
D=VOJ(h,B,"gapi."+b,f,E);f.push.apply(f,B);W9m("ml0",B,I);v.sync||NC.___gapisync?Zx$(D):UMF(D)}else A[d](sts)}else S(B)&&a&&a()},kiF;
var SzM=null,JOF=_.$L.trustedTypes;if(JOF&&JOF.createPolicy){try{SzM=JOF.createPolicy("goog#gapi",{createHTML:SJA,createScript:SJA,createScriptURL:SJA})}catch(D){_.$L.console&&_.$L.console.error(D.message)}kiF=SzM}else kiF=SzM;var LbF=kiF,Edb=function(D,v){if(qC.hee&&qC.hel>0)try{return D()}catch(h){v&&v(h),qC.hel--,Tmc("debug_error",function(){try{window.___jsl.hefn(h)}catch(a){throw h;}})}else try{return D()}catch(h){throw v&&v(h),h;
}},pVM=XW.load;
pVM&&B9(qC,"ol",[]).push(pVM);XW.load=function(D,v){return Edb(function(){return Tmc(D,v)})};var ndi;var Nl9=function(D,v){var h=h||[];this.serviceId_=D;this.moduleId_=v||null;this.dependencies_=[];lXJ(this,h)};
Nl9.prototype.toString=function(){return this.serviceId_};
Nl9.prototype.getModuleId=function(){return this.moduleId_};
var lXJ=function(D,v){var h=!1;h=h===void 0?!1:h;D.dependencies_=D.dependencies_.concat(v);if(h){if(!D.moduleId_)throw Error("Wa`"+D.serviceId_);v.map(function(a){return a.getModuleId()}).forEach(function(a){Oxu(function(Q){Q.addExtraEdge(D.moduleId_,a)})})}};var cBr=new Nl9("MpJwZc","MpJwZc");var kUc=new _.cZ("a"),ABu=new _.cZ("c"),XTL=function(D,v,h){_.XI.call(this,D,v);this.node=v;this.kind=h};
_.J(XTL,_.XI);var Yz1=function(){this.JSC$10064_keys_={};this.urlPrefix_="";this.JSC$10064_queryData_={}};
Yz1.prototype.toString=function(){var D=this.urlPrefix_+BlJ(this),v=_.SO(this.JSC$10064_queryData_),h="";v!=""&&(h="?"+v);return D+h};
var cOF=function(D){D=jv(D,"md");return!!D&&D!=="0"},BlJ=function(D){var v=[],h=(0,_.qp)(function(a){this.JSC$10064_keys_[a]!==void 0&&v.push(a+"="+this.JSC$10064_keys_[a])},D);
cOF(D)?(h("md"),h("k"),h("ck"),h("am"),h("rs"),h("gssmodulesetproto"),h("slk"),h("dti")):(h("sdch"),h("k"),h("ck"),h("am"),h("rt"),"d"in D.JSC$10064_keys_||sG(D,"d","0"),h("d"),h("exm"),h("excm"),(D.JSC$10064_keys_.excm||D.JSC$10064_keys_.exm)&&v.push("ed=1"),h("im"),h("dg"),h("sm"),jv(D,"br")!="1"&&jv(D,"br")!="0"||h("br"),h("br-d"),jv(D,"rb")=="1"&&h("rb"),jv(D,"zs")!=="0"&&h("zs"),XVJ(D)!==""&&h("wt"),h("gssmodulesetproto"),h("ujg"),h("sp"),h("rs"),h("cb"),h("ee"),h("slk"),h("dti"),h("m"));return v.join("/")},
jv=function(D,v){return D.JSC$10064_keys_[v]?D.JSC$10064_keys_[v]:null},sG=function(D,v,h){h?D.JSC$10064_keys_[v]=h:delete D.JSC$10064_keys_[v]},AOM=function(D,v){D.urlPrefix_=v},qz9=function(D,v){v&&v.length>0?(v.sort(),sG(D,"exm",v.join(","))):sG(D,"exm",null)},bxR=function(D,v){v&&v.length>0?(v.sort(),sG(D,"excm",v.join(","))):sG(D,"excm",null)},dM4=function(D){return(D=jv(D,"m"))?D.split(","):[]},XVJ=function(D){switch(jv(D,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},jZ$=function(D,v){var h=Object.keys(v).filter(function(a){return!!Object.keys(v[a]).length}).map(function(a){var Q=Object.keys(v[a]);
Q.length>1&&Q.sort();return a+":"+Q.join(",")});
h.sort();sG(D,"ee",h.join(";"))},DYc=function(D){var v=jv(D,"ee");
if(!v)return{};D={};v=_.P(v.split(";"));for(var h=v.next();!h.done;h=v.next()){var a=_.P(h.value.split(":"));h=a.next().value;a=a.next().value;D[h]={};a=_.P(a.split(","));for(var Q=a.next();!Q.done;Q=a.next())D[h][Q.value]=!0}return D},sZs=function(D){delete D.JSC$10064_keys_.m;
delete D.JSC$10064_keys_.exm;delete D.JSC$10064_keys_.ed};
Yz1.prototype.clone=function(){var D=new Yz1;D.JSC$10064_keys_=Object.assign({},this.JSC$10064_keys_);D.urlPrefix_=this.urlPrefix_;D.JSC$10064_queryData_=Object.assign({},this.JSC$10064_queryData_);return D};
var v_4=function(D,v){v=v===void 0?!0:v;var h=mMb(D),a=new Yz1,Q=_.aZ(h)[5];_.sV.forEach(HxJ,function(x){var f=Q.match("/"+x+"=([^/]+)");f&&sG(a,x,f[1])});
var G="";G=D.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";AOM(a,D.substr(0,D.indexOf(G)+G.length));if(!v)return a;(D=_.aZ(h)[6]||null)&&LMF(D,function(x,f){a.JSC$10064_queryData_[x]=f});
return a},tJI=function(D){D=_.gl(mMb(D));
return D===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(D)?/\/k=/.test(D):!1},mMb=function(D){return D.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?D.substr(65):D},HxJ={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"},yOm=RegExp("^loaded_(g|h)?[_\\d]+$");_.mD=function(D){this.JSC$10076_id_=D;this.opts={}};
_.mD.prototype.JSC$10078_setLabel=function(D){this.label_=D||void 0;return this};
_.mD.prototype.addUploadMetadata=function(D,v){var h=this.opts.data||{};h[D]=v;this.opts.data=h;return this};
var wVm=function(D){var v=_.sV.filter(D.opts,function(h){return h!==null});
v=_.sV.isEmpty(v)?null:v;D=[D.JSC$10076_id_,D.label_,v];v=Bc4(D);return D=D.slice(0,v+1)};
_.mD.prototype.toString=function(){var D=wVm(this);return"("+_.mO(D,function(v){return JSON.stringify(v)}).join(",")+")"};
_.mD.prototype.getId=function(){return this.JSC$10076_id_};
_.mD.prototype.getOptions=function(){return _.sV.clone(this.opts)};var H9=function(){_.mD.call(this,"image-search")};
_.J(H9,_.mD);H9.prototype.setSize=function(D){this.opts.imgsz=D;return this};
H9.prototype.JSC$10078_setLabel=function(D){_.mD.prototype.JSC$10078_setLabel.call(this,D);return this};
H9.prototype.addUploadMetadata=function(D,v){_.mD.prototype.addUploadMetadata.call(this,D,v);return this};var yb=function(){_.mD.call(this,"maps")};
_.J(yb,_.mD);yb.prototype.setZoom=function(D){this.opts.zoom=D;return this};
yb.prototype.JSC$10078_setLabel=function(D){_.mD.prototype.JSC$10078_setLabel.call(this,D);return this};
yb.prototype.addUploadMetadata=function(D,v){_.mD.prototype.addUploadMetadata.call(this,D,v);return this};_.wI=function(){_.mD.call(this,"photos")};
_.J(_.wI,_.mD);_.wI.prototype.JSC$10078_setLabel=function(D){_.mD.prototype.JSC$10078_setLabel.call(this,D);return this};
_.wI.prototype.addUploadMetadata=function(D,v){_.mD.prototype.addUploadMetadata.call(this,D,v);return this};var ev=function(){_.mD.call(this,"url")};
_.J(ev,_.mD);var exs=function(){var D=new ev;D.opts.type="video";D.opts.site="youtube.com";return D};
ev.prototype.JSC$10078_setLabel=function(D){_.mD.prototype.JSC$10078_setLabel.call(this,D);return this};
ev.prototype.addUploadMetadata=function(D,v){_.mD.prototype.addUploadMetadata.call(this,D,v);return this};var nX=function(){_.mD.call(this,"video-search")};
_.J(nX,_.mD);var ndM=function(){var D=new nX;D.opts.site="youtube.com";return D};
nX.prototype.JSC$10078_setLabel=function(D){_.mD.prototype.JSC$10078_setLabel.call(this,D);return this};
nX.prototype.addUploadMetadata=function(D,v){_.mD.prototype.addUploadMetadata.call(this,D,v);return this};var Oxy=function(){_.mD.call(this,"web")};
_.J(Oxy,_.mD);Oxy.prototype.JSC$10078_setLabel=function(D){_.mD.prototype.JSC$10078_setLabel.call(this,D);return this};
Oxy.prototype.addUploadMetadata=function(D,v){_.mD.prototype.addUploadMetadata.call(this,D,v);return this};var OG=function(){this.items_=[];this.opts={}},KbF=function(D){switch(D){case "image-search":return new H9;
case "maps":return new yb;case "photos":return new _.wI;case "url":return new ev;case "video-search":return new nX;case "web":return new Oxy}return new _.mD(D)};
OG.prototype.addView=function(D){this.items_.push(typeof D==="string"?KbF(D):D);return this};
var Tlb=function(D){return"("+_.mO(D.items_,function(v){return v.toString()}).join(",")+")"};
OG.prototype.toString=function(){return Tlb(this)};
OG.prototype.getViews=function(D,v){v=v===void 0?[]:v;for(var h=this.items_,a=0;a<h.length;a++){var Q=h[a];Q instanceof OG?Q.getViews(D,v):Q.getId()==D&&v.push(Q)}return v};
OG.prototype.getOptions=function(){return _.sV.clone(this.opts)};var ON=function(D){this.basePickerUrl_=D||"https://docs.google.com/picker";this.nav_=new OG};
ON.prototype.nav_=null;ON.prototype.addView=function(D){this.nav_.addView(D);return this};
ON.prototype.getBaseUrl=function(){return this.basePickerUrl_};
ON.prototype.getViews=function(D){return this.nav_.getViews(D)};
_.Rx$=function(D,v){D.callback_=v;return D};var ixJ=new Map;ixJ.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ixJ.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ixJ.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var WbM=new Set;WbM.add("application/vnd.google-apps.kix");WbM.add("application/vnd.google-apps.ritz");WbM.add("application/vnd.google-apps.punch");var PO4=function(D,v,h){var a=h&&_.jI(h,1);h=tOm(h);var Q=D[0].getId();switch(_.s1(Q,2)){case 13:return rO9(D,v,a,h);case 3:return uHM(D,v,a,h);case 10:return DH4(D,v,a,h);case 27:return DH4(D,v,a,h);case 12:return vzs(D,v);case 2:return hdJ(D,v,a,h);case 5:return aot(D,v,a,h);case 9:return $H4(D,v,a,h);case 6:return Qe1(D,v,a,h);case 25:return Gm$(D,v,a,h);case 1:return _.pa(D[0],qQ$,26)?VJ1(D,v,a,h):DH4(D,v,a,h);default:return{}}},Qe1=function(D,v,h,a){D=D.map(function(Q){return{id:Q.getId().getId(),
serviceId:"youtube",name:Q.getName(),description:_.jI(Q,3),type:KX(Q),lastEditedUtc:_.A3$(_.CL(Q,_.m2,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:_.jI(Q,13),thumbnails:Tq(fD(Q))}});
return{action:v,docs:D,viewToken:a,view:h||"youtube",v2Translated:!0}},hdJ=function(D,v,h,a){var Q=D.map(function(G){var x=G.getId().getId(),f=_.jI(G,7),C=G.getName(),U=KX(G),L=_.A3$(_.CL(G,_.m2,12)).getTime(),Z=G.getUrl(),E=Number(w5I(G)),I=_.jI(G,3),S=_.jI(G,11),B=Tq(fD(G));
var A=_.CL(G,CD,21);A=_.q6(A,1);var d=_.CL(G,CD,21);d=_.jI(d,10);var b=_.jI(G,13);var W=_.CL(G,CD,21);W=_.q6(W,9);var K=_.CL(G,CD,21);K=_.jI(K,11);x={id:x,serviceId:"docs",mimeType:f,name:C,type:U,lastEditedUtc:L,url:Z,sizeBytes:E,description:I,iconUrl:S,thumbnails:B,isShared:A,downloadUrl:d,embedUrl:b,copyable:W,resourceKey:K};f=_.CL(G,CD,21);_.q6(f,12)&&(x.uploadState="success",x.isNew=!0);f=_.CL(G,CD,21);_.pa(f,PZ,3)&&(G=_.CL(G,CD,21),G=_.CL(G,PZ,3),_.pa(G,Gr,2)&&(f=wW(G.getDuration().getSeconds()),
C=G.getDuration(),C=_.C0(C,2),x.duration=f+C/1E9),x.aspectRatio=G.getAspectRatio());return x});
return{action:v,docs:Q,viewToken:a,view:h||"all",extraUserInputs:xHM(D),v2Translated:!0}},aot=function(D,v,h,a){D=D.map(function(Q){var G=_.CL(Q,eB4,15);
G=_.CL(G,VS,1);JX(Q,10,VS,G);return{id:Q.getId().getId(),serviceId:"web",mimeType:_.jI(Q,7),name:Q.getName(),type:KX(Q),url:Q.getUrl(),description:_.jI(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Tq(fD(Q))}});
return{action:v,docs:D,viewToken:a,view:h||"image-search",v2Translated:!0}},$H4=function(D,v,h,a){D=D.map(function(Q){return{serviceId:"url",
name:fD(Q)[0].getUrl().split("/").pop(),type:KX(Q),mimeType:_.jI(Q,7),url:Q.getUrl(),description:_.jI(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Tq(fD(Q))}});
return{action:v,docs:D,viewToken:a,view:h||"url",v2Translated:!0}},VJ1=function(D,v,h,a){D=D.map(function(Q){return{id:Q.getId().getId(),
serviceId:"picasa",name:Q.getName(),type:KX(Q),description:_.jI(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Tq(fD(Q))}});
return{action:v,docs:D,viewToken:a,view:h||"webcam",v2Translated:!0}},DH4=function(D,v,h,a){return{action:v,
docs:D.map(MJ1),viewToken:a,view:fob(h||"upload",D),extraUserInputs:xHM(D),v2Translated:!0}},fob=function(D,v){return v.some(function(h){var a;
return((a=_.CL(h,xy,30))==null?void 0:_.s1(a,3))===9})?D+"/gmailphotos":D},uHM=function(D,v,h,a){var Q=D.map(function(G){var x={id:G.getId().getId(),
serviceId:"picasa",mimeType:_.jI(G,7),name:G.getName(),type:KX(G),lastEditedUtc:_.A3$(_.CL(G,_.m2,12)).getTime(),url:G.getUrl(),sizeBytes:Number(w5I(G)),description:_.jI(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Tq(fD(G)),mediaKey:G.getId().getId(),parentId:_.jI(G,4)},f,C=(f=_.CL(G,jm9,18))==null?void 0:_.CL(f,dfp,3);C&&(x.latitude=dY(C,1),x.longitude=dY(C,2));var U;G=(U=_.CL(G,jm9,18))==null?void 0:bT(U,6);U=G!=null?wW(G):void 0;U&&(x.version=
U);return x});
return{action:v,docs:Q,viewToken:a,view:h||"photos",extraUserInputs:xHM(D),v2Translated:!0}},rO9=function(D,v,h,a){D=D.map(function(Q){return{id:Q.getId().getId(),
serviceId:"et",name:fD(Q)[0].getUrl().split("/").pop(),description:_.jI(Q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Tq(fD(Q),"etjpg")}});
return{action:v,docs:D,viewToken:a,view:h||"et",v2Translated:!0}},Gm$=function(D,v,h,a){D=D.map(function(Q){var G=Q.getId().getId(),x=a["2"];
return{id:G,serviceId:x.type!=="gmail_themes"&&x.parent==="6226252643674576769"?"picasa":"static_themes",name:Q.getName(),mimeType:_.jI(Q,7),type:KX(Q),description:_.jI(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:Q.getUrl(),thumbnails:Tq(fD(Q))}});
return{action:v,docs:D,viewToken:a,view:h||"photos",v2Translated:!0}},vzs=function(D,v){D=D.map(function(h){var a=_.CL(h,bz4,27);
a=_.tr(a,1,_.p3,_.f0())[0];return{id:h.getId().getId(),serviceId:"contacts",mimeType:_.jI(h,7),name:h.getName(),description:_.jI(h,3),url:"mailto:"+a,thumbnail:[{url:_.jI(h,11)}],email:a}});
return{action:v,docs:D,view:"contacts",v2Translated:!0}},tOm=function(D){if(!D)return{};
var v=_.jI(D,3);v=v&&JSON.parse(v)||{};return{0:_.jI(D,1),1:_.jI(D,2),2:v}},Tq=function(D,v){v=v===void 0?"":v;
if(!D.length)return null;v=="etjpg"&&(D=D.filter(function(h){return h.getUrl().includes("w1200-h300")}));
return D.map(function(h){return{url:h.getUrl(),height:h.getHeight(),width:h.getWidth(),type:v}})},xHM=function(D){return{isAttachment:D.some(function(v){return _.q6(v,31)})}},MJ1=function(D){var v,h={id:(v=D.getId())==null?void 0:v.getId(),
serviceId:CO$(D),mimeType:_.jI(D,7),name:D.getName(),type:KX(D),sizeBytes:Number(w5I(D)),description:_.jI(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Tq(fD(D)),isNew:!0};if(v=_.CL(D,xy,30)){h.dataUrl=_.jI(v,1)||null;a:{var a=_.CL(D,xy,30);switch(_.s1(a,3)){case 9:a=_.yF(a,y3J,2,ME);a={remoteRefs:a&&_.jI(a,1)};break a;case 10:case 15:a=_.yF(a,Hzb,4,ME);var Q=fD(D);a={photo_id:a&&_.jI(a,1),media_key:D.getId().getId(),media_type:_.s1(D,6)===1?1:2,image_url:Q&&
Q[0].getUrl(),width:Q&&String(Q[0].getWidth()),height:Q&&String(Q[0].getHeight())};break a}a=null}h.uploadMetadata=a;h.uploadId=_.jI(v,9)||null;h.uploadState=ozM(v)||null}(a=v&&_.yF(v,Hzb,4,ME))&&(h.id=_.jI(a,1));(a=v&&_.yF(v,wdJ,5,ME))&&(h.contentId=_.jI(a,1));(a=v&&_.yF(v,sms,7,ME))&&(h.contentId=_.jI(a,1));(a=v&&_.yF(v,mfR,6,ME))&&(h.contentId=_.jI(a,1));(v==null?void 0:_.s1(v,3))===1&&(h.mediaKey=D.getId().getId());return h},CO$=function(D){var v;
switch(((v=_.CL(D,xy,30))==null?void 0:_.s1(v,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},KX=function(D){switch(_.s1(D,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.jI(D,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},ozM=function(D){switch(D==null?void 0:_.s1(D,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var Lds,Fdm,zdt,UHM;_.ZLJ=function(D,v){var h=v||{};v=h.document||document;var a=_.qf(D).toString(),Q=(new sO(v)).createElement("SCRIPT"),G={script_:Q,timeout_:void 0},x=new Vb(Fdm,G),f=null,C=h.timeout!=null?h.timeout:5E3;C>0&&(f=window.setTimeout(function(){zdt(Q,!0);x.errback(new UHM(1,"Timeout reached for loading script "+a))},C),G.timeout_=f);
Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(zdt(Q,h.cleanupWhenDone||!1,f),x.callback(null))};
Q.onerror=function(){zdt(Q,!0,f);x.errback(new UHM(0,"Error while loading script "+a))};
G=h.attributes||{};_.sV.extend(G,{type:"text/javascript",charset:"UTF-8"});JrF(Q,G);_.Ge(Q,D);Lds(v).appendChild(Q);return x};
Lds=function(D){var v=Yq("HEAD",D);return v&&v.length!==0?v[0]:D.documentElement};
Fdm=function(){if(this&&this.script_){var D=this.script_;D&&D.tagName=="SCRIPT"&&zdt(D,!0,this.timeout_)}};
zdt=function(D,v,h){h!=null&&_.$L.clearTimeout(h);D.onload=function(){};
D.onerror=function(){};
D.onreadystatechange=function(){};
v&&window.setTimeout(function(){_.Np(D)},0)};
UHM=function(D,v){var h="Jsloader error (code #"+D+")";v&&(h+=": "+v);_.hc.call(this,h);this.code=D};
_.fa(UHM,_.hc);var Ezb=_.DK(["https://apis.google.com/js/api.js"]),Ioy=_.UV(Ezb),J2F=function(D,v,h){h=h===void 0?{}:h;var a=!1,Q=gzM(D,v,h).then(function(x){a=!0;return x}),G=_.R3y(5E3).then(function(){return a?gzM(D,v,h):km$(v,h).then(function(x){return SW9(x,D)})});
return dVR([Q,G])},gzM=function(D,v,h){h=h===void 0?{}:h;
return pKJ(v,h).then(function(a){return SW9(a,D)})},SW9=function(D,v){var h=_.Gu(v,"gapi.")?v.slice(5):v;
return D[h]?_.E9(D[h]):new _.IB(function(a,Q){var G=w9(function(){Q(Error("Ya"))},3E4);
D.load(v,{callback:function(){_.$L.clearTimeout(G);a(D[h])},
onerror:function(x){_.$L.clearTimeout(G);Q(x)}})})},pKJ=function(D,v){v=v===void 0?{}:v;
return D.gapi&&D.gapi.load?_.E9(D.gapi):km$(D,v)},km$=function(D,v){v=v===void 0?{}:v;
return _.ZLJ(Ioy,{document:D.document,attributes:v}).then(function(){return D.gapi})},lo$=function(){};
lo$.prototype.load=function(D,v,h){v=v===void 0?window:v;h=h===void 0?{}:h;var a=Date.now();return J2F(D,v,h).then(function(Q){var G=Date.now();return{library:Q,loadStartMs:a,loadEndMs:G}},function(Q){throw Q instanceof Error?Q:Error(String(Q));
})};var Iou=function(){_.AN.call(this);this.gapiLoader_=new lo$;this.origin_=null;this.gapiPickerIframeResolver_=_.hn();this.gapiIframesResolver_=_.hn();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.J(Iou,_.AN);var Nay=function(D,v){var h=h===void 0?{}:h;var a=_.T3("gapi.iframes",v);return a?(D=Date.now(),_.E9({library:a,loadStartMs:D,loadEndMs:D})):D.gapiLoader_.load("gapi.iframes",v,h)},YW4=function(D,v,h,a,Q,G){var x=!1;
x=x===void 0?!1:x;Nay(D,yz(v.ownerDocument)).then(function(f){var C=f.library;D.gapiIframesResolver_.resolve(C);f=D.gapiPickerIframeResolver_;var U=f.resolve,L=x;L=L===void 0?!1:L;var Z={};Z["host-message-handler"]=h;D.hostMessageHandlerInternal_=Z;var E=_.tN(a);E=_.tN(E);E=_.UG(_.zq(_.FW(new _.aN,E.scheme_),E.JSC$10036_domain_),E.JSC$10036_port_).toString();D.origin_=E;E=(new K9J).setUrl(a);E.JSC$10051_obj_.where=v;E.JSC$10051_obj_.allowPost=L;E.JSC$10051_obj_.messageHandlers=Z;L=_.T3("makeWhiteListIframesFilter",
C)([D.origin_]);E.JSC$10051_obj_.messageHandlersFilter=L;Q!=null&&(E.JSC$10051_obj_.id=Q);G!=null&&(E.JSC$10051_obj_.rpctoken=G);L=OJp(E);L.JSC$10048_obj_.style={display:"block","min-width":"100%",width:"1px"};L.JSC$10048_obj_.height="100%";OJp(E).value().allow="camera 'src' "+D.origin_;C=C.getContext().openChild(E.value());U.call(f,C)},function(f){D.gapiIframesResolver_.reject(f);
D.gapiPickerIframeResolver_.reject(f)});
return D.gapiPickerIframeResolver_.promise},Ba1=function(D,v){return _.HZ([D.gapiIframesResolver_.promise,
D.gapiPickerIframeResolver_.promise]).then(function(h){var a=_.P(h);h=a.next().value;return(a=a.next().value)?a.send("picker-message-handler",v,void 0,_.T3("makeWhiteListIframesFilter",h)([D.origin_])):_.H8(Error("Za"))})};
Iou.prototype.disposeInternal=function(){c2t(this);_.AN.prototype.disposeInternal.call(this)};
var c2t=function(D){D.gapiPickerIframeResolver_.promise.then(function(v){v&&(v.unregister("host-message-handler"),delete D.hostMessageHandlerInternal_["host-message-handler"])})};var XKp=function(){this.JSC$10138_nextId=0};var qWt=function(D,v){switch(D.action){case "select-contacts":D=A2J(D.contacts);break;case "visibility":D=D.visible;var h=new UP;D=_.eI(h,1,7).setVisible(D);h={};h["iframe-command"]=D.serialize();D=h;break;default:D=null}return D?Ba1(v,D):_.E9()},A2J=function(D){if(!D||D.length==0)return null;
var v=new UP;_.eI(v,1,11);var h=new XKp;D.forEach(function(a){if(a.email){var Q=new Xt;Q=_.WO(Q,2,a.name?a.name:a.email);var G=new bz4;a=_.wsc(G,1,_.IU,a.email,_.p3);a=_.lH(Q,27,a);Q=new Xdp;G=":"+(h.JSC$10138_nextId++).toString(36);Q=_.WO(Q,1,G);Q=_.eI(Q,2,12);a=_.lH(a,1,Q)}else a=null;a&&JX(v,7,Xt,a)});
D={};D["iframe-command"]=v.serialize();return D};_.bLR=function(){if(hHI){var D=/Windows NT ([0-9.]+)/;return(D=D.exec(_.E8()))?D[1]:"0"}return _.v1I?(D=/1[0|1][_.][0-9_.]+/,(D=D.exec(_.E8()))?D[0].replace(/_/g,"."):"10"):qZ7?(D=/Android\s+([^\);]+)(\)|;)/,(D=D.exec(_.E8()))?D[1]:""):$Zi||QJ8||GM7?(D=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(D=D.exec(_.E8()))?D[1].replace(/_/g,"."):""):""}();var Rv;Rv=function(D){return(D=D.exec(_.E8()))?D[1]:""};
_.dH$=function(){if(_.E1)return Rv(/Firefox\/([0-9.]+)/);if(_.zw||$z||rZf)return o1O;if(_.Ip){if(_.qr()||_.pA7()){var D=Rv(/CriOS\/([0-9.]+)/);if(D)return D}return Rv(/Chrome\/([0-9.]+)/)}if(_.Oz&&!_.qr())return Rv(/Version\/([0-9.]+)/);if(nZf||OGq){if(D=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.E8()))return D[1]+"."+D[2]}else if(ZRq)return(D=Rv(/Android\s+([0-9.]+)/))?D:Rv(/Version\/([0-9.]+)/);return""}();var jes=function(){};
_.x7(jes);jes.prototype.nextId_=0;_.iE=function(D){return":"+(D.nextId_++).toString(36)};var W9=function(D){_.jZ.call(this);this.JSC$10146_dom_=D||cW();this.JSC$10146_id_=null;this.inDocument_=!1;this.JSC$10146_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.fa(W9,_.jZ);W9.prototype.idGenerator_=jes.getInstance();W9.prototype.getId=function(){return this.JSC$10146_id_||(this.JSC$10146_id_=_.iE(this.idGenerator_))};
W9.prototype.getElement=function(){return this.JSC$10146_element_};
var tF=function(D){D.googUiComponentHandler_||(D.googUiComponentHandler_=new _.or(D));return D.googUiComponentHandler_},seJ=function(D,v){if(D==v)throw Error("$a");
var h;if(h=v&&D.parent_&&D.JSC$10146_id_){h=D.parent_;var a=D.JSC$10146_id_;h=h.childIndex_&&a?_.sV.get(h.childIndex_,a)||null:null}if(h&&D.parent_!=v)throw Error("$a");D.parent_=v;W9.superClass_.setParentEventTarget.call(D,v)};
W9.prototype.setParentEventTarget=function(D){if(this.parent_&&this.parent_!=D)throw Error("ab");W9.superClass_.setParentEventTarget.call(this,D)};
W9.prototype.JSC$10148_createDom=function(){this.JSC$10146_element_=this.JSC$10146_dom_.createElement("DIV")};
W9.prototype.render=function(D){mHJ(this,D)};
var mHJ=function(D,v,h){if(D.inDocument_)throw Error("bb");D.JSC$10146_element_||D.JSC$10148_createDom();v?v.insertBefore(D.JSC$10146_element_,h||null):D.JSC$10146_dom_.JSC$9330_document_.body.appendChild(D.JSC$10146_element_);D.parent_&&!D.parent_.inDocument_||D.enterDocument()};
_.V=W9.prototype;_.V.decorate=function(D){if(this.inDocument_)throw Error("bb");if(D&&this.canDecorate(D)){this.wasDecorated_=!0;var v=_.e9(D);this.JSC$10146_dom_&&this.JSC$10146_dom_.JSC$9330_document_==v||(this.JSC$10146_dom_=cW(D));this.decorateInternal(D);this.enterDocument()}else throw Error("cb");};
_.V.canDecorate=function(){return!0};
_.V.decorateInternal=function(D){this.JSC$10146_element_=D};
_.V.enterDocument=function(){this.inDocument_=!0;HLF(this,function(D){!D.inDocument_&&D.getElement()&&D.enterDocument()})};
_.V.exitDocument=function(){HLF(this,function(D){D.inDocument_&&D.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.V.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);HLF(this,function(D){D.dispose()});
!this.wasDecorated_&&this.JSC$10146_element_&&_.Np(this.JSC$10146_element_);this.parent_=this.model_=this.JSC$10146_element_=this.childIndex_=this.children_=null;W9.superClass_.disposeInternal.call(this)};
_.V.getModel=function(){return this.model_};
_.V.addChild=function(D,v){var h=this.children_?this.children_.length:0;if(D.inDocument_&&(v||!this.inDocument_))throw Error("bb");if(h<0||h>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);D.parent_==this?(_.sV.set(this.childIndex_,D.getId(),D),_.e2(this.children_,D)):_.sV.add(this.childIndex_,D.getId(),D);seJ(D,this);_.q8o(this.children_,h,0,D);D.inDocument_&&this.inDocument_&&D.parent_==this?(v=this.getContentElement(),
(v.childNodes[h]||null)!=D.getElement()&&(D.getElement().parentElement==v&&v.removeChild(D.getElement()),h=v.childNodes[h]||null,v.insertBefore(D.getElement(),h))):v?(this.JSC$10146_element_||this.JSC$10148_createDom(),h=this.children_?this.children_[h+1]||null:null,mHJ(D,this.getContentElement(),h?h.JSC$10146_element_:null)):this.inDocument_&&!D.inDocument_&&D.JSC$10146_element_&&D.JSC$10146_element_.parentNode&&D.JSC$10146_element_.parentNode.nodeType==1&&D.enterDocument()};
_.V.getContentElement=function(){return this.JSC$10146_element_};
var HLF=function(D,v){D.children_&&D.children_.forEach(v,void 0)};
W9.prototype.removeChild=function(D,v){if(D){var h=typeof D==="string"?D:D.getId();D=this.childIndex_&&h?_.sV.get(this.childIndex_,h)||null:null;h&&D&&(_.sV.remove(this.childIndex_,h),_.e2(this.children_,D),v&&(D.exitDocument(),D.JSC$10146_element_&&_.Np(D.JSC$10146_element_)),seJ(D,null))}if(!D)throw Error("eb");return D};_.fa(RxO,Tlc);_.fa(ixc,Tlc);var y2y;_.sV.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var wK$=function(D,v){v?D.setAttribute("role",v):D.removeAttribute("role")},rI=function(D,v,h){Array.isArray(h)&&(h=h.join(" "));
var a="aria-"+v;h===""||h==void 0?(y2y||(h={},y2y=(h.atomic=!1,h.autocomplete="none",h.dropeffect="none",h.haspopup=!1,h.live="off",h.multiline=!1,h.multiselectable=!1,h.orientation="vertical",h.readonly=!1,h.relevant="additions text",h.required=!1,h.sort="none",h.busy=!1,h.disabled=!1,h.hidden=!1,h.invalid="false",h)),h=y2y,v in h?D.setAttribute(a,h[v]):D.removeAttribute(a)):D.setAttribute(a,h)};var edR;_.uE=function(D,v,h){_.jZ.call(this);this.target=D;this.handle=v||D;this.limits=h||new i2(NaN,NaN,NaN,NaN);this.JSC$10151_document_=_.e9(D);this.JSC$10151_eventHandler_=new _.or(this);_.Ia(this,this.JSC$10151_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;_.s_(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=edR};
_.fa(_.uE,_.jZ);edR=_.$L.document&&_.$L.document.documentElement&&!!_.$L.document.documentElement.setCapture&&!!_.$L.document.releaseCapture;_.nzy=function(D,v){D.hysteresisDistanceSquared_=Math.pow(v,2)};
_.V=_.uE.prototype;_.V.setEnabled=function(D){this.enabled_=D};
_.V.disposeInternal=function(){_.uE.superClass_.disposeInternal.call(this);_.d9(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.handle=this.target=null};
_.V.startDrag=function(D){var v=D.type=="mousedown";if(!this.enabled_||this.dragging_||v&&(!D.isButton(0)||_.v1I&&D.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Dl("start",this,D.clientX,D.clientY,D)))this.dragging_=!0,v&&D.preventDefault();else return;else v&&D.preventDefault();v=this.JSC$10151_document_;var h=v.documentElement,a=!this.useSetCapture_;this.JSC$10151_eventHandler_.listen(v,["touchmove","mousemove"],this.handleMove_,
{capture:a,passive:!1});this.JSC$10151_eventHandler_.listen(v,["touchend","mouseup"],this.endDrag,a);this.useSetCapture_?(h.setCapture(!1),this.JSC$10151_eventHandler_.listen(h,"losecapture",this.endDrag)):this.JSC$10151_eventHandler_.listen(yz(v),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10151_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,a);this.clientX=this.startX=D.clientX;this.clientY=this.startY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=YJ(cW(this.JSC$10151_document_))}};
_.V.endDrag=function(D,v){this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Dl("end",this,D.clientX,D.clientY,D,OL4(this,this.deltaX),Kdp(this,this.deltaY),v||D.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.V.handleMove_=function(D){if(this.enabled_){var v=D.clientX-this.clientX,h=D.clientY-this.clientY;this.clientX=D.clientX;this.clientY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;if(!this.dragging_){var a=this.startX-this.clientX,Q=this.startY-this.clientY;if(a*a+Q*Q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Dl("start",this,D.clientX,D.clientY,D)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(D);return}}h=Tas(this,v,h);v=h.x;h=h.y;this.dragging_&&this.dispatchEvent(new Dl("beforedrag",
this,D.clientX,D.clientY,D,v,h))&&(Rdy(this,D,v,h),D.preventDefault())}};
var Tas=function(D,v,h){var a=YJ(cW(D.JSC$10151_document_));v+=a.x-D.pageScroll.x;h+=a.y-D.pageScroll.y;D.pageScroll=a;D.deltaX+=v;D.deltaY+=h;return new _.HW(OL4(D,D.deltaX),Kdp(D,D.deltaY))};
_.uE.prototype.onScroll_=function(D){var v=Tas(this,0,0);D.clientX=this.clientX;D.clientY=this.clientY;Rdy(this,D,v.x,v.y)};
var Rdy=function(D,v,h,a){D.target.style.left=h+"px";D.target.style.top=a+"px";D.dispatchEvent(new Dl("drag",D,v.clientX,v.clientY,v,h,a))},OL4=function(D,v){var h=D.limits;
D=isNaN(h.left)?null:h.left;h=isNaN(h.width)?0:h.width;return Math.min(D!=null?D+h:Infinity,Math.max(D!=null?D:-Infinity,v))},Kdp=function(D,v){var h=D.limits;
D=isNaN(h.top)?null:h.top;h=isNaN(h.height)?0:h.height;return Math.min(D!=null?D+h:Infinity,Math.max(D!=null?D:-Infinity,v))};
_.uE.prototype.isDragging=function(){return this.dragging_};
var Dl=function(D,v,h,a,Q,G,x){_.XI.call(this,D);this.clientX=h;this.clientY=a;this.browserEvent=Q;this.left=G!==void 0?G:v.deltaX;this.top=x!==void 0?x:v.deltaY};
_.fa(Dl,_.XI);var vw=function(D){this.JSC$10158_map_=new Map;var v=arguments.length;if(v>1){if(v%2)throw Error("ma");for(var h=0;h<v;h+=2)this.set(arguments[h],arguments[h+1])}else D&&this.addAll(D)};
_.V=vw.prototype;_.V.getCount=function(){return this.JSC$10158_map_.size};
_.V.getValues=function(){return Array.from(this.JSC$10158_map_.values())};
_.V.getKeys=function(){return Array.from(this.JSC$10158_map_.keys())};
_.V.containsKey=function(D){return this.JSC$10158_map_.has(D)};
_.V.containsValue=function(D){return this.getValues().some(function(v){return v==D})};
_.V.equals=function(D,v){var h=this;v=v===void 0?function(a,Q){return a===Q}:v;
return this===D?!0:this.JSC$10158_map_.size!=D.getCount()?!1:this.getKeys().every(function(a){return v(h.JSC$10158_map_.get(a),D.get(a))})};
_.V.isEmpty=function(){return this.JSC$10158_map_.size==0};
_.V.clear=function(){this.JSC$10158_map_.clear()};
_.V.remove=function(D){return this.JSC$10158_map_.delete(D)};
_.V.get=function(D,v){return this.JSC$10158_map_.has(D)?this.JSC$10158_map_.get(D):v};
_.V.set=function(D,v){this.JSC$10158_map_.set(D,v);return this};
_.V.addAll=function(D){if(D instanceof vw){D=_.P(D.JSC$10158_map_);for(var v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;this.JSC$10158_map_.set(v,h)}}else if(D)for(D=_.P(Object.entries(D)),v=D.next();!v.done;v=D.next())h=_.P(v.value),v=h.next().value,h=h.next().value,this.JSC$10158_map_.set(v,h)};
_.V.forEach=function(D,v){var h=this;v=v===void 0?this:v;this.JSC$10158_map_.forEach(function(a,Q){return D.call(v,a,Q,h)})};
_.V.clone=function(){return new vw(this)};(function(){for(var D=["ms","moz","webkit","o"],v,h=0;v=D[h]&&!_.$L.requestAnimationFrame;++h)_.$L.requestAnimationFrame=_.$L[v+"RequestAnimationFrame"],_.$L.cancelAnimationFrame=_.$L[v+"CancelAnimationFrame"]||_.$L[v+"CancelRequestAnimationFrame"];if(!_.$L.requestAnimationFrame){var a=0;_.$L.requestAnimationFrame=function(Q){var G=(new Date).getTime(),x=Math.max(0,16-(G-a));a=G+x;return _.$L.setTimeout(function(){Q(G+x)},x)};
_.$L.cancelAnimationFrame||(_.$L.cancelAnimationFrame=function(Q){clearTimeout(Q)})}})();
var iLs=[[],[]],Wdb=0,tJR=!1,r2s=0,DYJ=function(D,v){var h=r2s++,a={measureTask:{id:h,fn:D.measure,context:v},mutateTask:{id:h,fn:D.mutate,context:v},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(a.args||(a.args=[]),a.args.length=0,a.args.push.apply(a.args,arguments),a.args.push(a.state)):a.args&&a.args.length!=0?(a.args[0]=a.state,a.args.length=1):a.args=[a.state];a.isScheduled||(a.isScheduled=!0,iLs[Wdb].push(a));tJR||(tJR=!0,window.requestAnimationFrame(uk9))}},uk9=
function(){tJR=!1;
var D=iLs[Wdb],v=D.length;Wdb=(Wdb+1)%2;for(var h,a=0;a<v;++a){h=D[a];var Q=h.measureTask;h.isScheduled=!1;Q.fn&&Q.fn.apply(Q.context,h.args)}for(a=0;a<v;++a)h=D[a],Q=h.mutateTask,h.isScheduled=!1,Q.fn&&Q.fn.apply(Q.context,h.args),h.state={};D.length=0};var v_J=_.DK(["about:blank"]),hlb=_.DK(["javascript:undefined"]),aMt=_.UV(v_J);_.qf(aMt);var $Y$=_.UV(hlb);_.qf($Y$);var he=function(D){_.jZ.call(this);this.JSC$10164_element_=D;this.listenKeyIn_=_.s_(this.JSC$10164_element_,"focus",this,!0);this.listenKeyOut_=_.s_(this.JSC$10164_element_,"blur",this,!0)};
_.fa(he,_.jZ);he.prototype.handleEvent=function(D){var v=new _.AJ(D.event_);v.type=D.type=="focusin"||D.type=="focus"?"focusin":"focusout";this.dispatchEvent(v)};
he.prototype.disposeInternal=function(){he.superClass_.disposeInternal.call(this);bP(this.listenKeyIn_);bP(this.listenKeyOut_);delete this.JSC$10164_element_};var QBJ=function(D,v){this.JSC$10167_element_=D;this.JSC$10167_dom_=v};var aW=function(D,v){W9.call(this,v);this.useIframeMask_=!!D;this.lastFocus_=null;this.resizeBackgroundTask_=DYJ({mutate:this.resizeBackground_},this);DYJ({mutate:this.updateModalAndBackground_},this)};
_.fa(aW,W9);_.V=aW.prototype;_.V.focusHandler_=null;_.V.visible_=!1;_.V.bgEl_=null;_.V.bgIframeEl_=null;_.V.tabCatcherElement_=null;_.V.backwardTabWrapInProgress_=!1;_.V.getCssClass=function(){return"goog-modalpopup"};
_.V.getBackgroundElement=function(){return this.bgEl_};
_.V.JSC$10148_createDom=function(){aW.superClass_.JSC$10148_createDom.call(this);var D=this.getElement(),v=zu(this.getCssClass()).split(" ");Qb(D,v);D.tabIndex=0;_.vl(D,!1);GCp(this);Vj4(this)};
var GCp=function(D){if(D.useIframeMask_&&!D.bgIframeEl_){var v=D.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.uH(v,aMt);D.bgIframeEl_=v;D.bgIframeEl_.className=D.getCssClass()+"-bg";_.vl(D.bgIframeEl_,!1);DfR(D.bgIframeEl_,0)}D.bgEl_||(D.bgEl_=D.JSC$10146_dom_.JSC$9332_createDom("DIV",D.getCssClass()+"-bg"),_.vl(D.bgEl_,!1))},Vj4=function(D){D.tabCatcherElement_||(D.tabCatcherElement_=D.JSC$10146_dom_.createElement("SPAN"),_.vl(D.tabCatcherElement_,
!1),D.tabCatcherElement_.tabIndex=0,D.tabCatcherElement_.style.position="absolute")};
_.V=aW.prototype;_.V.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.V.canDecorate=function(D){return!!D&&D.tagName=="DIV"};
_.V.decorateInternal=function(D){aW.superClass_.decorateInternal.call(this,D);D=zu(this.getCssClass()).split(" ");Qb(this.getElement(),D);GCp(this);Vj4(this);this.getElement().tabIndex=0;_.vl(this.getElement(),!1)};
_.V.enterDocument=function(){this.bgIframeEl_&&_.OO(this.bgIframeEl_,this.getElement());_.OO(this.bgEl_,this.getElement());aW.superClass_.enterDocument.call(this);_.KW(this.tabCatcherElement_,this.getElement());this.focusHandler_=new he(this.JSC$10146_dom_.JSC$9330_document_);tF(this).listen(this.focusHandler_,"focusin",this.onFocus);PD1(this,!1)};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.V5(this.focusHandler_);aW.superClass_.exitDocument.call(this);_.Np(this.bgIframeEl_);_.Np(this.bgEl_);_.Np(this.tabCatcherElement_)};
_.V.setVisible=function(D){if(D!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&PD1(this,D),D){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10146_dom_.JSC$9330_document_.activeElement}catch(Q){}this.updateModalAndBackground_();tF(this).listen(this.JSC$10146_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10146_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);xYy(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)qK(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){tF(this).unlisten(this.JSC$10146_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10146_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)qK(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var v=this.JSC$10146_dom_,h=v.JSC$9330_document_.body,a=v.JSC$9330_document_.activeElement||h;if(!this.lastFocus_||this.lastFocus_==h){this.lastFocus_=null;break a}(a==h||v.contains(this.getElement(),a))&&this.lastFocus_.focus()}catch(Q){}this.lastFocus_=
null}}};
var PD1=function(D,v){D.modalAriaVisibilityHelper_||(D.modalAriaVisibilityHelper_=new QBJ(D.JSC$10146_element_,D.JSC$10146_dom_));D=D.modalAriaVisibilityHelper_;if(v){D.hiddenElements_||(D.hiddenElements_=[]);v=D.JSC$10167_dom_.getChildren(D.JSC$10167_dom_.JSC$9330_document_.body);for(var h=0;h<v.length;h++){var a=v[h],Q;if(Q=a!=D.JSC$10167_element_)Q=a.getAttribute("aria-hidden"),Q=!(Q==null||Q==void 0?0:String(Q));Q&&(rI(a,"hidden",!0),D.hiddenElements_.push(a))}}else if(D.hiddenElements_){for(v=
0;v<D.hiddenElements_.length;v++)D.hiddenElements_[v].removeAttribute("aria-hidden");D.hiddenElements_=null}};
aW.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var xYy=function(D,v){D.bgIframeEl_&&_.vl(D.bgIframeEl_,v);D.bgEl_&&_.vl(D.bgEl_,v);_.vl(D.getElement(),v);_.vl(D.tabCatcherElement_,v)};
_.V=aW.prototype;_.V.onShow=function(){this.dispatchEvent("show")};
_.V.onHide=function(){xYy(this,!1);this.dispatchEvent("hide")};
_.V.isVisible=function(){return this.visible_};
_.V.focus=function(){this.focusElement_()};
_.V.resizeBackground_=function(){this.bgIframeEl_&&_.vl(this.bgIframeEl_,!1);this.bgEl_&&_.vl(this.bgEl_,!1);var D=this.JSC$10146_dom_.JSC$9330_document_;var v=_.NV(yz(this.JSC$10146_dom_.JSC$9330_document_)||window);var h=Math.max(v.width,Math.max(D.body.scrollWidth,D.documentElement.scrollWidth));D=Math.max(v.height,Math.max(D.body.scrollHeight,D.documentElement.scrollHeight));this.bgIframeEl_&&(_.vl(this.bgIframeEl_,!0),_.WmR(this.bgIframeEl_,h,D));this.bgEl_&&(_.vl(this.bgEl_,!0),_.WmR(this.bgEl_,
h,D))};
_.V.reposition=function(){var D;if(_.i3m(this.getElement())=="fixed")var v=D=0;else v=YJ(this.JSC$10146_dom_),D=v.x,v=v.y;var h=rrm(this.getElement());var a=_.NV(yz(this.JSC$10146_dom_.JSC$9330_document_)||window);D=Math.max(D+a.width/2-h.width/2,0);v=Math.max(v+a.height/2-h.height/2,0);rs(this.getElement(),D,v);rs(this.tabCatcherElement_,D,v)};
_.V.onFocus=function(D){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():D.target==this.tabCatcherElement_&&w9(this.focusElement_,0,this)};
_.V.focusElement_=function(){try{this.getElement().focus()}catch(D){}};
_.V.disposeInternal=function(){_.V5(this.popupShowTransition_);this.popupShowTransition_=null;_.V5(this.popupHideTransition_);this.popupHideTransition_=null;_.V5(this.bgShowTransition_);this.bgShowTransition_=null;_.V5(this.bgHideTransition_);this.bgHideTransition_=null;aW.superClass_.disposeInternal.call(this)};var ee=function(D,v,h){aW.call(this,v,h);this.JSC$10177_class_=D||"modal-dialog";this.buttons_=(new $9).addButton(Mjm,!0).addButton(fMJ,!1,!0)};
_.fa(ee,aW);_.V=ee.prototype;_.V.escapeToCancel_=!0;_.V.hasTitleCloseButton_=!0;_.V.modal_=!0;_.V.draggable_=!0;_.V.backgroundElementOpacity_=.5;_.V.title_="";_.V.JSC$10179_dragger_=null;_.V.JSC$10179_disposeOnHide_=!1;_.V.titleEl_=null;_.V.titleTextEl_=null;_.V.titleTextId_=null;_.V.titleCloseEl_=null;_.V.contentEl_=null;_.V.buttonEl_=null;_.V.getCssClass=function(){return this.JSC$10177_class_};
_.V.setTitle=function(D){this.title_=D;this.titleTextEl_&&_.RH(this.titleTextEl_,D)};
_.V.getTitle=function(){return this.title_};
_.V.getContent=function(){return""};
_.V.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var CDJ=function(D){D.getElement()||D.render();return D.getElement()};
ee.prototype.getBackgroundElement=function(){this.getElement()||this.render();return ee.superClass_.getBackgroundElement.call(this)};
var o_9=function(D,v){D.backgroundElementOpacity_=v;D.getElement()&&(v=D.getBackgroundElement())&&DfR(v,D.backgroundElementOpacity_)};
ee.prototype.setDraggable=function(D){this.draggable_=D;FVt(this,D&&this.inDocument_)};
ee.prototype.handleDrag=function(){};
var FVt=function(D,v){var h=zu(D.JSC$10177_class_+"-title-draggable").split(" ");D.getElement()&&(v?Qb(D.titleEl_,h):wlM(D.titleEl_,h));v&&!D.JSC$10179_dragger_?(v=new _.uE(D.getElement(),D.titleEl_),D.JSC$10179_dragger_=v,Qb(D.titleEl_,h),_.s_(D.JSC$10179_dragger_,"start",D.setDraggerLimits_,!1,D),_.s_(D.JSC$10179_dragger_,"drag",D.handleDrag,!1,D)):!v&&D.JSC$10179_dragger_&&(D.JSC$10179_dragger_.dispose(),D.JSC$10179_dragger_=null)};
_.V=ee.prototype;
_.V.JSC$10148_createDom=function(){ee.superClass_.JSC$10148_createDom.call(this);var D=this.getElement(),v=this.JSC$10146_dom_;this.titleTextId_=this.getId();var h=this.getId()+".contentEl";this.titleEl_=v.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-title",this.titleTextEl_=v.JSC$9332_createDom("SPAN",{className:this.JSC$10177_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=v.JSC$9332_createDom("SPAN",this.JSC$10177_class_+"-title-close"));Br9(D,this.titleEl_,this.contentEl_=
v.JSC$9332_createDom("DIV",{className:this.JSC$10177_class_+"-content",id:h}),this.buttonEl_=v.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-buttons"));wK$(this.titleTextEl_,"heading");wK$(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;rI(this.titleCloseEl_,"label","Close");wK$(D,"dialog");rI(D,"labelledby",this.titleTextId_||"");_.vl(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(D=this.buttons_,D.JSC$10180_element_=this.buttonEl_,D.render());_.vl(this.buttonEl_,!!this.buttons_);
o_9(this,this.backgroundElementOpacity_)};
_.V.decorateInternal=function(D){ee.superClass_.decorateInternal.call(this,D);D=this.getElement();var v=this.JSC$10177_class_+"-content";this.contentEl_=mT(document,null,v,D)[0];this.contentEl_||(this.contentEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",v),D.appendChild(this.contentEl_));v=this.JSC$10177_class_+"-title";var h=this.JSC$10177_class_+"-title-text",a=this.JSC$10177_class_+"-title-close";(this.titleEl_=mT(document,null,v,D)[0])?(this.titleTextEl_=mT(document,null,h,this.titleEl_)[0],
this.titleCloseEl_=mT(document,null,a,this.titleEl_)[0]):(this.titleEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",v),D.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=nCF(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.ya("SPAN",{className:h,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;rI(D,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10146_dom_.JSC$9332_createDom("SPAN",a),this.titleEl_.appendChild(this.titleCloseEl_));_.vl(this.titleCloseEl_,this.hasTitleCloseButton_);v=this.JSC$10177_class_+"-buttons";(this.buttonEl_=mT(document,null,v,D)[0])?(this.buttons_=new $9(this.JSC$10146_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",v),D.appendChild(this.buttonEl_),this.buttons_&&(D=this.buttons_,D.JSC$10180_element_=this.buttonEl_,D.render()),_.vl(this.buttonEl_,
!!this.buttons_));o_9(this,this.backgroundElementOpacity_)};
_.V.enterDocument=function(){ee.superClass_.enterDocument.call(this);tF(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);tF(this).listen(this.buttonEl_,"click",this.onButtonClick_);FVt(this,this.draggable_);tF(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var D=this.getElement();wK$(D,"dialog");this.titleTextEl_.id!==""&&rI(D,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){D=this.JSC$10146_dom_;
var v=this.getBackgroundElement();D.removeNode(this.bgIframeEl_);D.removeNode(v)}this.isVisible()&&PD1(this,!1)}};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);FVt(this,!1);ee.superClass_.exitDocument.call(this)};
_.V.setVisible=function(D){D!=this.isVisible()&&(this.inDocument_||this.render(),ee.superClass_.setVisible.call(this,D))};
_.V.onShow=function(){ee.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.V.onHide=function(){ee.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10179_disposeOnHide_&&this.dispose()};
_.V.setDraggerLimits_=function(){var D=this.JSC$10146_dom_.JSC$9330_document_,v=_.NV(yz(D)||window),h=Math.max(D.body.scrollWidth,v.width);D=Math.max(D.body.scrollHeight,v.height);var a=rrm(this.getElement());_.i3m(this.getElement())=="fixed"?this.JSC$10179_dragger_.limits=new i2(0,0,Math.max(0,v.width-a.width),Math.max(0,v.height-a.height)):this.JSC$10179_dragger_.limits=new i2(0,0,h-a.width,D-a.height)};
_.V.onTitleCloseClick_=function(){zlJ(this)};
var zlJ=function(D){if(D.hasTitleCloseButton_){var v=D.buttons_,h=v&&v.cancelButton_;h?(v=v.get(h),D.dispatchEvent(new QD(h,v))&&D.setVisible(!1)):D.setVisible(!1)}},UY9=function(D){D.hasTitleCloseButton_=!1;
D.titleCloseEl_&&_.vl(D.titleCloseEl_,D.hasTitleCloseButton_)};
ee.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;ee.superClass_.disposeInternal.call(this)};
ee.prototype.onButtonClick_=function(D){a:{for(D=D.target;D!=null&&D!=this.buttonEl_;){if(D.tagName=="BUTTON")break a;D=D.parentNode}D=null}if(D&&!D.disabled){D=D.name;var v=this.buttons_.get(D);this.dispatchEvent(new QD(D,v))&&this.setVisible(!1)}};
ee.prototype.onKey_=function(D){var v=!1,h=!1,a=this.buttons_,Q=D.target;if(D.type=="keydown")if(this.escapeToCancel_&&D.keyCode==27){var G=a&&a.cancelButton_;Q=Q.tagName=="SELECT"&&!Q.disabled;G&&!Q?(h=!0,v=a.get(G),v=this.dispatchEvent(new QD(G,v))):Q||(v=!0)}else{if(D.keyCode==9&&D.shiftKey&&Q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(L){}w9(this.resetBackwardTabWrap_,0,this)}}else if(D.keyCode==13){if(Q.tagName=="BUTTON"&&!Q.disabled)G=Q.name;
else if(Q==this.titleCloseEl_)zlJ(this);else if(a){var x=a.defaultButton_,f;if(f=x)a:{f=Yq("BUTTON",a.JSC$10180_element_);for(var C,U=0;C=f[U];U++)if(C.name==x||C.id==x){f=C;break a}f=null}Q=(Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="A")&&!Q.disabled;!f||f.disabled||Q||(G=x)}G&&a&&(h=!0,v=this.dispatchEvent(new QD(G,String(a.get(G)))))}else Q!=this.titleCloseEl_||D.keyCode!=32&&D.key!=" "||zlJ(this);if(v||h)D.stopPropagation(),D.preventDefault();v&&this.setVisible(!1)};
var QD=function(D,v){this.type="dialogselect";this.key=D;this.caption=v};
_.fa(QD,_.XI);var $9=function(D){vw.call(this);D||cW();this.cancelButton_=this.JSC$10180_element_=this.defaultButton_=null};
_.fa($9,vw);_.V=$9.prototype;_.V.clear=function(){vw.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.V.set=function(D,v,h,a){vw.prototype.set.call(this,D,v);h&&(this.defaultButton_=D);a&&(this.cancelButton_=D);return this};
_.V.addButton=function(D,v,h){return this.set(D.key,D.caption,v,h)};
_.V.render=function(){if(this.JSC$10180_element_){_.VM(this.JSC$10180_element_,J28);var D=cW(this.JSC$10180_element_);this.forEach(function(v,h){v=D.JSC$9332_createDom("BUTTON",{name:h},v);h==this.defaultButton_&&(v.className="goog-buttonset-default");this.JSC$10180_element_.appendChild(v)},this)}};
_.V.decorate=function(D){if(D&&D.nodeType==1){this.JSC$10180_element_=D;D=Yq("BUTTON",this.JSC$10180_element_);for(var v,h,a,Q=0;v=D[Q];Q++)if(h=v.name||v.id,a=nCF(v)||v.value,h){var G=Q==0;this.set(h,a,G,v.name=="cancel");G&&_.x5(v,"goog-buttonset-default")}}};
_.V.getElement=function(){return this.JSC$10180_element_};
var Mjm={key:"ok",caption:"OK"},fMJ={key:"cancel",caption:"Cancel"},LV9={key:"yes",caption:"Yes"},Zp4={key:"no",caption:"No"},E_t={key:"save",caption:"Save"},IMp={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new $9).addButton(Mjm,!0,!0),(new $9).addButton(Mjm,!0).addButton(fMJ,!1,!0),(new $9).addButton(LV9,!0).addButton(Zp4,!1,!0),(new $9).addButton(LV9).addButton(Zp4,!0).addButton(fMJ,!1,!0),(new $9).addButton(IMp).addButton(E_t).addButton(fMJ,!0,!0));_.fa(Wbi,ee);_.fa(FdA,ON);var g_9=_.DK(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),kCs=_.DK(["//apis.google.com/js/rpc.js"]),SWf=_.UV(g_9),kmO=_.UV(kCs),UHi=null;var K0=function(D,v){_.jZ.call(this);this.JSC$10189_element_=D;D=_.aB(this.JSC$10189_element_)?this.JSC$10189_element_:this.JSC$10189_element_?this.JSC$10189_element_.body:null;this.isRtl_=!!D&&_.vo$(D);this.listenKey_=_.s_(this.JSC$10189_element_,_.U1?"DOMMouseScroll":"mousewheel",this,v)};
_.fa(K0,_.jZ);K0.prototype.handleEvent=function(D){var v=0,h=0,a=D.event_;a.type=="mousewheel"?(D=S5p(-a.wheelDelta),a.wheelDeltaX!==void 0?(v=S5p(-a.wheelDeltaX),h=S5p(-a.wheelDeltaY)):h=D):(D=a.detail,D>100?D=3:D<-100&&(D=-3),a.axis!==void 0&&a.axis===a.HORIZONTAL_AXIS?v=D:h=D);typeof this.maxDeltaX_==="number"&&(v=_.sk(v,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(h=_.sk(h,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(v=-v);v=new JXR(D,a,v,h);this.dispatchEvent(v)};
var S5p=function(D){return _.La&&(_.v1I||avA)&&D%40!=0?D:D/40};
K0.prototype.disposeInternal=function(){K0.superClass_.disposeInternal.call(this);bP(this.listenKey_);this.listenKey_=null};
var JXR=function(D,v,h,a){_.AJ.call(this,v);this.type="mousewheel";this.detail=D;this.deltaX=h;this.deltaY=a};
_.fa(JXR,_.AJ);_.Qf=function(D){var v="instance_";if(D.instance_&&D.hasOwnProperty(v))return D.instance_;v=new D;return D.instance_=v};var gzi;var p11=_.DK(["https://about:blank"]),lMt=_.DK(['javascript:""']),Nfb=_.DK(["about:blank"]);_.fa(hh,Wbi);_.V=hh.prototype;_.V.JSC$10197_url_="";_.V.JSC$10197_iframe_=null;_.V.iframeLoaded_=!1;_.V.loadedFired_=!1;_.V.callback_=function(){};
_.V.enterDocument=function(){hh.superClass_.enterDocument.call(this);Ezc(this.getBackgroundElement(),tF(this))};
_.V.render=function(D){var v=this;hh.superClass_.render.call(this,D);this.useGapi_?Nay(this.iframeManager_,window).then(function(){return Y5m(v)}).then(null,function(){v.callback_({action:"error"})}):Bfp(this)};
var Y5m=function(D){var v=D.JSC$10146_dom_.JSC$9332_createDom("div",["picker-dialog-content","picker-frame"]);_.vl(v,!1);D.getContentElement().appendChild(v);return YW4(D.iframeManager_,v,function(h){var a=T0t(h["iframe-command"]);switch(a.getCommand()){case 1:h=D.callback_;a=_.CL(a,zr,2);var Q="";switch(a.getStatus()){case 2:Q="cancel";break;case 1:Q="picked";break;case 3:Q="error"}var G=_.Mp(a,Xt,2,_.f0(NBf));a=G.length===0?{action:Q}:PO4(G,Q,_.CL(a,noJ,7));h.call(D,a);D.setVisible(!1);break;case 4:UY9(D);
D.callback_({action:"loaded"});break;case 7:case 8:h=D.callback_;a:{Q=a.getCommand();G=_.CL(a,zr,2);switch(Q){case 7:Q="uploadScheduled";break;case 8:Q="uploadStateChange";break;default:a={};break a}a=_.Mp(G,Xt,2,_.f0(NBf));if(a.length===0)a={action:Q};else{var x=_.CL(G,noJ,7);G=x&&_.jI(x,1);x=tOm(x);a=DH4(a,Q,G,x)}}h.call(D,a)}},D.JSC$10197_url_,D.targetId_,D.rpcToken_).then(function(h){D.JSC$10197_iframe_=h.getIframeEl();
cX4(D);_.vl(D.JSC$10197_iframe_.parentElement,!0);_.x5(D.getElement(),"picker-dialog");X11(D);return h})},Bfp=function(D){D.JSC$10197_iframe_=D.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{id:D.targetId_,
name:D.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.uH(D.JSC$10197_iframe_,AXs(D));_.x5(D.getElement(),"picker-dialog");D.getContentElement().appendChild(D.JSC$10197_iframe_);tF(D).listen(D.JSC$10197_iframe_,"load",function(){return void cX4(D)});
D.JSC$10197_iframe_.src=D.JSC$10197_url_;X11(D)},bpM=function(D){q5J(D,(0,_.qp)(function(v){v.setAuthToken(this.targetId_,this.rpcToken_)},D))},X11=function(D){var v=_.rW(_.tN(D.JSC$10197_url_),"title");
v&&D.setTitle(v)},AXs=function(D){return _.kuq("Internet Explorer")>=7&&_.Gu(D.JSC$10197_url_,"https")?_.UV(p11):_.zw?_.UV(lMt):_.UV(Nfb)},cX4=function(D){bpM(D);
D.iframeLoaded_=!0;D.JSC$10197_iframe_.tabIndex=0;D.isVisible()&&D.focus()};
hh.prototype.handleKeydown_=function(D){D.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),D.stopPropagation(),D.preventDefault())};
var q5J=function(D,v){var h=D.JSC$10195_gadgetsDomHelper_;Ldq(function(){v(h.getWindow().gadgets.rpc)},h)};
hh.prototype.setUrl=function(D){D=_.Dq(new _.aN(D),"rpcService",this.targetId_);_.Dq(D,"rpctoken",this.rpcToken_);_.EG(D,"rpctoken="+this.rpcToken_);_.FW(D,"https");this.JSC$10197_url_=D.toString();this.JSC$10197_iframe_&&(this.JSC$10197_iframe_.src=this.JSC$10197_url_)};
var dYM=function(D,v){D.callback_=v;q5J(D,(0,_.qp)(function(h){h.register(this.targetId_,(0,_.qp)(this.handlePickerAction_,this))},D))};
hh.prototype.handlePickerAction_=function(D){var v=D.action;v=="loaded"&&(this.loadedFired_=!0,jBb(this,new ixc(this.isVisible())),sBs(this),UY9(this),tF(this).unlisten(this.JSC$10146_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10197_iframe_.tabIndex=0);v!="picked"&&v!="cancel"||this.setVisible(!1);this.callback_(D)};
var sBs=function(D){D.JSC$10197_appId_&&jBb(D,new RxO(D.JSC$10197_appId_,window.location.protocol+"//"+window.location.host))};
hh.prototype.setRelayUrl=function(D){q5J(this,(0,_.qp)(function(v){v.setRelayUrl(this.targetId_,D)},this))};
var jBb=function(D,v){D.useGapi_&&qWt(v,D.iframeManager_).then(null,function(){D.callback_({action:"error"})});
q5J(D,(0,_.qp)(function(h){h.call(this.targetId_,"picker",null,v)},D))};
hh.prototype.resizePicker_=function(){var D=yz(this.JSC$10146_dom_.JSC$9330_document_)||window;if(_.rW(_.tN(this.JSC$10197_url_),"ignoreLimits")=="true")D=new _.lU(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.rW(_.tN(this.JSC$10197_url_),"shadeDialog")=="true"){var v=CDJ(this);v=hBR(v);var h=_.NV(D);D=h.width-80;h=h.height-40;v&&(D-=v.left?v.left:0,D-=v.right?v.right:0,h-=v.top?v.top:0,h-=v.bottom?v.bottom:0);D=new _.lU(D>0?D:0,h>0?h:0)}else(v=this.preferredDialogWidth_)?(v=Math.max(320,
Math.min(1051,v)),(h=this.preferredDialogHeight_)||(h=_.NV(D).height*.85),h=Math.max(480,Math.min(650,h))):(v=_.NV(D),h=v.width*.618,h=h<v.height?Math.round(Math.max(480,Math.min(650,h*.85))):Math.round(Math.max(480,Math.min(650,v.height*.85))),v=Math.round(h/.618)),D=_.NV(D),v=Math.min(v,Math.max(D.width,320)),h=Math.min(h,Math.max(D.height,480)),D=new _.lU(v,h);_.WmR(this.getContentElement(),D);this.reposition()};
hh.prototype.reposition=function(){if(_.rW(_.tN(this.JSC$10197_url_),"shadeDialog")=="true"){var D=rrm(this.getElement()),v=_.NV(this.JSC$10146_dom_.getWindow());D=Math.floor(v.width/2-D.width/2);v=CDJ(this);if(v=hBR(v)){var h=v.left?v.left:0;h+=v.right?v.right:0;D=Math.floor(D-h/2)}D=D>0?D:0;v=YJ(this.JSC$10146_dom_).y;rs(this.getElement(),D,v)}else hh.superClass_.reposition.call(this)};
hh.prototype.setVisible=function(D){if(D!=this.isVisible()&&this.autoSizeDialog_){var v=this.JSC$10146_dom_.getWindow();D?(this.resizePicker_(),tF(this).listen(v,"resize",this.resizePicker_),this.iframeLoaded_||tF(this).listen(v,"keydown",this.handleKeydown_)):(tF(this).unlisten(v,"resize",this.resizePicker_),this.iframeLoaded_||tF(this).unlisten(v,"keydown",this.handleKeydown_))}hh.superClass_.setVisible.call(this,D);jBb(this,new ixc(D))};
hh.prototype.focus=function(){hh.superClass_.focus.call(this);if(this.JSC$10197_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10197_iframe_.focus()}catch(D){}};var Kq=function(D,v){v=v===void 0?hh:v;ON.call(this,D);this.pickerConstructor=v;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(D=window.location.origin)||(D=window.location.protocol+"//"+window.location.host);D&&this.urlParamMap_.set("origin",D);this.postProcessors_=[]};
_.J(Kq,FdA);Kq.prototype.JSC$10202_disposeOnHide_=!1;
Kq.prototype.build=function(){this.JSC$10103_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10103_appId_);this.getRelayUrl()||this.setRelayUrl(_.LX(_.EG(_.Z5(_.tN(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var D=new this.pickerConstructor(mYF(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);D.JSC$10179_disposeOnHide_=this.JSC$10202_disposeOnHide_;
D.JSC$10197_appId_=this.JSC$10103_appId_;D.loadedFired_&&sBs(D);dYM(D,this.callback_);return D};
var Hpb=function(D){D.urlParamMap_.set("multiselectEnabled","true");return D};
_.V=Kq.prototype;_.V.getHeight=function(){return this.dialogHeight_};
_.V.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.V.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.V.getTitle=function(){return this.urlParamMap_.get("title")};
_.V.getWidth=function(){return this.dialogWidth_};
var yXM=function(D){D.JSC$10202_disposeOnHide_=void 0;return D};
Kq.prototype.setRelayUrl=function(D){this.urlParamMap_.set("parent",D);return this};
var w1R=function(D,v){D.urlParamMap_.set("selectButtonLabel",v);return D};
Kq.prototype.setSize=function(D,v){this.dialogWidth_=D;this.dialogHeight_=v;return this};
Kq.prototype.setTitle=function(D){this.urlParamMap_.set("title",D);return this};
var mYF=function(D){D.postProcessors_.length&&D.urlParamMap_.set("pp",JSON.stringify(D.postProcessors_));D.urlParamMap_.set("nav",Tlb(D.nav_));var v=new _.aN(D.getBaseUrl());D.urlParamMap_.forEach(function(h,a){_.Dq(v,a,h)});
return v};var Op1=function(D,v){D.name!==void 0?(this.name=D.name,this.code=el$[D.name]):(this.code=D=D.code,this.name=n_$(D));_.hc.call(this,FR1("%s %s",this.name,v))};
_.fa(Op1,_.hc);var n_$=function(D){var v=_.sV.findKey(el$,function(h){return D==h});
if(v===void 0)throw Error("hb`"+D);return v},G0={},el$=(G0.AbortError=3,G0.EncodingError=5,G0.InvalidModificationError=9,G0.InvalidStateError=7,G0.NotFoundError=1,G0.NotReadableError=4,G0.NoModificationAllowedError=6,G0.PathExistsError=12,G0.QuotaExceededError=10,G0.SecurityError=2,G0.SyntaxError=8,G0.TypeMismatchError=11,G0);var KV$=function(D,v){_.XI.call(this,D.type,v);this.event_=D};
_.fa(KV$,_.XI);var Tf4=function(D,v,h){h===void 0&&(h=D.size);return D.slice?D.slice(v,h):null};var loO=new WeakMap,pKc=function(D,v){D=[D];for(var h=v.length-1;h>=0;--h)D.push(typeof v[h],v[h]);return D.join("\v")};_.YWo(function(){if(!_.$L.Blob)return!1;var D=new Uint8Array(100);try{var v=new Blob([D])}catch(h){return!1}return v.size!=100?!1:!0});
var Rlb=_.YWo(function(){if(!_.$L.Blob)return!1;var D=new Uint8Array(100);try{var v=new Blob([D])}catch(h){return!1}return Tf4(v,0,1)===null?!1:!0});_.$L.U3bHHf!=null||(_.$L.U3bHHf=0);_.$L.U3bHHf++;_.ipJ=new WeakMap;_.WVJ=new WeakMap;var c22={};var Q6=void 0;var A2c=Symbol("pb");var KdL=Pl("WizInjectionContext_Dispatcher");var Pv=Symbol("qb");var kf,Yf;kf=function(){this.afterRenderCallbacks=null};
_.zy4=Symbol("rb");Yf=function(D){this.props=D;this.__unmounted=!1};
Yf.prototype.didPatch=function(){};
Yf.prototype.didMount=function(){};
Yf.prototype.didUnmount=function(){};
Yf.prototype.didUpdate=function(){};_.y2u=Pl("WizInjectionContext_RootElement");var edI=Pl("WizInjectionContext_AppContext"),wKO=Pl("WizInjectionContext_ModelRootElement"),nzu=Pl("WizInjectionContext_RendererData"),OL7=Pl("WizInjectionContext_InjectingConstructor"),HL8=Pl("WizInjectionContext_AsyncDeps"),Taq={};var ukf=!1;var aM2={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:iuu,enableLazyTsx:Wa8,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:RaI,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Mx=Object.assign({},{attributes:{},handleError:function(D){throw D;}},aM2);var tjt=Symbol("vb"),pV=Symbol("wb"),uBc=Symbol("xb"),tj2=Symbol("yb"),GRo=X9(function(D){return fV(D)&&tjt in D});var MjA=Symbol("zb"),VD={},PDr=(VD[MjA]=!0,VD.debugName="[component]",VD.getComponentStack=function(){for(var D=[],v=this;v;)fM4(v)&&D.push(v.debugName),v=v.parent;return D},VD.registerSignal=function(){},VD.registerEffect=function(){},VD);var CV=null,Fo=!1,zlc=1,JXI=Symbol("Db"),kH={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 Pw=Symbol("Eb"),x9=Symbol("Fb"),UY=Symbol("Gb"),S5L=Object.assign({},kH,{value:Pw,dirty:!0,error:null,equal:CDc,kind:"computed",producerMustRecompute:function(D){return D.value===Pw||D.value===x9},
producerRecomputeValue:function(D){if(D.value===x9)throw Error("Z");var v=D.value;D.value=x9;var h=IML(D),a=!1;try{var Q=D.computation();ou(null);a=v!==Pw&&v!==UY&&Q!==UY&&D.equal(v,Q)}catch(G){Q=UY,D.error=G}finally{ou(h),D&&kCq(D)}a?D.value=v:(D.value=Q,D.version++)}});Object.assign({},kH,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var Y5A=function(){throw Error();};var cXo=null,lM2=Object.assign({},kH,{equal:CDc,value:void 0,kind:"signal"});Object.assign({},kH,{value:Pw,dirty:!0,error:null,equal:CDc,kind:"linkedSignal",producerMustRecompute:function(D){return D.value===Pw||D.value===x9},
producerRecomputeValue:function(D){if(D.value===x9)throw Error("Z");var v=D.value;D.value=x9;var h=IML(D);try{var a=D.source();var Q=D.computation(a,v===Pw||v===UY?void 0:{source:D.sourceValue,value:v});D.sourceValue=a}catch(G){Q=UY,D.error=G}finally{ou(h),D&&kCq(D)}v!==Pw&&Q!==UY&&D.equal(v,Q)?D.value=v:(D.value=Q,D.version++)}});Object.assign({},kH,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(D){D.schedule!==null&&D.schedule(D.ref)},
hasRun:!1,cleanupFn:function(){}});var AXq=Symbol("Hb"),EY=Symbol("Ib");var Iu=Array.isArray;var w1I;var rX4={},n_O=yXi(Object.assign({},{consumerAllowSignalWrites:!0},rX4)),J$=yXi(Object.assign({},{consumerAllowSignalWrites:!0},rX4));var lW=0,Nx=!1,Mw=function(){this.queue=new Set};
Mw.prototype.schedule=function(D){this.queue.add(D)};
Mw.prototype.remove=function(D){this.queue.delete(D)};
Mw.prototype.clear=function(){this.queue.clear()};
var Tfo=Symbol("Nb"),Opr=Symbol("Ob"),fy=function(){Mw.apply(this,arguments)};
_.J(fy,Mw);fy.prototype.flush=function(){if(this.queue.size){Nx=!0;for(var D=_.P(this.queue),v=D.next();!v.done;v=D.next()){v=v.value;this.queue.delete(v);try{v.run()}catch(h){uBb(h)}}Nx=!1}};
var Db$=function(){fy.apply(this,arguments)};
_.J(Db$,fy);var KVO=new Db$,vX$=function(){fy.apply(this,arguments)};
_.J(vX$,fy);vX$.prototype.schedule=function(D){var v=this;return _.M(function(h){if(h.nextAddress==1)return Mx.enableQueueEffectAndOnInitInitialRuns?h.jumpTo(2):h.yield(Promise.resolve(),3);if(h.nextAddress!=2)return D.run(),h.return();v.queue.add(D);_.YI(h)})};
var Rlc=new vX$,Cy=function(){Mw.apply(this,arguments)};
_.J(Cy,Mw);Cy.prototype.flush=function(){this.queue.size&&Vgr(this.queue)};
var hsF=function(){Cy.apply(this,arguments)};
_.J(hsF,Cy);hsF.prototype.schedule=function(D){D.hasRun?this.queue.add(D):D.run()};
hsF.prototype.flush=function(){if(this.queue.size)if(Mx.flushRenderEffectsDuringRender){var D=this.queue;this.queue=new Set;Vgr(D)}else Vgr(this.queue)};
var WVc=new hsF,aOJ=function(){Cy.apply(this,arguments)};
_.J(aOJ,Cy);aOJ.prototype.schedule=function(D){var v=this;return _.M(function(h){if(h.nextAddress==1)return Mx.enableQueueEffectAndOnInitInitialRuns||D.hasRun?h.jumpTo(2):h.yield(Promise.resolve(),3);if(h.nextAddress!=2)return D.run(),h.return();v.queue.add(D);_.YI(h)})};
var DbO=new aOJ,$bm=function(){Cy.apply(this,arguments)};
_.J($bm,Cy);var rXo=new $bm,hs8=[WVc,KVO,rXo],QM2=[Rlc,DbO],QMt=[WVc,rXo,DbO],PMO=[].concat(_.j_(hs8),_.j_(QM2)),GR4=[];cXo=function(){$bA();for(var D=_.P(GR4),v=D.next();!v.done;v=D.next())v=v.value,v()};
var uBb=QO;var cl=Symbol("Pb");var Bl=null,fOL,CMq=null,oXf;var oW={},Vg1=Object.assign({},kH,(oW[tjt]=!0,oW.effectType=pV,oW.isResettableContext=!0,oW.hasRun=!1,oW.effectFn=null,oW.consumerIsAlwaysLive=!0,oW.consumerAllowSignalWrites=!0,oW.consumerMarkedDirty=vXO,oW.kind="effect",oW.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Fo)throw Error("Qb");this.dirty=!1;if(!this.hasRun||UYf(this)){this.hasRun=!0;mH4(this);var D=_.GS(this),v=IML(this);QBc("effectRun",this.debugName);try{qx(this.effectFn,this.componentStack,this)}catch(h){throw Mx.enableContextBasedComponentStacks&&
Ah(h),h;}finally{GCL("effectRun",this.debugName),ou(v),this&&kCq(this),_.GS(D)}}}},oW.componentStack=void 0,oW.debugName="[effect]",oW[Symbol.dispose]=function(){if(zS(this))for(var D=this.producers;D!==void 0;)D=g_f(D);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;D=_.P(QMt);for(var v=D.next();!v.done;v=D.next())v.value.remove(this);se4(this)},oW));var UbI=Object.assign({},Vg1,{effectType:uBc});var LK2=Symbol("Rb");var Z9I=Object.assign({},Vg1,{effectType:pV});var vR8=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 gX2={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},IO8=
{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}]}},xCq={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},JHc=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],SR7={"*":{async:1,dir:0,loading:2,target:3}};var PM$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,F7={},lOi=(F7[1]=null,F7[2]=function(D,v){return v instanceof iH?r0(v):eR.toString()},F7[3]=function(D,v){return sQ(v)?_.mM(v):PM$.test(String(v))?String(v):eR.toString()},F7[4]=function(D,v){return v instanceof cd?_.qf(v):eR.toString()},F7[5]=function(D,v){return String(v)},F7[7]=null,F7[8]=null,F7[10]=null,F7);var g2O=Symbol("Xb");var R8o=function(D){var v=xb$,h=D,a="",Q="",G=1;D<0&&(D=-D);if(D===Infinity)D=(Infinity*Math.sign(h)).toString();else{for(var x=0;x<MgM.length;x++){var f=MgM[x];G=v[f];if(D>=G||G<=1&&D>.1*G){a=f;break}}a?(a+="B",Q=" "):G=1;D=Math.round(h/G*10)/10+Q+a}return D},MgM="Y Z E P T G M K  m u n".split(" "),xb$={"":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};_.fOp=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 Fd={};RegExp.prototype.hasOwnProperty("sticky");var aFu=function(D){D=String(D);for(var v=function(a,Q,G){for(var x=Math.min(Q.length-G,a.length),f=0;f<x;f++){var C=Q[G+f];if(a[f]!==("A"<=C&&C<="Z"?C.toLowerCase():C))return!1}return!0},h=0;(h=D.indexOf("<",h))!=-1;){if(v("\x3c/script",D,h)||v("\x3c!--",D,h))return"zSoyz";
h+=1}return D};var nV={default:"__default"};var AHI=Object.prototype.hasOwnProperty;Bk8.prototype=Object.create(null);var VX=dbI();var at=null;var Rsq=function(D){this.created=[];this.deleted=[];this.node=D};var i9q=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var D=this,v=D;D;)v=D,D=D.parentNode;return v};var sML=function(D,v){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=D;this.key=v;this.text=void 0};var th=null,rq=null,TS=null,D0=null,esO=[],waI=H9o,vv=[],h$=[],Ijc=function(D){return WK8(function(v,h,a){TS=rq=v;rq=null;h(a);yHc(null);rq=TS;TS=TS.parentNode;return v},D)}(),E22=function(D){return WK8(function(v,h,a){var Q={nextSibling:v};
rq=Q;h(a);TS&&yHc(v.nextSibling);return Q===rq?null:rq},D)}();var $f=[],rHc=0;var Q7=new Bk8;var w4=new Bk8;var CMs=dbI(),GTI=CMs[nV.default],Qrf=CMs.style,hu8=["focusin","focusout"],xcu="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var imc=function(){},srL=function(){},DFq=function(){},tCf=function(){};var V7=Symbol("bc");var F3u,oR7=C48;var Z0=Symbol("cc");var un2=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(" ")),
rBc=new Set(["a","font","script","style","title"]);_.LJ={setUp:NdI,tearDown:NdI,log:NdI,logNodeRange:NdI,graft:function(D,v){v()}};var pJ={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ly=null,Nd=function(D,v){Yf.call(this,D);var h=this;this.functionComponent=v;this.hooks=[];this.hookCounter=0;this.disposeEffects=jM(function(a){h.effectContext=a;_.dq(function(){wTq(h,h.el)})},Mx.alwaysTrackContexts||!!Q6)};
_.J(Nd,Yf);Nd.prototype.render=function(D){var v=ly;ly=this;this.hookCounter=0;var h=ou(J$),a=_.GS(this.effectContext);try{return QBc("render",this.componentName),this.functionComponent(D)}finally{GCL("render",this.componentName),_.GS(a),ou(h),ly=v}};
_.GT.Object.defineProperties(Nd.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return xbO(this.functionComponent)}}});var vEf=Symbol("qc"),TdO=function(D,v,h){this.afterRenderCallbacks=null;this.kind=D;this.props=v;this.children=h};
_.J(TdO,kf);TdO.prototype.render=function(){var D=K32(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var v=_.P(this.afterRenderCallbacks),h=v.next();!h.done;h=v.next())h=h.value,D=h(D);return D};
TdO.prototype.getChildren=function(){return this.children};var aD2=[];Y5A=function(D){throw Error("ob`"+D.debugName);};
(function(){var D=at;at=function(v){D==null||D(v);$FL(v)}})();Object.assign({},Vg1,{effectType:pV,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var D=this.elementRef;var v;D.element!=null||(D.element=(v=D.document.getElementById(D.value))!=null?v:void 0);D=D.element;for(v=this.attributes;v;){var h=v.signal();h!==v.prevValue&&(v.prevValue=h,v.namespace===1?D[v.name]=h:vR8.has(v.name)?eM(D,v.name,h?"":null):eM(D,v.name,h));v=v.next}}});_.Bv.debugName="tbhMcf";_.cv.debugName="zyMFzb";Object.assign({},Vg1,{effectType:pV,hasRun:!0});_.z.debugName="RlDudd";var QNo={nonNullableCondIsNull:function(){return Error("uc")}};var fD8=function(){this.map=new Map};
fD8.prototype.push=function(D,v){var h=this.map;h.has(D)&&(this.multi||(this.multi=new Map),this.multi.set(v,h.get(D)));h.set(D,v)};
fD8.prototype.pop=function(D){var v=this.map,h=v.get(D),a;h!==void 0&&((a=this.multi)==null?0:a.has(h))?(v.set(D,this.multi.get(h)),this.multi.delete(h)):v.delete(D);return h};_.Xd.debugName="nsTGHd";_.A$.debugName="vI1rtf";_.Lnr={OUT_OF_ORDER_HOOK_CALL:function(D){return Error("vc`"+D)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(D,v){return Error("zc`"+((v===void 0?0:v)?"IDOM":"Reactive")+"`"+(qd(D)?D.description:D))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(D,v){return Error("Ac`"+(qd(D)?D.description:D)+"`"+v)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(D){return Error("Bc`"+(qd(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED:function(D){return Error("Cc`"+(qd(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(D){return Error("Dc`"+(qd(D)?D.description:D))}};F3u=Ru7;var S9u=Symbol("Ec");HmI({beforeRender:function(D){var v=_.GS(D.effectContext);try{var h;((h=D.__syncEffects)==null?0:h.length)&&lDq(D.__syncEffects)}finally{_.GS(v)}},
didPatch:function(D){var v=_.GS(D.effectContext);try{var h;((h=D.__syncEffects)==null?0:h.length)&&lDq(D.__syncEffects)}finally{_.GS(v)}},
didUnmount:function(D){var v;((v=D.hooks)==null?0:v.length)&&D.hooks.forEach(pUO)}});var oX9,FK4,zsJ;oX9=_.$L.window;_.y7=(oX9==null?void 0:(FK4=oX9.yt)==null?void 0:FK4.config_)||(oX9==null?void 0:(zsJ=oX9.ytcfg)==null?void 0:zsJ.data_)||{};_.Gm("yt.config_",_.y7);var UbR={},XUI=[];_.XH=function(D){var v=_.Kz.apply(1,arguments);var h=Error.call(this,D);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.args=[].concat(_.j_(v));Object.setPrototypeOf(this,this.constructor.prototype)};
_.J(_.XH,Error);var KG7=function(D,v,h){this.actionName=D;this.optionalAction=v===void 0?!1:v;this.args=h===void 0?null:h;this.returnValue=[]};_.z0=function(D){this.name=D};_.Kp=new _.z0("signalAction");var eyO=/^[\w.]*$/,jNO={q:!0,search_query:!0},dFO=String(b1u);var MM;MM=Symbol("Fc");_.Uj=function(D){this.name=D};
_.Uj.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var nE8=function(D){this.key=D},i1c=function(D){this.deferredKey=D},Kn7=function(){var D=this;
this.providers=new Map;this.JSC$10496_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(D.providers)}}};
Kn7.prototype.addProvider=function(D){this.providers.set(D.provide,D);var v=this.JSC$10496_deferred.get(D.provide);if(v)try{v.resolver(this.resolve(D.provide))}catch(h){v.rejector(h)}};
Kn7.prototype.resolve=function(D){return D instanceof i1c?LKt(this,D):D instanceof nE8?Z9R(this,D.key,[],!0):Z9R(this,D,[])};
var LKt=function(D,v){v=v.deferredKey;if(D.JSC$10496_deferred.has(v))return D.JSC$10496_deferred.get(v).promise;var h={};h.promise=new Promise(function(a,Q){h.resolver=a;h.rejector=Q});
D.JSC$10496_deferred.set(v,h);return h.promise},Z9R=function(D,v,h,a){a=a===void 0?!1:a;
if(h.indexOf(v)>-1)throw Error("Gc`"+v);if(D.cachedValues.has(v))return D.cachedValues.get(v);if(!D.providers.has(v)){if(a)return;throw Error("Hc`"+v);}a=D.providers.get(v);h.push(v);if(a.useValue!==void 0)var Q=a.useValue;else if(a.useFactory)Q=a[MM]?EX9(D,a[MM],h):[],Q=a.useFactory.apply(a,_.j_(Q));else if(a.useClass){Q=a.useClass;var G=Q[MM]?EX9(D,Q[MM],h):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(_.j_(G))))}else throw Error("Ic`"+v);h.pop();a.skipCache||D.cachedValues.set(v,Q);return Q},
EX9=function(D,v,h){return v?v.map(function(a){return a instanceof nE8?Z9R(D,a.key,h,!0):Z9R(D,a,h)}):[]};var O1c;var TC=new _.Uj("ENDPOINT_HANDLER_TOKEN");_.RB=new _.z0("urlEndpoint");var IOF=function(){this.data=[];this.cachedPackedInt52=-1};
IOF.prototype.set=function(D,v){v=v===void 0?!0:v;0<=D&&D<52&&Number.isInteger(D)&&this.data[D]!==v&&(this.data[D]=v,this.cachedPackedInt52=-1)};
IOF.prototype.get=function(D){return!!this.data[D]};
var gXt=function(D){D.cachedPackedInt52===-1&&(D.cachedPackedInt52=D.data.reduce(function(v,h,a){return v+(h?Math.pow(2,a):0)},0));
return D.cachedPackedInt52};var xDA=function(D){var v=kRR;D=D===void 0?_.T3("yt.ads.biscotti.lastId_")||"":D;var h=Object,a=h.assign,Q={};Q.dt=Iq$;Q.flash="0";a:{try{var G=v.JSC$10502_win_.top.location.href}catch(vA){G=2;break a}G=G?G===v.doc_.location.href?0:1:2}Q=(Q.frm=G,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var x=hF.history.length}catch(vA){x=0}Q.u_his=x;var f;Q.u_h=(f=hF.screen)==null?void 0:f.height;var C;Q.u_w=(C=hF.screen)==null?void 0:C.width;var U;Q.u_ah=(U=hF.screen)==null?void 0:U.availHeight;var L;Q.u_aw=
(L=hF.screen)==null?void 0:L.availWidth;var Z;Q.u_cd=(Z=hF.screen)==null?void 0:Z.colorDepth}catch(vA){}x=v.JSC$10502_win_;try{var E=x.screenX;var I=x.screenY}catch(vA){}try{var S=x.outerWidth;var B=x.outerHeight}catch(vA){}try{var A=x.innerWidth;var d=x.innerHeight}catch(vA){}try{var b=x.screenLeft;var W=x.screenTop}catch(vA){}try{A=x.innerWidth,d=x.innerHeight}catch(vA){}try{var K=x.screen.availWidth;var O=x.screen.availTop}catch(vA){}E=[b,W,E,I,K,O,S,B,A,d];I=SNq(!1,v.JSC$10502_win_.top);S={};
var R=R===void 0?_.$L:R;B=new IOF;"SVGElement"in R&&"createElementNS"in R.document&&B.set(0);A=LmM();A["allow-top-navigation-by-user-activation"]&&B.set(1);A["allow-popups-to-escape-sandbox"]&&B.set(2);R.crypto&&R.crypto.subtle&&B.set(3);"TextDecoder"in R&&"TextEncoder"in R&&B.set(4);R=gXt(B);v=(S.bc=R,S.bih=I.height,S.biw=I.width,S.brdim=E.join(),S.vis=F92(v.doc_),S.wgl=!!hF.WebGLRenderingContext,S);h=a.call(h,Q,v);h.ca_type="image";D&&(h.bid=D);return h},kRR=new function(){var D=window.document;
this.JSC$10502_win_=window;this.doc_=D};
_.Gm("yt.ads_.signals_.getAdSignalsString",function(D){return sNA(xDA(D))});_.M6();navigator.userAgent.indexOf(" (CrKey ");var DDA="XMLHttpRequest"in _.$L?function(){return new XMLHttpRequest}:null;var SR4="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),JHJ=[].concat(_.j_(SR4),["client_dev_set_cookie"]);var P07={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"},aUi="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(_.j_(SR4)),ZGA=!1,QGA=_.Mqi,zk2=Vqi;var ync=[{messageFn:function(D){return"Cannot read property '"+D.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(D){return"Cannot call '"+D.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(D){return D.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var paM={messageWeights:[],callbackWeights:[{callback:kac,weight:500},{callback:S4o,weight:500}]};var lOM=function(){this.callbackWeights=[];this.messageWeights=[]},NkR,Hjc=function(){if(!NkR){var D=NkR=new lOM;
D.messageWeights.length=0;D.callbackWeights.length=0;q7u(D,paM)}return NkR},q7u=function(D,v){v.messageWeights&&D.messageWeights.push.apply(D.messageWeights,v.messageWeights);
v.callbackWeights&&D.callbackWeights.push.apply(D.callbackWeights,v.callbackWeights)};_.fa(_.JO,_.AN);_.JO.prototype.subscribe=function(D,v,h){var a=this.topics_[D];a||(a=this.topics_[D]=[]);var Q=this.JSC$10526_key_;this.subscriptions_[Q]=D;this.subscriptions_[Q+1]=v;this.subscriptions_[Q+2]=h;this.JSC$10526_key_=Q+3;a.push(Q);return Q};
var YRF=function(D){var v=Ojc,h=!1,a=v.subscribe("handleError",function(Q){h||(h=!0,this.unsubscribeByKey(a),D.apply(void 0,arguments))},v)};
_.JO.prototype.unsubscribe=function(D,v,h){if(D=this.topics_[D]){var a=this.subscriptions_;if(D=D.find(function(Q){return a[Q+1]==v&&a[Q+2]==h}))return this.unsubscribeByKey(D)}return!1};
_.JO.prototype.unsubscribeByKey=function(D){var v=this.subscriptions_[D];if(v){var h=this.topics_[v];this.publishDepth_!=0?(this.pendingKeys_.push(D),this.subscriptions_[D+1]=function(){}):(h&&_.e2(h,D),delete this.subscriptions_[D],delete this.subscriptions_[D+1],delete this.subscriptions_[D+2])}return!!v};
_.JO.prototype.publish=function(D,v){var h=this.topics_[D];if(h){var a=Array(arguments.length-1),Q=arguments.length,G;for(G=1;G<Q;G++)a[G-1]=arguments[G];if(this.async_)for(G=0;G<h.length;G++)Q=h[G],BkF(this.subscriptions_[Q+1],this.subscriptions_[Q+2],a);else{this.publishDepth_++;try{for(G=0,Q=h.length;G<Q&&!this.isDisposed();G++){var x=h[G];this.subscriptions_[x+1].apply(this.subscriptions_[x+2],a)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;h=this.pendingKeys_.pop();)this.unsubscribeByKey(h)}}return G!=
0}return!1};
var BkF=function(D,v,h){_.mF(function(){D.apply(v,h)})};
_.JO.prototype.clear=function(D){if(D){var v=this.topics_[D];v&&(v.forEach(this.unsubscribeByKey,this),delete this.topics_[D])}else this.subscriptions_.length=0,this.topics_={}};
_.JO.prototype.getCount=function(D){if(D){var v=this.topics_[D];return v?v.length:0}D=0;for(v in this.topics_)D+=this.getCount(v);return D};
_.JO.prototype.disposeInternal=function(){_.JO.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Ojc=new _.JO;var zm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(zm,_.xo);zm.prototype.getColdHashData=function(){return _.jI(this,3)};
zm.prototype.getHotHashData=function(){return _.jI(this,5)};
zm.prototype.setHotHashData=function(D){return _.Xx(this,5,D)};var jXo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(jXo,_.xo);var fYf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(fYf,_.xo);_.V=fYf.prototype;_.V.getDeviceId=function(){return _.jI(this,6)};
_.V.getExperimentIds=function(D){var v=_.tr(this,9,_.Gd,3,!0);D17(v,D);return v[D]};
_.V.getPlayerType=function(){return _.s1(this,36)};
_.V.setHomeGroupInfo=function(D){return _.lH(this,81,D)};
_.V.clearLocationPlayabilityToken=function(){return _.Fk(this,89)};var Sj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Sj,_.xo);Sj.prototype.setKey=function(D){return _.Xx(this,1,D)};
Sj.prototype.getValue=function(){return HD(this,2,oe7)};
var oe7=[2,3,4,5,6];var cH$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(cH$,_.xo);cH$.prototype.setTrackingParams=function(D){return _.Fk(this,1,_.N1(D,!1))};var C7i=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(C7i,_.xo);var Hqf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Hqf,_.xo);Hqf.prototype.getExperimentIds=function(D){var v=_.tr(this,5,_.ky2,3,!0);D17(v,D);return v[D]};var NY=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(NY,_.xo);NY.prototype.getToken=function(){return _.p0(this,2)};
NY.prototype.setToken=function(D){return _.Xx(this,2,D)};var pp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(pp,_.xo);pp.prototype.setSafetyMode=function(D){return _.oe(this,5,D)};var k_=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(k_,_.xo);k_.prototype.setClient=function(D){return _.lH(this,1,D)};var mPL={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 sX8;_.HR=function(){var D=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.$L.addEventListener("beforeinstallprompt",function(v){v.preventDefault();D.deferredInstallPrompt=v});
_.$L.addEventListener("appinstalled",function(){D.appInstalledEventFired=!0},{once:!0})};
sX8=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(D){return"WEB_DISPLAY_MODE_UNKNOWN"}};var efc=function(){this.syncHeaders=!0},nVc=function(D){var v={},h=[];
"USER_SESSION_ID"in _.y7&&h.push({key:"u",value:_.eA("USER_SESSION_ID")});if(h=_.fpc(h))v.Authorization=h,h=D=D==null?void 0:D.sessionIndex,h===void 0&&(h=Number(_.eA("SESSION_INDEX",0)),h=isNaN(h)?0:h),_.g("voice_search_auth_header_removal")||(v["X-Goog-AuthUser"]=h.toString()),"INNERTUBE_HOST_OVERRIDE"in _.y7||(v["X-Origin"]=window.location.origin),D===void 0&&"DELEGATED_SESSION_ID"in _.y7&&(v["X-Goog-PageId"]=_.eA("DELEGATED_SESSION_ID"));return v};var XaR={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Ly=_.T3("ytglobal.prefsUserPrefsPrefs_")||{},AHR;_.Gm("ytglobal.prefsUserPrefsPrefs_",Ly);_.Zl=function(){this.cookieName=_.eA("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.eA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var D=_.l8.get(this.cookieName,void 0);D&&this.parse(D)};
_.YE=function(){AHR||(AHR=new _.Zl);return AHR};
_.Zl.prototype.get=function(D,v){qRJ(D);b9p(D);D=Ly[D]!==void 0?Ly[D].toString():null;return D!=null?D:v?v:""};
_.Zl.prototype.set=function(D,v){qRJ(D);b9p(D);if(v==null)throw Error("Lc");Ly[D]=v.toString()};
_.Zl.prototype.getFlag=function(D){return!!((dbR("f"+(Math.floor(D/31)+1))||0)&1<<D%31)};
_.BU=function(D,v,h){D="f"+(Math.floor(v/31)+1);v=1<<v%31;var a=dbR(D)||0;a=h?a|v:a&~v;a===0?delete Ly[D]:(h=a.toString(16),Ly[D]=h.toString())};
_.Zl.prototype.remove=function(D){qRJ(D);b9p(D);delete Ly[D]};
_.Zl.prototype.save=function(){var D=!0;_.g("web_secure_pref_cookie_killswitch")&&(D=!1);_.NM(this.cookieName,this.dump(),63072E3,this.cookieDomain,D)};
_.Zl.prototype.clear=function(){_.sV.clear(Ly)};
_.Zl.prototype.dump=function(){var D=[],v;for(v in Ly)Ly.hasOwnProperty(v)&&D.push(v+"="+encodeURIComponent(String(Ly[v])));return D.join("&")};
var b9p=function(D){if(/^f([1-9][0-9]*)$/.test(D))throw Error("Mc`"+D);},qRJ=function(D){if(!/^\w+$/.test(D))throw Error("Nc`"+D);
},dbR=function(D){D=Ly[D]!==void 0?Ly[D].toString():null;
return D!=null&&/^[A-Fa-f0-9]+$/.test(D)?parseInt(D,16):null};
_.Zl.prototype.parse=function(D){D=decodeURIComponent(D).split("&");for(var v=0;v<D.length;v++){var h=D[v].split("="),a=h[0];(h=h[1])&&(Ly[a]=h.toString())}};var AAI={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"},yQ4={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},wRi={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},bGo={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var EA;_.Ej=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.c1=function(D,v,h){return D.addJob(v,0,h)};
_.Ej.prototype.addLowPriorityJob=function(D,v){return this.addJob(D,1,v)};
_.b7=function(D,v,h){return D.addJob(v,2,h)};
_.LK=function(D,v,h){return D.addJob(v,3,h)};
_.I3=function(D,v,h){return D.addJob(v,4,h)};
EA=function(D){var v=_.T3("yt.scheduler.instance.addImmediateJob");v?v(D):D()};
_.Ej.prototype.debounce=function(D,v,h){var a=this,Q=0,G=function(){Q&&a.cancelJob(Q);Q=a.addJob(D,v,h);a.cancelDebouncedJobMap.set(G,Q)};
return G};
_.Ej.prototype.cancelThrottle=function(D){(D=this.cancelThrottledJobMap.get(D))&&D()};var IW=function(){_.Ej.apply(this,arguments)};
_.J(IW,_.Ej);_.c7=function(){IW.instance||(IW.instance=new IW);return IW.instance};
IW.prototype.addJob=function(D,v,h){h!==void 0&&Number.isNaN(Number(h))&&(h=void 0);var a=_.T3("yt.scheduler.instance.addJob");return a?a(D,v,h):h===void 0?(D(),NaN):_.ZX(D,h||0)};
IW.prototype.cancelJob=function(D){if(D===void 0||!Number.isNaN(Number(D))){var v=_.T3("yt.scheduler.instance.cancelJob");v?v(D):_.IZ(D)}};
IW.prototype.start=function(){var D=_.T3("yt.scheduler.instance.start");D&&D()};
IW.prototype.pause=function(){var D=_.T3("yt.scheduler.instance.pause");D&&D()};
_.HK=_.c7();_.AO.prototype.set=function(D,v){v===void 0?this.mechanism.remove(D):this.mechanism.set(D,(0,_.nD)(v))};
_.AO.prototype.get=function(D){try{var v=this.mechanism.get(D)}catch(h){return}if(v!==null)try{return JSON.parse(v)}catch(h){throw"Storage: Invalid value was encountered";}};
_.AO.prototype.remove=function(D){this.mechanism.remove(D)};var gt=function(D){this.mechanism=D};
_.fa(gt,_.AO);var jM9=function(D){this.data=D},sMp=function(D){return D===void 0||D instanceof jM9?D:new jM9(D)};
gt.prototype.set=function(D,v){gt.superClass_.set.call(this,D,sMp(v))};
gt.prototype.getWrapper=function(D){D=gt.superClass_.get.call(this,D);if(D===void 0||D instanceof Object)return D;throw"Storage: Invalid value was encountered";};
gt.prototype.get=function(D){if(D=this.getWrapper(D)){if(D=D.data,D===void 0)throw"Storage: Invalid value was encountered";}else D=void 0;return D};_.fa(qM,gt);_.mbM=function(D){var v=D.creation;D=D.expiration;return!!D&&D<_.M6()||!!v&&v>_.M6()};
qM.prototype.set=function(D,v,h){if(v=sMp(v)){if(h){if(h<_.M6()){qM.prototype.remove.call(this,D);return}v.expiration=h}v.creation=_.M6()}qM.superClass_.set.call(this,D,v)};
qM.prototype.getWrapper=function(D,v){var h=qM.superClass_.getWrapper.call(this,D);if(h)if(!v&&_.mbM(h))qM.prototype.remove.call(this,D);else return h};var k9=function(){};
k9.prototype.next=function(){return Sn};
var Sn={done:!0,value:void 0},Je=function(D){return{value:D,done:!1}};
k9.prototype.__iterator__=function(){return this};
_.H94=function(D){if(D instanceof k9)return D;if(typeof D.__iterator__=="function")return D.__iterator__(!1);if(_.O8(D)){var v=0,h=new k9;h.next=function(){for(;;){if(v>=D.length)return Sn;if(v in D)return Je(D[v++]);v++}};
return h}throw Error("Oc");};var yHJ=function(D){if(D instanceof py||D instanceof lY||D instanceof Nw)return D;if(typeof D.next=="function")return new py(function(){return D});
if(typeof D[Symbol.iterator]=="function")return new py(function(){return D[Symbol.iterator]()});
if(typeof D.__iterator__=="function")return new py(function(){return D.__iterator__()});
throw Error("Pc");},py=function(D){this.func_=D};
py.prototype.__iterator__=function(){return new lY(this.func_())};
py.prototype[Symbol.iterator]=function(){return new Nw(this.func_())};
py.prototype.toEs6=function(){return new Nw(this.func_())};
var lY=function(D){this.JSC$10610_iter_=D};
_.J(lY,k9);lY.prototype.next=function(){return this.JSC$10610_iter_.next()};
lY.prototype[Symbol.iterator]=function(){return new Nw(this.JSC$10610_iter_)};
lY.prototype.toEs6=function(){return new Nw(this.JSC$10610_iter_)};
var Nw=function(D){py.call(this,function(){return D});
this.JSC$10613_iter_=D};
_.J(Nw,py);Nw.prototype.next=function(){return this.JSC$10613_iter_.next()};var waR=function(){};var Y9=function(){};
_.fa(Y9,waR);Y9.prototype.getCount=function(){for(var D=0,v=_.P(this),h=v.next();!h.done;h=v.next())D++;return D};
Y9.prototype[Symbol.iterator]=function(){return yHJ(this.__iterator__(!0)).toEs6()};
Y9.prototype.clear=function(){var D=Array.from(this);D=_.P(D);for(var v=D.next();!v.done;v=D.next())this.remove(v.value)};_.fa(b8,Y9);_.V=b8.prototype;_.V.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var D=this.storage_;if(D)try{D.setItem("__sak","1");D.removeItem("__sak");var v=!0}catch(h){v=h instanceof DOMException&&(h.name==="QuotaExceededError"||h.code===22||h.code===1014||h.name==="NS_ERROR_DOM_QUOTA_REACHED")&&D&&D.length!==0}else v=!1;this.cachedIsStorageAvailable_=v}return this.cachedIsStorageAvailable_};
_.V.set=function(D,v){Bw(this);try{this.storage_.setItem(D,v)}catch(h){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.V.get=function(D){Bw(this);D=this.storage_.getItem(D);if(typeof D!=="string"&&D!==null)throw"Storage mechanism: Invalid value was encountered";return D};
_.V.remove=function(D){Bw(this);this.storage_.removeItem(D)};
_.V.getCount=function(){Bw(this);return this.storage_.length};
_.V.__iterator__=function(D){Bw(this);var v=0,h=this.storage_,a=new k9;a.next=function(){if(v>=h.length)return Sn;var Q=h.key(v++);if(D)return Je(Q);Q=h.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return Je(Q)};
return a};
_.V.clear=function(){Bw(this);this.storage_.clear()};
_.V.key=function(D){Bw(this);return this.storage_.key(D)};
var Bw=function(D){if(D.storage_==null)throw Error("Qc");D.isAvailable()||QO(Error("Qc"))};_.fa(jGA,b8);_.fa(sGc,b8);_.fa(dl,Y9);dl.prototype.set=function(D,v){this.mechanism_.set(this.JSC$10628_prefix_+D,v)};
dl.prototype.get=function(D){return this.mechanism_.get(this.JSC$10628_prefix_+D)};
dl.prototype.remove=function(D){this.mechanism_.remove(this.JSC$10628_prefix_+D)};
dl.prototype.__iterator__=function(D){var v=this.mechanism_[Symbol.iterator](),h=this,a=new k9;a.next=function(){var Q=v.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,h.JSC$10628_prefix_.length)!=h.JSC$10628_prefix_;){Q=v.next();if(Q.done)return Q;Q=Q.value}return Je(D?Q.slice(h.JSC$10628_prefix_.length):h.mechanism_.get(Q))};
return a};_.OW=function(D){this.expiringStorage_=(D=_.mDf(D))?new qM(D):null;this.JSC$10632_domain_=document.domain||window.location.hostname};
_.OW.prototype.set=function(D,v,h,a){h=h||31104E3;this.remove(D);if(this.expiringStorage_)try{this.expiringStorage_.set(D,v,Date.now()+h*1E3);return}catch(G){}var Q="";if(a)try{Q=escape((0,_.nD)(v))}catch(G){return}else Q=escape(v);_.NM(D,Q,h,this.JSC$10632_domain_)};
_.OW.prototype.get=function(D,v){var h=void 0,a=!this.expiringStorage_;if(!a)try{h=this.expiringStorage_.get(D)}catch(Q){a=!0}if(a&&(h=_.l8.get(D,void 0))&&(h=unescape(h),v))try{h=JSON.parse(h)}catch(Q){this.remove(D),h=void 0}return h};
_.OW.prototype.remove=function(D){this.expiringStorage_&&this.expiringStorage_.remove(D);_.BRr(D,"/",this.JSC$10632_domain_)};
_.OW.prototype.getCreationTime=function(D){return this.expiringStorage_&&(D=(this.expiringStorage_.getWrapper(D)||{}).creation,typeof D==="number")?D:null};var yA4=function(){var D;return function(){D||(D=new _.OW("ytidb"));return D}}();var ek7;_.sz=[];ek7=!1;var VLi=nZf||OGq;var cw={},es$=(cw.AUTH_INVALID="No user identifier specified.",cw.EXPLICIT_ABORT="Transaction was explicitly aborted.",cw.IDB_NOT_SUPPORTED="IndexedDB is not supported.",cw.MISSING_INDEX="Index not created.",cw.MISSING_OBJECT_STORES="Object stores not created.",cw.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",cw.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",cw.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",cw.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",cw.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",cw.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",cw.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",cw),X7={},nX4=(X7.AUTH_INVALID="ERROR",X7.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",X7.EXPLICIT_ABORT="IGNORED",
X7.IDB_NOT_SUPPORTED="ERROR",X7.MISSING_INDEX="WARNING",X7.MISSING_OBJECT_STORES="ERROR",X7.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",X7.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",X7.QUOTA_EXCEEDED="WARNING",X7.QUOTA_MAYBE_EXCEEDED="WARNING",X7.UNKNOWN_ABORT="WARNING",X7.INCOMPATIBLE_DB_VERSION="WARNING",X7),Ae={},O9$=(Ae.AUTH_INVALID=!1,Ae.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Ae.EXPLICIT_ABORT=!1,Ae.IDB_NOT_SUPPORTED=!1,Ae.MISSING_INDEX=!1,Ae.MISSING_OBJECT_STORES=!1,Ae.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Ae.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Ae.QUOTA_EXCEEDED=!1,Ae.QUOTA_MAYBE_EXCEEDED=!0,Ae.UNKNOWN_ABORT=!0,Ae.INCOMPATIBLE_DB_VERSION=!1,Ae),nx=function(D,v,h,a,Q){v=v===void 0?{}:v;h=h===void 0?es$[D]:h;a=a===void 0?nX4[D]:a;Q=Q===void 0?O9$[D]:Q;_.XH.call(this,h,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:D},v));this.type=D;this.message=h;this.level=a;this.retryable=Q;Object.setPrototypeOf(this,nx.prototype)};
_.J(nx,_.XH);var KK4=function(D,v){nx.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:v,foundObjectStores:D},es$.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,KK4.prototype)};
_.J(KK4,nx);var TR7=function(D,v){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.index=D;this.objectStore=v;Object.setPrototypeOf(this,TR7.prototype)};
_.J(TR7,Error);var RkA=["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 RZ=function(D){this.executor=D},Ti=function(D){var v=this;
this.state={status:"PENDING"};this.JSC$10660_onFulfilled=[];this.JSC$10660_onRejected=[];D=D.executor;var h=function(Q){if(v.state.status==="PENDING"){v.state={status:"FULFILLED",value:Q};Q=_.P(v.JSC$10660_onFulfilled);for(var G=Q.next();!G.done;G=Q.next())G=G.value,G()}},a=function(Q){if(v.state.status==="PENDING"){v.state={status:"REJECTED",
reason:Q};Q=_.P(v.JSC$10660_onRejected);for(var G=Q.next();!G.done;G=Q.next())G=G.value,G()}};
try{D(h,a)}catch(Q){a(Q)}};
Ti.all=function(D){return new Ti(new RZ(function(v,h){var a=[],Q=D.length;Q===0&&v(a);for(var G={i$jscomp$468:0};G.i$jscomp$468<D.length;G={i$jscomp$468:G.i$jscomp$468},++G.i$jscomp$468)Ti.resolve(D[G.i$jscomp$468]).then(function(x){return function(f){a[x.i$jscomp$468]=f;Q--;Q===0&&v(a)}}(G)).catch(function(x){h(x)})}))};
Ti.resolve=function(D){return new Ti(new RZ(function(v,h){D instanceof Ti?D.then(v,h):v(D)}))};
Ti.reject=function(D){return new Ti(new RZ(function(v,h){h(D)}))};
Ti.prototype.then=function(D,v){var h=this,a=D!=null?D:tq7,Q=v!=null?v:W67;return new Ti(new RZ(function(G,x){h.state.status==="PENDING"?(h.JSC$10660_onFulfilled.push(function(){TkF(h,h,a,G,x)}),h.JSC$10660_onRejected.push(function(){Rss(h,h,Q,G,x)})):h.state.status==="FULFILLED"?TkF(h,h,a,G,x):h.state.status==="REJECTED"&&Rss(h,h,Q,G,x)}))};
Ti.prototype.catch=function(D){return this.then(void 0,D)};
var TkF=function(D,v,h,a,Q){try{if(D.state.status!=="FULFILLED")throw Error("Tc");var G=h(D.state.value);G instanceof Ti?i9s(D,v,G,a,Q):a(G)}catch(x){Q(x)}},Rss=function(D,v,h,a,Q){try{if(D.state.status!=="REJECTED")throw Error("Uc");
var G=h(D.state.reason);G instanceof Ti?i9s(D,v,G,a,Q):a(G)}catch(x){Q(x)}},i9s=function(D,v,h,a,Q){v===h?Q(new TypeError("Vc")):h.then(function(G){G instanceof Ti?i9s(D,v,G,a,Q):a(G)},function(G){Q(G)})};var qw;qw=window;_.xz=qw.ytcsi&&qw.ytcsi.now?qw.ytcsi.now:qw.performance&&qw.performance.timing&&qw.performance.now&&qw.performance.timing.navigationStart?function(){return qw.performance.timing.navigationStart+qw.performance.now()}:function(){return(new Date).getTime()};var WV=function(D,v){this.JSC$10672_wrapped=D;this.options=v;this.transactionCount=0;this.startedMs=Math.round((0,_.xz)());this.hasUnknownAbortedTransaction=!1},bY=function(){return _.g("idb_immediate_commit")},rHb,uLp,sj,huF;
WV.prototype.add=function(D,v,h){return _.vK(this,[D],{mode:"readwrite",enableRetries:!0,commit:bY()},function(a){return a.objectStore(D).add(v,h)})};
WV.prototype.clear=function(D){return _.vK(this,[D],{mode:"readwrite",enableRetries:!0},function(v){return v.objectStore(D).clear()})};
WV.prototype.close=function(){this.JSC$10672_wrapped.close();var D;((D=this.options)==null?0:D.closed)&&this.options.closed()};
WV.prototype.count=function(D,v){return _.vK(this,[D],{mode:"readonly",enableRetries:!0,commit:bY()},function(h){return h.objectStore(D).count(v)})};
var Tm=function(D,v,h){D=D.JSC$10672_wrapped.createObjectStore(v,h);return new dt(D)};
WV.prototype.delete=function(D,v){return _.vK(this,[D],{mode:"readwrite",enableRetries:!0,commit:bY()&&!(v instanceof IDBKeyRange)},function(h){return h.objectStore(D).delete(v)})};
var WKF=function(D,v){return _.vK(D,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(h){return h.objectStore("ResponseStore").index("byInterface").delete(v)})};
WV.prototype.get=function(D,v){return _.vK(this,[D],{mode:"readonly",enableRetries:!0,commit:bY()},function(h){return h.objectStore(D).get(v)})};
WV.prototype.getAll=function(D,v,h){return _.vK(this,[D],{mode:"readonly",enableRetries:!0},function(a){return a.objectStore(D).getAll(v,h)})};
WV.prototype.put=function(D,v,h){return _.vK(this,[D],{mode:"readwrite",enableRetries:!0,commit:bY()},function(a){return a.objectStore(D).put(v,h)})};
WV.prototype.objectStoreNames=function(){return Array.from(this.JSC$10672_wrapped.objectStoreNames)};
_.vK=function(D,v,h,a){var Q,G,x,f,C,U,L,Z,E,I,S,B;return _.M(function(A){switch(A.nextAddress){case 1:var d={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof h==="string"?d.mode=h:Object.assign(d,h);Q=d;D.transactionCount++;G=Q.enableRetries?3:1;x=0;case 2:if(f){A.jumpTo(4);break}x++;C=Math.round((0,_.xz)());_.gE(A,5);U=D.JSC$10672_wrapped.transaction(v,Q.mode);d=A.yield;var b=!!Q.commit;var W=new tO(U);b=tg9(W,a,b);return d.call(A,b,7);case 7:return L=A.yieldResult,Z=Math.round((0,_.xz)()),
rHb(D,C,Z,x,void 0,v.join(),Q),A.return(L);case 5:E=_.NS(A);I=Math.round((0,_.xz)());S=iGO(E,D.JSC$10672_wrapped.name,v.join(),D.JSC$10672_wrapped.version);if((B=S instanceof nx&&!S.retryable)||x>=G)rHb(D,C,I,x,S,v.join(),Q),f=S;A.jumpTo(2);break;case 4:return A.return(Promise.reject(f))}})};
rHb=function(D,v,h,a,Q,G,x){v=h-v;Q?(Q instanceof nx&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&HV("QUOTA_EXCEEDED",{dbName:wl(D.JSC$10672_wrapped.name),objectStoreNames:G,transactionCount:D.transactionCount,transactionMode:x.mode}),Q instanceof nx&&Q.type==="UNKNOWN_ABORT"&&(h-=D.startedMs,h<0&&h>=2147483648&&(h=0),HV("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:G,transactionDuration:v,transactionCount:D.transactionCount,dbDuration:h}),D.hasUnknownAbortedTransaction=!0),
uLp(D,!1,a,G,v,x.tag),_.mb(Q)):uLp(D,!0,a,G,v,x.tag)};
uLp=function(D,v,h,a,Q,G){HV("TRANSACTION_ENDED",{objectStoreNames:a,connectionHasUnknownAbortedTransaction:D.hasUnknownAbortedTransaction,duration:Q,isSuccessful:v,tryCount:h,tag:G===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":G})};
WV.prototype.getVersion=function(){return this.JSC$10672_wrapped.version};
WV.prototype.getName=function(){return this.JSC$10672_wrapped.name};
var dt=function(D){this.JSC$10687_wrapped=D};
dt.prototype.add=function(D,v){return i8(this.JSC$10687_wrapped.add(D,v))};
dt.prototype.autoIncrement=function(){return this.JSC$10687_wrapped.autoIncrement};
dt.prototype.clear=function(){return i8(this.JSC$10687_wrapped.clear()).then(function(){})};
var Re=function(D,v,h){D.JSC$10687_wrapped.createIndex(v,h,{unique:!1})};
dt.prototype.count=function(D){return i8(this.JSC$10687_wrapped.count(D))};
var DcJ=function(D,v){return ae(D,{query:v},function(h){return h.delete().then(function(){return h.continue()})}).then(function(){})};
dt.prototype.delete=function(D){return D instanceof IDBKeyRange?DcJ(this,D):i8(this.JSC$10687_wrapped.delete(D))};
dt.prototype.get=function(D){return i8(this.JSC$10687_wrapped.get(D))};
dt.prototype.getAll=function(D,v){return"getAll"in IDBObjectStore.prototype?i8(this.JSC$10687_wrapped.getAll(D,v)):vRF(this,D,v)};
var vRF=function(D,v,h){var a=[];return ae(D,{query:v},function(Q){if(!(h!==void 0&&a.length>=h))return a.push(Q.getValue()),Q.continue()}).then(function(){return a})};
dt.prototype.index=function(D){try{return new jn(this.JSC$10687_wrapped.index(D))}catch(v){if(v instanceof Error&&v.name==="NotFoundError")throw new TR7(D,this.JSC$10687_wrapped.name);throw v;}};
dt.prototype.getName=function(){return this.JSC$10687_wrapped.name};
dt.prototype.keyPath=function(){return this.JSC$10687_wrapped.keyPath};
dt.prototype.put=function(D,v){return i8(this.JSC$10687_wrapped.put(D,v))};
var ae=function(D,v,h){D=D.JSC$10687_wrapped.openCursor(v.query,v.direction);return huF(D).then(function(a){return DP4(a,h)})},tO=function(D){var v=this;
this.JSC$10695_wrapped=D;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(h,a){v.JSC$10695_wrapped.addEventListener("complete",function(){h()});
v.JSC$10695_wrapped.addEventListener("error",function(Q){Q.currentTarget===Q.target&&a(v.JSC$10695_wrapped.error)});
v.JSC$10695_wrapped.addEventListener("abort",function(){var Q=v.JSC$10695_wrapped.error;if(Q)a(Q);else if(!v.aborted){Q=nx;for(var G=v.JSC$10695_wrapped.objectStoreNames,x=[],f=0;f<G.length;f++){var C=G.item(f);if(C===null)throw Error("Wc");x.push(C)}Q=new Q("UNKNOWN_ABORT",{objectStoreNames:x.join(),dbName:v.JSC$10695_wrapped.db.name,mode:v.JSC$10695_wrapped.mode});a(Q)}})})},tg9=function(D,v,h){var a=new Promise(function(Q,G){try{var x=v(D);
h&&D.commit();x.then(function(f){Q(f)}).catch(G)}catch(f){G(f),D.abort()}});
return Promise.all([a,D.done]).then(function(Q){return _.P(Q).next().value})};
tO.prototype.abort=function(){this.JSC$10695_wrapped.abort();this.aborted=!0;throw new nx("EXPLICIT_ABORT");};
tO.prototype.commit=function(){if(!this.aborted){var D,v;(v=(D=this.JSC$10695_wrapped).commit)==null||v.call(D)}};
tO.prototype.objectStore=function(D){D=this.JSC$10695_wrapped.objectStore(D);var v=this.objectStoreCache.get(D);v||(v=new dt(D),this.objectStoreCache.set(D,v));return v};
var jn=function(D){this.JSC$10697_wrapped=D};
jn.prototype.count=function(D){return i8(this.JSC$10697_wrapped.count(D))};
jn.prototype.delete=function(D){return _.MH(this,{query:D},function(v){return v.delete().then(function(){return v.continue()})})};
jn.prototype.get=function(D){return i8(this.JSC$10697_wrapped.get(D))};
jn.prototype.getAll=function(D,v){return"getAll"in IDBIndex.prototype?i8(this.JSC$10697_wrapped.getAll(D,v)):aFy(this,D,v)};
var aFy=function(D,v,h){var a=[];return _.MH(D,{query:v},function(Q){if(!(h!==void 0&&a.length>=h))return a.push(Q.getValue()),Q.continue()}).then(function(){return a})};
jn.prototype.keyPath=function(){return this.JSC$10697_wrapped.keyPath};
jn.prototype.unique=function(){return this.JSC$10697_wrapped.unique};
_.MH=function(D,v,h){D=D.JSC$10697_wrapped.openCursor(v.query===void 0?null:v.query,v.direction===void 0?"next":v.direction);return huF(D).then(function(a){return DP4(a,h)})};
sj=function(D,v){this.request=D;this.cursor=v};
huF=function(D){return i8(D).then(function(v){return v?new sj(D,v):null})};
sj.prototype.continue=function(D){this.cursor.continue(D);return huF(this.request)};
sj.prototype.delete=function(){return i8(this.cursor.delete()).then(function(){})};
sj.prototype.getValue=function(){return this.cursor.value};
sj.prototype.update=function(D){return i8(this.cursor.update(D))};var mJ=function(D,v){this.name=D;this.options=v;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},$cs;
mJ.prototype.openDb=function(D,v,h){h=h===void 0?{}:h;return hfo(D,v,h)};
mJ.prototype.delete=function(D){D=D===void 0?{}:D;return _.u8(this.name,D)};
$cs=function(D,v){return new nx("INCOMPATIBLE_DB_VERSION",{dbName:D.name,oldVersion:D.options.version,newVersion:v})};
_.Do=function(D,v){if(!v)throw Kx("openWithToken",wl(D.name));return D.open()};
mJ.prototype.open=function(){var D=this;if(!this.isCompatible)throw $cs(this);if(this.connectionPromise)return this.connectionPromise;var v,h=function(){D.connectionPromise===v&&(D.connectionPromise=void 0)},a={blocking:function(G){G.close()},
closed:h,terminated:h,upgrade:this.options.upgrade},Q=function(){var G,x,f,C,U,L,Z,E,I,S;return _.M(function(B){switch(B.nextAddress){case 1:return x=(G=Error().stack)!=null?G:"",_.gE(B,2),B.yield(D.openDb(D.name,D.options.version,a),4);case 4:for(var A=f=B.yieldResult,d=D.options,b=[],W=_.P(Object.keys(d.objectStores)),K=W.next();!K.done;K=W.next()){K=K.value;var O=d.objectStores[K],R=O.removedAtVersion===void 0?Number.MAX_VALUE:O.removedAtVersion;!(A.JSC$10672_wrapped.version>=O.addedAtVersion)||
A.JSC$10672_wrapped.version>=R||A.JSC$10672_wrapped.objectStoreNames.contains(K)||b.push(K)}C=b;if(C.length===0){B.jumpTo(5);break}U=Object.keys(D.options.objectStores);L=f.objectStoreNames();if(D.timesReopenedToFixMissingObjectStore<_.oZ("ytidb_reopen_db_retries",0))return D.timesReopenedToFixMissingObjectStore++,f.close(),_.mb(new nx("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:U,foundObjectStores:L})),B.return(Q());if(!(D.timesDeletedToFixMissingObjectStore<_.oZ("ytidb_remake_db_retries",
1))){B.jumpTo(6);break}D.timesDeletedToFixMissingObjectStore++;return B.yield(D.delete(),7);case 7:return _.mb(new nx("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:U,foundObjectStores:L})),B.return(Q());case 6:throw new KK4(L,U);case 5:return B.return(f);case 2:Z=_.NS(B);if(Z instanceof DOMException?Z.name!=="VersionError":"DOMError"in self&&Z instanceof DOMError?Z.name!=="VersionError":!(Z instanceof Object&&"message"in Z)||Z.message!=="An attempt was made to open a database using a lower version than the existing version."){B.jumpTo(8);
break}return B.yield(D.openDb(D.name,void 0,Object.assign({},a,{upgrade:void 0})),9);case 9:E=B.yieldResult;I=E.getVersion();if(D.options.version!==void 0&&I>D.options.version+1)throw E.close(),D.isCompatible=!1,$cs(D,I);return B.return(E);case 8:throw h(),Z instanceof Error&&!_.g("ytidb_async_stack_killswitch")&&(Z.stack=Z.stack+"\n"+x.substring(x.indexOf("\n")+1)),iGO(Z,D.name,"",(S=D.options.version)!=null?S:-1);}})};
return this.connectionPromise=v=Q()};var a68=new mJ("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(D,v){v(1)&&Tm(D,"databases",{keyPath:"actualName"})}});var MLu,Puo=new function(){}(new function(){});new _.gT;var Qr9=function(D,v){mJ.call(this,D,v);this.options=v;yH(D)};
_.J(Qr9,mJ);var I6A=function(D,v){var h;return function(){h||(h=new Qr9(D,v));return h}};
Qr9.prototype.openDb=function(D,v,h){h=h===void 0?{}:h;return(this.options.shared?zfc:Fcu)(D,v,Object.assign({},h))};
Qr9.prototype.delete=function(D){D=D===void 0?{}:D;return(this.options.shared?EVu:UPA)(this.name,D)};var GTR={},gVf=PK("ytGcfConfig",{objectStores:(GTR.coldConfigStore={addedAtVersion:1},GTR.hotConfigStore={addedAtVersion:1},GTR),shared:!1,upgrade:function(D,v){v(1)&&(Re(Tm(D,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Re(Tm(D,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var VCp=function(){_.AN.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var D=_.T3("yt.gcf.config.hotUpdateCallbacks");D?(this.localHotConfigJobQueue=[].concat(_.j_(D)),this.sharedHotConfigJobQueue=D):(this.sharedHotConfigJobQueue=[],_.Gm("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.J(VCp,_.AN);VCp.prototype.disposeInternal=function(){for(var D=_.P(this.localHotConfigJobQueue),v=D.next();!v.done;v=D.next()){var h=this.sharedHotConfigJobQueue;v=h.indexOf(v.value);v>=0&&h.splice(v,1)}this.localHotConfigJobQueue.length=0;_.AN.prototype.disposeInternal.call(this)};var XB=function(){var D=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new VCp;this.TEST_ONLY={initializeConfigDb:function(){D.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return D.coldGlobalConfigGroup},
setHotConfigGroup:function(v){P4M(D,v)},
setHotHashData:function(v){D.setHotHashData(v)},
setColdConfigGroup:function(v){xcy(D,v)},
getColdHashData:function(){return D.coldHashData},
getHotHashData:function(){return D.hotHashData},
getHotConfigGroup:function(){return D.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return MCy()},
getExportedHotConfigGroup:function(){return Hw()},
getExportedColdHashData:function(){return _.T3("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.T3("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){fF1(D)},
resetInstance:function(){D.setHotHashData(void 0);C4F(D);delete XB.instance},
setDebounceTimer:function(v){D.debounceTimer=v},
getDebounceTimer:function(){return D.debounceTimer}}},oR4=function(){if(!XB.instance){var D=new XB;
XB.instance=D}return XB.instance},Ucb=function(D){var v;
_.M(function(h){if(h.nextAddress==1)return _.g("start_client_gcf")||_.g("delete_gcf_config_db")?_.g("start_client_gcf")?h.yield(_.Vx(),3):h.jumpTo(2):h.return();h.nextAddress!=2&&((v=h.yieldResult)&&_.cV()&&!_.g("delete_gcf_config_db")?(D.isConfigDbInitialized=!0,fF1(D)):(F3y(D),zus(D)));return _.g("delete_gcf_config_db")?h.yield(NT7(),0):h.jumpTo(0)})},AX=function(){var D;
return(D=Hw())!=null?D:_.eA("RAW_HOT_CONFIG_GROUP")},L3s=function(D){var v,h,a,Q,G,x;
return _.M(function(f){switch(f.nextAddress){case 1:if(D.hotGlobalConfigGroup)return f.return(Hw());if(!D.isConfigDbInitialized)return v=Kx("getHotConfig IDB not initialized"),_.Wv(v),f.return(Promise.reject(v));h=Qx();a=_.eA("TIME_CREATED_MS");if(!h){Q=Kx("getHotConfig token error");_.Wv(Q);f.jumpTo(2);break}return f.yield(l6o(h),3);case 3:if((G=f.yieldResult)&&G.timestamp>a)return P4M(D,G.config),D.setHotHashData(G.hashData),f.return(Hw());case 2:zus(D);if(!(h&&D.hotGlobalConfigGroup&&D.hotHashData)){f.jumpTo(4);
break}return f.yield(SLO(D.hotGlobalConfigGroup,D.hotHashData,h,a),4);case 4:return D.hotGlobalConfigGroup?f.return(Hw()):(x=new _.XH("Config not available in ytConfig"),_.Wv(x),f.return(Promise.reject(x)))}})},ERR=function(D){var v,h,a,Q,G,x;
return _.M(function(f){switch(f.nextAddress){case 1:if(D.coldGlobalConfigGroup)return f.return(MCy());if(!D.isConfigDbInitialized)return v=Kx("getColdConfig IDB not initialized"),_.Wv(v),f.return(Promise.reject(v));h=Qx();a=_.eA("TIME_CREATED_MS");if(!h){Q=Kx("getColdConfig");_.Wv(Q);f.jumpTo(2);break}return f.yield(pR7(h),3);case 3:if((G=f.yieldResult)&&G.timestamp>a)return xcy(D,G.config),Zm9(D,G.configData),C4F(D,G.hashData),f.return(MCy());case 2:F3y(D);if(!(h&&D.coldGlobalConfigGroup&&D.coldHashData&&
D.configData)){f.jumpTo(4);break}return f.yield(JQ4(D.coldGlobalConfigGroup,D.coldHashData,D.configData,h,a),4);case 4:return D.coldGlobalConfigGroup?f.return(MCy()):(x=new _.XH("Config not available in ytConfig"),_.Wv(x),f.return(Promise.reject(x)))}})},fF1=function(D){if(!D.hotGlobalConfigGroup||!D.coldGlobalConfigGroup){if(!Qx()){var v=Kx("scheduleGetConfigs");
_.Wv(v)}D.initJob||(D.initJob=_.HK.addLowPriorityJob(function(){return _.M(function(h){switch(h.nextAddress){case 1:return _.gE(h,2),h.yield(L3s(D),4);case 4:_.rl(h,3);break;case 2:_.NS(h);case 3:return _.gE(h,5),h.yield(ERR(D),7);case 7:_.rl(h,6);break;case 5:_.NS(h);case 6:D.initJob&&(D.initJob=0),_.YI(h)}})},100))}},JnI=function(D,v,h){var a,Q,G;
return _.M(function(x){switch(x.nextAddress){case 1:if(!_.g("start_client_gcf")){x.jumpTo(0);break}h&&P4M(D,h);D.setHotHashData(v);a=Qx();if(!a){x.jumpTo(3);break}if(h){x.jumpTo(4);break}return x.yield(l6o(a),5);case 5:Q=x.yieldResult,h=(G=Q)==null?void 0:G.config;case 4:return x.yield(SLO(h,v,a),3);case 3:if(h)for(var f=h,C=_.P(D.configUpdateService.sharedHotConfigJobQueue),U=C.next();!U.done;U=C.next())U=U.value,U(f);_.YI(x)}})},p4c=function(D,v,h){var a,Q,G,x;
return _.M(function(f){if(f.nextAddress==1){if(!_.g("start_client_gcf"))return f.jumpTo(0);C4F(D,v);return(a=Qx())?h?f.jumpTo(4):f.yield(pR7(a),5):f.jumpTo(0)}f.nextAddress!=4&&(Q=f.yieldResult,h=(G=Q)==null?void 0:G.config);if(!h)return f.jumpTo(0);x=h.configData;return f.yield(JQ4(h,v,x,a),0)})},Kcf=function(){var D=oR4(),v=(0,_.xz)()-D.debounceTimer;
if(!(D.debounceTimer!==0&&v<_.oZ("send_config_hash_timer"))){v=_.T3("yt.gcf.config.coldConfigData");var h=_.T3("yt.gcf.config.hotHashData"),a=_.T3("yt.gcf.config.coldHashData");v&&h&&a&&(D.debounceTimer=(0,_.xz)());return{coldConfigData:v,hotHashData:h,coldHashData:a}}},F3y=function(D){xcy(D,_.eA("RAW_COLD_CONFIG_GROUP"));
C4F(D,_.eA("SERIALIZED_COLD_HASH_DATA"));var v;Zm9(D,(v=D.coldGlobalConfigGroup)==null?void 0:v.configData)},zus=function(D){P4M(D,_.eA("RAW_HOT_CONFIG_GROUP"));
D.setHotHashData(_.eA("SERIALIZED_HOT_HASH_DATA"))},P4M=function(D,v){D.hotGlobalConfigGroup=v;
_.Gm("yt.gcf.config.hotConfigGroup",D.hotGlobalConfigGroup||null)},xcy=function(D,v){D.coldGlobalConfigGroup=v;
_.Gm("yt.gcf.config.coldConfigGroup",D.coldGlobalConfigGroup||null)};
XB.prototype.setHotHashData=function(D){this.hotHashData=D;_.Gm("yt.gcf.config.hotHashData",this.hotHashData||null)};
var C4F=function(D,v){D.coldHashData=v;_.Gm("yt.gcf.config.coldHashData",D.coldHashData||null)},Zm9=function(D,v){D.configData=v;
_.Gm("yt.gcf.config.coldConfigData",D.configData||null)},Hw=function(){return _.T3("yt.gcf.config.hotConfigGroup")},MCy=function(){return _.T3("yt.gcf.config.coldConfigGroup")};var Ie={},IFF=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Ie.assign=function(D){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var h=v.shift();if(h){if(typeof h!=="object")throw new TypeError("Zc`"+h);for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&(D[a]=h[a])}}return D};
Ie.shrinkBuf=function(D,v){if(D.length===v)return D;if(D.subarray)return D.subarray(0,v);D.length=v;return D};
var gRy={arraySet:function(D,v,h,a,Q){if(v.subarray&&D.subarray)D.set(v.subarray(h,h+a),Q);else for(var G=0;G<a;G++)D[Q+G]=v[h+G]},
flattenChunks:function(D){var v,h;var a=h=0;for(v=D.length;a<v;a++)h+=D[a].length;var Q=new Uint8Array(h);a=h=0;for(v=D.length;a<v;a++){var G=D[a];Q.set(G,h);h+=G.length}return Q}},kTy={arraySet:function(D,v,h,a,Q){for(var G=0;G<a;G++)D[Q+G]=v[h+G]},
flattenChunks:function(D){return[].concat.apply([],D)}};
Ie.setTyped=function(){IFF?(Ie.Buf8=Uint8Array,Ie.Buf16=Uint16Array,Ie.Buf32=Int32Array,Ie.assign(Ie,gRy)):(Ie.Buf8=Array,Ie.Buf16=Array,Ie.Buf32=Array,Ie.assign(Ie,kTy))};
Ie.setTyped();var Si9=!0;try{new Uint8Array(1)}catch(D){Si9=!1}
var lW7=function(D){var v,h,a=D.length,Q=0;for(v=0;v<a;v++){var G=D.charCodeAt(v);if((G&64512)===55296&&v+1<a){var x=D.charCodeAt(v+1);(x&64512)===56320&&(G=65536+(G-55296<<10)+(x-56320),v++)}Q+=G<128?1:G<2048?2:G<65536?3:4}var f=new Ie.Buf8(Q);for(v=h=0;h<Q;v++)G=D.charCodeAt(v),(G&64512)===55296&&v+1<a&&(x=D.charCodeAt(v+1),(x&64512)===56320&&(G=65536+(G-55296<<10)+(x-56320),v++)),G<128?f[h++]=G:(G<2048?f[h++]=192|G>>>6:(G<65536?f[h++]=224|G>>>12:(f[h++]=240|G>>>18,f[h++]=128|G>>>12&63),f[h++]=
128|G>>>6&63),f[h++]=128|G&63);return f};var oUO={};oUO=function(D,v,h,a){var Q=D&65535|0;D=D>>>16&65535|0;for(var G;h!==0;){G=h>2E3?2E3:h;h-=G;do Q=Q+v[a++]|0,D=D+Q|0;while(--G);Q%=65521;D%=65521}return Q|D<<16|0};for(var bO={},yD,JB4=[],pT9=0;pT9<256;pT9++){yD=pT9;for(var lF$=0;lF$<8;lF$++)yD=yD&1?3988292384^yD>>>1:yD>>>1;JB4[pT9]=yD}bO=function(D,v,h,a){h=a+h;for(D^=-1;a<h;a++)D=D>>>8^JB4[(D^v[a])&255];return D^-1};var pL={};pL={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 htc=[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],$iq=[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],pr2=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fWi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BK=Array(576);UW(BK);var cK=Array(60);UW(cK);var SJ=Array(512);UW(SJ);var kz=Array(256);UW(kz);var aWc=Array(29);UW(aWc);var Qy2=Array(30);UW(Qy2);var kHc,SIA,JV8,gUc=!1;var md;
md=[new sW(0,0,0,0,function(D,v){var h=65535;for(h>D.pending_buf_size-5&&(h=D.pending_buf_size-5);;){if(D.lookahead<=1){da(D);if(D.lookahead===0&&v===0)return 1;if(D.lookahead===0)break}D.strstart+=D.lookahead;D.lookahead=0;var a=D.block_start+h;if(D.strstart===0||D.strstart>=a)if(D.lookahead=D.strstart-a,D.strstart=a,Xk(D,!1),D.strm.avail_out===0)return 1;if(D.strstart-D.block_start>=D.w_size-262&&(Xk(D,!1),D.strm.avail_out===0))return 1}D.insert=0;if(v===4)return Xk(D,!0),D.strm.avail_out===0?3:
4;D.strstart>D.block_start&&Xk(D,!1);return 1}),
new sW(4,4,8,4,Fgu),new sW(4,5,16,8,Fgu),new sW(4,6,32,32,Fgu),new sW(4,4,16,16,jJ),new sW(8,16,32,32,jJ),new sW(8,16,128,128,jJ),new sW(8,32,128,256,jJ),new sW(32,128,258,1024,jJ),new sW(32,258,258,4096,jJ)];var IW4={};IW4=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 Nxq=Object.prototype.toString;
EUI.prototype.push=function(D,v){var h=this.strm,a=this.options.chunkSize;if(this.ended)return!1;var Q=v===~~v?v:v===!0?4:0;typeof D==="string"?h.input=lW7(D):Nxq.call(D)==="[object ArrayBuffer]"?h.input=new Uint8Array(D):h.input=D;h.next_in=0;h.avail_in=h.input.length;do{h.avail_out===0&&(h.output=new Ie.Buf8(a),h.next_out=0,h.avail_out=a);D=ZZc(h,Q);if(D!==1&&D!==0)return NdR(this,D),this.ended=!0,!1;if(h.avail_out===0||h.avail_in===0&&(Q===4||Q===2))if(this.options.to==="string"){var G=Ie.shrinkBuf(h.output,
h.next_out);v=G;G=G.length;if(G<65537&&(v.subarray&&Si9||!v.subarray))v=String.fromCharCode.apply(null,Ie.shrinkBuf(v,G));else{for(var x="",f=0;f<G;f++)x+=String.fromCharCode(v[f]);v=x}this.chunks.push(v)}else v=Ie.shrinkBuf(h.output,h.next_out),this.chunks.push(v)}while((h.avail_in>0||h.avail_out===0)&&D!==1);if(Q===4)return(h=this.strm)&&h.state?(a=h.state.status,a!==42&&a!==69&&a!==73&&a!==91&&a!==103&&a!==113&&a!==666?D=lO(h,-2):(h.state=null,D=a===113?lO(h,-3):0)):D=-2,NdR(this,D),this.ended=
!0,D===0;Q===2&&(NdR(this,0),h.avail_out=0);return!0};
var NdR=function(D,v){v===0&&(D.result=D.options.to==="string"?D.chunks.join(""):Ie.flattenChunks(D.chunks));D.chunks=[];D.err=v;D.msg=D.strm.msg};var Yi$=typeof TextEncoder!=="undefined"?new TextEncoder:null,apq=Yi$?function(D){return Yi$.encode(D)}:function(D){D=_.X6(D);
for(var v=new Uint8Array(D.length),h=0;h<v.length;h++)v[h]=D[h];return v};var HgA={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},wqq={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var wt=function(D,v){this.version=D;this.args=v};
wt.prototype.serialize=function(){return{version:this.version,args:this.args}};var AVu=function(D,v){this.topic=D;this.dataClass=v};
AVu.prototype.toString=function(){return this.topic};var Bd4=_.T3("ytPubsub2Pubsub2Instance")||new _.JO;_.JO.prototype.subscribe=_.JO.prototype.subscribe;_.JO.prototype.unsubscribeByKey=_.JO.prototype.unsubscribeByKey;_.JO.prototype.publish=_.JO.prototype.publish;_.JO.prototype.clear=_.JO.prototype.clear;_.Gm("ytPubsub2Pubsub2Instance",Bd4);var Xro=_.T3("ytPubsub2Pubsub2SubscribedKeys")||{};_.Gm("ytPubsub2Pubsub2SubscribedKeys",Xro);var bZ8=_.T3("ytPubsub2Pubsub2TopicToKeys")||{};_.Gm("ytPubsub2Pubsub2TopicToKeys",bZ8);
var qI8=_.T3("ytPubsub2Pubsub2IsAsync")||{};_.Gm("ytPubsub2Pubsub2IsAsync",qI8);_.Gm("ytPubsub2Pubsub2SkipSubKey",null);var OZO=void 0,etL=void 0;var uS7=_.oZ("max_body_size_to_compress",5E5),DKO=_.oZ("min_body_size_to_compress",500),wa=!0,Gzf=0,eJ=0,Qqi=_.oZ("compression_performance_threshold_lr",250),VQA=_.oZ("slow_compressions_before_abandon_count",4),Rtf=!1,iZq=new Map,hS4=1,vto=!0;_.fa(nL,MQ8);nL.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 cB1=function(D,v,h){h||(h=0);var a=D.W_;if(typeof v==="string")for(var Q=0;Q<16;Q++)a[Q]=v.charCodeAt(h)<<24|v.charCodeAt(h+1)<<16|v.charCodeAt(h+2)<<8|v.charCodeAt(h+3),h+=4;else for(Q=0;Q<16;Q++)a[Q]=v[h]<<24|v[h+1]<<16|v[h+2]<<8|v[h+3],h+=4;for(v=16;v<80;v++)h=a[v-3]^a[v-8]^a[v-14]^a[v-16],a[v]=(h<<1|h>>>31)&4294967295;v=D.chain_[0];h=D.chain_[1];Q=D.chain_[2];for(var G=D.chain_[3],x=D.chain_[4],f,C,U=0;U<80;U++)U<40?U<20?(f=G^h&(Q^G),C=1518500249):(f=h^Q^G,C=1859775393):U<60?(f=h&Q|G&(h|Q),
C=2400959708):(f=h^Q^G,C=3395469782),f=(v<<5|v>>>27)+f+x+C+a[U]&4294967295,x=G,G=Q,Q=(h<<30|h>>>2)&4294967295,h=v,v=f;D.chain_[0]=D.chain_[0]+v&4294967295;D.chain_[1]=D.chain_[1]+h&4294967295;D.chain_[2]=D.chain_[2]+Q&4294967295;D.chain_[3]=D.chain_[3]+G&4294967295;D.chain_[4]=D.chain_[4]+x&4294967295};
nL.prototype.update=function(D,v){if(D!=null){v===void 0&&(v=D.length);for(var h=v-this.blockSize,a=0,Q=this.buf_,G=this.inbuf_;a<v;){if(G==0)for(;a<=h;)cB1(this,D,a),a+=this.blockSize;if(typeof D==="string")for(;a<v;){if(Q[G]=D.charCodeAt(a),++G,++a,G==this.blockSize){cB1(this,Q);G=0;break}}else for(;a<v;)if(Q[G]=D[a],++G,++a,G==this.blockSize){cB1(this,Q);G=0;break}}this.inbuf_=G;this.total_+=v}};
nL.prototype.digest=function(){var D=[],v=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var h=this.blockSize-1;h>=56;h--)this.buf_[h]=v&255,v/=256;cB1(this,this.buf_);for(h=v=0;h<5;h++)for(var a=24;a>=0;a-=8)D[v]=this.chain_[h]>>a&255,++v;return D};var ot7;var ny=function(D){var v=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(L){v.databaseToken=L},
triggerThrottle:function(){v.throttledSend()},
cancelThrottle:function(){v.cancelThrottledSend()},
immediateSend:function(L){return _.M(function(Z){return Z.yield(v.immediateSend(L),0)})},
requestWithinAgeLimit:function(L,Z){return v.requestWithinAgeLimit(L,Z)},
retryQueuedRequests:function(){v.retryQueuedRequests()}};
var h;this.throttleTimeout=(h=D.throttleTimeout)!=null?h:100;var a;this.retryMaxAttempts=(a=D.retryMaxAttempts)!=null?a:1;var Q;this.requestAgeLimitMs=(Q=D.requestAgeLimitMs)!=null?Q:2592E6;var G;this.queuedRequestAgeLimitMs=(G=D.queuedRequestAgeLimitMs)!=null?G:12E4;var x;this.retryDelayMs=(x=D.retryDelayMs)!=null?x:5E3;var f;this.databaseToken=(f=D.databaseToken)!=null?f:void 0;this.enableCleaning=!!D.enableCleaning;var C;this.cleaningRate=(C=D.cleaningRate)!=null?C:.1;var U;this.potentialEsfErrorLimit=
(U=D.potentialEsfErrorLimit)!=null?U:10;D.handleError&&(this.handleError=D.handleError);D.handleWarning&&(this.handleWarning=D.handleWarning);D.disableYtIdbTransactions&&(this.disableYtIdbTransactions=D.disableYtIdbTransactions);D.bypassDbTokenDependency&&(this.bypassDbTokenDependency=D.bypassDbTokenDependency);this.getBooleanFlag=D.getBooleanFlag;this.jobManager=D.jobManager;this.logsStore=D.logsStore;this.networkManager=D.networkManager;this.sendFn=D.sendFn;this.onlineEvent=D.onlineEvent;this.offlineEvent=
D.offlineEvent;en(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&XTp(this)},XTp=function(D){en(D)&&!D.disableYtIdbTransactions&&(D.initialized=!0,D.enableCleaning&&Math.random()<=D.cleaningRate&&D.logsStore.cleanLogsStore(D.databaseToken),D.retryQueuedRequests(),D.networkManager.isNetworkAvailable()&&D.throttledSend(),D.networkManager.listen(D.onlineEvent,D.throttledSend.bind(D)),D.networkManager.listen(D.offlineEvent,D.cancelThrottledSend.bind(D)))};
_.V=ny.prototype;_.V.writeThenSend=function(D,v){var h=this;v=v===void 0?{}:v;if(en(this)&&this.initialized){var a={url:D,options:v,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(a,this.databaseToken).then(function(Q){a.id=Q;h.networkManager.isNetworkAvailable()&&h.immediateSend(a)}).catch(function(Q){h.immediateSend(a);
ABy(h,Q)})}else this.sendFn(D,v)};
_.V.sendThenWrite=function(D,v,h){var a=this;v=v===void 0?{}:v;if(en(this)&&this.initialized){var Q={url:D,options:v,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Q.skipRetry=h);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Q.skipRetry){if(!Q.skipRetry){var G=v.onError?v.onError:function(){};
v.onError=function(x,f){return _.M(function(C){if(C.nextAddress==1)return C.yield(a.logsStore.set(Q,a.databaseToken).catch(function(U){ABy(a,U)}),2);
G(x,f);_.YI(C)})}}this.sendFn(D,v,Q.skipRetry)}else this.logsStore.set(Q,this.databaseToken).catch(function(x){a.sendFn(D,v,Q.skipRetry);
ABy(a,x)})}else this.sendFn(D,v,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&h)};
_.V.sendAndWrite=function(D,v){var h=this;v=v===void 0?{}:v;if(en(this)&&this.initialized){var a={url:D,options:v,timestamp:this.now(),status:"NEW",sendCount:0},Q=!1,G=v.onSuccess?v.onSuccess:function(){};
a.options.onSuccess=function(x,f){a.id!==void 0?h.logsStore.deleteRequest(a.id,h.databaseToken):Q=!0;h.networkManager.networkStatusHint&&h.getBooleanFlag&&h.getBooleanFlag("vss_network_hint")&&h.networkManager.networkStatusHint(!0);G(x,f)};
this.sendFn(a.url,a.options,void 0,!0);this.logsStore.set(a,this.databaseToken).then(function(x){a.id=x;Q&&h.logsStore.deleteRequest(a.id,h.databaseToken)}).catch(function(x){ABy(h,x)})}else this.sendFn(D,v,void 0,!0)};
_.V.throttledSend=function(){var D=this;if(!en(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D.logsStore.getMostRecentByStatus("NEW",D.databaseToken),2);if(h.nextAddress!=3)return v=h.yieldResult,v?h.yield(D.immediateSend(v),3):(D.cancelThrottledSend(),h.return());D.intervalJob&&(D.intervalJob=0,D.throttledSend());_.YI(h)})},this.throttleTimeout))};
_.V.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.V.immediateSend=function(D){var v=this,h;return _.M(function(a){switch(a.nextAddress){case 1:if(!en(v))throw Error("cd");if(D.id===void 0){a.jumpTo(2);break}return a.yield(v.logsStore.markAsQueued(D.id,v.databaseToken),3);case 3:(h=a.yieldResult)||v.handleWarning(Error("dd"));case 2:if(v.requestWithinAgeLimit(D,v.requestAgeLimitMs)){a.jumpTo(4);break}v.handleWarning(Error("ed"));if(D.id===void 0){a.jumpTo(5);break}return a.yield(v.logsStore.deleteRequest(D.id,v.databaseToken),5);case 5:return a.return();
case 4:D.skipRetry||(D=qis(v,D));if(!D){a.jumpTo(0);break}if(!D.skipRetry||D.id===void 0){a.jumpTo(8);break}return a.yield(v.logsStore.deleteRequest(D.id,v.databaseToken),8);case 8:v.sendFn(D.url,D.options,!!D.skipRetry),_.YI(a)}})};
var qis=function(D,v){if(!en(D))throw Error("fd");var h=v.options.onError?v.options.onError:function(){};
v.options.onError=function(Q,G){var x,f,C,U;return _.M(function(L){switch(L.nextAddress){case 1:x=Zbf(G);(f=EtO(G))&&D.getBooleanFlag&&D.getBooleanFlag("web_enable_error_204")&&D.handleError(Error("gd"),v.url,G);if(!(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&x||D.getBooleanFlag&&!D.getBooleanFlag("nwl_consider_error_code")&&D.potentialEsfErrorCounter<=D.potentialEsfErrorLimit)){L.jumpTo(2);break}if(!D.networkManager.sendNetworkCheckRequest){L.jumpTo(3);break}return L.yield(D.networkManager.sendNetworkCheckRequest(),
3);case 3:if(D.networkManager.isNetworkAvailable()){L.jumpTo(2);break}h(Q,G);if(!D.getBooleanFlag||!D.getBooleanFlag("nwl_consider_error_code")||((C=v)==null?void 0:C.id)===void 0){L.jumpTo(6);break}return L.yield(D.logsStore.resetRequest(v.id,D.databaseToken,!1),6);case 6:return L.return();case 2:if(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&!x&&D.potentialEsfErrorCounter>D.potentialEsfErrorLimit)return L.return();D.potentialEsfErrorCounter++;if(((U=v)==null?void 0:U.id)===void 0){L.jumpTo(8);
break}return v.sendCount<D.retryMaxAttempts?L.yield(D.logsStore.resetRequest(v.id,D.databaseToken,!0,f?!1:void 0),12):L.yield(D.logsStore.deleteRequest(v.id,D.databaseToken),8);case 12:D.jobManager.addLowPriorityJob(function(){D.networkManager.isNetworkAvailable()&&D.throttledSend()},D.retryDelayMs);
case 8:h(Q,G),_.YI(L)}})};
var a=v.options.onSuccess?v.options.onSuccess:function(){};
v.options.onSuccess=function(Q,G){var x;return _.M(function(f){if(f.nextAddress==1)return((x=v)==null?void 0:x.id)===void 0?f.jumpTo(2):f.yield(D.logsStore.deleteRequest(v.id,D.databaseToken),2);D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);a(Q,G);_.YI(f)})};
return v};
ny.prototype.requestWithinAgeLimit=function(D,v){D=D.timestamp;return this.now()-D>=v?!1:!0};
ny.prototype.retryQueuedRequests=function(){var D=this;if(!en(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(v){v&&!D.requestWithinAgeLimit(v,D.queuedRequestAgeLimitMs)?D.jobManager.addLowPriorityJob(function(){return _.M(function(h){if(h.nextAddress==1)return v.id===void 0?h.jumpTo(2):h.yield(D.logsStore.resetRequest(v.id,D.databaseToken),2);D.retryQueuedRequests();_.YI(h)})}):D.networkManager.isNetworkAvailable()&&D.throttledSend()})};
var ABy=function(D,v){D.writeError&&!D.networkManager.isNetworkAvailable()?D.writeError(v):D.handleError(v)},en=function(D){return!!D.databaseToken||D.bypassDbTokenDependency};var Ipo;var Yni={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,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var bm9={},cD8=PK("ServiceWorkerLogsDatabase",{objectStores:(bm9.SWHealthLog={addedAtVersion:1},bm9),shared:!0,upgrade:function(D,v){v(1)&&Re(Tm(D,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var mKi={},sq2=0;var eSO;var Oj=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},uO=function(){if(!Oj.instance){var D=_.T3("yt.networkRequestMonitor.instance")||new Oj;
_.Gm("yt.networkRequestMonitor.instance",D);Oj.instance=D}return Oj.instance};
Oj.prototype.requestComplete=function(D,v){v&&(this.anyRequestHasSucceeded=!0);D=this.removeParams(D);this.requestMap.get(D)||this.requestMap.set(D,v)};
Oj.prototype.isEndpointCFR=function(D){D=this.removeParams(D);return(D=this.requestMap.get(D))?!1:D===!1&&this.anyRequestHasSucceeded?!0:null};
Oj.prototype.removeParams=function(D){return D.split("?")[0]};
Oj.prototype.removeParams=Oj.prototype.removeParams;Oj.prototype.isEndpointCFR=Oj.prototype.isEndpointCFR;Oj.prototype.requestComplete=Oj.prototype.requestComplete;Oj.getInstance=uO;var Ky=function(D){_.jZ.call(this);var v=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=D!=null?D:{addLowPriorityJob:function(Q,G){return setTimeout(Q,G)},
cancelJob:function(Q){clearTimeout(Q)}};
var h,a;this.isOnline=(a=(h=window.navigator)==null?void 0:h.onLine)!=null?a:!0;this.onNavigatorChange=function(){return _.M(function(Q){return Q.yield(dc4(v),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||jrp(this)};
_.J(Ky,_.jZ);Ky.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Ky.instance};
Ky.prototype.isNetworkAvailable=function(){return this.isOnline};
var jrp=function(D){D.pollingJob=D.jobManager.addLowPriorityJob(function(){var v;return _.M(function(h){if(h.nextAddress==1)return D.isOnline?((v=window.navigator)==null?0:v.onLine)?h.jumpTo(3):h.yield(dc4(D),3):h.yield(dc4(D),3);jrp(D);_.YI(h)})},3E4)},dc4=function(D,v){return D.networkRequestPromise?D.networkRequestPromise:D.networkRequestPromise=new Promise(function(h){var a,Q,G,x;
return _.M(function(f){switch(f.nextAddress){case 1:return a=window.AbortController?new window.AbortController:void 0,G=(Q=a)==null?void 0:Q.signal,x=!1,_.gE(f,2,3),a&&(D.abortTimeoutKey=D.jobManager.addLowPriorityJob(function(){a.abort()},v||2E4)),f.yield(fetch("/generate_204",{method:"HEAD",
signal:G}),5);case 5:x=!0;case 3:_.S_(f);D.networkRequestPromise=void 0;D.abortTimeoutKey&&(D.jobManager.cancelJob(D.abortTimeoutKey),D.abortTimeoutKey=0);x!==D.isOnline&&(D.isOnline=x,D.isOnline?D.dispatchEvent("networkstatus-online"):D.dispatchEvent("networkstatus-offline"));h(x);_.pf(f,0);break;case 2:_.NS(f),x=!1,f.jumpTo(3)}})})};var T0=function(){_.jZ.call(this);var D=this;this.shouldFlushErrors=!1;Ky.instance||(Ky.instance=new Ky(_.HK));this.sharedNetworkStatusManager=Ky.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(D.shouldFlushErrors&&_.g("offline_error_handling")){var v=ntL().get("errors",!0);if(v){for(var h in v)if(v[h]){var a=new _.XH(h,"sent via offline_errors");a.name=v[h].name;a.stack=v[h].stack;a.level=v[h].level;_.OM(a)}ntL().set("errors",{},2592E3,!0)}}})};
_.J(T0,_.jZ);var srp=function(){if(!T0.instance){var D=_.T3("yt.networkStatusManager.instance")||new T0;_.Gm("yt.networkStatusManager.instance",D);T0.instance=D}return T0.instance};
_.V=T0.prototype;_.V.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.V.networkStatusHint=function(D){this.sharedNetworkStatusManager.isOnline=D};
_.V.getWindowStatus=function(){var D=window.navigator.onLine;return D===void 0?!0:D};
_.V.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.V.listen=function(D,v){return this.sharedNetworkStatusManager.listen(D,v)};
_.V.sendNetworkCheckRequest=function(D){D=dc4(this.sharedNetworkStatusManager,D);D.then(function(v){_.g("use_cfr_monitor")&&uO().requestComplete("generate_204",v)});
return D};
T0.prototype.sendNetworkCheckRequest=T0.prototype.sendNetworkCheckRequest;T0.prototype.listen=T0.prototype.listen;T0.prototype.enableErrorFlushing=T0.prototype.enableErrorFlushing;T0.prototype.getWindowStatus=T0.prototype.getWindowStatus;T0.prototype.networkStatusHint=T0.prototype.networkStatusHint;T0.prototype.isNetworkAvailable=T0.prototype.isNetworkAvailable;T0.getInstance=srp;_.ra=function(D){D=D===void 0?{}:D;_.jZ.call(this);var v=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=srp();var h=_.T3("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);h&&(D.rateLimit?(this.rateLimit=D.rateLimit,h("networkstatus-online",function(){mcJ(v,"publicytnetworkstatus-online")}),h("networkstatus-offline",function(){mcJ(v,"publicytnetworkstatus-offline")})):(h("networkstatus-online",function(){v.dispatchEvent("publicytnetworkstatus-online")}),h("networkstatus-offline",
function(){v.dispatchEvent("publicytnetworkstatus-offline")})))};
_.J(_.ra,_.jZ);_.ra.prototype.isNetworkAvailable=function(){var D=_.T3("yt.networkStatusManager.instance.isNetworkAvailable");return D?D.bind(this.nsmInstance)():!0};
_.ra.prototype.networkStatusHint=function(D){var v=_.T3("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);v&&v(D)};
_.ra.prototype.sendNetworkCheckRequest=function(D){var v=this,h;return _.M(function(a){h=_.T3("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(v.nsmInstance);return _.g("skip_network_check_if_cfr")&&uO().isEndpointCFR("generate_204")?a.return(new Promise(function(Q){var G;v.networkStatusHint(((G=window.navigator)==null?void 0:G.onLine)||!0);Q(v.isNetworkAvailable())})):h?a.return(h(D)):a.return(!0)})};
var mcJ=function(D,v){D.rateLimit?D.lastJobTime?(_.HK.cancelJob(D.schedulerJob),D.schedulerJob=_.HK.addLowPriorityJob(function(){D.lastPublicSignalSent!==v&&(D.dispatchEvent(v),D.lastPublicSignalSent=v,D.lastJobTime=(0,_.xz)())},D.rateLimit-((0,_.xz)()-D.lastJobTime))):(D.dispatchEvent(v),D.lastPublicSignalSent=v,D.lastJobTime=(0,_.xz)()):D.dispatchEvent(v)};var ib2,RW=function(){ny.call(this,{logsStore:{cleanLogsStore:Y_c,deleteRequest:N4f,getMostRecentByStatus:JD2,markAsQueued:p88,resetRequest:lpL,set:S_A},networkManager:_.WN2(),handleError:function(D,v,h){var a,Q=h==null?void 0:(a=h.error)==null?void 0:a.code;if(Q===400||Q===415){var G;D=new _.XH(D.message,v,h==null?void 0:(G=h.error)==null?void 0:G.code);_.Wv(D,void 0,void 0,void 0,!0)}else _.OM(D)},
handleWarning:_.Wv,sendFn:T4L,now:_.xz,writeError:Ob4,jobManager:_.c7(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.oZ("potential_esf_error_limit",10),getBooleanFlag:_.g,disableYtIdbTransactions:!(_.cV()&&_.tQc())});this.initializationPromise=new _.gT;_.g("networkless_immediately_drop_all_requests")&&B42();EVu("LogsDatabaseV2")};
_.J(RW,ny);_.yB$=function(){var D=_.T3("yt.networklessRequestController.instance");D||(D=new RW,_.Gm("yt.networklessRequestController.instance",D),_.g("networkless_logging")&&_.Vx().then(function(v){D.databaseToken=v;XTp(D);D.initializationPromise.resolve();D.enableCleaning&&Math.random()<=D.cleaningRate&&D.databaseToken&&ADo(D.databaseToken);_.g("networkless_immediately_drop_sw_health_store")&&HmR(D)}));
return D};
RW.prototype.writeThenSend=function(D,v){v||(v={});v=RSo(D,v);_.cV()||(this.initialized=!1);ny.prototype.writeThenSend.call(this,D,v)};
RW.prototype.sendThenWrite=function(D,v,h){v||(v={});v=RSo(D,v);_.cV()||(this.initialized=!1);ny.prototype.sendThenWrite.call(this,D,v,h)};
RW.prototype.sendAndWrite=function(D,v){v||(v={});v=RSo(D,v);_.cV()||(this.initialized=!1);ny.prototype.sendAndWrite.call(this,D,v)};
RW.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var HmR=function(D){var v;_.M(function(h){if(!D.databaseToken)throw v=Kx("clearSWHealthLogsDb"),v;return h.return(q_L(D.databaseToken).catch(function(a){D.handleError(a)}))})};_.upL=!1;_.rDA=_.$L.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.upL};_.Gm("ytNetworklessLoggingInitializationOptions",_.rDA);var df=function(D){var v=this;this.config_=null;D?this.config_=D:YLO()&&(this.config_=_.fL());_.c1(_.HK,function(){LNo(v)},5E3)};
df.prototype.isReady=function(){!this.config_&&YLO()&&(this.config_=_.fL());return!!this.config_};
var UKq=function(D,v,h,a){!_.eA("VISITOR_DATA")&&v!=="visitor_id"&&Math.random()<.01&&_.Wv(new _.XH("Missing VISITOR_DATA when sending innertube request.",v,h,a));if(!D.isReady()){var Q=new _.XH("innertube xhrclient not ready",v,h,a);_.OM(Q);throw Q;}var G={headers:a.headers||{},method:"POST",postParams:h,postBody:a.postBody,postBodyFormat:a.postBodyFormat||"JSON",onTimeout:function(){a.onTimeout()},
onFetchTimeout:a.onTimeout,onSuccess:function(Z,E){if(a.onSuccess)a.onSuccess(E)},
onFetchSuccess:function(Z){if(a.onSuccess)a.onSuccess(Z)},
onProgress:function(Z){if(a.onProgress)a.onProgress(Z)},
onError:function(Z,E){if(a.onError)a.onError(E)},
onFetchError:function(Z){if(a.onError)a.onError(Z)},
timeout:a.timeout,withCredentials:!0,compress:a.compress};G.headers["Content-Type"]||(G.headers["Content-Type"]="application/json");var x="";(Q=D.config_.innertubeHostOverride)&&(x=Q);var f=D.config_.innertubeUseThirdPartyAuth||!1,C=_.Oqq(f,x,a);Object.assign(G.headers,C);G.headers.Authorization&&!x&&f&&(G.headers["x-origin"]=window.location.origin);var U=_.vV(x+("/youtubei/"+D.config_.innertubeApiVersion+"/"+v),{alt:"json"}),L=function(Z){Z=Z===void 0?!1:Z;var E;if(a.retry&&x!="www.youtube-nocookie.com"&&
(Z||_.g("skip_ls_gel_retry")||G.headers["Content-Type"]!=="application/json"||(E=FNq(v,h,C,f)),E)){var I=G.onSuccess,S=G.onFetchSuccess;G.onSuccess=function(d,b){zSL(E);I(d,b)};
h.onFetchSuccess=function(d,b){zSL(E);S(d,b)}}try{if(Z&&a.retry&&!a.networklessOptions.bypassNetworkless)G.method="POST",a.networklessOptions.writeThenSend?_.yB$().writeThenSend(U,G):_.yB$().sendAndWrite(U,G);
else if(a.compress){var B=!a.networklessOptions.writeThenSend;if(G.postBody){var A=G.postBody;typeof A!=="string"&&(A=JSON.stringify(G.postBody));$KL(U,A,G,_.kd,B)}else $KL(U,JSON.stringify(G.postParams),G,fUu,B)}else _.g("web_all_payloads_via_jspb")?_.kd(U,G):fUu(U,G)}catch(d){if(d.name==="InvalidAccessError")E&&(zSL(E),E=0),_.Wv(Error("id"));else throw d;}E&&_.c1(_.HK,function(){LNo(D)},5E3)};
_.DLu()?f6f().then(function(Z){L(Z)}):L(!1)};var FB2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(FB2,_.xo);var wTs=0,hUr=_.La?"webkit":_.U1?"moz":_.zw?"ms":rZf?"o":"";_.Gm("ytDomDomGetNextId",_.T3("ytDomDomGetNextId")||function(){return++wTs});var eup={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},QR=function(D){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(D=
D||window.event){this.event=D;for(var v in D)v in eup||(this[v]=D[v]);this.scale=D.scale;this.rotation=D.rotation;var h=D.target||D.srcElement;h&&h.nodeType==3&&(h=h.parentNode);this.target=h;var a=D.relatedTarget;if(a)try{a=a.nodeName?a:null}catch(Q){a=null}else this.type=="mouseover"?a=D.fromElement:this.type=="mouseout"&&(a=D.toElement);this.relatedTarget=a;this.clientX=D.clientX!=void 0?D.clientX:D.pageX;this.clientY=D.clientY!=void 0?D.clientY:D.pageY;this.keyCode=D.keyCode?D.keyCode:D.which;
this.charCode=D.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=D.altKey;this.ctrlKey=D.ctrlKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pageX_=D.pageX;this.pageY_=D.pageY}}catch(Q){}},nR4=function(D){if(document.body&&document.documentElement){var v=document.body.scrollTop+document.documentElement.scrollTop;
D.pageX_=D.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);D.pageY_=D.clientY+v}};
QR.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
QR.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
QR.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $_=_.$L.ytEventsEventsListeners||{};_.Gm("ytEventsEventsListeners",$_);var PLc=_.$L.ytEventsEventsCounter||{count:0};_.Gm("ytEventsEventsCounter",PLc);var xL7=_.qA(function(){var D=!1;try{var v=Object.defineProperty({},"capture",{get:function(){D=!0}});
window.addEventListener("test",null,v)}catch(h){}return D});_.fa(VR,_.AN);VR.prototype.onMouseMove_=function(D){D.pageX_===void 0&&nR4(D);var v=D.pageX_;D.pageY_===void 0&&nR4(D);this.position_=new _.HW(v,D.pageY_)};
VR.prototype.checkPosition_=function(){if(this.position_){var D=(0,_.xz)();if(this.previousTime_!=0){var v=this.previousPosition_,h=this.position_,a=v.x-h.x;v=v.y-h.y;a=Math.sqrt(a*a+v*v)/(D-this.previousTime_);this.cycles_[this.index_]=Math.abs((a-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(h=v=0;h<4;h++)v+=this.cycles_[h]||0;v>=3&&this.callback_();this.previousVelocity_=a}this.previousTime_=D;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
VR.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.M3q(this.mouseListenerKey_)};var zUf={};var SnO=new _.z0("rawColdConfigGroup");var kf8=new _.z0("rawHotConfigGroup");var Omp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Omp,_.xo);var oFA=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(oFA,_.xo);var B1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D,500)};
_.J(B1,_.xo);B1.prototype.getPayloadCase=function(){return _.BD(this,K3t)};
B1.prototype.getContext=function(){return _.CL(this,oFA,33)};
var K3t=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var Uqc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Uqc,_.xo);var Kru=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Kru,_.xo);Kru.prototype.setVideoId=function(D){return gf(this,1,T1A,Jr(D))};
Kru.prototype.getPlaylistId=function(){return _.p0(this,lD(this,T1A,2))};
var T1A=[1,2];var Mb2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Mb2,_.xo);Mb2.prototype.getContext=function(){return _.CL(this,k_,1)};
Mb2.prototype.getTier=function(){return _.s1(this,7)};var Td$,fp,Cp;Td$=_.$L.ytPubsubPubsubInstance||new _.JO;fp=_.$L.ytPubsubPubsubSubscribedKeys||{};Cp=_.$L.ytPubsubPubsubTopicToKeys||{};_.ULL=_.$L.ytPubsubPubsubIsSynchronous||{};_.JO.prototype.subscribe=_.JO.prototype.subscribe;_.JO.prototype.unsubscribeByKey=_.JO.prototype.unsubscribeByKey;_.JO.prototype.publish=_.JO.prototype.publish;_.JO.prototype.clear=_.JO.prototype.clear;_.Gm("ytPubsubPubsubInstance",Td$);_.Gm("ytPubsubPubsubTopicToKeys",Cp);_.Gm("ytPubsubPubsubIsSynchronous",_.ULL);
_.Gm("ytPubsubPubsubSubscribedKeys",fp);var zC=window;var iY=_.g("web_enable_lifecycle_monitoring")&&g5f()!==0,Ru4=_.g("web_enable_lifecycle_monitoring");var imJ=function(D){var v=this;var h=h===void 0?0:h;var a=a===void 0?_.c7():a;this.JSC$10894_defaultPriority=h;this.scheduler=a;this.completedResolver=new _.gT;this.scheduledPayloads=D;for(D={i$jscomp$492:0};D.i$jscomp$492<this.scheduledPayloads.length;D={payload$jscomp$20:void 0,i$jscomp$492:D.i$jscomp$492},D.i$jscomp$492++)D.payload$jscomp$20=this.scheduledPayloads[D.i$jscomp$492],h=function(Q){return function(){Q.payload$jscomp$20.job();v.scheduledPayloads[Q.i$jscomp$492].processed=!0;v.scheduledPayloads.every(function(G){return G.processed===
!0})&&v.completedResolver.resolve()}}(D),a=this.getPriority(D.payload$jscomp$20),a=this.scheduler.addJob(h,a),this.scheduledPayloads[D.i$jscomp$492]=Object.assign({},D.payload$jscomp$20,{job:h,
jobId:a})};
imJ.prototype.flushJobs=function(){var D=this,v=Array.from(this.scheduledPayloads.keys()).sort(function(a,Q){return D.getPriority(D.scheduledPayloads[Q])-D.getPriority(D.scheduledPayloads[a])});
v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=this.scheduledPayloads[h.value],h.jobId===void 0||h.processed||(this.scheduler.cancelJob(h.jobId),this.scheduler.addJob(h.job,10))};
imJ.prototype.cancel=function(){for(var D=_.P(this.scheduledPayloads),v=D.next();!v.done;v=D.next())v=v.value,v.jobId===void 0||v.processed||this.scheduler.cancelJob(v.jobId),v.processed=!0;this.completedResolver.resolve()};
imJ.prototype.getPriority=function(D){var v;return(v=D.priority)!=null?v:this.JSC$10894_defaultPriority};var Ww=function(D){this.state=D;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};iY&&khI(this.state)};
Ww.prototype.install=function(D){this.plugins.push(D);return this};
Ww.prototype.uninstall=function(){var D=this;_.Kz.apply(0,arguments).forEach(function(v){v=D.plugins.indexOf(v);v>-1&&D.plugins.splice(v,1)})};
Ww.prototype.transition=function(D,v){var h=this;iY&&SA4(this.state);var a=this.transitions.find(function(G){return Array.isArray(G.from)?G.from.find(function(x){return x===h.state&&G.to===D}):G.from===h.state&&G.to===D});
if(a){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);W3m(this,D,v);this.state=D;iY&&khI(this.state);a=a.action.bind(this);var Q=this.plugins.filter(function(G){return G[D]}).map(function(G){return G[D]});
a(tC9(this,Q),v)}else throw Error("jd`"+this.state+"`"+D);};
var tC9=function(D,v){var h=v.filter(function(Q){return rBJ(D,Q)===10}),a=v.filter(function(Q){return rBJ(D,Q)!==10});
return D.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Q=_.Kz.apply(0,arguments);return _.M(function(G){if(G.nextAddress==1)return G.yield(D.runImmediateJobsAsync.apply(D,[h].concat(_.j_(Q))),2);D.setJobSetWithScheduledJobs.apply(D,[a].concat(_.j_(Q)));_.YI(G)})}:function(){var Q=_.Kz.apply(0,arguments);
D.runImmediateJobsSync.apply(D,[h].concat(_.j_(Q)));D.setJobSetWithScheduledJobs.apply(D,[a].concat(_.j_(Q)))}};
Ww.prototype.runImmediateJobsSync=function(D){var v=_.Kz.apply(1,arguments);_.c7();for(var h=_.P(D),a=h.next(),Q={};!a.done;Q={lifecycle$jscomp$2:void 0},a=h.next())Q.lifecycle$jscomp$2=a.value,EA(function(G){return function(){unt(G.lifecycle$jscomp$2.name);pXc(function(){return G.lifecycle$jscomp$2.callback.apply(G.lifecycle$jscomp$2,_.j_(v))});
te(G.lifecycle$jscomp$2.name)}}(Q))};
Ww.prototype.runImmediateJobsAsync=function(D){var v=_.Kz.apply(1,arguments),h,a,Q,G;return _.M(function(x){x.nextAddress==1&&(_.c7(),h=_.P(D),a=h.next(),Q={});if(x.nextAddress!=3){if(a.done)return x.jumpTo(0);Q.lifecycle$jscomp$3=a.value;Q.asyncJobCompletion=void 0;G=function(f){return function(){unt(f.lifecycle$jscomp$3.name);var C=pXc(function(){return f.lifecycle$jscomp$3.callback.apply(f.lifecycle$jscomp$3,_.j_(v))});
BB7(C)?f.asyncJobCompletion=_.g("web_lifecycle_error_handling_killswitch")?C.then(function(){te(f.lifecycle$jscomp$3.name)}):C.then(function(){te(f.lifecycle$jscomp$3.name)},function(U){Jdu(U);
te(f.lifecycle$jscomp$3.name)}):te(f.lifecycle$jscomp$3.name)}}(Q);
EA(G);return Q.asyncJobCompletion?x.yield(Q.asyncJobCompletion,3):x.jumpTo(3)}Q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};a=h.next();return x.jumpTo(2)})};
Ww.prototype.setJobSetWithScheduledJobs=function(D){var v=_.Kz.apply(1,arguments),h=this,a=D.map(function(Q){return{job:function(){unt(Q.name);pXc(function(){return Q.callback.apply(Q,_.j_(v))});
te(Q.name)},
priority:rBJ(h,Q)}});
a.length&&(this.jobSet=new imJ(a))};
var rBJ=function(D,v){var h,a;return(a=(h=D.overridePriority)!=null?h:v.priority)!=null?a:0},unt=function(D){iY&&D&&khI(D)},te=function(D){iY&&D&&SA4(D)},W3m=function(D,v,h){Ru4&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+D.constructor.name+"] '"+D.state+"' to '"+v+"'"),console.log("with message: ",h),console.groupEnd())};
_.GT.Object.defineProperties(Ww.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var DFs=function(D){Ww.call(this,D===void 0?"none":D);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},vE9;
_.J(DFs,Ww);DFs.prototype.runApplicationNavigationBegin=function(D,v){var h=this;this.navigationTimer=_.c1(_.HK,function(){h.currentState==="application_navigating"&&h.transition("none")},5E3);
D(v==null?void 0:v.event)};
DFs.prototype.runApplicationNavigationEnd=function(D,v){this.navigationTimer&&(_.HK.cancelJob(this.navigationTimer),this.navigationTimer=null);D(v==null?void 0:v.event)};
_.gef=function(){vE9||(vE9=new DFs);return vE9};var IYc=[];_.Gm("yt.logging.transport.getScrapedGelPayloads",function(){return IYc});var U5=function(){var D=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return D.totalEntries}}};
U5.prototype.storePayload=function(D,v){D=l2O(D);this.store[D]?this.store[D].push(v):(this.memoizedKeySequences={},this.store[D]=[v]);this.totalEntries++;_.g("more_accurate_gel_parser")&&(v=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(v));return D};
U5.prototype.smartExtractMatchingEntries=function(D){if(!D.keys.length)return[];for(var v=hyb(this,D.keys.splice(0,1)[0]),h=[],a=0;a<v.length;a++)this.store[v[a]]&&D.sizeLimit&&(this.store[v[a]].length<=D.sizeLimit?(h.push.apply(h,_.j_(this.store[v[a]])),delete this.store[v[a]]):h.push.apply(h,_.j_(this.store[v[a]].splice(0,D.sizeLimit))));this.totalEntries-=h.length;(D==null?0:D.sizeLimit)&&h.length<(D==null?void 0:D.sizeLimit)&&(D.sizeLimit-=h.length,h.push.apply(h,_.j_(this.smartExtractMatchingEntries(D))));
return h};
U5.prototype.extractMatchingEntries=function(D){D=hyb(this,D);for(var v=[],h=0;h<D.length;h++)this.store[D[h]]&&(v.push.apply(v,_.j_(this.store[D[h]])),delete this.store[D[h]]);this.totalEntries-=v.length;return v};
U5.prototype.getSequenceCount=function(D){D=hyb(this,D);for(var v=0,h=0;h<D.length;h++){var a=void 0;v+=((a=this.store[D[h]])==null?void 0:a.length)||0}return v};
var hyb=function(D,v){var h=l2O(v);if(D.memoizedKeySequences[h])return D.memoizedKeySequences[h];var a=Object.keys(D.store)||[];if(a.length<=1&&l2O(v)===a[0])return a;for(var Q=[],G=0;G<a.length;G++){var x=a[G].split("/");if(aDt(v.auth,x[0])){var f=v.isJspb;aDt(f===void 0?"undefined":f?"true":"false",x[1])&&aDt(v.cttAuthInfo,x[2])&&(f=v.tier,f=f===void 0?"undefined":JSON.stringify(f),aDt(f,x[3])&&Q.push(a[G]))}}return D.memoizedKeySequences[h]=Q},aDt=function(D,v){return D===void 0||D==="undefined"?
!0:D===v};
U5.prototype.getSequenceCount=U5.prototype.getSequenceCount;U5.prototype.extractMatchingEntries=U5.prototype.extractMatchingEntries;U5.prototype.smartExtractMatchingEntries=U5.prototype.smartExtractMatchingEntries;U5.prototype.storePayload=U5.prototype.storePayload;var hVo,Dqo,aYq,E5,$Fp,NpO,lYf,uZu,rdc,ydu,ver,Zjf,i_u;hVo=_.oZ("initial_gel_batch_timeout",2E3);Dqo=_.oZ("gel_queue_timeout_max_ms",6E4);aYq=_.oZ("gel_min_batch_size",5);E5=void 0;$Fp=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
NpO=new $Fp;lYf=new $Fp;uZu=new $Fp;rdc=new $Fp;ver=!0;Zjf=1;_.Lsf=new Map;i_u=_.$L.ytLoggingTransportTokensToCttTargetIds_||{};_.Gm("ytLoggingTransportTokensToCttTargetIds_",i_u);var RUc=_.$L.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Gm("ytLoggingTransportTokensToJspbCttTargetIds_",RUc);var ZM={};var qY=_.$L.ytLoggingGelSequenceIdObj_||{};_.Gm("ytLoggingGelSequenceIdObj_",qY);var cnL=[];var eV2=new Set,dq7=0,Tpu=0,Ksu=0,sg8=[],jgf=[],RVI=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var VoI=function(){};
VoI.prototype.getUrl=function(D,v){v=v===void 0?!1:v;return D.hasOwnProperty("shareEndpoint")?null:_.rn8(D,null,v)};
var PBI=function(D,v,h){D={endpoint:v,actions:[]};h=(h.path?h.path[0]:h.target).icon||"";v=h.indexOf(":");v>0&&(h=h.substr(v+1));h&&D.actions.push(h);return D};var $OA=/Command$/,aji=/Endpoint$/,DOr=new Map;var QN4,GUJ;QN4=1;_.iD=function(){this.actionRoutingMap=new Map};
_.iD.prototype.triggerAction=function(D){var v=new KG7(D,!1,_.Kz.apply(1,arguments));this.handleAction(v);return v.returnValue};
_.iD.prototype.triggerOptionalAction=function(D){var v=new KG7(D,!0,_.Kz.apply(1,arguments));this.handleAction(v);return v.returnValue};
_.rt=function(D,v,h){v.forEach(function(a){var Q=h6q(a);Q&&D.triggerOptionalAction(Q,a,h,void 0)})};
_.iD.prototype.handleAction=function(D){var v=this.actionRoutingMap.get(D.actionName);v&&GUJ(D,v);D.optionalAction||D.returnValue.length!==0||(D=new _.XH("Unhandled action",D.actionName),_.Wv(D))};
GUJ=function(D,v){v.forEach(function(h){var a=null;h?a=h.apply(null,D.args):(h=Error("kd"),h.params=D.actionName,_.OM(h));D.returnValue.push(a)})};
_.rf=function(D,v,h){h||(h=QN4++);for(var a=_.P(Object.keys(v)),Q=a.next();!Q.done;Q=a.next()){Q=Q.value;var G=D.actionRoutingMap.get(Q);G||(G=new Map,D.actionRoutingMap.set(Q,G));D.registerActionHandler(h,Q,v[Q],G)}return h};
_.iD.prototype.registerActionHandler=function(D,v,h,a){a.set(D,_.KJ(h))};
_.uD=function(D,v,h){v=_.P(Object.keys(v));for(var a=v.next();!a.done;a=v.next())(a=D.actionRoutingMap.get(a.value))&&a.delete(h)};
_.x7(_.iD);var Moi=function(D,v){var h=_.iD.getInstance();_.jA(function(){var a={},Q=_.rf(h,(a[D]=v,a));_.dq(function(){var G={};_.uD(h,(G[D]="",G),Q)})})};var EBo=Symbol("md");F3u=Ru7;var ljf=new Set(["For","If","Match","Watch"]),Vas={},P1s=(Vas[nV.default]=function(){return VCL},Vas.style=function(){return VCL},Vas),xFs;
for(xFs in P1s)Mx.attributes[xFs]=P1s[xFs](Mx.attributes[xFs]);var xX=new _.Uj("VISIBILITY_OBSERVER");var ji2={retrieve:function(D){return this.id.\u0275prov.token===D.\u0275prov.token?this.contextValue:this?_.V6(this,this.id):A2c}};var f7q=function(D,v,h){if(D!==QX)return!1;D=Ijc(document.createElement("div"),function(){var a=Md(!1);try{h[0]()}finally{Md(a)}});
D=Array.from(D.childNodes);D.length===1&&(D=D[0]);return D};var MaF=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(D){}var fDF=typeof WeakRef==="function";var C1m=function(D){this.value=D};
C1m.prototype.deref=function(){return this.value};
var oEb=fDF?WeakRef:C1m,Fnm=function(D){this.newKeyHandler=D;this.map=new WeakMap};
Fnm.prototype.add=function(D,v){this.map.has(D)||(this.newKeyHandler(D),this.map.set(D,[]));this.map.get(D).push(new oEb(v))};
Fnm.prototype.get=function(D){var v=this;return function a(){var Q,G,x,f,C,U,L,Z,E,I,S;return _.CK(a,function(B){switch(B.nextAddress){case 1:_.Jw(B,2);Q=v.map.get(D);if(!Q)return B.return();G=0;x=_.P(Q);f=x.next();case 4:if(f.done){B.jumpTo(6);break}C=f.value;U=C.deref();if(!U){B.jumpTo(5);break}G++;L=_.oQ;return B.yield(U,8);case 8:L(B.yieldResult);case 5:f=x.next();B.jumpTo(4);break;case 6:if(2*G<Q.length){Z=0;E=_.P(Q);for(I=E.next();!I.done;I=E.next())S=I.value,S.deref()&&(Q[Z++]=S);Q.length=
Z}case 2:_.S_(B),_.pf(B,0)}})}()};var zyJ=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},n28=new Fnm(function(D){D.addEventListener("abort",K22,{once:!0})}),e6r=new WeakMap,UF9=function(D){D=D===void 0?uY:D;
this.signal=new D};
UF9.prototype.abort=function(D){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=D,D=new Event("abort"),this.signal.dispatchEvent(D))};
var uY=function(){this.target=zyJ();this.aborted=!1;this.onabort=null};
uY.prototype.throwIfAborted=function(){wOA.call(this)};
uY.prototype.addEventListener=function(D,v,h){this.target.addEventListener(D,v,h)};
uY.prototype.removeEventListener=function(D,v,h){this.target.removeEventListener(D,v,h)};
uY.prototype.dispatchEvent=function(D){if(this.onabort&&D.type==="abort")this.onabort(D);return this.target.dispatchEvent(D)};
uY.abort=ymr;uY.timeout=Tvq;uY.any=OS8;var HSo=MaF?AbortController:UF9,D$=MaF?AbortSignal:uY;typeof D$.abort!=="function"&&(D$.abort=ymr);typeof D$.prototype.throwIfAborted!=="function"&&(D$.prototype.throwIfAborted=wOA);typeof D$.any!=="function"&&(D$.any=OS8);typeof D$.timeout!=="function"&&(D$.timeout=Tvq);var Ln1=function(D){D=D.clone();sZs(D);sG(D,"dg",null);sG(D,"d","0");qz9(D,null);bxR(D,null);return D},Z1$=!0,EEm=function(D,v,h){var a=h===void 0?{}:h;
h=a.cssRowKey===void 0?void 0:a.cssRowKey;var Q=a.combinedSignature===void 0?void 0:a.combinedSignature;var G=a.extraEdges===void 0?void 0:a.extraEdges;a=a.callback===void 0?void 0:a.callback;sG(D,"m",v.join(","));G&&jZ$(D,G);h&&(sG(D,"ck",h),Q?sG(D,"rs",Q):Z1$&&(Z1$=!1));if(a){if(a!=null&&!yOm.test(a))throw Error("Xa`"+a);sG(D,"cb",a)}D=D.toString();_.Gu(D,"/")&&(D=zB4(document.location.href)+D);return _.XY(D)};var gEF=function(D){return ID9(D).then(function(v){return JSON.parse(v.responseText)})},ID9=function(D){var v={},h=v.xmlHttpFactory?v.xmlHttpFactory.createInstance():vq4.createInstance();
return(new _.IB(function(a,Q){var G;try{h.open("GET",D,!0)}catch(C){Q(new vN("Error opening XHR: "+C.message,D,h))}h.onreadystatechange=function(){if(h.readyState==4){_.$L.clearTimeout(G);var C;!(C=Dpy(h.status))&&(C=h.status===0)&&(C=FMF(D),C=!(C=="http"||C=="https"||C==""));C?a(h):Q(new kUb(h.status,D,h))}};
h.onerror=function(){Q(new vN("Network error",D,h))};
if(v.headers)for(var x in v.headers){var f=v.headers[x];f!=null&&h.setRequestHeader(x,f)}v.withCredentials&&(h.withCredentials=v.withCredentials);v.responseType&&(h.responseType=v.responseType);v.mimeType&&h.overrideMimeType(v.mimeType);v.timeoutMs>0&&(G=_.$L.setTimeout(function(){h.onreadystatechange=function(){};
h.abort();Q(new S9y(D,h))},v.timeoutMs));
try{h.send(null)}catch(C){h.onreadystatechange=function(){},_.$L.clearTimeout(G),Q(new vN("Error sending XHR: "+C.message,D,h))}})).thenCatch(function(a){a instanceof _.Oy&&h.abort();
throw a;})},vN=function(D,v,h){_.hc.call(this,D+", url="+v);
this.url=v;this.xhr=h};
_.fa(vN,_.hc);vN.prototype.name="XhrError";var kUb=function(D,v,h){vN.call(this,"Request Failed, status="+D,v,h);this.status=D};
_.fa(kUb,vN);kUb.prototype.name="XhrHttpError";var S9y=function(D,v){vN.call(this,"Request timed out",D,v)};
_.fa(S9y,vN);S9y.prototype.name="XhrTimeoutError";PD=PD||{};var hT=function(){_.AN.call(this)};
_.fa(hT,_.AN);hT.prototype.initialize=function(){};var JPM=function(D,v){this.fn_=D;this.handler_=v};
JPM.prototype.execute=function(D){this.fn_&&(this.fn_.call(this.handler_||null,D),this.fn_=this.handler_=null)};
JPM.prototype.abort=function(){this.handler_=this.fn_=null};var a5=function(D,v){_.AN.call(this);this.deps_=D;this.JSC$11048_id_=v;this.onloadCallbacks_=[];this.JSC$11048_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.fa(a5,_.AN);a5.prototype.moduleConstructor_=hT;a5.prototype.module_=null;a5.prototype.getId=function(){return this.JSC$11048_id_};
a5.prototype.registerCallback=function(D,v){return pU$(this.onloadCallbacks_,D,v)};
var lDs=function(D,v){pU$(D.JSC$11048_onErrorCallbacks_,v)},pU$=function(D,v,h){v=new JPM(v,h);
D.push(v);return v};
a5.prototype.isLoaded=function(){return!!this.module_};
a5.prototype.onLoad=function(D){var v=new this.moduleConstructor_;v.initialize(D());this.module_=v;v=(v=NKs(this.earlyOnloadCallbacks_,D()))||NKs(this.onloadCallbacks_,D());v||(this.JSC$11048_onErrorCallbacks_.length=0);return v};
a5.prototype.onError=function(D){(D=NKs(this.JSC$11048_onErrorCallbacks_,D))&&QO(Error("qd`"+D));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var NKs=function(D,v){for(var h=[],a=0;a<D.length;a++)try{D[a].execute(v)}catch(Q){QO(Q),h.push(Q)}D.length=0;return h.length?h:null};
a5.prototype.disposeInternal=function(){a5.superClass_.disposeInternal.call(this);_.V5(this.module_)};var Y9R,b1y,APp,q9J,cPy,XUR,H14,sNm,mFJ;
_.C9=function(D,v,h,a,Q){a=a===void 0?!1:a;Q=Q===void 0?!1:Q;var G=G===void 0?!0:G;this.scsReferenceUrl_=v_4(_.qf(D).toString(),G);this.cssRowKey_=v;this.combinedSignature_=h;this.useNegativeLoading_=a;this.requestedModuleMap_={};this.JSC$11051_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(D=jv(this.scsReferenceUrl_,"excm"))?D.split(","):[];this.shouldScanForCss_=Q;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;hlc();_.$s(this,dM4(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Y9R=function(D,v){if(v.href||v.getAttribute("data-href"))if(v=v.href||v.getAttribute("data-href"),tJI(v)&&!v_4(v).urlPrefix_.endsWith("_/js/")){v=dM4(v_4(v));v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,D.loadedCssModuleList_.includes(h)||D.loadedCssModuleList_.push(h)}};
_.C9.prototype.JSC$11053_loadModules=function(D,v,h){var a=h===void 0?{}:h;h=a.extraEdges;var Q=a.onError;var G=a.onSuccess;a=a.forceReload;this.JSC$11051_moduleInfoMap_=v;if(!D)throw Error("rd");if(this.shouldScanForCss_){v=_.P(document.getElementsByTagName("style"));for(var x=v.next();!x.done;x=v.next())Y9R(this,x.value);v=_.P(document.getElementsByTagName("link"));for(x=v.next();!x.done;x=v.next())Y9R(this,x.value)}BK4(this,cPy(this,D),h,Q,G,a)};
var BK4=function(D,v,h,a,Q,G){a=a===void 0?function(){}:a;
Q=Q===void 0?function(){}:Q;
G=G===void 0?!1:G;XUR(D,v,function(x,f,C){C=C===void 0?f:C;D.enableFallbackFetch&&G?D.loadWithFetch(x,f,a,Q,C):D.load(x,f,a,Q,C,h)},h)||a(-1)};
_.C9.prototype.loadWithFetch=function(){_.M(function(){throw Error("sd");})};
_.C9.prototype.maybeSetAdditionalFields=function(){};
b1y=function(D,v,h){if(D.useNegativeLoading_){var a=D.scsReferenceUrl_;D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,extraEdges:h,requestedModuleIds:APp(D),requestedCssModuleIds:q9J(D)};var Q=D===void 0?{}:D;D=Q.requestedModuleIds===void 0?[]:Q.requestedModuleIds;h=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds;var G=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var x=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var f=Q.extraEdges===void 0?void 0:Q.extraEdges;
Q=Q.callback===void 0?void 0:Q.callback;a=Ln1(a);sG(a,"d","1");qz9(a,D);bxR(a,h);v=EEm(a,v,{cssRowKey:G,combinedSignature:x,extraEdges:f,callback:Q})}else a=D.scsReferenceUrl_,D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,requestedModuleIds:APp(D),requestedCssModuleIds:q9J(D)},f=D===void 0?{}:D,D=f.requestedCssModuleIds===void 0?[]:f.requestedCssModuleIds,h=f.cssRowKey===void 0?void 0:f.cssRowKey,G=f.combinedSignature===void 0?void 0:f.combinedSignature,x=f.extraEdges===void 0?
void 0:f.extraEdges,f=f.callback===void 0?void 0:f.callback,a=Ln1(a),bxR(a,D),v=EEm(a,v,{cssRowKey:h,combinedSignature:G,extraEdges:x,callback:f});return v};
_.$s=function(D,v){for(var h=!1,a=[],Q=0;Q<v.length;++Q){var G=v[Q];D.requestedModuleMap_[G]||(D.requestedModuleMap_[G]=!0,D.requestedModuleList_.push(G),h=!0,a.push(G))}h&&(D.requestedModuleListSorted_=!1)};
_.Qk=function(D,v){for(var h=[],a=0;a<v.length;++a){var Q=v[a];D.requestedModuleMap_[Q]&&(delete D.requestedModuleMap_[Q],_.e2(D.requestedModuleList_,Q),h.push(Q))}};
_.C9.prototype.load=function(D,v,h,a,Q){Q=Q===void 0?v:Q;_.qf(D);var G=this.useCors_,x=this.corsMode_,f=this.fetchPriority,C=_.l9("SCRIPT");_.Ge(C,D);G&&(C.crossOrigin=x);C.async=!1;f&&C.setAttribute("fetchpriority",f);_.$s(this,v);_.dF$(this,D,C,v,h,a,Q)};
_.dF$=function(D,v,h,a,Q,G,x){x=x===void 0?a:x;D.lastScript_=h;D.insertPos.insertBefore(h,D.insertPos.firstChild);_.jN$(h,a,function(){h.parentElement.removeChild(h);D.lastScript_==h&&(D.lastScript_=null);var f=new Set;a.map(function(U){return f.add(U)});
for(var C in D.JSC$11051_moduleInfoMap_)D.JSC$11051_moduleInfoMap_[C].isLoaded()&&f.add(C);Array.from(f);G()},function(f){h.parentElement.removeChild(h);
D.lastScript_==h&&(D.lastScript_=null);_.Qk(D,f);D.pendingModuleGraphUpdate_?D.pendingModuleGraphUpdate_.then(function(){Q(-1,v)}):Q(-1,v)},x)};
_.jN$=function(D,v,h,a,Q){Q=Q===void 0?v:Q;var G=v.length,x=function(){G=0;D.onload=null;D.onerror=null;f=function(){}},f=function(){x();
var U=Q.filter(function(L){return!mS().getModuleInfo(L).isLoaded()});
U.length!==0?a(U,"Response was successful but was missing module(s) "+U+"."):h()},C=function(){G--;
G==0&&f()};
v.forEach(function(U){U=mS().getModuleInfo(U);U.isLoaded()?C():(pU$(U.earlyOnloadCallbacks_,C),lDs(U,C))});
D.onload=function(){return f()};
D.onerror=function(){x();a(v)}};
APp=function(D){D.requestedModuleListSorted_||(D.requestedModuleListSorted_=!0,D.requestedModuleList_.sort());return D.requestedModuleList_};
q9J=function(D){D=D.loadedCssModuleList_;D.sort();return D};
cPy=function(D,v){return v.filter(function(h){return!D.requestedModuleMap_[h]})};
XUR=function(D,v,h,a){if(D.pendingModuleGraphUpdate_)return D.pendingModuleGraphUpdate_.then(function(){XUR(D,v,h,a)}),!0;
if(!D.useNegativeLoading_){var Q=[],G=Object.assign({},D.requestedModuleMap_);sNm(D,v,function(L){Q.push(L.getId())},a,function(L){return!L.isLoaded()},G);
v=Q}for(G=0;G<v.length;){for(var x=v.length-G,f=G==0?v:v.slice(G,v.length),C=b1y(D,f,a),U=_.qf(C).toString();U.length>D.urlMaxLength;)if(x>1)x-=Math.ceil((U.length-D.urlMaxLength)/6),x=Math.max(x,1),f=v.slice(G,G+x),C=b1y(D,f,a),U=_.qf(C).toString();else return D.useNegativeLoading_?(D.useNegativeLoading_=!1,D.pendingModuleGraphUpdate_=mFJ(D).then(function(L){H14(D,L,a)}),XUR(D,v.slice(G),h,a)):!1;
G+=x;D.useNegativeLoading_?h(C,f):h(C,f,G===v.length?v:[])}return!0};
H14=function(D,v,h){mS().setAllModuleInfoString((v||{}).moduleGraph);sNm(D,APp(D),function(a){_.$s(D,[a.getId()])},h);
D.pendingModuleGraphUpdate_=null};
sNm=function(D,v,h,a,Q,G){G=G===void 0?{}:G;var x=mS();v=_.P(v);for(var f=v.next();!f.done;f=v.next()){f=f.value;var C=x.getModuleInfo(f);if(!(G[f]||Q&&!Q(C))){G[f]=!0;var U=C.deps_||[];if(a){var L=[];a[f]&&(L=Object.keys(a[f]));U=U.concat(L)}sNm(D,U,h,a,Q,G);h(C)}}};
mFJ=function(D){D=D.scsReferenceUrl_.clone();sZs(D);sG(D,"dg",null);sG(D,"md","1");return gEF(D.toString())};var R6q=new Uint8Array(123);var yP$=[];var wUM=function(){this.JSC$10058_loader_=null};
_.V=wUM.prototype;_.V.setBatchModeEnabled=function(){};
_.V.setAllModuleInfoString=function(){};
_.V.addExtraEdge=function(){throw Error("td");};
_.V.removeExtraEdge=function(){throw Error("ud");};
_.V.getModuleContext=function(){return null};
_.V.isActive=function(){return!1};
_.V.isUserActive=function(){return!1};
_.V.registerCallback=function(){};var Gc=function(D,v,h,a,Q){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="ModuleLoadFailure";this.type=D;this.status=v;this.requestedModuleIds=h;this.url=a;this.cause=Q;this.message=this.toString()};
_.J(Gc,Error);Gc.prototype.toString=function(){return ey$(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ey$=function(D){switch(D.type){case Gc.Type.UNAUTHORIZED:return"Unauthorized";case Gc.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Gc.Type.TIMEOUT:return"Timed out";case Gc.Type.OLD_CODE_GONE:return"Out of date module id";case Gc.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+D.type}};
PD.ModuleLoadFailure=Gc;PD.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Vk=function(){this.moduleIds_=this.JSC$10058_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11066_extraEdges_={};this.JSC$11066_callbackMap_={};this.JSC$11066_currentlyLoadingModule_=this.baseModuleInfo_=new a5([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Vb;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.fa(Vk,wUM);var nEF=function(D,v){_.hc.call(this,"Error loading "+D+": "+v)};
_.fa(nEF,_.hc);Vk.prototype.setBatchModeEnabled=function(D){this.batchModeEnabled_=D};
Vk.prototype.setAllModuleInfoString=function(D,v){if(!(this instanceof Vk))this.setAllModuleInfoString(D,v);else if(typeof D==="string"){if(D.startsWith("d$")){D=D.substring(2);for(var h=[],a=0,Q=D.indexOf("/"),G=0,x=!1,f=0;;){var C=x?D.substring(G):D.substring(G,Q);if(C.length===0)a++,G="sy"+a.toString(36),C=[];else{var U=C.indexOf(":");if(U<0)G=C,C=[];else if(U===C.length-1)G=C.substring(0,U),C=Array(h[f-1]);else{G=C.substring(0,U);C=C.substring(U+1).split(",");U=f;for(var L=0;L<C.length;L++)U-=
C[L].length===0?1:Number(C[L]),C[L]=h[U]}U=0;if(G.length===0)U=1;else if(G.charAt(0)==="+"||G.charAt(0)==="-")U=Number(G);U!==0&&(a+=U,G="sy"+a.toString(36))}h.push(G);O1b(this,G,C);if(x)break;G=Q+1;Q=D.indexOf("/",G);Q===-1&&(x=!0);f++}this.moduleIds_=h}else if(D.startsWith("p$"))Kn4(this,D);else{D=D.split("/");h=[];for(a=0;a<D.length;a++){f=D[a].split(":");Q=f[0];x=[];if(f[1])for(x=f[1].split(","),f=0;f<x.length;f++)x[f]=h[parseInt(x[f],36)];h.push(Q);O1b(this,Q,x)}this.moduleIds_=h}v&&v.length?
(_.K7(this.loadingModuleIds_,v),this.lastInitialModuleId_=_.dc(v)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11066_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11066_currentlyLoadingModule_=null,(v=this.baseModuleInfo_.onLoad((0,_.qp)(this.getModuleContext,this)))&&v.length&&TKF(this,new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,v[0])),PN(this))}};
var Kn4=function(D,v){var h=v.substring(2);for(v=0;v<64;v++)R6q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(v)]=v;var a={buf:h,pos:0};f9(a);var Q=f9(a),G=f9(a)+1;v=Array(Q);var x=Array(Q),f=Array(Q);G=Array(G);var C=0,U=0,L=a.pos,Z=a.buf.indexOf("|",a.pos);a.pos=Z+1;for(Z=0;Z<Q;Z++){var E=f9(a),I=E&2,S=E&1;E>>>=2;S?(C+=E>>>1^-(E&1),E="sy"+C.toString(36)):(S=L,L+=E,E=h.substring(S,L));v[Z]=E;I&&(G[U++]=E)}G[U]="";a.pos++;U=Q&-2;h=Q&1;for(C=0;C<U;C+=2)L=iSc(a),f[C]=
L&7,f[C+1]=L>>>3&7;h&&(h=iSc(a),f[U]=h&7);a.pos++;for(U=0;U<Q;U++)f[U]===7&&(f[U]=f9(a));a.pos++;for(h=U=0;h<Q;h++){C=f[h];L=C===0?yP$:Array(C);x[h]=L;Z=U;for(I=0;I<C;I++)Z-=f9(a),L[I]=G[Z];G[U]===v[h]&&U++}for(a=0;a<v.length;a++)O1b(D,v[a],x[a]);D.moduleIds_=v};
_.V=Vk.prototype;_.V.getModuleInfo=function(D){return this.moduleInfoMap[D]};
_.V.addExtraEdge=function(D,v){var h=this.getModuleInfo(D);h&&h.isLoaded()?this.load(v):(this.JSC$11066_extraEdges_[D]||(this.JSC$11066_extraEdges_[D]={}),this.JSC$11066_extraEdges_[D][v]=!0)};
_.V.removeExtraEdge=function(D,v){if(this.JSC$11066_extraEdges_[D]){delete this.JSC$11066_extraEdges_[D][v];for(var h in this.JSC$11066_extraEdges_[D])return;delete this.JSC$11066_extraEdges_[D]}};
_.V.isActive=function(){return this.loadingModuleIds_.length>0};
_.V.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var PN=function(D){var v=D.lastActive_,h=D.isActive();h!=v&&(D.executeCallbacks_(h?"active":"idle"),D.lastActive_=h);v=D.isUserActive();v!=D.userLastActive_&&(D.executeCallbacks_(v?"userActive":"userIdle"),D.userLastActive_=v)},O1b=function(D,v,h){D.moduleInfoMap[v]?(D=D.moduleInfoMap[v].deps_,D!=h&&D.splice.apply(D,[0,
D.length].concat(_.j_(h)))):D.moduleInfoMap[v]=new a5(h,v)},i1b=function(D,v,h){var a=[];
b7r(v,a);v=[];for(var Q={},G=0;G<a.length;G++){var x=a[G],f=D.getModuleInfo(x);if(!f)throw Error("vd`"+x);var C=new Vb;Q[x]=C;f.isLoaded()?C.callback(null):(Ryb(D,x,f,!!h,C),D.isModuleLoading(x)||v.push(x))}v.length>0&&(D.loadingModuleIds_.length===0?D.loadModules_(v):(D.requestedModuleIdsQueue_.push(v),PN(D)));return Q},Ryb=function(D,v,h,a,Q){h.registerCallback(Q.callback,Q);
lDs(h,function(G){Q.errback(new nEF(v,G))});
D.isModuleLoading(v)?a&&(WnF(D,v),PN(D)):a&&WnF(D,v)};
Vk.prototype.loadModules_=function(D,v,h){var a=this;v||(this.consecutiveFailures_=0);var Q=ta4(this,D);this.loadingModuleIds_=Q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?D:_.n7(Q);PN(this);if(Q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Q);D=this.JSC$10058_loader_;if(!D)throw Error("wd");if(Object.keys(this.JSC$11066_extraEdges_).length>0&&!D.supportsExtraEdges)throw Error("xd");h=(0,_.qp)(D.JSC$11053_loadModules,D,_.n7(Q),this.moduleInfoMap,{extraEdges:this.JSC$11066_extraEdges_,
forceReload:!!h,onError:function(G,x){var f=a.requestedLoadingModuleIds_;G=G!=null?G:void 0;a.consecutiveFailures_++;var C=_.n7(Q);a.requestedLoadingModuleIds_=f;Q.forEach(_.NF(_.e2,a.requestedModuleIds_),a);G==401?(TKF(a,new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.UNAUTHORIZED,G)),a.requestedModuleIdsQueue_.length=0):G==410?(rP9(a,new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.OLD_CODE_GONE,G)),u1J(a)):a.consecutiveFailures_>=3?(rP9(a,new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
G,C,x)),u1J(a)):a.loadModules_(a.requestedLoadingModuleIds_,!0,G==8001||!1)},
onTimeout:(0,_.qp)(this.handleLoadTimeout_,this)});(D=Math.pow(this.consecutiveFailures_,2)*5E3)?_.$L.setTimeout(h,D):h()}};
var ta4=function(D,v){v=v.filter(function(Q){return D.moduleInfoMap[Q].isLoaded()?(_.$L.setTimeout(function(){return Error("yd`"+Q)},0),!1):!0});
for(var h=[],a=0;a<v.length;a++)h=h.concat(DDm(D,v[a]));b7r(h);return!D.batchModeEnabled_&&h.length>1?(v=h.shift(),D.requestedModuleIdsQueue_=h.map(function(Q){return[Q]}).concat(D.requestedModuleIdsQueue_),[v]):h},DDm=function(D,v){var h=_.sV.createSet(D.requestedModuleIds_),a=[];
h[v]||a.push(v);v=[v];for(var Q=0;Q<v.length;Q++)for(var G=D.getModuleInfo(v[Q]).deps_,x=G.length-1;x>=0;x--){var f=G[x];D.getModuleInfo(f).isLoaded()||h[f]||(a.push(f),v.push(f))}a.reverse();b7r(a);return a};
Vk.prototype.JSC$11061_setLoaded=function(){if(this.JSC$11066_currentlyLoadingModule_){var D=this.JSC$11066_currentlyLoadingModule_.getId(),v=[];if(this.JSC$11066_extraEdges_[D]){for(var h=_.P(Object.keys(this.JSC$11066_extraEdges_[D])),a=h.next();!a.done;a=h.next()){a=a.value;var Q=this.getModuleInfo(a);Q&&!Q.isLoaded()&&(this.removeExtraEdge(D,a),v.push(a))}this.loadMultiple(v)}this.isDisposed()||((v=this.moduleInfoMap[D].onLoad((0,_.qp)(this.getModuleContext,this)))&&v.length&&TKF(this,new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,v[0])),_.e2(this.userInitiatedLoadingModuleIds_,D),_.e2(this.loadingModuleIds_,D),this.loadingModuleIds_.length===0&&u1J(this),this.lastInitialModuleId_&&D==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),PN(this),this.JSC$11066_currentlyLoadingModule_=null)}};
Vk.prototype.isModuleLoading=function(D){if(_.wc(this.loadingModuleIds_,D))return!0;for(var v=0;v<this.requestedModuleIdsQueue_.length;v++)if(_.wc(this.requestedModuleIdsQueue_[v],D))return!0;return!1};
Vk.prototype.load=function(D,v){return i1b(this,[D],v)[D]};
Vk.prototype.loadMultiple=function(D){return i1b(this,D)};
var WnF=function(D,v){_.wc(D.userInitiatedLoadingModuleIds_,v)||D.userInitiatedLoadingModuleIds_.push(v)};
Vk.prototype.beforeLoadModuleCode=function(D){var v=this;this.JSC$11066_currentlyLoadingModule_&&this.JSC$11066_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11061_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[D]&&vZM(this,this.moduleInfoMap[D].deps_||[],function(h){h.module_=new hT;_.e2(v.loadingModuleIds_,h.getId())},function(h){return!h.isLoaded()});
this.JSC$11066_currentlyLoadingModule_=this.getModuleInfo(D)};
Vk.prototype.handleLoadTimeout_=function(){rP9(this,new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.TIMEOUT));u1J(this)};
var rP9=function(D,v){D.requestedLoadingModuleIds_.length>1?D.requestedModuleIdsQueue_=D.requestedLoadingModuleIds_.map(function(h){return[h]}).concat(D.requestedModuleIdsQueue_):TKF(D,v)},TKF=function(D,v){var h=D.requestedLoadingModuleIds_;
D.loadingModuleIds_.length=0;for(var a=[],Q=0;Q<D.requestedModuleIdsQueue_.length;Q++){var G=D.requestedModuleIdsQueue_[Q].filter(function(C){var U=DDm(this,C);return DM(h,function(L){return _.wc(U,L)})},D);
_.K7(a,G)}for(Q=0;Q<h.length;Q++)_.ccA(a,h[Q]);for(Q=0;Q<a.length;Q++){for(G=0;G<D.requestedModuleIdsQueue_.length;G++)_.e2(D.requestedModuleIdsQueue_[G],a[Q]);_.e2(D.userInitiatedLoadingModuleIds_,a[Q])}if(Q=D.JSC$11066_callbackMap_.error)for(G=0;G<Q.length;G++)for(var x=Q[G],f=0;f<a.length;f++)x("error",a[f],v);for(a=0;a<h.length;a++)if(D.moduleInfoMap[h[a]])D.moduleInfoMap[h[a]].onError(v);D.requestedLoadingModuleIds_.length=0;PN(D)},u1J=function(D){for(;D.requestedModuleIdsQueue_.length;){var v=
D.requestedModuleIdsQueue_.shift().filter(function(h){return!this.getModuleInfo(h).isLoaded()},D);
if(v.length>0){D.loadModules_(v);return}}PN(D)};
Vk.prototype.registerCallback=function(D,v){Array.isArray(D)||(D=[D]);for(var h=0;h<D.length;h++){var a=D[h],Q=v,G=this.JSC$11066_callbackMap_;G[a]||(G[a]=[]);G[a].push(Q)}};
Vk.prototype.executeCallbacks_=function(D){for(var v=this.JSC$11066_callbackMap_[D],h=0;v&&h<v.length;h++)v[h](D)};
var vZM=function(D,v,h,a,Q){a=a===void 0?function(){return!0}:a;
Q=Q===void 0?{}:Q;v=_.P(v);for(var G=v.next();!G.done;G=v.next()){G=G.value;var x=D.getModuleInfo(G);!Q[G]&&a(x)&&(Q[G]=!0,vZM(D,x.deps_||[],h,a,Q),h(x))}};
Vk.prototype.dispose=function(){_.PQ(_.sV.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11066_callbackMap_={};this.isDisposed_=!0};
Vk.prototype.isDisposed=function(){return this.isDisposed_};
_.sN=function(){return new Vk};var hkp=[5E3,2E4],aUM=function(){this.JSC$10058_loader_=null;this.JSC$11074_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11074_queue_=[];this.JSC$11074_extraEdges_=Object.create(null);this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.J(aUM,wUM);_.V=aUM.prototype;_.V.setAllModuleInfoString=function(){this.JSC$11074_currentlyLoadingModule_&&this.JSC$11074_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11061_setLoaded()};
_.V.getModuleInfo=function(D){var v=this.JSC$11074_moduleInfoMap_[D];v||(v=new a5([],D),this.JSC$11074_moduleInfoMap_[D]=v);return v};
_.V.addExtraEdge=function(D,v){this.getModuleInfo(D).isLoaded()?this.load(v):(this.JSC$11074_extraEdges_[D]||(this.JSC$11074_extraEdges_[D]={}),this.JSC$11074_extraEdges_[D][v]=!0)};
_.V.removeExtraEdge=function(D,v){if(this.JSC$11074_extraEdges_[D]){delete this.JSC$11074_extraEdges_[D][v];for(var h in this.JSC$11074_extraEdges_[D])return;delete this.JSC$11074_extraEdges_[D]}};
_.V.isModuleLoading=function(D){return!!this.loadingModules_[D]};
_.V.load=function(D){$DJ(this,[D]);return QGm(this,D)};
_.V.loadMultiple=function(D){var v=this,h=Object.create(null),a=[];D.forEach(function(Q){h[Q]||(h[Q]=QGm(v,Q),a.push(Q))});
$DJ(this,a);return h};
_.V.beforeLoadModuleCode=function(D){var v;((v=this.JSC$11074_currentlyLoadingModule_)==null?void 0:v.getId())==="synthetic_module_overhead"&&this.JSC$11061_setLoaded();var h,a;Gat(this,(a=(h=this.JSC$11074_moduleInfoMap_[D])==null?void 0:h.deps_)!=null?a:[],function(Q){Q.module_=new hT},function(Q){return!Q.isLoaded()});
this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo(D)};
_.V.JSC$11061_setLoaded=function(){if(this.JSC$11074_currentlyLoadingModule_){var D=this.JSC$11074_currentlyLoadingModule_.getId(),v=[];if(this.JSC$11074_extraEdges_[D]){for(var h=_.P(Object.keys(this.JSC$11074_extraEdges_[D])),a=h.next();!a.done;a=h.next())a=a.value,this.getModuleInfo(a).isLoaded()||(this.removeExtraEdge(D,a),v.push(a));this.loadMultiple(v)}this.JSC$11074_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11074_currentlyLoadingModule_=null;(!this.isModuleLoading(D)&&/^sy[0-9a-z]{0,4}$/.test(D)||D==="synthetic_module_overhead")&&delete this.JSC$11074_moduleInfoMap_[D];this.unsetModulesAsLoading(D)}};
_.V.setModulesAsLoading=function(){var D=this;_.Kz.apply(0,arguments).forEach(function(v){D.loadingModules_[v]=!0})};
_.V.unsetModulesAsLoading=function(){var D=this;_.Kz.apply(0,arguments).forEach(function(v){delete D.loadingModules_[v]})};
var QGm=function(D,v){return new _.IB(function(h,a){var Q=D.getModuleInfo(v);Q.isLoaded()?h(null):(Q.registerCallback(function(){h(null)}),lDs(Q,function(G){var x="Error loading "+v+": "+G;
G instanceof PD.ModuleLoadFailure&&G.url&&(x=x+", requested url: "+G.url.toString());a(Error(x))}))})},$DJ=function(D,v){v=v.filter(function(h){return!D.isModuleLoading(h)&&!D.getModuleInfo(h).isLoaded()});
v.length>0&&(D.setModulesAsLoading.apply(D,_.j_(v)),D.JSC$11074_queue_.push(v),VqM(D))},VqM=function(D){for(var v={};D.activeLoads_<Infinity&&D.JSC$11074_queue_.length>0;v={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})v.ids$jscomp$36=D.JSC$11074_queue_.shift().filter(function(h){return!D.getModuleInfo(h).isLoaded()}),v.ids$jscomp$36.length>0&&(D.activeLoads_++,v.finishLoad=function(h){return function(){D.activeLoads_--;
VqM(D);h.finishLoad=function(){}}}(v),_.HZ(v.ids$jscomp$36.map(function(h){return QGm(D,h)})).then(function(h){return function(){(0,h.finishLoad)()}}(v)),v.attempt$jscomp$6=0,v.load$jscomp$1=function(h){return function(){if(Object.keys(D.JSC$11074_extraEdges_).length>0&&!D.JSC$10058_loader_.supportsExtraEdges)throw Error("xd");
D.JSC$10058_loader_.JSC$11053_loadModules(h.ids$jscomp$36,D.JSC$11074_moduleInfoMap_,{extraEdges:D.JSC$11074_extraEdges_,onError:function(a,Q){var G=hkp[h.attempt$jscomp$6++];G!==void 0?setTimeout(function(){(0,h.load$jscomp$1)()},G):(D.unsetModulesAsLoading.apply(D,_.j_(h.ids$jscomp$36)),(0,h.finishLoad)(),h.ids$jscomp$36.forEach(function(x){x=D.getModuleInfo(x);
if(!x.isLoaded())x.onError(new PD.ModuleLoadFailure(PD.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,a,h.ids$jscomp$36,Q))}))}})}}(v),(0,v.load$jscomp$1)())},Gat=function(D,v,h,a,Q){a=a===void 0?function(){return!0}:a;
Q=Q===void 0?{}:Q;v=_.P(v);for(var G=v.next();!G.done;G=v.next()){G=G.value;var x=D.getModuleInfo(G);!Q[G]&&a(x)&&(Q[G]=!0,Gat(D,x.deps_||[],h,a,Q),h(x))}};var P04=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var uvi=Symbol("Ad");window.JSCompiler_renameProperty=function(D){return D};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var xDm=!P04||HTMLElement.es5Shimmed||_.$L.Reflect===void 0||_.$L.customElements===void 0||_.$L.customElements.polyfillWrapFlushCallback||!1,MqM,XEu=function(){var D=HTMLElement;if(xDm)return D;if(MqM!==void 0)return MqM;var v=_.$L.Reflect,h=function(){return v.construct(D,[],this.constructor)};
h.prototype=D.prototype;h.prototype.constructor=h;h.es5Shimmed=!0;Object.setPrototypeOf(h,D);return MqM=h},fUy=!1;xDm||fUy||(fUy=!0,_.$L.HTMLElement=XEu());/*

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 $hf=/(url\()([^)]*)(\))/g,hmI=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,aSi,oM;var TR=!window.ShadyDOM||!window.ShadyDOM.inUse,C0s=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),oZ9=!window.customElements.polyfillWrapFlushCallback,F69;if(F69=TR&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var zkt=new CSSStyleSheet;zkt.replaceSync("");var UDp=document.createElement("div");UDp.attachShadow({mode:"open"});UDp.shadowRoot.adoptedStyleSheets=[zkt];F69=UDp.shadowRoot.adoptedStyleSheets[0]===zkt}catch(D){F69=!1}
var L6M=F69,ZGm=window.Polymer&&window.Polymer.rootPath||Gkr(document.baseURI||window.location.href),Nb=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Fvq=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,tH=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,EZ$=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,K9=window.Polymer&&window.Polymer.legacyOptimizations||!1,Wa=window.Polymer&&window.Polymer.legacyWarnings||!1,IUF=window.Polymer&&window.Polymer.syncInitialRender||
!1,Ba=window.Polymer&&window.Polymer.legacyUndefined||!1,gZJ=window.Polymer&&window.Polymer.orderedComputed||!1,xs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,M_=window.Polymer&&window.Polymer.fastDomIf||!1,f6=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,kab=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,S44=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var C6={},JAF={},XL=function(){return HTMLElement.apply(this,arguments)||this};
_.J(XL,HTMLElement);XL.import=function(D,v){return D?(D=C6[D]||JAF[D.toLowerCase()])&&v?D.querySelector(v):D:null};
XL.prototype.attributeChangedCallback=function(D,v,h){v!==h&&this.register()};
XL.prototype.register=function(D){if(D=D||this.id){if(tH&&(C6[D]||JAF[D.toLowerCase()])!==void 0)throw C6[D]=JAF[D.toLowerCase()]=null,Error("Bd`"+D);this.id=D;C6[D]=JAF[D.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.GT.Object.defineProperties(XL.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var D=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;D=_.FL(this.getAttribute("assetpath")||"",D.baseURI);this.__assetpath=Gkr(D)}return this.__assetpath}}});
_.GT.Object.defineProperties(XL,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
XL["import"]=XL.import;XL.prototype.modules=C6;customElements.define("dom-module",XL);var pf4=0,Pp4=0,zR=[],lUJ=0,V6c=!1,NRJ=document.createTextNode(""),Y44,n9;(new window.MutationObserver(xhu)).observe(NRJ,{characterData:!0});_.o5={after:function(D){return{run:function(v){return window.setTimeout(v,D)},
cancel:function(v){window.clearTimeout(v)}}},
run:function(D,v){return window.setTimeout(D,v)},
cancel:function(D){window.clearTimeout(D)}};
_.mN={run:function(D){return window.requestAnimationFrame(D)},
cancel:function(D){window.cancelAnimationFrame(D)}};
Y44={run:function(D){return window.requestIdleCallback?window.requestIdleCallback(D):window.setTimeout(D,16)},
cancel:function(D){window.cancelIdleCallback?window.cancelIdleCallback(D):window.clearTimeout(D)}};
n9={run:function(D){V6c||(V6c=!0,NRJ.textContent=lUJ++);zR.push(D);return pf4++},
cancel:function(D){var v=D-Pp4;if(v>=0){if(!zR[v])throw Error("Cd`"+D);zR[v]=null}}};var BR1=0,F2=function(D){var v=D.__mixinApplications;v||(v=new WeakMap,D.__mixinApplications=v);var h=BR1++;return function(a){var Q=a.__mixinSet;if(Q&&Q[h])return a;var G=v,x=G.get(a);x||(x=D(a),G.set(a,x),a=Object.create(x.__mixinSet||Q||null),a[h]=!0,x.__mixinSet=a);return x}};_.lM=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(D){return ShadyDOM.patch(D)}:function(D){return D};var cAt=F2(function(D){var v=function(){var h=D.call(this)||this;h.__dataEnabled=!1;h.__dataReady=!1;h.__dataInvalid=!1;h.__data={};h.__dataPending=null;h.__dataOld=null;h.__dataInstanceProps=null;h.__dataCounter=0;h.__serializing=!1;h._initializeProperties();return h};
_.J(v,D);v.createProperties=function(h){var a=this.prototype,Q;for(Q in h)Q in a||a._createPropertyAccessor(Q)};
v.attributeNameForProperty=function(h){return h.toLowerCase()};
v.typeForProperty=function(){};
v.prototype._createPropertyAccessor=function(h,a){this._addPropertyToAttributeMap(h);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[h]||(this.__dataHasAccessor[h]=!0,this._definePropertyAccessor(h,a))};
v.prototype._addPropertyToAttributeMap=function(h){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var a=this.__dataAttributes[h];a||(a=this.constructor.attributeNameForProperty(h),this.__dataAttributes[a]=h);return a};
v.prototype._definePropertyAccessor=function(h,a){Object.defineProperty(this,h,{get:function(){return this.__data[h]},
set:a?function(){}:function(Q){this._setPendingProperty(h,Q,!0)&&this._invalidateProperties()}})};
v.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
v.prototype._initializeProperties=function(){for(var h in this.__dataHasAccessor)this.hasOwnProperty(h)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[h]=this[h],delete this[h])};
v.prototype._initializeInstanceProperties=function(h){Object.assign(this,h)};
v.prototype._setProperty=function(h,a){this._setPendingProperty(h,a)&&this._invalidateProperties()};
v.prototype._getProperty=function(h){return this.__data[h]};
v.prototype._setPendingProperty=function(h,a){var Q=this.__data[h],G=this._shouldPropertyChange(h,a,Q);G&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||h in this.__dataOld||(this.__dataOld[h]=Q),this.__data[h]=a,this.__dataPending[h]=a);return G};
v.prototype._isPropertyPending=function(h){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(h))};
v.prototype._invalidateProperties=function(){var h=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,n9.run(function(){h.__dataInvalid&&(h.__dataInvalid=!1,h._flushProperties())}))};
v.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
v.prototype._flushProperties=function(){this.__dataCounter++;var h=this.__data,a=this.__dataPending,Q=this.__dataOld;this._shouldPropertiesChange(h,a,Q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(h,a,Q));this.__dataCounter--};
v.prototype._shouldPropertiesChange=function(h,a){return!!a};
v.prototype._propertiesChanged=function(){};
v.prototype._shouldPropertyChange=function(h,a,Q){return Q!==a&&(Q===Q||a===a)};
v.prototype.attributeChangedCallback=function(h,a,Q,G){a!==Q&&this._attributeToProperty(h,Q);D.prototype.attributeChangedCallback&&D.prototype.attributeChangedCallback.call(this,h,a,Q,G)};
v.prototype._attributeToProperty=function(h,a,Q){if(!this.__serializing){var G=this.__dataAttributes;h=G&&G[h]||h;this[h]=this._deserializeValue(a,Q||this.constructor.typeForProperty(h))}};
v.prototype._propertyToAttribute=function(h,a,Q){this.__serializing=!0;Q=arguments.length<3?this[h]:Q;this._valueToNodeAttribute(this,Q,a||this.constructor.attributeNameForProperty(h));this.__serializing=!1};
v.prototype._valueToNodeAttribute=function(h,a,Q){a=this._serializeValue(a);if(Q==="class"||Q==="name"||Q==="slot")h=(0,_.lM)(h);a===void 0?h.removeAttribute(Q):h.setAttribute(Q,a===""&&window.trustedTypes?window.trustedTypes.emptyScript:a)};
v.prototype._serializeValue=function(h){switch(typeof h){case "boolean":return h?"":void 0;default:return h!=null?h.toString():void 0}};
v.prototype._deserializeValue=function(h,a){switch(a){case Boolean:return h!==null;case Number:return Number(h);default:return h}};
return v});var XfR=0,M62=[];var AAR=F2(function(D){function v(G){G=Object.getPrototypeOf(G);return G.prototype instanceof Q?G:null}
function h(G){if(!G.hasOwnProperty("__ownProperties")){var x=null;if(G.hasOwnProperty("properties")){var f=G.properties;if(f){x={};for(var C in f){var U=f[C];x[C]=typeof U==="function"?{type:U}:U}}}G.__ownProperties=x}return G.__ownProperties}
var a=cAt(D),Q=function(){return a.apply(this,arguments)||this};
_.J(Q,a);Q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var G=v(this);G&&G.finalize();this.__finalized=!0;this._finalizeClass()}};
Q._finalizeClass=function(){var G=h(this);G&&this.createProperties(G)};
Q.typeForProperty=function(G){return(G=this._properties[G])&&G.type};
Q.prototype._initializeProperties=function(){XfR++;this.constructor.finalize();a.prototype._initializeProperties.call(this)};
Q.prototype.connectedCallback=function(){a.prototype.connectedCallback&&a.prototype.connectedCallback.call(this);this._enableProperties()};
Q.prototype.disconnectedCallback=function(){a.prototype.disconnectedCallback&&a.prototype.disconnectedCallback.call(this)};
_.GT.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var G=this;if(!this.hasOwnProperty("__observedAttributes")){fS4(this.prototype);var x=this._properties;this.__observedAttributes=x?Object.keys(x).map(function(f){return G.prototype._addPropertyToAttributeMap(f)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var G=v(this);this.__properties=Object.assign({},G&&G._properties,h(this))}return this.__properties}}});
return Q});var Cpi={},oYi=/-[a-z]/g,FPA=/([A-Z])/g;for(var q4J={},bG4=HTMLElement.prototype;bG4;){for(var dDy=Object.getOwnPropertyNames(bG4),jGm=0;jGm<dDy.length;jGm++)q4J[dDy[jGm]]=!0;bG4=Object.getPrototypeOf(bG4)}var sGb=window.trustedTypes?function(D){return trustedTypes.isHTML(D)||trustedTypes.isScript(D)||trustedTypes.isScriptURL(D)}:function(){return!1},mD9=F2(function(D){var v=cAt(D);
D=function(){return v.apply(this,arguments)||this};
_.J(D,v);D.createPropertiesForAttributes=function(){for(var h=this.observedAttributes,a=0;a<h.length;a++)this.prototype._createPropertyAccessor(UR(h[a]))};
D.attributeNameForProperty=function(h){return L9(h)};
D.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);v.prototype._initializeProperties.call(this)};
D.prototype._initializeProtoProperties=function(h){for(var a in h)this._setProperty(a,h[a])};
D.prototype._ensureAttribute=function(h,a){this.hasAttribute(h)||this._valueToNodeAttribute(this,a,h)};
D.prototype._serializeValue=function(h){switch(typeof h){case "object":if(h instanceof Date)return h.toString();if(h){if(sGb(h))return h;try{return JSON.stringify(h)}catch(a){return""}}default:return v.prototype._serializeValue.call(this,h)}};
D.prototype._deserializeValue=function(h,a){switch(a){case Object:try{var Q=JSON.parse(h)}catch(G){Q=h}break;case Array:try{Q=JSON.parse(h)}catch(G){Q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+h)}break;case Date:Q=isNaN(h)?String(h):Number(h);Q=new Date(Q);break;default:Q=v.prototype._deserializeValue.call(this,h,a)}return Q};
D.prototype._definePropertyAccessor=function(h,a){if(!q4J[h]){var Q=this[h];Q!==void 0&&(this.__data?this._setPendingProperty(h,Q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[h]=Q))}v.prototype._definePropertyAccessor.call(this,h,a)};
D.prototype._hasAccessor=function(h){return this.__dataHasAccessor&&this.__dataHasAccessor[h]};
D.prototype._isPropertyPending=function(h){return!!(this.__dataPending&&h in this.__dataPending)};
return D});var HG4={"dom-if":!0,"dom-repeat":!0},yAJ=!1,wfp=!1,ek4=function(){var D=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(v){return v}});
return function(v,h,a){h=h.getAttribute(a);D&&a.startsWith("on-")?v.setAttribute(a,D.createScript(h,a)):v.setAttribute(a,h)}}(),nZ9=F2(function(D){var v=function(){return D.apply(this,arguments)||this};
_.J(v,D);v._parseTemplate=function(h,a){if(!h._templateInfo){var Q=h._templateInfo={};Q.nodeInfoList=[];Q.nestedTemplate=!!a;Q.stripWhiteSpace=a&&a.stripWhiteSpace||h.hasAttribute&&h.hasAttribute("strip-whitespace");this._parseTemplateContent(h,Q,{parent:null})}return h._templateInfo};
v._parseTemplateContent=function(h,a,Q){return this._parseTemplateNode(h.content,a,Q)};
v._parseTemplateNode=function(h,a,Q){var G=!1;h.localName!="template"||h.hasAttribute("preserve-content")?h.localName==="slot"&&(a.hasInsertionPoint=!0):G=this._parseTemplateNestedTemplate(h,a,Q)||G;if(!yAJ){yAJ=!0;var x=document.createElement("textarea");x.placeholder="a";wfp=x.placeholder===x.textContent}wfp&&h.localName==="textarea"&&h.placeholder&&h.placeholder===h.textContent&&(h.textContent=null);h.firstChild&&this._parseTemplateChildNodes(h,a,Q);h.hasAttributes&&h.hasAttributes()&&(G=this._parseTemplateNodeAttributes(h,
a,Q)||G);return G||Q.noted};
v._parseTemplateChildNodes=function(h,a,Q){if(h.localName!=="script"&&h.localName!=="style")for(var G=h.firstChild,x=0,f;G;G=f){if(G.localName=="template"){var C=G.getAttribute("is");if(C&&HG4[C])for(f=G,f.removeAttribute("is"),G=f.ownerDocument.createElement(C),f.parentNode.replaceChild(G,f),G.appendChild(f);f.attributes.length;)C=f.attributes[0].name,ek4(G,f,C),f.removeAttribute(C)}f=G.nextSibling;if(G.nodeType===Node.TEXT_NODE){for(C=f;C&&C.nodeType===Node.TEXT_NODE;)G.textContent+=C.textContent,
f=C.nextSibling,h.removeChild(C),C=f;if(a.stripWhiteSpace&&!G.textContent.trim()){h.removeChild(G);continue}}C={parentIndex:x,parentInfo:Q};this._parseTemplateNode(G,a,C)&&(C.infoIndex=a.nodeInfoList.push(C)-1);G.parentNode&&x++}};
v._parseTemplateNestedTemplate=function(h,a,Q){a=this._parseTemplate(h,a);(a.content=h.content.ownerDocument.createDocumentFragment()).appendChild(h.content);Q.templateInfo=a;return!0};
v._parseTemplateNodeAttributes=function(h,a,Q){for(var G=!1,x=Array.from(h.attributes),f=x.length-1,C;C=x[f];f--)G=this._parseTemplateNodeAttribute(h,a,Q,C.name,C.value)||G;return G};
v._parseTemplateNodeAttribute=function(h,a,Q,G,x){return G.slice(0,3)==="on-"?(h.removeAttribute(G),Q.events=Q.events||[],Q.events.push({name:G.slice(3),value:x}),!0):G==="id"?(Q.id=x,!0):!1};
v._contentForTemplate=function(h){var a=h._templateInfo;return a&&a.content||h.content};
v.prototype._stampTemplate=function(h,a){h&&!h.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(h);a=a||this.constructor._parseTemplate(h);var Q=a.nodeInfoList;h=document.importNode(a.content||h.content,!0);h.__noInsertionPoint=!a.hasInsertionPoint;var G=h.nodeList=Array(Q.length);h.$={};for(var x=0,f=Q.length,C=void 0;x<f&&(C=Q[x]);x++){var U=G[x]=zmc(h,C);C.id&&(h.$[C.id]=U);var L=U,Z=C,E=a;Z.templateInfo&&(L._templateInfo=Z.templateInfo,L._parentTemplateInfo=
E);if(C.events&&C.events.length)for(L=0,Z=C.events,E=void 0;L<Z.length&&(E=Z[L]);L++)this._addMethodEventListenerToNode(U,E.name,E.value,this)}return h};
v.prototype._addMethodEventListenerToNode=function(h,a,Q,G){Q=UhO(G||h,Q);this._addEventListenerToNode(h,a,Q);return Q};
v.prototype._addEventListenerToNode=function(h,a,Q){h.addEventListener(a,Q)};
v.prototype._removeEventListenerFromNode=function(h,a,Q){h.removeEventListener(a,Q)};
return v});var JH=0,YX=[],OGs={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},K69=/[A-Z]/,TR4=function(D,v,h,a,Q){var G=Q?ER(D):D;if(v=v[G])for(G=0;G<v.length;G++){var x=v[G];if(x.info.lastRun!==JH&&(!Q||kk8(D,x.trigger))){x.info.lastRun=JH;x=x.info;for(var f=h,C=a,U=0,L=f.length-1,Z=-1;U<=L;){var E=U+L>>1,I=C.get(f[E].methodInfo)-C.get(x.methodInfo);if(I<0)U=E+1;else if(I>0)L=E-1;else{Z=E;break}}Z<
0&&(Z=L+1);f.splice(Z,0,x)}}},sQi=[],Rkm=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"),UZ=F2(function(D){var v=nZ9(mD9(D));
D=function(){var h=v.call(this)||this;h.__isPropertyEffectsClient=!0;return h};
_.J(D,v);D.prototype._initializeProperties=function(){v.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
D.prototype._registerHost=function(){if(zc.length){var h=zc[zc.length-1];h._enqueueClient(this);this.__dataHost=h}};
D.prototype._initializeProtoProperties=function(h){this.__data=Object.create(h);this.__dataPending=Object.create(h);this.__dataOld={}};
D.prototype._initializeInstanceProperties=function(h){var a=this.__readOnly,Q;for(Q in h)a&&a[Q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Q]=this.__dataPending[Q]=h[Q])};
D.prototype._addPropertyEffect=function(h,a,Q){this._createPropertyAccessor(h,a=="__readOnly");var G=gYA(this,a,!0)[h];G||(G=this[a][h]=[]);G.push(Q)};
D.prototype._removePropertyEffect=function(h,a,Q){h=gYA(this,a,!0)[h];Q=h.indexOf(Q);Q>=0&&h.splice(Q,1)};
D.prototype._hasPropertyEffect=function(h,a){a=this[a];return!(!a||!a[h])};
D.prototype._hasReadOnlyEffect=function(h){return this._hasPropertyEffect(h,"__readOnly")};
D.prototype._hasNotifyEffect=function(h){return this._hasPropertyEffect(h,"__notifyEffects")};
D.prototype._hasReflectEffect=function(h){return this._hasPropertyEffect(h,"__reflectEffects")};
D.prototype._hasComputedEffect=function(h){return this._hasPropertyEffect(h,"__computeEffects")};
D.prototype._setPendingPropertyOrPath=function(h,a,Q,G){if(G||ER(Array.isArray(h)?h[0]:h)!==h){if(!G&&(G=Sg(this,h),h=ISL(this,h,a),!h||!v.prototype._shouldPropertyChange.call(this,h,a,G)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(h,a,Q)){if(Q=this.__dataLinkedPaths)for(var x in Q)G=Q[x],IM(x,h)?(G=gk(x,G,h),this._setPendingPropertyOrPath(G,a,!0,!0)):IM(G,h)&&(G=gk(G,x,h),this._setPendingPropertyOrPath(G,a,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[h])return this._setPendingProperty(h,
a,Q);this[h]=a}return!1};
D.prototype._setUnmanagedPropertyToNode=function(h,a,Q){if(Q!==h[a]||typeof Q=="object")a==="className"&&(h=(0,_.lM)(h)),h[a]=Q};
D.prototype._setPendingProperty=function(h,a,Q){var G=this.__dataHasPaths&&ZO(h);if(this._shouldPropertyChange(h,a,(G?this.__dataTemp:this.__data)[h])){this.__dataPending||(this.__dataPending={},this.__dataOld={});h in this.__dataOld||(this.__dataOld[h]=this.__data[h]);G?this.__dataTemp[h]=a:this.__data[h]=a;this.__dataPending[h]=a;if(G||this.__notifyEffects&&this.__notifyEffects[h])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[h]=Q;return!0}return!1};
D.prototype._setProperty=function(h,a){this._setPendingProperty(h,a,!0)&&this._invalidateProperties()};
D.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
D.prototype._enqueueClient=function(h){this.__dataPendingClients=this.__dataPendingClients||[];h!==this&&this.__dataPendingClients.push(h)};
D.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
D.prototype.__enableOrFlushClients=function(){var h=this.__dataPendingClients;if(h){this.__dataPendingClients=null;for(var a=0;a<h.length;a++){var Q=h[a];Q.__dataEnabled?Q.__dataPending&&Q._flushProperties():Q._enableProperties()}}};
D.prototype._readyClients=function(){this.__enableOrFlushClients()};
D.prototype.setProperties=function(h,a){for(var Q in h)!a&&this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,h[Q],!0);this._invalidateProperties()};
D.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
D.prototype._propertiesChanged=function(h,a,Q){h=this.__dataHasPaths;this.__dataHasPaths=!1;var G;if(G=this.__computeEffects)if(gZJ){JH++;var x=YkI(this),f=[],C;for(C in a)TR4(C,G,f,x,h);for(;C=f.shift();)cLr(this,"",a,Q,C)&&TR4(C.methodInfo,G,f,x,h);Object.assign(Q,this.__dataOld);Object.assign(a,this.__dataPending);this.__dataPending=null}else for(x=a;p9(this,G,x,Q,h);)Object.assign(Q,this.__dataOld),Object.assign(a,this.__dataPending),x=this.__dataPending,this.__dataPending=null;G=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(a,Q,h);this._flushClients();p9(this,this.__reflectEffects,a,Q,h);p9(this,this.__observeEffects,a,Q,h);if(G){x=this.__notifyEffects;f=JH++;for(var U in G)if(G[U]){if(C=x){var L=x;C=f;var Z=U,E=a,I=Q,S=h,B=!1,A=S?ER(Z):Z;if(L=L[A]){A=0;for(var d=L.length,b=void 0;A<d&&(b=L[A]);A++)b.info&&b.info.lastRun===C||S&&!kk8(Z,b.trigger)||(b.info&&(b.info.lastRun=C),b.fn(this,Z,E,I,b.info,S,void 0),B=!0)}C=B}if(C)var W=!0;else{if(C=h)C=U,Z=a,E=ER(C),E!==
C?(E=L9(E)+"-changed",JL8(this,E,Z[C],C),C=!0):C=!1;C&&(W=!0)}}var K;W&&(K=this.__dataHost)&&K._invalidateProperties&&K._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
D.prototype._propagatePropertyChanges=function(h,a,Q){this.__propagateEffects&&p9(this,this.__propagateEffects,h,a,Q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,h,a,Q)};
D.prototype._runEffectsForTemplate=function(h,a,Q,G){var x=this,f=function(C,U){p9(x,h.propertyEffects,C,Q,U,h.nodeList);for(var L=h.firstChild;L;L=L.nextSibling)x._runEffectsForTemplate(L,C,Q,U)};
h.runEffects?h.runEffects(f,a,G):f(a,G)};
D.prototype.linkPaths=function(h,a){h=kX(h);a=kX(a);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[h]=a};
D.prototype.unlinkPaths=function(h){h=kX(h);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[h]};
D.prototype.notifySplices=function(h,a){var Q={path:""};h=Sg(this,h,Q);w7c(this,h,Q.path,a)};
D.prototype.get=function(h,a){return Sg(a||this,h)};
D.prototype.set=function(h,a,Q){Q?ISL(Q,h,a):this.__readOnly&&this.__readOnly[h]||this._setPendingPropertyOrPath(h,a,!0)&&this._invalidateProperties()};
D.prototype.push=function(h){var a=_.Kz.apply(1,arguments),Q={path:""},G=Sg(this,h,Q),x=G.length,f=G.push.apply(G,_.j_(a));a.length&&ca(this,G,Q.path,x,a.length,[]);return f};
D.prototype.pop=function(h){var a={path:""};h=Sg(this,h,a);var Q=!!h.length,G=h.pop();Q&&ca(this,h,a.path,h.length,0,[G]);return G};
D.prototype.splice=function(h,a,Q){var G=_.Kz.apply(3,arguments),x={path:""},f=Sg(this,h,x);a<0?a=f.length-Math.floor(-a):a&&(a=Math.floor(a));var C=arguments.length===2?f.splice(a):f.splice.apply(f,[a,Q].concat(_.j_(G)));(G.length||C.length)&&ca(this,f,x.path,a,G.length,C);return C};
D.prototype.shift=function(h){var a={path:""};h=Sg(this,h,a);var Q=!!h.length,G=h.shift();Q&&ca(this,h,a.path,0,0,[G]);return G};
D.prototype.unshift=function(h){var a=_.Kz.apply(1,arguments),Q={path:""},G=Sg(this,h,Q),x=G.unshift.apply(G,_.j_(a));a.length&&ca(this,G,Q.path,0,a.length,[]);return x};
D.prototype.notifyPath=function(h,a){if(arguments.length==1){var Q={path:""};a=Sg(this,h,Q);Q=Q.path}else Q=Array.isArray(h)?kX(h):h;this._setPendingPropertyOrPath(Q,a,!0,!0)&&this._invalidateProperties()};
D.prototype._createReadOnlyProperty=function(h,a){this._addPropertyEffect(h,"__readOnly");a&&(this["_set"+(h[0].toUpperCase()+h.substring(1))]=function(Q){this._setProperty(h,Q)})};
D.prototype._createPropertyObserver=function(h,a,Q){var G={property:h,method:a,dynamicFn:!!Q};this._addPropertyEffect(h,"__observeEffects",{fn:Sk7,info:G,trigger:{name:h}});Q&&this._addPropertyEffect(a,"__observeEffects",{fn:Sk7,info:G,trigger:{name:a}})};
D.prototype._createMethodObserver=function(h,a){var Q=HKc(h);if(!Q)throw Error("Dd`"+h);dhA(this,Q,"__observeEffects",Bo7,null,a)};
D.prototype._createNotifyingProperty=function(h){this._addPropertyEffect(h,"__notifyEffects",{fn:p7L,info:{eventName:L9(h)+"-changed",property:h}})};
D.prototype._createReflectedProperty=function(h){var a=this.constructor.attributeNameForProperty(h);a[0]==="-"?console.warn("Property "+h+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(h,"__reflectEffects",{fn:lSc,info:{attrName:a}})};
D.prototype._createComputedProperty=function(h,a,Q){var G=HKc(a);if(!G)throw Error("Ed`"+a);a=dhA(this,G,"__computeEffects",cLr,h,Q);gYA(this,"__computeInfo")[h]=a};
D.prototype._marshalArgs=function(h,a,Q){for(var G=this.__data,x=[],f=0,C=h.length;f<C;f++){var U=h[f],L=U.name,Z=U.structured,E=U.wildcard,I=U.value;U.literal||(E?(U=IM(L,a),Z=yL4(G,Q,U?a:L),I={path:U?a:L,value:Z,base:U?Sg(G,L):Z}):I=Z?yL4(G,Q,L):G[L]);if(Ba&&!this._overrideLegacyUndefined&&I===void 0&&h.length>1)return YX;x[f]=I}return x};
D.addPropertyEffect=function(h,a,Q){this.prototype._addPropertyEffect(h,a,Q)};
D.createPropertyObserver=function(h,a,Q){this.prototype._createPropertyObserver(h,a,Q)};
D.createMethodObserver=function(h,a){this.prototype._createMethodObserver(h,a)};
D.createNotifyingProperty=function(h){this.prototype._createNotifyingProperty(h)};
D.createReadOnlyProperty=function(h,a){this.prototype._createReadOnlyProperty(h,a)};
D.createReflectedProperty=function(h){this.prototype._createReflectedProperty(h)};
D.createComputedProperty=function(h,a,Q){this.prototype._createComputedProperty(h,a,Q)};
D.bindTemplate=function(h){return this.prototype._bindTemplate(h)};
D.prototype._bindTemplate=function(h,a){var Q=this.constructor._parseTemplate(h),G=this.__preBoundTemplateInfo==Q;if(!G)for(var x in Q.propertyEffects)this._createPropertyAccessor(x);a?(Q=Object.create(Q),Q.wasPreBound=G,this.__templateInfo?(h=h._parentTemplateInfo||this.__templateInfo,a=h.lastChild,Q.parent=h,h.lastChild=Q,(Q.previousSibling=a)?a.nextSibling=Q:h.firstChild=Q):this.__templateInfo=Q):this.__preBoundTemplateInfo=Q;return Q};
D._addTemplatePropertyEffect=function(h,a,Q){(h.hostProps=h.hostProps||{})[a]=!0;h=h.propertyEffects=h.propertyEffects||{};(h[a]=h[a]||[]).push(Q)};
D.prototype._stampTemplate=function(h,a){a=a||this._bindTemplate(h,!0);zc.push(this);h=v.prototype._stampTemplate.call(this,h,a);zc.pop();a.nodeList=h.nodeList;if(!a.wasPreBound)for(var Q=a.childNodes=[],G=h.firstChild;G;G=G.nextSibling)Q.push(G);h.templateInfo=a;Q=a.nodeList;G=a.nodeInfoList;if(G.length)for(var x=0;x<G.length;x++){var f=Q[x],C=G[x].bindings;if(C)for(var U=0;U<C.length;U++){var L=C[U],Z=f,E=L;if(E.isCompound){for(var I=Z.__dataCompoundStorage||(Z.__dataCompoundStorage={}),S=E.parts,
B=Array(S.length),A=0;A<S.length;A++)B[A]=S[A].literal;S=E.target;I[S]=B;E.literal&&E.kind=="property"&&(S==="className"&&(Z=(0,_.lM)(Z)),Z[S]=E.literal)}bKA(f,this,L)}f.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients());return h};
D.prototype._removeBoundDom=function(h){h=h.templateInfo;var a=h.previousSibling,Q=h.nextSibling,G=h.parent;a?a.nextSibling=Q:G&&(G.firstChild=Q);Q?Q.previousSibling=a:G&&(G.lastChild=a);h.nextSibling=h.previousSibling=null;h=h.childNodes;for(a=0;a<h.length;a++)Q=h[a],(0,_.lM)((0,_.lM)(Q).parentNode).removeChild(Q)};
D._parseTemplateNode=function(h,a,Q){var G=v._parseTemplateNode.call(this,h,a,Q);if(h.nodeType===Node.TEXT_NODE){var x=this._parseBindings(h.textContent,a);x&&(h.textContent=jQu(x)||" ",qkc(this,a,Q,"text","textContent",x),G=!0)}return G};
D._parseTemplateNodeAttribute=function(h,a,Q,G,x){var f=this._parseBindings(x,a);if(f){x=G;var C="property";K69.test(G)?C="attribute":G[G.length-1]=="$"&&(G=G.slice(0,-1),C="attribute");var U=jQu(f);U&&C=="attribute"&&(G=="class"&&h.hasAttribute("class")&&(U+=" "+h.getAttribute(G)),h.setAttribute(G,U));C=="attribute"&&x=="disable-upgrade$"&&h.setAttribute(G,"");h.localName==="input"&&x==="value"&&h.setAttribute(x,"");h.removeAttribute(x);C==="property"&&(G=UR(G));qkc(this,a,Q,C,G,f,U);return!0}return v._parseTemplateNodeAttribute.call(this,
h,a,Q,G,x)};
D._parseTemplateNestedTemplate=function(h,a,Q){var G=v._parseTemplateNestedTemplate.call(this,h,a,Q),x=h.parentNode,f=Q.templateInfo,C=x.localName==="dom-if",U=x.localName==="dom-repeat";xs&&(C||U)&&(x.removeChild(h),Q=Q.parentInfo,Q.templateInfo=f,Q.noted=!0,G=!1);h=f.hostProps;if(M_&&C)h&&(a.hostProps=Object.assign(a.hostProps||{},h),xs||(Q.parentInfo.noted=!0));else for(var L in h)qkc(this,a,Q,"property","_host_"+L,[{mode:"{",source:L,dependencies:[L],hostProp:!0}]);return G};
D._parseBindings=function(h,a){for(var Q=[],G=0,x;(x=Rkm.exec(h))!==null;){x.index>G&&Q.push({literal:h.slice(G,x.index)});G=x[1][0];var f=!!x[2];x=x[3].trim();var C=!1,U="",L=-1;G=="{"&&(L=x.indexOf("::"))>0&&(U=x.substring(L+2),x=x.substring(0,L),C=!0);L=HKc(x);var Z=[];if(L){var E=L,I=E.args;E=E.methodName;for(var S=0;S<I.length;S++){var B=I[S];B.literal||Z.push(B)}if((I=a.dynamicFns)&&I[E]||L.static)Z.push(E),L.dynamicFn=!0}else Z.push(x);Q.push({source:x,mode:G,negate:f,customEvent:C,signature:L,
dependencies:Z,event:U});G=Rkm.lastIndex}G&&G<h.length&&(h=h.substring(G))&&Q.push({literal:h});return Q.length?Q:null};
D._evaluateBinding=function(h,a,Q,G,x,f){h=a.signature?Bo7(h,Q,G,x,a.signature):Q!=a.source?Sg(h,a.source):f&&ZO(Q)?Sg(h,Q):h.__data[Q];a.negate&&(h=!h);return h};
_.GT.Object.defineProperties(D.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return OGs}}});
return D}),zc=[];var iG$=window.ShadyCSS&&window.ShadyCSS.cssBuild,L6=F2(function(D){function v(a,Q,G,x){if(!iG$){for(var f=Q.content.querySelectorAll("style"),C=KP8(Q),U=Toc(G),L=Q.content.firstElementChild,Z=0;Z<U.length;Z++){var E=U[Z];E.textContent=a._processStyleText(E.textContent,x);Q.content.insertBefore(E,L)}for(L=U=0;L<C.length;L++)Z=C[L],E=f[U],E!==Z?(Z=Z.cloneNode(!0),E.parentNode.insertBefore(Z,E)):U++,Z.textContent=a._processStyleText(Z.textContent,x)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Q,
G);if(S44&&iG$&&L6M&&(Q=Q.content.querySelectorAll("style"))){var I="";Array.from(Q).forEach(function(S){I+=S.textContent;S.parentNode.removeChild(S)});
a._styleSheet=new CSSStyleSheet;a._styleSheet.replaceSync(I)}}
var h=AAR(UZ(D));D=function(){return h.call(this)||this};
_.J(D,h);D._finalizeClass=function(){h._finalizeClass.call(this);var a;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(a=this.__ownObservers)&&this.createObservers(a,this._properties);this._prepareTemplate()};
D._prepareTemplate=function(){var a=this.template;a&&(typeof a==="string"?(console.error("template getter must return HTMLTemplateElement"),a=null):K9||(a=a.cloneNode(!0)));this.prototype._template=a};
D.createProperties=function(a){for(var Q in a){var G=this.prototype,x=Q,f=a[Q],C=a;f.computed&&(f.readOnly=!0);f.computed&&(G._hasReadOnlyEffect(x)?console.warn("Cannot redefine computed property '"+x+"'."):G._createComputedProperty(x,f.computed,C));f.readOnly&&!G._hasReadOnlyEffect(x)?G._createReadOnlyProperty(x,!f.computed):f.readOnly===!1&&G._hasReadOnlyEffect(x)&&console.warn("Cannot make readOnly property '"+x+"' non-readOnly.");f.reflectToAttribute&&!G._hasReflectEffect(x)?G._createReflectedProperty(x):
f.reflectToAttribute===!1&&G._hasReflectEffect(x)&&console.warn("Cannot make reflected property '"+x+"' non-reflected.");f.notify&&!G._hasNotifyEffect(x)?G._createNotifyingProperty(x):f.notify===!1&&G._hasNotifyEffect(x)&&console.warn("Cannot make notify property '"+x+"' non-notify.");f.observer&&G._createPropertyObserver(x,f.observer,C[f.observer]);G._addPropertyToAttributeMap(x)}};
D.createObservers=function(a,Q){for(var G=this.prototype,x=0;x<a.length;x++)G._createMethodObserver(a[x],Q)};
D.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);h.prototype._initializeProperties.call(this);this.rootPath=ZGm;this.importPath=this.constructor.importPath;var a=this.constructor;if(!a.hasOwnProperty("__propertyDefaults")){a.__propertyDefaults=null;var Q=a._properties,G;for(G in Q){var x=Q[G];"value"in x&&(a.__propertyDefaults=a.__propertyDefaults||{},a.__propertyDefaults[G]=x)}}if(a=a.__propertyDefaults)for(var f in a)Q=a[f],
this._canApplyPropertyDefault(f)&&(Q=typeof Q.value=="function"?Q.value.call(this):Q.value,this._hasAccessor(f)?this._setPendingProperty(f,Q,!0):this[f]=Q)};
D.prototype._canApplyPropertyDefault=function(a){return!this.hasOwnProperty(a)};
D._processStyleText=function(a,Q){return QQc(a,Q)};
D._finalizeTemplate=function(a){var Q=this.prototype._template;if(Q&&!Q.__polymerFinalized){Q.__polymerFinalized=!0;var G=this.importPath;G=G?_.FL(G):"";v(this,Q,a,G);this.prototype._bindTemplate(Q)}};
D.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);h.prototype.connectedCallback.call(this)};
D.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);h.prototype.ready.call(this)};
D.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));h.prototype._readyClients.call(this)};
D.prototype._attachDom=function(a){var Q=(0,_.lM)(this);if(Q.attachShadow)return a?(Q.shadowRoot||(Q.attachShadow({mode:"open",shadyUpgradeFragment:a}),Q.shadowRoot.appendChild(a),this.constructor._styleSheet&&(Q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),IUF&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Q.shadowRoot),Q.shadowRoot):null;throw Error("Gd");};
D.prototype.updateStyles=function(a){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,a)};
D.prototype.resolveUrl=function(a,Q){!Q&&this.importPath&&(Q=_.FL(this.importPath));return _.FL(a,Q)};
D._parseTemplateContent=function(a,Q,G){Q.dynamicFns=Q.dynamicFns||this._properties;return h._parseTemplateContent.call(this,a,Q,G)};
D._addTemplatePropertyEffect=function(a,Q,G){!Wa||Q in this._properties||G.info.part.signature&&G.info.part.signature.static||G.info.part.hostProp||a.nestedTemplate||console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");return h._addTemplatePropertyEffect.call(this,a,Q,G)};
_.GT.Object.defineProperties(D,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var a=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof a==="function"&&(a=a());if(a===void 0){if(a=this.hasOwnProperty("is")){a=this.is;var Q=null;if(a&&(!tH||EZ$)&&(Q=XL.import(a,"template"),tH&&!Q))throw Error("Fd`"+a);a=Q}a=a||Object.getPrototypeOf(this.prototype).constructor.template}this._template=a}return this._template},
set:function(a){this._template=a}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var a=this.importMeta;a?this._importPath=Gkr(a.url):this._importPath=(a=XL.import(this.is))&&a.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return D});var W64=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(D){return D}}),D6q=function(D,v){tq4(D,v);
this.value=v.reduce(function(h,a,Q){return h+v72(a)+D[Q+1]},D[0]).toString()},tq4;
D6q.prototype.toString=function(){return this.value};
_.rAy=function(D){var v=_.Kz.apply(1,arguments);tq4(D,v);var h=document.createElement("template");v=v.reduce(function(a,Q,G){if(Q instanceof HTMLTemplateElement)Q=Q.innerHTML;else if(Q instanceof D6q)Q=v72(Q);else throw Error("Id`"+Q);return a+Q+D[G+1]},D[0]);
W64&&(v=W64.createHTML(v));h.innerHTML=v;return h};
tq4=function(D,v){if(!Array.isArray(D)||!Array.isArray(D.raw)||v.length!==D.length-1)throw new TypeError("Jd");};var Z$=L6(HTMLElement);var uh9=F2(function(D){var v=L6(D);D=function(){var h=v.call(this)||this;h.__lastItems=null;h.__lastMulti=null;h.__selectedMap=null;return h};
_.J(D,v);D.prototype.__updateSelection=function(h,a){var Q=a.path;Q=="items"?(a=a.base||[],Q=this.__lastItems,h!==this.__lastMulti&&this.clearSelection(),Q&&(Q=uCI(a,Q),this.__applySplices(Q)),this.__lastItems=a,this.__lastMulti=h):a.path=="items.splices"?this.__applySplices(a.value.indexSplices):(h=Q.slice(6),a=parseInt(h,10),h.indexOf(".")<0&&h==a&&this.__deselectChangedIdx(a))};
D.prototype.__applySplices=function(h){for(var a=this,Q=this.__selectedMap,G={},x=0;x<h.length;G={s$jscomp$109:void 0},x++){G.s$jscomp$109=h[x];Q.forEach(function(L){return function(Z,E){Z<L.s$jscomp$109.index||(Z>=L.s$jscomp$109.index+L.s$jscomp$109.removed.length?Q.set(E,Z+L.s$jscomp$109.addedCount-L.s$jscomp$109.removed.length):Q.set(E,-1))}}(G));
for(var f=0;f<G.s$jscomp$109.addedCount;f++){var C=G.s$jscomp$109.index+f;Q.has(this.items[C])&&Q.set(this.items[C],C)}}this.__updateLinks();var U=0;Q.forEach(function(L,Z){L<0?(a.multi?a.splice("selected",U,1):a.selected=a.selectedItem=null,Q.delete(Z)):U++})};
D.prototype.__updateLinks=function(){var h=this;this.__dataLinkedPaths={};if(this.multi){var a=0;this.__selectedMap.forEach(function(Q){Q>=0&&h.linkPaths("items."+Q,"selected."+a++)})}else this.__selectedMap.forEach(function(Q){h.linkPaths("selected","items."+Q);
h.linkPaths("selectedItem","items."+Q)})};
D.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
D.prototype.isSelected=function(h){return this.__selectedMap.has(h)};
D.prototype.isIndexSelected=function(h){return this.isSelected(this.items[h])};
D.prototype.__deselectChangedIdx=function(h){var a=this,Q=this.__selectedIndexForItemIndex(h);if(Q>=0){var G=0;this.__selectedMap.forEach(function(x,f){Q==G++&&a.deselect(f)})}};
D.prototype.__selectedIndexForItemIndex=function(h){if(h=this.__dataLinkedPaths["items."+h])return parseInt(h.slice(9),10)};
D.prototype.deselect=function(h){var a=this.__selectedMap.get(h);if(a>=0){this.__selectedMap.delete(h);var Q;this.multi&&(Q=this.__selectedIndexForItemIndex(a));this.__updateLinks();this.multi?this.splice("selected",Q,1):this.selected=this.selectedItem=null}};
D.prototype.deselectIndex=function(h){this.deselect(this.items[h])};
D.prototype.select=function(h){this.selectIndex(this.items.indexOf(h))};
D.prototype.selectIndex=function(h){var a=this.items[h];this.isSelected(a)?this.toggle&&this.deselectIndex(h):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(a,h),this.__updateLinks(),this.multi?this.push("selected",a):this.selected=this.selectedItem=a)};
_.GT.Object.defineProperties(D,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return D}),DPJ=uh9(Z$),EZ=function(){return DPJ.apply(this,arguments)||this};
_.J(EZ,DPJ);_.GT.Object.defineProperties(EZ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(EZ.is,EZ);var vVp=window.Polymer;window.Polymer=function(D){return window.Polymer._polymerFn(D)};
vVp&&Object.assign(Polymer,vVp);Polymer._polymerFn=function(){throw Error("Kd");};/*

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:QQc,resolveUrl:_.FL,pathFromUrl:Gkr};Polymer.DomModule=XL;Polymer.Async={timeOut:_.o5,animationFrame:_.mN,idlePeriod:Y44,microTask:n9};Polymer.dedupingMixin=F2;Polymer.wrap=_.lM;Polymer.PropertiesChanged=cAt;Polymer.telemetry={instanceCount:XfR,incrementInstanceCount:function(){XfR++},
registrations:M62,register:fS4,dumpRegistrations:function(){M62.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=AAR;Polymer.CaseMap={dashToCamelCase:UR,camelToDashCase:L9};Polymer.PropertyAccessors=mD9;Polymer.TemplateStamp=nZ9;Polymer.Path={isPath:ZO,root:ER,isAncestor:LPA,isDescendant:IM,translate:gk,matches:ZKA,normalize:kX,split:EY4,get:Sg,set:ISL,isDeep:ZO};Polymer.Settings={useShadow:TR,useNativeCSSProperties:C0s,useNativeCustomElements:oZ9,get rootPath(){return ZGm},setRootPath:function(D){ZGm=D},
get sanitizeDOMValue(){return Nb},setSanitizeDOMValue:function(D){Nb=D},
get passiveTouchGestures(){return Fvq},setPassiveTouchGestures:function(D){Fvq=D},
get strictTemplatePolicy(){return tH},setStrictTemplatePolicy:function(D){tH=D},
get allowTemplateFromDomModule(){return EZ$},setAllowTemplateFromDomModule:function(D){EZ$=D},
get legacyOptimizations(){return K9},setLegacyOptimizations:function(D){K9=D},
get syncInitialRender(){return IUF},setSyncInitialRender:function(D){IUF=D},
get legacyUndefined(){return Ba},setLegacyUndefined:function(D){Ba=D},
get legacyWarnings(){return Wa},setLegacyWarnings:function(D){Wa=D},
get orderedComputed(){return gZJ},setOrderedComputed:function(D){gZJ=D},
get fastDomIf(){return M_},setFastDomIf:function(D){M_=D},
get removeNestedTemplates(){return xs},setRemoveNestedTemplates:function(D){xs=D},
get suppressTemplateNotifications(){return f6},setSuppressTemplateNotifications:f6};Polymer.rootPath!==void 0&&(ZGm=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Nb=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Fvq=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(tH=Polymer.strictTemplatePolicy);EZ$=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(K9=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(IUF=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Ba=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Wa=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(gZJ=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(M_=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(xs=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(f6=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Nb},
set:function(D){Nb=D}});Polymer.PropertyEffects=UZ;Polymer.StyleGather={stylesFromModules:OK7,stylesFromModule:nYo,stylesFromTemplate:KP8,stylesFromModuleImports:Toc,cssFromModules:iK2,cssFromModule:RmO,cssFromTemplate:WPo,cssFromModuleImports:function(D){return(D=XL.import(D))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):""}};Polymer.ElementMixin=L6;Polymer.updateStyles=function(D){window.ShadyCSS&&window.ShadyCSS.styleDocument(D)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:uCI};Polymer.html=_.rAy;Polymer.htmlLiteral=function(D){return new D6q(D,_.Kz.apply(1,arguments))};Polymer.Element=Z$;Polymer.ArraySelectorMixin=uh9;Polymer.ArraySelector=EZ;var hf4=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,a6F=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,bWA=/@media\s(.*)/;var Qp2=null,$6f=window.HTMLImports&&window.HTMLImports.whenReady||null,Gw2;var $PJ=null,I5=null,gm=function(){this.customStyles=[];this.enqueued=!1;VIO(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},QXR=function(D){!D.enqueued&&I5&&(D.enqueued=!0,VIO(I5))};
gm.prototype.addCustomStyle=function(D){D.__seenByShadyCSS||(D.__seenByShadyCSS=!0,this.customStyles.push(D),QXR(this))};
gm.prototype.getStyleForCustomStyle=function(D){if(D.__shadyCSSCachedStyle)return D.__shadyCSSCachedStyle;var v;D.getStyle?v=D.getStyle():v=D;return v};
gm.prototype.processStyles=function(){for(var D=this.customStyles,v=0;v<D.length;v++){var h=D[v];if(!h.__shadyCSSCachedStyle){var a=this.getStyleForCustomStyle(h);a&&(a=a.__appliedElement||a,$PJ&&$PJ(a),h.__shadyCSSCachedStyle=a)}}return D};
gm.prototype.addCustomStyle=gm.prototype.addCustomStyle;gm.prototype.getStyleForCustomStyle=gm.prototype.getStyleForCustomStyle;gm.prototype.processStyles=gm.prototype.processStyles;Object.defineProperties(gm.prototype,{transformCallback:{get:function(){return $PJ},
set:function(D){$PJ=D}},
validateCallback:{get:function(){return I5},
set:function(D){var v=!1;I5||(v=!0);I5=D;v&&QXR(this)}}});var x68=!(window.ShadyDOM&&window.ShadyDOM.inUse),PTq,QC;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(QC=window.ShadyCSS.cssBuild);var Gbb=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?PTq=window.ShadyCSS.nativeCss:window.ShadyCSS?(MIq(window.ShadyCSS),window.ShadyCSS=void 0):MIq(window.WebComponents&&window.WebComponents.flags);var XuO=PTq;var VLM=new gm;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(D,v){VLM.processStyles();hcu(D,v)},
styleElement:function(){VLM.processStyles()},
styleDocument:function(D){VLM.processStyles();hcu(document.body,D)},
getComputedStyleValue:function(D,v){return aK2(D,v)},
flushCustomStyles:function(){},
nativeCss:XuO,nativeShadow:x68,cssBuild:QC,disableRuntime:Gbb});window.ShadyCSS.CustomStyleInterface=VLM;var Pu4=window.ShadyCSS.CustomStyleInterface,ks=function(){var D=HTMLElement.call(this)||this;D._style=null;Pu4.addCustomStyle(D);return D};
_.J(ks,HTMLElement);ks.prototype.getStyle=function(){if(this._style)return this._style;var D=this.querySelector("style");if(!D)return null;this._style=D;var v=D.getAttribute("include");v&&(D.removeAttribute("include"),D.textContent=iK2(v)+D.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
ks.prototype.getStyle=ks.prototype.getStyle;window.customElements.define("custom-style",ks);Polymer.CustomStyle=ks;var Sy=function(){this._timer=this._callback=this._asyncModule=null},JT,MLy;
Sy.prototype.setConfig=function(D,v){var h=this;this._asyncModule=D;this._callback=v;this._timer=this._asyncModule.run(function(){h._timer=null;JT.delete(h);h._callback()})};
Sy.prototype.cancel=function(){this.isActive()&&(xPp(this),JT.delete(this))};
var xPp=function(D){D.isActive()&&(D._asyncModule.cancel(D._timer),D._timer=null)};
Sy.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Sy.prototype.isActive=function(){return this._timer!=null};
_.p6=function(D,v,h){D instanceof Sy?xPp(D):D=new Sy;D.setConfig(v,h);return D};
JT=new Set;_.lr=function(D){JT.add(D)};
MLy=function(){var D=!!JT.size;JT.forEach(function(v){try{v.flush()}catch(h){setTimeout(function(){throw h;})}});
return D};var CT8=typeof document.head.style.touchAction==="string",fKr=["mousedown","mousemove","mouseup","click"],g7q=[0,1,4,2],f69;try{f69=(new MouseEvent("test",{buttons:1})).buttons===1}catch(D){f69=!1}var IKL=f69,o7f=!1;(function(){try{var D=Object.defineProperty({},"passive",{get:function(){o7f=!0}});
window.addEventListener("test",null,D);window.removeEventListener("test",null,D)}catch(v){}})();
var U6o=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Lvi=[],CuF={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},q12={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Zac=function(D){var v=D.sourceCapabilities;if(!v||v.firesTouchEvents)if(D.__polymerGesturesHandled={skip:!0},D.type==="click"){v=!1;for(var h=pDO(D),a=0;a<h.length;a++){if(h[a].nodeType===Node.ELEMENT_NODE)if(h[a].localName==="label")Lvi.push(h[a]);
else if(CuF[h[a].localName]){var Q=h[a];var G=Array.prototype.slice.call(Q.labels||[]);if(!G.length){G=[];try{var x=Q.getRootNode();if(Q.id){var f=x.querySelectorAll("label[for = '"+Q.id+"']");for(Q=0;Q<f.length;Q++)G.push(f[Q])}}catch(C){}}for(Q=0;Q<G.length;Q++)v=v||Lvi.indexOf(G[Q])>-1}if(h[a]===oVp)return}v||(D.preventDefault(),D.stopPropagation())}},oVp=null,N_=null,NYL=0,Y12=0,lKc=-1,BYr=!1;
document.addEventListener("touchend",function(D){N_||E7o(!0);oVp=pDO(D)[0];N_=_.p6(N_,_.o5.after(2500),function(){E7o();N_=oVp=null})},o7f?{passive:!0}:!1);
var pDO=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(D){return D.composedPath&&D.composedPath()||[]},sR={},dk=[];
c8I({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){bM(this.info)},
mousedown:function(D){if(qb(D)){var v=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),h=this;S1i(this.info,function(a){qb(a)||(OR("up",v,a),bM(h.info))},function(a){qb(a)&&OR("up",v,a);
bM(h.info)});
OR("down",v,D)}},
touchstart:function(D){OR("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)},
touchend:function(D){OR("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)}});
c8I({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(D){this.moves.length>2&&this.moves.shift();this.moves.push(D)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;bM(this.info)},
mousedown:function(D){if(qb(D)){var v=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),h=this,a=function(Q){var G=Q.clientX,x=Q.clientY;XDr(h.info,G,x)&&(h.info.state=h.info.started?Q.type==="mouseup"?"end":"track":"start",h.info.state==="start"&&jg("tap"),h.info.addMove({x:G,y:x}),qb(Q)||(h.info.state="end",bM(h.info)),v&&A82(h.info,v,Q),h.info.started=!0)};
S1i(this.info,a,function(Q){h.info.started&&a(Q);bM(h.info)});
this.info.x=D.clientX;this.info.y=D.clientY}},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchmove:function(D){var v=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];var h=D.clientX,a=D.clientY;XDr(this.info,h,a)&&(this.info.state==="start"&&jg("tap"),this.info.addMove({x:h,y:a}),A82(this.info,v,D),this.info.state="track",this.info.started=!0)},
touchend:function(D){var v=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:D.clientX,y:D.clientY}),A82(this.info,v,D))}});
c8I({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(D){qb(D)&&(this.info.x=D.clientX,this.info.y=D.clientY)},
click:function(D){qb(D)&&baI(this.info,D)},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchend:function(D){baI(this.info,D.changedTouches[0],D)}});var Fcy=F2(function(D){var v=function(){return D.apply(this,arguments)||this};
_.J(v,D);v.prototype._addEventListenerToNode=function(h,a,Q){mK(h,a,Q)||D.prototype._addEventListenerToNode.call(this,h,a,Q)};
v.prototype._removeEventListenerFromNode=function(h,a,Q){Ha(h,a,Q)||D.prototype._removeEventListenerFromNode.call(this,h,a,Q)};
return v});var Ys=F2(function(D){var v=function(){return D.apply(this,arguments)||this};
_.J(v,D);v.prototype._shouldPropertyChange=function(h,a,Q){return d6c(this,h,a,Q,!0)};
return v}),zfb=F2(function(D){var v=function(){return D.apply(this,arguments)||this};
_.J(v,D);v.prototype._shouldPropertyChange=function(h,a,Q){return d6c(this,h,a,Q,this.mutableData)};
_.GT.Object.defineProperties(v,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return v});
Ys._mutablePropertyChange=d6c;var jpc=!1;var UPm=Fcy(zfb(UZ(HTMLElement))),BN=function(){var D=UPm.call(this)||this;if(tH)throw Error("Ld");D.root=null;D.$=null;D.__children=null;return D};
_.J(BN,UPm);_.V=BN.prototype;_.V.attributeChangedCallback=function(){this.mutableData=!0};
_.V.connectedCallback=function(){sp2()||(this.style.display="none");this.render()};
_.V.disconnectedCallback=function(){this.__removeChildren()};
_.V.__insertChildren=function(){(0,_.lM)((0,_.lM)(this).parentNode).insertBefore(this.root,this)};
_.V.__removeChildren=function(){if(this.__children)for(var D=0;D<this.__children.length;D++)this.root.appendChild(this.__children[D])};
_.V.render=function(){var D=this;if(!this.__children){var v=v||this.querySelector("template");if(!v){var h=new MutationObserver(function(){if(v=D.querySelector("template"))h.disconnect(),D.render();else throw Error("Md");});
h.observe(this,{childList:!0});return}this.root=this._stampTemplate(v);this.$=this.root.$;this.__children=[];for(var a=this.root.firstChild;a;a=a.nextSibling)this.__children[this.__children.length]=a;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.GT.Object.defineProperties(BN,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",BN);Polymer.Debouncer=Sy;Polymer.Gestures={gestures:sR,recognizers:dk,deepTargetFind:J8O,addListener:mK,removeListener:Ha,register:c8I,setTouchAction:_.eg,prevent:jg,resetMouseCanceller:function(){N_&&N_.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:mK,remove:Ha};Polymer.GestureEventListeners=Fcy;Polymer.MutableData=Ys;Polymer.OptionalMutableData=zfb;Polymer.DomBind=BN;_.cN=function(){do{var D=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var v=MLy()}while(D||v)};var m68=null;Haq.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Haq,writable:!0}});var Rcc=UZ(Haq),TYc=Ys(Rcc),Lc4=UZ(function(){}),RM=function(D){var v=Lc4.call(this)||this;
v._configureProperties(D);v.root=v._stampTemplate(v.__dataHost);var h=[];v.children=h;for(var a=v.root.firstChild;a;a=a.nextSibling)h.push(a),a.__templatizeInstance=v;v.__templatizeOwner&&v.__templatizeOwner.__hideTemplateChildren__&&v._showHideChildren(!0);h=v.__templatizeOptions;(D&&h.instanceProps||!h.instanceProps)&&v._enableProperties();return v};
_.J(RM,Lc4);_.V=RM.prototype;_.V._configureProperties=function(D){if(this.__templatizeOptions.forwardHostProp)for(var v in this.__hostProps)this._setPendingProperty(v,this.__dataHost["_host_"+v]);for(var h in D)this._setPendingProperty(h,D[h])};
_.V.forwardHostProp=function(D,v){this._setPendingPropertyOrPath(D,v,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.V._addEventListenerToNode=function(D,v,h){var a=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(D,v,function(G){G.model=a;h(G)});
else{var Q=this.__dataHost.__dataHost;Q&&Q._addEventListenerToNode(D,v,h)}};
_.V._showHideChildren=function(D){wDr(D,this.children)};
_.V._setUnmanagedPropertyToNode=function(D,v,h){D.__hideTemplateChildren__&&D.nodeType==Node.TEXT_NODE&&v=="textContent"?D.__polymerTextContent__=h:Lc4.prototype._setUnmanagedPropertyToNode.call(this,D,v,h)};
_.V.dispatchEvent=function(){return!0};
_.GT.Object.defineProperties(RM.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var D=this.__parentModel;if(!D){var v;D=this;do D=D.__dataHost.__dataHost;while((v=D.__templatizeOptions)&&!v.parentModel);this.__parentModel=D}return D}}});
var n7I=Ys(RM);var X2=function(){var D=Z$.call(this)||this;D.__renderDebouncer=null;D._lastIf=!1;D.__hideTemplateChildren__=!1;return D};
_.J(X2,Z$);_.V=X2.prototype;_.V.__debounceRender=function(){var D=this;this.__renderDebouncer=_.p6(this.__renderDebouncer,n9,function(){return D.__render()});
_.lr(this.__renderDebouncer)};
_.V.disconnectedCallback=function(){Z$.prototype.disconnectedCallback.call(this);var D=(0,_.lM)(this).parentNode;D&&(D.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.lM)(D).host)||this.__teardownInstance()};
_.V.connectedCallback=function(){Z$.prototype.connectedCallback.call(this);sp2()||(this.style.display="none");this.if&&this.__debounceRender()};
_.V.__ensureTemplate=function(){var D=this;if(!this.__template){var v=this._templateInfo?this:(0,_.lM)(this).querySelector("template");if(!v){var h=new MutationObserver(function(){if((0,_.lM)(D).querySelector("template"))h.disconnect(),D.__render();else throw Error("Pd");});
h.observe(this,{childList:!0});return!1}this.__template=v}return!0};
_.V.__ensureInstance=function(){var D=(0,_.lM)(this).parentNode;if(this.__hasInstance()){var v=this.__getInstanceNodes();if(v&&v.length&&(0,_.lM)(this).previousSibling!==v[v.length-1])for(var h=0,a=void 0;h<v.length&&(a=v[h]);h++)(0,_.lM)(D).insertBefore(a,this)}else{if(!D||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(D)}return!0};
_.V.render=function(){_.cN()};
_.V.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();f6&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.V.__hasInstance=function(){};
_.V.__getInstanceNodes=function(){};
_.V.__createAndInsertInstance=function(){};
_.V.__teardownInstance=function(){};
_.V._showHideChildren=function(){};
_.GT.Object.defineProperties(X2,{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:X2.prototype.__debounceRender},restamp:{type:Boolean,observer:X2.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var ZqR=function(){var D=X2.call(this)||this;D.__instance=null;D.__syncInfo=null;return D};
_.J(ZqR,X2);_.V=ZqR.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.V.__createAndInsertInstance=function(D){var v=this,h=this.__dataHost||this;if(tH&&!this.__dataHost)throw Error("Nd");var a=h._bindTemplate(this.__template,!0);a.runEffects=function(Q,G,x){var f=v.__syncInfo;if(v.if)f&&(v.__syncInfo=null,v._showHideChildren(),G=Object.assign(f.changedProps,G)),Q(G,x);else if(v.__instance)if(f||(f=v.__syncInfo={runEffects:Q,changedProps:{}}),x)for(var C in G)Q=ER(C),f.changedProps[Q]=v.__dataHost[Q];else Object.assign(f.changedProps,G)};
this.__instance=h._stampTemplate(this.__template,a);(0,_.lM)(D).insertBefore(this.__instance,this)};
_.V.__syncHostProperties=function(){var D=this.__syncInfo;D&&(this.__syncInfo=null,D.runEffects(D.changedProps,!1))};
_.V.__teardownInstance=function(){var D=this.__dataHost||this;this.__instance&&(D._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.V._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,wDr(D,this.__instance.templateInfo.childNodes));D||this.__syncHostProperties()};
var EVy=function(){var D=X2.call(this)||this;D.__ctor=null;D.__instance=null;D.__invalidProps=null;return D};
_.J(EVy,X2);_.V=EVy.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.children};
_.V.__createAndInsertInstance=function(D){this.__ctor||(this.__ctor=iM(this.__template,this,{mutableData:!0,forwardHostProp:function(v,h){this.__instance&&(this.if?this.__instance.forwardHostProp(v,h):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ER(v)]=!0))}}));
this.__instance=new this.__ctor;(0,_.lM)(D).insertBefore(this.__instance.root,this)};
_.V.__teardownInstance=function(){if(this.__instance){var D=this.__instance.children;if(D&&D.length){var v=(0,_.lM)(D[0]).parentNode;if(v){v=(0,_.lM)(v);for(var h=0,a=void 0;h<D.length&&(a=D[h]);h++)v.removeChild(a)}}this.__instance=this.__invalidProps=null}};
_.V.__syncHostProperties=function(){var D=this.__invalidProps;if(D){this.__invalidProps=null;for(var v in D)this.__instance._setPendingProperty(v,this.__dataHost[v]);this.__instance._flushProperties()}};
_.V._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,this.__instance._showHideChildren(D));D||this.__syncHostProperties()};
_.OI=M_?ZqR:EVy;customElements.define(_.OI.is,_.OI);Polymer.enqueueDebouncer=_.lr;Polymer.flush=_.cN;Polymer.Templatize={templatize:iM,modelForElement:DA4};Polymer.TemplateInstanceBase=RM;Polymer.DomIf=_.OI;var I6m=zfb(Z$),nZ=function(){var D=I6m.call(this)||this;D.__instances=[];D.__renderDebouncer=null;D.__itemsIdxToInstIdx={};D.__chunkCount=null;D.__renderStartTime=null;D.__itemsArrayChanged=!1;D.__shouldMeasureChunk=!1;D.__shouldContinueChunking=!1;D.__chunkingId=0;D.__sortFn=null;D.__filterFn=null;D.__observePaths=null;D.__ctor=null;D.__isDetached=!0;D.template=null;return D};
_.J(nZ,I6m);_.V=nZ.prototype;_.V.disconnectedCallback=function(){I6m.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var D=0;D<this.__instances.length;D++)this.__detachInstance(D);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.V.connectedCallback=function(){I6m.prototype.connectedCallback.call(this);sp2()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var D=(0,_.lM)((0,_.lM)(this).parentNode),v=0;v<this.__instances.length;v++)this.__attachInstance(v,D);this.__chunkingId&&this.__render()}};
_.V.__ensureTemplatized=function(){var D=this;if(!this.__ctor){var v=this.template=this._templateInfo?this:this.querySelector("template");if(!v){var h=new MutationObserver(function(){if(D.querySelector("template"))h.disconnect(),D.__render();else throw Error("Qd");});
h.observe(this,{childList:!0});return!1}var a={};a[this.as]=!0;a[this.indexAs]=!0;a[this.itemsIndexAs]=!0;this.__ctor=iM(v,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:a,forwardHostProp:function(Q,G){for(var x=this.__instances,f=0,C=void 0;f<x.length&&(C=x[f]);f++)C.forwardHostProp(Q,G)},
notifyInstanceProp:function(Q,G,x){ZKA(this.as,G)&&(Q=Q[this.itemsIndexAs],G==this.as&&(this.items[Q]=x),G=gk(this.as,"items."+Q,G),this.notifyPath(G,x))}})}return!0};
_.V.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.V.__functionFromPropertyValue=function(D){if(typeof D==="string"){var v=this.__getMethodHost();return function(){return v[D].apply(v,arguments)}}return D};
_.V.__sortChanged=function(D){this.__sortFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.V.__filterChanged=function(D){this.__filterFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.V.__computeFrameTime=function(D){return Math.ceil(1E3/D)};
_.V.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.V.__handleObservedPaths=function(D){if(this.__sortFn||this.__filterFn)if(!D)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var v=this.__observePaths,h=0;h<v.length;h++)D.indexOf(v[h])===0&&this.__debounceRender(this.__render,this.delay)};
_.V.__itemsChanged=function(D){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(D.path,D.value)||(D.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.V.__debounceRender=function(D,v){v=v===void 0?0:v;this.__renderDebouncer=_.p6(this.__renderDebouncer,v>0?_.o5.after(v):n9,D.bind(this));_.lr(this.__renderDebouncer)};
_.V.render=function(){this.__debounceRender(this.__render);_.cN()};
_.V.__render=function(){var D=this;if(this.__ensureTemplatized()){var v=this.items||[],h=this.__sortAndFilterItems(v),a=this.__calculateLimit(h.length);this.__updateInstances(v,a,h);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){D.__chunkingId=null;D.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);f6&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.__sortAndFilterItems=function(D){for(var v=this,h=Array(D.length),a=0;a<D.length;a++)h[a]=a;this.__filterFn&&(h=h.filter(function(Q,G,x){return v.__filterFn(D[Q],G,x)}));
this.__sortFn&&h.sort(function(Q,G){return v.__sortFn(D[Q],D[G])});
return h};
_.V.__calculateLimit=function(D){var v=D,h=this.__instances.length;if(this.initialCount){var a;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(v=Math.min(D,this.initialCount),this.__chunkCount=(a=Math.max(v-h,0))||1):(a=Math.min(Math.max(D-h,0),this.__chunkCount),v=Math.min(h+a,D));this.__shouldMeasureChunk=a===this.__chunkCount;this.__shouldContinueChunking=v<D;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return v};
_.V.__continueChunking=function(){if(this.__shouldMeasureChunk){var D=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/D*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.V.__updateInstances=function(D,v,h){var a=this.__itemsIdxToInstIdx={},Q;for(Q=0;Q<v;Q++){var G=this.__instances[Q],x=h[Q],f=D[x];a[x]=Q;G?(G._setPendingProperty(this.as,f),G._setPendingProperty(this.indexAs,Q),G._setPendingProperty(this.itemsIndexAs,x),G._flushProperties()):this.__insertInstance(f,Q,x)}for(D=this.__instances.length-1;D>=Q;D--)this.__detachAndRemoveInstance(D)};
_.V.__detachInstance=function(D){D=this.__instances[D];for(var v=(0,_.lM)(D.root),h=0;h<D.children.length;h++)v.appendChild(D.children[h]);return D};
_.V.__attachInstance=function(D,v){v.insertBefore(this.__instances[D].root,this)};
_.V.__detachAndRemoveInstance=function(D){this.__detachInstance(D);this.__instances.splice(D,1)};
_.V.__stampInstance=function(D,v,h){var a={};a[this.as]=D;a[this.indexAs]=v;a[this.itemsIndexAs]=h;return new this.__ctor(a)};
_.V.__insertInstance=function(D,v,h){D=this.__stampInstance(D,v,h);h=(h=this.__instances[v+1])?h.children[0]:this;(0,_.lM)((0,_.lM)(this).parentNode).insertBefore(D.root,h);return this.__instances[v]=D};
_.V._showHideChildren=function(D){for(var v=0;v<this.__instances.length;v++)this.__instances[v]._showHideChildren(D)};
_.V.__handleItemPath=function(D,v){var h=D.slice(6),a=h.indexOf(".");D=a<0?h:h.substring(0,a);if(D==parseInt(D,10)){h=a<0?"":h.substring(a+1);this.__handleObservedPaths(h);if(D=this.__instances[this.__itemsIdxToInstIdx[D]])D._setPendingPropertyOrPath(this.as+(h?"."+h:""),v,!1,!0),D._flushProperties();return!0}};
_.V.itemForElement=function(D){return(D=this.modelForElement(D))&&D[this.as]};
_.V.indexForElement=function(D){return(D=this.modelForElement(D))&&D[this.indexAs]};
_.V.modelForElement=function(D){return DA4(this.template,D)};
_.GT.Object.defineProperties(nZ,{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:nZ.prototype.__sortChanged},filter:{type:Function,observer:nZ.prototype.__filterChanged},observe:{type:String,observer:nZ.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!f6,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.*)"]}}});
nZ.prototype._setRenderedItemCount=function(){};
customElements.define(nZ.is,nZ);Polymer.DomRepeat=nZ;var gV9=function(D,v){var h=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=D;this.callback=v;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){h._schedule()};
this.connect();this._schedule()},kb4=function(D){var v=(0,_.lM)(D);
if(rk(D))return v.assignedNodes({flatten:!0});D=[];for(var h=0;h<v.childNodes.length;h++){var a=v.childNodes[h];rk(a)?D.push.apply(D,_.j_((0,_.lM)(a).assignedNodes({flatten:!0}))):D.push(a)}return D};
_.V=gV9.prototype;_.V.connect=function(){var D=this;rk(this._target)?this._listenSlots([this._target]):(0,_.lM)(this._target).children&&(this._listenSlots((0,_.lM)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(v){D._processMutations(v)}):(this._nativeChildrenObserver=new MutationObserver(function(v){D._processMutations(v)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.V.disconnect=function(){rk(this._target)?this._unlistenSlots([this._target]):(0,_.lM)(this._target).children&&(this._unlistenSlots((0,_.lM)(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};
_.V._schedule=function(){var D=this;this._scheduled||(this._scheduled=!0,n9.run(function(){return D.flush()}))};
_.V._processMutations=function(D){this._processSlotMutations(D);this.flush()};
_.V._processSlotMutations=function(D){if(D)for(var v=0;v<D.length;v++){var h=D[v];h.addedNodes&&this._listenSlots(h.addedNodes);h.removedNodes&&this._unlistenSlots(h.removedNodes)}};
_.V.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var D={target:this._target,addedNodes:[],removedNodes:[]},v=kb4(this._target),h=uCI(v,this._effectiveNodes),a=0,Q=void 0;a<h.length&&(Q=h[a]);a++)for(var G=0,x=void 0;G<Q.removed.length&&(x=Q.removed[G]);G++)D.removedNodes.push(x);
a=0;for(Q=void 0;a<h.length&&(Q=h[a]);a++)for(G=Q.index;G<Q.index+Q.addedCount;G++)D.addedNodes.push(v[G]);this._effectiveNodes=v;v=!1;if(D.addedNodes.length||D.removedNodes.length)v=!0,this.callback.call(this._target,D);return v};
_.V._listenSlots=function(D){for(var v=0;v<D.length;v++){var h=D[v];rk(h)&&h.addEventListener("slotchange",this._boundSchedule)}};
_.V._unlistenSlots=function(D){for(var v=0;v<D.length;v++){var h=D[v];rk(h)&&h.removeEventListener("slotchange",this._boundSchedule)}};var AT=Element.prototype,SL$=AT.matches||AT.matchesSelector||AT.mozMatchesSelector||AT.msMatchesSelector||AT.oMatchesSelector||AT.webkitMatchesSelector,JQJ=function(D,v){return SL$.call(D,v)},uM=function(D){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(D);
this.node=D},YL$;
_.V=uM.prototype;_.V.observeNodes=function(D){return new gV9(this.node,D)};
_.V.unobserveNodes=function(D){D.disconnect()};
_.V.notifyObserver=function(){};
_.V.deepContains=function(D){if((0,_.lM)(this.node).contains(D))return!0;var v=D;for(D=D.ownerDocument;v&&v!==D&&v!==this.node;)v=(0,_.lM)(v).parentNode||(0,_.lM)(v).host;return v===this.node};
_.V.getOwnerRoot=function(){return(0,_.lM)(this.node).getRootNode()};
_.V.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.lM)(this.node).assignedNodes({flatten:!0}):[]};
_.V.getDestinationInsertionPoints=function(){for(var D=[],v=(0,_.lM)(this.node).assignedSlot;v;)D.push(v),v=(0,_.lM)(v).assignedSlot;return D};
_.V.importNode=function(D,v){return(0,_.lM)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(D,v)};
_.V.getEffectiveChildNodes=function(){return kb4(this.node)};
_.V.queryDistributedElements=function(D){for(var v=this.getEffectiveChildNodes(),h=[],a=0,Q=v.length,G=void 0;a<Q&&(G=v[a]);a++)G.nodeType===Node.ELEMENT_NODE&&JQJ(G,D)&&h.push(G);return h};
_.GT.Object.defineProperties(uM.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var D=this.node;return D._activeElement!==void 0?D._activeElement:D.activeElement}}});
var q_=function(D){this.event=D};
_.GT.Object.defineProperties(q_.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 pR4=uM;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var l64=window.ShadyDOM.Wrapper,NT4=function(){return l64.apply(this,arguments)||this};
_.J(NT4,l64);Object.getOwnPropertyNames(uM.prototype).forEach(function(D){D!="activeElement"&&D!="constructor"&&(NT4.prototype[D]=uM.prototype[D])});
hCq(NT4.prototype,["classList"]);pR4=NT4;Object.defineProperties(q_.prototype,{localTarget:{get:function(){var D=this.event.currentTarget;D=D&&_.qc(D).getOwnerRoot();for(var v=this.path,h=0;h<v.length;h++){var a=v[h];if(_.qc(a).getOwnerRoot()===D)return a}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else vaL(),hCq(uM.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),aNA();YL$=pR4;_.qc=function(D){D=D||document;if(D instanceof pR4)return D;if(D instanceof q_)return D;var v=D.__domApi;v||(D instanceof Event?v=new q_(D):v=new pR4(D),D.__domApi=v);return v};var BT4=/:host\(:dir\((ltr|rtl)\)\)/g,cQ9=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,XRR=/:dir\((?:ltr|rtl)\)/,AQb=!(!window.ShadyDOM||!window.ShadyDOM.inUse),vT=[],br=null,DF="",qLF=F2(function(D){AQb||br||(DF=document.documentElement.getAttribute("dir"),br=new MutationObserver($A7),br.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var v=mD9(D);D=function(){var h=v.call(this)||this;h.__autoDirOptOut=!1;return h};
_.J(D,v);D._processStyleText=function(h,a){h=v._processStyleText.call(this,h,a);!AQb&&XRR.test(h)&&(h=this._replaceDirInCssText(h),this.__activateDir=!0);return h};
D._replaceDirInCssText=function(h){h=h.replace(BT4,':host([dir="$1"])');return h=h.replace(cQ9,':host([dir="$2"]) $1')};
D.prototype.ready=function(){v.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
D.prototype.connectedCallback=function(){v.prototype.connectedCallback&&v.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(br&&br.takeRecords().length&&$A7(),vT.push(this),this.__autoDirOptOut||this.setAttribute("dir",DF))};
D.prototype.disconnectedCallback=function(){v.prototype.disconnectedCallback&&v.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var h=vT.indexOf(this);h>-1&&vT.splice(h,1)}};
D.__activateDir=!1;return D});var bqt=function(D){for(;D;){var v=Object.getOwnPropertyDescriptor(D,"observedAttributes");if(v)return v.get;D=Object.getPrototypeOf(D.prototype).constructor}return function(){return[]}};
F2(function(D){var v=L6(D),h=bqt(v);D=function(){return v.call(this)||this};
_.J(D,v);D.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:v.prototype._initializeProperties.call(this)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||v.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(a){return v.prototype._canApplyPropertyDefault.call(this,a)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(a))};
D.prototype.attributeChangedCallback=function(a,Q,G,x){a=="disable-upgrade"?this.__isUpgradeDisabled&&G==null&&(v.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.lM)(this).isConnected&&v.prototype.connectedCallback.call(this)):v.prototype.attributeChangedCallback.call(this,a,Q,G,x)};
D.prototype.connectedCallback=function(){this.__isUpgradeDisabled||v.prototype.connectedCallback.call(this)};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||v.prototype.disconnectedCallback.call(this)};
_.GT.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return h.call(this).concat("disable-upgrade")}}});
return D});var hB=!1,G6L=[],ar=[];var MDO=window.ShadyDOM,fNL=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",oa7):document.readyState==="interactive"||document.readyState==="complete"?oa7():window.addEventListener("DOMContentLoaded",oa7);var UAf=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=""},FT7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,zC8=/@import[^;]*;/gim,k68=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,SOL=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Jyr=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,puO=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,INI=/^@[^\s]*keyframes/,
Ea7=/\s+/g;var lNq={};var Bs7=Promise.resolve();var dPs=new Set;var jX4=/;\s*/m,sXF=/^\s*(initial)|(inherit)\s*$/,mPp=/\s*!important/,Hq9=function(){this._map={}};
Hq9.prototype.set=function(D,v){D=D.trim();this._map[D]={properties:v,dependants:{}}};
Hq9.prototype.get=function(D){D=D.trim();return this._map[D]||null};
var yQJ=null,dm=function(){this._measureElement=this._currentElement=null;this._map=new Hq9};
_.V=dm.prototype;_.V.detectMixin=function(D){D=a6F.test(D)||hf4.test(D);a6F.lastIndex=0;hf4.lastIndex=0;return D};
_.V.transformTemplate=function(D,v){if(D._gatheredStyle===void 0){var h=[];for(var a=D.content.querySelectorAll("style"),Q=0;Q<a.length;Q++){var G=a[Q];if(G.hasAttribute("shady-unscoped")){if(!x68){var x=G.textContent;if(!dPs.has(x)){dPs.add(x);var f=document.createElement("style");f.setAttribute("shady-unscoped","");f.textContent=x;document.head.appendChild(f)}G.parentNode.removeChild(G)}}else h.push(G.textContent),G.parentNode.removeChild(G)}(h=h.join("").trim())?(a=document.createElement("style"),
a.textContent=h,D.content.insertBefore(a,D.content.firstChild),h=a):h=null;D._gatheredStyle=h}return(D=D._gatheredStyle)?this.JSC$11275_transformStyle(D,v):null};
_.V.JSC$11275_transformStyle=function(D,v){v=v===void 0?"":v;var h=qOr(D);this.transformRules(h,v);D.textContent=AyA(h);return h};
_.V.transformCustomStyle=function(D){var v=this,h=qOr(D);dAf(h,function(a){a.selector===":root"&&(a.selector="html");v.transformRule(a)});
D.textContent=AyA(h);return h};
_.V.transformRules=function(D,v){var h=this;this._currentElement=v;dAf(D,function(a){h.transformRule(a)});
this._currentElement=null};
_.V.transformRule=function(D){D.cssText=wRM(this,D.parsedCssText,D);D.selector===":root"&&(D.selector=":host > *")};
var wRM=function(D,v,h){v=v.replace(hf4,function(a,Q,G,x){return D._produceCssProperties(a,Q,G,x,h)});
return D._consumeCssProperties(v,h)};
_.V=dm.prototype;_.V._getInitialValueForProperty=function(D){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(D)};
_.V._fallbacksFromPreviousRules=function(D){for(var v=this,h=D;h.parent;)h=h.parent;var a={},Q=!1;dAf(h,function(G){(Q=Q||G===D)||G.selector===D.selector&&Object.assign(a,v._cssTextToMap(G.parsedCssText))});
return a};
_.V._consumeCssProperties=function(D,v){for(var h;h=a6F.exec(D);){var a=h[0],Q=h[1];h=h.index;var G=h+a.indexOf("@apply"),x=h+a.length;a=D.slice(0,G);D=D.slice(x);G=v?this._fallbacksFromPreviousRules(v):{};Object.assign(G,this._cssTextToMap(a));Q=this._atApplyToCssProperties(Q,G);D=a+Q+D;a6F.lastIndex=h+Q.length}return D};
_.V._atApplyToCssProperties=function(D,v){D=D.replace(jX4,"");var h=[],a=this._map.get(D);a||(this._map.set(D,{}),a=this._map.get(D));if(a){this._currentElement&&(a.dependants[this._currentElement]=!0);var Q,G=a.properties;for(Q in G){var x=v&&v[Q];a=[Q,": var(",D,"_-_",Q];x&&a.push(",",x.replace(mPp,""));a.push(")");mPp.test(G[Q])&&a.push(" !important");h.push(a.join(""))}}return h.join("; ")};
_.V._replaceInitialOrInherit=function(D,v){var h=sXF.exec(v);h&&(v=h[1]?this._getInitialValueForProperty(D):"apply-shim-inherit");return v};
_.V._cssTextToMap=function(D,v){v=v===void 0?!1:v;D=D.split(";");for(var h,a,Q={},G=0;G<D.length;G++)if(h=D[G])a=h.split(":"),a.length>1&&(h=a[0].trim(),a=a.slice(1).join(":"),v&&(a=this._replaceInitialOrInherit(h,a)),Q[h]=a);return Q};
_.V._invalidateMixinEntry=function(D){if(yQJ)for(var v in D.dependants)v!==this._currentElement&&yQJ(v)};
_.V._produceCssProperties=function(D,v,h,a,Q){var G=this;h&&jHc(h,function(S,B){B&&G._map.get(B)&&(a="@apply "+B+";")});
if(!a)return D;var x=this._consumeCssProperties(""+a,Q);Q=D.slice(0,D.indexOf("--"));var f=x=this._cssTextToMap(x,!0),C=this._map.get(v),U=C&&C.properties;U?f=Object.assign(Object.create(U),x):this._map.set(v,f);var L=[],Z,E=!1;for(Z in f){var I=x[Z];I===void 0&&(I="initial");!U||Z in U||(E=!0);L.push(v+"_-_"+Z+": "+I)}E&&this._invalidateMixinEntry(C);C&&(C.properties=f);h&&(Q=D+";"+Q);return Q+L.join("; ")+";"};
dm.prototype.detectMixin=dm.prototype.detectMixin;dm.prototype.transformStyle=dm.prototype.JSC$11275_transformStyle;dm.prototype.transformCustomStyle=dm.prototype.transformCustomStyle;dm.prototype.transformRules=dm.prototype.transformRules;dm.prototype.transformRule=dm.prototype.transformRule;dm.prototype.transformTemplate=dm.prototype.transformTemplate;dm.prototype._separator="_-_";Object.defineProperty(dm.prototype,"invalidCallback",{get:function(){return yQJ},
set:function(D){yQJ=D}});var jy=new dm,efb=function(){this.customStyleInterface=null;jy.invalidCallback=Nsu},sZ=function(D){!D.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(D.customStyleInterface=window.ShadyCSS.CustomStyleInterface,D.customStyleInterface.transformCallback=function(v){jy.transformCustomStyle(v)},D.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){D.customStyleInterface.enqueued&&D.flushCustomStyles()})})};
_.V=efb.prototype;_.V.prepareTemplate=function(D,v){sZ(this);sHf(D)===""&&(lNq[v]=D,v=jy.transformTemplate(D,v),D._styleAst=v)};
_.V.flushCustomStyles=function(){sZ(this);if(this.customStyleInterface){var D=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var v=0;v<D.length;v++){var h=this.customStyleInterface.getStyleForCustomStyle(D[v]);h&&jy.transformCustomStyle(h)}this.customStyleInterface.enqueued=!1}}};
_.V.styleSubtree=function(D,v){sZ(this);v&&hcu(D,v);if(D.shadowRoot)for(this.styleElement(D),D=D.shadowRoot.children||D.shadowRoot.childNodes,v=0;v<D.length;v++)this.styleSubtree(D[v]);else for(D=D.children||D.childNodes,v=0;v<D.length;v++)this.styleSubtree(D[v])};
_.V.styleElement=function(D){sZ(this);var v=D.localName,h;v?v.indexOf("-")>-1?h=v:h=D.getAttribute&&D.getAttribute("is")||"":h=D.is;v=lNq[h];if(!(v&&sHf(v)!==""||!v||YOq(v))){if(YOq(v)||v._applyShimValidatingVersion!==v._applyShimNextVersion)this.prepareTemplate(v,h),cyA(v);if(D=D.shadowRoot)if(D=D.querySelector("style"))D.__cssRules=v._styleAst,D.textContent=AyA(v._styleAst)}};
_.V.styleDocument=function(D){sZ(this);this.styleSubtree(document.body,D)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var mG=new efb,nVJ=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(D,v){mG.flushCustomStyles();mG.prepareTemplate(D,v)},
prepareTemplateStyles:function(D,v,h){window.ShadyCSS.prepareTemplate(D,v,h)},
prepareTemplateDom:function(){},
styleSubtree:function(D,v){mG.flushCustomStyles();mG.styleSubtree(D,v)},
styleElement:function(D){mG.flushCustomStyles();mG.styleElement(D)},
styleDocument:function(D){mG.flushCustomStyles();mG.styleDocument(D)},
getComputedStyleValue:function(D,v){return aK2(D,v)},
flushCustomStyles:function(){mG.flushCustomStyles()},
nativeCss:XuO,nativeShadow:x68,cssBuild:QC,disableRuntime:Gbb};nVJ&&(window.ShadyCSS.CustomStyleInterface=nVJ)}window.ShadyCSS.ApplyShim=jy;var Oqs;Oqs=window.ShadyCSS;_.HN=F2(function(D){D=Fcy(L6(D));var v=iG$?D:qLF(D),h=bqt(v),a={x:"pan-x",y:"pan-y",none:"none",all:"auto"};D=function(){return v.call(this)||this};
_.J(D,v);D.prototype.created=function(){};
D.prototype.__attributeReaction=function(Q,G,x){(this.__dataAttributes&&this.__dataAttributes[Q]||Q==="disable-upgrade")&&this.attributeChangedCallback(Q,G,x,null)};
D.prototype.setAttribute=function(Q,G){if(kab&&!this._legacyForceObservedAttributes){var x=this.getAttribute(Q);v.prototype.setAttribute.call(this,Q,G);this.__attributeReaction(Q,x,String(G))}else v.prototype.setAttribute.call(this,Q,G)};
D.prototype.removeAttribute=function(Q){if(kab&&!this._legacyForceObservedAttributes){var G=this.getAttribute(Q);v.prototype.removeAttribute.call(this,Q);this.__attributeReaction(Q,G,null)}else v.prototype.removeAttribute.call(this,Q)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||v.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(Q){return v.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
D.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(v.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
D.prototype.attached=function(){};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(v.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
D.prototype.detached=function(){};
D.prototype.attributeChangedCallback=function(Q,G,x,f){G!==x&&(Q=="disable-upgrade"?this.__isUpgradeDisabled&&x==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.lM)(this).isConnected&&this.connectedCallback()):(v.prototype.attributeChangedCallback.call(this,Q,G,x,f),this.attributeChanged(Q,G,x)))};
D.prototype.attributeChanged=function(){};
D.prototype._initializeProperties=function(){if(K9&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Q=Object.getPrototypeOf(this);Q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Q.__hasRegisterFinished=!0);v.prototype._initializeProperties.call(this);this.root=this;this.created();kab&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
D.prototype._takeAttributes=function(){for(var Q=this.attributes,G=0,x=Q.length;G<x;G++){var f=Q[G];this.__attributeReaction(f.name,null,f.value)}};
D.prototype._registered=function(){};
D.prototype.ready=function(){this._ensureAttributes();v.prototype.ready.call(this)};
D.prototype._ensureAttributes=function(){};
D.prototype._applyListeners=function(){};
D.prototype.serialize=function(Q){return this._serializeValue(Q)};
D.prototype.deserialize=function(Q,G){return this._deserializeValue(Q,G)};
D.prototype.reflectPropertyToAttribute=function(Q,G,x){this._propertyToAttribute(Q,G,x)};
D.prototype.serializeValueToAttribute=function(Q,G,x){this._valueToNodeAttribute(x||this,Q,G)};
D.prototype.extend=function(Q,G){if(!Q||!G)return Q||G;for(var x=Object.getOwnPropertyNames(G),f=0,C=void 0;f<x.length&&(C=x[f]);f++){var U=Object.getOwnPropertyDescriptor(G,C);U&&Object.defineProperty(Q,C,U)}return Q};
D.prototype.mixin=function(Q,G){for(var x in G)Q[x]=G[x];return Q};
D.prototype.chainObject=function(Q,G){Q&&G&&Q!==G&&(Q.__proto__=G);return Q};
D.prototype.instanceTemplate=function(Q){Q=this.constructor._contentForTemplate(Q);return document.importNode(Q,!0)};
D.prototype.fire=function(Q,G,x){x=x||{};G=G===null||G===void 0?{}:G;Q=new Event(Q,{bubbles:x.bubbles===void 0?!0:x.bubbles,cancelable:!!x.cancelable,composed:x.composed===void 0?!0:x.composed});Q.detail=G;(0,_.lM)(x.node||this).dispatchEvent(Q);return Q};
D.prototype.listen=function(Q,G,x){Q=Q||this;var f=this.__boundListeners||(this.__boundListeners=new WeakMap),C=f.get(Q);C||(C={},f.set(Q,C));f=G+x;C[f]||(C[f]=this._addMethodEventListenerToNode(Q,G,x,this))};
D.prototype.unlisten=function(Q,G,x){Q=Q||this;var f=this.__boundListeners&&this.__boundListeners.get(Q);x=G+x;var C=f&&f[x];C&&(this._removeEventListenerFromNode(Q,G,C),f[x]=null)};
D.prototype.setScrollDirection=function(Q,G){_.eg(G||this,a[Q]||"auto")};
D.prototype.$$=function(Q){return this.root.querySelector(Q)};
D.prototype.distributeContent=function(){var Q=_.qc(this);window.ShadyDOM&&Q.shadowRoot&&ShadyDOM.flush()};
D.prototype.getEffectiveChildNodes=function(){return _.qc(this).getEffectiveChildNodes()};
D.prototype.queryDistributedElements=function(Q){return _.qc(this).queryDistributedElements(Q)};
D.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
D.prototype.getEffectiveTextContent=function(){for(var Q=this.getEffectiveChildNodes(),G=[],x=0,f;f=Q[x];x++)f.nodeType!==Node.COMMENT_NODE&&G.push(f.textContent);return G.join("")};
D.prototype.queryEffectiveChildren=function(Q){return(Q=this.queryDistributedElements(Q))&&Q[0]};
D.prototype.queryAllEffectiveChildren=function(Q){return this.queryDistributedElements(Q)};
D.prototype.getContentChildNodes=function(Q){return(Q=this.root.querySelector(Q||"slot"))?_.qc(Q).getDistributedNodes():[]};
D.prototype.getContentChildren=function(Q){return this.getContentChildNodes(Q).filter(function(G){return G.nodeType===Node.ELEMENT_NODE})};
D.prototype.isLightDescendant=function(Q){return this!==Q&&(0,_.lM)(this).contains(Q)&&(0,_.lM)(this).getRootNode()===(0,_.lM)(Q).getRootNode()};
D.prototype.isLocalDescendant=function(Q){return this.root===(0,_.lM)(Q).getRootNode()};
D.prototype.scopeSubtree=function(Q,G){return C24(Q,G===void 0?!1:G)};
D.prototype.getComputedStyleValue=function(Q){return Oqs.getComputedStyleValue(this,Q)};
D.prototype.debounce=function(Q,G,x){this._debouncers=this._debouncers||{};return this._debouncers[Q]=_.p6(this._debouncers[Q],x>0?_.o5.after(x):n9,G.bind(this))};
D.prototype.isDebouncerActive=function(Q){this._debouncers=this._debouncers||{};Q=this._debouncers[Q];return!(!Q||!Q.isActive())};
D.prototype.flushDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.flush()};
D.prototype.cancelDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.cancel()};
D.prototype.async=function(Q,G){return G>0?_.o5.run(Q.bind(this),G):~n9.run(Q.bind(this))};
D.prototype.cancelAsync=function(Q){Q<0?n9.cancel(~Q):_.o5.cancel(Q)};
D.prototype.create=function(Q,G){Q=document.createElement(Q);if(G)if(Q.setProperties)Q.setProperties(G);else for(var x in G)Q[x]=G[x];return Q};
D.prototype.elementMatches=function(Q,G){return JQJ(G||this,Q)};
D.prototype.toggleAttribute=function(Q,G){var x=this;arguments.length===3&&(x=arguments[2]);arguments.length==1&&(G=!x.hasAttribute(Q));if(G)return(0,_.lM)(x).setAttribute(Q,""),!0;(0,_.lM)(x).removeAttribute(Q);return!1};
D.prototype.toggleClass=function(Q,G,x){x=x||this;arguments.length==1&&(G=!x.classList.contains(Q));G?x.classList.add(Q):x.classList.remove(Q)};
D.prototype.transform=function(Q,G){G=G||this;G.style.webkitTransform=Q;G.style.transform=Q};
D.prototype.translate3d=function(Q,G,x,f){this.transform("translate3d("+Q+","+G+","+x+")",f||this)};
D.prototype.arrayDelete=function(Q,G){if(Array.isArray(Q)){if(G=Q.indexOf(G),G>=0)return Q.splice(G,1)}else if(G=Sg(this,Q).indexOf(G),G>=0)return this.splice(Q,G,1);return null};
D.prototype._logger=function(Q,G){Array.isArray(G)&&G.length===1&&Array.isArray(G[0])&&(G=G[0]);switch(Q){case "log":case "warn":case "error":console[Q].apply(console,_.j_(G))}};
D.prototype._log=function(){this._logger("log",_.Kz.apply(0,arguments))};
D.prototype._warn=function(){this._logger("warn",_.Kz.apply(0,arguments))};
D.prototype._error=function(){this._logger("error",_.Kz.apply(0,arguments))};
D.prototype._logf=function(Q){return["[%s::%s]",this.is,Q].concat(_.j_(_.Kz.apply(1,arguments)))};
_.GT.Object.defineProperties(D.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Q=(0,_.lM)(this).getRootNode();return Q instanceof DocumentFragment?Q.host:Q}}});
_.GT.Object.defineProperties(D,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return kab&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],fS4(this.prototype)),this.__observedAttributes):h.call(this).concat("disable-upgrade")}}});
D.prototype.is="";return D});Polymer.FlattenedNodesObserver=gV9;Polymer.DomApi=YL$;Polymer.EventApi=q_;Polymer.dom=_.qc;Polymer.dom.matchesSelector=JQJ;Polymer.dom.flush=_.cN;Polymer.dom.addDebouncer=_.lr;Polymer.DirMixin=qLF;Polymer.RenderStatus={beforeNextRender:_.xAc,afterNextRender:_.$R,flush:function(){for(;G6L.length||ar.length;)QHf(G6L),QHf(ar);hB=!1}};Polymer.LegacyElementMixin=_.HN;var Kc9;Kc9=Ys._mutablePropertyChange;var TTJ={properties:{mutableData:Boolean},_shouldPropertyChange:function(D,v,h){return Kc9(this,D,v,h,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(D,v,h){return Kc9(this,D,v,h,!0)}};
Polymer.OptionalMutableDataBehavior=TTJ;var mAI={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},naO={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},eC2=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},naO),Rf4=(0,_.HN)(HTMLElement),mNc=function(D,v){D||console.warn("Polymer.Class requires `info` argument");v=v?v(Rf4):Rf4;v=OW7(D,v,D.behaviors);v.is=v.prototype.is=
D.is;return v};Polymer.Class=mNc;Polymer.mixinBehaviors=function(D,v){return OW7({},(0,_.HN)(v),D)};
Polymer.GenerateClassFromInfo=OW7;_.yT=function(D){var v=typeof D==="function"?D:_.yT.Class(D);D._legacyForceObservedAttributes&&(v.prototype._legacyForceObservedAttributes=D._legacyForceObservedAttributes);customElements.define(v.is,v);return v};
_.yT.Class=mNc;Polymer._polymerFn=_.yT;var iq4=window.onLegacyPolymerFunctionDefinedCallback;iq4&&iq4();var y6A={templatize:function(D,v){this._templatizerTemplate=D;this.ctor=iM(D,this,{mutableData:!!v,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(D){return new this.ctor(D)},
modelForElement:function(D){return DA4(this._templatizerTemplate,D)}};Polymer.Templatizer=y6A;_.yk=(0,_.HN)(HTMLElement).prototype;Polymer.Base=_.yk;var Ts7=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.VC=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.J(_.VC,PolymerFakeBaseClass);var PT=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.J(PT,PolymerFakeBaseClass);var RC2=Symbol("Rd"),hD4=[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 WcJ=WcJ||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},tLs;(function(D){function v(K,O,R){var vA=W.get(K);if(!vA){if(!R)return;vA=new d;W.set(K,vA)}K=vA.get(O);if(!K){if(!R)return;K=new d;vA.set(O,K)}return K}
function h(K,O,R){if(a(K,O,R))return!0;O=E(O);return O!==null?h(K,O,R):!1}
function a(K,O,R){O=v(O,R,!1);return O===void 0?!1:!!O.has(K)}
function Q(K,O,R){if(a(K,O,R))return G(K,O,R);O=E(O);if(O!==null)return Q(K,O,R)}
function G(K,O,R){O=v(O,R,!1);if(O!==void 0)return O.get(K)}
function x(K,O){var R=f(K,O);K=E(K);if(K===null)return R;var vA=x(K,O);if(vA.length<=0)return R;if(R.length<=0)return vA;O=new b;K=[];R=_.P(R);for(var f7=R.next();!f7.done;f7=R.next())f7=f7.value,O.has(f7)||(O.add(f7),K.push(f7));R=_.P(vA);for(vA=R.next();!vA.done;vA=R.next())vA=vA.value,O.has(vA)||(O.add(vA),K.push(vA));return K}
function f(K,O){K=v(K,O,!1);var R=[];K&&K.forEach(function(vA,f7){return R.push(f7)});
return R}
function C(K){return K===void 0}
function U(K){return typeof K==="object"?K!==null:typeof K==="function"}
function L(K){return typeof K==="function"}
function Z(K){return typeof K==="symbol"?K:String(K)}
function E(K){var O=Object.getPrototypeOf(K);if(typeof K!=="function"||K===A||O!==A)return O;var R=Object.getPrototypeOf(K.prototype);if(R==null||R===Object.prototype)return O;R=R.constructor;return typeof R!=="function"||R===K?O:R}
function I(){function K(){this._keys=[];this._values=[];this._cache=O}
var O={};K.prototype={get size(){return this._keys.length},has:function(R){return R===this._cache?!0:this._find(R)>=0?(this._cache=R,!0):!1},
get:function(R){var vA=this._find(R);if(vA>=0)return this._cache=R,this._values[vA]},
set:function(R,vA){this.delete(R);this._keys.push(R);this._values.push(vA);this._cache=R;return this},
delete:function(R){R=this._find(R);return R>=0?(this._keys.splice(R,1),this._values.splice(R,1),this._cache=O,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=O},
forEach:function(R){for(var vA=this.size,f7=0;f7<vA;++f7){var xL=this._keys[f7],kL=this._values[f7];this._cache=xL;R.call(this,kL,xL,this)}},
_find:function(R){for(var vA=this._keys,f7=vA.length,xL=0;xL<f7;++xL)if(vA[xL]===R)return xL;return-1}};
return K}
function S(){function K(){this._map=new d}
K.prototype={get size(){return this._map.length},has:function(O){return this._map.has(O)},
add:function(O){this._map.set(O,O);return this},
delete:function(O){return this._map.delete(O)},
clear:function(){this._map.clear()},
forEach:function(O,R){this._map.forEach(O,R)}};
return K}
function B(){function K(){this._key=R()}
function O(S2,s8){for(var Xf=0;Xf<s8;++Xf)S2[Xf]=Math.random()*255|0}
function R(){do{if(f7)var S2=f7.randomBytes(16);else typeof Uint8Array==="function"?(S2=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(S2):O(S2,16)):(S2=Array(16),O(S2,16));S2[6]=S2[6]&79|64;S2[8]=S2[8]&191|128;for(var s8="",Xf=0;Xf<16;++Xf){var dJ=S2[Xf];if(Xf===4||Xf===6||Xf===8)s8+="-";dJ<16&&(s8+="0");s8+=dJ.toString(16).toLowerCase()}S2="@@WeakMap@@"+s8}while(xL.call(kL,S2));kL[S2]=!0;return S2}
function vA(S2,s8){if(!xL.call(S2,Z4)){if(!s8)return;Object.defineProperty(S2,Z4,{value:Object.create(null)})}return S2[Z4]}
var f7=typeof global!=="undefined"&&typeof WcJ==="object"&&typeof require==="function"&&require("crypto"),xL=Object.prototype.hasOwnProperty,kL={},Z4=R();K.prototype={has:function(S2){return(S2=vA(S2,!1))?this._key in S2:!1},
get:function(S2){if(S2=vA(S2,!1))return S2[this._key]},
set:function(S2,s8){vA(S2,!0)[this._key]=s8;return this},
delete:function(S2){return(S2=vA(S2,!1))&&this._key in S2?delete S2[this._key]:!1},
clear:function(){this._key=R()}};
return K}
var A=Object.getPrototypeOf(Function),d=typeof Map==="function"?Map:I(),b=typeof Set==="function"?Set:S(),W=new (typeof WeakMap==="function"?WeakMap:B());D.decorate=function(K,O,R,vA){if(C(vA)){if(C(R)){if(!Array.isArray(K))throw new TypeError;if(!L(O))throw new TypeError;for(R=K.length-1;R>=0;--R)if(vA=(0,K[R])(O),!C(vA)){if(!L(vA))throw new TypeError;O=vA}return O}if(!Array.isArray(K))throw new TypeError;if(!U(O))throw new TypeError;R=Z(R);for(vA=K.length-1;vA>=0;--vA)(0,K[vA])(O,R)}else{if(Array.isArray(K))if(U(O)){if(C(R))throw new TypeError;
if(!U(vA))throw new TypeError;}else throw new TypeError;else throw new TypeError;R=Z(R);for(var f7=K.length-1;f7>=0;--f7){var xL=(0,K[f7])(O,R,vA);if(!C(xL)){if(!U(xL))throw new TypeError;vA=xL}}return vA}};
D.metadata=function(K,O){return function(R,vA){if(C(vA)){if(!L(R))throw new TypeError;v(R,void 0,!0).set(K,O)}else{if(!U(R))throw new TypeError;vA=Z(vA);v(R,vA,!0).set(K,O)}}};
D.defineMetadata=function(K,O){var R;if(U(O))C(R)||(R=Z(R));else throw new TypeError;v(O,R,!0).set("parameters",K)};
D.hasMetadata=function(K,O,R){if(U(O))C(R)||(R=Z(R));else throw new TypeError;return h(K,O,R)};
D.hasOwnMetadata=function(K,O,R){if(U(O))C(R)||(R=Z(R));else throw new TypeError;return a(K,O,R)};
D.getMetadata=function(K,O,R){if(U(O))C(R)||(R=Z(R));else throw new TypeError;return Q(K,O,R)};
D.getOwnMetadata=function(K,O,R){if(U(O))C(R)||(R=Z(R));else throw new TypeError;return G(K,O,R)};
D.getMetadataKeys=function(K,O){if(U(K))C(O)||(O=Z(O));else throw new TypeError;return x(K,O)};
D.getOwnMetadataKeys=function(K,O){if(U(K))C(O)||(O=Z(O));else throw new TypeError;return f(K,O)};
D.deleteMetadata=function(K,O,R){if(U(O))C(R)||(R=Z(R));else throw new TypeError;var vA=v(O,R,!1);if(!C(vA)){if(!vA.delete(K))return!1;if(vA.size>0)return!0;K=W.get(O);K.delete(R);if(K.size>0)return!0;W.delete(O);return!0}};
(function(K){if(typeof K.Reflect!=="undefined"){if(K.Reflect!==D)for(var O in D)K.Reflect[O]=D[O]}else K.Reflect=D})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(tLs||(tLs={}));var JqA=self;var rQt=[0,_.vu,_.$a,_.vu];var uTb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(uTb,_.xo);var Dis=_.EQ(uTb,[0,_.d7q,_.Va,rQt,_.$a,_.xa]);_.fa(_.xR,_.AN);_.V=_.xR.prototype;_.V.start=function(){this.stop();this.usingListeners_=!1;var D=vUJ(this),v=htb(this);D&&!v&&this.JSC$11318_win_.mozRequestAnimationFrame?(this.JSC$11318_id_=_.s_(this.JSC$11318_win_,"MozBeforePaint",this.callback_),this.JSC$11318_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11318_id_=D&&v?D.call(this.JSC$11318_win_,this.callback_):this.JSC$11318_win_.setTimeout(i4t(this.callback_),20)};
_.V.stop=function(){if(this.isActive()){var D=vUJ(this),v=htb(this);D&&!v&&this.JSC$11318_win_.mozRequestAnimationFrame?bP(this.JSC$11318_id_):D&&v?v.call(this.JSC$11318_win_,this.JSC$11318_id_):this.JSC$11318_win_.clearTimeout(this.JSC$11318_id_)}this.JSC$11318_id_=null};
_.V.fire=function(){this.stop();this.JSC$11320_doAction_()};
_.V.isActive=function(){return this.JSC$11318_id_!=null};
_.V.JSC$11320_doAction_=function(){this.usingListeners_&&this.JSC$11318_id_&&bP(this.JSC$11318_id_);this.JSC$11318_id_=null;this.JSC$11318_listener_.call(this.handler_,_.M6())};
_.V.disposeInternal=function(){this.stop();_.xR.superClass_.disposeInternal.call(this)};
var vUJ=function(D){D=D.JSC$11318_win_;return D.requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||null},htb=function(D){D=D.JSC$11318_win_;
return D.cancelAnimationFrame||D.cancelRequestAnimationFrame||D.webkitCancelRequestAnimationFrame||D.mozCancelRequestAnimationFrame||D.oCancelRequestAnimationFrame||D.msCancelRequestAnimationFrame||null};_.tn=function(D,v,h){_.AN.call(this);this.JSC$11321_listener_=h!=null?D.bind(h):D;this.JSC$11321_interval_=v;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11321_timer_=null};
_.J(_.tn,_.AN);_.V=_.tn.prototype;_.V.fire=function(D){this.args_=arguments;this.JSC$11321_timer_||this.pauseCount_?this.shouldFire_=!0:aWJ(this)};
_.V.stop=function(){this.JSC$11321_timer_&&(_.$L.clearTimeout(this.JSC$11321_timer_),this.JSC$11321_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.V.pause=function(){this.pauseCount_++};
_.V.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11321_timer_||(this.shouldFire_=!1,aWJ(this))};
_.V.disposeInternal=function(){_.AN.prototype.disposeInternal.call(this);this.stop()};
var aWJ=function(D){D.JSC$11321_timer_=w9(function(){D.JSC$11321_timer_=null;D.shouldFire_&&!D.pauseCount_&&(D.shouldFire_=!1,aWJ(D))},D.JSC$11321_interval_);
var v=D.args_;D.args_=null;D.JSC$11321_listener_.apply(null,v)};var $is=function(D,v){this.childIterator_=D[_.$L.Symbol.iterator]();this.mapFn_=v};
$is.prototype[Symbol.iterator]=function(){return this};
$is.prototype.next=function(){var D=this.childIterator_.next();return{value:D.done?void 0:this.mapFn_.call(void 0,D.value),done:D.done}};
var Qyt=function(D,v){return new $is(D,v)};var GH4={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 h2I=function(D){var v=VB$(D);if(!v)throw Error("Vd`"+D);return v},VB$=function(D){var v={};
D=String(D);var h=D.charAt(0)=="#"?D:"#"+D;if(PcJ.test(h))return v.hex=WC4(h),v.type="hex",v;h=Gpu(D);return h.length?(v.hex=wMI(h[0],h[1],h[2]),v.type="rgb",v):GH4&&(D=GH4[D.toLowerCase()])?(v.hex=D,v.type="named",v):null},xiM=/#(.)(.)(.)/,WC4=function(D){if(!PcJ.test(D))throw Error("Xd`"+D);
D.length==4&&(D=D.replace(xiM,"#$1$1$2$2$3$3"));return D.toLowerCase()},a_O=function(D){D=WC4(D);
D=parseInt(D.slice(1),16);return[D>>16,D>>8&255,D&255]},wMI=function(D,v,h){D=Number(D);
v=Number(v);h=Number(h);if(D!=(D&255)||v!=(v&255)||h!=(h&255))throw Error("Yd`"+D+"`"+v+"`"+h);v=D<<16|v<<8|h;return D<16?"#"+(16777216|v).toString(16).slice(1):"#"+v.toString(16)},PcJ=/^#(?:[0-9a-f]{3}){1,2}$/i,MBF=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Gpu=function(D){var v=D.match(MBF);
if(v){D=Number(v[1]);var h=Number(v[2]);v=Number(v[3]);if(D>=0&&D<=255&&h>=0&&h<=255&&v>=0&&v<=255)return[D,h,v]}return[]};var fWM={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},k2=fWM;k2=fWM;var HFA,Cc9,oU$;HFA=function(D,v){switch(v){case 1:return D%4!=0||D%100==0&&D%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Cc9=function(D,v,h,a,Q){D=new Date(D,v,h);Q=Q||0;return D.valueOf()+(((a!==void 0?a:3)-Q+7)%7-((D.getDay()+6)%7-Q+7)%7)*864E5};
_.wm=function(D,v,h){typeof D==="number"?(this.date=oU$(D,v||0,h||1),Fgy(this,h||1)):_.Ro(D)?(this.date=oU$(D.getFullYear(),D.getMonth(),D.getDate()),Fgy(this,D.getDate())):(this.date=new Date(_.M6()),D=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Fgy(this,D))};
oU$=function(D,v,h){v=new Date(D,v,h);D>=0&&D<100&&v.setFullYear(v.getFullYear()-1900);return v};
_.V=_.wm.prototype;_.V.firstDayOfWeek_=k2.FIRSTDAYOFWEEK;_.V.firstWeekCutOffDay_=k2.FIRSTWEEKCUTOFFDAY;_.V.clone=function(){var D=new _.wm(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.V.getFullYear=function(){return this.date.getFullYear()};
_.V.getYear=function(){return this.getFullYear()};
_.V.getMonth=function(){return this.date.getMonth()};
_.V.getDate=function(){return this.date.getDate()};
_.V.getTime=function(){return this.date.getTime()};
_.V.getDay=function(){return this.date.getDay()};
_.V.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.V.getUTCMonth=function(){return this.date.getUTCMonth()};
_.V.getUTCDate=function(){return this.date.getUTCDate()};
_.V.getUTCDay=function(){return this.date.getDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.V.set=function(D){this.date=new Date(D.getFullYear(),D.getMonth(),D.getDate())};
_.V.setFullYear=function(D){this.date.setFullYear(D)};
_.V.setYear=function(D){this.setFullYear(D)};
_.V.setMonth=function(D){this.date.setMonth(D)};
_.V.setDate=function(D){this.date.setDate(D)};
_.V.setTime=function(D){this.date.setTime(D)};
_.V.setUTCFullYear=function(D){this.date.setUTCFullYear(D)};
_.V.setUTCMonth=function(D){this.date.setUTCMonth(D)};
_.V.setUTCDate=function(D){this.date.setUTCDate(D)};
_.V.add=function(D){if(D.years||D.months){var v=this.getMonth()+D.months+D.years*12,h=this.getYear()+Math.floor(v/12);v%=12;v<0&&(v+=12);var a=Math.min(HFA(h,v),this.getDate());this.setDate(1);this.setFullYear(h);this.setMonth(v);this.setDate(a)}D.days&&(h=this.getYear(),v=h>=0&&h<=99?-1900:0,D=new Date((new Date(h,this.getMonth(),this.getDate(),12)).getTime()+D.days*864E5),this.setDate(1),this.setFullYear(D.getFullYear()+v),this.setMonth(D.getMonth()),this.setDate(D.getDate()),Fgy(this,D.getDate()))};
_.V.JSC$11334_toIsoString=function(D){var v=this.getFullYear(),h=v<0?"-":v>=1E4?"+":"";return[h+_.UO(Math.abs(v),h?6:4),_.UO(this.getMonth()+1,2),_.UO(this.getDate(),2)].join(D?"-":"")};
_.V.equals=function(D){return!(!D||this.getYear()!=D.getYear()||this.getMonth()!=D.getMonth()||this.getDate()!=D.getDate())};
_.V.toString=function(){return this.JSC$11334_toIsoString()};
var Fgy=function(D,v){D.getDate()!=v&&D.date.setUTCHours(D.date.getUTCHours()+(D.getDate()<v?1:-1))};
_.wm.prototype.valueOf=function(){return this.date.valueOf()};var n6=function(D,v,h,a,Q){this.reversed=!!v;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!h;D&&ey(this,D,a);this.depth=Q!=void 0?Q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.fa(n6,k9);var ey=function(D,v,h,a){if(D.node=v)D.tagType=typeof h==="number"?h:D.node.nodeType!=1?0:D.reversed?-1:1;typeof a==="number"&&(D.depth=a)};
_.V=n6.prototype;_.V.JSC$11349_copyFrom=function(D){this.node=D.node;this.tagType=D.tagType;this.depth=D.depth;this.reversed=D.reversed;this.constrained=D.constrained};
_.V.clone=function(){return new n6(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.V.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Sn;var D=this.node;var v=this.reversed?-1:1;if(this.tagType==v){var h=this.reversed?D.lastChild:D.firstChild;h?ey(this,h):ey(this,D,v*-1)}else(h=this.reversed?D.previousSibling:D.nextSibling)?ey(this,h):ey(this,D.parentNode,v*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(D=this.node)?Je(D):Sn};
_.V.equals=function(D){return D.node==this.node&&(!this.node||D.tagType==this.tagType)};
_.V.splice=function(D){var v=this.node,h=this.reversed?1:-1;this.tagType==h&&(this.tagType=h*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;n6.prototype.next.call(this);this.reversed=!this.reversed;h=_.O8(arguments[0])?arguments[0]:arguments;for(var a=h.length-1;a>=0;a--)_.KW(h[a],v);_.Np(v)};var zts=function(){},OZ=function(D){for(var v=[],h=D.getTextRangeCount(),a=0;a<h;a++)v.push(D.getTextRange(a));
return v};
zts.prototype.isReversed=function(){return!1};
zts.prototype.getWindow=function(){return yz(_.e9(this.JSC$11351_getStartNode()))};
var UiF=function(D,v){n6.call(this,D,v,!0)};
_.fa(UiF,n6);var K6=function(D,v,h,a,Q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Q;if(D){this.startNode_=D;this.startOffset_=v;this.endNode_=h;this.endOffset_=a;if(D.nodeType==1&&D.tagName!="BR")if(D=D.childNodes,v=D[v])this.startNode_=v,this.startOffset_=0;else{D.length&&(this.startNode_=_.dc(D));var G=!0}h.nodeType==1&&((this.endNode_=h.childNodes[a])?this.endOffset_=0:this.endNode_=h)}n6.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);G&&this.next()};
_.fa(K6,UiF);_.V=K6.prototype;_.V.JSC$11357_getStartNode=function(){return this.startNode_};
_.V.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)};
_.V.next=function(){return this.isLast()?Sn:K6.superClass_.next.call(this)};
_.V.JSC$11349_copyFrom=function(D){this.startNode_=D.startNode_;this.endNode_=D.endNode_;this.startOffset_=D.startOffset_;this.endOffset_=D.endOffset_;this.isReversed_=D.isReversed_;K6.superClass_.JSC$11349_copyFrom.call(this,D)};
_.V.clone=function(){var D=new K6(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);D.JSC$11349_copyFrom(this);return D};var LgF=function(){};
LgF.prototype.__iterator__=function(){return new K6(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Tc=function(D){this.range_=D};
_.fa(Tc,LgF);var ZZJ=function(D){var v=_.e9(D).createRange();if(D.nodeType==3)v.setStart(D,0),v.setEnd(D,D.length);else if(eD(D)||D.nodeType==3){for(var h,a=D;(h=a.firstChild)&&(eD(h)||h.nodeType==3);)a=h;v.setStart(a,0);for(a=D;(h=a.lastChild)&&(eD(h)||h.nodeType==3);)a=h;v.setEnd(a,a.nodeType==1?a.childNodes.length:a.length)}else h=D.parentNode,D=Array.prototype.indexOf.call(h.childNodes,D),v.setStart(h,D),v.setEnd(h,D+1);return v},EUR=function(D,v,h,a){var Q=_.e9(D).createRange();
Q.setStart(D,v);Q.setEnd(h,a);return Q};
_.V=Tc.prototype;_.V.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.V.getContainer=function(){return this.range_.commonAncestorContainer};
_.V.compareBrowserRangeEndpoints=function(D,v,h){return this.range_.compareBoundaryPoints(h==1?v==1?_.$L.Range.START_TO_START:_.$L.Range.START_TO_END:v==1?_.$L.Range.END_TO_START:_.$L.Range.END_TO_END,D)};
_.V.isCollapsed=function(){return this.range_.collapsed};
_.V.select=function(D){this.selectInternal(yz(_.e9(this.range_.startContainer)).getSelection(),D)};
_.V.selectInternal=function(D){D.removeAllRanges();D.addRange(this.range_)};
_.V.insertNode=function(D,v){var h=this.range_.cloneRange();h.collapse(v);h.insertNode(D);h.detach();return D};
_.V.collapse=function(D){this.range_.collapse(D)};_.fa(Mc,Tc);Mc.prototype.selectInternal=function(D,v){!v||this.isCollapsed()?Mc.superClass_.selectInternal.call(this,D,v):(D.collapse(this.range_.endContainer,this.range_.endOffset),D.extend(this.range_.startContainer,this.range_.startOffset))};_.fa(fm,Tc);fm.prototype.compareBrowserRangeEndpoints=function(D,v,h){return fm.superClass_.compareBrowserRangeEndpoints.call(this,D,v,h)};
fm.prototype.selectInternal=function(D,v){v?D.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):D.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var IWJ=function(D){return _.La?new fm(D):_.U1?new Mc(D):new Tc(D)};var R5=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},gUJ;
_.fa(R5,zts);gUJ=function(D,v){var h=new R5;h.browserRangeWrapper_=D;h.isReversed_=!!v;return h};
_.kHJ=function(D){D=_.La?new fm(ZZJ(D)):_.U1?new Mc(ZZJ(D)):new Tc(ZZJ(D));return gUJ(D)};
_.ir=function(D,v,h,a){var Q=new R5;Q.isReversed_=SIm(D,v,h,a);if(_.aB(D)&&!eD(D)){var G=D.parentNode;v=Array.prototype.indexOf.call(G.childNodes,D);D=G}_.aB(h)&&!eD(h)&&(G=h.parentNode,a=Array.prototype.indexOf.call(G.childNodes,h),h=G);Q.isReversed_?(Q.startNode_=h,Q.startOffset_=a,Q.endNode_=D,Q.endOffset_=v):(Q.startNode_=D,Q.startOffset_=v,Q.endNode_=h,Q.endOffset_=a);return Q};
_.V=R5.prototype;_.V.clone=function(){var D=new R5;D.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();D.startNode_=this.startNode_;D.startOffset_=this.startOffset_;D.endNode_=this.endNode_;D.endOffset_=this.endOffset_;D.isReversed_=this.isReversed_;return D};
_.V.JSC$11351_getType=function(){return"text"};
_.V.getBrowserRangeObject=function(){return WN(this).range_};
_.V.getTextRangeCount=function(){return 1};
_.V.getTextRange=function(){return this};
var WN=function(D){var v;if(!(v=D.browserRangeWrapper_)){v=D.JSC$11351_getStartNode();var h=D.JSC$11351_getStartOffset(),a=D.JSC$11351_getEndNode(),Q=D.JSC$11351_getEndOffset();v=_.La?new fm(EUR(v,h,a,Q)):_.U1?new Mc(EUR(v,h,a,Q)):new Tc(EUR(v,h,a,Q));v=D.browserRangeWrapper_=v}return v};
_.V=R5.prototype;_.V.getContainer=function(){return WN(this).getContainer()};
_.V.JSC$11351_getStartNode=function(){return this.startNode_||(this.startNode_=WN(this).range_.startContainer)};
_.V.JSC$11351_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=WN(this).range_.startOffset};
_.V.JSC$11351_getEndNode=function(){return this.endNode_||(this.endNode_=WN(this).range_.endContainer)};
_.V.JSC$11351_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=WN(this).range_.endOffset};
_.V.isReversed=function(){return this.isReversed_};
_.V.JSC$11351_containsRange=function(D,v){if(D.JSC$11351_getType()=="text"){var h=WN(this);D=WN(D);v=v&&!D.isCollapsed();D=D.range_;h=v?h.compareBrowserRangeEndpoints(D,0,1)>=0&&h.compareBrowserRangeEndpoints(D,1,0)<=0:h.compareBrowserRangeEndpoints(D,0,0)>=0&&h.compareBrowserRangeEndpoints(D,1,1)<=0}else h=!1;return h};
_.V.isCollapsed=function(){return WN(this).isCollapsed()};
_.V.JSC$11351_getText=function(){return WN(this).range_.toString()};
_.V.__iterator__=function(){return new K6(this.JSC$11351_getStartNode(),this.JSC$11351_getStartOffset(),this.JSC$11351_getEndNode(),this.JSC$11351_getEndOffset())};
_.V.select=function(){WN(this).select(this.isReversed_)};
_.V.JSC$11351_removeContents=function(){var D=WN(this).range_;D.extractContents();if(D.startContainer.hasChildNodes()&&(D=D.startContainer.childNodes[D.startOffset])){var v=D.previousSibling;O3M(D)==""&&_.Np(D);v&&O3M(v)==""&&_.Np(v)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.V.insertNode=function(D,v){D=WN(this).insertNode(D,v);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return D};
_.V.collapse=function(D){D=this.isReversed()?!D:D;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(D);D?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var JVF=function(){};
_.fa(JVF,zts);JVF.prototype.JSC$11351_containsRange=function(D,v){var h=OZ(this);D=OZ(D);return(v?DM:_.ebc)(D,function(a){return DM(h,function(Q){return Q.JSC$11351_containsRange(a,v)})})};
JVF.prototype.insertNode=function(D,v){v?_.OO(D,this.JSC$11351_getStartNode()):_.KW(D,this.JSC$11351_getEndNode());return D};var prt,lW4=cW().JSC$9330_document_.documentElement;prt=lW4.requestFullscreen?"fullscreenchange":lW4.webkitRequestFullscreen?"webkitfullscreenchange":lW4.mozRequestFullScreen?"mozfullscreenchange":lW4.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Nxs=function(){var D=cW().JSC$9330_document_;return!!(D.webkitIsFullScreen||D.mozFullScreen||D.msFullscreenElement||D.fullscreenElement)};var tT=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.fa(tT,JVF);_.V=tT.prototype;_.V.clone=function(){var D=new tT;D.browserRanges_=_.n7(this.browserRanges_);return D};
_.V.JSC$11351_getType=function(){return"mutli"};
_.V.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.V.getTextRangeCount=function(){return this.browserRanges_.length};
_.V.getTextRange=function(D){this.ranges_[D]||(this.ranges_[D]=gUJ(IWJ(this.browserRanges_[D])));return this.ranges_[D]};
_.V.getContainer=function(){if(!this.container_){for(var D=[],v=this.getTextRangeCount(),h=0;h<v;h++)D.push(this.getTextRange(h).getContainer());this.container_=sUR.apply(null,D)}return this.container_};
var rm=function(D){D.sortedRanges_||(D.sortedRanges_=OZ(D),D.sortedRanges_.sort(function(v,h){var a=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();var Q=h.JSC$11351_getStartNode();h=h.JSC$11351_getStartOffset();return a==Q&&v==h?0:SIm(a,v,Q,h)?1:-1}));
return D.sortedRanges_};
_.V=tT.prototype;_.V.JSC$11351_getStartNode=function(){return rm(this)[0].JSC$11351_getStartNode()};
_.V.JSC$11351_getStartOffset=function(){return rm(this)[0].JSC$11351_getStartOffset()};
_.V.JSC$11351_getEndNode=function(){return _.dc(rm(this)).JSC$11351_getEndNode()};
_.V.JSC$11351_getEndOffset=function(){return _.dc(rm(this)).JSC$11351_getEndOffset()};
_.V.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.V.JSC$11351_getText=function(){return OZ(this).map(function(D){return D.JSC$11351_getText()}).join("")};
_.V.__iterator__=function(){return new ur(this)};
_.V.select=function(){var D=this.getWindow().getSelection();D.removeAllRanges();for(var v=this.getTextRangeCount(),h=0;h<v;h++)D.addRange(this.getTextRange(h).getBrowserRangeObject())};
_.V.JSC$11351_removeContents=function(){OZ(this).forEach(function(D){D.JSC$11351_removeContents()})};
_.V.collapse=function(D){if(!this.isCollapsed()){var v=D?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;v.collapse(D);this.ranges_=[v];this.sortedRanges_=[v];this.browserRanges_=[v.getBrowserRangeObject()]}};
var ur=function(D){this.iterators_=null;this.currentIdx_=0;D&&(this.iterators_=rm(D).map(function(v){return _.H94(v)}));
n6.call(this,D?this.JSC$11357_getStartNode():null,!1,!0)};
_.fa(ur,UiF);_.V=ur.prototype;_.V.JSC$11357_getStartNode=function(){return this.iterators_[0].JSC$11357_getStartNode()};
_.V.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.V.next=function(){for(;this.currentIdx_<this.iterators_.length;){var D=this.iterators_[this.currentIdx_],v=D.next();if(v.done)this.currentIdx_++;else return ey(this,D.node,D.tagType,D.depth),v}return Sn};
_.V.JSC$11349_copyFrom=function(D){this.iterators_=_.n7(D.iterators_);ur.superClass_.JSC$11349_copyFrom.call(this,D)};
_.V.clone=function(){var D=new ur(null);D.JSC$11349_copyFrom(this);return D};var YIJ,SIm;_.LS=function(){var D=window.getSelection();return D&&YIJ(D)};
YIJ=function(D){var v=!1;if(D.createRange)try{var h=D.createRange()}catch(Q){return null}else if(D.rangeCount){if(D.rangeCount>1){h=new tT;v=D.rangeCount;for(var a=0;a<v;a++)h.browserRanges_.push(D.getRangeAt(a));return h}h=D.getRangeAt(0);v=SIm(D.anchorNode,D.anchorOffset,D.focusNode,D.focusOffset)}else return null;return gUJ(IWJ(h),v)};
_.DV=function(D,v){return _.ir(D,v,D,v)};
_.vq=function(D,v,h,a){return _.ir(D,v,h,a)};
SIm=function(D,v,h,a){if(D==h)return a<v;var Q;if(D.nodeType==1&&v)if(Q=D.childNodes[v])D=Q,v=0;else if(_.Ra(D,h))return!0;if(h.nodeType==1&&a)if(Q=h.childNodes[a])h=Q,a=0;else if(_.Ra(h,D))return!1;return(jUt(D,h)||v-a)>0};var hx=function(){_.jZ.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.qp)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.qp)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.qp)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.qp)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.qp)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.qp)(this.dispatchProgressEvent_,this)};
_.fa(hx,_.jZ);hx.prototype.abort=function(){try{this.reader_.abort()}catch(D){throw new Op1(D,"aborting read");}};
hx.prototype.getError=function(){return this.reader_.error&&new Op1(this.reader_.error,"reading file")};
hx.prototype.dispatchProgressEvent_=function(D){this.dispatchEvent(new KV$(D,this))};
hx.prototype.disposeInternal=function(){hx.superClass_.disposeInternal.call(this);delete this.reader_};
var cVJ=function(D){var v=new hx,h=Bxt(v);v.reader_.readAsArrayBuffer(D);return h},Xr4=function(D){var v=new hx,h=Bxt(v);
v.reader_.readAsDataURL(D);return h},Bxt=function(D){var v=new Vb;
D.listen("loadend",_.NF(function(h,a){var Q=a.reader_.result,G=a.getError();Q==null||G?h.errback(G):h.callback(Q);a.dispose()},v,D));
return v};var aR=function(){_.jZ.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11391_eventHandler_=new _.or(this);this.JSC$11391_isInitialized_=!1};
_.fa(aR,_.jZ);var AVy=new _.cZ("d"),qIF=new _.cZ("beforedragstart"),bZF=new _.cZ("dragstart"),dit=new _.cZ("beforedragmove"),jyy=new _.cZ("dragmove"),syJ=new _.cZ("beforedragend"),miJ=new _.cZ("dragend"),HZ9=new _.cZ("e");aR.prototype.isDragging=function(){return!!this.JSC$11391_dragger_};
var yV4=function(D,v){v.dlgGrowthDirection_=0;v.dlgDragHoverClass_=void 0;v.dlgDragPermission=0;D.dragLists_.push(v)},wrR=function(D,v){D.getHandleForDragItem_=v};
aR.prototype.init=function(){if(!this.JSC$11391_isInitialized_){for(var D=this.dragLists_.length,v=0;v<D;v++)for(var h=_.T6(this.dragLists_[v]),a=h.length,Q=0;Q<a;++Q){var G=h[Q],x=this.getHandleForDragItem_(G),f=_.iq(x);this.dragItemForHandle_[f]=G;this.dragItemHoverClasses_&&(this.JSC$11391_eventHandler_.listen(G,"mouseover",this.handleDragItemMouseover_),this.JSC$11391_eventHandler_.listen(G,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11391_eventHandler_.listen(x,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11391_eventHandler_.listen(x,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(G);this.JSC$11391_eventHandler_.listen(x,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11391_isInitialized_=!0}};
aR.prototype.disposeInternal=function(){this.JSC$11391_eventHandler_.dispose();for(var D=this.dragLists_.length,v=0;v<D;v++){var h=this.dragLists_[v];h.dlgGrowthDirection_=void 0;h.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;etp(this);aR.superClass_.disposeInternal.call(this)};
var nUF=function(D,v){for(var h=D.dragLists_.length,a=0;a<h;a++){var Q=D.dragLists_[a];Q.dlgBounds_=Pn4(Q)}h=D.dragItems_.length;for(a=0;a<h;a++)Q=D.dragItems_[a],Q!=v&&(Q.dlgBounds_=Pn4(Q))};
_.V=aR.prototype;
_.V.handlePotentialDragStart_=function(D){var v=_.iq(D.currentTarget);v=this.dragItemForHandle_[v];if(v.parentElement.dlgDragPermission!=2){this.currDragItem_=v;a:{v=this.currDragItem_;for(var h=v.cloneNode(!0),a=Yq("TEXTAREA",v),Q=Yq("TEXTAREA",h),G=0;G<a.length;G++)Q[G].value=a[G].value;switch(v.tagName){case "TR":v=_.ya("TABLE",null,_.ya("TBODY",null,h));break a;case "TD":case "TH":v=_.ya("TABLE",null,_.ya("TBODY",null,_.ya("TR",null,h)));break a;case "TEXTAREA":h.value=v.value;default:v=h;break a}v=
void 0}this.draggerEl_=v;this.draggerElClasses_&&Qb(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.e9(this.currDragItem_).body.appendChild(this.draggerEl_);h=_.nT(this.currDragItem_);v=this.draggerEl_;a=_.nT(v);if(h instanceof _.HW){var x=h.y;h=h.x}rs(v,v.offsetLeft+(h-a.x),v.offsetTop+(Number(x)-a.y));this.JSC$11391_dragger_=new _.uE(this.draggerEl_);_.nzy(this.JSC$11391_dragger_,this.hysteresisDistance_);
_.s_(this.JSC$11391_dragger_,"start",this.handleDragStart_,!1,this);_.s_(this.JSC$11391_dragger_,"end",this.handleDragEnd_,!1,this);_.s_(this.JSC$11391_dragger_,"earlycancel",this.JSC$11393_cleanup_,!1,this);this.dispatchEvent(new $F(AVy,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_));this.JSC$11391_dragger_.startDrag(D)}};
_.V.handleDragStart_=function(D){if(this.dispatchEvent(new $F(qIF,this,D.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.q24(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Qb(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var v=t$y(this.draggerEl_);this.draggerEl_.halfWidth=v.width/2;this.draggerEl_.halfHeight=v.height/2;v=this.draggerEl_.getBoundingClientRect();
var h=D.clientY,a=OL4(this.JSC$11391_dragger_,D.clientX);if(a>v.right){var Q=this.currDragItem_.getBoundingClientRect();this.JSC$11391_dragger_.deltaX=a-(a-Q.left)/Q.width*v.width}h=Kdp(this.JSC$11391_dragger_,h);h>v.bottom&&(this.JSC$11391_dragger_.deltaY+=h-v.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";nUF(this,this.currDragItem_);this.currDragItem_.style.display="";_.s_(this.JSC$11391_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new $F(bZF,
this,D.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_))}else D.preventDefault(),this.JSC$11393_cleanup_()};
_.V.handleDragMove_=function(D){var v=_.nT(this.draggerEl_);v=new _.HW(v.x+this.draggerEl_.halfWidth,v.y+this.draggerEl_.halfHeight);a:{var h=null;if(this.currDragItem_.style.display!="none"){h=this.currDragItem_.parentNode;var a=Pn4(h);if(OZ$(v,a))break a}a=this.dragLists_.length;for(var Q=0;Q<a;Q++){var G=this.dragLists_[Q];if(G!=h&&OZ$(v,G.dlgBounds_)){h=G;break a}}h=null}if(h){if(h==null)throw Error("Zd");a=0;Q=!1;G=void 0;switch(h.dlgGrowthDirection_){case 0:a=v.y;var x=Kgs;var f=Tx4;break;case 4:Q=
!0;case 2:a=v.x;x=Rt9;f=Tx4;break;case 5:Q=!0;case 3:a=v.x,x=iZs,f=Wgp}for(var C=null,U,L=_.T6(h),Z=L.length,E=0;E<Z;E++){var I=L[E];if(I!=this.currDragItem_){var S=x(I.dlgBounds_);if(Q){var B=tBJ(I,v);G===void 0&&(G=B);f(a,S)&&(U==void 0||B<G||B==G&&(f(S,U)||S==U))&&(C=I,U=S);B<G&&(G=B)}else f(a,S)&&(U==void 0||f(S,U))&&(C=I,U=S)}}x=C!==null&&tBJ(C,v)>G?null:C}else x=null;if(!this.dispatchEvent(new $F(dit,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_,v,h,x)))return!1;if(h&&h.dlgDragPermission!=
1)this.currDragItem_.parentNode==h&&_.q24(this.currDragItem_)==x||h.insertBefore(this.currDragItem_,x),this.currDragItem_.style.display="",h.dlgDragHoverClass_&&_.x5(h,h.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",f=this.dragLists_.length,U=0;U<f;U++)a=this.dragLists_[U],a.dlgDragHoverClass_&&_.V0(a,a.dlgDragHoverClass_);h!=this.currHoverList_&&(this.currHoverList_=h,nUF(this,this.currDragItem_));this.dispatchEvent(new $F(jyy,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_,
v,h,x));return!1};
_.V.JSC$11393_cleanup_=function(){etp(this);this.JSC$11391_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var D=this.dragLists_.length,v=0;v<D;v++)this.dragLists_[v].dlgBounds_=null;D=this.dragItems_.length;for(v=0;v<D;v++)this.dragItems_[v].dlgBounds_=null};
_.V.handleDragEnd_=function(D){if(!this.dispatchEvent(new $F(syJ,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_)))return!1;etp(this);this.dispatchEvent(new $F(miJ,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_));this.JSC$11393_cleanup_();return!0};
var etp=function(D){_.V5(D.JSC$11391_dragger_);var v=D.draggerEl_&&D.draggerEl_.parentElement;D.draggerEl_&&_.Np(D.draggerEl_);D.currDragItem_&&D.currDragItem_.style.display=="none"&&(D.origList_.insertBefore(D.currDragItem_,D.origNextItem_),D.currDragItem_.style.display="");D.currDragItemClasses_&&D.currDragItem_?wlM(D.currDragItem_,D.currDragItemClasses_||[]):D.currDragItem_&&(D.currDragItem_.style.visibility="");for(var h=D.dragLists_.length,a=0;a<h;a++){var Q=D.dragLists_[a];Q.dlgDragHoverClass_&&
_.V0(Q,Q.dlgDragHoverClass_)}v&&D.dispatchEvent(new $F(HZ9,D,null,D.currDragItem_,D.draggerEl_,D.JSC$11391_dragger_))};
_.V=aR.prototype;_.V.getHandleForDragItem_=function(D){return D};
_.V.handleDragItemMouseover_=function(D){Qb(D.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemMouseout_=function(D){wlM(D.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemHandleMouseover_=function(D){Qb(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.V.handleDragItemHandleMouseout_=function(D){wlM(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
var OZ$=function(D,v){return D.x>v.left&&D.x<v.left+v.width&&D.y>v.top&&D.y<v.top+v.height},tBJ=function(D,v){D=D.dlgBounds_;
return Math.abs(v.y-(D.top+(D.height-1)/2))},Kgs=function(D){return D.top+D.height-1},Rt9=function(D){return D.left+D.width-1},iZs=function(D){return D.left||0},Tx4=function(D,v){return D<v},Wgp=function(D,v){return D>v},$F=function(D,v,h,a,Q,G){_.XI.call(this,D);
this.event=h;this.currDragItem=a;this.draggerEl=Q;this.JSC$11395_dragger=G};
_.fa($F,_.XI);_.fa(Fn,_.AN);var rVF=new _.HW(0,0);Fn.prototype.JSC$11399_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Fn.prototype.JSC$11399_onMouseMove=function(D){var v=this.containerIsActuallyContent_?rVF:YJ(cW(this.containerNode_)),h=this.horizontalScrolling_?this.calculateScrollDelta(D.clientX+v.x,this.scrollBounds_.left,this.scrollBounds_.width):0,a=this.calculateScrollDelta(D.clientY+v.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=h;this.scrollDelta_.y=a;!(h=!h&&!a)&&(h=this.constrainScroll_)&&(h=D.clientX+v.x,D=D.clientY+v.y,v=this.containerBounds_,h=!(v.left<=h&&v.left+v.width>=
h&&v.top<=D&&v.top+v.height>=D));h?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Fn.prototype.calculateScrollDelta=function(D,v,h){var a=0;D<v?a=-8:D>v+h&&(a=8);return a};
Fn.prototype.disposeInternal=function(){Fn.superClass_.disposeInternal.call(this);this.JSC$11397_eventHandler_.dispose();this.scrollTimer_.dispose()};var uS4={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"}}},Q3=uS4;Q3=uS4;var GL={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 DK$=function(){},vR=function(D){if(typeof D=="number"){var v=new DK$;
v.standardOffset_=D;var h=D;if(h==0)h="Etc/GMT";else{var a=["Etc/GMT",h<0?"-":"+"];h=Math.abs(h);a.push(Math.floor(h/60)%100);h%=60;h!=0&&a.push(":",_.UO(h,2));h=a.join("")}v.timeZoneId_=h;h=D;h==0?h="UTC":(a=["UTC",h<0?"+":"-"],h=Math.abs(h),a.push(Math.floor(h/60)%100),h%=60,h!=0&&a.push(":",h),h=a.join(""));D=vt4(D);v.tzNames_=[h,h];v.tzNamesExt_={STD_LONG_NAME_GMT:D,STD_GENERIC_LOCATION:D};v.transitions_=[];return v}v=new DK$;v.timeZoneId_=D.id;v.standardOffset_=-D.std_offset;v.tzNames_=D.names;
v.tzNamesExt_=D.names_ext;v.transitions_=D.transitions;return v},vt4=function(D){var v=["GMT"];
v.push(D<=0?"+":"-");D=Math.abs(D);v.push(_.UO(Math.floor(D/60)%100,2),":",_.UO(D%60,2));return v.join("")},hSJ=function(D,v){v=Date.UTC(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate(),v.getUTCHours(),v.getUTCMinutes())/36E5;
for(var h=0;h<D.transitions_.length&&v>=D.transitions_[h];)h+=2;return h==0?0:D.transitions_[h-1]},aps=function(D,v){D=D.standardOffset_-hSJ(D,v);
return D===-1440?0:D};var hQ=function(D,v){this.patternParts_=[];this.JSC$11410_dateTimeSymbols_=v||k2;typeof D=="number"?$Kp(this,D):QqM(this,D)},Gz9=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],V3=function(D){return D.getHours?D.getHours():0},QqM=function(D,v){for(PtI&&(v=v.replace(/\u200f/g,""));v;){for(var h=v,a=0;a<Gz9.length;++a){var Q=v.match(Gz9[a]);
if(Q){var G=Q[0];v=v.substring(G.length);a==0&&(G=="''"?G="'":(G=G.substring(1,Q[1]=="'"?G.length-1:G.length),G=G.replace(/''/g,"'")));D.patternParts_.push({text:G,type:a});break}}if(h===v)throw Error("$d`"+v);}};
hQ.prototype.format=function(D,v){if(!D)throw Error("ae");var h=v?(D.getTimezoneOffset()-aps(v,D))*6E4:0,a=h?new Date(D.getTime()+h):D,Q=a;v&&a.getTimezoneOffset()!=D.getTimezoneOffset()&&(a=new Date(a.getTime()+(a.getTimezoneOffset()-D.getTimezoneOffset())*6E4),Q=new Date(D.getTime()+(h+(h>0?-864E5:864E5))));h=[];for(var G=0;G<this.patternParts_.length;++G){var x=this.patternParts_[G].text;1==this.patternParts_[G].type?h.push(VQm(this,x,D,a,Q,v)):h.push(x)}return h.join("")};
var $Kp=function(D,v){if(v<4)var h=D.JSC$11410_dateTimeSymbols_.DATEFORMATS[v];else if(v<8)h=D.JSC$11410_dateTimeSymbols_.TIMEFORMATS[v-4];else if(v<12)h=D.JSC$11410_dateTimeSymbols_.DATETIMEFORMATS[v-8],h=h.replace("{1}",D.JSC$11410_dateTimeSymbols_.DATEFORMATS[v-8]),h=h.replace("{0}",D.JSC$11410_dateTimeSymbols_.TIMEFORMATS[v-8]);else if(v===12)h=D.JSC$11410_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(v===13)h=D.JSC$11410_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{$Kp(D,10);return}QqM(D,h)},Pq=function(D,v){v=String(v);
D=D.JSC$11410_dateTimeSymbols_||k2;if(D.ZERODIGIT!==void 0&&!Vd7){for(var h=[],a=0;a<v.length;a++){var Q=v.charCodeAt(a);h.push(48<=Q&&Q<=57?String.fromCharCode(D.ZERODIGIT+Q-48):v.charAt(a))}v=h.join("")}return v},Vd7=!1,PtI=!1,xKJ=function(D,v,h,a){h=h.getFullYear();
h<=0&&a&&(h=1-h);return Pq(D,PPJ(h,v))},PPJ=function(D,v){v==2&&(D%=100);
D<0&&v++;return _.UO(D,v)},xF=function(D){if(!(D.getHours&&D.getSeconds&&D.getMinutes))throw Error("be");
},MQF=function(D,v){xF(v);
v=V3(v);return D.JSC$11410_dateTimeSymbols_.AMPMS[v>=12&&v<24?1:0]},VQm=function(D,v,h,a,Q,G){var x=v.length;
switch(v.charAt(0)){case "G":return h=a.getFullYear()>0?1:0,x>=4?D.JSC$11410_dateTimeSymbols_.ERANAMES[h]:D.JSC$11410_dateTimeSymbols_.ERAS[h];case "y":return xKJ(D,x,a,!0);case "Y":return h=(new Date(Cc9(a.getFullYear(),a.getMonth(),a.getDate(),D.JSC$11410_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11410_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),x==2&&(h%=100),Pq(D,PPJ(h,x));case "u":return xKJ(D,x,a,!1);case "M":a:switch(h=a.getMonth(),x){case 5:x=D.JSC$11410_dateTimeSymbols_.NARROWMONTHS[h];
break a;case 4:x=D.JSC$11410_dateTimeSymbols_.MONTHS[h];break a;case 3:x=D.JSC$11410_dateTimeSymbols_.SHORTMONTHS[h];break a;default:x=Pq(D,_.UO(h+1,x))}return x;case "k":return xF(Q),Pq(D,_.UO(V3(Q)||24,x));case "S":return Pq(D,(Q.getMilliseconds()/1E3).toFixed(Math.min(3,x)).slice(2)+(x>3?_.UO(0,x-3):""));case "E":return h=a.getDay(),x>=4?D.JSC$11410_dateTimeSymbols_.WEEKDAYS[h]:D.JSC$11410_dateTimeSymbols_.SHORTWEEKDAYS[h];case "a":return MQF(D,Q);case "b":return MQF(D,Q);case "B":return MQF(D,
Q);case "h":return xF(Q),Pq(D,_.UO(V3(Q)%12||12,x));case "K":return xF(Q),Pq(D,_.UO(V3(Q)%12,x));case "H":return xF(Q),Pq(D,_.UO(V3(Q),x));case "c":a:switch(h=a.getDay(),x){case 5:x=D.JSC$11410_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[h];break a;case 4:x=D.JSC$11410_dateTimeSymbols_.STANDALONEWEEKDAYS[h];break a;case 3:x=D.JSC$11410_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[h];break a;default:x=Pq(D,_.UO(h,1))}return x;case "L":a:switch(h=a.getMonth(),x){case 5:x=D.JSC$11410_dateTimeSymbols_.STANDALONENARROWMONTHS[h];
break a;case 4:x=D.JSC$11410_dateTimeSymbols_.STANDALONEMONTHS[h];break a;case 3:x=D.JSC$11410_dateTimeSymbols_.STANDALONESHORTMONTHS[h];break a;default:x=Pq(D,_.UO(h+1,x))}return x;case "Q":return h=Math.floor(a.getMonth()/3),x<4?D.JSC$11410_dateTimeSymbols_.SHORTQUARTERS[h]:D.JSC$11410_dateTimeSymbols_.QUARTERS[h];case "d":return Pq(D,_.UO(a.getDate(),x));case "m":return xF(Q),Pq(D,_.UO(Q.getMinutes?Q.getMinutes():0,x));case "s":return xF(Q),Pq(D,_.UO(Q.getSeconds(),x));case "v":return(G||vR(h.getTimezoneOffset())).timeZoneId_;
case "V":return D=G||vR(h.getTimezoneOffset()),x<=2?D.timeZoneId_:hSJ(D,h)>0?D.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?D.tzNamesExt_.STD_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return h=Cc9(Q.getFullYear(),Q.getMonth(),Q.getDate(),D.JSC$11410_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11410_dateTimeSymbols_.FIRSTDAYOFWEEK),Pq(D,_.UO(Math.floor(Math.round((h-(new Date((new Date(h)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,x));case "z":return D=G||vR(h.getTimezoneOffset()),x<4?D.tzNames_[hSJ(D,h)>0?2:0]:D.tzNames_[hSJ(D,h)>0?3:1];case "Z":return v=G||vR(h.getTimezoneOffset()),x<4?(x=-aps(v,h),D=[x<0?"-":"+"],x=Math.abs(x),D.push(_.UO(Math.floor(x/60)%100,2),_.UO(x%60,2)),x=D.join("")):x=Pq(D,vt4(aps(v,h))),x;default:return""}};var fpb=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,CPF=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,fac=function(D){this.patternParts_=[];this.JSC$11419_dateTimeSymbols_=k2;if(typeof D=="number"){D>11&&(D=10);if(D<4)var v=this.JSC$11419_dateTimeSymbols_.DATEFORMATS[D];else D<8?v=this.JSC$11419_dateTimeSymbols_.TIMEFORMATS[D-4]:(v=this.JSC$11419_dateTimeSymbols_.DATETIMEFORMATS[D-8],v=v.replace("{1}",this.JSC$11419_dateTimeSymbols_.DATEFORMATS[D-8]),v=v.replace("{0}",this.JSC$11419_dateTimeSymbols_.TIMEFORMATS[D-
8]));ot4(this,v)}else ot4(this,D)},ot4=function(D,v){for(var h=!1,a="",Q=0;Q<v.length;Q++){var G=v.charAt(Q);
if(fpb.test(G))for(a.length>0&&(D.patternParts_.push({text:a,count:0,abutStart:!1,numeric:!1}),a=""),D.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Q<v.length-1&&v.charAt(Q+1)==" ";)Q++;else if(h)G=="'"?Q+1<v.length&&v.charAt(Q+1)=="'"?(a+="'",Q++):h=!1:a+=G;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(G)>=0){a.length>0&&(D.patternParts_.push({text:a,count:0,abutStart:!1,numeric:!1}),a="");for(var x=v.charAt(Q),f=Q+1;f<v.length&&v.charAt(f)==x;)f++;x=f-Q;x<=0?f=!1:(f="MydhHmsSDkK".indexOf(G),
f=f>0||f==0&&x<3);D.patternParts_.push({text:G,count:x,abutStart:!1,numeric:f});Q+=x-1}else G=="'"?Q+1<v.length&&v.charAt(Q+1)=="'"?(a+="'",Q++):h=!0:a+=G}a.length>0&&D.patternParts_.push({text:a,count:0,abutStart:!1,numeric:!1});v=!1;for(h=0;h<D.patternParts_.length;h++)D.patternParts_[h].numeric?!v&&h+1<D.patternParts_.length&&D.patternParts_[h+1].numeric&&(v=!0,D.patternParts_[h].abutStart=!0):v=!1};
fac.prototype.parse=function(D,v,h){var a=!1,Q=!1;h&&(a=h.predictive||!1,Q=h.validate||!1);if(a)for(h=0;h<this.patternParts_.length;h++){var G=this.patternParts_[h];if(G.count>0&&("abBhHkKm".indexOf(G.text.charAt(0))<0||G.count>2||G.abutStart))throw Error("ce`"+G.text.charAt(0));}G=new FNs;h=[0];G.dayPeriodIndex=-1;for(var x=0;x<this.patternParts_.length&&!(a&&h[0]>=D.length);x++){if(this.patternParts_[x].count==0){a:{var f=D;var C=h,U=this.patternParts_[x],L=a;if(U.text.match(fpb)!=null){if(U=C[0],
zSp(f,C),C[0]>U){f=!0;break a}}else{if(f.indexOf(U.text,C[0])==C[0]){C[0]+=U.text.length;f=!0;break a}if(L&&U.text.indexOf(f.substring(C[0]))==0){C[0]+=f.length-C[0];f=!0;break a}}f=!1}if(f)continue;return 0}if(this.patternParts_[x].abutStart){a:{C=D;U=h;L=x;var Z=U[0],E=0;for(f=L;f<this.patternParts_.length;f++){var I=this.patternParts_[f],S=I.count;if(S===0)break;if(f==L&&(S-=E,E++,S==0)){f=0;break a}var B=f>L&&I.numeric,A=U[0];if(!UKs(this,C,U,I,S,G,!1)||B&&U[0]-A<S)f=L-1,U[0]=Z}f-=L}if(f<=0)return 0;
x+=f-1}else if(!UKs(this,D,h,this.patternParts_[x],0,G,a))return 0}a:{D=Q;if(v==null)throw Error("de");G.era!=void 0&&G.year!=void 0&&G.era==0&&G.year>0&&(G.year=-(G.year-1));G.year!=void 0&&v.setFullYear(G.year);a=v.getDate();v.setDate(1);G.month!=void 0&&v.setMonth(G.month);G.day!=void 0?v.setDate(G.day):(Q=HFA(v.getFullYear(),v.getMonth()),v.setDate(a>Q?Q:a));typeof v.setHours==="function"&&(G.hours==void 0&&(G.hours=v.getHours()),G.hours<12&&(G.ampm!=void 0&&G.ampm>0?G.hours+=12:G.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(G.dayPeriodName)||["night1","night2"].includes(G.dayPeriodName)&&G.hours>=6)&&(G.hours+=12)),v.setHours(G.hours));typeof v.setMinutes==="function"&&G.minutes!=void 0&&v.setMinutes(G.minutes);typeof v.setSeconds==="function"&&G.seconds!=void 0&&v.setSeconds(G.seconds);typeof v.setMilliseconds==="function"&&G.milliseconds!=void 0&&v.setMilliseconds(G.milliseconds);if(D&&(G.year&&G.year!=v.getFullYear()||G.month&&G.month!=
v.getMonth()||G.day&&G.day!=v.getDate()||G.hours&&G.hours>=24||G.minutes&&G.minutes>=60||G.seconds&&G.seconds>=60||G.milliseconds&&G.milliseconds>=1E3))v=!1;else{G.tzOffset!=void 0&&v.setTime(v.getTime()+(G.tzOffset-v.getTimezoneOffset())*60*1E3);G.ambiguousYear&&(D=new Date,D.setFullYear(D.getFullYear()-80),v.getTime()<D.getTime()&&v.setFullYear(D.getFullYear()+100));if(G.dayOfWeek!=void 0)if(G.day==void 0)G=(7+G.dayOfWeek-v.getDay())%7,G>3&&(G-=7),D=v.getMonth(),v.setDate(v.getDate()+G),v.getMonth()!=
D&&v.setDate(v.getDate()+(G>0?-7:7));else if(G.dayOfWeek!=v.getDay()){v=!1;break a}v=!0}}return v?h[0]:0};
var UKs=function(D,v,h,a,Q,G,x){zSp(v,h);if(a.numeric&&Q>0&&h[0]+Q>v.length)return!1;switch(a.text.charAt(0)){case "G":return M9(v,h,[D.JSC$11419_dateTimeSymbols_.ERAS],function(f){return G.era=f}),!0;
case "M":case "L":return LN4(D,v,h,Q,a,G);case "E":return M9(v,h,[D.JSC$11419_dateTimeSymbols_.WEEKDAYS,D.JSC$11419_dateTimeSymbols_.SHORTWEEKDAYS],function(f){return G.dayOfWeek=f});
case "B":case "b":return Q=[],D=[[].concat(D.JSC$11419_dateTimeSymbols_.AMPMS)],Q.push("isAm"),Q.push("isPm"),v=M9(v,h,D,function(f){return G.dayPeriodIndex=f},x),G.dayPeriodName=Q[G.dayPeriodIndex],x?v:!0;
case "a":return v=M9(v,h,[D.JSC$11419_dateTimeSymbols_.AMPMS],function(f){return G.ampm=f},x),x?v:!0;
case "y":return Zb9(D,v,h,a,Q,G);case "Q":return M9(v,h,[D.JSC$11419_dateTimeSymbols_.QUARTERS,D.JSC$11419_dateTimeSymbols_.SHORTQUARTERS],function(f){G.month=f*3;G.day=1});
case "d":return fg(D,v,h,a,Q,function(f){G.day=f}),!0;
case "S":return Et$(D,v,h,Q,G);case "h":case "K":case "H":case "k":return v=fg(D,v,h,a,Q,function(f){G.hours=a.text.charAt(0)==="h"&&f===12?0:f},x),x?v:!0;
case "m":return v=fg(D,v,h,a,Q,function(f){G.minutes=f},x),x?v:!0;
case "s":return fg(D,v,h,a,Q,function(f){G.seconds=f}),!0;
case "z":case "Z":case "v":return Ip4(D,v,h,G);default:return!1}},Zb9=function(D,v,h,a,Q,G){var x=h[0];
Q=Cg(D,v,h,Q);Q===null&&(Q=Cg(D,v,h,0,!0));if(Q===null)return!1;Q>=0&&h[0]-x==2&&a.count==2?(D=Q,v=(new Date).getFullYear()-80,h=v%100,G.ambiguousYear=D==h,D+=Math.floor(v/100)*100+(D<h?100:0),G.year=D):G.year=Q;return!0},LN4=function(D,v,h,a,Q,G){return Q.numeric&&fg(D,v,h,Q,a,function(x){G.month=x-1})?!0:M9(v,h,[D.JSC$11419_dateTimeSymbols_.MONTHS,
D.JSC$11419_dateTimeSymbols_.STANDALONEMONTHS,D.JSC$11419_dateTimeSymbols_.SHORTMONTHS,D.JSC$11419_dateTimeSymbols_.STANDALONESHORTMONTHS],function(x){G.month=x})},Et$=function(D,v,h,a,Q){var G=h[0];
D=Cg(D,v,h,a);if(D===null)return!1;h=h[0]-G;Q.milliseconds=h<3?D*Math.pow(10,3-h):Math.round(D/Math.pow(10,h-3));return!0},Ip4=function(D,v,h,a){v.indexOf("GMT",h[0])==h[0]&&(h[0]+=3);
if(h[0]>=v.length)return a.tzOffset=0,!0;var Q=h[0],G=Cg(D,v,h,0,!0);if(G===null)return!1;if(h[0]<v.length&&v.charAt(h[0])==":"){var x=G*60;h[0]++;G=Cg(D,v,h,0);if(G===null)return!1;x+=G}else x=G,x=x<24&&h[0]-Q<=3?x*60:x%100+x/100*60;a.tzOffset=-x;return!0},fg=function(D,v,h,a,Q,G,x){x=x||!1;
var f=h[0];D=Cg(D,v,h,Q);if(D===null)return!1;if(x&&h[0]-f<a.count){if(h[0]<v.length)return!1;D*=Math.pow(10,a.count-(h[0]-f))}G(D);return!0},M9=function(D,v,h,a,Q){Q=Q||!1;
for(var G,x=0;x<h.length;x++){G=v;for(var f=h[x],C=Q,U=0,L=null,Z=D.substring(G[0]).toLowerCase(),E=0;E<f.length;E++){var I=f[E].toLowerCase();if(C&&I.indexOf(Z)==0){U=Z.length;L=E;break}f[E].length>U&&Z.indexOf(I)==0&&(U=f[E].length,L=E)}L!==null&&(G[0]+=U);G=L;if(G!==null)return a(G),!0}return!1},zSp=function(D,v){(D=D.substring(v[0]).match(CPF))&&(v[0]+=D[0].length)},Cg=function(D,v,h,a,Q){v=a>0?v.substring(0,h[0]+a):v;
Q=Q||!1;if(D.JSC$11419_dateTimeSymbols_.ZERODIGIT){a=[];for(var G=h[0];G<v.length;G++){var x=v.charCodeAt(G)-D.JSC$11419_dateTimeSymbols_.ZERODIGIT;a.push(0<=x&&x<=9?String.fromCharCode(x+48):v.charAt(G))}v=a.join("")}else v=v.substring(h[0]);D=v.match(new RegExp("^"+(Q?"[+-]?":"")+"\\d+"));if(!D)return null;h[0]+=D[0].length;return parseInt(D[0],10)},FNs=function(){};
FNs.prototype.ambiguousYear=!1;var gt$;
gt$={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 kzb={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}"]};
kzb={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 S_m=function(){var D={type:"unit",style:"narrow"};this.listType_=D&&D.type?D.type:"conjunction";this.listStyle_=D&&D.style?D.style:"long";this.listSymbols_=kzb;D=0;switch(this.listStyle_){case "short":D=1;break;case "narrow":D=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[D];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[D];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=
this.listSymbols_.AND_END[D];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[D];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[D];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=this.listSymbols_.OR_END[D];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[D],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[D],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[D],this.listEndPattern_=this.listSymbols_.UNIT_END[D]}};
S_m.prototype.format=function(D){return JDt(this,D)};
var JDt=function(D,v){var h=v.length;switch(h){case 0:return"";case 1:return String(v[0]);case 2:return D.listTwoPattern_.replace("{0}",String(v[0])).replace("{1}",String(v[1]))}for(var a=D.listStartPattern_.replace("{0}",String(v[0])).replace("{1}",String(v[1])),Q=2;Q<h-1;++Q)a=D.listMiddlePattern_.replace("{0}",a).replace("{1}",String(v[Q]));return D.listEndPattern_.replace("{0}",a).replace("{1}",String(v[h-1]))};var p8F={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"},lpp=p8F,N49=p8F;N49=lpp=p8F;var B4t,oR,zL,b$o,Fm,Y_J;
_.rR=function(D,v,h,a){var Q;if(Q=v){a:if(v&&v.length===3){for(Q=0;Q<3;Q++){var G=v[Q];if(G<"A"||G>"Z"&&G<"a"||G>"z"){Q=!1;break a}}Q=!0}else Q=!1;Q=!Q}if(Q)throw new TypeError("ee");this.intlCurrencyCode_=v?v.toUpperCase():null;this.currencyStyle_=h||0;this.overrideNumberFormatSymbols_=a||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_=oR(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof D==="number")switch(D){case 1:Fm(this,oR(this).DECIMAL_PATTERN);break;case 2:Fm(this,oR(this).SCIENTIFIC_PATTERN);break;case 3:Fm(this,oR(this).PERCENT_PATTERN);break;case 4:D=oR(this).CURRENCY_PATTERN;v=["0"];if(h=
GL[zL(this)]){h=h[0]&7;if(h>0)for(v.push("."),a=0;a<h;a++)v.push("0");D=D.replace(/0.00/g,v.join(""))}Fm(this,D);break;case 5:Y_J(this,1);break;case 6:Y_J(this,2);break;default:throw Error("he");}else Fm(this,D)};
B4t=!1;oR=function(D){return D.overrideNumberFormatSymbols_||(B4t?N49:lpp)};
zL=function(D){return D.intlCurrencyCode_||oR(D).DEF_CURRENCY_CODE};
b$o=function(D,v){if(v>308)throw Error("ge`"+v);D.maximumFractionDigits_=v;return D};
Fm=function(D,v){var h=[0];D.positivePrefix_=cDF(D,v,h);for(var a=h[0],Q=-1,G=0,x=0,f=0,C=-1,U=v.length,L=!0;h[0]<U&&L;h[0]++)switch(v.charAt(h[0])){case "#":x>0?f++:G++;C>=0&&Q<0&&C++;break;case "0":if(f>0)throw Error("ne`"+v);x++;C>=0&&Q<0&&C++;break;case ",":C>0&&D.groupingArray_.push(C);C=0;break;case ".":if(Q>=0)throw Error("oe`"+v);Q=G+x+f;break;case "E":if(D.useExponentialNotation_)throw Error("pe`"+v);D.useExponentialNotation_=!0;D.minExponentDigits_=0;h[0]+1<U&&v.charAt(h[0]+1)=="+"&&(h[0]++,
D.useSignForPositiveExponent_=!0);for(;h[0]+1<U&&v.charAt(h[0]+1)=="0";)h[0]++,D.minExponentDigits_++;if(G+x<1||D.minExponentDigits_<1)throw Error("qe`"+v);L=!1;break;default:h[0]--,L=!1}x==0&&G>0&&Q>=0&&(x=Q,x==0&&x++,f=G-x,G=x-1,x=1);if(Q<0&&f>0||Q>=0&&(Q<G||Q>G+x)||C==0)throw Error("re`"+v);f=G+x+f;D.maximumFractionDigits_=Q>=0?f-Q:0;Q>=0&&(D.minimumFractionDigits_=G+x-Q,D.minimumFractionDigits_<0&&(D.minimumFractionDigits_=0));D.minimumIntegerDigits_=(Q>=0?Q:f)-G;D.useExponentialNotation_&&(D.maximumIntegerDigits_=
G+D.minimumIntegerDigits_,D.maximumFractionDigits_==0&&D.minimumIntegerDigits_==0&&(D.minimumIntegerDigits_=1));D.groupingArray_.push(Math.max(0,C));D.decimalSeparatorAlwaysShown_=Q==0||Q==f;a=h[0]-a;D.positiveSuffix_=cDF(D,v,h);h[0]<v.length&&v.charAt(h[0])==";"?(h[0]++,D.multiplier_!=1&&(D.negativePercentSignExpected_=!0),D.negativePrefix_=cDF(D,v,h),h[0]+=a,D.negativeSuffix_=cDF(D,v,h)):(D.negativePrefix_+=D.positivePrefix_,D.negativeSuffix_+=D.positiveSuffix_)};
Y_J=function(D,v){D.compactStyle_=v;Fm(D,oR(D).DECIMAL_PATTERN);D.minimumFractionDigits_=0;b$o(D,2);if(D.minimumFractionDigits_>0)throw Error("fe");D.significantDigits_=2};
_.rR.prototype.parse=function(D,v){v=v||[0];if(this.compactStyle_!==0)throw Error("ie");D=D.replace(/ |\u202f/g,"\u00a0");var h=D.indexOf(this.positivePrefix_,v[0])==v[0],a=D.indexOf(this.negativePrefix_,v[0])==v[0];h&&a&&(this.positivePrefix_.length>this.negativePrefix_.length?a=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(h=!1));h?v[0]+=this.positivePrefix_.length:a&&(v[0]+=this.negativePrefix_.length);if(D.indexOf(oR(this).INFINITY,v[0])==v[0]){v[0]+=oR(this).INFINITY.length;var Q=
Infinity}else{Q=D;var G=!1,x=!1,f=!1,C=-1,U=1,L=oR(this).DECIMAL_SEP,Z=oR(this).GROUP_SEP,E=oR(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");Z=Z.replace(/\u202f/g,"\u00a0");for(var I="";v[0]<Q.length;v[0]++){var S=Q.charAt(v[0]),B=X8p(this,S);if(B>=0&&B<=9)I+=B,f=!0;else if(S==L.charAt(0)){if(G||x)break;I+=".";G=!0}else if(S==Z.charAt(0)&&("\u00a0"!=Z.charAt(0)||v[0]+1<Q.length&&X8p(this,Q.charAt(v[0]+1))>=0)){if(G||x)break}else if(S==E.charAt(0)){if(x)break;I+="E";x=!0;C=v[0]}else if(S==
"+"||S=="-"){if(f&&C!=v[0]-1)break;I+=S}else if(this.multiplier_==1&&S==oR(this).PERCENT.charAt(0)){if(U!=1)break;U=100;if(f){v[0]++;break}}else if(this.multiplier_==1&&S==oR(this).PERMILL.charAt(0)){if(U!=1)break;U=1E3;if(f){v[0]++;break}}else break}this.multiplier_!=1&&(U=this.multiplier_);Q=parseFloat(I)/U}if(h){if(D.indexOf(this.positiveSuffix_,v[0])!=v[0])return NaN;v[0]+=this.positiveSuffix_.length}else if(a){if(D.indexOf(this.negativeSuffix_,v[0])!=v[0])return NaN;v[0]+=this.negativeSuffix_.length}return a?
-Q:Q};
_.rR.prototype.format=function(D){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(D))return oR(this).NAN;var v=[];var h=D;if(this.compactStyle_==0)h=UB;else{h=Math.abs(h);var a=AD4(this,h<=1?0:q_p(h)).divisorBase;h=AD4(this,a+q_p(bbm(this,Lg(h,-a)).intValue))}D=Lg(D,-h.divisorBase);(a=D<0||D==0&&1/D<0)?h.negative_prefix?v.push(h.negative_prefix):(v.push(h.prefix),v.push(this.negativePrefix_)):(v.push(h.prefix),v.push(this.positivePrefix_));if(isFinite(D))if(D*=
a?-1:1,D*=this.multiplier_,this.useExponentialNotation_){var Q=D;if(Q==0)dKy(this,Q,this.minimumIntegerDigits_,v),jqm(this,0,v);else{var G=Math.floor(Math.log(Q)/Math.log(10)+2E-15);Q=Lg(Q,-G);var x=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(x=G%this.maximumIntegerDigits_,x<0&&(x=this.maximumIntegerDigits_+x),Q=Lg(Q,x),G-=x,x=1):this.minimumIntegerDigits_<1?(G++,Q=Lg(Q,-1)):(G-=this.minimumIntegerDigits_-1,Q=Lg(Q,this.minimumIntegerDigits_-
1));dKy(this,Q,x,v);jqm(this,G,v)}}else dKy(this,D,this.minimumIntegerDigits_,v);else v.push(oR(this).INFINITY);a?h.negative_suffix?v.push(h.negative_suffix):(isFinite(D)&&v.push(h.suffix),v.push(this.negativeSuffix_)):(isFinite(D)&&v.push(h.suffix),v.push(this.positiveSuffix_));return v.join("")};
var bbm=function(D,v){var h=Lg(v,D.maximumFractionDigits_);D.significantDigits_>0&&(h=sqt(h,D.significantDigits_,D.maximumFractionDigits_));h=Math.round(h);if(isFinite(h)){var a=Math.floor(Lg(h,-D.maximumFractionDigits_));h=Math.floor(h-Lg(a,D.maximumFractionDigits_));if(h<0||h>=Lg(1,D.maximumFractionDigits_))a=Math.round(v),h=0}else a=v,h=0;return{intValue:a,fracValue:h}},dKy=function(D,v,h,a){if(D.minimumFractionDigits_>D.maximumFractionDigits_)throw Error("ke");
a||(a=[]);v=bbm(D,v);var Q=v.intValue,G=v.fracValue,x=D.minimumFractionDigits_>0||G>0||!1;v=D.minimumFractionDigits_;x&&(v=D.minimumFractionDigits_);for(var f="",C=Q;C>1E20;)f="0"+f,C=Math.round(Lg(C,-1));f=C+f;var U=oR(D).DECIMAL_SEP;C=oR(D).ZERO_DIGIT.codePointAt(0);var L=f.length,Z=0;if(Q>0||h>0){for(Q=L;Q<h;Q++)a.push(String.fromCodePoint(C));if(D.groupingArray_.length>=2)for(h=1;h<D.groupingArray_.length;h++)Z+=D.groupingArray_[h];h=L-Z;if(h>0){Q=D.groupingArray_;Z=L=0;for(var E,I=oR(D).GROUP_SEP,
S=f.length,B=0;B<S;B++)if(a.push(String.fromCodePoint(C+Number(f.charAt(B)))),S-B>1)if(E=Q[Z],B<h){var A=h-B;(E===1||E>0&&A%E===1)&&a.push(I)}else Z<Q.length&&(B===h?Z+=1:E===B-h-L+1&&(a.push(I),L+=E,Z+=1))}else{h=f;f=D.groupingArray_;Q=oR(D).GROUP_SEP;E=h.length;I=[];for(L=f.length-1;L>=0&&E>0;L--){Z=f[L];for(S=0;S<Z&&E-S-1>=0;S++)I.push(String.fromCodePoint(C+Number(h.charAt(E-S-1))));E-=Z;E>0&&I.push(Q)}a.push.apply(a,I.reverse())}}else x||a.push(String.fromCodePoint(C));(D.decimalSeparatorAlwaysShown_||
x)&&a.push(U);G=String(G);x=G.split("e+");x.length==2&&(G=String(sqt(parseFloat(x[0]),D.significantDigits_,1)),G=G.replace(".",""),G+=(0,_.Z4s)("0",parseInt(x[1],10)-G.length+1));D.maximumFractionDigits_+1>G.length&&(G="1"+(0,_.Z4s)("0",D.maximumFractionDigits_-G.length)+G);for(D=G.length;G.charAt(D-1)=="0"&&D>v+1;)D--;for(v=1;v<D;v++)a.push(String.fromCodePoint(C+Number(G.charAt(v))))},jqm=function(D,v,h){h.push(oR(D).EXP_SYMBOL);
v<0?(v=-v,h.push(oR(D).MINUS_SIGN)):D.useSignForPositiveExponent_&&h.push(oR(D).PLUS_SIGN);v=""+v;for(var a=oR(D).ZERO_DIGIT,Q=v.length;Q<D.minExponentDigits_;Q++)h.push(a);D=a.codePointAt(0)-mKM;for(a=0;a<v.length;a++)h.push(String.fromCodePoint(D+v.codePointAt(a)))},X8p=function(D,v){v=v.codePointAt(0);
if(48<=v&&v<58)return v-48;D=oR(D).ZERO_DIGIT.codePointAt(0);return D<=v&&v<D+10?v-D:-1},mKM="0".codePointAt(0),cDF=function(D,v,h){for(var a="",Q=!1,G=v.length;h[0]<G;h[0]++){var x=v.charAt(h[0]);
if(x=="'")h[0]+1<G&&v.charAt(h[0]+1)=="'"?(h[0]++,a+="'"):Q=!Q;else if(Q)a+=x;else switch(x){case "#":case "0":case ",":case ".":case ";":return a;case "\u00a4":if(h[0]+1<G&&v.charAt(h[0]+1)=="\u00a4")h[0]++,a+=zL(D);else switch(D.currencyStyle_){case 0:x=zL(D);a+=x in GL?GL[x][1]:x;break;case 2:x=zL(D);var f=GL[x];a+=f?x==f[1]?x:x+" "+f[1]:x;break;case 1:x=zL(D),a+=x in GL?GL[x][2]:x}break;case "%":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("le");if(D.negativePercentSignExpected_&&
D.multiplier_!=100)throw Error("me");D.multiplier_=100;D.negativePercentSignExpected_=!1;a+=oR(D).PERCENT;break;case "\u2030":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("le");if(D.negativePercentSignExpected_&&D.multiplier_!=1E3)throw Error("me");D.multiplier_=1E3;D.negativePercentSignExpected_=!1;a+=oR(D).PERMILL;break;default:a+=x}}return a},UB={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},AD4=function(D,v){D=D.compactStyle_==1?Q3.COMPACT_DECIMAL_SHORT_PATTERN:Q3.COMPACT_DECIMAL_LONG_PATTERN;D==null&&(D=Q3.COMPACT_DECIMAL_SHORT_PATTERN);if(v<3)return UB;v=Math.min(14,v);var h=D[Lg(1,v)];for(--v;!h&&v>=3;)h=D[Lg(1,v)],v--;if(!h)return UB;h=h.other;var a=D="",Q=h.indexOf(";");Q>=0&&(h=h.substring(0,Q),Q=h.substring(Q+1))&&(a=/([^0]*)(0+)(.*)/.exec(Q),D=a[1],a=a[3]);return h&&h!="0"?(h=/([^0]*)(0+)(.*)/.exec(h))?{divisorBase:v+
1-(h[2].length-1),negative_prefix:D,negative_suffix:a,prefix:h[1],suffix:h[3]}:UB:UB},q_p=function(D){if(!isFinite(D))return D>0?D:0;
for(var v=0;(D/=10)>=1;)v++;return v},Lg=function(D,v){if(!D||!isFinite(D)||v==0)return D;
D=String(D).split("e");return parseFloat(D[0]+"e"+(parseInt(D[1]||0,10)+v))},HbR=function(D,v){return D&&isFinite(D)?Lg(Math.round(Lg(D,v)),-v):D},sqt=function(D,v,h){if(!D)return D;
v=v-q_p(D)-1;return v<-h?HbR(D,-h):HbR(D,v)};var yD4=function(D){return D%10==1&&D%100!=11?"one":D%10==2&&D%100!=12?"two":D%10==3&&D%100!=13?"few":"other"},w84=yD4;
w84=yD4;var eS$=function(D,v){var h=D|0;if(void 0===v){v=Math;var a=v.min,Q=D+"",G=Q.indexOf(".");v=a.call(v,G===-1?0:Q.length-G-1,3)}a=Math.pow(10,v);D={v:v,f:(D*a|0)%a};return h==1&&D.v==0?"one":"other"},tA=eS$;
tA=eS$;var T4p=function(D){this.JSC$11462_pattern_=D;this.parsedPattern_=this.literals_=this.initialLiterals_=null;D=lpp;var v=Q3;if(ntp!==D||ObJ!==v)ntp=D,ObJ=v,KN4=new _.rR(1);this.numberFormatter_=KN4},ntp=null,ObJ=null,KN4=null,RS4=RegExp("'([{}#].*?)'","g"),ibt=RegExp("''","g");
T4p.prototype.format=function(D){if(this.JSC$11462_pattern_){this.initialLiterals_=[];var v=WNt(this,this.JSC$11462_pattern_);this.parsedPattern_=tQb(this,v);this.JSC$11462_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.n7(this.initialLiterals_),v=[],rDm(this,this.parsedPattern_,D,!1,v),D=v.join("");this.literals_.length>0;)D=D.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else D="";return D};
var rDm=function(D,v,h,a,Q){for(var G=0;G<v.length;G++)switch(v[G].type){case 4:Q.push(v[G].value);break;case 3:var x=v[G].value;var f=D,C=Q,U=h[x];U===void 0?C.push("Undefined parameter - "+x):(f.literals_.push(U),C.push(f.buildPlaceholder_(f.literals_)));break;case 2:x=v[G].value;f=D;C=h;U=a;var L=Q,Z=x.argumentIndex;C[Z]===void 0?L.push("Undefined parameter - "+Z):(Z=x[C[Z]],Z===void 0&&(Z=x.other),rDm(f,Z,C,U,L));break;case 0:x=v[G].value;upp(D,x,h,tA,a,Q);break;case 1:x=v[G].value,upp(D,x,h,
w84,a,Q)}},upp=function(D,v,h,a,Q,G){var x=v.argumentIndex,f=v.argumentOffset,C=+h[x];
isNaN(C)?G.push("Undefined or invalid parameter - "+x):(f=C-f,x=v[h[x]],x===void 0&&(a=a(Math.abs(f)),x=v[a],x===void 0&&(x=v.other)),v=[],rDm(D,x,h,Q,v),h=v.join(""),Q?G.push(h):(D=D.numberFormatter_.format(f),G.push(h.replace(/#/g,D))))},WNt=function(D,v){var h=D.initialLiterals_,a=D.buildPlaceholder_.bind(D);
v=v.replace(ibt,function(){h.push("'");return a(h)});
return v=v.replace(RS4,function(Q,G){h.push(G);return a(h)})},DLy=function(D){var v=0,h=[],a=[],Q=/[{}]/g;
Q.lastIndex=0;for(var G;G=Q.exec(D);){var x=G.index;G[0]=="}"?(h.pop(),h.length==0&&(G={type:1},G.value=D.substring(v,x),a.push(G),v=x+1)):(h.length==0&&(v=D.substring(v,x),v!=""&&a.push({type:0,value:v}),v=x+1),h.push("{"))}D=D.substring(v);D!=""&&a.push({type:0,value:D});return a},v51=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,hU1=/^\s*(\w+)\s*,\s*selectordinal\s*,/,a2p=/^\s*(\w+)\s*,\s*select\s*,/,tQb=function(D,v){var h=[];
v=DLy(v);for(var a=0;a<v.length;a++){var Q={};if(0==v[a].type)Q.type=4,Q.value=v[a].value;else if(1==v[a].type){var G=v[a].value;switch(v51.test(G)?0:hU1.test(G)?1:a2p.test(G)?2:/^\s*\w+\s*/.test(G)?3:5){case 2:Q.type=2;Q.value=$L4(D,v[a].value);break;case 0:Q.type=0;Q.value=Q3J(D,v[a].value);break;case 1:Q.type=1;Q.value=Gh1(D,v[a].value);break;case 3:Q.type=3,Q.value=v[a].value}}h.push(Q)}return h},$L4=function(D,v){var h="";
v=v.replace(a2p,function(f,C){h=C;return""});
var a={};a.argumentIndex=h;v=DLy(v);for(var Q=0;Q<v.length;){var G=v[Q].value;Q++;var x=void 0;1==v[Q].type&&(x=tQb(D,v[Q].value));a[G.replace(/\s/g,"")]=x;Q++}return a},Q3J=function(D,v){var h="",a=0;
v=v.replace(v51,function(C,U,L){h=U;L&&(a=parseInt(L,10));return""});
var Q={};Q.argumentIndex=h;Q.argumentOffset=a;v=DLy(v);for(var G=0;G<v.length;){var x=v[G].value;G++;var f=void 0;1==v[G].type&&(f=tQb(D,v[G].value));Q[x.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=f;G++}return Q},Gh1=function(D,v){var h="";
v=v.replace(hU1,function(f,C){h=C;return""});
var a={};a.argumentIndex=h;a.argumentOffset=0;v=DLy(v);for(var Q=0;Q<v.length;){var G=v[Q].value;Q++;var x=void 0;1==v[Q].type&&(x=tQb(D,v[Q].value));a[G.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=x;Q++}return a};
T4p.prototype.buildPlaceholder_=function(D){return"\ufddf_"+(D.length-1).toString(10)+"_"};var RFi=function(){var D={style:1},v=V3$;this.style_=(D==null?void 0:D.style)||0;this.durationSymbols_=v||gt$},PLJ=function(D,v){switch(v){default:case "years":return D.durationSymbols_.YEAR;
case "months":return D.durationSymbols_.MONTH;case "weeks":return D.durationSymbols_.WEEK;case "days":return D.durationSymbols_.DAY;case "hours":return D.durationSymbols_.HOUR;case "minutes":return D.durationSymbols_.MINUTE;case "seconds":return D.durationSymbols_.SECOND}},ZV=function(D,v,h){a:{h=PLJ(D,h);
switch(D.style_){case 1:if(h.LONG!=void 0){D=h.LONG;break a}case 2:if(h.NARROW!=void 0){D=h.NARROW;break a}default:D=h.SHORT;break a}D=void 0}return D?(new T4p("{DURATION_VALUE,plural,"+D+"}")).format({DURATION_VALUE:v}):""};
RFi.prototype.format=function(D){var v=[],h=D.years,a=D.months,Q=D.weeks,G=D.days,x=D.hours,f=D.minutes;D=D.seconds;h!=null&&v.push(ZV(this,h,"years"));a!=null&&v.push(ZV(this,a,"months"));Q!=null&&v.push(ZV(this,Q,"weeks"));G!=null&&v.push(ZV(this,G,"days"));x!=null&&v.push(ZV(this,x,"hours"));f!=null&&v.push(ZV(this,f,"minutes"));D!=null&&v.push(ZV(this,D,"seconds"));return(new S_m).format(v)};var xL4;
xL4={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 MdO=function(){this.rdtfSymbols_=M3s||xL4;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
MdO.prototype.format=function(D,v){a:{v=f2$(this,v);switch(this.style_){case 2:if(v.NARROW!=void 0){v=v.NARROW;break a}case 1:if(v.SHORT!=void 0){v=v.SHORT;break a}default:v=v.LONG;break a}v=void 0}if(!this.alwaysNumeric_&&v&&v.R&&v.R[""+D])D=v.R[""+D];else if(v){var h=Math.abs(D);D=(new T4p("{N,plural,"+(D>0||D==0&&1/D==Infinity?v.F:v.P)+"}")).format({N:h})}else D="";return D};
var f2$=function(D,v){switch(v){default:case 0:return D.rdtfSymbols_.YEAR;case 1:return D.rdtfSymbols_.QUARTER;case 2:return D.rdtfSymbols_.MONTH;case 3:return D.rdtfSymbols_.WEEK;case 4:return D.rdtfSymbols_.DAY;case 5:return D.rdtfSymbols_.HOUR;case 6:return D.rdtfSymbols_.MINUTE;case 7:return D.rdtfSymbols_.SECOND}};var CL1=function(D,v,h,a,Q,G,x,f){this.x0=D;this.y0=v;this.x1=h;this.y1=a;this.x2=Q;this.y2=G;this.x3=x;this.y3=f};
CL1.prototype.clone=function(){return new CL1(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
CL1.prototype.equals=function(D){return this.x0==D.x0&&this.y0==D.y0&&this.x1==D.x1&&this.y1==D.y1&&this.x2==D.x2&&this.y2==D.y2&&this.x3==D.x3&&this.y3==D.y3};
var o5F=function(D,v){if(v==0)return D.x0;if(v==1)return D.x3;var h=jD(D.x0,D.x1,v),a=jD(D.x1,D.x2,v);D=jD(D.x2,D.x3,v);h=jD(h,a,v);a=jD(a,D,v);return jD(h,a,v)},FrM=function(D,v){var h=(v-D.x0)/(D.x3-D.x0);
if(h<=0)return 0;if(h>=1)return 1;for(var a=0,Q=1,G=0,x=0;x<8;x++){G=o5F(D,h);var f=(o5F(D,h+1E-6)-G)/1E-6;if(Math.abs(G-v)<1E-6)return h;if(Math.abs(f)<1E-6)break;else G<v?a=h:Q=h,h-=(G-v)/f}for(x=0;Math.abs(G-v)>1E-6&&x<8;x++)G<v?(a=h,h=(h+Q)/2):(Q=h,h=(h+a)/2),G=o5F(D,h);return h};var EB=function(){_.jZ.call(this);this.JSC$11483_name_="closure_frame"+zU9++;this.iframesForDisposal_=[];ULp[this.JSC$11483_name_]=this},IR;
_.fa(EB,_.jZ);var ULp={},zU9=0,LrJ=function(D,v){var h=cW(D);k3J(v,function(a,Q){Array.isArray(a)||(a=[a]);_.rM(a,function(G){G=h.JSC$9332_createDom("INPUT",{type:"hidden",name:Q,value:G});D.appendChild(G)})})};
_.V=EB.prototype;_.V.JSC$11485_form_=null;_.V.JSC$11485_iframe_=null;_.V.iframeName_=null;_.V.nextIframeId_=0;_.V.JSC$11485_active_=!1;_.V.complete_=!1;_.V.success_=!1;_.V.lastContent_=null;_.V.JSC$11485_lastErrorCode_=0;_.V.iframeDisposalTimer_=null;
_.V.send=function(D,v,h,a){if(this.JSC$11485_active_)throw Error("se");D=new _.aN(D);v=v?v.toUpperCase():"GET";h&&_.Sv(D);IR||(IR=_.ya("FORM"),IR.acceptCharset="utf-8",h=IR.style,h.position="absolute",h.visibility="hidden",h.top=h.left="-10px",h.width=h.height="10px",h.overflow="hidden",document.body.appendChild(IR));this.JSC$11485_form_=IR;v=="GET"&&LrJ(this.JSC$11485_form_,D.JSC$10036_queryData_);a&&LrJ(this.JSC$11485_form_,a);h=D.toString();h=Hxc(h);a=this.JSC$11485_form_;h=_.TK(jR(h));h!==void 0&&
(a.action=h);this.JSC$11485_form_.method=v;Z_4(this);E5t(this)};
_.V.abort=function(D){if(this.JSC$11485_active_){var v=g3(this);if(v)if(qE(v))v.removeAllListeners(void 0);else if(v=bn(v)){var h=0,a;for(a in v.listeners)for(var Q=v.listeners[a].concat(),G=0;G<Q.length;++G)bP(Q[G])&&++h}this.success_=this.JSC$11485_active_=this.complete_=!1;this.JSC$11485_lastErrorCode_=D||7;this.dispatchEvent("abort");I2m(this)}};
_.V.disposeInternal=function(){this.JSC$11485_active_&&this.abort();EB.superClass_.disposeInternal.call(this);this.JSC$11485_iframe_&&g59(this);E5t(this);this.JSC$11485_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11485_form_=null;this.JSC$11485_lastErrorCode_=0;delete ULp[this.JSC$11483_name_]};
_.V.isComplete=function(){return this.complete_};
_.V.isSuccess=function(){return this.success_};
_.V.isActive=function(){return this.JSC$11485_active_};
_.V.getResponseText=function(){return this.lastContent_};
_.V.getLastError=function(){return _.ux4(this.JSC$11485_lastErrorCode_)};
var Z_4=function(D){D.JSC$11485_active_=!0;D.complete_=!1;D.JSC$11485_lastErrorCode_=0;D.iframeName_=D.JSC$11483_name_+"_"+(D.nextIframeId_++).toString(36);D.JSC$11485_iframe_=cW(D.JSC$11485_form_).JSC$9332_createDom("IFRAME",{name:D.iframeName_,id:D.iframeName_});var v=D.JSC$11485_iframe_.style;v.visibility="hidden";v.width=v.height="10px";v.display="none";_.La?v.marginTop=v.marginLeft="-10px":(v.position="absolute",v.top=v.left="-10px");cW(D.JSC$11485_form_).JSC$9330_document_.body.appendChild(D.JSC$11485_iframe_);
v=D.iframeName_+"_inner";var h=mIy(D.JSC$11485_iframe_);if(document.baseURI){var a=ZY(v);a='<head><base href="'+ZY(document.baseURI)+'"></head><body><iframe id="'+a+'" name="'+a+'"></iframe>';a=Wd(a)}else a=ZY(v),a=Wd('<body><iframe id="'+a+'" name="'+a+'"></iframe>');h.write(r0(a));_.s_(h.getElementById(v),"load",D.onIframeLoaded_,!1,D);a=Yq("TEXTAREA",D.JSC$11485_form_);for(var Q=0,G=a.length;Q<G;Q++){var x=a[Q].value;O3M(a[Q])!=x&&(_.RH(a[Q],x),a[Q].value=x)}a=h.importNode(D.JSC$11485_form_,!0);
a.target=v;a.action=D.JSC$11485_form_.action;h.body.appendChild(a);Q=Yq("SELECT",D.JSC$11485_form_);G=Yq("SELECT",a);x=0;for(var f=Q.length;x<f;x++)for(var C=Yq("OPTION",Q[x]),U=Yq("OPTION",G[x]),L=0,Z=C.length;L<Z;L++)U[L].selected=C[L].selected;Q=Yq("INPUT",D.JSC$11485_form_);G=Yq("INPUT",a);x=0;for(f=Q.length;x<f;x++)if(Q[x].type=="file"&&Q[x].value!=G[x].value){D.JSC$11485_form_.target=v;a=D.JSC$11485_form_;break}try{D.errorHandled_=!1,a.submit(),h.close(),_.U1&&setTimeout(D.testForFirefoxSilentError_.bind(D),
250)}catch(E){_.d9(h.getElementById(v),"load",D.onIframeLoaded_,!1,D),h.close(),kF(D,2)}};
EB.prototype.onIframeLoaded_=function(){_.d9(g3(this),"load",this.onIframeLoaded_,!1,this);try{var D=this.JSC$11485_iframe_?mIy(g3(this)):null;this.complete_=!0;this.JSC$11485_active_=!1;try{var v=D.body;this.lastContent_=v.textContent||v.innerText}catch(Q){var h=1}var a;h||typeof this.errorChecker_!="function"||(a=this.errorChecker_(D))&&(h=4);h?kF(this,h):(this.success_=!0,this.JSC$11485_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),I2m(this))}catch(Q){kF(this,1)}};
var kF=function(D,v){D.errorHandled_||(D.success_=!1,D.JSC$11485_active_=!1,D.complete_=!0,D.JSC$11485_lastErrorCode_=v,D.dispatchEvent("complete"),D.dispatchEvent("error"),I2m(D),D.errorHandled_=!0)},I2m=function(D){g59(D);
E5t(D);D.JSC$11485_form_=null;D.dispatchEvent("ready")},g59=function(D){var v=D.JSC$11485_iframe_;
v&&(v.onreadystatechange=null,v.onload=null,v.onerror=null,D.iframesForDisposal_.push(v));D.iframeDisposalTimer_&&(clearTimeout(D.iframeDisposalTimer_),D.iframeDisposalTimer_=null);_.U1?D.iframeDisposalTimer_=setTimeout(D.disposeIframes_.bind(D),2E3):D.disposeIframes_();D.JSC$11485_iframe_=null;D.iframeName_=null};
EB.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var D=this.iframesForDisposal_.pop();_.Np(D)}};
var E5t=function(D){D.JSC$11485_form_&&D.JSC$11485_form_==IR&&_.nW(D.JSC$11485_form_)},g3=function(D){return D.JSC$11485_iframe_?mIy(D.JSC$11485_iframe_).getElementById(D.iframeName_+"_inner"):null};
EB.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11485_active_){var D=this.JSC$11485_iframe_?mIy(g3(this)):null;D&&!bT8(D,"documentUri")?(_.d9(g3(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?kF(this,3):kF(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.S5=function(D){return D=="\r"||D=="\n"||D==" "||D=="\t"};var khR;_.Jx=function(D){this.errorMessage_=null;this.result_=[];this.JSC$11487_buffer_="";this.stack_=[];this.JSC$11487_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!D||!D.deliverMessageAsRawString)};
khR={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};_.Jx.prototype.isInputValid=function(){return this.streamState_!=3};
_.Jx.prototype.done=function(){return this.streamState_===2};
var pg=function(D,v,h){D.streamState_=3;D.errorMessage_="The stream is broken @"+D.JSC$11487_pos_+"/"+h+". With input:\n"+v;throw Error(D.errorMessage_);};
_.Jx.prototype.acceptsBinaryInput=function(){return!1};
_.Jx.prototype.parse=function(D){function v(){for(;E<D.length;)if(_.S5(D[E]))E++,G.JSC$11487_pos_++;else break;return E<U}
function h(){for(var S;;){S=D[E++];if(!S)break;G.JSC$11487_pos_++;switch(G.state_){case C.INIT:S==="{"?G.state_=C.OBJECT_OPEN:S==="["?G.state_=C.ARRAY_OPEN:_.S5(S)||pg(G,D,E);continue;case C.KEY_START:case C.OBJECT_OPEN:if(_.S5(S))continue;if(G.state_===C.KEY_START)x.push(C.KEY_END);else if(S==="}"){Q("{}");G.state_=a();continue}else x.push(C.OBJECT_END);S==='"'?G.state_=C.STRING:pg(G,D,E);continue;case C.KEY_END:case C.OBJECT_END:if(_.S5(S))continue;S===":"?(G.state_===C.OBJECT_END&&(x.push(C.OBJECT_END),
G.depth_++),G.state_=C.VALUE):S==="}"?(G.depth_--,Q(),G.state_=a()):S===","?(G.state_===C.OBJECT_END&&x.push(C.OBJECT_END),G.state_=C.KEY_START):pg(G,D,E);continue;case C.ARRAY_OPEN:case C.VALUE:if(_.S5(S))continue;if(G.state_===C.ARRAY_OPEN)if(G.depth_++,G.state_=C.VALUE,S==="]"){G.depth_--;if(G.depth_===0){G.state_=C.ARRAY_END;return}Q("[]");G.state_=a();continue}else x.push(C.ARRAY_END);S==='"'?G.state_=C.STRING:S==="{"?G.state_=C.OBJECT_OPEN:S==="["?G.state_=C.ARRAY_OPEN:S==="t"?G.state_=C.TRUE1:
S==="f"?G.state_=C.FALSE1:S==="n"?G.state_=C.NULL1:S!=="-"&&("0123456789".indexOf(S)!==-1?G.state_=C.NUM_DIGIT:pg(G,D,E));continue;case C.ARRAY_END:if(S===",")x.push(C.ARRAY_END),G.state_=C.VALUE,G.depth_===1&&(Z=E);else if(S==="]"){G.depth_--;if(G.depth_===0)return;Q();G.state_=a()}else if(_.S5(S))continue;else pg(G,D,E);continue;case C.STRING:var B=E;a:for(;;){for(;G.unicodeCount_>0;)if(S=D[E++],G.unicodeCount_===4?G.unicodeCount_=0:G.unicodeCount_++,!S)break a;if(S==='"'&&!G.slashed_){G.state_=
a();break}if(S==="\\"&&!G.slashed_&&(G.slashed_=!0,S=D[E++],!S))break;if(G.slashed_)if(G.slashed_=!1,S==="u"&&(G.unicodeCount_=1),S=D[E++])continue;else break;f.lastIndex=E;S=f.exec(D);if(!S){E=D.length+1;break}E=S.index+1;S=D[S.index];if(!S)break}G.JSC$11487_pos_+=E-B;continue;case C.TRUE1:if(!S)continue;S==="r"?G.state_=C.TRUE2:pg(G,D,E);continue;case C.TRUE2:if(!S)continue;S==="u"?G.state_=C.TRUE3:pg(G,D,E);continue;case C.TRUE3:if(!S)continue;S==="e"?G.state_=a():pg(G,D,E);continue;case C.FALSE1:if(!S)continue;
S==="a"?G.state_=C.FALSE2:pg(G,D,E);continue;case C.FALSE2:if(!S)continue;S==="l"?G.state_=C.FALSE3:pg(G,D,E);continue;case C.FALSE3:if(!S)continue;S==="s"?G.state_=C.FALSE4:pg(G,D,E);continue;case C.FALSE4:if(!S)continue;S==="e"?G.state_=a():pg(G,D,E);continue;case C.NULL1:if(!S)continue;S==="u"?G.state_=C.NULL2:pg(G,D,E);continue;case C.NULL2:if(!S)continue;S==="l"?G.state_=C.NULL3:pg(G,D,E);continue;case C.NULL3:if(!S)continue;S==="l"?G.state_=a():pg(G,D,E);continue;case C.NUM_DECIMAL_POINT:S===
"."?G.state_=C.NUM_DIGIT:pg(G,D,E);continue;case C.NUM_DIGIT:if("0123456789.eE+-".indexOf(S)!==-1)continue;else E--,G.JSC$11487_pos_--,G.state_=a();continue;default:pg(G,D,E)}}}
function a(){var S=x.pop();return S!=null?S:C.VALUE}
function Q(S){G.depth_>1||(S||(S=Z===-1?G.JSC$11487_buffer_+D.substring(L,E):D.substring(Z,E)),G.deliverMessageAsRawString_?G.result_.push(S):G.result_.push(JSON.parse(S)),Z=E)}
for(var G=this,x=G.stack_,f=G.stringInputPattern_,C=khR,U=D.length,L=0,Z=-1,E=0;E<U;)switch(G.streamState_){case 3:return pg(G,D,E),null;case 2:return v()&&pg(G,D,E),null;case 0:if(v()){var I=D[E++];G.JSC$11487_pos_++;if(I==="["){G.streamState_=1;L=E;G.state_=C.ARRAY_OPEN;continue}else pg(G,D,E)}return null;case 1:return h(),G.depth_===0&&G.state_==C.ARRAY_END?(G.streamState_=2,G.JSC$11487_buffer_=D.substring(E)):G.JSC$11487_buffer_=Z===-1?G.JSC$11487_buffer_+D.substring(L):D.substring(Z),G.result_.length>
0?(I=G.result_,G.result_=[],I):null}return null};_.fa(_.zT,qM);Ui.prototype.getValue=function(){return this.JSC$11495_value_};
Ui.prototype.clone=function(){return new Ui(this.JSC$11495_key_,this.JSC$11495_value_)};var lN=function(D){this.nodes_=[];if(D)a:{if(D instanceof lN){var v=D.getKeys();D=D.getValues();if(this.getCount()<=0){for(var h=this.nodes_,a=0;a<v.length;a++)h.push(new Ui(v[a],D[a]));break a}}else v=_.sV.getKeys(D),D=_.sV.getValues(D);for(h=0;h<v.length;h++)this.insert(v[h],D[h])}};
_.V=lN.prototype;_.V.insert=function(D,v){var h=this.nodes_;h.push(new Ui(D,v));D=h.length-1;v=this.nodes_;for(h=v[D];D>0;){var a=D-1>>1;if(v[a].JSC$11495_key_>h.JSC$11495_key_)v[D]=v[a],D=a;else break}v[D]=h};
_.V.remove=function(){var D=this.nodes_,v=D.length,h=D[0];if(!(v<=0)){if(v==1)D.length=0;else{D[0]=D.pop();D=0;v=this.nodes_;for(var a=v.length,Q=v[D];D<a>>1;){var G=D*2+1,x=D*2+2;G=x<a&&v[x].JSC$11495_key_<v[G].JSC$11495_key_?x:G;if(v[G].JSC$11495_key_>Q.JSC$11495_key_)break;v[D]=v[G];D=G}v[D]=Q}return h.getValue()}};
_.V.peek=function(){var D=this.nodes_;if(D.length!=0)return D[0].getValue()};
_.V.getValues=function(){for(var D=this.nodes_,v=[],h=D.length,a=0;a<h;a++)v.push(D[a].getValue());return v};
_.V.getKeys=function(){for(var D=this.nodes_,v=[],h=D.length,a=0;a<h;a++)v.push(D[a].JSC$11495_key_);return v};
_.V.containsValue=function(D){return this.nodes_.some(function(v){return v.getValue()==D})};
_.V.containsKey=function(D){return this.nodes_.some(function(v){return v.JSC$11495_key_==D})};
_.V.clone=function(){return new lN(this)};
_.V.getCount=function(){return this.nodes_.length};
_.V.isEmpty=function(){return this.nodes_.length===0};
_.V.clear=function(){this.nodes_.length=0};_.N9=function(D,v){this.JSC$11501_map_={};this.JSC$11501_keys_=[];this.version_=this.size=0;var h=arguments.length;if(h>1){if(h%2)throw Error("ma");for(var a=0;a<h;a+=2)this.set(arguments[a],arguments[a+1])}else D&&this.addAll(D)};
_.V=_.N9.prototype;_.V.getCount=function(){return this.size};
_.V.getValues=function(){YF(this);for(var D=[],v=0;v<this.JSC$11501_keys_.length;v++)D.push(this.JSC$11501_map_[this.JSC$11501_keys_[v]]);return D};
_.V.getKeys=function(){YF(this);return this.JSC$11501_keys_.concat()};
_.V.containsKey=function(D){return this.has(D)};
_.V.has=function(D){return Bq(this.JSC$11501_map_,D)};
_.V.containsValue=function(D){for(var v=0;v<this.JSC$11501_keys_.length;v++){var h=this.JSC$11501_keys_[v];if(Bq(this.JSC$11501_map_,h)&&this.JSC$11501_map_[h]==D)return!0}return!1};
_.V.equals=function(D,v){if(this===D)return!0;if(this.size!=D.getCount())return!1;v=v||SAJ;YF(this);for(var h,a=0;h=this.JSC$11501_keys_[a];a++)if(!v(this.get(h),D.get(h)))return!1;return!0};
var SAJ=function(D,v){return D===v};
_.N9.prototype.isEmpty=function(){return this.size==0};
_.N9.prototype.clear=function(){this.JSC$11501_map_={};this.version_=this.size=this.JSC$11501_keys_.length=0};
_.N9.prototype.remove=function(D){return this.delete(D)};
_.N9.prototype.delete=function(D){return Bq(this.JSC$11501_map_,D)?(delete this.JSC$11501_map_[D],--this.size,this.version_++,this.JSC$11501_keys_.length>2*this.size&&YF(this),!0):!1};
var YF=function(D){if(D.size!=D.JSC$11501_keys_.length){for(var v=0,h=0;v<D.JSC$11501_keys_.length;){var a=D.JSC$11501_keys_[v];Bq(D.JSC$11501_map_,a)&&(D.JSC$11501_keys_[h++]=a);v++}D.JSC$11501_keys_.length=h}if(D.size!=D.JSC$11501_keys_.length){v={};for(a=h=0;h<D.JSC$11501_keys_.length;){var Q=D.JSC$11501_keys_[h];Bq(v,Q)||(D.JSC$11501_keys_[a++]=Q,v[Q]=1);h++}D.JSC$11501_keys_.length=a}};
_.V=_.N9.prototype;_.V.get=function(D,v){return Bq(this.JSC$11501_map_,D)?this.JSC$11501_map_[D]:v};
_.V.set=function(D,v){Bq(this.JSC$11501_map_,D)||(this.size+=1,this.JSC$11501_keys_.push(D),this.version_++);this.JSC$11501_map_[D]=v};
_.V.addAll=function(D){if(D instanceof _.N9)for(var v=D.getKeys(),h=0;h<v.length;h++)this.set(v[h],D.get(v[h]));else for(v in D)this.set(v,D[v])};
_.V.forEach=function(D,v){for(var h=this.getKeys(),a=0;a<h.length;a++){var Q=h[a],G=this.get(Q);D.call(v,G,Q,this)}};
_.V.clone=function(){return new _.N9(this)};
_.V.transpose=function(){for(var D=new _.N9,v=0;v<this.JSC$11501_keys_.length;v++){var h=this.JSC$11501_keys_[v];D.set(this.JSC$11501_map_[h],h)}return D};
_.V.keys=function(){return yHJ(this.__iterator__(!0)).toEs6()};
_.V.values=function(){return yHJ(this.__iterator__(!1)).toEs6()};
_.V.entries=function(){var D=this;return Qyt(this.keys(),function(v){return[v,D.get(v)]})};
_.V.__iterator__=function(D){YF(this);var v=0,h=this.version_,a=this,Q=new k9;Q.next=function(){if(h!=a.version_)throw Error("te");if(v>=a.JSC$11501_keys_.length)return Sn;var G=a.JSC$11501_keys_[v++];return Je(D?G:a.JSC$11501_map_[G])};
return Q};
var Bq=function(D,v){return Object.prototype.hasOwnProperty.call(D,v)};var pXJ=function(){this.JSC$11504_map_=new _.N9;this.JSC$11504_head_=new Jdy("");this.JSC$11504_head_.next=this.JSC$11504_head_.prev=this.JSC$11504_head_},l2$=function(D,v){if(v=D.JSC$11504_map_.get(v))v.remove(),D.insert_(v);
return v};
_.V=pXJ.prototype;_.V.get=function(D,v){return(D=l2$(this,D))?D.value:v};
_.V.set=function(D,v){var h=l2$(this,D);h?h.value=v:(h=new Jdy(D,v),this.JSC$11504_map_.set(D,h),this.insert_(h))};
_.V.peek=function(){return this.JSC$11504_head_.next.value};
_.V.shift=function(){return N1y(this,this.JSC$11504_head_.next)};
_.V.pop=function(){return N1y(this,this.JSC$11504_head_.prev)};
_.V.remove=function(D){return(D=this.JSC$11504_map_.get(D))?(this.removeNode(D),!0):!1};
_.V.removeNode=function(D){D.remove();this.JSC$11504_map_.remove(D.key)};
_.V.getCount=function(){return this.JSC$11504_map_.getCount()};
_.V.isEmpty=function(){return this.JSC$11504_map_.isEmpty()};
_.V.getKeys=function(){return this.map(function(D,v){return v})};
_.V.getValues=function(){return this.map(function(D){return D})};
_.V.contains=function(D){return this.some(function(v){return v==D})};
_.V.containsKey=function(D){return this.JSC$11504_map_.containsKey(D)};
_.V.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11504_head_.prev)};
_.V.forEach=function(D,v){for(var h=this.JSC$11504_head_.next;h!=this.JSC$11504_head_;h=h.next)D.call(v,h.value,h.key,this)};
_.V.map=function(D,v){for(var h=[],a=this.JSC$11504_head_.next;a!=this.JSC$11504_head_;a=a.next)h.push(D.call(v,a.value,a.key,this));return h};
_.V.some=function(D,v){for(var h=this.JSC$11504_head_.next;h!=this.JSC$11504_head_;h=h.next)if(D.call(v,h.value,h.key,this))return!0;return!1};
_.V.every=function(D,v){for(var h=this.JSC$11504_head_.next;h!=this.JSC$11504_head_;h=h.next)if(!D.call(v,h.value,h.key,this))return!1;return!0};
_.V.insert_=function(D){D.next=this.JSC$11504_head_.next;D.prev=this.JSC$11504_head_;this.JSC$11504_head_.next=D;for(D.next.prev=D;this.getCount()>100;)this.removeNode(this.JSC$11504_head_.prev)};
var N1y=function(D,v){D.JSC$11504_head_!=v&&D.removeNode(v);return v.value},Jdy=function(D,v){this.key=D;
this.value=v};
Jdy.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var YAJ=function(){lN.apply(this,arguments)};
_.J(YAJ,lN);YAJ.prototype.enqueue=function(D,v){this.insert(D,v)};var B1p=function(){var D=Error();D.name="SecurityError";throw D;},oKr=function(){return{get opener(){return null},
get closed(){return!0},get location(){B1p()},get document(){B1p()},postMessage:function(){},
close:function(){},
focus:function(){}}};var MZ4={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 oyf={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 cds={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(oyf).join("|");var XX9=function(){function D(f){f.substr(-1)!==";"&&(f+=";");return x(f)}
for(var v=Object.keys(cds).sort(Cnr),h=Object.keys(oyf).sort(Cnr),a=0,Q=0;a<h.length;a++)v[Q]===h[a]?(h[a]+=";?",Q++):h[a]+=";";var G=new RegExp("&(?:"+h.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),x=FFr();return function(f){return String(f).replace(G,D)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var Adt={};var qA4=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"),b_4=/[\\&]/,dLb=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),j3J=RegExp('[&<>"]',"g"),s34=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),mLp=function(D){return D.charCodeAt(0)===92?D.charAt(1):XX9(D)},H_t=function(D){return b_4.test(D)?D.replace(dLb,mLp):D},ydy=function(D){try{var v,h="";
if(typeof Q!=="string"){var a=Q;var Q=";/?:@&=+$,-_.!~*'()#"}typeof a==="undefined"&&(a=!0);var G,x=Adt[Q];if(x)var f=x;else{x=Adt[Q]=[];for(G=0;G<128;G++){var C=String.fromCharCode(G);/^[0-9a-z]$/i.test(C)?x.push(C):x.push("%"+("0"+G.toString(16).toUpperCase()).slice(-2))}for(G=0;G<Q.length;G++)x[Q.charCodeAt(G)]=Q[G];f=x}var U=0;for(v=D.length;U<v;U++){var L=D.charCodeAt(U);if(a&&L===37&&U+2<v&&/^[0-9a-f]{2}$/i.test(D.slice(U+1,U+3)))h+=D.slice(U,U+3),U+=2;else if(L<128)h+=f[L];else if(L>=55296&&
L<=57343){if(L>=55296&&L<=56319&&U+1<v){var Z=D.charCodeAt(U+1);if(Z>=56320&&Z<=57343){h+=encodeURIComponent(D[U]+D[U+1]);U++;continue}}h+="%EF%BF%BD"}else h+=encodeURIComponent(D[U])}return h}catch(E){return D}},wXM=function(D){switch(D){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return D}},cq=function(D,v){return j3J.test(D)?v?D.replace(s34,wXM):D.replace(j3J,wXM):D};/*

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

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var Xm;if(String.fromCodePoint)Xm=function(D){try{return String.fromCodePoint(D)}catch(v){if(v instanceof RangeError)return String.fromCharCode(65533);throw v;}};
else{var eUt=String.fromCharCode,n5$=Math.floor;Xm=function(){var D=[],v=-1,h=arguments.length;if(!h)return"";for(var a="";++v<h;){var Q=Number(arguments[v]);if(!isFinite(Q)||Q<0||Q>1114111||n5$(Q)!==Q)return String.fromCharCode(65533);if(Q<=65535)D.push(Q);else{Q-=65536;var G=(Q>>10)+55296;Q=Q%1024+56320;D.push(G,Q)}if(v+1===h||D.length>16384)a+=eUt.apply(null,D),D.length=0}return a}};var O_J=function(D){this.root=this.current=D;this.entering=!0};
O_J.prototype.next=function(){var D=this.current,v=this.entering;if(D===null)return null;a:switch(D._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var h=!0;break a;default:h=!1}v&&h?D._firstChild?(this.current=D._firstChild,this.entering=!0):this.entering=!1:D===this.root?this.current=null:D._next===null?(this.current=
D._parent,this.entering=!1):(this.current=D._next,this.entering=!0);return{entering:v,node:D}};
var Ir=function(D,v){this._type=D;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=v;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};
Ir.prototype.appendChild=function(D){D.unlink();D._parent=this;this._lastChild?(this._lastChild._next=D,D._prev=this._lastChild):this._firstChild=D;this._lastChild=D};
Ir.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 Kry=function(D,v){v.unlink();v._next=D._next;v._next&&(v._next._prev=v);v._prev=D;D._next=v;v._parent=D._parent;v._next||(v._parent._lastChild=v)};
Ir.prototype.insertBefore=function(D){D.unlink();D._prev=this._prev;D._prev&&(D._prev._next=D);D._next=this;this._prev=D;D._parent=this._parent;D._prev||(D._parent._firstChild=D)};
_.GT.Object.defineProperties(Ir.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(D){this._literal=D}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(D){this._destination=D}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(D){this._title=D}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(D){this._info=D}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(D){this._level=D}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(D){this._listData.type=D}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(D){this._listData.tight=D}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(D){this._listData.start=D}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(D){this._onEnter=D}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(D){this._onExit=D}}});var zDA=/[ \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,
UE8={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 T1m=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]/),
RUb=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),i_y=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Wr9=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),t34=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),rdJ=/`+/,uZy=/^`+/,Dq4=/\.\.\./g,ve1=/--+/g,hV4=/^<([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])?)*)>/,
aYs=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,$qt=/^ *(?:\n *)?/,Qg1=/^[ \t\n\x0b\x0c\x0d]/,Gft=/[ \t\n\x0b\x0c\x0d]+/g,Vb9=/^\s/,P7F=/ *$/,xqb=/^ */,Mbt=/^ *(?:\n|$)/,fY9=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),C7M=/^[^\n`\[\]\\!<&*_'"]+/m,Ax=function(D){var v=new Ir("text");v._literal=D;return v},q9=function(D){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=D||{}};
q9.prototype.match=function(D){D=D.exec(this.subject.slice(this.pos));if(D===null)return null;this.pos+=D.index+D[0].length;return D[0]};
q9.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var bN=function(D){D.match($qt);return!0},oe4=function(D,v,h){var a=0;
var Q=D.pos;if(v===39||v===34)a++,D.pos++;else for(;D.peek()===v;)a++,D.pos++;if(a===0)a=null;else{var G=Q===0?"\n":D.subject.charAt(Q-1);var x=D.peek();x=x===-1?"\n":Xm(x);var f=Vb9.test(x);x=T1m.test(x);var C=Vb9.test(G);var U=T1m.test(G);G=!f&&!(x&&!C&&!U);f=!C&&!(U&&!f&&!x);v===95?(C=G&&(!f||U),x=f&&(!G||x)):(C=v===39||v===34?G&&!f:G,x=f);D.pos=Q;a={numdelims:a,can_open:C,can_close:x}}if(!a)return!1;Q=a.numdelims;x=D.pos;D.pos+=Q;x=v===39?"\u2019":v===34?"\u201c":D.subject.slice(x,D.pos);x=Ax(x);
h.appendChild(x);D.delimiters={cc:v,numdelims:Q,origdelims:Q,node:x,previous:D.delimiters,next:null,can_open:a.can_open,can_close:a.can_close};D.delimiters.previous!==null&&(D.delimiters.previous.next=D.delimiters);return!0},Fs9=function(D,v){v.previous!==null&&(v.previous.next=v.next);
v.next===null?D.delimiters=v.previous:v.next.previous=v.previous},zV1=function(D,v){var h,a,Q=[],G=!1;
Q[95]=v;Q[42]=v;Q[39]=v;Q[34]=v;for(h=D.delimiters;h!==null&&h.previous!==v;)h=h.previous;for(;h!==null;){var x=h.cc;if(h.can_close){var f=h.previous;for(a=!1;f!==null&&f!==v&&f!==Q[x];){G=(h.can_open||f.can_close)&&(f.origdelims+h.origdelims)%3===0;if(f.cc===h.cc&&f.can_open&&!G){a=!0;break}f=f.previous}var C=h;if(x===42||x===95)if(a){var U=h.numdelims>=2&&f.numdelims>=2?2:1;var L=f.node;var Z=h.node;f.numdelims-=U;h.numdelims-=U;L._literal=L._literal.slice(0,L._literal.length-U);Z._literal=Z._literal.slice(0,
Z._literal.length-U);var E=new Ir(U===1?"emph":"strong");for(U=L._next;U&&U!==Z;){var I=U._next;U.unlink();E.appendChild(U);U=I}Kry(L,E);U=f;I=h;U.next!==I&&(U.next=I,I.previous=U);f.numdelims===0&&(L.unlink(),Fs9(D,f));h.numdelims===0&&(Z.unlink(),f=h.next,Fs9(D,h),h=f)}else h=h.next;else x===39?(h.node._literal="\u2019",a&&(f.node._literal="\u2018"),h=h.next):x===34&&(h.node._literal="\u201d",a&&(f.node.literal="\u201c"),h=h.next);a||G||(Q[x]=C.previous,C.can_open||Fs9(D,C))}else h=h.next}for(;D.delimiters!==
null&&D.delimiters!==v;)Fs9(D,D.delimiters)},Uqb=function(D){D=D.match(RUb);
return D===null?null:H_t(D.substr(1,D.length-2))},Ls9=function(D){var v=D.match(i_y);
if(v===null){v=D.pos;for(var h=0,a;(a=D.peek())!==-1;)if(a===92)D.pos+=1,D.peek()!==-1&&(D.pos+=1);else if(a===40)D.pos+=1,h+=1;else if(a===41)if(h<1)break;else D.pos+=1,--h;else if(Qg1.exec(Xm(a))!==null)break;else D.pos+=1;v=D.subject.substr(v,D.pos-v);return ydy(H_t(v))}return ydy(H_t(v.substr(1,v.length-2)))},Zj9=function(D){D=D.match(fY9);
return D===null||D.length>1001?0:D.length},Eeb=function(D,v,h,a){D.brackets!==null&&(D.brackets.bracketAfter=!0);
D.brackets={node:v,previous:D.brackets,previousDelimiter:D.delimiters,index:h,image:a,active:!0}},IYb=function(D,v){var h;
return(h=D.match(C7M))?(D.options.smart?v.appendChild(Ax(h.replace(Dq4,"\u2026").replace(ve1,function(a){var Q=0,G=0;a.length%3===0?G=a.length/3:a.length%2===0?Q=a.length/2:a.length%3===2?(Q=1,G=(a.length-2)/3):(Q=2,G=(a.length-4)/3);a="";var x;for(x=0;x<G;x++)a+="\u2014";for(x=0;x<Q;x++)a+="\u2013";return a}))):v.appendChild(Ax(h)),!0):!1},ge9=function(D,v,h){D.subject=v;
D.pos=0;v=D.pos;var a=Zj9(D);if(a===0)return 0;var Q=D.subject.substr(0,a);if(D.peek()===58)D.pos++;else return D.pos=v,0;bN(D);a=Ls9(D);if(a===null||a.length===0)return D.pos=v,0;var G=D.pos;bN(D);var x=Uqb(D);x===null&&(x="",D.pos=G);var f=!0;D.match(Mbt)===null&&(x===""?f=!1:(x="",D.pos=G,f=D.match(Mbt)!==null));if(!f)return D.pos=v,0;Q=LFr(Q);if(Q==="")return D.pos=v,0;h[Q]||(h[Q]={destination:a,title:x});return D.pos-v},kfF=function(D,v){var h,a=D.peek();
if(a===-1)return!1;switch(a){case 10:D.pos+=1;if((h=v._lastChild)&&h.type==="text"&&h._literal[h._literal.length-1]===" "){var Q=h._literal[h._literal.length-2]===" ";h._literal=h._literal.replace(P7F,"");v.appendChild(new Ir(Q?"linebreak":"softbreak"))}else v.appendChild(new Ir("softbreak"));D.match(xqb);h=!0;break;case 92:h=D.subject;D.pos+=1;D.peek()===10?(D.pos+=1,h=new Ir("linebreak"),v.appendChild(h)):Wr9.test(h.charAt(D.pos))?(v.appendChild(Ax(h.charAt(D.pos))),D.pos+=1):v.appendChild(Ax("\\"));
h=!0;break;case 96:a:if(h=D.match(uZy),h===null)h=!1;else{Q=D.pos;for(var G;(G=D.match(rdJ))!==null;)if(G===h){G=new Ir("code");G._literal=D.subject.slice(Q,D.pos-h.length).trim().replace(Gft," ");v.appendChild(G);h=!0;break a}D.pos=Q;v.appendChild(Ax(h));h=!0}break;case 42:case 95:h=oe4(D,a,v);break;case 39:case 34:h=D.options.smart&&oe4(D,a,v);break;case 91:h=D.pos;D.pos+=1;Q=Ax("[");v.appendChild(Q);Eeb(D,Q,h,!1);h=!0;break;case 33:h=D.pos;D.pos+=1;D.peek()===91?(D.pos+=1,Q=Ax("!["),v.appendChild(Q),
Eeb(D,Q,h+1,!0)):v.appendChild(Ax("!"));h=!0;break;case 93:var x,f=!1,C;D.pos+=1;var U=D.pos;Q=D.brackets;if(Q===null)v.appendChild(Ax("]"));else if(Q.active){h=Q.image;var L=D.pos;D.peek()===40&&(D.pos++,bN(D)&&(G=Ls9(D))!==null&&bN(D)&&(Qg1.test(D.subject.charAt(D.pos-1))&&(x=Uqb(D)),1)&&bN(D)&&D.peek()===41?(D.pos+=1,f=!0):D.pos=L);if(!f){var Z=D.pos,E=Zj9(D);E>2?C=D.subject.slice(Z,Z+E):Q.bracketAfter||(C=D.subject.slice(Q.index,U));E===0&&(D.pos=L);C&&(C=D.refmap[LFr(C)])&&(G=C.destination,x=
C.title,f=!0)}if(f){U=new Ir(h?"image":"link");U._destination=G;U._title=x||"";for(G=Q.node._next;G;)x=G._next,G.unlink(),U.appendChild(G),G=x;v.appendChild(U);zV1(D,Q.previousDelimiter);D.brackets=D.brackets.previous;Q.node.unlink();if(!h)for(Q=D.brackets;Q!==null;)Q.image||(Q.active=!1),Q=Q.previous}else D.brackets=D.brackets.previous,D.pos=U,v.appendChild(Ax("]"))}else v.appendChild(Ax("]")),D.brackets=D.brackets.previous;h=!0;break;case 60:(h=D.match(hV4))?(h=h.slice(1,h.length-1),Q=new Ir("link"),
Q._destination=ydy("mailto:"+h),Q._title="",Q.appendChild(Ax(h)),v.appendChild(Q),h=!0):(h=D.match(aYs))?(h=h.slice(1,h.length-1),Q=new Ir("link"),Q._destination=ydy(h),Q._title="",Q.appendChild(Ax(h)),v.appendChild(Q),h=!0):h=!1;h||(h=D.match(qA4),h===null?h=!1:(Q=new Ir("html_inline"),Q._literal=h,v.appendChild(Q),h=!0));break;case 38:(h=D.match(t34))?(v.appendChild(Ax(XX9(h))),h=!0):h=!1;break;default:h=IYb(D,v)}h||(D.pos+=1,v.appendChild(Ax(Xm(a))));return!0};
q9.prototype.parseInlines=function(D){this.subject=D._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;kfF(this,D););D._string_content=null;zV1(this,null)};
q9.prototype.parse=q9.prototype.parseInlines;var Sn$=[/./,/^<(?: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")],JnR=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],p4b=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,lY9=/^[#`~*+_=<>0-9-\|]|\|/,Np$=/[^ \t\f\v\r\n]/,YnM=/^[*+-]/,Bp4=/^(\d{1,9})([.)])/,cnp=/^#{1,6}(?:[ \t]+|$)/,X4m=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,An$=/^(?:`{3,}|~{3,})(?= *$)/,qnb=/^(?:=+|-+)[ \t]*$/,bjJ=/\r\n|\n|\r/,EyL=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,IBr=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,dq4={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(D,v){for(D=v._firstChild;D;){if(ZDi(D)&&D._next){v._listData.tight=!1;break}for(var h=D._firstChild;h;){if(ZDi(h)&&(D._next||h._next)){v._listData.tight=!1;break}h=h._next}D=D._next}},
canContain:function(D){return D==="item"},
acceptsLines:!1},block_quote:{continue:function(D){var v=D.currentLine;if(D.indented||ZF(v,D.nextNonspace)!==62)return 1;d3(D);j5(D,1,!1);Lm(ZF(v,D.offset))&&j5(D,1,!0);return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},item:{continue:function(D,v){if(D.blank){if(v._firstChild==null)return 1;d3(D)}else if(D.indent>=v._listData.markerOffset+v._listData.padding)j5(D,v._listData.markerOffset+v._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(D){return D!=="item"&&!gy4(D)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(D,v){var h=D.currentLine,a=D.indent;if(v._isFenced){if((a=a<=3&&h.charAt(D.nextNonspace)===v._fenceChar&&h.slice(D.nextNonspace).match(An$))&&a[0].length>=v._fenceLength)return D.finalize(v,D.lineNumber),2;for(v=v._fenceOffset;v>0&&Lm(ZF(h,D.offset));)j5(D,1,!0),v--}else if(a>=4)j5(D,4,!0);else if(D.blank)d3(D);else return 1;return 0},
finalize:function(D,v){if(v._isFenced){var h=v._string_content,a=h.indexOf("\n");D=h.slice(0,a);h=h.slice(a+1);v.info=H_t(D.trim());v._literal=h}else v._literal=v._string_content.replace(/(\n *)+$/,"\n");v._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(D,v){return!D.blank||v._htmlBlockType!==6&&v._htmlBlockType!==7?0:1},
finalize:function(D,v){v._literal=v._string_content.replace(/(\n *)+$/,"");v._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(D){return D.blank?1:0},
finalize:function(D,v){for(var h,a=!1;ZF(v._string_content,0)===91&&(h=ge9(D.inlineParser,v._string_content,D.refmap));)v._string_content=v._string_content.slice(h),a=!0;a&&!Np$.test(v._string_content)&&v.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(D){return Ei(D.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(D){return D=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(D,v){if(!v._rowIsDelimiter){D=v._isHeader?"th":"td";for(var h=v._parent._tableColumns,a=v._string_content,Q=0,G="",x,f=v._sourcepos[0][0];Q<a.length;){switch(a[Q]){case "|":x&&(x._string_content=G.trim(),G="",x=null,h--,h<=0&&(Q=a.length));break;default:if(!x){x=new Ir(D,[[f,Q],[f,Q]]);var C=v._parent._columnAlignment,U=v._parent._tableColumns-h;C&&U<=C.length&&U>=0&&(x._alignment=C[U]);v.appendChild(x)}G+=a[Q];x._sourcepos[1][1]=Q}Q++}x&&(x._string_content=G.trim());v._string_content=
""}},
canContain:function(D){return D!=="row"},
acceptsLines:!1}},jg9=[function(D){if(D.indented||ZF(D.currentLine,D.nextNonspace)!==62)return 0;d3(D);j5(D,1,!1);Lm(ZF(D.currentLine,D.offset))&&j5(D,1,!0);sB(D);D.addChild("block_quote",D.nextNonspace);return 1},
function(D){var v;if(!D.indented&&(v=D.currentLine.slice(D.nextNonspace).match(cnp))){d3(D);j5(D,v[0].length,!1);sB(D);var h=D.addChild("heading",D.nextNonspace);h.level=v[0].trim().length;h._string_content=D.currentLine.slice(D.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");j5(D,D.currentLine.length-D.offset);return 2}return 0},
function(D){var v;if(!D.indented&&(v=D.currentLine.slice(D.nextNonspace).match(X4m))){var h=v[0].length;sB(D);var a=D.addChild("code_block",D.nextNonspace);a._isFenced=!0;a._fenceLength=h;a._fenceChar=v[0][0];a._fenceOffset=D.indent;d3(D);j5(D,h,!1);return 2}return 0},
function(D,v){if(!D.indented&&ZF(D.currentLine,D.nextNonspace)===60){var h=D.currentLine.slice(D.nextNonspace),a;for(a=1;a<=7;a++)if(Sn$[a].test(h)&&(a<7||v.type!=="paragraph"))return sB(D),D.addChild("html_block",D.offset)._htmlBlockType=a,2}return 0},
function(D,v){var h;if(!D.indented&&v.type==="paragraph"&&(h=D.currentLine.slice(D.nextNonspace).match(qnb))){sB(D);var a=new Ir("heading",v.sourcepos);a.level=h[0][0]==="="?1:2;a._string_content=v._string_content;Kry(v,a);v.unlink();D.tip=a;j5(D,D.currentLine.length-D.offset,!1);return 2}return 0},
function(D){return!D.indented&&p4b.test(D.currentLine.slice(D.nextNonspace))?(sB(D),D.addChild("thematic_break",D.nextNonspace),j5(D,D.currentLine.length-D.offset,!1),2):0},
function(D,v){var h,a;if(!(a=D.indented&&v.type!=="list")){a:{var Q=v,G=D.currentLine.slice(D.nextNonspace);a={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:D.indent};if(h=G.match(YnM))a.type="bullet",a.bulletChar=h[0][0];else{if(!(h=G.match(Bp4))||Q.type==="paragraph"&&h[1]!=="1"){h=null;break a}a.type="ordered";a.start=parseInt(h[1],10);a.delimiter=h[2]}var x=ZF(D.currentLine,D.nextNonspace+h[0].length);if(x!==-1&&x!==9&&x!==32||Q.type==="paragraph"&&!D.currentLine.slice(D.nextNonspace+
h[0].length).match(Np$))h=null;else{d3(D);j5(D,h[0].length,!0);Q=D.column;G=D.offset;do j5(D,1,!0),x=ZF(D.currentLine,D.offset);while(D.column-Q<5&&Lm(x));x=ZF(D.currentLine,D.offset)===-1;var f=D.column-Q;f>=5||f<1||x?(a.padding=h[0].length+1,D.column=Q,D.offset=G,Lm(ZF(D.currentLine,D.offset))&&j5(D,1,!0)):a.padding=h[0].length+f;h=a}}a=!h}if(a)return 0;sB(D);(a=D.tip.type!=="list")||(v=v._listData,a=!(v.type===h.type&&v.delimiter===h.delimiter&&v.bulletChar===h.bulletChar));a&&(v=D.addChild("list",
D.nextNonspace),v._listData=h);v=D.addChild("item",D.nextNonspace);v._listData=h;return 1},
function(D){var v;return((v=D.options.shouldParseIndentAsCodeBlock)!=null?v:1)&&D.indented&&D.tip.type!=="paragraph"&&!D.blank?(j5(D,4,!0),sB(D),D.addChild("code_block",D.offset),2):0},
function(D,v){var h=Ei(D.currentLine),a=Ei(D.lookahead);if(h!==0&&a<0&&Math.abs(h)==Math.abs(a)&&!gy4(v.type)){sB(D);v=D.addChild("table",D.nextNonspace);v._tableRows=1;v._tableColumns=Math.abs(h);h=D.lookahead;if(IBr.test(h)){a=[];for(var Q=0,G=!1,x=0,f=void 0;Q<h.length;){var C=x>=3;switch(h[Q]){case "-":x++;break;case "|":G&&(a.push(f),f=void 0,x=0);G=!0;break;case ":":f||C||(f="left"),!f&&C&&(f="right"),f==="left"&&C&&(f="center")}Q++}h=a}else h=void 0;v._columnAlignment=h;v=D.addChild("row",
D.nextNonspace);v._isHeader=!0;j5(D,D.currentLine.length-D.offset,!1);v._string_content=D.currentLine;return 1}return 0},
function(D,v){if(v.type=="table"&&Ei(D.currentLine)!==0){sB(D);var h=v;v=D.addChild("row",D.nextNonspace);Ei(D.currentLine)<0?v._rowIsDelimiter=!0:h._tableRows+=1;j5(D,D.currentLine.length-D.offset,!1);v._string_content=D.currentLine;return 2}return 0}],tYc=function(){var D={shouldParseIndentAsCodeBlock:!1};
D=D===void 0?{}:D;this.lastMatchedContainer=this.doc=krA();this.refmap={};this.lastLineLength=0;this.inlineParser=new q9(D);this.options=D;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=dq4;this.blockStarts=jg9},sgF=function(D){D.partiallyConsumedTab&&(D.offset+=1,D.tip._string_content+=" ".repeat(4-D.column%
4));
D.tip._string_content+=D.currentLine.slice(D.offset)+"\n"};
tYc.prototype.addChild=function(D,v){for(;!this.blocks[this.tip.type].canContain(D);)this.finalize(this.tip,this.lineNumber-1);D=new Ir(D,[[this.lineNumber,v+1],[0,0]]);D._string_content="";this.tip.appendChild(D);return this.tip=D};
var sB=function(D){if(!D.allClosed){for(;D.oldtip!==D.lastMatchedContainer;){var v=D.oldtip._parent;D.finalize(D.oldtip,D.lineNumber-1);D.oldtip=v}D.allClosed=!0}},j5=function(D,v,h){for(var a=D.currentLine,Q,G;v>0&&(G=a[D.offset]);)G==="\t"?(Q=4-D.column%4,h?(D.partiallyConsumedTab=Q>v,Q=Q>v?v:Q,D.column+=Q,D.offset+=D.partiallyConsumedTab?0:1,v-=Q):(D.partiallyConsumedTab=!1,D.column+=Q,D.offset+=1,--v)):(D.partiallyConsumedTab=!1,D.offset+=1,D.column+=1,--v)},d3=function(D){D.offset=D.nextNonspace;
D.column=D.nextNonspaceColumn;D.partiallyConsumedTab=!1},mqp=function(D){for(var v=D.currentLine,h=D.offset,a=D.column,Q;(Q=v.charAt(h))!=="";)if(Q===" ")h++,a++;
else if(Q==="\t")h++,a+=4-a%4;else break;D.blank=Q==="\n"||Q==="\r"||Q==="";D.nextNonspace=h;D.nextNonspaceColumn=a;D.indent=D.nextNonspaceColumn-D.column;D.indented=D.indent>=4};
tYc.prototype.finalize=function(D,v){var h=D._parent;D._open=!1;D.sourcepos[1]=[v,this.lastLineLength];this.blocks[D.type].finalize(this,D);this.tip=h};
tYc.prototype.parse=function(D){this.tip=this.doc=krA();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!D)return this.doc;this.options.time&&console.time("preparing input");var v=D.split(bjJ),h=v.length;D.charCodeAt(D.length-1)===10&&--h;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(D=0;D<h;D++)a:{var a=void 0,Q=v[D],G=v[D+1],x=!0,f=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Q.indexOf("\x00")!==-1&&(Q=Q.replace(/\0/g,"\ufffd"));this.currentLine=Q;for(this.lookahead=G;(a=f._lastChild)&&a._open;){f=a;mqp(this);switch(this.blocks[f.type].continue(this,f)){case 0:break;case 1:x=!1;break;case 2:this.lastLineLength=Q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!x){f=f._parent;break}}this.allClosed=f===this.oldtip;this.lastMatchedContainer=
f;a=f.type!=="paragraph"&&dq4[f.type].acceptsLines;G=this.blockStarts;for(x=G.length;!a;){mqp(this);if(!this.indented&&!lY9.test(Q.slice(this.nextNonspace))){d3(this);break}for(var C=0;C<x;){var U=G[C](this,f);if(U===1){f=this.tip;break}else if(U===2){f=this.tip;a=!0;break}else C++}if(C===x){d3(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){sB(this);this.blank&&f.lastChild&&(f.lastChild._lastLineBlank=!0);a=f.type;G=this.blank&&!(a==="block_quote"||a==="code_block"&&f._isFenced||
a==="item"&&!f._firstChild&&f.sourcepos[0][0]===this.lineNumber);for(x=f;x;)x._lastLineBlank=G,x=x._parent;this.blocks[a].acceptsLines?(sgF(this),a==="html_block"&&f._htmlBlockType>=1&&f._htmlBlockType<=5&&JnR[f._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(f,this.lineNumber)):this.offset<Q.length&&!this.blank&&(this.addChild("paragraph",this.offset),d3(this),sgF(this))}else sgF(this);this.lastLineLength=Q.length}for(;this.tip;)this.finalize(this.tip,h);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Q=new O_J(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;h=Q.next();)v=h.node,D=v.type,h.entering||D!=="paragraph"&&D!=="heading"&&D!=="th"&&D!="td"||this.inlineParser.parse(v);this.options.time&&console.timeEnd("inline parsing");return this.doc};SPi.prototype.render=function(D){D=new O_J(D);var v;this.buffer="";for(this.lastOut="\n";v=D.next();){var h=v.node.type;if(this[h])this[h](v.node,v.entering)}return this.buffer};
SPi.prototype.out=function(D){mB(this,D)};
var mB=function(D,v){D.buffer+=v;D.lastOut=v};
SPi.prototype.cr=function(){this.lastOut!=="\n"&&mB(this,"\n")};var Hjb=/^javascript:|vbscript:|file:|data:/i,ynJ=/^data:image\/(?:png|gif|jpeg|webp)/i,w4J=function(D){return Hjb.test(D)&&!ynJ.test(D)};
gd.prototype=Object.create(SPi.prototype);_.V=gd.prototype;_.V.text=function(D){this.out(D.literal)};
_.V.html_inline=function(D){this.options.safe?mB(this,"\x3c!-- raw HTML omitted --\x3e"):mB(this,D.literal)};
_.V.html_block=function(D){this.cr();this.options.safe?mB(this,"\x3c!-- raw HTML omitted --\x3e"):mB(this,D.literal);this.cr()};
_.V.softbreak=function(){mB(this,this.options.softbreak)};
_.V.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.V.link=function(D,v){var h=this.attrs(D);v?(this.options.safe&&w4J(D.destination)||h.push(["href",cq(D.destination,!0)]),D.title&&h.push(["title",cq(D.title,!0)]),this.tag("a",h)):this.tag("/a")};
_.V.image=function(D,v){v?(this.disableTags===0&&(this.options.safe&&w4J(D.destination)?mB(this,'<img src="" alt="'):mB(this,'<img src="'+cq(D.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(D.title&&mB(this,'" title="'+cq(D.title,!0)),mB(this,'" />')))};
_.V.emph=function(D,v){this.tag(v?"em":"/em")};
_.V.strong=function(D,v){this.tag(v?"strong":"/strong")};
_.V.paragraph=function(D,v){var h=D.parent.parent;D=this.attrs(D);h!==null&&h.type==="list"&&h.listTight||(v?(this.cr(),this.tag("p",D)):(this.tag("/p"),this.cr()))};
_.V.heading=function(D,v){var h="h"+D.level;D=this.attrs(D);v?(this.cr(),this.tag(h,D)):(this.tag("/"+h),this.cr())};
_.V.code=function(D){this.tag("code");this.out(D.literal);this.tag("/code")};
_.V.code_block=function(D){var v=D.info?D.info.split(/\s+/):[],h=this.attrs(D);v.length>0&&v[0].length>0&&h.push(["class","language-"+cq(v[0],!0)]);this.cr();this.tag("pre");this.tag("code",h);this.out(D.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.V.thematic_break=function(D){D=this.attrs(D);this.cr();this.tag("hr",D,!0);this.cr()};
_.V.block_quote=function(D,v){D=this.attrs(D);v?(this.cr(),this.tag("blockquote",D)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.V.list=function(D,v){var h=D.listType==="bullet"?"ul":"ol",a=this.attrs(D);v?(D=D.listStart,D!==null&&D!==1&&a.push(["start",D.toString()]),this.cr(),this.tag(h,a)):(this.cr(),this.tag("/"+h));this.cr()};
_.V.item=function(D,v){D=this.attrs(D);v?this.tag("li",D):(this.tag("/li"),this.cr())};
_.V.custom_inline=function(D,v){v&&D.onEnter?mB(this,D.onEnter):!v&&D.onExit&&mB(this,D.onExit)};
_.V.custom_block=function(D,v){this.cr();v&&D.onEnter?mB(this,D.onEnter):!v&&D.onExit&&mB(this,D.onExit);this.cr()};
_.V.table=function(D,v){D=this.attrs(D);v?(this.cr(),this.tag("table",D)):(this.tag("/table"),this.cr())};
_.V.row=function(D,v){D._rowIsDelimiter||(D=this.attrs(D),v?this.tag("tr",D):this.tag("/tr"))};
_.V.td=function(D,v){var h=this.attrs(D);D._alignment&&h.push(["align",D._alignment]);v?this.tag("td",h):this.tag("/td")};
_.V.th=function(D,v){var h=this.attrs(D);D._alignment&&h.push(["align",D._alignment]);v?this.tag("th",h):this.tag("/th")};
_.V.out=function(D){mB(this,cq(D,!1))};
_.V.tag=function(D,v,h){if(!(this.disableTags>0)){this.buffer+="<"+D;if(v&&v.length>0){D=0;for(var a;(a=v[D])!==void 0;)this.buffer+=" "+a[0]+'="'+a[1]+'"',D++}h&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.V.attrs=function(D){var v=[];this.options.sourcepos&&(D=D.sourcepos)&&v.push(["data-sourcepos",String(D[0][0])+":"+String(D[0][1])+"-"+String(D[1][0])+":"+String(D[1][1])]);return v};
gd.prototype.text=gd.prototype.text;gd.prototype.html_inline=gd.prototype.html_inline;gd.prototype.html_block=gd.prototype.html_block;gd.prototype.softbreak=gd.prototype.softbreak;gd.prototype.linebreak=gd.prototype.linebreak;gd.prototype.link=gd.prototype.link;gd.prototype.image=gd.prototype.image;gd.prototype.emph=gd.prototype.emph;gd.prototype.strong=gd.prototype.strong;gd.prototype.paragraph=gd.prototype.paragraph;gd.prototype.heading=gd.prototype.heading;gd.prototype.code=gd.prototype.code;
gd.prototype.code_block=gd.prototype.code_block;gd.prototype.thematic_break=gd.prototype.thematic_break;gd.prototype.block_quote=gd.prototype.block_quote;gd.prototype.list=gd.prototype.list;gd.prototype.item=gd.prototype.item;gd.prototype.custom_inline=gd.prototype.custom_inline;gd.prototype.custom_block=gd.prototype.custom_block;gd.prototype.table=gd.prototype.table;gd.prototype.row=gd.prototype.row;gd.prototype.td=gd.prototype.td;gd.prototype.th=gd.prototype.th;gd.prototype.out=gd.prototype.out;
gd.prototype.tag=gd.prototype.tag;gd.prototype.attrs=gd.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 eVt,neR,QDI;(function(){function D(q,X){return q<X?-1:q>X?1:q>=X?0:NaN}
function v(q){return function(X,y){return D(q(X),y)}}
function h(){for(var q=0,X=arguments.length,y={},D4;q<X;++q){if(!(D4=arguments[q]+"")||D4 in y)throw Error("ve`"+D4);y[D4]=[]}return new a(y)}
function a(q){this._=q}
function Q(q,X){return q.trim().split(/^|\s+/).map(function(y){var D4="",Mr=y.indexOf(".");Mr>=0&&(D4=y.slice(Mr+1),y=y.slice(0,Mr));if(y&&!X.hasOwnProperty(y))throw Error("we`"+y);return{type:y,name:D4}})}
function G(q,X,y){for(var D4=0,Mr=q.length;D4<Mr;++D4)if(q[D4].name===X){q[D4]=ir$;q=q.slice(0,D4).concat(q.slice(D4+1));break}y!=null&&q.push({name:X,value:y});return q}
function x(q){var X=q,y=X.indexOf(":");y>=0&&(X=q.slice(0,y))!=="xmlns"&&(q=q.slice(y+1));return wo.hasOwnProperty(X)?{space:wo[X],local:q}:q}
function f(q){return function(){var X=this.ownerDocument,y=this.namespaceURI;return y==="http://www.w3.org/1999/xhtml"&&X.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?X.createElement(q):X.createElementNS(y,q)}}
function C(q){return function(){return this.ownerDocument.createElementNS(q.space,q.local)}}
function U(q){q=x(q);return(q.local?C:f)(q)}
function L(){}
function Z(q){return q==null?L:function(){return this.querySelector(q)}}
function E(q){return Array(q.length)}
function I(q,X){this.ownerDocument=q.ownerDocument;this.namespaceURI=q.namespaceURI;this._next=null;this._parent=q;this.__data__=X}
function S(q){return function(){return q}}
function B(q,X,y,D4,Mr,L7){for(var p7=0,bq,a4=X.length,uq=L7.length;p7<uq;++p7)(bq=X[p7])?(bq.__data__=L7[p7],D4[p7]=bq):y[p7]=new I(q,L7[p7]);for(;p7<a4;++p7)if(bq=X[p7])Mr[p7]=bq}
function A(q,X,y,D4,Mr,L7,p7){var bq,a4,uq={},$p=X.length,F9=L7.length,tb=Array($p),cs;for(bq=0;bq<$p;++bq)if(a4=X[bq])tb[bq]=cs="$"+p7.call(a4,a4.__data__,bq,X),cs in uq?Mr[bq]=a4:uq[cs]=a4;for(bq=0;bq<F9;++bq)cs="$"+p7.call(q,L7[bq],bq,L7),(a4=uq[cs])?(D4[bq]=a4,a4.__data__=L7[bq],uq[cs]=null):y[bq]=new I(q,L7[bq]);for(bq=0;bq<$p;++bq)(a4=X[bq])&&uq[tb[bq]]===a4&&(Mr[bq]=a4)}
function d(q,X){return q<X?-1:q>X?1:q>=X?0:NaN}
function b(q){return function(){this.removeAttribute(q)}}
function W(q){return function(){this.removeAttributeNS(q.space,q.local)}}
function K(q,X){return function(){this.setAttribute(q,X)}}
function O(q,X){return function(){this.setAttributeNS(q.space,q.local,X)}}
function R(q,X){return function(){var y=X.apply(this,arguments);y==null?this.removeAttribute(q):this.setAttribute(q,y)}}
function vA(q,X){return function(){var y=X.apply(this,arguments);y==null?this.removeAttributeNS(q.space,q.local):this.setAttributeNS(q.space,q.local,y)}}
function f7(q){return function(){this.style.removeProperty(q)}}
function xL(q,X,y){return function(){this.style.setProperty(q,X,y)}}
function kL(q,X,y){return function(){var D4=X.apply(this,arguments);D4==null?this.style.removeProperty(q):this.style.setProperty(q,D4,y)}}
function Z4(q,X){return q.style.getPropertyValue(X)||(q.ownerDocument&&q.ownerDocument.defaultView||q.document&&q||q.defaultView).getComputedStyle(q,null).getPropertyValue(X)}
function S2(q){return function(){delete this[q]}}
function s8(q,X){return function(){this[q]=X}}
function Xf(q,X){return function(){var y=X.apply(this,arguments);y==null?delete this[q]:this[q]=y}}
function dJ(){this.textContent=""}
function R4(q){return function(){this.textContent=q}}
function sF(q){return function(){var X=q.apply(this,arguments);this.textContent=X==null?"":X}}
function rc(){this.innerHTML=""}
function I4(q){return function(){this.innerHTML=q}}
function q1(q){return function(){var X=q.apply(this,arguments);this.innerHTML=X==null?"":X}}
function jt(){return null}
function rr(){var q=this.parentNode;q&&q.removeChild(this)}
function Zb(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function VO(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Pm(q,X,y){q=Yp(q,X,y);return function(D4){var Mr=D4.relatedTarget;Mr&&(Mr===this||Mr.compareDocumentPosition(this)&8)||q.call(this,D4)}}
function Yp(q,X,y){return function(){q.call(this,this.__data__,X,y)}}
function C3(q){return q.trim().split(/^|\s+/).map(function(X){var y="",D4=X.indexOf(".");D4>=0&&(y=X.slice(D4+1),X=X.slice(0,D4));return{type:X,name:y}})}
function ZJ(q){return function(){var X=this.__on;if(X){for(var y=0,D4=-1,Mr=X.length,L7;y<Mr;++y)(L7=X[y],q.type&&L7.type!==q.type||L7.name!==q.name)?X[++D4]=L7:this.removeEventListener(L7.type,L7.listener,L7.capture);++D4?X.length=D4:delete this.__on}}}
function VK(q,X,y){var D4=dy1.hasOwnProperty(q.type)?Pm:Yp;return function(Mr,L7,p7){Mr=this.__on;var bq;L7=D4(X,L7,p7);if(Mr){p7=0;for(var a4=Mr.length;p7<a4;++p7)if((bq=Mr[p7]).type===q.type&&bq.name===q.name){this.removeEventListener(bq.type,bq.listener,bq.capture);this.addEventListener(bq.type,bq.listener=L7,bq.capture=y);bq.value=X;return}}this.addEventListener(q.type,L7,y);bq={type:q.type,name:q.name,value:X,listener:L7,capture:y};Mr?Mr.push(bq):this.__on=[bq]}}
function oP(q,X,y){var D4=q.ownerDocument&&q.ownerDocument.defaultView||q.document&&q||q.defaultView,Mr=D4.CustomEvent;typeof Mr==="function"?Mr=new Mr(X,y):(Mr=D4.document.createEvent("Event"),y?(Mr.initEvent(X,y.bubbles,y.cancelable),Mr.detail=y.detail):Mr.initEvent(X,!1,!1));q.dispatchEvent(Mr)}
function rJ(q,X){return function(){return oP(this,q,X)}}
function o4(q,X){return function(){return oP(this,q,X.apply(this,arguments))}}
function Hm(q,X){this._groups=q;this._parents=X}
function gr(){return new Hm([[document.documentElement]],W4$)}
function Jb(){this._="@"+(++t8X).toString(36)}
function kp(q,X,y){q.prototype=X.prototype=y;y.constructor=q}
function E2(q,X){q=Object.create(q.prototype);for(var y in X)q[y]=X[y];return q}
function hw(){}
function NI(q){var X;q=(q+"").trim().toLowerCase();return(X=rlC.exec(q))?(X=parseInt(X[1],16),new kC(X>>8&15|X>>4&240,X>>4&15|X&240,(X&15)<<4|X&15,1)):(X=uiK.exec(q))?nf(parseInt(X[1],16)):(X=D8C.exec(q))?new kC(X[1],X[2],X[3],1):(X=vG$.exec(q))?new kC(X[1]*255/100,X[2]*255/100,X[3]*255/100,1):(X=h$m.exec(q))?W1(X[1],X[2],X[3],X[4]):(X=aE2.exec(q))?W1(X[1]*255/100,X[2]*255/100,X[3]*255/100,X[4]):(X=$8S.exec(q))?UM(X[1],X[2]/100,X[3]/100,1):(X=QA$.exec(q))?UM(X[1],X[2]/100,X[3]/100,X[4]):jl4.hasOwnProperty(q)?
nf(jl4[q]):q==="transparent"?new kC(NaN,NaN,NaN,0):null}
function nf(q){return new kC(q>>16&255,q>>8&255,q&255,1)}
function W1(q,X,y,D4){D4<=0&&(q=X=y=NaN);return new kC(q,X,y,D4)}
function PW(q){q instanceof hw||(q=NI(q));if(!q)return new kC;q=q.rgb();return new kC(q.r,q.g,q.b,q.opacity)}
function Wm(q,X,y,D4){return arguments.length===1?PW(q):new kC(q,X,y,D4==null?1:D4)}
function kC(q,X,y,D4){this.r=+q;this.g=+X;this.b=+y;this.opacity=+D4}
function aU(q){q=Math.max(0,Math.min(255,Math.round(q)||0));return(q<16?"0":"")+q.toString(16)}
function UM(q,X,y,D4){D4<=0?q=X=y=NaN:y<=0||y>=1?q=X=NaN:X<=0&&(q=NaN);return new u9(q,X,y,D4)}
function hN(q){if(q instanceof u9)return new u9(q.h,q.s,q.l,q.opacity);q instanceof hw||(q=NI(q));if(!q)return new u9;if(q instanceof u9)return q;q=q.rgb();var X=q.r/255,y=q.g/255,D4=q.b/255,Mr=Math.min(X,y,D4),L7=Math.max(X,y,D4),p7=NaN,bq=L7-Mr,a4=(L7+Mr)/2;bq?(p7=X===L7?(y-D4)/bq+(y<D4)*6:y===L7?(D4-X)/bq+2:(X-y)/bq+4,bq/=a4<.5?L7+Mr:2-L7-Mr,p7*=60):bq=a4>0&&a4<1?0:p7;return new u9(p7,bq,a4,q.opacity)}
function gW(q,X,y,D4){return arguments.length===1?hN(q):new u9(q,X,y,D4==null?1:D4)}
function u9(q,X,y,D4){this.h=+q;this.s=+X;this.l=+y;this.opacity=+D4}
function OX(q,X,y){return(q<60?X+(y-X)*q/60:q<180?y:q<240?X+(y-X)*(240-q)/60:X)*255}
function $E(q){if(q instanceof YL)return new YL(q.l,q.a,q.b,q.opacity);if(q instanceof gJ){if(isNaN(q.h))return new YL(q.l,0,0,q.opacity);var X=q.h*slp;return new YL(q.l,Math.cos(X)*q.c,Math.sin(X)*q.c,q.opacity)}q instanceof kC||(q=PW(q));var y=U2(q.r),D4=U2(q.g),Mr=U2(q.b);X=HA(.2225045*y+.7168786*D4+.0606169*Mr);if(y===D4&&D4===Mr)var L7=y=X;else L7=HA((.4360747*y+.3850649*D4+.1430804*Mr)/.96422),y=HA((.0139322*y+.0971045*D4+.7141733*Mr)/.82521);return new YL(116*X-16,500*(L7-X),200*(X-y),q.opacity)}
function YL(q,X,y,D4){this.l=+q;this.a=+X;this.b=+y;this.opacity=+D4}
function HA(q){return q>GFU?Math.pow(q,1/3):q/myM+HhF}
function Tu(q){return q>El?q*q*q:myM*(q-HhF)}
function L4(q){return 255*(q<=.0031308?12.92*q:1.055*Math.pow(q,1/2.4)-.055)}
function U2(q){return(q/=255)<=.04045?q/12.92:Math.pow((q+.055)/1.055,2.4)}
function A3(q){if(q instanceof gJ)return new gJ(q.h,q.c,q.l,q.opacity);q instanceof YL||(q=$E(q));if(q.a===0&&q.b===0)return new gJ(NaN,0,q.l,q.opacity);var X=Math.atan2(q.b,q.a)*yUy;return new gJ(X<0?X+360:X,Math.sqrt(q.a*q.a+q.b*q.b),q.l,q.opacity)}
function YC(q,X,y,D4){return arguments.length===1?A3(q):new gJ(q,X,y,D4==null?1:D4)}
function gJ(q,X,y,D4){this.h=+q;this.c=+X;this.l=+y;this.opacity=+D4}
function EF(q,X,y,D4){if(arguments.length===1){var Mr=q;if(Mr instanceof s2)Mr=new s2(Mr.h,Mr.s,Mr.l,Mr.opacity);else{Mr instanceof kC||(Mr=PW(Mr));var L7=Mr.g/255,p7=Mr.b/255,bq=(wCb*p7+Mr.r/255*-1.7884503806-3.5172982438*L7)/(wCb+-1.7884503806-3.5172982438);p7-=bq;var a4=(1.97294*(L7-bq)- -.29227*p7)/-.90649;p7=(L7=Math.sqrt(a4*a4+p7*p7)/(1.97294*bq*(1-bq)))?Math.atan2(a4,p7)*yUy-120:NaN;Mr=new s2(p7<0?p7+360:p7,L7,bq,Mr.opacity)}}else Mr=new s2(q,X,y,D4==null?1:D4);return Mr}
function s2(q,X,y,D4){this.h=+q;this.s=+X;this.l=+y;this.opacity=+D4}
function g0(q,X,y,D4,Mr){var L7=q*q,p7=L7*q;return((1-3*q+3*L7-p7)*X+(4-6*L7+3*p7)*y+(1+3*q+3*L7-3*p7)*D4+p7*Mr)/6}
function zy(q){return function(){return q}}
function BW(q,X){return function(y){return q+y*X}}
function Hv(q,X,y){return q=Math.pow(q,y),X=Math.pow(X,y)-q,y=1/y,function(D4){return Math.pow(q+D4*X,y)}}
function w0(q,X){var y=X-q;return y?BW(q,y>180||y<-180?y-360*Math.round(y/360):y):zy(isNaN(q)?X:q)}
function OY(q){return(q=+q)===1?tX:function(X,y){return y-X?Hv(X,y,q):zy(isNaN(X)?y:X)}}
function tX(q,X){var y=X-q;return y?BW(q,y):zy(isNaN(q)?X:q)}
function Vy(q){return function(X){var y=X.length,D4=Array(y),Mr=Array(y),L7=Array(y),p7;for(p7=0;p7<y;++p7){var bq=Wm(X[p7]);D4[p7]=bq.r||0;Mr[p7]=bq.g||0;L7[p7]=bq.b||0}D4=q(D4);Mr=q(Mr);L7=q(L7);bq.opacity=1;return function(a4){bq.r=D4(a4);bq.g=Mr(a4);bq.b=L7(a4);return bq+""}}}
function wD(q,X){return q=+q,X-=q,function(y){return q+X*y}}
function PR(q){return function(){return q}}
function SV(q){return function(X){return q(X)+""}}
function tc(q,X){var y=gki.lastIndex=kAc.lastIndex=0,D4,Mr,L7,p7=-1,bq=[],a4=[];q+="";for(X+="";(D4=gki.exec(q))&&(Mr=kAc.exec(X));)(L7=Mr.index)>y&&(L7=X.slice(y,L7),bq[p7]?bq[p7]+=L7:bq[++p7]=L7),(D4=D4[0])===(Mr=Mr[0])?bq[p7]?bq[p7]+=Mr:bq[++p7]=Mr:(bq[++p7]=null,a4.push({i:p7,x:wD(D4,Mr)})),y=kAc.lastIndex;y<X.length&&(L7=X.slice(y),bq[p7]?bq[p7]+=L7:bq[++p7]=L7);return bq.length<2?a4[0]?SV(a4[0].x):PR(X):(X=a4.length,function(uq){for(var $p=0,F9;$p<X;++$p)bq[(F9=a4[$p]).i]=F9.x(uq);return bq.join("")})}
function S$(q,X,y,D4,Mr,L7){var p7,bq,a4;if(p7=Math.sqrt(q*q+X*X))q/=p7,X/=p7;if(a4=q*y+X*D4)y-=q*a4,D4-=X*a4;if(bq=Math.sqrt(y*y+D4*D4))y/=bq,D4/=bq,a4/=bq;q*D4<X*y&&(q=-q,X=-X,a4=-a4,p7=-p7);return{translateX:Mr,translateY:L7,rotate:Math.atan2(X,q)*eFt,skewX:Math.atan(a4)*eFt,scaleX:p7,scaleY:bq}}
function j$(q,X,y,D4){function Mr(uq){return uq.length?uq.pop()+" ":""}
function L7(uq,$p,F9,tb,cs,J3){uq!==F9||$p!==tb?(cs=cs.push("translate(",null,X,null,y),J3.push({i:cs-4,x:wD(uq,F9)},{i:cs-2,x:wD($p,tb)})):(F9||tb)&&cs.push("translate("+F9+X+tb+y)}
function p7(uq,$p,F9,tb){uq!==$p?(uq-$p>180?$p+=360:$p-uq>180&&(uq+=360),tb.push({i:F9.push(Mr(F9)+"rotate(",null,D4)-2,x:wD(uq,$p)})):$p&&F9.push(Mr(F9)+"rotate("+$p+D4)}
function bq(uq,$p,F9,tb){uq!==$p?tb.push({i:F9.push(Mr(F9)+"skewX(",null,D4)-2,x:wD(uq,$p)}):$p&&F9.push(Mr(F9)+"skewX("+$p+D4)}
function a4(uq,$p,F9,tb,cs,J3){uq!==F9||$p!==tb?(cs=cs.push(Mr(cs)+"scale(",null,",",null,")"),J3.push({i:cs-4,x:wD(uq,F9)},{i:cs-2,x:wD($p,tb)})):F9===1&&tb===1||cs.push(Mr(cs)+"scale("+F9+","+tb+")")}
return function(uq,$p){var F9=[],tb=[];uq=q(uq);$p=q($p);L7(uq.translateX,uq.translateY,$p.translateX,$p.translateY,F9,tb);p7(uq.rotate,$p.rotate,F9,tb);bq(uq.skewX,$p.skewX,F9,tb);a4(uq.scaleX,uq.scaleY,$p.scaleX,$p.scaleY,F9,tb);uq=$p=null;return function(cs){for(var J3=-1,Te=tb.length,lz;++J3<Te;)F9[(lz=tb[J3]).i]=lz.x(cs);return F9.join("")}}}
function xC(q){return function(X,y){var D4=q((X=gW(X)).h,(y=gW(y)).h),Mr=tX(X.s,y.s),L7=tX(X.l,y.l),p7=tX(X.opacity,y.opacity);return function(bq){X.h=D4(bq);X.s=Mr(bq);X.l=L7(bq);X.opacity=p7(bq);return X+""}}}
function Fx(q){return function(X,y){var D4=q((X=YC(X)).h,(y=YC(y)).h),Mr=tX(X.c,y.c),L7=tX(X.l,y.l),p7=tX(X.opacity,y.opacity);return function(bq){X.h=D4(bq);X.c=Mr(bq);X.l=L7(bq);X.opacity=p7(bq);return X+""}}}
function WW(q){return function D4(y){function Mr(L7,p7){var bq=q((L7=EF(L7)).h,(p7=EF(p7)).h),a4=tX(L7.s,p7.s),uq=tX(L7.l,p7.l),$p=tX(L7.opacity,p7.opacity);return function(F9){L7.h=bq(F9);L7.s=a4(F9);L7.l=uq(Math.pow(F9,y));L7.opacity=$p(F9);return L7+""}}
y=+y;Mr.gamma=D4;return Mr}(1)}
function n0(){return DR||(nm9(uP),DR=yA.now()+tOA)}
function uP(){DR=0}
function B4(){this._call=this._time=this._next=null}
function cY(q,X,y){var D4=new B4;D4.restart(q,X,y);return D4}
function Xs(){DR=(rOf=yA.now())+tOA;IF=wL=0;try{n0();++IF;for(var q=uHi,X;q;)(X=DR-q._time)>=0&&q._call.call(null,X),q=q._next;--IF}finally{IF=0;q=uHi;for(var y=Infinity;q;)if(q._call){y>q._time&&(y=q._time);var D4=q;q=q._next}else X=q._next,q._next=null,q=D4?D4._next=X:uHi=X;e7=D4;AI(y);DR=0}}
function xE8(){var q=yA.now(),X=q-rOf;X>1E3&&(tOA-=X,rOf=q)}
function AI(q){IF||(wL&&(wL=clearTimeout(wL)),q-DR>24?(q<Infinity&&(wL=setTimeout(Xs,q-yA.now()-tOA)),nw&&(nw=clearInterval(nw))):(nw||(rOf=yA.now(),nw=setInterval(xE8,1E3)),IF=1,nm9(Xs)))}
function OhJ(q,X,y){var D4=new B4;X=X==null?0:+X;D4.restart(function(Mr){D4.stop();q(Mr+X)},X,y);
return D4}
function S$f(q,X,y,D4,Mr,L7){var p7=q.__transition;if(!p7)q.__transition={};else if(y in p7)return;Vh$(q,y,{name:X,index:D4,group:Mr,on:Pld,tween:x8K,time:L7.time,delay:L7.delay,duration:L7.duration,ease:L7.ease,timer:null,state:0})}
function Jko(q,X){q=AF(q,X);if(q.state>0)throw Error("xe");return q}
function v_(q,X){q=AF(q,X);if(q.state>2)throw Error("ye");return q}
function AF(q,X){q=q.__transition;if(!q||!(q=q[X]))throw Error("ze");return q}
function Vh$(q,X,y){function D4(a4){var uq,$p;if(y.state!==1)return L7();for(tb in p7){var F9=p7[tb];if(F9.name===y.name){if(F9.state===3)return OhJ(D4);F9.state===4?(F9.state=6,F9.timer.stop(),F9.on.call("interrupt",q,q.__data__,F9.index,F9.group),delete p7[tb]):+tb<X&&(F9.state=6,F9.timer.stop(),delete p7[tb])}}OhJ(function(){y.state===3&&(y.state=4,y.timer.restart(Mr,y.delay,y.time),Mr(a4))});
y.state=2;y.on.call("start",q,q.__data__,y.index,y.group);if(y.state===2){y.state=3;bq=Array($p=y.tween.length);var tb=0;for(uq=-1;tb<$p;++tb)if(F9=y.tween[tb].value.call(q,q.__data__,y.index,y.group))bq[++uq]=F9;bq.length=uq+1}}
function Mr(a4){a4=a4<y.duration?y.ease.call(null,a4/y.duration):(y.timer.restart(L7),y.state=5,1);for(var uq=-1,$p=bq.length;++uq<$p;)bq[uq].call(null,a4);y.state===5&&(y.on.call("end",q,q.__data__,y.index,y.group),L7())}
function L7(){y.state=6;y.timer.stop();delete p7[X];for(var a4 in p7)return;delete q.__transition}
var p7=q.__transition,bq;p7[X]=y;y.timer=cY(function(a4){y.state=1;y.timer.restart(D4,y.delay,y.time);y.delay<=a4&&D4(a4-y.delay)},0,y.time)}
function MhU(q,X){var y,D4;return function(){var Mr=v_(this,q),L7=Mr.tween;if(L7!==y){D4=y=L7;L7=0;for(var p7=D4.length;L7<p7;++L7)if(D4[L7].name===X){D4=D4.slice();D4.splice(L7,1);break}}Mr.tween=D4}}
function fEm(q,X,y){var D4,Mr;if(typeof y!=="function")throw Error();return function(){var L7=v_(this,q),p7=L7.tween;if(p7!==D4){Mr=(D4=p7).slice();p7={name:X,value:y};for(var bq=0,a4=Mr.length;bq<a4;++bq)if(Mr[bq].name===X){Mr[bq]=p7;break}bq===a4&&Mr.push(p7)}L7.tween=Mr}}
function ptL(q,X,y){var D4=q._id;q.each(function(){var Mr=v_(this,D4);(Mr.value||(Mr.value={}))[X]=y.apply(this,arguments)});
return function(Mr){return AF(Mr,D4).value[X]}}
function KqJ(q,X){var y;return(typeof X==="number"?wD:X instanceof NI?Thb:(y=NI(X))?(X=y,Thb):tc)(q,X)}
function Clb(q){return function(){this.removeAttribute(q)}}
function oG2(q){return function(){this.removeAttributeNS(q.space,q.local)}}
function FjK(q,X,y){var D4,Mr;return function(){var L7=this.getAttribute(q);return L7===y?null:L7===D4?Mr:Mr=X(D4=L7,y)}}
function z$m(q,X,y){var D4,Mr;return function(){var L7=this.getAttributeNS(q.space,q.local);return L7===y?null:L7===D4?Mr:Mr=X(D4=L7,y)}}
function U8s(q,X,y){var D4,Mr,L7;return function(){var p7=y(this);if(p7==null)return void this.removeAttribute(q);var bq=this.getAttribute(q);return bq===p7?null:bq===D4&&p7===Mr?L7:L7=X(D4=bq,Mr=p7)}}
function Lj$(q,X,y){var D4,Mr,L7;return function(){var p7=y(this);if(p7==null)return void this.removeAttributeNS(q.space,q.local);var bq=this.getAttributeNS(q.space,q.local);return bq===p7?null:bq===D4&&p7===Mr?L7:L7=X(D4=bq,Mr=p7)}}
function ZHd(q,X){function y(){var D4=this,Mr=X.apply(D4,arguments);return Mr&&function(L7){D4.setAttributeNS(q.space,q.local,Mr(L7))}}
y._value=X;return y}
function EGU(q,X){function y(){var D4=this,Mr=X.apply(D4,arguments);return Mr&&function(L7){D4.setAttribute(q,Mr(L7))}}
y._value=X;return y}
function IEZ(q,X){return function(){Jko(this,q).delay=+X.apply(this,arguments)}}
function gGr(q,X){return X=+X,function(){Jko(this,q).delay=X}}
function kF2(q,X){return function(){v_(this,q).duration=+X.apply(this,arguments)}}
function Seb(q,X){return X=+X,function(){v_(this,q).duration=X}}
function Jp$(q,X){if(typeof X!=="function")throw Error();return function(){v_(this,q).ease=X}}
function pis(q){return(q+"").trim().split(/^|\s+/).every(function(X){var y=X.indexOf(".");y>=0&&(X=X.slice(0,y));return!X||X==="start"})}
function lEd(q,X,y){var D4,Mr,L7=pis(X)?Jko:v_;return function(){var p7=L7(this,q),bq=p7.on;if(bq!==D4)(Mr=(D4=bq).copy()).on(X,y);p7.on=Mr}}
function NeC(q){return function(){var X=this.parentNode,y;for(y in this.__transition)if(+y!==q)return;X&&X.removeChild(this)}}
function Yer(q,X){var y,D4,Mr;return function(){var L7=Z4(this,q),p7=(this.style.removeProperty(q),Z4(this,q));return L7===p7?null:L7===y&&p7===D4?Mr:Mr=X(y=L7,D4=p7)}}
function Bem(q){return function(){this.style.removeProperty(q)}}
function cp3(q,X,y){var D4,Mr;return function(){var L7=Z4(this,q);return L7===y?null:L7===D4?Mr:Mr=X(D4=L7,y)}}
function Xir(q,X,y){var D4,Mr,L7;return function(){var p7=Z4(this,q),bq=y(this);bq==null&&(bq=(this.style.removeProperty(q),Z4(this,q)));return p7===bq?null:p7===D4&&bq===Mr?L7:L7=X(D4=p7,Mr=bq)}}
function ApK(q,X,y){function D4(){var Mr=this,L7=X.apply(Mr,arguments);return L7&&function(p7){Mr.style.setProperty(q,L7(p7),y)}}
D4._value=X;return D4}
function qeI(q){return function(){this.textContent=q}}
function bHr(q){return function(){var X=q(this);this.textContent=X==null?"":X}}
function ut(q,X,y,D4){this._groups=q;this._parents=X;this._name=y;this._id=D4}
function lzu(q){return{type:q}}
function Nj7(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function DH7(){}
function RFM(q,X){var y=new DH7;if(q instanceof DH7)q.each(function(p7,bq){y.set(bq,p7)});
else if(Array.isArray(q)){var D4=-1,Mr=q.length,L7;if(X==null)for(;++D4<Mr;)y.set(D4,q[D4]);else for(;++D4<Mr;)y.set(X(L7=q[D4],D4,q),L7)}else if(q)for(D4 in q)y.set(D4,q[D4]);return y}
function vzq(){}
function ih4(q){return function(X){for(var y={},D4=0;D4<q.length;D4++)y[q[D4]]=X[D4]||"";return y}}
function d8r(q,X){var y=ih4(q);return function(D4,Mr){return X(y(D4),Mr,q)}}
function jAm(q){var X=Object.create(null),y=[];q.forEach(function(D4){for(var Mr in D4)Mr in X||y.push(X[Mr]=Mr)});
return y}
function Wqs(q){function X(p7,bq){function a4(){if(J3)return Y$o;if(Te)return Te=!1,tkJ;var hH,Ru=F9,Fh;if(p7.charCodeAt(Ru)===34){for(;F9++<$p&&p7.charCodeAt(F9)!==34||p7.charCodeAt(++F9)===34;);(hH=F9)>=$p?J3=!0:(Fh=p7.charCodeAt(F9++))===10?Te=!0:Fh===13&&(Te=!0,p7.charCodeAt(F9)===10&&++F9);return p7.slice(Ru+1,hH-1).replace(/""/g,'"')}for(;F9<$p;){if((Fh=p7.charCodeAt(hH=F9++))===10)Te=!0;else if(Fh===13)Te=!0,p7.charCodeAt(F9)===10&&++F9;else if(Fh!==L7)continue;return p7.slice(Ru,hH)}return J3=
!0,p7.slice(Ru,$p)}
var uq=[],$p=p7.length,F9=0,tb=0,cs,J3=$p<=0,Te=!1;p7.charCodeAt($p-1)===10&&--$p;for(p7.charCodeAt($p-1)===13&&--$p;(cs=a4())!==Y$o;){for(var lz=[];cs!==tkJ&&cs!==Y$o;)lz.push(cs),cs=a4();bq&&(lz=bq(lz,tb++))==null||uq.push(lz)}return uq}
function y(p7){return p7.map(D4).join(q)}
function D4(p7){return p7==null?"":Mr.test(p7)?'"'+p7.replace(/"/g,'""')+'"':p7}
var Mr=new RegExp('["'+q+"\n\r]"),L7=q.charCodeAt(0);return{parse:function(p7,bq){var a4,uq;p7=X(p7,function($p,F9){if(a4)return a4($p,F9-1);uq=$p;a4=bq?d8r($p,bq):ih4($p)});
p7.columns=uq||[];return p7},
parseRows:X,format:function(p7,bq){bq==null&&(bq=jAm(p7));return[bq.map(D4).join(q)].concat(p7.map(function(a4){return bq.map(function(uq){return D4(a4[uq])}).join(q)})).join("\n")},
formatRows:function(p7){return p7.map(y).join("\n")}}}
function sAb(q){if(!q.ok)throw Error("Ae`"+q.status+"`"+q.statusText);return q.text()}
function rUs(q){return function(X,y,D4){arguments.length===2&&typeof y==="function"&&(D4=y,y=void 0);return fetch(X,y).then(sAb).then(function(Mr){return q(Mr,D4)})}}
function uQ9(q,X,y,D4){if(isNaN(X)||isNaN(y))return q;var Mr,L7=q._root;D4={data:D4};var p7=q._x0,bq=q._y0,a4=q._x1,uq=q._y1,$p,F9,tb,cs,J3;if(!L7)return q._root=D4,q;for(;L7.length;)if((tb=X>=($p=(p7+a4)/2))?p7=$p:a4=$p,(cs=y>=(F9=(bq+uq)/2))?bq=F9:uq=F9,Mr=L7,!(L7=L7[J3=cs<<1|tb]))return Mr[J3]=D4,q;var Te=+q._x.call(null,L7.data);var lz=+q._y.call(null,L7.data);if(X===Te&&y===lz)return D4.next=L7,Mr?Mr[J3]=D4:q._root=D4,q;do Mr=Mr?Mr[J3]=Array(4):q._root=Array(4),(tb=X>=($p=(p7+a4)/2))?p7=$p:a4=
$p,(cs=y>=(F9=(bq+uq)/2))?bq=F9:uq=F9;while((J3=cs<<1|tb)===(tb=(lz>=F9)<<1|Te>=$p));return Mr[tb]=L7,Mr[J3]=D4,q}
function wx(q,X,y,D4,Mr){this.node=q;this.x0=X;this.y0=y;this.x1=D4;this.y1=Mr}
function m83(q){return q[0]}
function HHd(q){return q[1]}
function Bj2(q,X,y,D4,Mr,L7){this._x=q;this._y=X;this._x0=y;this._y0=D4;this._x1=Mr;this._y1=L7;this._root=void 0}
function Dvb(q){for(var X={data:q.data},y=X;q=q.next;)y=y.next={data:q.data};return X}
function hd4(q,X){if((X=(q=X?q.toExponential(X-1):q.toExponential()).indexOf("e"))<0)return null;var y=q.slice(0,X);return[y.length>1?y[0]+y.slice(2):y,+q.slice(X+1)]}
function ypd(q){return q=hd4(Math.abs(q)),q?q[1]:NaN}
function wiC(q,X){return function(y,D4){for(var Mr=y.length,L7=[],p7=0,bq=q[0],a4=0;Mr>0&&bq>0;){a4+bq+1>D4&&(bq=Math.max(1,D4-a4));L7.push(y.substring(Mr-=bq,Mr+bq));if((a4+=bq+1)>D4)break;bq=q[p7=(p7+1)%q.length]}return L7.reverse().join(X)}}
function e$S(q){return function(X){return X.replace(/[0-9]/g,function(y){return q[+y]})}}
function ckO(q){return new Xt2(q)}
function Xt2(q){if(!(X=nGm.exec(q)))throw Error("Be`"+q);var X;this.fill=X[1]||" ";this.align=X[2]||">";this.sign=X[3]||"-";this.symbol=X[4]||"";this.zero=!!X[5];this.width=X[6]&&+X[6];this.comma=!!X[7];this.precision=X[8]&&+X[8].slice(1);this.trim=!!X[9];this.type=X[10]||""}
function vkF(q,X){X=hd4(q,X);if(!X)return q+"";q=X[0];X=X[1];return X<0?"0."+Array(-X).join("0")+q:q.length>X+1?q.slice(0,X+1)+"."+q.slice(X+1):q+Array(X-q.length+2).join("0")}
function h7p(q){return q}
function OH2(q){function X(bq){function a4(t3){var FB=Fh,Td=rp,SR,fz;if(Ru==="c")Td=iW(t3)+Td,t3="";else{t3=+t3;var bS=t3<0;t3=iW(Math.abs(t3),lz);if(hH){var Rt=t3.length,yX=1,aM=-1;a:for(;yX<Rt;++yX)switch(t3[yX]){case ".":aM=SR=yX;break;case "0":aM===0&&(aM=yX);SR=yX;break;default:if(!+t3[yX])break a;aM>0&&(aM=0)}t3=aM>0?t3.slice(0,aM)+t3.slice(SR+1):t3}bS&&+t3===0&&(bS=!1);FB=(bS?F9==="("?F9:"-":F9==="-"||F9==="("?"":F9)+FB;Td=(Ru==="s"?az4[8+$vJ/3]:"")+Td+(bS&&F9==="("?")":"");if(kq)for(bS=-1,
SR=t3.length;++bS<SR;)if(fz=t3.charCodeAt(bS),48>fz||fz>57){Td=(fz===46?Mr+t3.slice(bS+1):t3.slice(bS))+Td;t3=t3.slice(0,bS);break}}Te&&!cs&&(t3=y(t3,Infinity));fz=FB.length+t3.length+Td.length;bS=fz<J3?Array(J3-fz+1).join(uq):"";Te&&cs&&(t3=y(bS+t3,bS.length?J3-Td.length:Infinity),bS="");switch($p){case "<":t3=FB+t3+Td+bS;break;case "=":t3=FB+bS+t3+Td;break;case "^":t3=bS.slice(0,fz=bS.length>>1)+FB+t3+Td+bS.slice(fz);break;default:t3=bS+FB+t3+Td}return L7(t3)}
bq=ckO(bq);var uq=bq.fill,$p=bq.align,F9=bq.sign,tb=bq.symbol,cs=bq.zero,J3=bq.width,Te=bq.comma,lz=bq.precision,hH=bq.trim,Ru=bq.type;Ru==="n"?(Te=!0,Ru="g"):QYM[Ru]||(lz==null&&(lz=12),hH=!0,Ru="g");if(cs||uq==="0"&&$p==="=")cs=!0,uq="0",$p="=";var Fh=tb==="$"?D4[0]:tb==="#"&&/[boxX]/.test(Ru)?"0"+Ru.toLowerCase():"",rp=tb==="$"?D4[1]:/[%p]/.test(Ru)?p7:"",iW=QYM[Ru],kq=/[defgprs%]/.test(Ru);lz=lz==null?6:/[gprs]/.test(Ru)?Math.max(1,Math.min(21,lz)):Math.max(0,Math.min(20,lz));a4.toString=function(){return bq+
""};
return a4}
var y=q.grouping&&q.thousands?wiC(q.grouping,q.thousands):h7p,D4=q.currency,Mr=q.decimal,L7=q.numerals?e$S(q.numerals):h7p,p7=q.percent||"%";return{format:X,formatPrefix:function(bq,a4){var uq=X((bq=ckO(bq),bq.type="f",bq));bq=Math.max(-8,Math.min(8,Math.floor(ypd(a4)/3)))*3;var $p=Math.pow(10,-bq),F9=az4[8+bq/3];return function(tb){return uq($p*tb)+F9}}}}
function NA(){this.reset()}
function GAR(q,X,y){var D4=q.s=X+y,Mr=D4-X;q.t=X-(D4-Mr)+(y-Mr)}
function ao2(q){return q>1?e6:q<-1?-e6:Math.asin(q)}
function KjI(){}
function Vd4(q){var X=q[0];q=q[1];var y=nK(q);return[y*nK(X),y*lu(X),lu(q)]}
function PtR(q,X){return[q[1]*X[2]-q[2]*X[1],q[2]*X[0]-q[0]*X[2],q[0]*X[1]-q[1]*X[0]]}
function xvt(q){var X=$H7(q[0]*q[0]+q[1]*q[1]+q[2]*q[2]);q[0]/=X;q[1]/=X;q[2]/=X}
function Ted(){var q=[],X;return{point:function(y,D4){X.push([y,D4])},
lineStart:function(){q.push(X=[])},
lineEnd:KjI,rejoin:function(){q.length>1&&q.push(q.pop().concat(q.shift()))},
result:function(){var y=q;q=[];X=null;return y}}}
function Qer(q,X,y,D4){this.x=q;this.z=X;this.o=y;this.e=D4;this.v=!1;this.n=this.p=null}
function R$U(q,X,y,D4,Mr){var L7=[],p7=[];q.forEach(function(F9){if(!((tb=F9.length-1)<=0)){var tb,cs=F9[0],J3=F9[tb],Te=cs;if(Dw(Te[0]-J3[0])<1E-6&&Dw(Te[1]-J3[1])<1E-6){Mr.lineStart();for(bq=0;bq<tb;++bq)Mr.point((cs=F9[bq])[0],cs[1]);Mr.lineEnd()}else L7.push(tb=new Qer(cs,F9,null,!0)),p7.push(tb.o=new Qer(cs,null,tb,!1)),L7.push(tb=new Qer(J3,F9,null,!1)),p7.push(tb.o=new Qer(J3,null,tb,!0))}});
if(L7.length){p7.sort(X);Md$(L7);Md$(p7);var bq=0;for(q=p7.length;bq<q;++bq)p7[bq].e=y=!y;y=L7[0];for(var a4;;){for(var uq=y,$p=!0;uq.v;)if((uq=uq.n)===y)return;X=uq.z;Mr.lineStart();do{uq.v=uq.o.v=!0;if(uq.e){if($p)for(bq=0,q=X.length;bq<q;++bq)Mr.point((a4=X[bq])[0],a4[1]);else D4(uq.x,uq.n.x,1,Mr);uq=uq.n}else{if($p)for(X=uq.p.z,bq=X.length-1;bq>=0;--bq)Mr.point((a4=X[bq])[0],a4[1]);else D4(uq.x,uq.p.x,-1,Mr);uq=uq.p}uq=uq.o;X=uq.z;$p=!$p}while(!uq.v);Mr.lineEnd()}}}
function Md$(q){if(X=q.length){for(var X,y=0,D4=q[0],Mr;++y<X;)D4.n=Mr=q[y],Mr.p=D4,D4=Mr;D4.n=Mr=q[0];Mr.p=D4}}
function iHr(q){return q.length>1}
function Wjs(q,X){return((q=q.x)[0]<0?q[1]-e6-1E-6:e6-q[1])-((X=X.x)[0]<0?X[1]-e6-1E-6:e6-X[1])}
function Aki(){}
function fz4(q){return function(X,y){var D4=nK(X),Mr=nK(y);D4=q(D4*Mr);return[D4*Mr*lu(X),D4*lu(y)]}}
function O7(q){return function(X,y){var D4=$H7(X*X+y*y),Mr=q(D4),L7=lu(Mr);Mr=nK(Mr);return[Ct$(X*L7,D4*Mr),ao2(D4&&y*L7/D4)]}}
function thZ(q){var X=0,y=q.children,D4=y&&y.length;if(D4)for(;--D4>=0;)X+=y[D4].value;else X=1;q.value=X}
function okp(q,X){var y=new Kw(q);q=+q.value&&(y.value=q.value);var D4,Mr=[y],L7,p7,bq,a4;for(X==null&&(X=rp3);D4=Mr.pop();)if(q&&(D4.value=+D4.data.value),(p7=X(D4.data))&&(a4=p7.length))for(D4.children=Array(a4),bq=a4-1;bq>=0;--bq)Mr.push(L7=D4.children[bq]=new Kw(p7[bq])),L7.parent=D4,L7.depth=D4.depth+1;return y.eachBefore(uq3)}
function rp3(q){return q.children}
function Dyr(q){q.data=q.data.data}
function uq3(q){var X=0;do q.height=X;while((q=q.parent)&&q.height<++X)}
function Kw(q){this.data=q;this.depth=this.height=0;this.parent=null}
function oN(q,X,y,D4){function Mr(L7){return q(L7=new Date(+L7)),L7}
Mr.floor=Mr;Mr.ceil=function(L7){return q(L7=new Date(L7-1)),X(L7,1),q(L7),L7};
Mr.round=function(L7){var p7=Mr(L7),bq=Mr.ceil(L7);return L7-p7<bq-L7?p7:bq};
Mr.offset=function(L7,p7){return X(L7=new Date(+L7),p7==null?1:Math.floor(p7)),L7};
Mr.range=function(L7,p7,bq){var a4=[],uq;L7=Mr.ceil(L7);bq=bq==null?1:Math.floor(bq);if(!(L7<p7&&bq>0))return a4;do a4.push(uq=new Date(+L7)),X(L7,bq),q(L7);while(uq<L7&&L7<p7);return a4};
Mr.filter=function(L7){return oN(function(p7){if(p7>=p7)for(;q(p7),!L7(p7);)p7.setTime(p7-1)},function(p7,bq){if(p7>=p7)if(bq<0)for(;++bq<=0;)for(;X(p7,-1),!L7(p7););
else for(;--bq>=0;)for(;X(p7,1),!L7(p7););})};
y&&(Mr.count=function(L7,p7){q$L.setTime(+L7);bec.setTime(+p7);q(q$L);q(bec);return Math.floor(y(q$L,bec))},Mr.every=function(L7){L7=Math.floor(L7);
return isFinite(L7)&&L7>0?L7>1?Mr.filter(D4?function(p7){return D4(p7)%L7===0}:function(p7){return Mr.count(0,p7)%L7===0}):Mr:null});
return Mr}
function hf(q){return oN(function(X){X.setDate(X.getDate()-(X.getDay()+7-q)%7);X.setHours(0,0,0,0)},function(X,y){X.setDate(X.getDate()+y*7)},function(X,y){return(y-X-(y.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/6048E5})}
function ab(q){return oN(function(X){X.setUTCDate(X.getUTCDate()-(X.getUTCDay()+7-q)%7);X.setUTCHours(0,0,0,0)},function(X,y){X.setUTCDate(X.getUTCDate()+y*7)},function(X,y){return(y-X)/6048E5})}
function vmr(q){if(0<=q.y&&q.y<100){var X=new Date(-1,q.m,q.d,q.H,q.M,q.S,q.L);X.setFullYear(q.y);return X}return new Date(q.y,q.m,q.d,q.H,q.M,q.S,q.L)}
function GmO(q){if(0<=q.y&&q.y<100){var X=new Date(Date.UTC(-1,q.m,q.d,q.H,q.M,q.S,q.L));X.setUTCFullYear(q.y);return X}return new Date(Date.UTC(q.y,q.m,q.d,q.H,q.M,q.S,q.L))}
function Ts(q){return{y:q,m:0,d:1,H:0,M:0,S:0,L:0}}
function hFK(q){function X(Td,SR){return function(fz){var bS=[],Rt=-1,yX=0,aM=Td.length,Lx,GX;for(fz instanceof Date||(fz=new Date(+fz));++Rt<aM;)if(Td.charCodeAt(Rt)===37){bS.push(Td.slice(yX,Rt));(yX=FZJ[Lx=Td.charAt(++Rt)])!=null?Lx=Td.charAt(++Rt):yX=Lx==="e"?" ":"0";if(GX=SR[Lx])Lx=GX(fz,yX);bS.push(Lx);yX=Rt+1}bS.push(Td.slice(yX,Rt));return bS.join("")}}
function y(Td,SR){return function(fz){var bS=Ts(1900);if(D4(bS,Td,fz,0)!=fz.length)return null;if("Q"in bS)return new Date(bS.Q);"p"in bS&&(bS.H=bS.H%12+bS.p*12);if("V"in bS){if(bS.V<1||bS.V>53)return null;"w"in bS||(bS.w=1);if("Z"in bS){fz=GmO(Ts(bS.y));var Rt=fz.getUTCDay();fz=Rt>4||Rt===0?dvr.ceil(fz):dvr(fz);fz=z7t.offset(fz,(bS.V-1)*7);bS.y=fz.getUTCFullYear();bS.m=fz.getUTCMonth();bS.d=fz.getUTCDate()+(bS.w+6)%7}else fz=SR(Ts(bS.y)),Rt=fz.getDay(),fz=Rt>4||Rt===0?jY4.ceil(fz):jY4(fz),fz=Uvp.offset(fz,
(bS.V-1)*7),bS.y=fz.getFullYear(),bS.m=fz.getMonth(),bS.d=fz.getDate()+(bS.w+6)%7}else if("W"in bS||"U"in bS)"w"in bS||(bS.w="u"in bS?bS.u%7:"W"in bS?1:0),Rt="Z"in bS?GmO(Ts(bS.y)).getUTCDay():SR(Ts(bS.y)).getDay(),bS.m=0,bS.d="W"in bS?(bS.w+6)%7+bS.W*7-(Rt+5)%7:bS.w+bS.U*7-(Rt+6)%7;return"Z"in bS?(bS.H+=bS.Z/100|0,bS.M+=bS.Z%100,GmO(bS)):SR(bS)}}
function D4(Td,SR,fz,bS){for(var Rt=0,yX=SR.length,aM=fz.length,Lx;Rt<yX;){if(bS>=aM)return-1;Lx=SR.charCodeAt(Rt++);if(Lx===37){if(Lx=SR.charAt(Rt++),Lx=FB[Lx in FZJ?SR.charAt(Rt++):Lx],!Lx||(bS=Lx(Td,fz,bS))<0)return-1}else if(Lx!=fz.charCodeAt(bS++))return-1}return bS}
var Mr=q.dateTime,L7=q.date,p7=q.time,bq=q.periods,a4=q.days,uq=q.shortDays,$p=q.months,F9=q.shortMonths,tb=Rn(bq),cs=iQ(bq),J3=Rn(a4),Te=iQ(a4),lz=Rn(uq),hH=iQ(uq),Ru=Rn($p),Fh=iQ($p),rp=Rn(F9),iW=iQ(F9),kq={a:function(Td){return uq[Td.getDay()]},
A:function(Td){return a4[Td.getDay()]},
b:function(Td){return F9[Td.getMonth()]},
B:function(Td){return $p[Td.getMonth()]},
c:null,d:LZy,e:LZy,f:aLm,H:$ym,I:Ql2,j:G4m,L:ZeF,m:Vk2,M:PeZ,p:function(Td){return bq[+(Td.getHours()>=12)]},
Q:Ek4,s:Izy,S:xyU,u:MkZ,U:fLZ,V:Ce$,w:omZ,W:FqZ,x:null,X:null,y:zFr,Y:Uyd,Z:LqU,"%":gkM},t3={a:function(Td){return uq[Td.getUTCDay()]},
A:function(Td){return a4[Td.getUTCDay()]},
b:function(Td){return F9[Td.getUTCMonth()]},
B:function(Td){return $p[Td.getUTCMonth()]},
c:null,d:kAJ,e:kAJ,f:Zh3,H:EmS,I:ILI,j:gmC,L:S$9,m:k4C,M:SHI,p:function(Td){return bq[+(Td.getUTCHours()>=12)]},
Q:Ek4,s:Izy,S:JUZ,u:pCd,U:lLX,V:Nhb,w:YHI,W:BhX,x:null,X:null,y:cUd,Y:XCm,Z:AUC,"%":gkM},FB={a:function(Td,SR,fz){return(SR=lz.exec(SR.slice(fz)))?(Td.w=hH[SR[0].toLowerCase()],fz+SR[0].length):-1},
A:function(Td,SR,fz){return(SR=J3.exec(SR.slice(fz)))?(Td.w=Te[SR[0].toLowerCase()],fz+SR[0].length):-1},
b:function(Td,SR,fz){return(SR=rp.exec(SR.slice(fz)))?(Td.m=iW[SR[0].toLowerCase()],fz+SR[0].length):-1},
B:function(Td,SR,fz){return(SR=Ru.exec(SR.slice(fz)))?(Td.m=Fh[SR[0].toLowerCase()],fz+SR[0].length):-1},
c:function(Td,SR,fz){return D4(Td,Mr,SR,fz)},
d:Jk4,e:Jk4,f:qHb,H:ptp,I:ptp,j:bhb,L:dyI,m:jl3,M:slC,p:function(Td,SR,fz){return(SR=tb.exec(SR.slice(fz)))?(Td.p=cs[SR[0].toLowerCase()],fz+SR[0].length):-1},
Q:myZ,s:Hh2,S:yUd,u:wCr,U:eF$,V:nmX,w:Ohr,W:Kqr,x:function(Td,SR,fz){return D4(Td,L7,SR,fz)},
X:function(Td,SR,fz){return D4(Td,p7,SR,fz)},
y:Thr,Y:RFZ,Z:ihU,"%":WqS};kq.x=X(L7,kq);kq.X=X(p7,kq);kq.c=X(Mr,kq);t3.x=X(L7,t3);t3.X=X(p7,t3);t3.c=X(Mr,t3);return{format:function(Td){var SR=X(Td,kq);SR.toString=function(){return Td};
return SR},
parse:function(Td){var SR=y(Td,vmr);SR.toString=function(){return Td};
return SR},
utcFormat:function(Td){var SR=X(Td,t3);SR.toString=function(){return Td};
return SR},
utcParse:function(Td){var SR=y(Td,GmO);SR.toString=function(){return Td};
return SR}}}
function gM(q,X,y){var D4=q<0?"-":"";q=(D4?-q:q)+"";var Mr=q.length;return D4+(Mr<y?Array(y-Mr+1).join(X)+q:q)}
function tkb(q){return q.replace(rUS,"\\$&")}
function Rn(q){return new RegExp("^(?:"+q.map(tkb).join("|")+")","i")}
function iQ(q){for(var X={},y=-1,D4=q.length;++y<D4;)X[q[y].toLowerCase()]=y;return X}
function Ohr(q,X,y){return(X=za.exec(X.slice(y,y+1)))?(q.w=+X[0],y+X[0].length):-1}
function wCr(q,X,y){return(X=za.exec(X.slice(y,y+1)))?(q.u=+X[0],y+X[0].length):-1}
function eF$(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.U=+X[0],y+X[0].length):-1}
function nmX(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.V=+X[0],y+X[0].length):-1}
function Kqr(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.W=+X[0],y+X[0].length):-1}
function RFZ(q,X,y){return(X=za.exec(X.slice(y,y+4)))?(q.y=+X[0],y+X[0].length):-1}
function Thr(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.y=+X[0]+(+X[0]>68?1900:2E3),y+X[0].length):-1}
function ihU(q,X,y){return(X=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(X.slice(y,y+6)))?(q.Z=X[1]?0:-(X[2]+(X[3]||"00")),y+X[0].length):-1}
function jl3(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.m=X[0]-1,y+X[0].length):-1}
function Jk4(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.d=+X[0],y+X[0].length):-1}
function bhb(q,X,y){return(X=za.exec(X.slice(y,y+3)))?(q.m=0,q.d=+X[0],y+X[0].length):-1}
function ptp(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.H=+X[0],y+X[0].length):-1}
function slC(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.M=+X[0],y+X[0].length):-1}
function yUd(q,X,y){return(X=za.exec(X.slice(y,y+2)))?(q.S=+X[0],y+X[0].length):-1}
function dyI(q,X,y){return(X=za.exec(X.slice(y,y+3)))?(q.L=+X[0],y+X[0].length):-1}
function qHb(q,X,y){return(X=za.exec(X.slice(y,y+6)))?(q.L=Math.floor(X[0]/1E3),y+X[0].length):-1}
function WqS(q,X,y){return(q=uQX.exec(X.slice(y,y+1)))?y+q[0].length:-1}
function myZ(q,X,y){return(X=za.exec(X.slice(y)))?(q.Q=+X[0],y+X[0].length):-1}
function Hh2(q,X,y){return(X=za.exec(X.slice(y)))?(q.Q=+X[0]*1E3,y+X[0].length):-1}
function LZy(q,X){return gM(q.getDate(),X,2)}
function $ym(q,X){return gM(q.getHours(),X,2)}
function Ql2(q,X){return gM(q.getHours()%12||12,X,2)}
function G4m(q,X){return gM(1+Uvp.count(gC(q),q),X,3)}
function ZeF(q,X){return gM(q.getMilliseconds(),X,3)}
function aLm(q,X){return ZeF(q,X)+"000"}
function Vk2(q,X){return gM(q.getMonth()+1,X,2)}
function PeZ(q,X){return gM(q.getMinutes(),X,2)}
function xyU(q,X){return gM(q.getSeconds(),X,2)}
function MkZ(q){q=q.getDay();return q===0?7:q}
function fLZ(q,X){return gM(Dvr.count(gC(q),q),X,2)}
function Ce$(q,X){var y=q.getDay();q=y>=4||y===0?sY2(q):sY2.ceil(q);return gM(sY2.count(gC(q),q)+(gC(q).getDay()===4),X,2)}
function omZ(q){return q.getDay()}
function FqZ(q,X){return gM(jY4.count(gC(q),q),X,2)}
function zFr(q,X){return gM(q.getFullYear()%100,X,2)}
function Uyd(q,X){return gM(q.getFullYear()%1E4,X,4)}
function LqU(q){q=q.getTimezoneOffset();return(q>0?"-":(q*=-1,"+"))+gM(q/60|0,"0",2)+gM(q%60,"0",2)}
function kAJ(q,X){return gM(q.getUTCDate(),X,2)}
function EmS(q,X){return gM(q.getUTCHours(),X,2)}
function ILI(q,X){return gM(q.getUTCHours()%12||12,X,2)}
function gmC(q,X){return gM(1+z7t.count(kg(q),q),X,3)}
function S$9(q,X){return gM(q.getUTCMilliseconds(),X,3)}
function Zh3(q,X){return S$9(q,X)+"000"}
function k4C(q,X){return gM(q.getUTCMonth()+1,X,2)}
function SHI(q,X){return gM(q.getUTCMinutes(),X,2)}
function JUZ(q,X){return gM(q.getUTCSeconds(),X,2)}
function pCd(q){q=q.getUTCDay();return q===0?7:q}
function lLX(q,X){return gM(vk2.count(kg(q),q),X,2)}
function Nhb(q,X){var y=q.getUTCDay();q=y>=4||y===0?mvO(q):mvO.ceil(q);return gM(mvO.count(kg(q),q)+(kg(q).getUTCDay()===4),X,2)}
function YHI(q){return q.getUTCDay()}
function BhX(q,X){return gM(dvr.count(kg(q),q),X,2)}
function cUd(q,X){return gM(q.getUTCFullYear()%100,X,2)}
function XCm(q,X){return gM(q.getUTCFullYear()%1E4,X,4)}
function AUC(){return"+0000"}
function gkM(){return"%"}
function Ek4(q){return+q}
function Izy(q){return Math.floor(+q/1E3)}
function LT(q){for(var X=q.length/6|0,y=Array(X),D4=0;D4<X;)y[D4]="#"+q.slice(D4*6,++D4*6);return y}
function iy(q){return h7C(q[q.length-1])}
function VJr(q){var X=q.length;return function(y){return q[Math.max(0,Math.min(X-1,Math.floor(y*X)))]}}
function lzy(q){this._context=q}
function Nj4(q){this._curve=q}
function Y$4(q,X,y){var D4=q._x1-q._x0;X-=q._x1;var Mr=(q._y1-q._y0)/(D4||X<0&&-0);q=(y-q._y1)/(X||D4<0&&-0);return((Mr<0?-1:1)+(q<0?-1:1))*Math.min(Math.abs(Mr),Math.abs(q),.5*Math.abs((Mr*X+q*D4)/(D4+X)))||0}
function Bjt(q,X){var y=q._x1-q._x0;return y?(3*(q._y1-q._y0)/y-X)/2:X}
function He2(q,X,y){var D4=q._x0,Mr=q._x1,L7=q._y1,p7=(Mr-D4)/3;q._context.bezierCurveTo(D4+p7,q._y0+p7*X,Mr-p7,L7-p7*y,Mr,L7)}
function ykc(q){this._context=q}
function ck$(q){this._context=q}
function Wc(q,X,y){this.k=q;this.x=X;this.y=y}
(function(q){q.length===1&&(q=v(q));return{left:function(X,y,D4,Mr){D4==null&&(D4=0);Mr==null&&(Mr=X.length);for(;D4<Mr;){var L7=D4+Mr>>>1;q(X[L7],y)<0?D4=L7+1:Mr=L7}return D4},
right:function(X,y,D4,Mr){D4==null&&(D4=0);Mr==null&&(Mr=X.length);for(;D4<Mr;){var L7=D4+Mr>>>1;q(X[L7],y)>0?Mr=L7:D4=L7+1}return D4}}})(D);
var ir$={value:function(){}};
a.prototype=h.prototype={constructor:a,on:function(q,X){var y=this._,D4=Q(q+"",y),Mr,L7=-1,p7=D4.length;if(arguments.length<2)for(;++L7<p7;){var bq;if(bq=Mr=(q=D4[L7]).type){a:{bq=y[Mr];for(var a4=0,uq=bq.length;a4<uq;++a4)if((Mr=bq[a4]).name===q.name){Mr=Mr.value;break a}Mr=void 0}bq=Mr}if(bq)return Mr}else{if(X!=null&&typeof X!=="function")throw Error("Ce`"+X);for(;++L7<p7;)if(Mr=(q=D4[L7]).type)y[Mr]=G(y[Mr],q.name,X);else if(X==null)for(Mr in y)y[Mr]=G(y[Mr],q.name,null);return this}},
copy:function(){var q={},X=this._,y;for(y in X)q[y]=X[y].slice();return new a(q)},
call:function(q,X){if((Mr=arguments.length-2)>0)for(var y=Array(Mr),D4=0,Mr,L7;D4<Mr;++D4)y[D4]=arguments[D4+2];if(!this._.hasOwnProperty(q))throw Error("we`"+q);L7=this._[q];D4=0;for(Mr=L7.length;D4<Mr;++D4)L7[D4].value.apply(X,y)},
apply:function(q,X,y){if(!this._.hasOwnProperty(q))throw Error("we`"+q);q=this._[q];for(var D4=0,Mr=q.length;D4<Mr;++D4)q[D4].value.apply(X,y)}};
var wo={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/"},Xtt=function(q){return function(){return this.matches(q)}};
if(typeof document!=="undefined"){var tY=document.documentElement;if(!tY.matches){var azU=tY.webkitMatchesSelector||tY.msMatchesSelector||tY.mozMatchesSelector||tY.oMatchesSelector;Xtt=function(q){return function(){return azU.call(this,q)}}}}var AkM=Xtt;
I.prototype={constructor:I,appendChild:function(q){return this._parent.insertBefore(q,this._next)},
insertBefore:function(q,X){return this._parent.insertBefore(q,X)},
querySelector:function(q){return this._parent.querySelector(q)},
querySelectorAll:function(q){return this._parent.querySelectorAll(q)}};
var dy1={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(dy1={mouseenter:"mouseover",mouseleave:"mouseout"}));var W4$=[null];Hm.prototype=gr.prototype={constructor:Hm,select:function(q){typeof q!=="function"&&(q=Z(q));for(var X=this._groups,y=X.length,D4=Array(y),Mr=0;Mr<y;++Mr)for(var L7=X[Mr],p7=L7.length,bq=D4[Mr]=Array(p7),a4,uq,$p=0;$p<p7;++$p)(a4=L7[$p])&&(uq=q.call(a4,a4.__data__,$p,L7))&&("__data__"in a4&&(uq.__data__=a4.__data__),bq[$p]=uq);return new Hm(D4,
this._parents)},
filter:function(q){typeof q!=="function"&&(q=AkM(q));for(var X=this._groups,y=X.length,D4=Array(y),Mr=0;Mr<y;++Mr)for(var L7=X[Mr],p7=L7.length,bq=D4[Mr]=[],a4,uq=0;uq<p7;++uq)(a4=L7[uq])&&q.call(a4,a4.__data__,uq,L7)&&bq.push(a4);return new Hm(D4,this._parents)},
data:function(q,X){if(!q)return cs=Array(this.size()),uq=-1,this.each(function(Ru){cs[++uq]=Ru}),cs;
var y=X?A:B,D4=this._parents,Mr=this._groups;typeof q!=="function"&&(q=S(q));for(var L7=Mr.length,p7=Array(L7),bq=Array(L7),a4=Array(L7),uq=0;uq<L7;++uq){var $p=D4[uq],F9=Mr[uq],tb=F9.length,cs=q.call($p,$p&&$p.__data__,uq,D4),J3=cs.length,Te=bq[uq]=Array(J3),lz=p7[uq]=Array(J3);tb=a4[uq]=Array(tb);y($p,F9,Te,lz,tb,cs,X);F9=$p=0;for(var hH;$p<J3;++$p)if(tb=Te[$p]){for($p>=F9&&(F9=$p+1);!(hH=lz[F9])&&++F9<J3;);tb._next=hH||null}}p7=new Hm(p7,D4);p7._enter=bq;p7._exit=a4;return p7},
enter:function(){return new Hm(this._enter||this._groups.map(E),this._parents)},
exit:function(){return new Hm(this._exit||this._groups.map(E),this._parents)},
merge:function(q){var X=this._groups;q=q._groups;for(var y=X.length,D4=Math.min(y,q.length),Mr=Array(y),L7=0;L7<D4;++L7)for(var p7=X[L7],bq=q[L7],a4=p7.length,uq=Mr[L7]=Array(a4),$p,F9=0;F9<a4;++F9)if($p=p7[F9]||bq[F9])uq[F9]=$p;for(;L7<y;++L7)Mr[L7]=X[L7];return new Hm(Mr,this._parents)},
order:function(){for(var q=this._groups,X=-1,y=q.length;++X<y;)for(var D4=q[X],Mr=D4.length-1,L7=D4[Mr],p7;--Mr>=0;)if(p7=D4[Mr])L7&&L7!==p7.nextSibling&&L7.parentNode.insertBefore(p7,L7),L7=p7;return this},
sort:function(q){function X(F9,tb){return F9&&tb?q(F9.__data__,tb.__data__):!F9-!tb}
q||(q=d);for(var y=this._groups,D4=y.length,Mr=Array(D4),L7=0;L7<D4;++L7){for(var p7=y[L7],bq=p7.length,a4=Mr[L7]=Array(bq),uq,$p=0;$p<bq;++$p)if(uq=p7[$p])a4[$p]=uq;a4.sort(X)}return(new Hm(Mr,this._parents)).order()},
call:function(){var q=arguments[0];arguments[0]=this;q.apply(null,arguments);return this},
nodes:function(){var q=Array(this.size()),X=-1;this.each(function(){q[++X]=this});
return q},
node:function(){for(var q=this._groups,X=0,y=q.length;X<y;++X)for(var D4=q[X],Mr=0,L7=D4.length;Mr<L7;++Mr){var p7=D4[Mr];if(p7)return p7}return null},
size:function(){var q=0;this.each(function(){++q});
return q},
empty:function(){return!this.node()},
each:function(q){for(var X=this._groups,y=0,D4=X.length;y<D4;++y)for(var Mr=X[y],L7=0,p7=Mr.length,bq;L7<p7;++L7)(bq=Mr[L7])&&q.call(bq,bq.__data__,L7,Mr);return this},
attr:function(q,X){var y=x(q);if(arguments.length<2){var D4=this.node();return y.local?D4.getAttributeNS(y.space,y.local):D4.getAttribute(y)}return this.each((X==null?y.local?W:b:typeof X==="function"?y.local?vA:R:y.local?O:K)(y,X))},
style:function(q,X,y){return arguments.length>1?this.each((X==null?f7:typeof X==="function"?kL:xL)(q,X,y==null?"":y)):Z4(this.node(),q)},
property:function(q,X){return arguments.length>1?this.each((X==null?S2:typeof X==="function"?Xf:s8)(q,X)):this.node()[q]},
text:function(q){return arguments.length?this.each(q==null?dJ:(typeof q==="function"?sF:R4)(q)):this.node().textContent},
html:function(q){return arguments.length?this.each(q==null?rc:(typeof q==="function"?q1:I4)(q)):this.node().innerHTML},
append:function(q){var X=typeof q==="function"?q:U(q);return this.select(function(){return this.appendChild(X.apply(this,arguments))})},
insert:function(q,X){var y=typeof q==="function"?q:U(q),D4=X==null?jt:typeof X==="function"?X:Z(X);return this.select(function(){return this.insertBefore(y.apply(this,arguments),D4.apply(this,arguments)||null)})},
remove:function(){return this.each(rr)},
clone:function(q){return this.select(q?VO:Zb)},
datum:function(q){return arguments.length?this.property("__data__",q):this.node().__data__},
on:function(q,X,y){var D4=C3(q+""),Mr=D4.length,L7;if(arguments.length<2){var p7=this.node().__on;if(p7)for(var bq=0,a4=p7.length,uq;bq<a4;++bq){var $p=0;for(uq=p7[bq];$p<Mr;++$p)if((L7=D4[$p]).type===uq.type&&L7.name===uq.name)return uq.value}}else{p7=X?VK:ZJ;y==null&&(y=!1);for($p=0;$p<Mr;++$p)this.each(p7(D4[$p],X,y));return this}},
dispatch:function(q,X){return this.each((typeof X==="function"?o4:rJ)(q,X))}};
var t8X=0;Jb.prototype=function(){return new Jb}.prototype={constructor:Jb,
get:function(q){for(var X=this._;!(X in q);)if(!(q=q.parentNode))return;return q[X]},
set:function(q,X){return q[this._]=X},
remove:function(q){return this._ in q&&delete q[this._]},
toString:function(){return this._}};
var SG=1/.7,rlC=/^#([0-9a-f]{3})$/,uiK=/^#([0-9a-f]{6})$/,D8C=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),vG$=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),h$m=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),aE2=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*\\)$"),
$8S=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),QA$=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*\\)$"),jl4={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};
kp(hw,NI,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
kp(kC,Wm,E2(hw,{brighter:function(q){q=q==null?SG:Math.pow(SG,q);return new kC(this.r*q,this.g*q,this.b*q,this.opacity)},
darker:function(q){q=q==null?.7:Math.pow(.7,q);return new kC(this.r*q,this.g*q,this.b*q,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"#"+aU(this.r)+aU(this.g)+aU(this.b)},
toString:function(){var q=this.opacity;q=isNaN(q)?1:Math.max(0,Math.min(1,q));return(q===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))+(q===1?")":", "+q+")")}}));
kp(u9,gW,E2(hw,{brighter:function(q){q=q==null?SG:Math.pow(SG,q);return new u9(this.h,this.s,this.l*q,this.opacity)},
darker:function(q){q=q==null?.7:Math.pow(.7,q);return new u9(this.h,this.s,this.l*q,this.opacity)},
rgb:function(){var q=this.h%360+(this.h<0)*360,X=this.l,y=X+(X<.5?X:1-X)*(isNaN(q)||isNaN(this.s)?0:this.s);X=2*X-y;return new kC(OX(q>=240?q-240:q+120,X,y),OX(q,X,y),OX(q<120?q+240:q-120,X,y),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 slp=Math.PI/180,yUy=180/Math.PI,HhF=4/29,El=6/29,myM=3*El*El,GFU=El*El*El;kp(YL,function(q,X,y,D4){return arguments.length===1?$E(q):new YL(q,X,y,D4==null?1:D4)},E2(hw,{brighter:function(q){return new YL(this.l+18*(q==null?1:q),this.a,this.b,this.opacity)},
darker:function(q){return new YL(this.l-18*(q==null?1:q),this.a,this.b,this.opacity)},
rgb:function(){var q=(this.l+16)/116,X=isNaN(this.a)?q:q+this.a/500,y=isNaN(this.b)?q:q-this.b/200;X=.96422*Tu(X);q=1*Tu(q);y=.82521*Tu(y);return new kC(L4(3.1338561*X-1.6168667*q-.4906146*y),L4(-.9787684*X+1.9161415*q+.033454*y),L4(.0719453*X-.2289914*q+1.4052427*y),this.opacity)}}));
kp(gJ,YC,E2(hw,{brighter:function(q){return new gJ(this.h,this.c,this.l+18*(q==null?1:q),this.opacity)},
darker:function(q){return new gJ(this.h,this.c,this.l-18*(q==null?1:q),this.opacity)},
rgb:function(){return $E(this).rgb()}}));
var wCb=1.78277*-.29227-.1347134789;kp(s2,EF,E2(hw,{brighter:function(q){q=q==null?SG:Math.pow(SG,q);return new s2(this.h,this.s,this.l*q,this.opacity)},
darker:function(q){q=q==null?.7:Math.pow(.7,q);return new s2(this.h,this.s,this.l*q,this.opacity)},
rgb:function(){var q=isNaN(this.h)?0:(this.h+120)*slp,X=+this.l,y=isNaN(this.s)?0:this.s*X*(1-X),D4=Math.cos(q);q=Math.sin(q);return new kC(255*(X+y*(-.14861*D4+1.78277*q)),255*(X+y*(-.29227*D4+-.90649*q)),255*(X+1.97294*D4*y),this.opacity)}}));
var Thb=function y(X){function D4(L7,p7){var bq=Mr((L7=Wm(L7)).r,(p7=Wm(p7)).r),a4=Mr(L7.g,p7.g),uq=Mr(L7.b,p7.b),$p=tX(L7.opacity,p7.opacity);return function(F9){L7.r=bq(F9);L7.g=a4(F9);L7.b=uq(F9);L7.opacity=$p(F9);return L7+""}}
var Mr=OY(X);D4.gamma=y;return D4}(1),h7C=Vy(function(X){var y=X.length-1;
return function(D4){var Mr=D4<=0?D4=0:D4>=1?(D4=1,y-1):Math.floor(D4*y),L7=X[Mr],p7=X[Mr+1];return g0((D4-Mr/y)*y,Mr>0?X[Mr-1]:2*L7-p7,L7,p7,Mr<y-1?X[Mr+2]:2*p7-L7)}});
Vy(function(X){var y=X.length;return function(D4){var Mr=Math.floor(((D4%=1)<0?++D4:D4)*y);return g0((D4-Mr/y)*y,X[(Mr+y-1)%y],X[Mr%y],X[(Mr+1)%y],X[(Mr+2)%y])}});
var gki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kAc=new RegExp(gki.source,"g"),eFt=180/Math.PI,wtu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},rL,e7u,q$p,PO7,$vb=j$(function(X){if(X==="none")return wtu;rL||(rL=document.createElement("DIV"),e7u=document.documentElement,q$p=document.defaultView);rL.style.transform=X;X=q$p.getComputedStyle(e7u.appendChild(rL),null).getPropertyValue("transform");e7u.removeChild(rL);X=X.slice(7,-1).split(",");return S$(+X[0],+X[1],+X[2],+X[3],
+X[4],+X[5])},"px, ","px)","deg)"),QYZ=j$(function(X){if(X==null)return wtu;
PO7||(PO7=document.createElementNS("http://www.w3.org/2000/svg","g"));PO7.setAttribute("transform",X);if(!(X=PO7.transform.baseVal.consolidate()))return wtu;X=X.matrix;return S$(X.a,X.b,X.c,X.d,X.e,X.f)},", ",")",")");
xC(w0);xC(tX);Fx(w0);Fx(tX);WW(w0);var nkc=WW(tX),IF=0,wL=0,nw=0,uHi,e7,rOf=0,DR=0,tOA=0,yA=typeof performance==="object"&&performance.now?performance:Date,nm9=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(X){setTimeout(X,17)};
B4.prototype=cY.prototype={constructor:B4,restart:function(X,y,D4){if(typeof X!=="function")throw new TypeError("De");D4=(D4==null?n0():+D4)+(y==null?0:+y);this._next||e7===this||(e7?e7._next=this:uHi=this,e7=this);this._call=X;this._time=D4;AI()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,AI())}};
var Pld=h("start","end","interrupt"),x8K=[],GAm=gr.prototype.constructor,beJ=0,JS=gr.prototype;ut.prototype=function(X){return gr().transition(X)}.prototype={constructor:ut,
select:function(X){var y=this._name,D4=this._id;typeof X!=="function"&&(X=Z(X));for(var Mr=this._groups,L7=Mr.length,p7=Array(L7),bq=0;bq<L7;++bq)for(var a4=Mr[bq],uq=a4.length,$p=p7[bq]=Array(uq),F9,tb,cs=0;cs<uq;++cs)(F9=a4[cs])&&(tb=X.call(F9,F9.__data__,cs,a4))&&("__data__"in F9&&(tb.__data__=F9.__data__),$p[cs]=tb,S$f($p[cs],y,D4,cs,$p,AF(F9,D4)));return new ut(p7,this._parents,y,D4)},
filter:function(X){typeof X!=="function"&&(X=AkM(X));for(var y=this._groups,D4=y.length,Mr=Array(D4),L7=0;L7<D4;++L7)for(var p7=y[L7],bq=p7.length,a4=Mr[L7]=[],uq,$p=0;$p<bq;++$p)(uq=p7[$p])&&X.call(uq,uq.__data__,$p,p7)&&a4.push(uq);return new ut(Mr,this._parents,this._name,this._id)},
merge:function(X){if(X._id!==this._id)throw Error();var y=this._groups;X=X._groups;for(var D4=y.length,Mr=Math.min(D4,X.length),L7=Array(D4),p7=0;p7<Mr;++p7)for(var bq=y[p7],a4=X[p7],uq=bq.length,$p=L7[p7]=Array(uq),F9,tb=0;tb<uq;++tb)if(F9=bq[tb]||a4[tb])$p[tb]=F9;for(;p7<D4;++p7)L7[p7]=y[p7];return new ut(L7,this._parents,this._name,this._id)},
selection:function(){return new GAm(this._groups,this._parents)},
transition:function(){for(var X=this._name,y=this._id,D4=++beJ,Mr=this._groups,L7=Mr.length,p7=0;p7<L7;++p7)for(var bq=Mr[p7],a4=bq.length,uq,$p=0;$p<a4;++$p)if(uq=bq[$p]){var F9=AF(uq,y);S$f(uq,X,D4,$p,bq,{time:F9.time+F9.delay+F9.duration,delay:0,duration:F9.duration,ease:F9.ease})}return new ut(Mr,this._parents,X,D4)},
call:JS.call,nodes:JS.nodes,node:JS.node,size:JS.size,empty:JS.empty,each:JS.each,on:function(X,y){var D4=this._id;return arguments.length<2?AF(this.node(),D4).on.on(X):this.each(lEd(D4,X,y))},
attr:function(X,y){var D4=x(X),Mr=D4==="transform"?QYZ:KqJ;return this.attrTween(X,typeof y==="function"?(D4.local?Lj$:U8s)(D4,Mr,ptL(this,"attr."+X,y)):y==null?(D4.local?oG2:Clb)(D4):(D4.local?z$m:FjK)(D4,Mr,y+""))},
attrTween:function(X,y){var D4="attr."+X;if(arguments.length<2)return(D4=this.tween(D4))&&D4._value;if(y==null)return this.tween(D4,null);if(typeof y!=="function")throw Error();var Mr=x(X);return this.tween(D4,(Mr.local?ZHd:EGU)(Mr,y))},
style:function(X,y,D4){var Mr=X==="transform"?$vb:KqJ;return y==null?this.styleTween(X,Yer(X,Mr)).on("end.style."+X,Bem(X)):this.styleTween(X,typeof y==="function"?Xir(X,Mr,ptL(this,"style."+X,y)):cp3(X,Mr,y+""),D4)},
styleTween:function(X,y,D4){var Mr="style."+X;if(arguments.length<2)return(Mr=this.tween(Mr))&&Mr._value;if(y==null)return this.tween(Mr,null);if(typeof y!=="function")throw Error();return this.tween(Mr,ApK(X,y,D4==null?"":D4))},
text:function(X){return this.tween("text",typeof X==="function"?bHr(ptL(this,"text",X)):qeI(X==null?"":X+""))},
remove:function(){return this.on("end.remove",NeC(this._id))},
tween:function(X,y){var D4=this._id;if(arguments.length<2){D4=AF(this.node(),D4).tween;for(var Mr=0,L7=D4.length,p7;Mr<L7;++Mr)if((p7=D4[Mr]).name===X)return p7.value;return null}return this.each((y==null?MhU:fEm)(D4,X,y))},
delay:function(X){var y=this._id;return arguments.length?this.each((typeof X==="function"?IEZ:gGr)(y,X)):AF(this.node(),y).delay},
duration:function(X){var y=this._id;return arguments.length?this.each((typeof X==="function"?kF2:Seb)(y,X)):AF(this.node(),y).duration},
ease:function(X){var y=this._id;return arguments.length?this.each(Jp$(y,X)):AF(this.node(),y).ease}};
var Oer={time:null,delay:0,duration:250,ease:function(X){return((X*=2)<=1?X*X*X:(X-=2)*X*X+2)/2}};
gr.prototype.transition=function(X){var y;if(X instanceof ut){var D4=X._id;X=X._name}else D4=++beJ,(y=Oer).time=n0(),X=X==null?null:X+"";for(var Mr=this._groups,L7=Mr.length,p7=0;p7<L7;++p7)for(var bq=Mr[p7],a4=bq.length,uq,$p=0;$p<a4;++$p)if(uq=bq[$p]){var F9=uq,tb=X,cs=D4,J3=$p,Te=bq,lz;if(!(lz=y))a:{lz=void 0;for(var hH=D4;!(lz=uq.__transition)||!(lz=lz[hH]);)if(!(uq=uq.parentNode)){lz=(Oer.time=n0(),Oer);break a}}S$f(F9,tb,cs,J3,Te,lz)}return new ut(Mr,this._parents,X,D4)};
["e","w"].map(lzu);["n","s"].map(lzu);"n e s w nw ne se sw".split(" ").map(lzu);Nj7.prototype=function(){return new Nj7}.prototype={constructor:Nj7,
moveTo:function(X,y){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+y)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(X,y){this._+="L"+(this._x1=+X)+","+(this._y1=+y)},
bezierCurveTo:function(X,y,D4,Mr,L7,p7){this._+="C"+ +X+","+ +y+","+ +D4+","+ +Mr+","+(this._x1=+L7)+","+(this._y1=+p7)},
rect:function(X,y,D4,Mr){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+y)+"h"+ +D4+"v"+ +Mr+"h"+-D4+"Z"},
toString:function(){return this._}};
DH7.prototype=RFM.prototype={constructor:DH7,has:function(X){return" "+X in this},
get:function(X){return this[" "+X]},
set:function(X,y){this[" "+X]=y;return this},
remove:function(X){X=" "+X;return X in this&&delete this[X]},
clear:function(){for(var X in this)X[0]===" "&&delete this[X]},
keys:function(){var X=[],y;for(y in this)y[0]===" "&&X.push(y.slice(1));return X},
values:function(){var X=[],y;for(y in this)y[0]===" "&&X.push(this[y]);return X},
entries:function(){var X=[],y;for(y in this)y[0]===" "&&X.push({key:y.slice(1),value:this[y]});return X},
size:function(){var X=0,y;for(y in this)y[0]===" "&&++X;return X},
empty:function(){for(var X in this)if(X[0]===" ")return!1;return!0},
each:function(X){for(var y in this)y[0]===" "&&X(this[y],y.slice(1),this)}};
var $v=RFM.prototype;vzq.prototype=function(X,y){var D4=new vzq;if(X instanceof vzq)X.each(function(p7){D4.add(p7)});
else if(X){var Mr=-1,L7=X.length;if(y==null)for(;++Mr<L7;)D4.add(X[Mr]);else for(;++Mr<L7;)D4.add(y(X[Mr],Mr,X))}return D4}.prototype={constructor:vzq,
has:$v.has,add:function(X){this[" "+X]=X;return this},
remove:$v.remove,clear:$v.clear,values:$v.keys,size:$v.size,empty:$v.empty,each:$v.each};var tkJ={},Y$o={},Vd3=Wqs(",").parse,Ptm=Wqs("\t").parse;rUs(Vd3);rUs(Ptm);var eB=function(X,y,D4){y=new Bj2(y==null?m83:y,D4==null?HHd:D4,NaN,NaN,NaN,NaN);return X==null?y:y.addAll(X)}.prototype=Bj2.prototype;
eB.copy=function(){var X=new Bj2(this._x,this._y,this._x0,this._y0,this._x1,this._y1),y=this._root,D4,Mr;if(!y)return X;if(!y.length)return X._root=Dvb(y),X;for(D4=[{source:y,target:X._root=Array(4)}];y=D4.pop();)for(var L7=0;L7<4;++L7)if(Mr=y.source[L7])Mr.length?D4.push({source:Mr,target:y.target[L7]=Array(4)}):y.target[L7]=Dvb(Mr);return X};
eB.add=function(X){var y=+this._x.call(null,X),D4=+this._y.call(null,X);return uQ9(this.cover(y,D4),y,D4,X)};
eB.addAll=function(X){var y,D4,Mr=X.length,L7,p7,bq=Array(Mr),a4=Array(Mr),uq=Infinity,$p=Infinity,F9=-Infinity,tb=-Infinity;for(D4=0;D4<Mr;++D4)isNaN(L7=+this._x.call(null,y=X[D4]))||isNaN(p7=+this._y.call(null,y))||(bq[D4]=L7,a4[D4]=p7,L7<uq&&(uq=L7),L7>F9&&(F9=L7),p7<$p&&($p=p7),p7>tb&&(tb=p7));F9<uq&&(uq=this._x0,F9=this._x1);tb<$p&&($p=this._y0,tb=this._y1);this.cover(uq,$p).cover(F9,tb);for(D4=0;D4<Mr;++D4)uQ9(this,bq[D4],a4[D4],X[D4]);return this};
eB.cover=function(X,y){if(isNaN(X=+X)||isNaN(y=+y))return this;var D4=this._x0,Mr=this._y0,L7=this._x1,p7=this._y1;if(isNaN(D4))L7=(D4=Math.floor(X))+1,p7=(Mr=Math.floor(y))+1;else if(D4>X||X>L7||Mr>y||y>p7){var bq=L7-D4,a4=this._root,uq;switch(uq=(y<(Mr+p7)/2)<<1|X<(D4+L7)/2){case 0:do{var $p=Array(4);$p[uq]=a4;a4=$p}while(bq*=2,L7=D4+bq,p7=Mr+bq,X>L7||y>p7);break;case 1:do $p=Array(4),$p[uq]=a4,a4=$p;while(bq*=2,D4=L7-bq,p7=Mr+bq,D4>X||y>p7);break;case 2:do $p=Array(4),$p[uq]=a4,a4=$p;while(bq*=
2,L7=D4+bq,Mr=p7-bq,X>L7||Mr>y);break;case 3:do $p=Array(4),$p[uq]=a4,a4=$p;while(bq*=2,D4=L7-bq,Mr=p7-bq,D4>X||Mr>y)}this._root&&this._root.length&&(this._root=a4)}else return this;this._x0=D4;this._y0=Mr;this._x1=L7;this._y1=p7;return this};
eB.data=function(){var X=[];this.visit(function(y){if(!y.length){do X.push(y.data);while(y=y.next)}});
return X};
eB.extent=function(X){return arguments.length?this.cover(+X[0][0],+X[0][1]).cover(+X[1][0],+X[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
eB.find=function(X,y,D4){var Mr=this._x0,L7=this._y0,p7,bq,a4,uq,$p=this._x1,F9=this._y1,tb=[],cs=this._root,J3;cs&&tb.push(new wx(cs,Mr,L7,$p,F9));D4==null?D4=Infinity:(Mr=X-D4,L7=y-D4,$p=X+D4,F9=y+D4,D4*=D4);for(;J3=tb.pop();)if(!(!(cs=J3.node)||(p7=J3.x0)>$p||(bq=J3.y0)>F9||(a4=J3.x1)<Mr||(uq=J3.y1)<L7))if(cs.length){J3=(p7+a4)/2;var Te=(bq+uq)/2;tb.push(new wx(cs[3],J3,Te,a4,uq),new wx(cs[2],p7,Te,J3,uq),new wx(cs[1],J3,bq,a4,Te),new wx(cs[0],p7,bq,J3,Te));if(cs=(y>=Te)<<1|X>=J3)J3=tb[tb.length-
1],tb[tb.length-1]=tb[tb.length-1-cs],tb[tb.length-1-cs]=J3}else if(J3=X-+this._x.call(null,cs.data),Te=y-+this._y.call(null,cs.data),J3=J3*J3+Te*Te,J3<D4){var lz=Math.sqrt(D4=J3);Mr=X-lz;L7=y-lz;$p=X+lz;F9=y+lz;lz=cs.data}return lz};
eB.remove=function(X){if(isNaN(uq=+this._x.call(null,X))||isNaN($p=+this._y.call(null,X)))return this;var y,D4=this._root,Mr,L7=this._x0,p7=this._y0,bq=this._x1,a4=this._y1,uq,$p,F9,tb,cs,J3,Te;if(!D4)return this;if(D4.length)for(;;){(cs=uq>=(F9=(L7+bq)/2))?L7=F9:bq=F9;(J3=$p>=(tb=(p7+a4)/2))?p7=tb:a4=tb;if(!(y=D4,D4=D4[Te=J3<<1|cs]))return this;if(!D4.length)break;if(y[Te+1&3]||y[Te+2&3]||y[Te+3&3]){var lz=y;var hH=Te}}for(;D4.data!==X;)if(!(Mr=D4,D4=D4.next))return this;(X=D4.next)&&delete D4.next;
if(Mr)return X?Mr.next=X:delete Mr.next,this;if(!y)return this._root=X,this;X?y[Te]=X:delete y[Te];(D4=y[0]||y[1]||y[2]||y[3])&&D4===(y[3]||y[2]||y[1]||y[0])&&!D4.length&&(lz?lz[hH]=D4:this._root=D4);return this};
eB.removeAll=function(X){for(var y=0,D4=X.length;y<D4;++y)this.remove(X[y]);return this};
eB.root=function(){return this._root};
eB.size=function(){var X=0;this.visit(function(y){if(!y.length){do++X;while(y=y.next)}});
return X};
eB.visit=function(X){var y=[],D4,Mr=this._root,L7,p7,bq,a4,uq;for(Mr&&y.push(new wx(Mr,this._x0,this._y0,this._x1,this._y1));D4=y.pop();)if(!X(Mr=D4.node,p7=D4.x0,bq=D4.y0,a4=D4.x1,uq=D4.y1)&&Mr.length){D4=(p7+a4)/2;var $p=(bq+uq)/2;(L7=Mr[3])&&y.push(new wx(L7,D4,$p,a4,uq));(L7=Mr[2])&&y.push(new wx(L7,p7,$p,D4,uq));(L7=Mr[1])&&y.push(new wx(L7,D4,bq,a4,$p));(L7=Mr[0])&&y.push(new wx(L7,p7,bq,D4,$p))}};
eB.visitAfter=function(X){var y=[],D4=[],Mr;for(this._root&&y.push(new wx(this._root,this._x0,this._y0,this._x1,this._y1));Mr=y.pop();){var L7=Mr.node;if(L7.length){var p7,bq=Mr.x0,a4=Mr.y0,uq=Mr.x1,$p=Mr.y1,F9=(bq+uq)/2,tb=(a4+$p)/2;(p7=L7[0])&&y.push(new wx(p7,bq,a4,F9,tb));(p7=L7[1])&&y.push(new wx(p7,F9,a4,uq,tb));(p7=L7[2])&&y.push(new wx(p7,bq,tb,F9,$p));(p7=L7[3])&&y.push(new wx(p7,F9,tb,uq,$p))}D4.push(Mr)}for(;Mr=D4.pop();)X(Mr.node,Mr.x0,Mr.y0,Mr.x1,Mr.y1);return this};
eB.x=function(X){return arguments.length?(this._x=X,this):this._x};
eB.y=function(X){return arguments.length?(this._y=X,this):this._y};
var nGm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;ckO.prototype=Xt2.prototype;Xt2.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 $vJ,QYM={"%":function(X,y){return(X*100).toFixed(y)},
b:function(X){return Math.round(X).toString(2)},
c:function(X){return X+""},
d:function(X){return Math.round(X).toString(10)},
e:function(X,y){return X.toExponential(y)},
f:function(X,y){return X.toFixed(y)},
g:function(X,y){return X.toPrecision(y)},
o:function(X){return Math.round(X).toString(8)},
p:function(X,y){return vkF(X*100,y)},
r:vkF,s:function(X,y){var D4=hd4(X,y);if(!D4)return X+"";var Mr=D4[0];D4=D4[1];D4=D4-($vJ=Math.max(-8,Math.min(8,Math.floor(D4/3)))*3)+1;var L7=Mr.length;return D4===L7?Mr:D4>L7?Mr+Array(D4-L7+1).join("0"):D4>0?Mr.slice(0,D4)+"."+Mr.slice(D4):"0."+Array(1-D4).join("0")+hd4(X,Math.max(0,y+D4-1))[0]},
X:function(X){return Math.round(X).toString(16).toUpperCase()},
x:function(X){return Math.round(X).toString(16)}},az4="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),xv$;
(function(X){return xv$=OH2(X)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});NA.prototype={constructor:NA,reset:function(){this.s=this.t=0},
add:function(X){GAR(xHi,X,this.t);GAR(this,xHi.s,this.s);this.s?this.t+=xHi.t:this.s=xHi.t},
valueOf:function(){return this.s}};
var xHi=new NA,wk=Math.PI,e6=wk/2,dv1=wk/4,MdK=wk*2,KZ8=wk/180,Dw=Math.abs,Tjo=Math.atan,Ct$=Math.atan2,nK=Math.cos,lu=Math.sin,$H7=Math.sqrt;new NA;new NA;new NA;var R72=new NA;(function(X,y,D4,Mr){return function(L7){function p7(iW,kq){X(iW,kq)&&L7.point(iW,kq)}
function bq(iW,kq){cs.point(iW,kq)}
function a4(){rp.point=bq;cs.lineStart()}
function uq(){rp.point=p7;cs.lineEnd()}
function $p(iW,kq){Fh.push([iW,kq]);Te.point(iW,kq)}
function F9(){Te.lineStart();Fh=[]}
function tb(){$p(Fh[0][0],Fh[0][1]);Te.lineEnd();var iW=Te.clean(),kq=J3.result(),t3=kq.length,FB;Fh.pop();hH.push(Fh);Fh=null;if(t3)if(iW&1){if(t3=kq[0],(kq=t3.length-1)>0){lz||(L7.polygonStart(),lz=!0);L7.lineStart();for(iW=0;iW<kq;++iW)L7.point((FB=t3[iW])[0],FB[1]);L7.lineEnd()}}else t3>1&&iW&2&&kq.push(kq.pop().concat(kq.shift())),Ru.push(kq.filter(iHr))}
var cs=y(L7),J3=Ted(),Te=y(J3),lz=!1,hH,Ru,Fh,rp={point:p7,lineStart:a4,lineEnd:uq,polygonStart:function(){rp.point=$p;rp.lineStart=F9;rp.lineEnd=tb;Ru=[];hH=[]},
polygonEnd:function(){rp.point=p7;rp.lineStart=a4;rp.lineEnd=uq;var iW=Ru,kq=iW.length;var t3=-1;for(var FB=0,Td,SR;++t3<kq;)FB+=iW[t3].length;for(Td=Array(FB);--kq>=0;)for(SR=iW[kq],t3=SR.length;--t3>=0;)Td[--FB]=SR[t3];Ru=Td;iW=hH;kq=Mr[0];FB=Mr[1];var fz=lu(FB);t3=[lu(kq),-nK(kq),0];SR=Td=0;R72.reset();fz===1?FB=e6+1E-6:fz===-1&&(FB=-e6-1E-6);fz=0;for(var bS=iW.length;fz<bS;++fz)if(yX=(Rt=iW[fz]).length){var Rt,yX,aM=Rt[yX-1],Lx=aM[0],GX=aM[1]/2+dv1,MJr=lu(GX),jYJ=nK(GX);for(GX=0;GX<yX;++GX,Lx=
ier,MJr=sYt,jYJ=uQ,aM=foc){var foc=Rt[GX],ier=foc[0];uQ=foc[1]/2+dv1;var sYt=lu(uQ),uQ=nK(uQ),pB=ier-Lx,WZi=pB>=0?1:-1,tdO=WZi*pB,COO=tdO>wk;MJr*=sYt;R72.add(Ct$(MJr*WZi*lu(tdO),jYJ*uQ+MJr*nK(tdO)));Td+=COO?pB+WZi*MdK:pB;COO^Lx>=kq^ier>=kq&&(aM=PtR(Vd4(aM),Vd4(foc)),xvt(aM),Lx=PtR(t3,aM),xvt(Lx),Lx=(COO^pB>=0?-1:1)*ao2(Lx[2]),FB>Lx||FB===Lx&&(aM[0]||aM[1]))&&(SR+=COO^pB>=0?1:-1)}}iW=(Td<-1E-6||Td<1E-6&&R72<-1E-6)^SR&1;Ru.length?(lz||(L7.polygonStart(),lz=!0),R$U(Ru,Wjs,iW,D4,L7)):iW&&(lz||(L7.polygonStart(),
lz=!0),L7.lineStart(),D4(null,null,1,L7),L7.lineEnd());lz&&(L7.polygonEnd(),lz=!1);Ru=hH=null},
sphere:function(){L7.polygonStart();L7.lineStart();D4(null,null,1,L7);L7.lineEnd();L7.polygonEnd()}};
return rp}})(function(){return!0},function(X){var y=NaN,D4=NaN,Mr=NaN,L7;
return{lineStart:function(){X.lineStart();L7=1},
point:function(p7,bq){var a4=p7>0?wk:-wk,uq=Dw(p7-y);if(Dw(uq-wk)<1E-6)X.point(y,D4=(D4+bq)/2>0?e6:-e6),X.point(Mr,D4),X.lineEnd(),X.lineStart(),X.point(a4,D4),X.point(p7,D4),L7=0;else if(Mr!==a4&&uq>=wk){Dw(y-Mr)<1E-6&&(y-=Mr*1E-6);Dw(p7-a4)<1E-6&&(p7-=a4*1E-6);uq=y;var $p=D4,F9=p7,tb,cs,J3=lu(uq-F9);D4=Dw(J3)>1E-6?Tjo((lu($p)*(cs=nK(bq))*lu(F9)-lu(bq)*(tb=nK($p))*lu(uq))/(tb*cs*J3)):($p+bq)/2;X.point(Mr,D4);X.lineEnd();X.lineStart();X.point(a4,D4);L7=0}X.point(y=p7,D4=bq);Mr=a4},
lineEnd:function(){X.lineEnd();y=D4=NaN},
clean:function(){return 2-L7}}},function(X,y,D4,Mr){X==null?(D4*=e6,Mr.point(-wk,D4),Mr.point(0,D4),Mr.point(wk,D4),Mr.point(wk,0),Mr.point(wk,-D4),Mr.point(0,-D4),Mr.point(-wk,-D4),Mr.point(-wk,0),Mr.point(-wk,D4)):Dw(X[0]-y[0])>1E-6?(X=X[0]<y[0]?wk:-wk,D4=D4*X/2,Mr.point(-X,D4),Mr.point(0,D4),Mr.point(X,D4)):Mr.point(y[0],y[1])},[-wk,
-e6]);new NA;new NA;new NA;new NA;Aki.prototype={constructor:Aki,point:function(X,y){this.stream.point(X,y)},
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()}};
nK(30*KZ8);(function(X){return function(y){var D4=new Aki,Mr;for(Mr in X)D4[Mr]=X[Mr];D4.stream=y;return D4}})({point:function(X,y){this.stream.point(X*KZ8,y*KZ8)}});
fz4(function(X){return $H7(2/(1+X))}).invert=O7(function(X){return 2*ao2(X/2)});
fz4(function(X){return(X=X>1?0:X<-1?wk:Math.acos(X))&&X/lu(X)}).invert=O7(function(X){return X});
$H7(3);O7(Tjo);O7(ao2);O7(function(X){return 2*Tjo(X)});
Kw.prototype=okp.prototype={constructor:Kw,count:function(){return this.eachAfter(thZ)},
each:function(X){var y,D4=[this],Mr;do{var L7=D4.reverse();for(D4=[];y=L7.pop();)if(X(y),y=y.children){var p7=0;for(Mr=y.length;p7<Mr;++p7)D4.push(y[p7])}}while(D4.length);return this},
eachAfter:function(X){for(var y,D4=[this],Mr=[],L7,p7;y=D4.pop();)if(Mr.push(y),y=y.children)for(L7=0,p7=y.length;L7<p7;++L7)D4.push(y[L7]);for(;y=Mr.pop();)X(y);return this},
eachBefore:function(X){for(var y,D4=[this],Mr;y=D4.pop();)if(X(y),y=y.children)for(Mr=y.length-1;Mr>=0;--Mr)D4.push(y[Mr]);return this},
sum:function(X){return this.eachAfter(function(y){for(var D4=+X(y.data)||0,Mr=y.children,L7=Mr&&Mr.length;--L7>=0;)D4+=Mr[L7].value;y.value=D4})},
sort:function(X){return this.eachBefore(function(y){y.children&&y.children.sort(X)})},
path:function(X){var y=this;var D4=y;var Mr=X;if(D4!==Mr){var L7=D4.ancestors(),p7=Mr.ancestors(),bq=null;D4=L7.pop();for(Mr=p7.pop();D4===Mr;)bq=D4,D4=L7.pop(),Mr=p7.pop();D4=bq}for(Mr=[y];y!==D4;)y=y.parent,Mr.push(y);for(y=Mr.length;X!==D4;)Mr.splice(y,0,X),X=X.parent;return Mr},
ancestors:function(){for(var X=this,y=[X];X=X.parent;)y.push(X);return y},
links:function(){var X=this,y=[];X.each(function(D4){D4!==X&&y.push({source:D4.parent,target:D4})});
return y},
copy:function(){return okp(this).eachBefore(Dyr)}};
(function(X,y){this._=X;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=y}).prototype=Object.create(Kw.prototype);
var q$L=new Date,bec=new Date,mv$=oN(function(){},function(X,y){X.setTime(+X+y)},function(X,y){return y-X});
mv$.every=function(X){X=Math.floor(X);return isFinite(X)&&X>0?X>1?oN(function(y){y.setTime(Math.floor(y/X)*X)},function(y,D4){y.setTime(+y+D4*X)},function(y,D4){return(D4-y)/X}):mv$:null};
oN(function(X){X.setTime(Math.floor(X/1E3)*1E3)},function(X,y){X.setTime(+X+y*1E3)},function(X,y){return(y-X)/1E3},function(X){return X.getUTCSeconds()});
oN(function(X){X.setTime(Math.floor(X/6E4)*6E4)},function(X,y){X.setTime(+X+y*6E4)},function(X,y){return(y-X)/6E4},function(X){return X.getMinutes()});
oN(function(X){var y=X.getTimezoneOffset()*6E4%36E5;y<0&&(y+=36E5);X.setTime(Math.floor((+X-y)/36E5)*36E5+y)},function(X,y){X.setTime(+X+y*36E5)},function(X,y){return(y-X)/36E5},function(X){return X.getHours()});
var Uvp=oN(function(X){X.setHours(0,0,0,0)},function(X,y){X.setDate(X.getDate()+y)},function(X,y){return(y-X-(y.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/864E5},function(X){return X.getDate()-1}),Dvr=hf(0),jY4=hf(1);
hf(2);hf(3);var sY2=hf(4);hf(5);hf(6);oN(function(X){X.setDate(1);X.setHours(0,0,0,0)},function(X,y){X.setMonth(X.getMonth()+y)},function(X,y){return y.getMonth()-X.getMonth()+(y.getFullYear()-X.getFullYear())*12},function(X){return X.getMonth()});
var gC=oN(function(X){X.setMonth(0,1);X.setHours(0,0,0,0)},function(X,y){X.setFullYear(X.getFullYear()+y)},function(X,y){return y.getFullYear()-X.getFullYear()},function(X){return X.getFullYear()});
gC.every=function(X){return isFinite(X=Math.floor(X))&&X>0?oN(function(y){y.setFullYear(Math.floor(y.getFullYear()/X)*X);y.setMonth(0,1);y.setHours(0,0,0,0)},function(y,D4){y.setFullYear(y.getFullYear()+D4*X)}):null};
oN(function(X){X.setUTCSeconds(0,0)},function(X,y){X.setTime(+X+y*6E4)},function(X,y){return(y-X)/6E4},function(X){return X.getUTCMinutes()});
oN(function(X){X.setUTCMinutes(0,0,0)},function(X,y){X.setTime(+X+y*36E5)},function(X,y){return(y-X)/36E5},function(X){return X.getUTCHours()});
var z7t=oN(function(X){X.setUTCHours(0,0,0,0)},function(X,y){X.setUTCDate(X.getUTCDate()+y)},function(X,y){return(y-X)/864E5},function(X){return X.getUTCDate()-1}),vk2=ab(0),dvr=ab(1);
ab(2);ab(3);var mvO=ab(4);ab(5);ab(6);oN(function(X){X.setUTCDate(1);X.setUTCHours(0,0,0,0)},function(X,y){X.setUTCMonth(X.getUTCMonth()+y)},function(X,y){return y.getUTCMonth()-X.getUTCMonth()+(y.getUTCFullYear()-X.getUTCFullYear())*12},function(X){return X.getUTCMonth()});
var kg=oN(function(X){X.setUTCMonth(0,1);X.setUTCHours(0,0,0,0)},function(X,y){X.setUTCFullYear(X.getUTCFullYear()+y)},function(X,y){return y.getUTCFullYear()-X.getUTCFullYear()},function(X){return X.getUTCFullYear()});
kg.every=function(X){return isFinite(X=Math.floor(X))&&X>0?oN(function(y){y.setUTCFullYear(Math.floor(y.getUTCFullYear()/X)*X);y.setUTCMonth(0,1);y.setUTCHours(0,0,0,0)},function(y,D4){y.setUTCFullYear(y.getUTCFullYear()+D4*X)}):null};
var FZJ={"-":"",_:" ",0:"0"},za=/^\s*\d+/,uQX=/^%/,rUS=/[\\^$*+?|[\]().{}]/g,ozi;(function(X){ozi=hFK(X);eVt=ozi.utcFormat;neR=ozi.utcParse;return ozi})({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||eVt("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||neR("%Y-%m-%dT%H:%M:%S.%LZ");LT("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
LT("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");LT("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");LT("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");LT("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");LT("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");LT("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
LT("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");LT("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");LT("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");LT("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");LT("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var fzU=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(LT);iy(fzU);var CtK=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(LT);iy(CtK);var okC=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(LT);iy(okC);var FZb=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(LT);
iy(FZb);var z7$=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(LT);iy(z7$);var UvC=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(LT);iy(UvC);var LZd=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(LT);iy(LZd);var Ze2=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(LT);iy(Ze2);var Ek3=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(LT);iy(Ek3);var Izd=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(LT);iy(Izd);var gkZ=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(LT);iy(gkZ);var kAr=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(LT);iy(kAr);var S$X=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(LT);iy(S$X);var JkU=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(LT);iy(JkU);var ptC=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(LT);iy(ptC);var lzd=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(LT);iy(lzd);var Nj3=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(LT);iy(Nj3);var Y$U=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(LT);iy(Y$U);var Bj$=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(LT);iy(Bj$);var ckK=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(LT);iy(ckK);var Xt$=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(LT);iy(Xt$);var AkZ=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(LT);iy(AkZ);var q$C=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(LT);iy(q$C);var ber=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(LT);iy(ber);var dvI=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(LT);iy(dvI);var jYb=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(LT);iy(jYb);var sY$=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(LT);iy(sY$);nkc(EF(300,.5,0),EF(-240,.5,1));nkc(EF(-100,.75,.35),EF(80,1.5,.8));nkc(EF(260,.75,.35),EF(80,1.5,.8));EF();Wm();VJr(LT("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
VJr(LT("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
VJr(LT("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
VJr(LT("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
lzy.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(X,y){X=+X;y=+y;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,y):this._context.moveTo(X,y);break;case 1:this._point=2;default:this._context.lineTo(X,y)}}};
(function(X){function y(D4){return new Nj4(X(D4))}
y._curve=X;return y})(function(X){return new lzy(X)});
Nj4.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(X,y){this._curve.point(y*Math.sin(X),y*-Math.cos(X))}};
ykc.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:He2(this,this._t0,Bjt(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(X,y){var D4=NaN;X=+X;y=+y;if(X!==this._x1||y!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,y):this._context.moveTo(X,y);break;case 1:this._point=2;break;case 2:this._point=3;He2(this,Bjt(this,D4=Y$4(this,X,y)),D4);break;default:He2(this,this._t0,D4=Y$4(this,X,y))}this._x0=this._x1;this._x1=X;this._y0=this._y1;this._y1=y;this._t0=D4}}};
(function(X){this._context=new ck$(X)}.prototype=Object.create(ykc.prototype)).point=function(X,y){ykc.prototype.point.call(this,y,X)};
ck$.prototype={moveTo:function(X,y){this._context.moveTo(y,X)},
closePath:function(){this._context.closePath()},
lineTo:function(X,y){this._context.lineTo(y,X)},
bezierCurveTo:function(X,y,D4,Mr,L7,p7){this._context.bezierCurveTo(y,X,Mr,D4,p7,L7)}};
Wc.prototype={constructor:Wc,scale:function(X){return X===1?this:new Wc(this.k*X,this.x,this.y)},
translate:function(X,y){return X===0&y===0?this:new Wc(this.k,this.x+this.k*X,this.y+this.k*y)},
apply:function(X){return[X[0]*this.k+this.x,X[1]*this.k+this.y]},
invert:function(X){return[(X[0]-this.x)/this.k,(X[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Wc(1,0,0);QDI=NI;wo.svg=wo.svg;wo.xhtml=wo.xhtml;wo.xlink=wo.xlink;wo.xml=wo.xml;wo.xmlns=wo.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 Ojb="hammer_"+(Math.random()*1E6|0),Ksy=function(){var D=document||document;if(!D[Ojb]){var v=function(){(function(h,a,Q,G){function x(YL,HA,Tu){return setTimeout(E(YL,Tu),HA)}
function f(YL,HA,Tu){return Array.isArray(YL)?(C(YL,Tu[HA],Tu),!0):!1}
function C(YL,HA,Tu){var L4;if(YL)if(YL.forEach)YL.forEach(HA,Tu);else if(YL.length!==G){var U2=0;for(L4=YL.length;U2<L4;U2++)HA.call(Tu,YL[U2],U2,YL)}else for(U2 in YL)YL.hasOwnProperty(U2)&&HA.call(Tu,YL[U2],U2,YL)}
function U(YL,HA,Tu){for(var L4=Object.keys(HA),U2=0,A3=L4.length;U2<A3;U2++)if(!Tu||Tu&&YL[L4[U2]]===G)YL[L4[U2]]=HA[L4[U2]];return YL}
function L(YL,HA){return U(YL,HA,!0)}
function Z(YL,HA,Tu){HA=HA.prototype;var L4=YL.prototype=Object.create(HA);L4.constructor=YL;L4._super=HA;Tu&&U(L4,Tu)}
function E(YL,HA){return function(){return YL.apply(HA,arguments)}}
function I(YL,HA){return typeof YL=="function"?YL.apply(HA?HA[0]||G:G,HA):YL}
function S(YL,HA,Tu){C(A(HA),function(L4){YL.addEventListener(L4,Tu,!1)})}
function B(YL,HA,Tu){C(A(HA),function(L4){YL.removeEventListener(L4,Tu,!1)})}
function A(YL){return YL.trim().split(/\s+/g)}
function d(YL,HA,Tu){if(YL.indexOf&&!Tu)return YL.indexOf(HA);for(var L4=0,U2=YL.length;L4<U2;L4++)if(Tu&&YL[L4][Tu]==HA||!Tu&&YL[L4]===HA)return L4;return-1}
function b(YL,HA,Tu){for(var L4=[],U2=[],A3=0,YC=YL.length;A3<YC;A3++){var gJ=HA?YL[A3][HA]:YL[A3];d(U2,gJ)<0&&L4.push(YL[A3]);U2[A3]=gJ}Tu&&(L4=HA?L4.sort(function(EF,s2){return EF[HA]>s2[HA]}):L4.sort());
return L4}
function W(YL,HA){for(var Tu,L4=HA[0].toUpperCase()+HA.slice(1),U2=0,A3=o4.length;U2<A3;U2++)if(Tu=(Tu=o4[U2])?Tu+L4:HA,Tu in YL)return Tu;return G}
function K(YL,HA){var Tu=this;this.manager=YL;this.callback=HA;this.element=YL.element;this.target=YL.options.inputTarget;this.domHandler=function(L4){I(YL.options.enable,[YL])&&Tu.handler(L4)};
this.evEl&&S(this.element,this.evEl,this.domHandler);this.evTarget&&S(this.target,this.evTarget,this.domHandler);this.evWin&&S(h,this.evWin,this.domHandler)}
function O(YL){var HA;nf?HA=s8:W1?HA=Xf:NI?HA=dJ:HA=S2;return new HA(YL,R)}
function R(YL,HA,Tu){var L4=Tu.pointers.length,U2=Tu.changedPointers.length,A3=HA&1&&L4-U2===0;Tu.isFirst=!!A3;Tu.isFinal=!!(HA&12&&L4-U2===0);A3&&(YL.session={});Tu.eventType=HA;HA=YL.session;L4=Tu.pointers;U2=L4.length;HA.firstInput||(HA.firstInput=vA(Tu));U2>1&&!HA.firstMultiple?HA.firstMultiple=vA(Tu):U2===1&&(HA.firstMultiple=!1);A3=HA.firstInput;var YC=(U2=HA.firstMultiple)?U2.center:A3.center,gJ=Tu.center=f7(L4);Tu.timeStamp=kp();Tu.deltaTime=Tu.timeStamp-A3.timeStamp;Tu.angle=Z4(YC,gJ);Tu.distance=
kL(YC,gJ);A3=Tu.center;YC=HA.offsetDelta||{};gJ=HA.prevDelta||{};var EF=HA.prevInput||{};if(Tu.eventType===1||EF.eventType===4)gJ=HA.prevDelta={x:EF.deltaX||0,y:EF.deltaY||0},YC=HA.offsetDelta={x:A3.x,y:A3.y};Tu.deltaX=gJ.x+(A3.x-YC.x);Tu.deltaY=gJ.y+(A3.y-YC.y);Tu.offsetDirection=xL(Tu.deltaX,Tu.deltaY);U2?(A3=U2.pointers,A3=kL(L4[0],L4[1],Wm)/kL(A3[0],A3[1],Wm)):A3=1;Tu.scale=A3;U2?(U2=U2.pointers,L4=Z4(L4[1],L4[0],Wm)-Z4(U2[1],U2[0],Wm)):L4=0;Tu.rotation=L4;YC=HA.lastInterval||Tu;L4=Tu.timeStamp-
YC.timeStamp;Tu.eventType!=8&&(L4>25||YC.velocity===G)?(A3=YC.deltaX-Tu.deltaX,YC=YC.deltaY-Tu.deltaY,gJ=A3/L4||0,EF=YC/L4||0,L4=gJ,U2=EF,gJ=Jb(gJ)>Jb(EF)?gJ:EF,A3=xL(A3,YC),HA.lastInterval=Tu):(gJ=YC.velocity,L4=YC.velocityX,U2=YC.velocityY,A3=YC.direction);Tu.velocity=gJ;Tu.velocityX=L4;Tu.velocityY=U2;Tu.direction=A3;HA=YL.element;a:{for(L4=Tu.srcEvent.target;L4;){if(L4==HA){L4=!0;break a}L4=L4.parentNode}L4=!1}L4&&(HA=Tu.srcEvent.target);Tu.target=HA;YL.emit("hammer.input",Tu);YL.recognize(Tu);
YL.session.prevInput=Tu}
function vA(YL){for(var HA=[],Tu=0;Tu<YL.pointers.length;Tu++)HA[Tu]={clientX:gr(YL.pointers[Tu].clientX),clientY:gr(YL.pointers[Tu].clientY)};return{timeStamp:kp(),pointers:HA,center:f7(HA),deltaX:YL.deltaX,deltaY:YL.deltaY}}
function f7(YL){var HA=YL.length;if(HA===1)return{x:gr(YL[0].clientX),y:gr(YL[0].clientY)};for(var Tu=0,L4=0,U2=0;U2<HA;U2++)Tu+=YL[U2].clientX,L4+=YL[U2].clientY;return{x:gr(Tu/HA),y:gr(L4/HA)}}
function xL(YL,HA){return YL===HA?1:Jb(YL)>=Jb(HA)?YL>0?2:4:HA>0?8:16}
function kL(YL,HA,Tu){Tu||(Tu=PW);var L4=HA[Tu[0]]-YL[Tu[0]];YL=HA[Tu[1]]-YL[Tu[1]];return Math.sqrt(L4*L4+YL*YL)}
function Z4(YL,HA,Tu){Tu||(Tu=PW);return Math.atan2(HA[Tu[1]]-YL[Tu[1]],HA[Tu[0]]-YL[Tu[0]])*180/Math.PI}
function S2(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;K.apply(this,arguments)}
function s8(){this.evEl=hN;this.evWin=gW;K.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Xf(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};K.apply(this,arguments)}
function dJ(){K.apply(this,arguments);var YL=E(this.handler,this);this.touch=new Xf(this.manager,YL);this.mouse=new S2(this.manager,YL)}
function R4(YL,HA){this.manager=YL;this.set(HA)}
function sF(YL){if(YL.indexOf("none")>-1)return"none";var HA=YL.indexOf("pan-x")>-1,Tu=YL.indexOf("pan-y")>-1;return HA&&Tu?"pan-x pan-y":HA||Tu?HA?"pan-x":"pan-y":YL.indexOf("manipulation")>-1?"manipulation":"auto"}
function rc(YL){this.id=E2++;this.manager=null;this.options=L(YL||{},this.defaults);YL=this.options.enable;this.options.enable=YL===G?!0:YL;this.state=1;this.simultaneous={};this.requireFail=[]}
function I4(YL){return YL==16?"down":YL==8?"up":YL==2?"left":YL==4?"right":""}
function q1(YL,HA){return(HA=HA.manager)?HA.get(YL):YL}
function jt(){rc.apply(this,arguments)}
function rr(){jt.apply(this,arguments);this.pY=this.pX=null}
function Zb(){jt.apply(this,arguments)}
function VO(){rc.apply(this,arguments);this._input=this._timer=null}
function Pm(){jt.apply(this,arguments)}
function Yp(){jt.apply(this,arguments)}
function C3(){rc.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function ZJ(YL,HA){HA=HA||{};var Tu=HA.recognizers;HA.recognizers=Tu===G?ZJ.defaults.preset:Tu;return new VK(YL,HA)}
function VK(YL,HA){HA=HA||{};this.options=L(HA,ZJ.defaults);this.options.inputTarget=this.options.inputTarget||YL;this.handlers={};this.session={};this.recognizers=[];this.element=YL;this.input=O(this);this.touchAction=new R4(this,this.options.touchAction);oP(this,!0);C(HA.recognizers,function(Tu){var L4=this.add(new Tu[0](Tu[1]));Tu[2]&&L4.recognizeWith(Tu[2]);Tu[3]&&L4.requireFailure(Tu[2])},this)}
function oP(YL,HA){var Tu=YL.element;C(YL.options.cssProps,function(L4,U2){Tu.style[W(Tu.style,U2)]=HA?L4:""})}
function rJ(YL,HA){var Tu=a.createEvent("Event");Tu.initEvent(YL,!0,!0);Tu.gesture=HA;HA.target.dispatchEvent(Tu)}
var o4=" webkit moz MS ms o".split(" "),Hm=a.createElement("div"),gr=Math.round,Jb=Math.abs,kp=Date.now,E2=1,hw=/mobile|tablet|ip(ad|hone|od)|android/i,NI="ontouchstart"in h,nf=W(h,"PointerEvent")!==G,W1=NI&&hw.test(navigator.userAgent),PW=["x","y"],Wm=["clientX","clientY"];K.prototype={handler:function(){},
destroy:function(){this.evEl&&B(this.element,this.evEl,this.domHandler);this.evTarget&&B(this.target,this.evTarget,this.domHandler);this.evWin&&B(h,this.evWin,this.domHandler)}};
var kC={mousedown:1,mousemove:2,mouseup:4};Z(S2,K,{handler:function(YL){var HA=kC[YL.type];HA&1&&YL.button===0&&(this.pressed=!0);HA&2&&YL.which!==1&&(HA=4);this.pressed&&this.allow&&(HA&4&&(this.pressed=!1),this.callback(this.manager,HA,{pointers:[YL],changedPointers:[YL],pointerType:"mouse",srcEvent:YL}))}});
var aU={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},UM={2:"touch",3:"pen",4:"mouse",5:"kinect"},hN="pointerdown",gW="pointermove pointerup pointercancel";h.MSPointerEvent&&(hN="MSPointerDown",gW="MSPointerMove MSPointerUp MSPointerCancel");Z(s8,K,{handler:function(YL){var HA=this.store,Tu=!1,L4=YL.type.toLowerCase().replace("ms","");L4=aU[L4];var U2=UM[YL.pointerType]||YL.pointerType;L4&1&&(YL.button===0||U2=="touch")?HA.push(YL):L4&12&&(Tu=!0);var A3=d(HA,YL.pointerId,"pointerId");
A3<0||(HA[A3]=YL,this.callback(this.manager,L4,{pointers:HA,changedPointers:[YL],pointerType:U2,srcEvent:YL}),Tu&&HA.splice(A3,1))}});
var u9={touchstart:1,touchmove:2,touchend:4,touchcancel:8};Z(Xf,K,{handler:function(YL){var HA=u9[YL.type];var Tu=Array.prototype.slice.call(YL.touches,0);var L4=this.targetIds;if(HA&3&&Tu.length===1)L4[Tu[0].identifier]=!0,L4=[Tu,Tu];else{var U2,A3=Array.prototype.slice.call(YL.targetTouches,0),YC=Array.prototype.slice.call(YL.changedTouches,0),gJ=[];if(HA===1)for(Tu=0,U2=A3.length;Tu<U2;Tu++)L4[A3[Tu].identifier]=!0;Tu=0;for(U2=YC.length;Tu<U2;Tu++)L4[YC[Tu].identifier]&&gJ.push(YC[Tu]),HA&12&&
delete L4[YC[Tu].identifier];L4=gJ.length?[b(A3.concat(gJ),"identifier",!0),gJ]:void 0}L4&&this.callback(this.manager,HA,{pointers:L4[0],changedPointers:L4[1],pointerType:"touch",srcEvent:YL})}});
Z(dJ,K,{handler:function(YL,HA,Tu){var L4=Tu.pointerType=="mouse";if(Tu.pointerType=="touch")this.mouse.allow=!1;else if(L4&&!this.mouse.allow)return;HA&12&&(this.mouse.allow=!0);this.callback(YL,HA,Tu)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var OX=W(Hm.style,"touchAction"),$E=OX!==G;R4.prototype={set:function(YL){YL=="compute"&&(YL=this.compute());$E&&(this.manager.element.style[OX]=YL);this.actions=YL.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var YL=[];C(this.manager.recognizers,function(HA){I(HA.options.enable,[HA])&&(YL=YL.concat(HA.getTouchAction()))});
return sF(YL.join(" "))},
preventDefaults:function(YL){if(!$E){var HA=YL.srcEvent;YL=YL.offsetDirection;if(this.manager.session.prevented)HA.preventDefault();else{var Tu=this.actions,L4=Tu.indexOf("none")>-1,U2=Tu.indexOf("pan-y")>-1;Tu=Tu.indexOf("pan-x")>-1;if(L4||U2&&Tu||U2&&YL&6||Tu&&YL&24)return this.preventSrc(HA)}}},
preventSrc:function(YL){this.manager.session.prevented=!0;YL.preventDefault()}};
rc.prototype={defaults:{},set:function(YL){U(this.options,YL);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(YL){if(f(YL,"recognizeWith",this))return this;var HA=this.simultaneous;YL=q1(YL,this);HA[YL.id]||(HA[YL.id]=YL,YL.recognizeWith(this));return this},
dropRecognizeWith:function(YL){if(f(YL,"dropRecognizeWith",this))return this;YL=q1(YL,this);delete this.simultaneous[YL.id];return this},
requireFailure:function(YL){if(f(YL,"requireFailure",this))return this;var HA=this.requireFail;YL=q1(YL,this);d(HA,YL)===-1&&(HA.push(YL),YL.requireFailure(this));return this},
dropRequireFailure:function(YL){if(f(YL,"dropRequireFailure",this))return this;YL=q1(YL,this);YL=d(this.requireFail,YL);YL>-1&&this.requireFail.splice(YL,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(YL){return!!this.simultaneous[YL.id]},
emit:function(YL){function HA(U2){Tu.manager.emit(Tu.options.event+(U2?L4&16?"cancel":L4&8?"end":L4&4?"move":L4&2?"start":"":""),YL)}
var Tu=this,L4=this.state;L4<8&&HA(!0);HA();L4>=8&&HA(!0)},
tryEmit:function(YL){if(this.canEmit())return this.emit(YL);this.state=32},
canEmit:function(){for(var YL=0;YL<this.requireFail.length;YL++)if(!(this.requireFail[YL].state&33))return!1;return!0},
recognize:function(YL){YL=U({},YL);I(this.options.enable,[this,YL])?(this.state&56&&(this.state=1),this.state=this.process(YL),this.state&30&&this.tryEmit(YL)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
Z(jt,rc,{defaults:{pointers:1},attrTest:function(YL){var HA=this.options.pointers;return HA===0||YL.pointers.length===HA},
process:function(YL){var HA=this.state,Tu=YL.eventType,L4=HA&6;YL=this.attrTest(YL);return L4&&(Tu&8||!YL)?HA|16:L4||YL?Tu&4?HA|8:HA&2?HA|4:2:32}});
Z(rr,jt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var YL=this.options.direction;if(YL===30)return["none"];var HA=[];YL&6&&HA.push("pan-y");YL&24&&HA.push("pan-x");return HA},
directionTest:function(YL){var HA=this.options,Tu=!0,L4=YL.distance,U2=YL.direction,A3=YL.deltaX,YC=YL.deltaY;U2&HA.direction||(HA.direction&6?(U2=A3===0?1:A3<0?2:4,Tu=A3!=this.pX,L4=Math.abs(YL.deltaX)):(U2=YC===0?1:YC<0?8:16,Tu=YC!=this.pY,L4=Math.abs(YL.deltaY)));YL.direction=U2;return Tu&&L4>HA.threshold&&U2&HA.direction},
attrTest:function(YL){return jt.prototype.attrTest.call(this,YL)&&(this.state&2||!(this.state&2)&&this.directionTest(YL))},
emit:function(YL){this.pX=YL.deltaX;this.pY=YL.deltaY;var HA=I4(YL.direction);HA&&this.manager.emit(this.options.event+HA,YL);this._super.emit.call(this,YL)}});
Z(Zb,jt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(YL){return this._super.attrTest.call(this,YL)&&(Math.abs(YL.scale-1)>this.options.threshold||this.state&2)},
emit:function(YL){this._super.emit.call(this,YL);YL.scale!==1&&this.manager.emit(this.options.event+(YL.scale<1?"in":"out"),YL)}});
Z(VO,rc,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(YL){var HA=this.options,Tu=YL.pointers.length===HA.pointers,L4=YL.distance<HA.threshold,U2=YL.deltaTime>HA.time;this._input=YL;if(!L4||!Tu||YL.eventType&12&&!U2)this.reset();else if(YL.eventType&1)this.reset(),this._timer=x(function(){this.state=8;this.tryEmit()},HA.time,this);
else if(YL.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(YL){this.state===8&&(YL&&YL.eventType&4?this.manager.emit(this.options.event+"up",YL):(this._input.timeStamp=kp(),this.manager.emit(this.options.event,this._input)))}});
Z(Pm,jt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(YL){return this._super.attrTest.call(this,YL)&&(Math.abs(YL.rotation)>this.options.threshold||this.state&2)}});
Z(Yp,jt,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return rr.prototype.getTouchAction.call(this)},
attrTest:function(YL){var HA=this.options.direction;if(HA&30)var Tu=YL.velocity;else HA&6?Tu=YL.velocityX:HA&24&&(Tu=YL.velocityY);return this._super.attrTest.call(this,YL)&&HA&YL.direction&&Jb(Tu)>this.options.velocity&&YL.eventType&4},
emit:function(YL){var HA=I4(YL.direction);HA&&this.manager.emit(this.options.event+HA,YL);this.manager.emit(this.options.event,YL)}});
Z(C3,rc,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(YL){var HA=this.options,Tu=YL.pointers.length===HA.pointers,L4=YL.distance<HA.threshold,U2=YL.deltaTime<HA.time;this.reset();if(YL.eventType&1&&this.count===0)return this.failTimeout();if(L4&&U2&&Tu){if(YL.eventType!=4)return this.failTimeout();Tu=this.pTime?YL.timeStamp-this.pTime<HA.interval:!0;L4=!this.pCenter||kL(this.pCenter,YL.center)<HA.posThreshold;this.pTime=YL.timeStamp;this.pCenter=YL.center;L4&&Tu?this.count+=1:this.count=1;this._input=YL;if(this.count%HA.taps===0)return this.hasRequireFailures()?
(this._timer=x(function(){this.state=8;this.tryEmit()},HA.interval,this),2):8}return 32},
failTimeout:function(){this._timer=x(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))}});
ZJ.VERSION="2.0.2";ZJ.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Pm,{enable:!1}],[Zb,{enable:!1},["rotate"]],[Yp,{direction:6}],[rr,{direction:6},["swipe"]],[C3],[C3,{event:"doubletap",taps:2},["tap"]],[VO]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};VK.prototype={set:function(YL){U(this.options,YL);return this},
stop:function(YL){this.session.stopped=YL?2:1},
recognize:function(YL){var HA=this.session;if(!HA.stopped){this.touchAction.preventDefaults(YL);var Tu=this.recognizers,L4=HA.curRecognizer;if(!L4||L4&&L4.state&8)L4=HA.curRecognizer=null;for(var U2=0,A3=Tu.length;U2<A3;U2++){var YC=Tu[U2];HA.stopped===2||L4&&YC!=L4&&!YC.canRecognizeWith(L4)?YC.reset():YC.recognize(YL);!L4&&YC.state&14&&(L4=HA.curRecognizer=YC)}}},
get:function(YL){if(YL instanceof rc)return YL;for(var HA=this.recognizers,Tu=0;Tu<HA.length;Tu++)if(HA[Tu].options.event==YL)return HA[Tu];return null},
add:function(YL){if(f(YL,"add",this))return this;var HA=this.get(YL.options.event);HA&&this.remove(HA);this.recognizers.push(YL);YL.manager=this;this.touchAction.update();return YL},
remove:function(YL){if(f(YL,"remove",this))return this;var HA=this.recognizers;YL=this.get(YL);HA.splice(d(HA,YL),1);this.touchAction.update();return this},
on:function(YL,HA){var Tu=this.handlers;C(A(YL),function(L4){Tu[L4]=Tu[L4]||[];Tu[L4].push(HA)});
return this},
off:function(YL,HA){var Tu=this.handlers;C(A(YL),function(L4){HA?Tu[L4].splice(d(Tu[L4],HA),1):delete Tu[L4]});
return this},
emit:function(YL,HA){this.options.domEvents&&rJ(YL,HA);var Tu=this.handlers[YL]&&this.handlers[YL].slice();if(Tu&&Tu.length){HA.type=YL;HA.preventDefault=function(){HA.srcEvent.preventDefault()};
YL=0;for(var L4=Tu.length;YL<L4;YL++)Tu[YL](HA)}},
destroy:function(){this.element&&oP(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
U(ZJ,{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:VK,Input:K,TouchAction:R4,Recognizer:rc,AttrRecognizer:jt,Tap:C3,Pan:rr,Swipe:Yp,Pinch:Zb,Rotate:Pm,Press:VO,on:S,off:B,each:C,merge:L,extend:U,inherit:Z,bindFn:E,prefixed:W});
h[Q]=ZJ})(window,document,"Hammer");
return window.Hammer}.call({});
v.DOCUMENT=D;D[Ojb]=v}return D[Ojb]};/*

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

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 UOb;_.z6F="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");UOb=function(){var D=[],v;var h=h||_.z6F.length;for(v=0;v<8;v++)D[v]=_.z6F[0|Math.random()*h];return D.join("")};var yJI=function(){return Math.random().toString(36).substring(7).split("").join(".")},HDf="@@redux/INIT"+yJI(),ny8="@@redux/REPLACE"+yJI();var ODq=typeof Symbol==="function"&&Symbol.observable||"@@observable";var L2M=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var ZSy="top right bottom left width height size weight".split(" "),E2t=typeof MutationObserver!=="undefined",Ijb=L2M&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,g2$=function(){this.mutationEventsAdded_=this.JSC$11760_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=KFc(this.refresh.bind(this))},kN$=function(D,
v){var h=D.observers_;
v=h.indexOf(v);~v&&h.splice(v,1);!h.length&&D.JSC$11760_connected_&&L2M&&D.JSC$11760_connected_&&(document.removeEventListener("transitionend",D.onTransitionEnd_),window.removeEventListener("resize",D.refresh),D.mutationsObserver_&&(D.mutationsObserver_.disconnect(),Ijb&&(HTMLElement.prototype.attachShadow=Ijb)),D.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",D.refresh),D.mutationsObserver_=null,D.mutationEventsAdded_=!1,D.JSC$11760_connected_=!1)};
g2$.prototype.refresh=function(){SyJ(this)&&this.refresh()};
var SyJ=function(D){D=D.observers_.filter(function(v){return Jms(v),v.activeObservations_.length>0});
D.forEach(function(v){return pO1(v)});
return D.length>0},lj9=function(D){if(L2M&&!D.JSC$11760_connected_){document.addEventListener("transitionend",D.onTransitionEnd_);
window.addEventListener("resize",D.refresh);if(E2t){D.mutationsObserver_=new MutationObserver(D.refresh);var v={attributes:!0,childList:!0,characterData:!0,subtree:!0};D.mutationsObserver_.observe(document,v);Ijb&&(function Q(a){var G=a.shadowRoot;G&&(D.mutationsObserver_.observe(G,v),Q(G));for(a=a.firstElementChild;a;)Q(a),a=a.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var a=Ijb.apply(this,_.Kz.apply(0,arguments));
D.mutationsObserver_.observe(a,v);return a})}else document.addEventListener("DOMSubtreeModified",D.refresh),D.mutationEventsAdded_=!0;
D.JSC$11760_connected_=!0}};
g2$.prototype.onTransitionEnd_=function(D){var v=D.propertyName===void 0?"":D.propertyName;ZSy.some(function(h){return!!~v.indexOf(h)})&&this.refresh()};
var NvJ=null;var Yy1=function(D,v){for(var h=_.P(Object.keys(v)),a=h.next();!a.done;a=h.next())a=a.value,Object.defineProperty(D,a,{value:v[a],enumerable:!1,writable:!1,configurable:!0})};var r3=function(D){var v;return(D==null?void 0:(v=D.ownerDocument)==null?void 0:v.defaultView)||globalThis};var Bv4={x:0,y:0,width:0,height:0},cmy=typeof SVGGraphicsElement!=="undefined"?function(D){return D instanceof r3(D).SVGGraphicsElement}:function(D){return D instanceof r3(D).SVGElement&&typeof D.getBBox==="function"};var XOy=function(D){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=D};
XOy.prototype.isActive=function(){var D=this.target;if(L2M)if(cmy(D)){var v=D.getBBox();v={x:0,y:0,width:v.width,height:v.height}}else{var h=D.clientWidth,a=D.clientHeight;if(h||a){var Q=r3(D).getComputedStyle(D);v=JB(Q["padding-top"]);var G=JB(Q["padding-left"]),x=G+JB(Q["padding-right"]),f=v+JB(Q["padding-bottom"]),C=JB(Q.width),U=JB(Q.height);Q.boxSizing==="border-box"&&(Math.round(C+x)!==h&&(C-=T98(Q,"left","right")+x),Math.round(U+f)!==a&&(U-=T98(Q,"top","bottom")+f));D!==r3(D).document.documentElement&&
(D=Math.round(C+x)-h,a=Math.round(U+f)-a,Math.abs(D)!==1&&(C-=D),Math.abs(a)!==1&&(U-=a));v={x:G,y:v,width:C,height:U}}else v=Bv4}else v=Bv4;this.contentRect_=v;return v.width!==this.broadcastWidth||v.height!==this.broadcastHeight};var Am4=function(D,v){var h=v.x;var a=v.y;var Q=v.width;v=v.height;var G=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);Yy1(G,{x:h,y:a,width:Q,height:v,top:a,right:h+Q,bottom:v+a,left:h});Yy1(this,{target:D,contentRect:G})};var qy$=function(D,v){var h=NvJ;this.activeObservations_=[];this.observations_=new Map;if(typeof D!=="function")throw new TypeError("Ue");this.callback_=D;this.controller_=h;this.callbackCtx_=v};
qy$.prototype.observe=function(D){if(D===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(D instanceof r3(D).Element))throw new TypeError("We");var v=this.observations_;v.has(D)||(v.set(D,new XOy(D)),D=this.controller_,~D.observers_.indexOf(this)||D.observers_.push(this),D.JSC$11760_connected_||lj9(D),this.controller_.refresh())}};
qy$.prototype.unobserve=function(D){if(D===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(D instanceof r3(D).Element))throw new TypeError("We");var v=this.observations_;v.has(D)&&(v.delete(D),v.size||kN$(this.controller_,this))}};
qy$.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();kN$(this.controller_,this)};
var Jms=function(D){D.activeObservations_.splice(0);D.observations_.forEach(function(v){v.isActive()&&D.activeObservations_.push(v)})},pO1=function(D){if(D.activeObservations_.length>0){var v=D.callbackCtx_,h=D.activeObservations_.map(function(a){var Q=a.target,G=a.contentRect_;
a.broadcastWidth=G.width;a.broadcastHeight=G.height;return new Am4(Q,G)});
D.callback_.call(v,h,v);D.activeObservations_.splice(0)}};var uN=function(D){if(!(this instanceof uN))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");NvJ||(NvJ=new g2$);this.observer_=new qy$(D,this)};
uN.prototype.observe=function(D){this.observer_.observe(D)};
uN.prototype.unobserve=function(D){this.observer_.unobserve(D)};
uN.prototype.disconnect=function(){this.observer_.disconnect()};var MYi=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:uN;var vN7="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(" "),DCf={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},uIf=null,RDO=null;var hw8={},a5c=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 MvI={text:1},Gqi={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var bSR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,dO$={CONSTANT:{isUnwrappable:function(D){return D instanceof ej},
unwrap:Ib4},JAVASCRIPT:{isUnwrappable:function(D){return D instanceof _.a9},
unwrap:oIq},HTML:{isUnwrappable:function(D){return D instanceof iH},
unwrap:function(D){return r0(D)}},
RESOURCE_URL:{isUnwrappable:function(D){return D instanceof cd},
unwrap:_.qf},STRING:{isUnwrappable:function(D){return D instanceof Object},
unwrap:function(D){return String(D)}},
STYLE:{isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D}},
URL:{isUnwrappable:function(D){return sQ(D)},
unwrap:_.mM}},jit={CONSTANT:f5q,JAVASCRIPT:f5q,HTML:function(D){D=D instanceof iH?D:Wd(String(D).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return r0(D)},
RESOURCE_URL:f5q,STRING:String,STYLE:f5q,URL:function(D,v){D=bSR.test(D)?D:void 0;return D===void 0?v:D}};var kqi=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,CEi=/[\t\n\f\r ]+/,FDu=/[\t\n\f\r ,]+/g,UC7=function(D,v,h){return h},YR={},siJ=function(){var D=function(){var a={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",a):a}(),v=D.createHTML(""),h=D.createScript("");
D=D.createScriptURL("");return{INNOCUOUS_STRING:v,INNOCUOUS_SCRIPT:h,INNOCUOUS_URL:D}}(),Nc=siJ.INNOCUOUS_STRING,gNc=siJ.INNOCUOUS_SCRIPT,I5L=siJ.INNOCUOUS_URL;var mO4=function(D){var v=SG4(D);return function(h,a,Q,G){return G?v(G,a,Q,h):Nc}}({reportHandler:function(D,v){if(D)try{throw Error(v);
}catch(h){_.mV(h)}},
safeTypesBridge:function(D,v,h){var a=dO$[v];return a.isUnwrappable(D)&&(a=a.unwrap(D,h),a!==h)?a:(0,jit[v])(String(D),h)},
allowedIdentifierPrefixes:[""]});if(Nb!==void 0)throw Error("Ye");Nb=mO4;if(Nb!==mO4)throw Error("Ze");BT("Injectable",[]);var WDo=BT("Inject",[["token",void 0]]),rF7=BT("Optional",[]);BT("Injectable",[]);var uWc=BT("Self",[]),Dw2=BT("SkipSelf",[]);BT("Host",[]);var HS4={},ym1=function(){};
ym1.prototype.resolve=function(){throw Error("af");};
ym1.prototype.addProvider=function(){throw Error("af");};var Rwr=Function;var wOm=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,e61=function(){this._reflect=window.Reflect};
_.V=e61.prototype;_.V.factory=function(D){return function(){return new (Function.prototype.bind.apply(D,[null].concat(_.j_(_.Kz.apply(0,arguments)))))}};
_.V._zipTypesAndAnnotations=function(D,v){var h=typeof D==="undefined"?Array(v.length):Array(D.length);for(var a=0;a<h.length;a++)h[a]=typeof D==="undefined"?[]:D[a]!=Object?[D[a]]:[],v&&p9q(v[a])&&(h[a]=h[a].concat(v[a]));return h};
_.V._ownParameters=function(D,v){if(wOm.exec(D.toString()))return null;if(D.parameters&&D.parameters!==v.parameters)return D.parameters;var h=D.ctorParameters;return h&&h!==v.ctorParameters?(v=typeof h==="function"?h():h,D=v.map(function(a){return a&&a.type}),v=v.map(function(a){return a&&NIO(a.decorators)}),this._zipTypesAndAnnotations(D,v)):p9q(this._reflect)&&p9q(this._reflect.getOwnMetadata)&&(v=this._reflect.getOwnMetadata("parameters",D),(h=this._reflect.getOwnMetadata("design:paramtypes",D))||
v)?this._zipTypesAndAnnotations(h,v):Array(D.length).fill(void 0)};
_.V.parameters=function(D){if(!D.prototype)return[];var v=Object.getPrototypeOf(D.prototype).constructor;(D=this._ownParameters(D,v))||v===Object||(D=this.parameters(v));return D||[]};
_.V._ownAnnotations=function(D,v){if(D.annotations&&D.annotations!==v.annotations)return D=D.annotations,typeof D==="function"&&D.annotations&&(D=D.annotations),D;if(D.decorators&&D.decorators!==v.decorators)return NIO(D.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",D)};
_.V.annotations=function(D){var v=Object.getPrototypeOf(D.prototype).constructor;D=this._ownAnnotations(D,v)||[];return(v!==Object?this.annotations(v):[]).concat(D)};
_.V._ownPropMetadata=function(D,v){if(D.propMetadata&&D.propMetadata!==v.propMetadata)return D=D.propMetadata,typeof D==="function"&&D.propMetadata&&(D=D.propMetadata),D;if(D.propDecorators&&D.propDecorators!==v.propDecorators){var h=D.propDecorators,a={};Object.keys(h).forEach(function(Q){a[Q]=NIO(h[Q])});
return a}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",D)};
_.V.propMetadata=function(D){var v=Object.getPrototypeOf(D.prototype).constructor,h={};if(v!==Object){var a=this.propMetadata(v);Object.keys(a).forEach(function(G){h[G]=a[G]})}var Q=this._ownPropMetadata(D,v);
Q&&Object.keys(Q).forEach(function(G){var x=[];h.hasOwnProperty(G)&&x.push.apply(x,_.j_(h[G]));x.push.apply(x,_.j_(Q[G]));h[G]=x});
return h};
_.V.getter=function(D){return function(v){return v[D]}};
_.V.setter=function(D){return function(v,h){return v[D]=h}};
_.V.method=function(D){return function(v,h){if(!v[D])throw Error("bf`"+D);return v[D].apply(v,h)}};var n2F=function(){};var OSF=function(D){this.reflectionCapabilities=D};
_.J(OSF,n2F);_.V=OSF.prototype;_.V.factory=function(D){return this.reflectionCapabilities.factory(D)};
_.V.parameters=function(D){return this.reflectionCapabilities.parameters(D)};
_.V.annotations=function(D){return this.reflectionCapabilities.annotations(D)};
_.V.propMetadata=function(D){return this.reflectionCapabilities.propMetadata(D)};
_.V.getter=function(D){return this.reflectionCapabilities.getter(D)};
_.V.setter=function(D){return this.reflectionCapabilities.setter(D)};
_.V.method=function(D){return this.reflectionCapabilities.method(D)};var jvi=new OSF(new e61);var DQ=function(D,v){this.token=D;this.id=v;if(D===void 0||D===null)throw Error("gf");};
_.GT.Object.defineProperties(DQ.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return cT(this.token)}}});
_.GT.Object.defineProperties(DQ,{JSC$11802_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return AB.JSC$11806_numberOfKeys}}});
var K2t=function(){this._allKeys=new Map};
K2t.prototype.get=function(D){if(D instanceof DQ)return D;if(this._allKeys.has(D))return this._allKeys.get(D);var v=new DQ(D,DQ.JSC$11802_numberOfKeys);this._allKeys.set(D,v);return v};
_.GT.Object.defineProperties(K2t.prototype,{JSC$11806_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var AB=new K2t;var v9L=function(D,v,h){this.key=D;this.optional=v;this.visibility=h},mCr=function(D){return new v9L(D,!1,null)},yFA=[],nNL=function(D,v,h){this.key=D;
this.resolvedFactories=v;this.multiProvider=h},w9O=function(D,v,h,a){this.factory=D;
this.dependencies=v;this.providerClass=h;this.providerValue=a};var vF={},hl=function(D,v){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=v===void 0?null:v;D=_.P(D);for(v=D.next();!v.done;v=D.next())this.addProvider(v.value)};
_.V=hl.prototype;_.V.addProvider=function(D){this.keyIdToIndex.set(D.key.id,this.keyIds.length);this.providers.push(D);this.keyIds.push(D.key.id);this.objs.push(vF)};
_.V.resolve=function(D,v){v=v===void 0?HS4:v;return this._getByKey(AB.get(Xn(D)),null,v)};
_.V._new=function(D){if(this.constructedKeyIds[D.key.id])throw qG2(this,D.key);this.constructedKeyIds[D.key.id]=!0;return this._instantiateProvider(D)};
_.V._instantiateProvider=function(D){if(D.multiProvider){for(var v=Array(D.resolvedFactories.length),h=0;h<D.resolvedFactories.length;++h)v[h]=this._instantiate(D,D.resolvedFactories[h]);return v}return this._instantiate(D,D.resolvedFactories[0])};
_.V._instantiate=function(D,v){var h=this,a=v.factory;try{var Q=v.dependencies.map(function(x){return h._getByReflectiveDependency(x)})}catch(x){throw x.addKey&&x.addKey(this,D.key),x;
}try{var G=a.apply(null,_.j_(Q))}catch(x){throw bX7(this,x,D.key);}return G};
_.V._getByReflectiveDependency=function(D){return this._getByKey(D.key,D.visibility,D.optional?null:HS4)};
_.V._getByKey=function(D,v,h){return D===Tvs?this:v instanceof uWc?this._getByKeySelf(D,h):this._getByKeyDefault(D,h,v)};
_.V._getObjByKeyId=function(D){for(var v=0;v<this.keyIds.length;v++)if(this.keyIds[v]===D)return this.objs[v]===vF&&(this.objs[v]=this._new(this.providers[v])),this.objs[v];return vF};
_.V._throwOrNull=function(D,v){if(v!==HS4)return v;throw AFA(this,D);};
_.V._getByKeySelf=function(D,v){var h=this._getObjByKeyId(D.id);return h!==vF?h:this._throwOrNull(D,v)};
_.V._getByKeyDefault=function(D,v,h){for(var a=h=h instanceof Dw2?this.parent:this;h instanceof hl;){var Q=h._getObjByKeyId(D.id);if(Q!==vF)return Q;h=h.parent}Q=void 0;if(h!==null)try{var G=h.resolve(D.token,v);if(G!==vF)return G}catch(x){Q=x}if(!(a instanceof hl&&alq(D.token))){if(Q)throw Q;return this._throwOrNull(D,v)}for(G=a;G.parent instanceof hl;)G=G.parent;G.addProvider(OXL({provide:D.token,useClass:D.token}));return G.resolve(D.token,v)};
_.V.toString=function(){return this.displayName};
_.GT.Object.defineProperties(hl.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+hgI(this,function(D){return' "'+D.key.displayName+'" '}).join(", ")+"])"}}});
var Tvs=AB.get(Xn(ym1));(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 R6s=window.XRegExp;var iSb=-1,W2F=function(D){addEventListener("pageshow",function(v){v.persisted&&(iSb=v.timeStamp,D(v))},!0)};var rmM=function(D,v,h){var a=tom,Q,G;return function(x){if(v.value>=0&&(x||h)){var f;if((G=v.value-((f=Q)!=null?f:0))||Q===void 0)Q=v.value,v.delta=G,x=v.value,v.rating=x>a[1]?"poor":x>a[0]?"needs-improvement":"good",D(v)}}};var uvM=function(D){requestAnimationFrame(function(){return requestAnimationFrame(function(){return D()})})};var Dhs=function(){var D=performance.getEntriesByType("navigation")[0];if(D&&D.responseStart>0&&D.responseStart<performance.now())return D};var vY$=function(){var D,v;return(v=(D=Dhs())==null?void 0:D.activationStart)!=null?v:0};var ad=-1,hmR=new Set,aSM=function(D){if(document.visibilityState==="hidden"){if(D.type==="visibilitychange")for(var v=_.P(hmR),h=v.next();!h.done;h=v.next())h=h.value,h();isFinite(ad)||(ad=D.type==="visibilitychange"?D.timeStamp:0,removeEventListener("prerenderingchange",aSM,!0))}},$h9=function(){if(ad<0){var D=vY$(),v,h;
ad=(h=document.prerendering?void 0:(v=globalThis.performance.getEntriesByType("visibility-state").filter(function(a){return a.name==="hidden"&&a.startTime>D})[0])==null?void 0:v.startTime)!=null?h:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",aSM,!0);addEventListener("prerenderingchange",aSM,!0);W2F(function(){setTimeout(function(){ad=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return ad},
onHidden:function(a){hmR.add(a)}}};var QQb=function(){var D=D===void 0?-1:D;var v=Dhs(),h="navigate";iSb>=0?h="back-forward-cache":v&&(document.prerendering||vY$()>0?h="prerender":document.wasDiscarded?h="restore":v.type&&(h=v.type.replace(/_/g,"-")));return{name:"LCP",value:D,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:h}};var QWi=new WeakMap;var Gk1=function(D){var v=v===void 0?{}:v;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var h=new PerformanceObserver(function(a){Promise.resolve().then(function(){D(a.getEntries())})});
h.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},v));return h}}catch(a){}};var V6J=function(D){var v=!1;return function(){v||(D(),v=!0)}};var PpJ=function(D){document.prerendering?addEventListener("prerenderingchange",function(){return D()},!0):D()};var xhy=function(D){var v=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?D():(D=V6J(D),addEventListener("visibilitychange",D,{once:!0,capture:!0}),v(function(){D();removeEventListener("visibilitychange",D,{capture:!0})}))};var $wO=function(){};
$wO.prototype._processEntry=function(D){var v;(v=this._onBeforeProcessingEntry)==null||v.call(this,D)};var tom=[2500,4E3],Sb4=function(D){var v=v===void 0?{}:v;PpJ(function(){var h=$h9(),a=QQb(),Q=G0O(v),G=function(E){v.reportAllChanges||(E=E.slice(-1));E=_.P(E);for(var I=E.next();!I.done;I=E.next())I=I.value,Q._processEntry(I),I.startTime<h.firstHiddenTime&&(a.value=Math.max(I.startTime-vY$(),0),a.entries=[I],f())},x=Gk1(G);
if(x){var f=rmM(D,a,v.reportAllChanges);for(var C=V6J(function(){G(x.takeRecords());x.disconnect();f(!0)}),U=function(E){E.isTrusted&&(xhy(C),removeEventListener(E.type,U,{capture:!0}))},L=_.P(["keydown",
"click","visibilitychange"]),Z=L.next();!Z.done;Z=L.next())addEventListener(Z.value,U,{capture:!0});W2F(function(E){a=QQb();f=rmM(D,a,v.reportAllChanges);uvM(function(){a.value=performance.now()-E.timeStamp;f(!0)})})}})};var M6t;var fSJ;_.T=function(){return fSJ!==void 0?fSJ:fSJ=document.createElement("template")};
document.head.appendChild(_.T().content);var CpM;_.yT({_template:function(){if(CpM!==void 0)return CpM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
var v=D.content,h=v.insertBefore;M6t===void 0&&(M6t=document.createElement("template"));var a=M6t;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return CpM=D},
is:"tp-yt-app-toolbar"});var oYM;var FPm;_.$M=function(){};
_.$M=_.yT({_template:function(){if(FPm!==void 0)return FPm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;oYM===void 0&&(oYM=document.createElement("template"));var a=oYM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return FPm=D},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.$M.instance||(_.$M.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(D){this._text===D&&(D+="\u00a0");this._text="";this.async(function(){this._text=D},this.timeout)},
_onIronAnnounce:function(D){D.detail&&D.detail.text&&this.announce(D.detail.text)}});
_.$M.instance=null;_.$M.requestAvailability=function(){_.$M.instance||(_.$M.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.$M.instance):document.addEventListener("load",function(){document.body.appendChild(_.$M.instance)})};var zmJ;var Uh$;/*

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
*/
_.yT({_template:function(){if(Uh$!==void 0)return Uh$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;zmJ===void 0&&(zmJ=document.createElement("template"));var a=zmJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return Uh$=D},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.TL,_.y3],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(D){this.$.textarea.selectionStart=D},set selectionEnd(D){this.$.textarea.selectionEnd=D},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var D=this.$.textarea.validity.valid;D&&(this.required&&this.value===""?D=!1:this.hasValidator()&&(D=_.TL.validate.call(this,this.value)));this.invalid=!D;this.fire("iron-input-validate");return D},
_bindValueChanged:function(D){this.value=D},
_valueChanged:function(D){var v=this.textarea;v&&(v.value!==D&&(v.value=D||D===0?D:""),this.bindValue=D,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(D){var v=_.qc(D).path;this.value=v?v[0].value:D.target.value},
_constrain:function(D){var v;D=D||[""];for(v=this.maxRows>0&&D.length>this.maxRows?D.slice(0,this.maxRows):D.slice(0);this.rows>0&&v.length<this.rows;)v.push("");return v.join("\n")+"\u00a0"},
_valueForMirror:function(){var D=this.textarea;if(D)return this.tokens=D&&D.value?D.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var LPm;var ZKm;_.yT({_template:function(){if(ZKm!==void 0)return ZKm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
var v=D.content,h=v.insertBefore;LPm===void 0&&(LPm=document.createElement("template"));var a=LPm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return ZKm=D},
is:"tp-yt-iron-collapse",behaviors:[_.iN],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(D,v){D=D==="auto"?"":D;v=v&&!this.noAnimation&&this.isAttached&&this._desiredSize!==D;this._desiredSize=D;this._updateTransition(!1);v&&(v=this._calcSize(),D===""&&(this.style[this._dimensionMax]="",D=this._calcSize()),this.style[this._dimensionMax]=v,this.scrollTop=this.scrollTop,this._updateTransition(!0),v=D!==v);this.style[this._dimensionMax]=D;v||this._transitionEnd()},
enableTransition:function(D){_.yk._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!D},
_updateTransition:function(D){this.style.transitionDuration=D&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(D){_.qc(D).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var EYJ;var ISp;var gYm=void 0,kkF={properties:{sizingTarget:{type:Object,value:function(){var D;return(D=this.hostElement)!=null?D:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var D,v=_.qc((D=this.hostElement)!=null?D:
this).parentNode;v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(v=v.host);return v},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var D;this._memoizedIsRTL=window.getComputedStyle((D=this.hostElement)!=null?D:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var D;window.getComputedStyle((D=this.hostElement)!=null?D:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var D,v=window.getComputedStyle((D=this.hostElement)!=null?D:this);D=window.getComputedStyle(this.sizingTarget);var h,a,Q;this._fitInfo={inlineStyle:{top:((h=this.hostElement)!=null?h:this).style.top||"",left:((a=this.hostElement)!=null?a:this).style.left||"",position:((Q=this.hostElement)!=null?Q:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:v.top!=="auto"?"top":v.bottom!=="auto"?"bottom":null,horizontally:v.left!=="auto"?"left":v.right!=="auto"?"right":null},sizedBy:{height:D.maxHeight!=="none",width:D.maxWidth!=="none",minWidth:parseInt(D.minWidth,10)||0,minHeight:parseInt(D.minHeight,10)||0},margin:{top:parseInt(v.marginTop,10)||0,right:parseInt(v.marginRight,10)||0,bottom:parseInt(v.marginBottom,10)||0,left:parseInt(v.marginLeft,10)||0}}}},
resetFit:function(){var D=this._fitInfo||{},v;for(v in D.sizerInlineStyle)this.sizingTarget.style[v]=D.sizerInlineStyle[v];for(v in D.inlineStyle){var h=void 0;((h=this.hostElement)!=null?h:this).style[v]=D.inlineStyle[v]}this._fitInfo=null},
refit:function(){var D=this.sizingTarget.scrollLeft,v=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=D;this.sizingTarget.scrollTop=v},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var D;((D=this.hostElement)!=null?D:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var v;((v=this.hostElement)!=null?v:this).style.left="0px";var h;((h=this.hostElement)!=null?h:this).style.top="0px";var a,Q=((a=this.hostElement)!=null?a:this).getBoundingClientRect();v=this.__getNormalizedRect(this.positionTarget);a=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(a={left:a.left+24,right:a.right-24,top:a.top+24,bottom:a.bottom-24});if(this.expandSizingTargetForScrollbars){var G=this.sizingTarget.offsetWidth;var x=this.sizingTarget.offsetHeight;var f=this.sizingTarget.clientWidth;var C=this.sizingTarget.clientHeight}D=this._fitInfo.margin;v=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:Q.width+D.left+D.right,height:Q.height+D.top+D.bottom},Q,v,a);var U=v.left+D.left,L=v.top+D.top;h=Math.min(a.right-D.right,U+Q.width);var Z=Math.min(a.bottom-
D.bottom,L+Q.height);U=Math.max(a.left+D.left,Math.min(U,h-this._fitInfo.sizedBy.minWidth));L=Math.max(a.top+D.top,Math.min(L,Z-this._fitInfo.sizedBy.minHeight));h=Math.max(h-U,this._fitInfo.sizedBy.minWidth);Z=Math.max(Z-L,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=h+"px";this.sizingTarget.style.maxHeight=Z+"px";U-=Q.left;Q=L-Q.top;var E;((E=this.hostElement)!=null?E:this).style.left=U+"px";var I;((I=this.hostElement)!=null?I:this).style.top=Q+"px";if(this.expandSizingTargetForScrollbars){E=
this.sizingTarget.offsetHeight;x=E-this.sizingTarget.clientHeight-(x-C);if(x>0){this.sizingTarget.style.maxHeight=Math.min(a.height-D.top-D.bottom,Z+x)+"px";x=this.sizingTarget.offsetHeight;C=x-E;var S;v.verticalAlign==="top"?S=Q:v.verticalAlign==="middle"?S=Q-C/2:v.verticalAlign==="bottom"&&(S=Q-C);S=Math.max(a.top+D.top,Math.min(S,a.bottom-D.bottom-x));var B;((B=this.hostElement)!=null?B:this).style.top=S+"px"}S=this.sizingTarget.offsetWidth;G=S-this.sizingTarget.clientWidth-(G-f);if(G>0){gYm!==
void 0?f=gYm:(f=document.createElement("div"),Object.assign(f.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),B=document.createElement("div"),B.style.width="200px",B.style.height="200px",f.appendChild(B),document.body.appendChild(f),gYm=Math.abs(f.offsetWidth-100)>1?f.offsetWidth-f.clientWidth:0,document.body.removeChild(f),f=gYm);this.sizingTarget.style.maxWidth=Math.min(a.width-D.left-D.right,h+G-f)+"px";G=this.sizingTarget.offsetWidth+f;f=G-S;var A;
v.horizontalAlign==="left"?A=U:v.horizontalAlign==="center"?A=U-f/2:v.horizontalAlign==="right"&&(A=U-f);A=Math.max(a.left+D.left,Math.min(A,a.right-D.right-G));var d;((d=this.hostElement)!=null?d:this).style.left=A+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var D=this._fitInfo;if(!D.positionedBy.vertically){var v;((v=this.hostElement)!=null?v:this).style.position="fixed";var h;((h=this.hostElement)!=null?h:this).style.top="0px"}if(!D.positionedBy.horizontally){var a;((a=this.hostElement)!=null?a:this).style.position="fixed";var Q;((Q=this.hostElement)!=null?Q:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var G;v=((G=this.hostElement)!=null?G:this).getBoundingClientRect();
D.sizedBy.height||this.__sizeDimension(v,D.positionedBy.vertically,"top","bottom","Height");D.sizedBy.width||this.__sizeDimension(v,D.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(D,v,h,a,Q){this.__sizeDimension(D,v,h,a,Q)},
__sizeDimension:function(D,v,h,a,Q){var G=this._fitInfo,x=this.__getNormalizedRect(this.fitInto);x=Q==="Width"?x.width:x.height;D=(v=v===a)?x-D[a]:D[h];h=G.margin[v?h:a];a="offset"+Q;var f;G=((f=this.hostElement)!=null?f:this)[a]-this.sizingTarget[a];this.sizingTarget.style["max"+Q]=x-h-D-G+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var D=this._fitInfo.positionedBy;if(!D.vertically||!D.horizontally){var v;((v=this.hostElement)!=null?v:this).style.position="fixed";if(!D.vertically){var h;((h=this.hostElement)!=null?h:this).style.top="0px"}if(!D.horizontally){var a;((a=this.hostElement)!=null?a:this).style.left="0px"}var Q;v=((Q=this.hostElement)!=null?Q:this).getBoundingClientRect();Q=this.__getNormalizedRect(this.fitInto);if(!D.vertically){h=Q.top-v.top+(Q.height-
v.height)/2;var G;((G=this.hostElement)!=null?G:this).style.top=h+"px"}if(!D.horizontally){D=Q.left-v.left+(Q.width-v.width)/2;var x;((x=this.hostElement)!=null?x:this).style.left=D+"px"}}}},
__getNormalizedRect:function(D){return D===document.documentElement||D===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:D.getBoundingClientRect()},
__getOffscreenArea:function(D,v,h){return Math.abs(Math.min(0,D.top)+Math.min(0,h.bottom-(D.top+v.height)))*v.width+Math.abs(Math.min(0,D.left)+Math.min(0,h.right-(D.left+v.width)))*v.height},
__getPosition:function(D,v,h,a,Q,G){var x=[{verticalAlign:"top",horizontalAlign:"left",top:Q.top+this.verticalOffset,left:Q.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:Q.top+this.verticalOffset,left:Q.right-h.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:Q.bottom-h.height-this.verticalOffset,left:Q.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:Q.bottom-h.height-this.verticalOffset,left:Q.right-h.width-
this.horizontalOffset}];if(this.noOverlap){for(var f=0,C=x.length;f<C;f++){var U={},L;for(L in x[f])U[L]=x[f][L];x.push(U)}x[0].top=x[1].top+=Q.height;x[2].top=x[3].top-=Q.height;x[4].left=x[6].left+=Q.width;x[5].left=x[7].left-=Q.width}v=v==="auto"?null:v;D=D==="auto"?null:D;D&&D!=="center"||(x.push({verticalAlign:"top",horizontalAlign:"center",top:Q.top+this.verticalOffset+(this.noOverlap?Q.height:0),left:Q.left-a.width/2+Q.width/2+this.horizontalOffset}),x.push({verticalAlign:"bottom",horizontalAlign:"center",
top:Q.bottom-h.height-this.verticalOffset-(this.noOverlap?Q.height:0),left:Q.left-a.width/2+Q.width/2+this.horizontalOffset}));v&&v!=="middle"||(x.push({verticalAlign:"middle",horizontalAlign:"left",top:Q.top-a.height/2+Q.height/2+this.verticalOffset,left:Q.left+this.horizontalOffset+(this.noOverlap?Q.width:0)}),x.push({verticalAlign:"middle",horizontalAlign:"right",top:Q.top-a.height/2+Q.height/2+this.verticalOffset,left:Q.right-h.width-this.horizontalOffset-(this.noOverlap?Q.width:0)}));v==="middle"&&
D==="center"&&x.push({verticalAlign:"middle",horizontalAlign:"center",top:Q.top-a.height/2+Q.height/2+this.verticalOffset,left:Q.left-a.width/2+Q.width/2+this.horizontalOffset});for(f=0;f<x.length;f++){a=x[f];Q=a.verticalAlign===v;C=a.horizontalAlign===D;if(!this.dynamicAlign&&!this.noOverlap&&Q&&C){var Z=a;break}U=(!v||Q)&&(!D||C);if(this.dynamicAlign||U){a.offscreenArea=this.__getOffscreenArea(a,h,G);if(a.offscreenArea===0&&U){Z=a;break}a.alignsOk=Q+C;Z=Z||a;Q=a.offscreenArea-Z.offscreenArea;if(Q<
0||Q===0&&a.alignsOk>Z.alignsOk)Z=a}}return Z}};/*

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 Qo,Sk4,JLF;Qo=Element.prototype;Sk4=Qo.matches||Qo.matchesSelector||Qo.mozMatchesSelector||Qo.msMatchesSelector||Qo.oMatchesSelector||Qo.webkitMatchesSelector;JLF=function(){};
_.lSb=function(D){var v=p7p,h=[];return v._collectTabbableNodes(D,h)?v._sortByTabIndex(h):h};
_.V=JLF.prototype;_.V.isFocusable=function(D){return Sk4.call(D,"input, select, textarea, button, object")?Sk4.call(D,":not([disabled])"):Sk4.call(D,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.V._normalizedTabIndex=function(D){return this.isFocusable(D)?(D=D.getAttribute("tabindex")||0,Number(D)):-1};
_.V._collectTabbableNodes=function(D,v){if(D.nodeType!==Node.ELEMENT_NODE||!this._isVisible(D))return!1;var h=this._normalizedTabIndex(D),a=h>0;h>=0&&v.push(D);if(D.localName==="content"||D.localName==="slot")h=_.qc(D).getDistributedNodes();else{var Q;h=((Q=_.qc(D).shadowRoot)!=null?Q:_.qc(D.root||D)).children}for(D=0;D<h.length;D++)a=this._collectTabbableNodes(h[D],v)||a;return a};
_.V._isVisible=function(D){var v=D.style;return v.visibility!=="hidden"&&v.display!=="none"?(v=window.getComputedStyle(D),v.visibility!=="hidden"&&v.display!=="none"):!1};
_.V._sortByTabIndex=function(D){var v=D.length;if(v<2)return D;var h=Math.ceil(v/2);v=this._sortByTabIndex(D.slice(0,h));D=this._sortByTabIndex(D.slice(h));return this._mergeSortByTabIndex(v,D)};
_.V._mergeSortByTabIndex=function(D,v){for(var h=[];D.length>0&&v.length>0;)this._hasLowerTabOrder(D[0],v[0])?h.push(v.shift()):h.push(D.shift());return h.concat(D,v)};
_.V._hasLowerTabOrder=function(D,v){D=Math.max(D.tabIndex,0);v=Math.max(v.tabIndex,0);return D===0||v===0?v>D:D>v};
var p7p=new JLF;var No4;var YkR;_.yT({_template:function(){if(YkR!==void 0)return YkR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;No4===void 0&&(No4=document.createElement("template"));var a=No4;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return YkR=D},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.qc(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.qc(this.parentNode).removeChild(this)},
_onTransitionend:function(D){D&&D.target===this&&this.complete()},
_openedChanged:function(D){D?this.prepare():(D=window.getComputedStyle(this),D.transitionDuration!=="0s"&&D.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var Vo=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;mK(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)};
Vo.prototype._bringOverlayAtIndexToFront=function(D){var v=this._overlays[D];if(v){var h=this._overlays.length-1,a=this._overlays[h];a&&this._shouldBeBehindOverlay(v,a)&&h--;if(!(D>=h)){a=Math.max(this._getZ(_.Bo4(this)),this._minimumZ);for(this._getZ(v)<=a&&this._applyOverlayZ(v,a);D<h;)this._overlays[D]=this._overlays[D+1],D++;this._overlays[h]=v}}};
Vo.prototype.addOverlay=function(D){var v=this._overlays.indexOf(D);if(v>=0)this._bringOverlayAtIndexToFront(v);else{v=this._overlays.length;var h=this._overlays[v-1],a=Math.max(this._getZ(h),this._minimumZ),Q=this._getZ(D);h&&this._shouldBeBehindOverlay(D,h)&&(this._applyOverlayZ(h,a),v--,a=Math.max(this._getZ(this._overlays[v-1]),this._minimumZ));Q<=a&&this._applyOverlayZ(D,a);this._overlays.splice(v,0,D)}this.trackBackdrop()};
Vo.prototype.removeOverlay=function(D){D=this._overlays.indexOf(D);D!==-1&&(this._overlays.splice(D,1),this.trackBackdrop())};
_.Bo4=function(D){return D._overlays[D._overlays.length-1]};
_.V=Vo.prototype;_.V.trackBackdrop=function(){var D=this._overlayWithBackdrop();if(D||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(D)-1,this.backdropElement.opened=!!D,this.backdropElement.prepare()};
_.V._overlayWithBackdrop=function(){for(var D=this._overlays.length-1;D>=0;D--)if(this._overlays[D].withBackdrop)return this._overlays[D]};
_.V._getZ=function(D){var v=this._minimumZ;if(D){var h,a,Q=Number(((h=D.hostElement)!=null?h:D).style.zIndex||window.getComputedStyle((a=D.hostElement)!=null?a:D).zIndex);Q===Q&&(v=Q)}return v};
_.V._setZ=function(D,v){var h;((h=D.hostElement)!=null?h:D).style.zIndex=v};
_.V._applyOverlayZ=function(D,v){this._setZ(D,v+2)};
_.V._overlayInPath=function(D){D=D||[];for(var v=0;v<D.length;v++){var h=void 0;if(((h=D[v].polymerController)!=null?h:D[v])._manager===this)return D[v]}};
_.V._onCaptureClick=function(D){var v=this._overlays.length-1;if(v!==-1)for(var h=_.qc(D).path,a,Q;(a=this._overlays[v])&&this._overlayInPath(h)!==((Q=a.hostElement)!=null?Q:a);)if(a._onCaptureClick(D),a.allowClickThrough)v--;else break};
_.V._onCaptureFocus=function(D){var v=_.Bo4(this);v&&v._onCaptureFocus(D)};
_.V._onCaptureKeyDown=function(D){var v=_.Bo4(this);v&&(_.Hq.keyboardEventMatchesKeys(D,"esc")?v._onCaptureEsc(D):_.Hq.keyboardEventMatchesKeys(D,"tab")&&v._onCaptureTab(D))};
_.V._shouldBeBehindOverlay=function(D,v){return!D.alwaysOnTop&&v.alwaysOnTop&&!v.contains(D)};
_.GT.Object.defineProperties(Vo.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var D=document.activeElement;D&&D instanceof Element!==!1||(D=document.body);for(;D.root&&_.qc(D.root).activeElement;)D=_.qc(D.root).activeElement;return D}}});
_.PF=new Vo;var Vnr=0,PY2=0,xwL=null,Mnf=[],b4=["wheel","mousewheel","DOMMouseScroll"],flO;_.g("web_no_lock_on_touchstart_killswitch")&&(b4.push("touchstart"),b4.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;_.xM={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:_.PF},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var D;return this._focusedChild||_.qc((D=this.hostElement)!=null?D:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var D;return _.lSb((D=this.hostElement)!=null?D:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var D;this._observer=_.qc((D=this.hostElement)!=null?D:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var D;_.qc((D=this.hostElement)!=null?D:this).unobserveNodes(this._observer)}this._observer=null;for(var v in this.__rafs)this.__rafs[v]!==null&&cancelAnimationFrame(this.__rafs[v]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(D){this.fire("iron-overlay-canceled",D,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var D;((D=this.hostElement)!=null?D:this).style.outline="none";var v;((v=this.hostElement)!=null?v:this).style.display="none"}},
_openedChanged:function(D){if(D){var v;((v=this.hostElement)!=null?v:this).removeAttribute("aria-hidden")}else{var h;((h=this.hostElement)!=null?h:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var D;if(this.withBackdrop&&!((D=this.hostElement)!=null?D:this).hasAttribute("tabindex")){var v;((v=this.hostElement)!=null?v:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var h;((h=this.hostElement)!=null?h:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var D;((D=this.hostElement)!=null?D:this).style.display="none";var v;((v=this.hostElement)!=null?v:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var D,v;((D=this.hostElement)!=null?D:this).style.transition=((v=this.hostElement)!=null?v:this).style.webkitTransition="none";var h,a;((h=this.hostElement)!=null?h:this).style.transform=((a=this.hostElement)!=null?a:this).style.webkitTransform="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display=""},
_finishPositioning:function(){var D;((D=this.hostElement)!=null?D:this).style.display="none";this.scrollTop=this.scrollTop;var v,h;((v=this.hostElement)!=null?v:this).style.transition=((h=this.hostElement)!=null?h:this).style.webkitTransition="";var a,Q;((a=this.hostElement)!=null?a:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="";var G;((G=this.hostElement)!=null?G:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var D=this._manager.deepActiveElement,v;if(!(v=D===document.body))a:{for(;D;D=D.assignedSlot||D.parentNode||D.host)if(D===this){v=!0;break a}v=!1}v&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(D){this.noCancelOnOutsideClick||this.cancel(D)},
_onCaptureFocus:function(D){if(this.withBackdrop){var v=_.qc(D).path;v.indexOf(this)===-1?(D.stopPropagation(),this._applyFocus()):this._focusedChild=v[0]}},
_onCaptureEsc:function(D){this.noCancelOnEscKey||this.cancel(D)},
_onCaptureTab:function(D){if(this.withBackdrop){this.__ensureFirstLastFocusables();var v=D.shiftKey,h=v?this.__firstFocusableNode:this.__lastFocusableNode;v=v?this.__lastFocusableNode:this.__firstFocusableNode;if(h===v)h=!0;else{var a=this._manager.deepActiveElement;h=a===h||a===this}h&&(D.preventDefault(),this._focusedChild=v,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var D=this._focusableNodes;this.__firstFocusableNode=D[0];this.__lastFocusableNode=D[D.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(D,v){var h=this.__rafs;h[D]!==null&&cancelAnimationFrame(h[D]);h[D]=requestAnimationFrame(function(){h[D]=null;v.call(this)}.bind(this))},
__updateScrollObservers:function(D,v,h){D&&v&&this.__isValidScrollAction(h)?(h==="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),flO=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(D=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),D!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(D,1),flO=_._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(TR)for(var D=this;D;)D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&D.host&&this.__rootNodes.push(D),D=D.host||D.assignedSlot||D.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(v){v.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(D){D.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(D){return D==="lock"||D==="refit"||D==="cancel"},
__onCaptureScroll:function(D){if(!(this.__isAnimating||_.qc(D).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(D)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.MB=[kkF,_.iN,_.xM];_.yT({_template:function(){if(ISp!==void 0)return ISp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;EYJ===void 0&&(EYJ=document.createElement("template"));var a=EYJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return ISp=D},
is:"tp-yt-iron-dropdown",behaviors:[_.y3,_.Hq,_.MB,MoM],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var D=_.qc(this.$.content).getDistributedNodes(),v=0,h=D.length;v<h;v++)if(D[v].nodeType===Node.ELEMENT_NODE)return D[v]},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(),_.xM._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.xM._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.xM._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var D=this.containedElement,v=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),h=0;h<v.length;h++)v[h].node=D;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(D){this._readied&&(D?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var D=this.focusTarget||this.containedElement;D&&this.opened&&!this.noAutoFocus?D.focus():_.xM._applyFocus.apply(this,arguments)}});var cL1;var X7R;/*

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

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 vap=function(){};
_.V=vap.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
vap=_.yT({is:"tp-yt-paper-toggle-button",_template:function(){if(DAJ!==void 0)return DAJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;utp===void 0&&(utp=document.createElement("template"));var a=utp;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return DAJ=D},
behaviors:[_.Rm$],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");_.$R(this,function(){_.eg(this,"pan-y")})},
_ontrack:function(D){D=D.detail;D.state==="start"?this._trackStart(D):D.state==="track"?this._trackMove(D):D.state==="end"&&this._trackEnd(D)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(D){D=D.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+D:D)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+D:D));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var D=fr._createRipple();D.id="ink";D.setAttribute("recenters","");D.classList.add("circle","toggle-ink");return D}});var hCs;var aNm;_.yT({_template:function(){if(aNm!==void 0)return aNm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;hCs===void 0&&(hCs=document.createElement("template"));var a=hCs;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return aNm=D},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var D=_.qc(this).parentNode,v=_.qc(this).getOwnerRoot(),h;this.for?h=_.qc(v).querySelector("#"+this.for):h=D.nodeType==Node.DOCUMENT_FRAGMENT_NODE?v.host:D;return h},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(D){D==="entry"?this.show():D==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.qc(this).textContent.trim()===""){for(var D=!0,v=_.qc(this).getEffectiveChildNodes(),h=0;h<v.length;h++)if(v[h].textContent.trim()!==""){D=!1;break}if(D)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var D=this.offset;this.marginTop!=14&&this.offset==14&&(D=this.marginTop);var v=this.offsetParent.getBoundingClientRect(),h=this._target.getBoundingClientRect(),a=this.getBoundingClientRect(),Q=(h.width-a.width)/2,G=(h.height-a.height)/2,x=h.left-v.left,f=h.top-v.top;switch(this.position){case "top":var C=x+Q;var U=f-a.height-D;break;case "bottom":C=x+Q;U=f+h.height+D;break;case "left":C=x-a.width-D;U=f+G;break;case "right":C=x+h.width+
D,U=f+G}this.fitToVisibleBounds?(v.left+C+a.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,C)+"px",this.style.right="auto"),v.top+U+a.height>window.innerHeight?(this.style.bottom=v.height+"px",this.style.top="auto"):(this.style.top=Math.max(-v.top,U)+"px",this.style.bottom="auto")):(this.style.left=C+"px",this.style.top=U+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(D){D!==500&&this.updateStyles({"--paper-tooltip-delay-in":D+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(D){if(D==="entry"&&this.animationEntry!=="")return this.animationEntry;if(D==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[D]&&typeof this.animationConfig[D][0].name==="string"){if(this.animationConfig[D][0].timing&&this.animationConfig[D][0].timing.delay&&this.animationConfig[D][0].timing.delay!==0){var v=this.animationConfig[D][0].timing.delay;D==="entry"?this.updateStyles({"--paper-tooltip-delay-in":v+"ms"}):D==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":v+
"ms"})}return this.animationConfig[D][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var $A4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J($A4,_.xo);var QH9=_.EQ($A4,[0,_.xa]);var Fi=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Fi,_.xo);var G6p=[3,4],VDM=[5,6];var P24=[0,G6p,VDM,_.oI,-1,_.Pu,_.FI,-1,jsA,m7o];var xAb=_.EQ(Fi,P24),MD$=_.Im(P24);var fNp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(fNp,_.xo);var C2J=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(C2J,_.xo);var oa4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(oa4,_.xo);var FT4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(FT4,_.xo);var zCF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(zCF,_.xo);var zX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(zX,_.xo);zX.prototype.getSource=function(){return _.s1(this,1)};
zX.prototype.getMessage=function(){return _.jI(this,4)};
zX.prototype.getData=function(){return _.CL(this,zCF,8)};var UA9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(UA9,_.xo);var Uc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Uc,_.xo);var Lr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Lr,_.xo);var ZQ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(ZQ,_.xo);ZQ.prototype.getUrl=function(){return _.jI(this,1)};
ZQ.prototype.setUrl=function(D){return _.Xx(this,1,D)};
ZQ.prototype.hasUrl=function(){return _.p3(_.J8(this,1))!=null};var LTy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(LTy,_.xo);var ZWR=[3];var Ea4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Ea4,_.xo);var Ec=function(D){var v=new Ea4;return _.oe(v,2,D)};
Ea4.prototype.getLanguage=function(){return HD(this,4,Id)};
var INR=function(D){var v=Ec(1);return _.Nf(v,6,Id,D)},Id=[3,
4,5,6];var gap=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(gap,_.xo);var gP=function(D){var v=new gap;return _.oe(v,1,D)},kM=function(D,v){return _.Nf(D,2,k6F,v)},k6F=[2,
3,4,5];var SOp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(SOp,_.xo);var S8=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(S8,_.xo);var Jy1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Jy1,_.xo);var pu$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(pu$,_.xo);var lNs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(lNs,_.xo);var Nsy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Nsy,_.xo);var YOs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(YOs,_.xo);var Jl=function(D){return _.CL(D,Lr,5)};var Bs4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Bs4,_.xo);Bs4.prototype.getValue=function(){return bT(this,1)};var cym=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(cym,_.xo);var pr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(pr,_.xo);pr.prototype.getMetadata=function(){return _.yF(this,lNs,7,lb)};
pr.prototype.hasMetadata=function(){return _.lT(this,lNs,7,lb)};
var Xu$=_.KM8(pr),lb=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var NB=function(D){this.JSC$12027_name_=D;this.files_=[];this.directories_=[];this.directoryMap_={}};
NB.prototype.getName=function(){return this.JSC$12027_name_};var BF=function(D,v){this.callback_=v;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new NB("");Aym(this,D,this.rootDirectory_);YM(this)},Aym=function(D,v,h){for(var a=0;a<v.length;a++){var Q=v[a];
Q.isFile?(D.fileOps_++,Q.file((0,_.qp)(D.handleFileSuccess_,D,h),(0,_.qp)(D.handleFileError_,D))):D.unscannedDirectories_.push(new qO1(Q,h))}},YM=function(D){if(D.unscannedDirectories_.length>0&&D.directoryOps_<5&&!D.hasError_){D.directoryOps_++;
var v=D.unscannedDirectories_.shift(),h=v.entry,a=new NB(h.name);v=v.parent;v.directoryMap_[a.getName()]=a;v.directories_.push(a);h=h.createReader();h.readEntries((0,_.qp)(D.handleDirectorySuccess_,D,h,a),(0,_.qp)(D.handleDirectoryError_,D))}D.directoryOps_!=0||D.fileOps_!=0||D.unscannedDirectories_.length!=0&&!D.hasError_||D.callback_(D.rootDirectory_.files_,D.rootDirectory_.directories_,D.hasError_)};
BF.prototype.handleDirectorySuccess_=function(D,v,h){Aym(this,h,v);h.length==0?(this.directoryOps_--,YM(this)):D.readEntries((0,_.qp)(this.handleDirectorySuccess_,this,D,v),(0,_.qp)(this.handleDirectoryError_,this))};
BF.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;YM(this)};
BF.prototype.handleFileSuccess_=function(D,v){D.files_.push(v);this.fileOps_--;YM(this)};
BF.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;YM(this)};
var qO1=function(D,v){this.entry=D;this.parent=v};var cF=function(D){_.jZ.call(this);_.s_(D,"drop",this.onObjectsDropped_,!1,this);_.s_(D,"dragenter",this.onFilesDragged_,!1,this);_.s_(D,"dragover",this.onFilesDragged_,!1,this);_.s_(D,"dragleave",this.onDragLeave_,!1,this);_.s_(D,"dragend",this.onDragLeave_,!1,this)};
_.fa(cF,_.jZ);var bWm=function(D,v){_.XI.call(this,"f");this.files=D;this.directories=v};
_.fa(bWm,_.XI);var dA9=function(){_.XI.call(this,"h")};
_.fa(dA9,_.XI);var jHb=function(){_.XI.call(this,"i")};
_.fa(jHb,_.XI);var sH9=function(){_.XI.call(this,"g")};
_.fa(sH9,_.XI);cF.prototype.onObjectsDropped_=function(D){var v=this;D.preventDefault();var h=D.event_.dataTransfer;if((D=h&&h.items)&&D.length>0&&D[0].webkitGetAsEntry){h=[];for(var a=[],Q=0;Q<D.length;Q++){var G=D[Q].webkitGetAsEntry();G?h.push(G):a.push(D[Q])}new BF(h,function(x,f,C){C?v.dispatchEvent(new sH9("Error occurred while reading from the file system.")):v.dispatchEvent(new bWm(x,f,a))})}else(D=h&&h.files)&&this.dispatchEvent(new bWm(Array.from(D),[]))};
cF.prototype.onFilesDragged_=function(D){D.type==="dragenter"&&this.dispatchEvent(new dA9);D.preventDefault()};
cF.prototype.onDragLeave_=function(){this.dispatchEvent(new jHb)};var mAR=function(D,v){this.JSC$12050_name_=D;this.inputElement_=v};
mAR.prototype.getName=function(){return this.JSC$12050_name_};
mAR.prototype.getInputElement=function(){return this.inputElement_};var Xi=function(D,v,h){v=v===void 0?"single_file":v;h=h===void 0?[]:h;_.jZ.call(this);this.overlayTarget_=D;this.parentOverlay_=D!=null?D.parentNode:_.l9("scotty-overlay-parent");this.selectorType_=v;this.acceptTypes_=h;this.overlay_=HW4(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.J(Xi,_.jZ);
var HW4=function(D,v,h,a){var Q=document.createElement("input");Q.setAttribute("type","file");Q.setAttribute("name","Filedata");_.s_(Q,"change",D.onFilesSelected_,!1,D);h==="multiple_file"&&(Q.multiple="true");h==="single_directory"&&(Q.webkitdirectory="true");a.length>0&&Q.setAttribute("accept",a.join(","));Q.style.position="absolute";Q.style.overflow="hidden";Q.style.height="0px";Q.style.width="0px";Q.style.opacity="0";Q.setAttribute("aria-hidden","true");Q.setAttribute("tabIndex",-1);if(D.overlayTarget_!=
null)return Q.style.height=v.offsetHeight+"px",Q.style.width=v.offsetWidth+"px",D.parentOverlay_&&(D.parentOverlay_.style.position="relative"),_.KW(Q,v),rs(Q,new _.HW(v.offsetLeft,v.offsetTop)),Q;D.parentOverlay_.appendChild(Q);return Q};
Xi.prototype.click=function(){this.overlay_.click()};
Xi.prototype.onFilesSelected_=function(D){a:{try{var v=(new XMLHttpRequest).upload!==void 0;break a}catch(U){}v=!1}if(v){var h;D=Array.from((h=D.target.files)!=null?h:[]);h=[];if(this.selectorType_==="single_directory"&&(_.La||$z||_.U1)){h=new NB("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(v=0;v<D.length;v++)for(var a=D[v],Q=a.webkitRelativePath.split("/"),G=h,x=0;x<Q.length;x++){var f=Q[x];if(x==Q.length-1){f!="."&&G.files_.push(a);break}var C=G.directoryMap_[f];C==void 0&&(f=
C=new NB(f),G.directoryMap_[f.getName()]=f,G.directories_.push(f));G=C}h=h.directories_}this.dispatchEvent(new yys(D,h,null))}else D=D.target.value,D.match(/^c:\\fakepath\\/i)&&(D=D.substring(12)),this.dispatchEvent(new yys([],[],new mAR(D,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=HW4(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var yys=function(D,v){_.XI.call(this,"j");this.files=D;this.directories=v};
_.J(yys,_.XI);var wus=function(D){this.uploadUrl_=D};var eCt=function(){_.jZ.call(this)};
_.fa(eCt,_.jZ);var Al=function(D){_.XI.call(this,D)};
_.fa(Al,_.XI);var qB=function(D){_.XI.call(this,D)};
_.fa(qB,_.XI);var na$=function(D,v,h,a,Q){_.jZ.call(this);h=document.createElement("form");h.setAttribute("method",v);h.setAttribute("enctype","multipart/form-data");h.setAttribute("encoding","multipart/form-data");v=document.createElement("input");v.setAttribute("type","hidden");v.setAttribute("name","metadata");v.setAttribute("value",Q);h.appendChild(v);h.appendChild(a);this.JSC$12067_form_=h;D=new _.aN(D);_.Dq(D,"upload_protocol","multipart");this.JSC$12067_url_=D.toString();this.JSC$12067_request_=new EB;this.state_=
"Ready";this.JSC$12067_errorDescription_=null;this.JSC$12067_eventHandler_=new _.or(this);_.Ia(this,this.JSC$12067_eventHandler_);this.JSC$12067_eventHandler_.listen(this.JSC$12067_request_,"success",this.onTransferSuccess_);this.JSC$12067_eventHandler_.listen(this.JSC$12067_request_,"error",this.onTransferError_)};
_.J(na$,eCt);_.V=na$.prototype;_.V.run=function(){this.state_="Transferring";var D=this.JSC$12067_request_,v=this.JSC$12067_form_;if(D.JSC$11485_active_)throw Error("se");var h=new _.aN(this.JSC$12067_url_||v.action);D.JSC$11485_form_=v;v=D.JSC$11485_form_;h=_.TK(h.toString());h!==void 0&&(v.action=h);Z_4(D)};
_.V.getResponseCode=function(){return null};
_.V.getResponseText=function(){return this.JSC$12067_request_&&this.JSC$12067_request_.getResponseText()||null};
_.V.JSC$29485_getErrorDescription=function(){return this.JSC$12067_errorDescription_};
_.V.cancel=function(){this.JSC$12067_request_&&this.JSC$12067_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Al("o"))};
_.V.pause=function(){};
_.V.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Al("l"))};
_.V.onTransferError_=function(){this.JSC$12067_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Al("n"))};var bb=function(){_.OP.call(this)};
_.J(bb,_.OP);bb.prototype.createXhr=function(){var D=_.OP.prototype.createXhr.call(this);D.upload&&(D.upload.onprogress=(0,_.qp)(this.onProgress_,this));return D};
bb.prototype.onProgress_=function(D){this.dispatchEvent(D)};var OW4=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Ts4=function(D,v){var h=D.attempt_+1;
if(D.maxAttempts_>0&&h>D.maxAttempts_)return!1;h==0?v():D.delayCallId_=w9(function(){D.delayCallId_=null;v()},KT1(D),D);
D.attempt_=h;return!0};
OW4.prototype.reset=function(){this.delayCallId_&&_.$L.clearTimeout(this.delayCallId_);this.attempt_=-1};
var KT1=function(D){var v=250*Math.pow(2,D.attempt_);D.maxDelayMs_>=0&&(v=Math.min(v,D.maxDelayMs_));return v};var Uwu=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var dP=function(){_.jZ.call(this);this.JSC$12077_request_=this.state_=null;this.JSC$12077_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12077_bytesTransferred_=0;this.retryIterator_=new OW4;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12077_errorDescription_=null;this.JSC$12077_eventHandler_=new _.or(this);_.Ia(this,this.JSC$12077_eventHandler_);this.JSC$12077_url_=this.blob_=null;this.JSC$12077_method_=void 0;this.chunkSize_=this.JSC$12077_metadata_=
this.JSC$12077_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12077_responseText_=this.JSC$12077_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.fa(dP,eCt);_.V=dP.prototype;_.V.run=function(){j8(this)};
_.V.getResponseCode=function(){return this.JSC$12077_responseCode_};
_.V.getResponseText=function(){return this.JSC$12077_responseText_};
_.V.JSC$29485_getErrorDescription=function(){return this.JSC$12077_errorDescription_};
_.V.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12077_eventHandler_.removeAll();this.JSC$12077_request_&&this.JSC$12077_request_.abort();this.retryIterator_.reset();var D=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(D==="Upload"||D==="Query")D=new bb,D.JSC$9800_withCredentials_=this.JSC$12077_withCredentials_,D.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12077_bytesTransferred_=
0;this.dispatchEvent(new Al("o"))}};
_.V.pause=function(){this.pauseRequested_=!0};
var j8=function(D){var v=D.state_;D.pauseRequested_?(D.pauseRequested_=!1,D.stateAfterUnpausing_=v,D.state_="Paused"):Ts4(D.retryIterator_,function(){switch(D.state_){case "Start":D.JSC$12077_request_=new bb;var h=_.sV.clone(D.JSC$12077_headers_);D.blob_.size!=null&&(h["Content-Length"]=D.blob_.size);h=LJi(h);h["X-Goog-Upload-Protocol"]="resumable";h["X-Goog-Upload-Command"]="start";D.JSC$12077_eventHandler_.removeAll();D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"complete",D.onStartComplete_);
D.JSC$12077_request_.JSC$9800_withCredentials_=D.JSC$12077_withCredentials_;D.JSC$12077_request_.send(D.JSC$12077_url_,D.JSC$12077_method_,D.JSC$12077_metadata_,h);D.lastCommandResponseCode_=null;D.dispatchEvent(new qB("q"));break;case "Upload":h=D.transferHandle_.uploadUrl_;var a=D.blob_.size;if(Rlb()){var Q=D.chunkSize_;var G=D.offset_+Q>=a;a=Tf4(D.blob_,D.offset_,G?a:D.offset_+Q)}else D.offset_=0,a=D.blob_,G=!0;D.JSC$12077_request_=new bb;D.JSC$12077_request_.JSC$9800_withCredentials_=D.JSC$12077_withCredentials_;
D.JSC$12077_eventHandler_.removeAll();D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"progress",D.onUploadProgress_);Q=(0,_.qp)(D.JSC$12079_onUploadComplete_,D,D.offset_+a.size,G);D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"complete",Q);D.lastCommandResponseCode_=null;D.dispatchEvent(new qB("q"));G=Object.assign({},D.JSC$12077_headers_||{},{"X-Goog-Upload-Command":"upload"+(G?", finalize":""),"X-Goog-Upload-Offset":D.offset_});D.JSC$12077_request_.send(h,"POST",a,G);break;case "Query":D.JSC$12077_request_=
new bb;D.JSC$12077_eventHandler_.removeAll();D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"complete",D.onQueryComplete_);h=Object.assign({},D.JSC$12077_headers_||{},{"X-Goog-Upload-Command":"query"});D.JSC$12077_request_.send(D.transferHandle_.uploadUrl_,"POST","",h);D.lastCommandResponseCode_=null;D.dispatchEvent(new qB("q"));break;default:throw Error("hf");}})||sc(D,"Transfer encountered too many consecutive failures.")},sc=function(D,v){D.state_="Error";
D.JSC$12077_errorDescription_=v;D.dispatchEvent(new Al("n"))};
dP.prototype.onStartComplete_=function(D){var v=D.target;this.lastCommandResponseCode_=v.getStatus();this.dispatchEvent(new qB("r"));if(RCt(v))iWR(this,v);else if(WT9(v)){D=$H(D.target.getAllResponseHeaders());for(var h in D)_.Gu(h.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Al("m"));h=dd(D,"X-Goog-Upload-URL");D=(D=dd(D,"X-Goog-Upload-Chunk-Granularity"))?parseInt(D,10):1;h===void 0||isNaN(D)||D<=0?sc(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
D)*D,this.transferHandle_=new wus(h),this.dispatchEvent(new Al("p")),this.state_="Upload",this.retryIterator_.reset(),j8(this))}else j8(this)};
dP.prototype.onUploadProgress_=function(D){this.JSC$12077_bytesTransferred_=this.offset_+D.loaded;this.dispatchEvent(new Al("k"))};
dP.prototype.JSC$12079_onUploadComplete_=function(D,v,h){var a=this,Q,G;return _.M(function(x){switch(x.nextAddress){case 1:Q=h.target;a.lastCommandResponseCode_=Q.getStatus();a.dispatchEvent(new qB("r"));if(tDM(Q)||Q.getStatus()==404)return a.JSC$12077_bytesTransferred_=D,iWR(a,Q),x.return();if(WT9(Q)){x.jumpTo(2);break}if(!(G=a.detectCorruptedBlobEnabled_)){x.jumpTo(3);break}return x.yield(ry4(a),4);case 4:G=x.yieldResult;case 3:if(G)return sc(a,"Blob has been modified or corrupted."),x.return();
a.requireUploadRequestModification_=Q.getStatus()==400;a.state_="Query";j8(a);return x.return();case 2:if(v)return sc(a,"Got a non-final success response after issuing a finalize command."),x.return();a.JSC$12077_bytesTransferred_=D;a.offset_=D;a.retryIterator_.reset();j8(a);return x.return()}})};
dP.prototype.onQueryComplete_=function(D){var v=D.target;this.lastCommandResponseCode_=v.getStatus();this.dispatchEvent(new qB("r"));RCt(v)?(v.getStatus()===200&&(this.JSC$12077_bytesTransferred_=this.blob_.size),iWR(this,v)):WT9(v)?(D=$H(D.target.getAllResponseHeaders()),D=parseInt(dd(D,"X-Goog-Upload-Size-Received"),10),isNaN(D)?sc(this,"Server did not respond with current offset."):D<this.offset_?sc(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
D+"."):this.requireUploadRequestModification_&&this.offset_===D?sc(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<D&&this.retryIterator_.reset(),this.offset_=this.JSC$12077_bytesTransferred_=D,this.state_="Upload",j8(this))):j8(this)};
var iWR=function(D,v){D.JSC$12077_responseCode_=v.getStatus();var h=$H(v.getAllResponseHeaders());ZyI(h);D.JSC$12077_responseText_=v.getResponseText();D.state_="Response received";D.dispatchEvent(new Al("l"))},WT9=function(D){var v=D.getStatus();
D=$H(D.getAllResponseHeaders());D=dd(D,"X-Goog-Upload-Status");return v===200&&D==="active"},tDM=function(D){D=$H(D.getAllResponseHeaders());
return dd(D,"X-Goog-Upload-Status")==="final"},RCt=function(D){if(tDM(D))return!0;
D=D.getStatus();return D>=400&&D<500},ry4=function(D){var v;
return _.M(function(h){if(h.nextAddress==1){if(!D.blob_||D.originalBlobSize_<=0)return h.return(!1);if(D.blob_.size!==D.originalBlobSize_)return h.return(!0);_.gE(h,2);if(v=Tf4(D.blob_,0,1)){var a=h.yield,Q=new hx,G=Bxt(Q);Q.reader_.readAsBinaryString(v);h=a.call(h,G,4)}else h=h.return(!0);return h}if(h.nextAddress!=2)return h.return(D.blob_.size!==D.originalBlobSize_);_.NS(h);return h.return(!0)})};var u_4=function(D,v,h,a,Q,G){_.jZ.call(this);this.payload_=a;this.JSC$12080_url_=D;this.JSC$12080_method_=v;this.JSC$12080_headers_=h;this.JSC$12080_metadata_=Q;this.encoding_=G||"binary";D=new _.wm;this.boundary_="uploader-"+WQ()+"-"+D.JSC$11334_toIsoString();this.JSC$12080_responseText_=this.JSC$12080_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12080_errorDescription_=null;this.JSC$12080_eventHandler_=new _.or(this);_.Ia(this,this.JSC$12080_eventHandler_)};
_.J(u_4,eCt);_.V=u_4.prototype;
_.V.run=function(){var D=_.sV.clone(this.JSC$12080_headers_);this.payload_.length!=null&&(D["Content-Length"]=this.payload_.length);D=LJi(D);D["X-Goog-Upload-Protocol"]="multipart";D["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new bb;this.JSC$12080_eventHandler_.removeAll();this.JSC$12080_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12080_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12080_url_,this.JSC$12080_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12080_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",D)};
_.V.getResponseCode=function(){return this.JSC$12080_responseCode_};
_.V.getResponseText=function(){return this.JSC$12080_responseText_};
_.V.JSC$29485_getErrorDescription=function(){return this.JSC$12080_errorDescription_};
_.V.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12080_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Al("o")))};
_.V.pause=function(){};
_.V.onTransferProgress_=function(){this.dispatchEvent(new Al("k"))};
_.V.onTransferComplete_=function(D){var v=D.target.getStatus();v===void 0||v===-1?(this.JSC$12080_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Al("n"))):(this.JSC$12080_responseCode_=v,D=D.target,v=$H(D.getAllResponseHeaders()),ZyI(v),this.JSC$12080_responseText_=D.getResponseText(),this.state_="Complete",this.dispatchEvent(new Al("l")))};_.DEs=function(D,v,h,a){a=a===void 0?!1:a;if(h instanceof mAR)return new na$(D,"POST",v,h.getInputElement(),"");if(typeof h==="string"||h instanceof String)return new u_4(D,"POST",v,h,"");var Q=new dP(void 0);Q.JSC$12077_url_=D;Q.JSC$12077_method_="POST";Q.JSC$12077_headers_=v;Q.blob_=h;Q.originalBlobSize_=h.size;Q.JSC$12077_metadata_="";a&&(Q.JSC$12077_withCredentials_=a);Q.state_="Start";return Q};var m4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(m4,_.xo);_.V=m4.prototype;_.V.getEnableSsEngine=function(){return _.q6(this,2)};
_.V.getEnableAwr=function(){return _.q6(this,3)};
_.V.getAlohaAutoGaRollout=function(){return _.q6(this,5)};
_.V.getEnableConfigurator=function(){return _.q6(this,6)};
_.V.getEnableMweb=function(){return _.q6(this,7)};
var hDJ=function(){var D=vyM();return _.si(D,7,!0)};
m4.prototype.getEnableCtlConsentCheckbox=function(){return _.q6(this,8)};
m4.prototype.getEnableIframe=function(){return _.q6(this,9)};
var vyM=function(){var D=new m4;D=_.si(D,5,!0);D=_.si(D,2,!0);D=_.si(D,4,!1);D=_.si(D,8,!0);return _.si(D,9,!0)};
m4.prototype.getEnableScreenshotNudge=function(){return _.q6(this,10)};
var aBR=function(){var D=hDJ();return _.si(D,10,!0)};
m4.prototype.getEnableWebStartupConfigEndpoint=function(){return _.q6(this,11)};
m4.prototype.getEnableJunkNudge=function(){return _.q6(this,12)};
var sWu=function(){var D=aBR();return _.si(D,12,!0)};
_.V=m4.prototype;_.V.getEnableConfiguratorLocale=function(){return _.q6(this,13)};
_.V.getEnableTinyNoPointer=function(){return _.q6(this,14)};
_.V.getEnableSupportSessionLogging=function(){return _.q6(this,15)};
_.V.getEnableFileUploadForScreenshot=function(){return _.q6(this,16)};
_.V.getEnableDirectDeflectionForSingleCategory=function(){return _.q6(this,17)};
_.V.getEnableImageSanitization=function(){return _.q6(this,18)};
_.V.getEnableAlohaBinarySplit=function(){return _.q6(this,19)};
_.V.getEnableDbFeedbackIntents=function(){return _.q6(this,20)};
_.V.getEnableMarkMandatoryFieldsWithRequired=function(){return _.q6(this,21)};
_.V.getEnableFeedbackCategoryCustomUi=function(){return _.q6(this,22)};
_.V.getEnableRealtimeCtl=function(){return _.q6(this,23)};var jWI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(jWI,_.xo);var E9u=[/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 g9c="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 k0O=_.DK(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Sj2=_.DK(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var pwo,YjA,llc,Btr;var $E4,QIR;
$E4=function(D,v,h){D.timeOfStartCall=(new Date).getTime();var a=h||_.$L,Q=a.document,G=D.nonce||_.vp(a.document);G&&!D.nonce&&(D.nonce=G);if(D.flow=="help"){var x=_.T3("document.location.href",a);!D.helpCenterContext&&x&&(D.helpCenterContext=x.substring(0,1200));x=!0;if(v&&JSON&&JSON.stringify){var f=JSON.stringify(v);(x=f.length<=1200)&&(D.psdJson=f)}x||(v={invalidPsd:!0})}v=[D,v,h];a.GOOGLE_FEEDBACK_START_ARGUMENTS=v;h=D.feedbackServerUri||"//www.google.com/tools/feedback";if(x=a.GOOGLE_FEEDBACK_START)x.apply(a,v);
else{a=h+"/load.js?";for(var C in D)v=D[C],v==null||_.Ro(v)||(a+=encodeURIComponent(C)+"="+encodeURIComponent(v)+"&");D=cW(Q).createElement("SCRIPT");G&&D.setAttribute("nonce",G);_.Ge(D,_.XY(a));Q.body.appendChild(D)}};
QIR=function(D,v,h,a){var Q,G;_.M(function(x){Q=h||_.$L;var f=D.serverEnvironment==="DEV",C=h||_.$L;C=D.nonce||_.vp(C.document);f={integrationKeys:{productId:D.productId,feedbackBucket:D.bucket,triggerId:D.triggerId},callbacks:{onClose:D.callback,onLoad:D.onLoadCallback},formContent:{locale:D.locale,disableScreenshot:D.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:D.abuseLink,additionalDataConsent:D.additionalDataConsent},initializationData:{isLocalServer:f,nonce:C,useNightlyRelease:f,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:D.feedbackServerUri,colorScheme:D.colorScheme},extraData:{productVersion:D.productVersion,authUser:D.authuser,configuratorId:D.configuratorId,customZIndex:D.customZIndex,tinyNoPointer:D.tinyNoPointer,
allowNonLoggedInFeedback:D.allowNonLoggedInFeedback,enableAnonymousFeedback:D.enableAnonymousFeedback}};v&&(C=new Map(Object.entries(v)),f.extraData.productSpecificData=C);G=f;return x.yield(qjf(G,a,Q),0)})};
_.GrJ=function(D,v,h){try{if(D.flow==="help"){var a=D.helpCenterPath.replace(/^\//,"");_.Dx(h||window,"https://support.google.com/"+a)}else D.flow==="submit"?$E4(D,v,h):mwc(D.productId,D.feedbackServerUri).then(function(Q){Q=_.CL(Q,m4,1);var G=!DZo||(Q==null?void 0:Q.getEnableMweb()),x=!D.tinyNoPointer||(Q==null?void 0:Q.getEnableTinyNoPointer());!Q||Q.getAlohaAutoGaRollout()&&G&&x?QIR(D,v,h,Q):$E4(D,v,h)},function(Q){Q&&Q.name!=="DuplicateFormError"&&$E4(D,v,h)})}catch(Q){QIR(D,v,h,null)}};
_.Gm("userfeedback.api.startFeedback",_.GrJ);var Hy2=/https?:\/\/\S+\.\S+/,yec=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],wwI=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var fC8=function(D){var v=D.split(""),h=[-263237435,15,v,function(a,Q,G){var x=Q.length;G.forEach(function(f,C,U){this.push(U[C]=Q[(Q.indexOf(f)-Q.indexOf(this[C])+C+x--)%Q.length])},a.split(""))},
function(a,Q){a=(a%Q.length+Q.length)%Q.length;Q.splice(-a).reverse().forEach(function(G){Q.unshift(G)})},
"response",function(){for(var a=64,Q=[];++a-Q.length-32;){switch(a){case 58:a-=14;case 91:case 92:case 93:continue;case 123:a=47;case 94:case 95:case 96:continue;case 46:a=95}Q.push(String.fromCharCode(a))}return Q},
null,12,1540023973,65941107,null,v,function(a,Q){for(a=(a%Q.length+Q.length)%Q.length;a--;)Q.unshift(Q.pop())},
695603893,function(a){for(var Q=a.length;Q;)a.push(a.splice(--Q,1)[0])},
"'[;'[(",function(a,Q){a.push(Q)},
null,function(a,Q,G,x,f){return Q(G,x,f)},
"continuation",v,function(a,Q){if(a.length!=0){Q=(Q%a.length+a.length)%a.length;var G=a[0];a[0]=a[Q];a[Q]=G}},
function(){for(var a=64,Q=[];++a-Q.length-32;){switch(a){case 91:a=44;continue;case 123:a=65;break;case 65:a-=18;continue;case 58:a=96;continue;case 46:a=95}Q.push(String.fromCharCode(a))}return Q},
'"),/]];'];h[7]=h;h[11]=h;h[18]=h;try{(((0,h[15])(h[21]),h[22])(h[11],h[9]),h[22])(h[new Date("1970-01-01T04:30:12.000+04:30")/1E3],h[1]),((0,h[22])(h[11],h[23]),h[4])(h[10],h[18]),(0,h[20])(h[21],h[14])<<(0,h[17])(h[18],h[1]),(0,h[4])(h[8],h[21]),(0,h[19])((0,h[19])((0,h[17])(h[7],h[9]),h[3],h[20],(0,h[6])(),h[2]),h[3],h[5],(0,h[15])(),h[2])}catch(a){return"aTlOUOubTO4AP____8P_"+D}return v.join("")};_.VZb=new _.z0("runAttestationCommand");var PnJ=new _.z0("verifyCommand");_.BO=new _.z0("accessibilityContext");var xEF=new _.z0("accessibilityData");var MZJ=new _.z0("profileCardCommand");var L1u=new _.z0("signInEndpoint");var Unf=new _.z0("signOutEndpoint");var Cn1;_.fBt=new _.z0("accountItemSectionRenderer");Cn1=new _.z0("accountItemRenderer");_.oy9=new _.z0("saveCommandToSessionStorageAction");var FF1=new _.z0("crossAccountChannelTransferEndpoint");var Cxi=new _.z0("getAccountMenuEndpoint");_.o8q=new _.z0("getAccountSwitcherEndpoint");var fro=new _.z0("getAccountsListEndpoint");var zDm=new _.z0("getAccountsListInnertubeEndpoint");_.HF=new _.z0("addToToastAction");var UEF=new _.z0("hideEnclosingAction");_.yo=new _.z0("replaceEnclosingAction");var LF1=new _.z0("buttonRefreshAction");var ZDM=new _.z0("adsControlFlowOpportunityReceivedCommand");var Eyp=new _.z0("openAdAllowlistInstructionCommand");var IB1=new _.z0("videoMastheadAdPrimaryVideoRenderer");var gyJ=new _.z0("displayAdRenderer");_.krm=new _.z0("inFeedAdLayoutRenderer");var SPM=new _.z0("sequenceItemInPlayerAdLayoutRenderer");_.JJJ=new _.z0("adSlotRenderer");var pZF=new _.z0("adAvatarViewModel");var lBJ=new _.z0("adBadgeViewModel");var N94=new _.z0("adButtonViewModel");var YPM=new _.z0("adImageViewModel");var X3I=new _.z0("reelsAdCardButtonedViewModel");var B9y=new _.z0("reelsPlayerOverlayLayoutViewModel");var cJm=new _.z0("showSchedulingPanelCommand");var XZs=new _.z0("backstageCommentsRenderer");var AJb=new _.z0("backstageImageRenderer");var qP1=new _.z0("backstagePostRenderer");var bD4=new _.z0("backstageZeroStateRenderer");var dEp=new _.z0("postRenderer");var jI$=new _.z0("sharedPostRenderer");var sIM=new _.z0("createBackstagePostEndpoint");var mEF=new _.z0("getPostVideoPreviewEndpoint");var HD9=new _.z0("updateBackstagePostEndpoint");var yJR=new _.z0("filterChipTransformCommand");var wZ4=new _.z0("insertRichSectionCommand");var N5o=new _.z0("talkToRecsDeselectCommand");var c42=new _.z0("talkToRecsNextCommand");var l7c=new _.z0("talkToRecsSelectCommand");var eDy=new _.z0("talkToRecsUpdateTextCommand");_.YV=new _.z0("browseEndpoint");_.nyF=new _.z0("confirmDialogEndpoint");var ODs=new _.z0("expandOnHoverCardRenderer");var KFJ=new _.z0("lumiereShelfDetailsRenderer");var T9F=new _.z0("revealBusinessEmailCommand");var RD$=new _.z0("validateChannelHandleCommand");var iDR=new _.z0("channelCreationFormEndpoint");var WFR=new _.z0("aboutChannelViewModel");var tZM=new _.z0("channelThumbnailWithLinkRenderer");var rJy=new _.z0("channelCreationServiceEndpoint");var uI9=new _.z0("updateChannelPageSettingsEndpoint");var wP=function(D){this.delegate=D},e8=function(){wP.apply(this,arguments)};
_.J(e8,wP);_.GT.Object.defineProperties(e8.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(D){this.delegate.entityMetadata=D}}});var DC9=function(){e8.apply(this,arguments)};
_.J(DC9,e8);DC9.prototype.getAssociations=function(){return[]};
DC9.prototype.getTypeName=function(){return"channelHandle"};var LQL=new _.z0("webThumbnailDetailsExtensionData");var btI=new _.z0("commandContext");var vN4=new _.z0("addVideoLinkAction");var hwF=new _.z0("banAuthorAction");var a5J=new _.z0("createCommentAction");var $Cb=new _.z0("createCommentReplyAction");var Qvb=new _.z0("createPollAction");var GqM=new _.z0("hideIdentityChipAction");var Vv4=new _.z0("openUpdateCommentDialogAction");var PE4=new _.z0("pinCommentAction");var xCs=new _.z0("removeCommentAction");var MvR=new _.z0("unpinCommentAction");var nr=new _.z0("updateBackstagePollAction");var f5s=new _.z0("updateCommentVoteAction");var CEM=new _.z0("commentThreadRenderer");var oN1=function(){e8.apply(this,arguments)};
_.J(oN1,e8);oN1.prototype.getAssociations=function(){return[]};
oN1.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var FDy=function(){e8.apply(this,arguments)};
_.J(FDy,e8);FDy.prototype.getAssociations=function(){return[]};
FDy.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.zwM=new _.z0("commentDialogRenderer");var UC4=new _.z0("reloadCommentsCommand");var LDm=new _.z0("updateCommentsSettingsEndpoint");var ZX9=new _.z0("commentViewModel");var ENs=new _.z0("triStateButtonViewModel");var I5p=new _.z0("voiceReplyContainerViewModel");_.IN=new _.z0("commandExecutorCommand");var O_=new _.z0("emoji");var gNJ=new _.z0("updateCreatorChannelInnertubeCommand");_.kqM=new _.z0("appendContinuationItemsAction");_.SGJ=new _.z0("changeEngagementPanelVisibilityAction");_.iL=new _.z0("continuationCommand");var JFm=new _.z0("hideReportedCommentAction");var p9s=new _.z0("listMutationCommand");_.Oc=new _.z0("openPopupAction");var l5t=new _.z0("persistSubscriptionsDisplayPreferencesCommand");var bX4;_.NI$=new _.z0("playlistRemoveVideosAction");_.YGp=new _.z0("updatePlaylistAction");_.BI$=new _.z0("addToPlaylistCommand");_.cFm=new _.z0("endPlaylistCommand");_.X9t=new _.z0("recoverPlaylistCommand");_.AFm=new _.z0("refreshPlaylistCommand");_.qGt=new _.z0("refreshFormCommand");bX4=new _.z0("openOnePickAddVideoModalCommand");_.E8u=new _.z0("reloadContinuationItemsCommand");_.dC4=new _.z0("scrollToEngagementPanelCommand");var jvM=new _.z0("selectCountryCommand");var svp=new _.z0("showReloadUiCommand");var mC1=new _.z0("undoFeedbackAction");var HXp=new _.z0("updateButtonAction");var yFm=new _.z0("updateSubscribeButtonAction");var w9$=new _.z0("updateToggleAction");var ew4=new _.z0("webNativeShareCommand");_.Sa=new _.z0("webCommandMetadata");_.Kr=new _.z0("webHandleServiceEndpointExtension");var orc=new _.z0("webNavigationEndpointData");var nNp=new _.z0("backgroundAudioPlaybackCommand");var OXp=new _.z0("copyLinkCommand");var KDJ=new _.z0("playlistVotingRefreshPopupCommand");var TI9=new _.z0("selectChipCommand");var Rw1=new _.z0("setCookieCommand");var iXR=new _.z0("setLocalStorageCommand");var WD4=new _.z0("setPrefStorageEntryCommand");var Dwt;_.tvb=new _.z0("settingsUpdateCheckboxCommand");_.rF4=new _.z0("settingsUpdateTextCommand");_.uWJ=new _.z0("settingsUpdateOptionsCommand");Dwt=new _.z0("settingsUpdateSwitchCommand");_.v9p=new _.z0("settingsUpdateConnectedAppRendererCommand");var hgR=new _.z0("showCreatorChatbotEngagementPanelCommand");var als=new _.z0("updateTextInputFormFieldRendererCommand");var $w$=new _.z0("updateToggleButtonStateCommand");var QWM=new _.z0("updateUrlParamCommand");var G0$=new _.z0("webSubmitFormCommand");var Vn1=new _.z0("channelSwitcherPageRenderer"),PYt=new _.z0("updateChannelSwitcherPageAction");_.aQ=new _.z0("continuationItemRenderer");_.TX=new _.z0("richItemRenderer");var xwp=new _.z0("richSectionRenderer");_.Mn9=new _.z0("richShelfRenderer");_.fl$=new _.z0("metadataBadgeRenderer");_.CYb=new _.z0("multiPageMenuNotificationSectionRenderer");_.o9$=new _.z0("playlistLoopButtonStateRenderer");var FJF=new _.z0("claimLegacyYoutubeChannelEndpoint");var zgp=new _.z0("getNotificationMenuEndpoint");var Uwy=new _.z0("getSearchInVideoCommand");_.LJM=new _.z0("getTranscriptEndpoint");_.kE=new _.z0("signalServiceEndpoint");var ZyR=new _.z0("verifyAgeEndpoint");var FUO=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(FUO,_.xo);FUO.prototype.getPath=function(){return _.jI(this,1)};
FUO.prototype.getValue=function(){return _.jI(this,2)};var E9y=[0,_.$a,-1];var Il$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Il$,_.xo);var oOq=_.EQ(Il$,[0,_.Va,E9y]);var g9b=new _.z0("dismissalEndpoint");var k0$=new _.z0("elementsCommand");_.Tz=new _.z0("innertubeCommand");var Sjt=new _.z0("multipleInlinePlaybackCommand");var tUf=new _.z0("loggingDirectives");var JeJ=new _.z0("acknowledgeChannelTouStrikeCommand");var pw4=function(){e8.apply(this,arguments)};
_.J(pw4,e8);pw4.prototype.getAssociations=function(){return[]};
pw4.prototype.getTypeName=function(){return"booleanEntity"};var llJ=function(){e8.apply(this,arguments)};
_.J(llJ,e8);llJ.prototype.getAssociations=function(){return[]};
llJ.prototype.getTypeName=function(){return"stringEntity"};var $e=new _.z0("entityBatchUpdate");_.B5I=new _.z0("entityUpdateCommand");var NtM=function(){e8.apply(this,arguments)};
_.J(NtM,e8);NtM.prototype.getAssociations=function(){var D=[];this.delegate.alternateChannel&&D.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&D.push.apply(D,_.j_(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&D.push(this.delegate.oneofChannelEntity);return[].concat(_.j_(new Set(D)))};
NtM.prototype.getTypeName=function(){return"fakeChannel"};var Yjm=function(){e8.apply(this,arguments)};
_.J(Yjm,e8);Yjm.prototype.getAssociations=function(){var D=[];this.delegate.entryCollection&&D.push(this.delegate.entryCollection);return[].concat(_.j_(new Set(D)))};
Yjm.prototype.getTypeName=function(){return"fakePlaylist"};
var Bt1=function(){e8.apply(this,arguments)};
_.J(Bt1,e8);Bt1.prototype.getAssociations=function(){var D=[];this.delegate.parentPlaylist&&D.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var v=_.P(this.delegate.entries),h=v.next();!h.done;h=v.next())D.push.apply(D,_.j_((new cey(h.value)).getAssociations()));return[].concat(_.j_(new Set(D)))};
Bt1.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var cey=function(){wP.apply(this,arguments)};
_.J(cey,wP);cey.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);return[].concat(_.j_(new Set(D)))};var Xwt=function(){e8.apply(this,arguments)};
_.J(Xwt,e8);Xwt.prototype.getAssociations=function(){var D=[];this.delegate.descriptionEntity&&D.push(this.delegate.descriptionEntity);this.delegate.creators&&D.push.apply(D,_.j_(this.delegate.creators));this.delegate.theBiggestFan&&D.push(this.delegate.theBiggestFan);return[].concat(_.j_(new Set(D)))};
Xwt.prototype.getTypeName=function(){return"fakeVideo"};
var Ae4=function(){e8.apply(this,arguments)};
_.J(Ae4,e8);Ae4.prototype.getAssociations=function(){return[]};
Ae4.prototype.getTypeName=function(){return"fakeVideoDescription"};var qj9=new _.z0("fantasyRosterViewModel");var bym=new _.z0("addFollowUpSurveyCommand");var dw4=new _.z0("getSurveyCommand");var jWR=new _.z0("ratingSurveyOptionRenderer");_.bp=new _.z0("feedbackEndpoint");var sWy=new _.z0("reportHistoryTableCellRenderer"),mwJ=new _.z0("reportHistoryTableTextCellRenderer"),Hyt=new _.z0("reportHistoryTableReasonCellRenderer");_.yeb=new _.z0("flagEndpoint");var wwR=new _.z0("getFlowCommand");var egJ=new _.z0("submitFormWithValidationFlowCommand");var n9F=function(){e8.apply(this,arguments)};
_.J(n9F,e8);n9F.prototype.getAssociations=function(){return[]};
n9F.prototype.getTypeName=function(){return"flowStateEntity"};var Oym=new _.z0("flowFormState");var KJs=new _.z0("gameCardRenderer");var Ttb=new _.z0("accountLinkingStateChangedCommand");var Rgt=function(){e8.apply(this,arguments)};
_.J(Rgt,e8);Rgt.prototype.getAssociations=function(){return[]};
Rgt.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var iy1=new _.z0("changeMiniAppPlayStateCommand");var WJR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(WJR,_.xo);var Rd=[1,2,3];var tnJ=[0,Rd,AGf,_.G6,l9r];var reR=_.EQ(WJR,tnJ),u74=_.Im(tnJ);var D_F=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(D_F,_.xo);var vs$=[0,_.rY,_.$a];var hhy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(hhy,_.xo);var a$1=[0,_.$a,_.rY,-1];var ib=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(ib,_.xo);var $_M=_.Im([0,1,vs$,_.xa,a$1]);var Q5J=new _.z0("miniAppScoreChallengeViewModel");var Gc4=new _.z0("miniGameCardViewModel");var Vyt=new _.z0("teaserCardViewModel");var Prb=function(){e8.apply(this,arguments)};
_.J(Prb,e8);Prb.prototype.getAssociations=function(){return[]};
Prb.prototype.getTypeName=function(){return"logoEntity"};var x_4=new _.z0("feedbackItemRenderer");var Mys=function(){e8.apply(this,arguments)};
_.J(Mys,e8);Mys.prototype.getAssociations=function(){return[]};
Mys.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.f$J=new _.z0("playerInterstitialRenderer");var Cry=new _.z0("getKidsBlocklistPickerCommand");_.osb=new _.z0("updateKidsBlacklistEndpoint");_.nS=new _.z0("likeEndpoint");var FGs,zhb,U_s;FGs=new _.z0("addChatItemAction");zhb=new _.z0("removeChatItemAction");U_s=new _.z0("markChatItemAsDeletedAction");_.LGJ=new _.z0("setLiveChatCollapsedStateAction");var Z6$=function(){e8.apply(this,arguments)};
_.J(Z6$,e8);Z6$.prototype.getAssociations=function(){return[]};
Z6$.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Esm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Esm,_.xo);var I$F=[0,_.Va,[0,[1,2],_.G6,_.Pu,[0,_.Qa,1,_.Qa]]];var gsR=[0,_.$a,-1];var kc9=[0,[1],_.G6];var WF=[0,[1,2],_.G6,_.Pu,[0,_.xa]];var tl=[0,_.$a];var SZF=[0,[0,_.hy,_.vu,[0,_.Qa,_.MA,_.Qa]],1,[0,_.hy]];var JTs=[0,uT];var pN4=[0,uT];var l$t=[0,pN4,JTs];var Nm4=[0,_.Va,[0,[1,2],_.G6,-1],_.hy];var YZJ=[0,[2],1,_.Pu,[0,_.Qa,-1,Nm4]];var Bm$=[0,[1],_.Pu,[0,_.Qa,_.$a,_.MA,1,Nm4]];var cTp=[0,_.vu,-1,por,_.xa];var XNb=[0,[0,t8,-3],-4];var rP=[0,_.hy,-3,_.$a,_.hy,_.oI,_.hy,I$F,_.hy,-2];var ub=[0,_.Va,[0,[1,2],_.G6,-1],_.hy,_.$a];var ATm=[0,[3],WF,[0,[2,3,4],Hi8,_.G6,-2],_.Pu,[0,_.$a],_.rY];var qZ4=[0,[3,5],_.$a,DN,_.Pu,[0,1,_.rY,_.xa],_.xa,_.Pu,[0,_.xa,_.rY]];var b6m=[0,2,DN,_.$a,-1];var d_M=[0,cGi];var j51=[0,[3,4],2,NAL,_.G6,_.$a];var s5t=[0,_.xa,-2,1,_.$a];var m_b=[0,_.$a,-1,_.xa];var H64=[0,tl,function(){return DE},
tl,_.$a],yTp=[0,_.xa,tl,WF,function(){return DE},
_.$a],DE=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],tl,DN,[0,_.hy,1,_.hy,1,_.hy,1,_.xa,-1,tl],[0,1,_.hy,2,_.hy,_.xa,_.hy],1,DN,-1,_.$a,DN,2,t8,[0,t8,DN],_.$a,1,SZF,1,WF,_.oI,1,[0,[0,_.Va,[0,_.$a,_.hy,_.xa]]],[0,_.hy,[0,_.rY,[0,_.MA]],_.rY,1,[0,YgO,-1]],_.$a,[0,1,_.$a],76,_.Pu,[0,WF,ub,SZF,1,[0,_.Va,ub]],1,_.Pu,[0,WF,_.$a,_.hy],_.Pu,
[0,WF,kc9],_.Pu,[0,WF,kc9,DN],_.Pu,[0,WF,kc9],_.Pu,[0,WF,_.Va,tl,WF,qg8],_.Pu,[0,WF,tl,_.$a],_.Pu,[0,WF,_.hy,rP,-1,_.hy],4,_.Pu,[0,WF,_.hy,DN,rP,_.hy],_.Pu,[0,[4,9],WF,_.xa,DN,_.G6,ub,1,SZF,_.$a,_.G6,s5t],_.Pu,[0,WF,tl,WF,_.xa,_.$a],_.Pu,[0,_.hy,WF,rP,_.hy,_.$a],_.Pu,[0,WF,tl,WF,_.xa,_.$a],1,_.Pu,[0,WF,_.xa,_.$a,rP],_.Pu,[0,WF,_.xa,[0,_.$a,DN],_.$a,DN,_.$a,sso,-2,3,m_b,_.Va,m_b,m_b,s5t],_.Pu,[0,WF,_.xa,Bm$,_.Va,[0,pN4,YZJ],tl,_.Va,l$t,_.$a,1,_.xa,cTp,XNb,JGq,-1],_.Pu,[0,WF,[0,_.MA,-1,Bm$,_.Va,[0,
pN4,YZJ,JTs],[0,_.FI],1,_.Qa],tl,_.$a],_.Pu,[0,WF,ub,_.$a,[0,_.vu]],_.Pu,function(){return yTp},
_.Pu,[0,WF,DN,_.$a,-1,_.hy],_.Pu,[0,[6,7],WF,_.Va,b6m,_.xa,ub,1,_.Pu,j51,_.Pu,d_M],_.Pu,[0,_.Va,b6m,_.xa,_.hy],_.Pu,[0,_.$a,bV1,-1],_.Pu,[0,tl,_.Va,l$t,_.$a],_.Pu,[0,WF,tl,_.$a],_.Pu,[0,sso,_.$a],_.Pu,[0,gsR],_.Pu,[0,gsR],_.Pu,[0,ub],_.Pu,[0,tl,ub],_.Pu,function(){return H64},
_.Pu,[0,tl,_.$a],_.Pu,[0,tl,_.$a],1,_.Pu,[0,_.hy,WF,rP,_.hy,rP],_.Pu,[0,_.FI],1,_.Pu,[0],1,_.Pu,[0,tl,_.xa,WF,_.xa],_.Pu,[0,[1,2],_.Pu,j51,_.Pu,d_M,DN],_.Pu,[0,_.FI,ub,qZ4,_.$a,DN],_.Pu,[0,qZ4,_.$a,DN],_.Pu,[0,cTp,ub,_.hy,XNb],_.Pu,ATm,_.Pu,[0],_.Pu,[0,_.$a,-1,_.rY],_.Pu,[0,tl,_.$a],_.Pu,[0,ATm,_.rY,_.$a],_.Pu,[0,WF,rP,_.hy],_.Pu,[0,WF,rP,_.hy],_.Pu,[0,cTp,XNb,ub,_.oI,_.hy,JGq,-1],_.Pu,[0,WF,rP,_.hy]];var wNp=[0,_.Va,DE];var eh1=_.EQ(Esm,[0,1,_.rY,[0,[18,22,24],wNp,3,[0,wNp],1,_.rY,[0,_.Va,[0,DN,t8],DN],1,DE,-1,[0,_.aH,-2,_.oI,_.aH,-1,_.oI,_.aH,I$F,_.aH,-2],k28,[!0,_.$a,[0,kc9,2,_.$a,DN,_.hy,2,_.$a,sso]],[0,[1,2,3],[5,6],_.Pu,[0,_.Qa],_.Pu,[0,_.Qa,-1],_.Pu,[0,_.Qa],1,_.Pu,gsR,_.Pu,[0,_.$a]],[0,DE,-1],_.FI,DE,_.Pu,DE,[0,wNp],_.rY,DE,_.Pu,DE,_.$a,_.Pu,DE]]);var nsy=new _.z0("liveChatEndpoint");var O6s=new _.z0("liveChatItemContextMenuEndpoint");var KG4=new _.z0("liveChatReplayEndpoint");_.TmJ=new _.z0("emojiPickerRenderer");var RhM=new _.z0("liveChatAuthorBadgeViewModel");var i69=new _.z0("deleteLiveChatMessageCommand");var WGb=new _.z0("liveChatActionEndpoint");var typ=new _.z0("createLiveChatPollEndpoint");var rT$=new _.z0("manageLiveChatUserEndpoint");var u2m=new _.z0("moderateLiveChatEndpoint");_.D9F=new _.z0("sendLiveChatMessageEndpoint");var vFM=new _.z0("sendLiveChatVoteEndpoint");var hvJ=new _.z0("clearLocationCommand");var aVM=new _.z0("resolveLocationCommand");var $9$=new _.z0("interactionLoggingCommandMetadata");var QRM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(QRM,_.xo);var GL4=function(D,v){return _.UN(D,1,v)};var V59=[0,_.hy];var PNt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(PNt,_.xo);var x9$=function(D,v){return JX(D,1,QRM,v)};PNt.prototype.JSC$12174_serializeBinary=Ozc([0,_.Va,V59]);var Myq={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 M51={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"},
fVM={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 hMr={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.sDc=new _.z0("logFlowLoggingEventCommand");_.Xp=new _.z0("loggingContext");var CNs=new _.z0("audioTrackSelectActionCommand");var oFm=new _.z0("captionLanguageSelectActionCommand");var FBt=new _.z0("showAudioTrackPickerActionCommand");var zvp=new _.z0("showCaptionLanguageSelectActionCommand");var U9R=new _.z0("dismissDialogEndpoint");var LBt=new _.z0("dismissPlayerOverlayCommand");var ZgM=new _.z0("hideItemSectionVideosByIdCommand");var EFy=new _.z0("showMiniplayerCommand");var IVF=function(){e8.apply(this,arguments)};
_.J(IVF,e8);IVF.prototype.getAssociations=function(){return[]};
IVF.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var gFJ=function(){e8.apply(this,arguments)};
_.J(gFJ,e8);gFJ.prototype.getAssociations=function(){return[]};
gFJ.prototype.getTypeName=function(){return"downloadStatusEntity"};var kL4=function(){e8.apply(this,arguments)};
_.J(kL4,e8);kL4.prototype.getAssociations=function(){return[]};
kL4.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var SBp=function(){e8.apply(this,arguments)};
_.J(SBp,e8);SBp.prototype.getAssociations=function(){var D=[];this.delegate.downloadsList&&D.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&D.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&D.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.j_(new Set(D)))};
SBp.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Jxy=function(){e8.apply(this,arguments)};
_.J(Jxy,e8);Jxy.prototype.getAssociations=function(){var D=[];this.delegate.refresh&&D.push(this.delegate.refresh);if(this.delegate.downloads)for(var v=_.P(this.delegate.downloads),h=v.next();!h.done;h=v.next())D.push.apply(D,_.j_((new pq4(h.value)).getAssociations()));return[].concat(_.j_(new Set(D)))};
Jxy.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var pq4=function(){wP.apply(this,arguments)};
_.J(pq4,wP);pq4.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playlist&&D.push(this.delegate.playlist);this.delegate.videoItem&&D.push(this.delegate.videoItem);this.delegate.playlistItem&&D.push(this.delegate.playlistItem);return[].concat(_.j_(new Set(D)))};var lVF=function(){e8.apply(this,arguments)};
_.J(lVF,e8);lVF.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.j_(this.delegate.localImageEntities));return[].concat(_.j_(new Set(D)))};
lVF.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var N34=function(){e8.apply(this,arguments)};
_.J(N34,e8);N34.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.j_(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.j_(new Set(D)))};
N34.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var YB1=function(){e8.apply(this,arguments)};
_.J(YB1,e8);YB1.prototype.getAssociations=function(){return[]};
YB1.prototype.getTypeName=function(){return"offlineabilityEntity"};var B3s=function(){e8.apply(this,arguments)};
_.J(B3s,e8);B3s.prototype.getAssociations=function(){var D=[];this.delegate.fakeChildren&&D.push.apply(D,_.j_(this.delegate.fakeChildren));return[].concat(_.j_(new Set(D)))};
B3s.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var cxM=function(){e8.apply(this,arguments)};
_.J(cxM,e8);cxM.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);return[].concat(_.j_(new Set(D)))};
cxM.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var Xqp=function(){e8.apply(this,arguments)};
_.J(Xqp,e8);Xqp.prototype.getAssociations=function(){return[]};
Xqp.prototype.getTypeName=function(){return"continuationTokenEntity"};var Axt=function(){e8.apply(this,arguments)};
_.J(Axt,e8);Axt.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.videos&&D.push.apply(D,_.j_(this.delegate.videos));this.delegate.collaboratorChannels&&D.push.apply(D,_.j_(this.delegate.collaboratorChannels));this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.j_(new Set(D)))};
Axt.prototype.getTypeName=function(){return"mainPlaylistEntity"};var qBb=function(){e8.apply(this,arguments)};
_.J(qBb,e8);qBb.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.channelContributor&&D.push(this.delegate.channelContributor);return[].concat(_.j_(new Set(D)))};
qBb.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var bg1=function(){wP.apply(this,arguments)};
_.J(bg1,wP);bg1.prototype.getAssociations=function(){var D=[];this.delegate.recommendedVideoMetadata&&D.push.apply(D,_.j_((new d94(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.j_(new Set(D)))};
var d94=function(){wP.apply(this,arguments)};
_.J(d94,wP);d94.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.j_(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.j_(new Set(D)))};var jRm=function(){wP.apply(this,arguments)};
_.J(jRm,wP);jRm.prototype.getAssociations=function(){var D=[];this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);return[].concat(_.j_(new Set(D)))};var sRt=function(){e8.apply(this,arguments)};
_.J(sRt,e8);sRt.prototype.getAssociations=function(){var D=[];this.delegate.owner&&D.push(this.delegate.owner);this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.userState&&D.push.apply(D,_.j_((new jRm(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&D.push.apply(D,_.j_((new bg1(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.j_(new Set(D)))};
sRt.prototype.getTypeName=function(){return"mainVideoEntity"};var m9s=function(){e8.apply(this,arguments)};
_.J(m9s,e8);m9s.prototype.getAssociations=function(){var D=[];this.delegate.userChannelDetails&&D.push(this.delegate.userChannelDetails);return[].concat(_.j_(new Set(D)))};
m9s.prototype.getTypeName=function(){return"ytMainChannelEntity"};var Hgm=function(){e8.apply(this,arguments)};
_.J(Hgm,e8);Hgm.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&D.push.apply(D,_.j_(this.delegate.localImageEntities));this.delegate.downloadStatus&&D.push(this.delegate.downloadStatus);return[].concat(_.j_(new Set(D)))};
Hgm.prototype.getTypeName=function(){return"ytMainVideoEntity"};var $yI=new _.z0("downloadsPageSmartDownloadsOptInBannerParams");var Pei=new _.z0("downloadsPageUpsellBannerParams");var yx9=function(){e8.apply(this,arguments)};
_.J(yx9,e8);yx9.prototype.getAssociations=function(){return[]};
yx9.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var wqs=function(){e8.apply(this,arguments)};
_.J(wqs,e8);wqs.prototype.getAssociations=function(){return[]};
wqs.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var ev4=function(){e8.apply(this,arguments)};
_.J(ev4,e8);ev4.prototype.getAssociations=function(){return[]};
ev4.prototype.getTypeName=function(){return"macroMarkerEntity"};var nFR=function(){e8.apply(this,arguments)};
_.J(nFR,e8);nFR.prototype.getAssociations=function(){return[]};
nFR.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var Ogp=function(){e8.apply(this,arguments)};
_.J(Ogp,e8);Ogp.prototype.getAssociations=function(){return[]};
Ogp.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var KBM=function(){e8.apply(this,arguments)};
_.J(KBM,e8);KBM.prototype.getAssociations=function(){return[]};
KBM.prototype.getTypeName=function(){return"playerStateEntity"};var T39=function(){e8.apply(this,arguments)};
_.J(T39,e8);T39.prototype.getAssociations=function(){return[]};
T39.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Rvm=function(){e8.apply(this,arguments)};
_.J(Rvm,e8);Rvm.prototype.getAssociations=function(){return[]};
Rvm.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var ig4=function(){e8.apply(this,arguments)};
_.J(ig4,e8);ig4.prototype.getAssociations=function(){return[]};
ig4.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.vi=new _.z0("dislikeButtonViewModel");_.hp=new _.z0("likeButtonViewModel");var WB$=new _.z0("videoSummaryContentViewModel");var t51=new _.z0("videoSummaryParagraphViewModel");var rxp=new _.z0("changeTimelyActionVisibilityCommand");var um4=new _.z0("hideEngagementPanelEndpoint");var DB1=new _.z0("refreshPanelEndpoint");var vMR=new _.z0("scrollToSectionEndpoint");var h_s=new _.z0("seekToVideoTimestampCommand");_.qh=new _.z0("showEngagementPanelEndpoint");var aQR=new _.z0("showTransientPlayerScrimOverlayCommand");var $Bb=new _.z0("toggleEngagementPanelCommand");_.QdR=new _.z0("createBroadcastCommand");var GXt=new _.z0("metadataUpdateCommand");var V8R=function(){e8.apply(this,arguments)};
_.J(V8R,e8);V8R.prototype.getAssociations=function(){return[]};
V8R.prototype.getTypeName=function(){return"featuredProductsEntity"};var Pbt=function(){e8.apply(this,arguments)};
_.J(Pbt,e8);Pbt.prototype.getAssociations=function(){return[]};
Pbt.prototype.getTypeName=function(){return"pinnedProductEntity"};var xB9=function(){e8.apply(this,arguments)};
_.J(xB9,e8);xB9.prototype.getAssociations=function(){return[]};
xB9.prototype.getTypeName=function(){return"trendingOfferEntity"};_.M8F=new _.z0("merchandiseShelfRenderer");var fQ9=new _.z0("shoppingContentLineItemViewModel");var Cb4=new _.z0("gridMovieRenderer");_.oM9=new _.z0("movieRenderer");var F4y=function(){e8.apply(this,arguments)};
_.J(F4y,e8);F4y.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.j_(this.delegate.trackDownloadMetadatas));return[].concat(_.j_(new Set(D)))};
F4y.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var z_4=function(){e8.apply(this,arguments)};
_.J(z_4,e8);
z_4.prototype.getAssociations=function(){var D=[];this.delegate.downloadedTracks&&D.push.apply(D,_.j_(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&D.push.apply(D,_.j_(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&D.push.apply(D,_.j_(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&D.push.apply(D,_.j_(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&D.push.apply(D,_.j_(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
D.push.apply(D,_.j_(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&D.push.apply(D,_.j_(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&D.push.apply(D,_.j_(this.delegate.metadataOnlyTracks));return[].concat(_.j_(new Set(D)))};
z_4.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var UBy=function(){e8.apply(this,arguments)};
_.J(UBy,e8);UBy.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.j_(this.delegate.trackDownloadMetadatas));return[].concat(_.j_(new Set(D)))};
UBy.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var L4m=function(){e8.apply(this,arguments)};
_.J(L4m,e8);L4m.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.j_(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.j_(new Set(D)))};
L4m.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var ZrR=function(){e8.apply(this,arguments)};
_.J(ZrR,e8);
ZrR.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&D.push.apply(D,_.j_(this.delegate.primaryArtists));this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.tracks&&D.push.apply(D,_.j_(this.delegate.tracks));this.delegate.share&&D.push(this.delegate.share);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.refresh&&
D.push(this.delegate.refresh);return[].concat(_.j_(new Set(D)))};
ZrR.prototype.getTypeName=function(){return"musicAlbumRelease"};
var EMM=function(){e8.apply(this,arguments)};
_.J(EMM,e8);EMM.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.tracks&&D.push.apply(D,_.j_(this.delegate.tracks));return[].concat(_.j_(new Set(D)))};
EMM.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var IQJ=function(){e8.apply(this,arguments)};
_.J(IQJ,e8);IQJ.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);return[].concat(_.j_(new Set(D)))};
IQJ.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var gMs=function(){e8.apply(this,arguments)};
_.J(gMs,e8);gMs.prototype.getAssociations=function(){var D=[];this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);return[].concat(_.j_(new Set(D)))};
gMs.prototype.getTypeName=function(){return"musicArtist"};
var kXm=function(){e8.apply(this,arguments)};
_.J(kXm,e8);kXm.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.j_(new Set(D)))};
kXm.prototype.getTypeName=function(){return"musicArtistDetail"};
var Sc4=function(){e8.apply(this,arguments)};
_.J(Sc4,e8);Sc4.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.j_(new Set(D)))};
Sc4.prototype.getTypeName=function(){return"musicArtistUserDetail"};var Jl4=function(){e8.apply(this,arguments)};
_.J(Jl4,e8);Jl4.prototype.getAssociations=function(){return[]};
Jl4.prototype.getTypeName=function(){return"musicLibraryEdit"};var pFb=function(){e8.apply(this,arguments)};
_.J(pFb,e8);pFb.prototype.getAssociations=function(){return[]};
pFb.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var lQ9=function(){e8.apply(this,arguments)};
_.J(lQ9,e8);
lQ9.prototype.getAssociations=function(){var D=[];this.delegate.tracks&&D.push.apply(D,_.j_(this.delegate.tracks));this.delegate.refresh&&D.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&D.push(this.delegate.details);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&D.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.entryCollection&&
D.push(this.delegate.entryCollection);this.delegate.share&&D.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&D.push.apply(D,_.j_((new NPp(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.j_(new Set(D)))};
lQ9.prototype.getTypeName=function(){return"musicPlaylist"};
var NPp=function(){wP.apply(this,arguments)};
_.J(NPp,wP);NPp.prototype.getAssociations=function(){var D=[];this.delegate.creatorEntity&&D.push(this.delegate.creatorEntity);return[].concat(_.j_(new Set(D)))};var YcJ=function(){e8.apply(this,arguments)};
_.J(YcJ,e8);YcJ.prototype.getAssociations=function(){return[]};
YcJ.prototype.getTypeName=function(){return"musicShare"};var BPR=function(){e8.apply(this,arguments)};
_.J(BPR,e8);
BPR.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&D.push.apply(D,_.j_(this.delegate.artists));this.delegate.audioModeVersion&&D.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&D.push(this.delegate.videoModeVersion);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.details&&D.push(this.delegate.details);this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.share&&
D.push(this.delegate.share);this.delegate.libraryEdit&&D.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.lyrics&&D.push(this.delegate.lyrics);return[].concat(_.j_(new Set(D)))};
BPR.prototype.getTypeName=function(){return"musicTrack"};
var cl$=function(){e8.apply(this,arguments)};
_.J(cl$,e8);cl$.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.j_(new Set(D)))};
cl$.prototype.getTypeName=function(){return"musicTrackDetail"};
var XF4=function(){e8.apply(this,arguments)};
_.J(XF4,e8);XF4.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.j_(new Set(D)))};
XF4.prototype.getTypeName=function(){return"musicTrackUserDetail"};var DS=new _.z0("musicResponsiveListItemRenderer");var SE8=new _.z0("addToPlaylistEndpoint");var Alm=new _.z0("captionPickerEndpoint");var qct=new _.z0("suggestStats");var brM=new _.z0("backstageImageUploadEndpoint");var dB9=new _.z0("createBackstagePostDialogEndpoint");_.jds=new _.z0("createCommentReplyDialogEndpoint");_.sdb=new _.z0("updateCommentDialogEndpoint");_.mBy=new _.z0("updateCommentReplyDialogEndpoint");var Hr$=new _.z0("menuEndpoint");var M4I=new _.z0("modalEndpoint");var ylb=new _.z0("playlistEditorEndpoint");var wFm=new _.z0("copyTextEndpoint");var e_F,nMF;e_F=new _.z0("shareEndpoint");nMF=new _.z0("shareEntityEndpoint");_.Ors=new _.z0("shareEntityServiceEndpoint");_.xur=new _.z0("userFeedbackEndpoint");_.hP=new _.z0("watchEndpoint");var Ref=new _.z0("watchPlaylistEndpoint");var K4b=new _.z0("addUpcomingEventReminderEndpoint");_.aA=new _.z0("getCommentsFromInboxCommand");var TPt=new _.z0("notificationOptOutEndpoint");var R_M=new _.z0("recordNotificationInteractionsEndpoint");var irt=new _.z0("removeUpcomingEventReminderEndpoint");var g82=new _.z0("getDownloadActionCommand");_.W4t=new _.z0("offlineOrchestrationActionCommand");var t89=function(){e8.apply(this,arguments)};
_.J(t89,e8);t89.prototype.getAssociations=function(){return[]};
t89.prototype.getTypeName=function(){return"captionTrack"};var rlp=function(){e8.apply(this,arguments)};
_.J(rlp,e8);rlp.prototype.getAssociations=function(){return[]};
rlp.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var ui$=function(){e8.apply(this,arguments)};
_.J(ui$,e8);ui$.prototype.getAssociations=function(){return[]};
ui$.prototype.getTypeName=function(){return"offlineVideoPolicy"};var D8p=function(){e8.apply(this,arguments)};
_.J(D8p,e8);D8p.prototype.getAssociations=function(){return[]};
D8p.prototype.getTypeName=function(){return"offlineVideoStreams"};var vGt=function(){e8.apply(this,arguments)};
_.J(vGt,e8);vGt.prototype.getAssociations=function(){var D=[];this.delegate.transfer&&D.push(this.delegate.transfer);this.delegate.adsPlaybackData&&D.push.apply(D,_.j_(this.delegate.adsPlaybackData));this.delegate.drmLicense&&D.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.j_(new Set(D)))};
vGt.prototype.getTypeName=function(){return"playbackData"};var h$R=function(){e8.apply(this,arguments)};
_.J(h$R,e8);h$R.prototype.getAssociations=function(){return[]};
h$R.prototype.getTypeName=function(){return"refresh"};var aEF=function(){e8.apply(this,arguments)};
_.J(aEF,e8);aEF.prototype.getAssociations=function(){var D=[];this.delegate.offlineVideoStreams&&D.push.apply(D,_.j_(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&D.push.apply(D,_.j_(this.delegate.captionTrack));return[].concat(_.j_(new Set(D)))};
aEF.prototype.getTypeName=function(){return"transfer"};var $8s=function(){e8.apply(this,arguments)};
_.J($8s,e8);$8s.prototype.getAssociations=function(){return[]};
$8s.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var QAt=new _.z0("showMoreDrawerCommand");var GF4=new _.z0("updateEngagementPanelContentCommand");var Vht=new _.z0("getPdgBuyFlowCommand");var Ply=new _.z0("liveChatPurchaseMessageEndpoint");var x8$=new _.z0("openSuperStickerBuyFlowCommand");var Mh4=new _.z0("updatePdgFeatureEnablementCommand");var fER=function(){e8.apply(this,arguments)};
_.J(fER,e8);fER.prototype.getAssociations=function(){return[]};
fER.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var ClJ=function(){e8.apply(this,arguments)};
_.J(ClJ,e8);ClJ.prototype.getAssociations=function(){return[]};
ClJ.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.oGF=new _.z0("pdgCommentChipRenderer");_.Fj$=new _.z0("permissionRoleBottomBarRenderer");_.z$R=new _.z0("updatePermissionRoleCommand");var U8m=new _.z0("prefetchWatchCommand");var Ljt=new _.z0("updatePlayerErrorMessageCommand");var Ffo=new _.z0("toggleCaptionsVisibilityCommand");_.ZHy=new _.z0("quickActionsViewModel");var EG4=new _.z0("playerResponse");var IEM=new _.z0("playlistRenderer");_.gGJ=new _.z0("playlistVideoListRenderer");_.$G=new _.z0("playlistEditEndpoint");var kFF=new _.z0("createImagePollCommand");var SeJ=new _.z0("createQuizCommand");var Jpt=new _.z0("quizRenderer");var pim=new _.z0("uploadedVideoRenderer");var lEy=new _.z0("decorateMessageEndpoint");var Nep=new _.z0("lpOfferCardOptionViewModel");var Yeb=new _.z0("sfvAudioItemPlaybackCommand");var BeR=function(){e8.apply(this,arguments)};
_.J(BeR,e8);BeR.prototype.getAssociations=function(){return[]};
BeR.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Qi=new _.z0("reelNonVideoContentEndpoint");_.AQ=new _.z0("reelWatchEndpoint");_.GF=new _.z0("reelItemRenderer");_.cp4=new _.z0("reelMetapanelViewModel");_.Xib=new _.z0("reelNonVideoContentRenderer");_.Ap$=new _.z0("reelPlayerOverlayRenderer");var qe1=new _.z0("shortsLockupViewModel");var bHb=new _.z0("sponsorButtonViewModel");var d8b=new _.z0("reelItemWatchResponse");var jAR=new _.z0("textBadgeRenderer");_.Vi=new _.z0("buttonRenderer");_.Pi=new _.z0("toggleButtonRenderer");var gw2=new _.z0("switchButtonViewModel");_.sAJ=new _.z0("confirmDialogRenderer");var m84;m84=new _.z0("menuRenderer");_.HHy=new _.z0("menuFlexibleItemRenderer");var ypy=new _.z0("pollRenderer");_.wip=new _.z0("backgroundPromoRenderer");var nGR;_.e$s=new _.z0("chipCloudRenderer");nGR=new _.z0("chipCloudChipRenderer");var OHF=new _.z0("dropdownRenderer");var Kj1=new _.z0("gridVideoRenderer");_.Tey=new _.z0("itemSectionRenderer");_.R$4=new _.z0("messageRenderer");var iHb=new _.z0("sortFilterHeaderRenderer");_.xG=new _.z0("videoRenderer");var Wjm=new _.z0("resolveUrlCommandMetadata");var thM=function(){e8.apply(this,arguments)};
_.J(thM,e8);thM.prototype.getAssociations=function(){return[]};
thM.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.rp4=new _.z0("getAnswerCommand");_.BR=new _.z0("searchEndpoint");var uq4=new _.z0("genAiRichTextViewModel");var Iru=new _.z0("overviewAnswerViewModel");var Dyb=new _.z0("videoOverviewViewModel");var vmb=new _.z0("addToPlaylistServiceEndpoint");var hF$=new _.z0("clearSearchHistoryEndpoint");var aLR=new _.z0("clearWatchHistoryEndpoint");var $yR=new _.z0("webSerializedServiceEndpointExtension");_.QlF=new _.z0("createCommentEndpoint");var G4R=new _.z0("createCommentReplyEndpoint");var VkF=new _.z0("performCommentActionEndpoint");var PeM=new _.z0("updateCommentEndpoint");var xy4=new _.z0("updateCommentReplyEndpoint");_.M8=new _.z0("createPlaylistServiceEndpoint");var MkM=new _.z0("deletePlaylistEndpoint");var fLM=new _.z0("deleteVideoEndpoint");var k8r=new _.z0("getReportFormEndpoint");var Cet=new _.z0("modifyChannelNotificationPreferenceEndpoint");var mnf;_.pj=new _.z0("offlinePlaylistEndpoint");mnf={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 H5q;_.Jn=new _.z0("offlineVideoEndpoint");H5q={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 omM=new _.z0("pingingEndpoint");_.FqM=new _.z0("selectActiveIdentityEndpoint");var zFb=new _.z0("setSettingEndpoint");var YbL=new _.z0("undoFeedbackEndpoint");var Uyy=new _.z0("unsubscribeEndpoint");_.Lq4=new _.z0("updatedMetadataEndpoint");var Zh4=function(){e8.apply(this,arguments)};
_.J(Zh4,e8);Zh4.prototype.getAssociations=function(){return[]};
Zh4.prototype.getTypeName=function(){return"settingEntity"};_.Ems=new _.z0("updateLocalAppSettingCommand");var IL1=new _.z0("saveImageToDeviceEndpoint");var gmp=new _.z0("shareImageCommand");var k4p=new _.z0("sharingProviderDataCommand");var SH1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(SH1,_.xo);var JUM=[0,_.$a,-1];SH1.prototype.JSC$12375_serializeBinary=Ozc(JUM);var pCy=_.Im(JUM);var lL9=new _.z0("userMentionSuggestionRenderer");var NhJ=new _.z0("liveChatTunnelCommand");var YH1=new _.z0("showSponsorshipsGiftOfferDialogCommand");var Bh9=new _.z0("sponsorshipsScrollableShelfViewModel");var cUy=new _.z0("updateUpcomingEventReminderButtonStateCommand");var XCR=new _.z0("upcomingEventReminderButtonStateRenderer");var AUp=new _.z0("subscribeEndpoint");var qHJ=new _.z0("registerTasksCommand");var bhJ=new _.z0("hideSheetCommand");var Het=new _.z0("hideSnackbarCommand");var ykJ=new _.z0("showDialogCommand");_.An=new _.z0("showSheetCommand");var wty=new _.z0("showSnackbarCommand");var e7y=function(){e8.apply(this,arguments)};
_.J(e7y,e8);e7y.prototype.getAssociations=function(){return[]};
e7y.prototype.getTypeName=function(){return"chipEntity"};var nkJ=function(){e8.apply(this,arguments)};
_.J(nkJ,e8);nkJ.prototype.getAssociations=function(){return[]};
nkJ.prototype.getTypeName=function(){return"dismissState"};_.nj=new _.z0("avatarViewModel");var Oe1=new _.z0("badgeViewModel");_.fH=new _.z0("buttonViewModel");_.CH=new _.z0("chipViewModel");var d$I=new _.z0("collectionThumbnailViewModel");var KZF=new _.z0("contentPreviewImageViewModel");var Tj4=new _.z0("decoratedAvatarViewModel");_.Bwo=new _.z0("engagementBarViewModel");_.R7t=new _.z0("imageBannerViewModel");var ie1=new _.z0("lockupContentMetadataRowExtension");_.WZM=new _.z0("lockupMetadataViewModel");_.td$=new _.z0("lockupViewModel");var rk$=new _.z0("avatarStackViewModel");_.uwM=new _.z0("contentMetadataViewModel");var Dt4=function(){e8.apply(this,arguments)};
_.J(Dt4,e8);Dt4.prototype.getAssociations=function(){return[]};
Dt4.prototype.getTypeName=function(){return"pageHeaderEntity"};_.v$9=new _.z0("pageHeaderViewModel");var hA1=new _.z0("snackbarViewModel");var awR=new _.z0("thumbnailHoverOverlayToggleActionsViewModel");_.oA=new _.z0("toggleButtonViewModel");var $tM=function(){e8.apply(this,arguments)};
_.J($tM,e8);$tM.prototype.getAssociations=function(){return[]};
$tM.prototype.getTypeName=function(){return"votingEntity"};_.cM4=new _.z0("votingViewModel");var QSs=new _.z0("sectionHeaderViewModel");var GPM=new _.z0("notifyDropdownOptionSelectedCommand");var WWc=new _.z0("listViewModel");_.qq=new _.z0("listItemViewModel");var bof=new _.z0("toggleableListItemViewModel");var Vuy=new _.z0("dialogHeaderViewModel");var PKp=function(){e8.apply(this,arguments)};
_.J(PKp,e8);PKp.prototype.getAssociations=function(){return[]};
PKp.prototype.getTypeName=function(){return"dataFreshnessEntity"};var Gx7=new _.z0("suspenseViewModel");var xtM=function(){e8.apply(this,arguments)};
_.J(xtM,e8);xtM.prototype.getAssociations=function(){return[]};
xtM.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Mu4=function(){e8.apply(this,arguments)};
_.J(Mu4,e8);Mu4.prototype.getAssociations=function(){return[]};
Mu4.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var fw$=function(){e8.apply(this,arguments)};
_.J(fw$,e8);fw$.prototype.getAssociations=function(){return[]};
fw$.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.CKt=new _.z0("transcriptSubmitCaptionCorrectionCommand");var o$t=function(){e8.apply(this,arguments)};
_.J(o$t,e8);o$t.prototype.getAssociations=function(){return[]};
o$t.prototype.getTypeName=function(){return"buttonEntity"};var rvf=new _.z0("unpluggedStringRunImage");var Fp9=new _.z0("tabViewModel");var zAp=new _.z0("tabbedViewModel");var UtM=function(){e8.apply(this,arguments)};
_.J(UtM,e8);UtM.prototype.getAssociations=function(){return[]};
UtM.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Lp$=new _.z0("updateDescriptionAction");var ZOJ=new _.z0("updateToggleButtonTextAction");var E$M=new _.z0("updateVideoMetadataCommand");_.Iws=new _.z0("autoplaySwitchButtonRenderer");var mP;_.g$R=new _.z0("multiMarkersPlayerBarRenderer");mP=new _.z0("chapterRenderer");var kPJ=new _.z0("heatMarkerRenderer");var wP4=new _.z0("heatmapRenderer");var SaM=new _.z0("smartSkipPlayerScrimOverlayRenderer");var JEy=new _.z0("timedMarkerDecorationRenderer");var zQI=new _.z0("postWebToNativeMessageCommand");var HO=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(HO,_.xo);HO.prototype.getMethodName=function(){return _.jI(this,1)};var p2$=[0,_.$a,-2];HO.prototype.JSC$12397_serializeBinary=Ozc(p2$);var lwm=_.EQ(HO,p2$);var N2R=new _.z0("whitelistEditEndpoint");var Yat=new _.z0("clearUrlParamCommand");var B2$=new _.z0("commerceActionCommand");_.cEJ=new _.z0("getPaymentInstrumentsParamsCommand");var X2J=new _.z0("getPaymentsClientTokenCommand");var AE1=new _.z0("googlePaymentBillingCommand");var qat=new _.z0("googlePaymentPurchaseManagerCommand");_.bO4=new _.z0("logGtmCommand");var dtJ=new _.z0("updateCardItemOnClickCommand");_.jSm=new _.z0("ypcPauseSubscriptionCommand");_.sSF=new _.z0("ypcResumeSubscriptionCommand");var mts=function(){e8.apply(this,arguments)};
_.J(mts,e8);mts.prototype.getAssociations=function(){return[]};
mts.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var HOJ=function(){e8.apply(this,arguments)};
_.J(HOJ,e8);HOJ.prototype.getAssociations=function(){return[]};
HOJ.prototype.getTypeName=function(){return"commerceCartListEntity"};var yEp=function(){e8.apply(this,arguments)};
_.J(yEp,e8);yEp.prototype.getAssociations=function(){return[]};
yEp.prototype.getTypeName=function(){return"iconBadgeEntity"};var w2p=function(){e8.apply(this,arguments)};
_.J(w2p,e8);w2p.prototype.getAssociations=function(){return[]};
w2p.prototype.getTypeName=function(){return"pdpStateEntity"};var eAm=function(){e8.apply(this,arguments)};
_.J(eAm,e8);eAm.prototype.getAssociations=function(){return[]};
eAm.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var $Rc=new _.z0("ypcOffersEndpoint");var n$M=new _.z0("cardItemRenderer"),OO4=new _.z0("cardItemTextRenderer");var Kpb=new _.z0("commerceCartItemQuantityPickerRenderer");var T2J=new _.z0("linkCardRenderer");var PfL=new _.z0("quantityIncrementerButtonViewModel");var RAR=new _.z0("quantityIncrementerViewModel");var iOJ=new _.z0("themedImageViewModel");_.Wps=new _.z0("ypcCancelRecurrenceEndpoint");var tuJ=new _.z0("ypcCompleteTransactionEndpoint");_.rER=new _.z0("ypcGetCartEndpoint");_.ai=new _.z0("ypcGetOffersEndpoint");_.Fq=new _.z0("ypcHandleTransactionEndpoint");var uc4=new _.z0("ypcLogWalletAnalyticDataEndpoint");_.Dm4=new _.z0("ypcRedeemCodeEndpoint");var viJ=new _.z0("ypcUpdateFopEndpoint");kM(gP(1),Ec(4));FIJ((new MessageChannel).port2);var he4=function(){this.register=new Map},Cru=function(D,v,h){D=D+"_"+v;
zF.register.has(D)?h=zF.register.get(D):(h=h(),zF.register.set(D,h));return h},aZs=function(D){D=_.P(D.register.values());
for(var v=D.next();!v.done;v=D.next())_.zk(v.value,"ABORTED")};
he4.prototype.clear=function(){aZs(this);this.register.clear()};
var zF=new he4;var KJq=Date.now().toString();var iyr=Rg2();var a$r={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 $mJ,HT;$mJ=1;HT=function(D){this.veData=D};
_.d4=function(D){return new HT({trackingParams:D})};
_.En=function(D,v,h,a,Q,G){var x=$mJ++;return new HT({veType:D,veCounter:x,elementIndex:h,dataElement:v,youtubeData:a,jspbYoutubeData:Q,loggingDirectives:G})};
_.V=HT.prototype;
_.V.getAsJson=function(){var D={};this.veData.trackingParams!==void 0?D.trackingParams=this.veData.trackingParams:(D.veType=this.veData.veType,this.veData.veCounter!==void 0&&(D.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(D.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(D.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(D.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(D.isCounterfactual=!0);
return D};
_.V.getAsJspb=function(){var D=new cH$;this.veData.trackingParams!==void 0?D.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.wY(D,2,this.veData.veType),this.veData.veCounter!==void 0&&_.wY(D,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.wY(D,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.UN(D,5,!0));if(this.veData.dataElement!==void 0){var v=this.veData.dataElement.getAsJspb();_.lH(D,7,v)}this.veData.youtubeData!==void 0&&_.lH(D,8,this.veData.jspbYoutubeData);
return D};
_.V.toString=function(){return JSON.stringify(this.getAsJson())};
_.V.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.V.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Gm("yt_logging_screen.getRootVeType",D_8);_.Gm("yt_logging_screen.getCurrentCsn",_.wd);_.Gm("yt_logging_screen.getCttAuthInfo",eC);_.Gm("yt_logging_screen.setCurrentScreen",_.nm);var Q1F=function(){this.events=new Map},GJ1=function(D){var v=[];
D=_.P(D.events.values());for(var h=D.next();!h.done;h=D.next())v.push(h.value);return v};
Q1F.prototype.clear=function(){this.events.clear()};var PXF=function(){this.logTransport=new Vfb;this.loggedEventRegister=new Q1F;this.unloggedEventRegister=new Q1F;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12434_flushTimer=new _.Cm(this.flushInterval);this.JSC$12434_flushTimer.listen("tick",this.flush,!1,this)};
PXF.prototype.flush=function(){if(this.eventsCount){var D={loggedEvents:GJ1(this.loggedEventRegister),unloggedEvents:GJ1(this.unloggedEventRegister)};if(_.g("export_player_version_to_ytconfig")){var v;(v=_.eA("PLAYER_CLIENT_VERSION"))?(v=v.split("-")[0].replace(/\./g,""),v=isNaN(Number(v))?"0":v):v="";var h=_.eA("PLAYER_CLIENT_VERSION");if(h){h=h.split("-");var a="";h.length>1&&(a=h[h.length-1]);h=OyA(a.startsWith("canary_experiment")?"canary":a.startsWith("canary_control")?"control":"none")}else h=
"CLIENT_CANARY_STATE_UNKNOWN";D.dimensions={playerClientVersion:v,playerCanaryState:h}}this.logTransport.flush(D);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12434_flushTimer.enabled&&this.JSC$12434_flushTimer.stop()}};
var xmp=function(D){Ue==null&&(Ue=new PXF);var v=Ue;var h=v.loggedEventRegister;D.dimensions=D.dimensions||{};D.dimensions.csn=_.wd()||"";var a=Gco(D.dimensions).join(";");if(D.records!=null)if(h.events.has(a)){var Q;(Q=h.events.get(a).records)==null||Q.push.apply(Q,_.j_(D.records))}else h.events.set(a,D);v.JSC$12434_flushTimer.enabled||v.JSC$12434_flushTimer.start();v.eventsCount++;v.eventsCount>=100&&v.flush()};var Vfb=function(){};
Vfb.prototype.flush=function(D,v){_.g("enable_client_sli_logging")&&_.jj("sliEventBatch",D,{sendIsolatedPayload:!!v})};var Ue;var fZy;fZy=function(D){var v=Mf1;D=D===void 0?{}:D;v=v.name;var h=f$c("SUCCESS");xmp({dimensions:D,records:[{name:v,state:"SLI_STATE_END",status:h}]})};
_.osc=function(D,v,h,a){this.name=D;this.sliId=v;this.timeoutMs=h;this.statusOnTimeout=a;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.osc.prototype.getId=function(){return this.sliId};
_.FC=function(D,v){v=v===void 0?{}:v;D.ongoing||(D.ongoing=!0,D.dimensions=v,D.logSliId=UOb(),xmp({dimensions:D.dimensions,records:[{name:D.name,state:"SLI_STATE_START",sliId:D.logSliId}]}),D.timeoutMs>0&&(D.timeoutHandle=setTimeout(function(){_.zk(D,D.statusOnTimeout)},D.timeoutMs)))};
_.zk=function(D,v){D.ongoing&&(D.timeoutMs>0&&clearTimeout(D.timeoutHandle),D.ongoing=!1,v={dimensions:D.dimensions,records:[{name:D.name,status:f$c(v),state:"SLI_STATE_END",sliId:D.logSliId}]},zF.register.delete(D.name+"_"+D.sliId),xmp(v))};var Mf1=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var CX9=function(){e8.apply(this,arguments)};
_.J(CX9,e8);CX9.prototype.getAssociations=function(){return[]};
CX9.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var bkc=new _.z0("highlightTextDecoratorColorMapExtension");var Ao7=new _.z0("styleRunColorMapExtension");var I$8=_.DK(["data-"]),SZ8={};var pN7={};var LH=function(D){this.wrappedPromise_=D===void 0?null:D;this.state_=0;this.JSC$12466_value_=null};
LH.prototype.then=function(D,v,h){return this.wrappedPromise_?this.wrappedPromise_.then(D,v,h):this.state_===1&&D?(D=D.call(h,this.JSC$12466_value_))&&typeof D.then==="function"?D:_.ZE(D):this.state_===2&&v?(D=v.call(h,this.JSC$12466_value_))&&typeof D.then==="function"?D:_.ois(D):this};
LH.prototype.getValue=function(){return this.JSC$12466_value_};
LH.prototype.isRejected=function(){return this.state_==2};
NDR(LH);_.ois=function(D){var v=new LH;D=D===void 0?null:D;v.state_=2;v.JSC$12466_value_=D===void 0?null:D;return v};
_.ZE=function(D){var v=new LH;D=D===void 0?null:D;v.state_=1;v.JSC$12466_value_=D===void 0?null:D;return v};var yTL="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var F_t=["load","abort","error"],Ee=function(D,v,h){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12486_maxAspectRatio_=D;this.disableAnimation_=v===void 0?!1:v;this.disableExifRotation_=h===void 0?!1:h;this.JSC$12486_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12486_reject_=this.resolve_=null};
Ee.prototype.transform=function(D){var v=this;this.mime_=D.type;xN(Xr4(D),this.dataUrlRead_,this.readError_,this);xN(cVJ(D.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(h,a){v.resolve_=h;v.JSC$12486_reject_=a})};
Ee.prototype.dataUrlRead_=function(D){this.dataUrl_=D;this.angle_!=null&&zes(this)};
Ee.prototype.exifRead_=function(D){if(this.disableExifRotation_)this.angle_=0;else{a:if(D=new DataView(D),D.byteLength<2||D.getUint16(0)!==65496)D=-2;else{for(var v=2,h=D.byteLength;v<h;){var a=D.getUint16(v),Q=D.getUint16(v+2);if(a===65505){v+=4;a=D.getUint32(v);Q=D.getUint16(v+4);if(a!==1165519206||Q!==0)break;v+=6;a=D.getUint16(v)===18761;v+=D.getUint32(v+4,a);Q=D.getUint16(v,a);v+=2;for(var G=0;G<Q;G++){if(D.getUint16(v,a)===274){v+=8;D=D.getUint16(v,a);break a}v+=12}}else if(a>>8!==255)break;
else v+=Q+2}D=-1}switch(D){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&zes(this)};
Ee.prototype.readError_=function(){this.JSC$12486_reject_()};
var zes=function(D){qK(D.JSC$12486_image_,F_t,D.completeTransform_,!1,D);D.JSC$12486_image_.src=_.nz(D.dataUrl_).toString();D.JSC$12486_image_.src!=eR.toString()&&D.JSC$12486_image_.src.substr(0,11)==="data:image/"||D.JSC$12486_reject_()};
Ee.prototype.completeTransform_=function(){if(this.JSC$12486_image_.src!=eR.toString()){var D=_.nz(this.dataUrl_),v=this.JSC$12486_image_.naturalHeight?this.JSC$12486_image_.naturalWidth/this.JSC$12486_image_.naturalHeight:null;this.invalidAspectRatio=v>this.JSC$12486_maxAspectRatio_||v<1/this.JSC$12486_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var h=this.JSC$12486_image_.naturalWidth,a=this.JSC$12486_image_.naturalHeight,Q=v=0,G=this.JSC$12486_image_.naturalHeight?this.JSC$12486_image_.naturalWidth/
this.JSC$12486_image_.naturalHeight:null;G>this.JSC$12486_maxAspectRatio_?(h=this.JSC$12486_maxAspectRatio_*a,v=(h-this.JSC$12486_image_.naturalWidth)/2,this.cropped=!0):G<1/this.JSC$12486_maxAspectRatio_?(a=this.JSC$12486_maxAspectRatio_*h,Q=(a-this.JSC$12486_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)G=h,h=a,a=G,G=v,v=Q,Q=G;switch(this.angle_){case 90:Q-=h;break;case 180:v-=h;Q-=a;break;case 270:v-=
a}this.cropped||this.angle_%360!==0?(D=document.createElement("canvas"),D.width=h||1,D.height=a||1,this.JSC$12486_image_.naturalWidth&&this.JSC$12486_image_.naturalHeight&&(h=D.getContext("2d"),h.rotate(Math.PI/180*this.angle_),h.drawImage(this.JSC$12486_image_,v,Q,this.JSC$12486_image_.naturalWidth,this.JSC$12486_image_.naturalHeight)),this.transformedData=_.nz(D.toDataURL(this.mime_))):this.transformedData=D}else this.transformedData=D;this.resolve_(this)}};var IA=function(D,v){_.XI.call(this,D);this.value=v};
_.J(IA,_.XI);
var ge=function(D,v,h,a,Q,G,x){x=x===void 0?!1:x;_.jZ.call(this);var f=this;this.JSC$12491_url_=D;this.channelId_=v;this.maxFileSizeMb_=h;this.JSC$12491_maxAspectRatio_=a;this.dropZoneEl_=Q;this.rejectInvalidAspectRatio_=x;this.selectButtonEl_=G;this.JSC$12491_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new cF(this.dropZoneEl_);this.selectOverlay_=new Xi(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12491_image_=this.transfer_=null;this.handler_=new _.or(this);_.Ia(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(G,"click",function(){f.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.J(ge,_.jZ);ge.prototype.disposeInternal=function(){for(var D=this.selectButtonEl_.nextSibling;D&&D.parentNode&&D.tagName=="INPUT";)D.parentNode.removeChild(D),D=this.selectButtonEl_.nextSibling;this.cancel();_.jZ.prototype.disposeInternal.call(this)};
ge.prototype.uploadPromise=function(){if(this.JSC$12491_image_==null)return null;this.uploadPromise_||Ums(this);return this.uploadPromise_};
ge.prototype.cancel=function(){L_1(this);this.JSC$12491_image_=null};
var L_1=function(D){D.transfer_&&D.transfer_.cancel();D.transfer_=null;D.uploadPromise_=null;D.resolve_=null;D.JSC$12491_reject_=null},Ums=function(D){L_1(D);
D.transfer_=_.DEs(D.JSC$12491_url_,{"X-YouTube-ChannelId":D.channelId_},D.JSC$12491_image_);D.handler_.listenOnce(D.transfer_,"l",D.JSC$12493_onUploadComplete_);D.handler_.listenOnce(D.transfer_,"n",D.onUploadError_);D.transfer_.run();D.uploadPromise_=new Promise(function(v,h){D.resolve_=v;D.JSC$12491_reject_=h})};
_.V=ge.prototype;_.V.onChange_=function(D){D.files.length&&(this.JSC$12491_image_=D.files[0],this.JSC$12491_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12491_image_=null,this.dispatchEvent(new IA("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Ums(this),(new Ee(this.JSC$12491_maxAspectRatio_)).transform(this.JSC$12491_image_).then((0,_.qp)(this.onPreview_,this),(0,_.qp)(this.onPreviewError_,this))))};
_.V.onPreview_=function(D){if(D.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12491_image_=null),this.dispatchEvent(new IA("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;D.cropped&&this.dispatchEvent(new IA("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new IA("yt.comments.ImageUploadOverlay.CHANGE_EVENT",D.transformedData))};
_.V.onPreviewError_=function(){this.JSC$12491_image_=null;this.dispatchEvent(new IA("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.V.onHover_=function(D){D.stopPropagation();D.preventDefault();if(D.type==="dragover")D=!0;else if(D.type==="dragleave")D=!1;else return;this.dispatchEvent(new IA("yt.comments.ImageUploadOverlay.HOVER_EVENT",D))};
_.V.JSC$12493_onUploadComplete_=function(){var D=(0,_.r1J)(this.transfer_.getResponseText());this.resolve_(D.encryptedBlobId)};
_.V.onUploadError_=function(){this.JSC$12491_reject_();L_1(this)};var ZCF=function(D){D=D||{};var v={},h={};this.url=D.url||"";this.args=D.args||_.sV.clone(v);this.assets=D.assets||{};this.attrs=D.attrs||_.sV.clone(h);this.fallback=D.fallback||null;this.fallbackMessage=D.fallbackMessage||null;this.html5=!!D.html5;this.disable=D.disable||{};this.loaded=!!D.loaded;this.messages=D.messages||{}};
ZCF.prototype.clone=function(){var D=new ZCF,v;for(v in this)if(this.hasOwnProperty(v)){var h=this[v];_.us(h)=="object"?D[v]=_.sV.clone(h):D[v]=h}return D};var Eim,IZy,gi4,uj,S0F,J9y,p0y,lZb,NGF,Y0t,BGM,c9M,X04,A9R,q0y,bC1,dm9,j1b,s1J,mmt,HCp,y94,w0y,ee4,ni4,OCM,K_p,TG9,Re9,pJu,iCJ,W_4,tf1,r9R,ugM,D4b,v3b,hb$,ae9,$41,JML,Q8s,GnF,VWs,P6R,x4$,MWF,fey,C6t,o3y,FY4,zbJ,U4s,LYp,Zn1,E34,kG,IeF,g3t,knJ,StM,Jqm,pMs,leR,Nu4,YtJ,Bu$,cqs,XMb,AqJ,qty,bnp,d49,j8p,s8J,m4m,kBf,HnJ,yqJ,wMR,ebJ,n3p,On4,KYs,TuJ,Rbs,inF,WY9,tWF,rqm,uOp,Dkm,vuM,hz$,akJ,$ky,Q_J,GGs,V1t,PF9,xk4,M1y;Eim=["account/accounts_list"];IZy=["acknowledge_channel_tou_strike"];gi4=["notification/add_upcoming_event_reminder"];
_.kJ1=["att/get"];uj=["browse","music/browse","unplugged/browse"];S0F=["channel/claim_legacy_youtube_channel"];J9y=["history/clear_search_history"];p0y=["history/clear_watch_history"];lZb=["comment/perform_comment_action"];NGF=["comment/get_comment_replies"];Y0t=["ypc/commerce_action"];BGM=["backstage/create_post"];c9M=["live/create_broadcast"];X04=["channel/create_channel"];A9R=["comment/create_comment_reply"];q0y=["comment/create_comment"];bC1=["live_chat/create_poll"];dm9=["playlist/create"];
j1b=["decorate_message"];s1J=["live_chat/delete_message"];mmt=["playlist/delete"];HCp=["video/delete"];y94=["like/dislike"];w0y=["dismissal/dismiss"];ee4=["flag/flag"];ni4=["flow"];OCM=["account/account_menu"];K_p=["playlist/get_add_to_playlist"];TG9=["get_answer"];Re9=["channel/get_channel_creation_form"];pJu=["offline/get_download_action"];iCJ=["kids/get_kids_blocklist_picker"];W_4=["live_chat/get_item_context_menu"];tf1=["live_chat/get_live_chat_message_buy_flow"];r9R=["live_chat/get_live_chat_replay"];
ugM=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];D4b=["live_chat/get_live_chat_super_sticker_buy_flow"];v3b=["notification/get_notification_menu"];hb$=["playlist/get_settings_editor"];ae9=["backstage/get_post_video_preview"];$41=["account/get_profile_card"];JML=["share/get_share_panel"];Q8s=["share/get_sharing_provider_data"];GnF=["get_survey"];VWs=["notification/get_unseen_count"];P6R=["get_user_mention_suggestions"];x4$=["get_watch"];MWF=["guide"];
fey=["feedback"];C6t=["kids/update_blacklist"];o3y=["like/like"];FY4=["live_chat/live_chat_action"];zbJ=["live_chat/manage_user"];U4s=["video_manager/metadata_update"];LYp=["live_chat/moderate"];Zn1=["notification/modify_channel_preference"];E34=["notification/opt_out"];kG=["get_panel","get_posts_by_host_panel"];IeF=["player"];g3t=["browse/edit_playlist"];knJ=["notification/record_interactions"];StM=["reel/reel_item_watch"];Jqm=["reel/reel_watch_sequence"];pMs=["like/removelike"];leR=["notification/remove_upcoming_event_reminder"];
Nu4=["flag/get_form"];YtJ=["miniapp/report_value"];Bu$=["navigation/resolve_url"];cqs=["channel/reveal_business_email"];XMb=["in_video/search"];AqJ=["search","sfv/search","unplugged/search"];qty=["live_chat/send_message"];bnp=["live_chat/send_live_chat_vote"];d49=["account/set_setting"];j8p=["submit_caption_correction"];s8J=["submit_form"];m4m=["subscription/subscribe"];kBf=["get_transcript"];HnJ=["resolve_location","unplugged/resolve_location"];yqJ=["subscription/unsubscribe"];wMR=["backstage/update_post"];
ebJ=["channel_edit/update_channel_page_settings"];n3p=["comment/update_comment_reply"];On4=["comment/update_comment"];KYs=["comment/update_comments_settings"];TuJ=["creator/update_creator_channel"];Rbs=["pdg/update_enablement"];inF=["updated_metadata"];WY9=["channel_edit/validate_channel_handle"];tWF=["verify_age"];rqm=["next","unplugged/watch_next"];uOp=["whitelist/edit"];Dkm=["ypc/cancel_recurrence"];vuM=["ypc/complete_transaction"];hz$=["ypc/get_cart"];akJ=["ypc/get_fix_instrument_params"];
$ky=["ypc/get_offers"];Q_J=["ypc/get_payment_instruments_params"];GGs=["ypc/handle_transaction"];V1t=["ypc/log_payment_server_analytics"];PF9=["ypc/pause_subscription"];xk4=["ypc/redeem_code"];M1y=["ypc/resume_subscription"];var fkF=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,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,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,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,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,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,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,
43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,
147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,
22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,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,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var JP=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Gm("yt.msgs_",JP);var Sh=new _.Uj("ACTION_ROUTER_TOKEN");_.Jp=function(){this.autonavState_=_.g("kevlar_is_pupi_enabled")?2:u2A()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Jp.prototype.getState=function(){return this.autonavState_};
_.Jp.prototype.pause=function(D){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=D):this.autonavState_==1&&(this.disabledAutonavPauseReason_=D)};
_.Jp.prototype.setState=function(D,v,h){v&&(this.autoplayChangedByUser=!0);v=this.autonavState_===3||D===3;this.autonavState_!=D&&(this.autonavState_=D,D!=3&&_.D98(D==2),D=_.g("kevlar_is_pupi_enabled")?h||v:!0,_.iD.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,D,h))};
_.Jp.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.x7(_.Jp);var pH=function(){this.hasRun=!1};var ll={},fVi=(ll.auto_search="LATENCY_ACTION_AUTO_SEARCH",ll.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ll.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ll.app_startup="LATENCY_ACTION_APP_STARTUP",ll.browse="LATENCY_ACTION_BROWSE",ll.cast_splash="LATENCY_ACTION_CAST_SPLASH",ll.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ll.channels="LATENCY_ACTION_CHANNELS",ll.chips="LATENCY_ACTION_CHIPS",ll.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ll.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ll.editor="LATENCY_ACTION_EDITOR",ll.embed="LATENCY_ACTION_EMBED",ll.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ll.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ll.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ll.explore="LATENCY_ACTION_EXPLORE",ll.favorites="LATENCY_ACTION_FAVORITES",ll.home="LATENCY_ACTION_HOME",ll.inboarding="LATENCY_ACTION_INBOARDING",ll.landing="LATENCY_ACTION_LANDING",ll.learning="LATENCY_ACTION_LEARNING",
ll.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",ll.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",ll.library="LATENCY_ACTION_LIBRARY",ll.live="LATENCY_ACTION_LIVE",ll.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ll.management="LATENCY_ACTION_MANAGEMENT",ll.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ll.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ll.onboarding="LATENCY_ACTION_ONBOARDING",ll.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
ll.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ll.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ll.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",ll.prebuffer="LATENCY_ACTION_PREBUFFER",ll.prefetch="LATENCY_ACTION_PREFETCH",ll.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ll.profile_switcher="LATENCY_ACTION_LOGIN",ll.projects="LATENCY_ACTION_PROJECTS",ll.reel_watch="LATENCY_ACTION_REEL_WATCH",ll.results="LATENCY_ACTION_RESULTS",ll.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
ll.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ll.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ll.review="LATENCY_ACTION_REVIEW",ll.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ll.search_ui="LATENCY_ACTION_SEARCH_UI",ll.search_suggest="LATENCY_ACTION_SUGGEST",ll.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ll.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ll.seek="LATENCY_ACTION_PLAYER_SEEK",ll.settings="LATENCY_ACTION_SETTINGS",ll.store="LATENCY_ACTION_STORE",
ll.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ll.tenx="LATENCY_ACTION_TENX",ll.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ll.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",ll.watch="LATENCY_ACTION_WATCH",ll.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ll["watch,watch7"]="LATENCY_ACTION_WATCH",ll["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ll["watch,watch7ad"]="LATENCY_ACTION_WATCH",ll["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ll.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
ll.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ll.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ll.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ll.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ll.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ll.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ll.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ll),lV8=0;var Ax2=function(D,v){wt.call(this,1,arguments);this.timer=v};
_.J(Ax2,wt);var XqL=new AVu("aft-recorded",Ax2);var zvL=_.$L.ytLoggingGelSequenceIdObj_||{};_.Gm("ytLoggingGelSequenceIdObj_",zvL);var N8=_.$L.ytLoggingLatencyUsageStats_||{};_.Gm("ytLoggingLatencyUsageStats_",N8);var YG=function(){this.cleanupJob=0},Zgi=function(){YG.instance||(YG.instance=new YG);
return YG.instance};
_.V=YG.prototype;_.V.baseline=function(D,v,h){Bi(this,"baseline_"+D)||_.jj("latencyActionBaselined",{clientActionNonce:D},{timestamp:v,cttAuthInfo:h})};
_.V.tick=function(D,v,h,a){Bi(this,"tick_"+D+"_"+v)||_.jj("latencyActionTicked",{tickName:D,clientActionNonce:v},{timestamp:h,cttAuthInfo:a})};
_.V.info=function(D,v,h){var a=Object.keys(D).join("");Bi(this,"info_"+a+"_"+v)||(D=Object.assign({},D),D.clientActionNonce=v,_.jj("latencyActionInfo",D,{cttAuthInfo:h}))};
_.V.jspbInfo=function(D,v,h){for(var a="",Q=0;Q<Hs(D).length;Q++)Hs(D)[Q]!==void 0&&(a=Q===0?a.concat(""+Q):a.concat("_"+Q));Bi(this,"info_"+a+"_"+v)||(_.Xx(D,2,v),v={cttAuthInfo:h},h=_.g("jspb_sparse_encoded_pivot")?new B1([{}]):new B1,_.Nf(h,7,K3t,D),U9I("latencyActionInfo",h,v))};
_.V.span=function(D,v,h){var a=Object.keys(D).join("");Bi(this,"span_"+a+"_"+v)||(D.clientActionNonce=v,_.jj("latencyActionSpan",D,{cttAuthInfo:h}))};
var Bi=function(D,v){N8[v]=N8[v]||{count:0};var h=N8[v];h.count++;h.time=(0,_.xz)();D.cleanupJob||(D.cleanupJob=_.c1(_.HK,function(){var a=(0,_.xz)(),Q;for(Q in N8)N8[Q]&&a-N8[Q].time>6E4&&delete N8[Q];D&&(D.cleanupJob=0)},5E3));
return h.count>5?(h.count===6&&Math.random()*1E5<1&&(h=new _.XH("CSI data exceeded logging limit with key",v.split("_")),v.indexOf("plev")>=0||_.yR(h)),!0):!1};var CFm,oup;CFm=window;oup=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.qF=CFm.performance||CFm.mozPerformance||CFm.msPerformance||CFm.webkitPerformance||new oup;var cxi=!1,IV8=!1,qBc=(0,_.qp)(_.qF.clearResourceTimings||_.qF.webkitClearResourceTimings||_.qF.mozClearResourceTimings||_.qF.msClearResourceTimings||_.qF.oClearResourceTimings||_.Ay,_.qF);var FEm=window;FEm.ytcsi&&(FEm.ytcsi.infoGel=_.HU,FEm.ytcsi.tick=_.ea);var OgL=function(D){wt.call(this,1,arguments);this.csn=D};
_.J(OgL,wt);var syc=new AVu("screen-created",OgL),V8I=[],nFI=GX2,Pb2=0,RN=new Map,KBi=new Map,T3f=new Map;var G1I=Symbol("Af"),Q_=new WeakMap;var ci=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},AD=function(){ci.instance||(ci.instance=new ci);
return ci.instance};
_.V=ci.prototype;_.V.setClient=function(D){this.client=D};
_.V.JSC$12572_newScreen=function(){this.clear();this.csn=_.wd()};
_.V.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.V.reportShown=function(D,v,h){var a=this.JSC$12572_getTrackingParams(D),Q=D.visualElement?D.visualElement:a;v=this.shownElements.has(Q);var G=this.visibleState.get(Q);this.shownElements.add(Q);this.visibleState.set(Q,!0);D.impressionLog&&!v&&D.impressionLog();if(a||D.visualElement)if(h=zzb(this,D,h))if(Q=UkJ(this,D),Xq(this,D)||Q){a=D.visualElement?D.visualElement:_.d4(a);var x=D.interactionLoggingClientData;Q||v?Xq(this,D)&4?G||vMI(this.client,h,a,x):Xq(this,D)&1&&!v&&rxL(this.client,h,a,x):rxL(this.client,
h,a,x)}};
_.V.reportHidden=function(D,v,h){var a=this.JSC$12572_getTrackingParams(D),Q=D.visualElement?D.visualElement:a;v=this.hiddenElements.has(Q);var G=this.visibleState.get(Q);this.hiddenElements.add(Q);this.visibleState.set(Q,!1);if(G===!1)return!0;if(!a&&!D.visualElement)return!1;h=zzb(this,D,h);if(!h||!Xq(this,D)&&UkJ(this,D))return!1;a=D.visualElement?D.visualElement:_.d4(a);Xq(this,D)&8?h_q(this.client,h,a):Xq(this,D)&2&&!v&&(D=this.client,v=TU({cttAuthInfo:eC(h)||void 0},h),a={csn:h,ve:a.getAsJson(),
eventType:2},h==="UNDEFINED_CSN"?WU("visualElementHidden",v,a):D?bD("visualElementHidden",a,D,v):_.jj("visualElementHidden",a,v));return!0};
_.V.JSC$12572_getTrackingParams=function(D){var v=this.getData(D),h,a;if(_.g("il_use_view_model_logging_context")&&(v==null?0:(h=v.context)==null?0:(a=h.loggingContext)==null?0:a.loggingDirectives))return v.context.loggingContext.loggingDirectives.trackingParams||"";var Q,G;if(v==null?0:(Q=v.rendererContext)==null?0:(G=Q.loggingContext)==null?0:G.loggingDirectives)return v.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(v==null?0:v.loggingDirectives)return v.loggingDirectives.trackingParams||
"";var x;return((x=D.veContainer)==null?0:x.trackingParams)?D.veContainer.trackingParams:(v==null?void 0:v.trackingParams)||""};
_.V.JSC$12572_elementShouldLogGesture=function(D,v){D=this.getData(D);return!!((Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.gestures&&D.loggingDirectives.gestures.types||""))||0)&v)};
_.V.JSC$12572_getNearestParentVe=function(D){var v=this.JSC$12572_getTrackingParams(D);return D.visualElement?D.visualElement:v?_.d4(v):D.parentElement?this.JSC$12572_getNearestParentVe(D.parentElement):null};
var zzb=function(D,v,h){var a=_.wd(h);return D.csn===null||a===D.csn||h?a:(D=new _.XH("VisibilityLogger called before newScreen",{caller:v.tagName,previous_csn:D.csn,current_csn:a}),_.yR(D),null)};
ci.prototype.getData=function(D){var v,h=D.data||((v=D.props)==null?void 0:v.data);if(!h||D.isWebComponentWrapper){var a;h=(a=Q_.get(D))==null?void 0:a[G1I]}return h};
var UkJ=function(D,v){var h;return!((h=D.getData(v))==null||!h.loggingDirectives)},Xq=function(D,v){D=D.getData(v);
return Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.visibility&&D.loggingDirectives.visibility.types||""))||1};var Ap;Ap=function(){};
_.Yt=function(){Ap.instance||(Ap.instance=new Ap);return Ap.instance};
Ap.prototype.setClient=function(D){_.KJ(AD().setClient).bind(AD())(D)};
_.LEJ=function(){_.Yt();_.KJ(AD().JSC$12572_newScreen).bind(AD())()};
Ap.prototype.clear=function(){_.KJ(AD().clear).bind(AD())()};
Ap.prototype.reportShown=function(D,v,h){_.KJ(AD().reportShown).bind(AD())(D,v,h)};
Ap.prototype.reportHidden=function(D,v,h){return _.KJ(AD().reportHidden).bind(AD())(D,v,h)};
var qhI=function(D,v){return _.KJ(AD().JSC$12572_getTrackingParams).bind(AD())(v)},VHq=function(D,v){return _.KJ(AD().JSC$12572_getNearestParentVe).bind(AD())(v)};var q8,ZEJ;q8=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};
_.c8=function(){q8.instance||(q8.instance=new q8);return q8.instance};
q8.prototype.setClient=function(D){this.client=D};
ZEJ=function(D,v,h){h=h===void 0?{}:h;_.KJ(function(){var a,Q,G,x=((a=_.k(v==null?void 0:v.commandMetadata,_.Sa))==null?void 0:a.rootVe)||((Q=_.k(v==null?void 0:v.commandMetadata,$9$))==null?void 0:(G=Q.screenVisualElement)==null?void 0:G.uiType);if(x){a=_.k(v==null?void 0:v.commandMetadata,Wjm);if(a==null?0:a.parentTrackingParams){var f=_.d4(a.parentTrackingParams);if(a.parentCsn)var C=a.parentCsn}else h.clickedVisualElement?f=h.clickedVisualElement:v.clickTrackingParams&&(f=_.d4(v.clickTrackingParams));
a:{a=_.k(v,_.hP);Q=_.k(v,Ref);if(a){if(Q=vFi(a,"VIDEO")){a={token:Q,videoId:a.videoId};break a}}else if(Q&&(a=vFi(Q,"PLAYLIST"))){a={token:a,playlistId:Q.playlistId};break a}a=void 0}h=Object.assign({},{cttAuthInfo:a,parentCsn:C},h);if(_.g("expectation_logging")){var U;h.loggingExpectations=((U=_.k(v==null?void 0:v.commandMetadata,$9$))==null?void 0:U.loggingExpectations)||void 0}_.bl(D,x,f,h)}else _.yR(new _.XH("Error: Trying to create a new screen without a rootVeType",v))})()};
_.bl=function(D,v,h,a){a=a===void 0?{}:a;_.KJ(function(){fkF.includes(v)||(_.yR(new _.XH("createClientScreen() called with a non-page VE",v)),v=83769);a.isHistoryNavigation||(D.forwardHistoryStack=[],D.backHistoryStack.push({rootVe:v,key:a.key||""}));D.graftQueue=[];D.stateChangedQueue=[];a.dataPromises?Eu4(D,v,h,a):Ikp(D,v,h,a)})()};
_.gu4=function(D,v,h){h=h===void 0?0:h;_.KJ(function(){v.then(function(a){D.pendingScreenCreation.has(h)&&D.pendingScreenFn&&D.pendingScreenFn();var Q=_.wd(h),G=_.yC(h);if(Q&&G){var x={automatedLogEventSource:3},f;(a==null?0:(f=a.response)==null?0:f.trackingParams)&&i1(D.client,Q,G,_.d4(a.response.trackingParams),!1,x);var C;(a==null?0:(C=a.playerResponse)==null?0:C.trackingParams)&&i1(D.client,Q,G,_.d4(a.playerResponse.trackingParams),!1,x)}})})()};
q8.prototype.graftServerVe=function(D,v,h){var a=this;return _.KJ(function(){var Q=_.d4(D);_.de(a,Q,v,h);return Q})()};
_.PCL=function(D,v,h,a){return _.g("enable_client_ve_spec")&&v.clientVeSpec?(v=_.En(v.clientVeSpec.uiType,void 0,v.clientVeSpec.elementIndex,v.clientVeSpec.clientYoutubeData,void 0,v),_.de(D,v,h,a)?v:null):v.trackingParams?D.graftServerVe(v.trackingParams,h,a):null};
_.B8=function(D,v,h,a){return _.KJ(function(){if(!v.veType)return _.H1(new _.XH("Error: Trying to graft a client VE without a veType.")),null;if(v.visibilityTypes){var Q=v.visibilityTypes.reduce(function(G,x){return G|x});
Q={visibility:{types:String(Q)}}}Q=_.En(v.veType,v.visualElement,v.elementIndex,v.clientYouTubeData,void 0,Q);return _.de(D,Q,h,a)?Q:null})()};
_.de=function(D,v,h,a){a=a===void 0?0:a;return _.KJ(function(){if(D.pendingScreenCreation.has(a))return D.graftQueue.push([v,h]),!0;var Q=_.wd(a),G=h||_.yC(a);if(Q&&G){if(_.g("combine_ve_grafts")){var x=D.cachedVisualElements.get(G.toString());x?x.push(v):(D.cachedRootVisualElements.set(G.toString(),G),D.cachedVisualElements.set(G.toString(),[v]));D.attachTimeout||(D.attachTimeout=_.c1(_.HK,function(){kG9(D,Q)},1200))}else i1(D.client,Q,G,v);
return!0}return!1})()};
_.jh=function(D,v,h){h=h===void 0?0:h;var a=D.recurringGrafts.get(h)||new Map;if(_.g("smarter_ve_dedupping"))for(var Q=Array.from(a.keys()),G=0;G<Q.length;G++){var x=void 0,f=void 0;var C=v;var U=Q[G];U.isClientVe()&&C.isClientVe()?(x=C.getAsJson(),f=U.getAsJson(),C=x.veType!==f.veType||x.elementIndex!==f.elementIndex||x.dataElement!==f.dataElement||C.getLoggingDirectives()!==U.getLoggingDirectives()?!1:!0):C=U.veData.trackingParams!==void 0&&C.veData.trackingParams!==void 0?((f=C.veData)==null?void 0:
f.trackingParams)===((x=U.veData)==null?void 0:x.trackingParams):!1;if(C)return}else if(a.has(v))return;a.set(v,void 0);D.recurringGrafts.set(h,a);_.wd(h)==="UNDEFINED_CSN"||D.pendingScreenCreation.has(h)||_.de(D,v,void 0,h)};
_.se=function(D,v,h,a){a=_.wd(a===void 0?0:a);if(!a)return!1;$Bc(D.client,a,v,h);return!0};
_.mj=function(D,v,h,a){if(!v)return!1;a=_.wd(a===void 0?0:a);if(!a)return!1;$Bc(D.client,a,_.d4(v),h);return!0};
_.r1=function(D,v){var h=v.getScreenLayer&&v.getScreenLayer();if(v.visualElement)return _.se(D,v.visualElement,void 0,h);v=qhI(_.Yt(),v);return _.mj(D,v,void 0,h)};
q8.prototype.clickCommand=function(D,v,h){return _.mj(this,D.clickTrackingParams,v,h===void 0?0:h)};
q8.prototype.stateChanged=function(D,v,h){this.visualElementStateChanged(_.d4(D),v,h===void 0?0:h)};
q8.prototype.visualElementStateChanged=function(D,v,h){h=h===void 0?0:h;h===0&&this.pendingScreenCreation.has(h)?this.stateChangedQueue.push([D,v]):this.logStateChanged(D,v,h)};
q8.prototype.logStateChanged=function(D,v,h){h=h===void 0?0:h;var a=_.wd(h);D=D||_.yC(h);return a&&D?(QdI(this.client,a,D,v),!0):!1};
var Eu4=function(D,v,h,a){a=a===void 0?{}:a;D.pendingScreenCreation.add(a.layer||0);D.pendingScreenFn=function(){Ikp(D,v,h,a);var x=_.yC(a.layer);if(x){for(var f=_.P(D.graftQueue),C=f.next();!C.done;C=f.next())C=C.value,_.de(D,C[0],C[1]||x,a.layer);x=_.P(D.stateChangedQueue);for(f=x.next();!f.done;f=x.next())f=f.value,D.logStateChanged(f[0],f[1])}};
h||_.wd(a.layer)||D.pendingScreenFn();if(a.dataPromises)for(var Q=_.P(a.dataPromises),G=Q.next();!G.done;G=Q.next())_.gu4(D,G.value,a.layer);else _.mV(Error("Bf"))},Ikp=function(D,v,h,a){a=a===void 0?{}:a;
var Q=void 0;a.layer||(a.layer=0);Q=a.parentLayer!==void 0?a.parentLayer:a.layer;var G=_.wd(Q);Q=_.yC(Q);var x=h||Q,f;x&&(a.parentCsn!==void 0?f={clientScreenNonce:a.parentCsn,visualElement:x}:G&&G!=="UNDEFINED_CSN"&&(f={clientScreenNonce:G,visualElement:x}));var C,U=_.eA("EVENT_ID");G==="UNDEFINED_CSN"&&U&&(C={servletData:{serializedServletEventId:U}});_.g("combine_ve_grafts")&&G&&kG9(D,G);_.g("no_client_ve_attach_unless_shown")&&x&&G&&t5r(x,G);try{var L=_.RvA(D.client,v,f,a.csnToClone,a.cttAuthInfo,
C,a.implicitGestureType,void 0,a.loggingExpectations)}catch(I){_.wf(I,{rootVeType:v,rootVe:Q,parentVisualElement:h,currentCsn:G,parentEl:f,csnToClone:a.csnToClone});_.mV(I);return}_.nm(L,v,a.layer,a.cttAuthInfo);G&&G!=="UNDEFINED_CSN"&&Q&&!$_i(G)&&h_q(D.client,G,Q,!0);D.backHistoryStack[D.backHistoryStack.length-1]&&!D.backHistoryStack[D.backHistoryStack.length-1].csn&&(D.backHistoryStack[D.backHistoryStack.length-1].csn=L||"");_.HU({clientScreenNonce:L});_.LEJ();var Z=_.yC(a.layer);G&&G!=="UNDEFINED_CSN"&&
Z&&(_.g("web_mark_root_visible")||_.g("music_web_mark_root_visible"))&&_.u1(L,Z);D.pendingScreenCreation.delete(a.layer||0);D.pendingScreenFn=void 0;var E;(E=D.recurringGrafts.get(a.layer))==null||E.forEach(function(I,S){I?_.de(D,S,I,a.layer):Z&&_.de(D,S,Z,a.layer)});
Sp$(D)},Sp$=function(D){for(var v=0;v<D.afterNewScreenOneOffJobs.length;v++){var h=D.afterNewScreenOneOffJobs[v];
try{h()}catch(a){_.mV(a)}}for(v=D.afterNewScreenOneOffJobs.length=0;v<D.afterNewScreenRecurringJobs.length;v++){h=D.afterNewScreenRecurringJobs[v];try{h()}catch(a){_.mV(a)}}},kG9=function(D,v){if(v===void 0)for(var h=hhu(),a=0;a<h.length;a++)h[a]!==void 0&&kG9(D,h[a]);
else D.cachedVisualElements.forEach(function(Q,G){(G=D.cachedRootVisualElements.get(G))&&ig7(D.client,v,G,Q)}),D.cachedVisualElements.clear(),D.cachedRootVisualElements.clear(),D.attachTimeout=void 0};var Hi=function(D){D=D===void 0?{layer:0}:D;this.hasRun=!1;this.createScreenConfig=D;D={};this.aFI=(D.response=!1,D.playerResponse=!1,D)};
_.J(Hi,pH);Hi.prototype.validate=function(D){return!(!D.data||!D.data.response&&!D.data.playerResponse)};
Hi.prototype.handle=function(D){var v=_.c8(),h=this.createScreenConfig.layer;D.data.response&&D.data.response.trackingParams&&!this.aFI.response&&(v.graftServerVe(D.data.response.trackingParams,void 0,h),this.aFI.response=!0);D.data.playerResponse&&D.data.playerResponse.trackingParams&&!this.aFI.playerResponse&&(v.graftServerVe(D.data.playerResponse.trackingParams,void 0,h),this.aFI.playerResponse=!0)};var yi=function(){this.pI=_.hn();this.dK=[];this.cod=0};
yi.prototype.processChunk=function(D){if(D){for(var v=_.P(this.dK),h=v.next();!h.done;h=v.next())h=h.value,h.validate(D)&&(h.handle(D),h.hasRun=!0);_.ea("np"+this.cod);this.cod++}};var Ga={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},Cb7={rootSpan:function(){return Ga.stack[0]}};var p$t=function(){var D=Jjp;this.observers=[];this.value=D};
_.V=p$t.prototype;_.V.subscribe=function(D){var v=this;if(D.idx!=null)throw Error("Df");D.idx=this.observers.length;this.observers.push(D);return function(){var h=v.observers[v.observers.length-1];v.observers[D.idx]=h;h.idx=D.idx;v.observers.pop()}};
_.V.update=function(D){this.value=D(this.value);this.notify()};
_.V.mutate=function(D){D(this.value);this.notify()};
_.V.set=function(D){this.value=D;this.notify()};
_.V.notify=function(){for(var D=_.P(this.observers),v=D.next();!v.done;v=D.next()){v=v.value;try{v(this.value)}catch(h){}}};var XPc,lkp,Bzb;_.pb=function(D,v,h,a,Q,G,x,f){x=x===void 0?[]:x;f=f===void 0?[]:f;this.buildCommandPayload=D;this.navigate=v;this.handleServiceRequest=h;this.sendAction=a;this.JSC$12619_screenManager=Q;this.commandResolverMap=G;this.autoLogResolverAllowlist=x;this.metaCommandClickLoggingDenylist=f;this.pendingCommands=new Set;this.isTracingEnabled=!1;lkp(this)};
XPc=function(D,v,h,a){var Q=zo2,G=UXA,x=_.c8(),f=NzJ;h=h===void 0?[]:h;a=a===void 0?[]:a;_.pb.instance=new _.pb(D,v,Q,G,x,f,h,a)};
lkp=function(D){if(!D.isTracingEnabled&&M88("command")){var v=D.resolveCommand;D.resolveCommand=function(h,a){a:{for(Q in h)if(Object.prototype.hasOwnProperty.call(h,Q)){var Q={commandType:Q};break a}Q={}}return oMf("command",Q,v.bind(this,h,a))};
D.isTracingEnabled=!0}};
Bzb=function(D,v,h){if(!D.commandResolverMap)return!1;var a=ZrI(v,D.commandResolverMap);return a?((D.autoLogResolverAllowlist.some(function(Q){return!!_.k(v,Q)})||(h==null?0:h.forceClickLogging))&&YpF(D,v,h),a instanceof Promise?a.then(function(Q){Q.resolve(v,h)}):a.resolve(v,h),!0):!1};
_.pb.prototype.resolveCommand=function(D,v){var h=this,a=cjs(D);if(Bzb(this,D,v))return!0;if(a)return X$p(this,D,v);if(!this.buildCommandPayload)return z_7(D,"Unhandled command by buildCommandPayload"),!1;var Q=this.buildCommandPayload(D,v);if(v==null?0:v.commandController)Q.commandController=v.commandController;if(Q.type===0){if(!this.navigate)return UBu(D,"navigate"),!1;if(!AjM(Q.command))return z_7(D,"Page requests need to specify a url"),!1;_.g("logging_avoid_blocking_during_navigation")&&_.gef().transition("application_navigating");
D=this.navigate(Q)||[];bTF(D).then(function(){h.pendingCommands.delete(Q.command)});
return!0}if(Q.type===1){if(!this.handleServiceRequest)return UBu(D,"handleServiceRequest"),!1;(v==null?0:v.forceClickLogging)&&YpF(this,Q.command,v);D=this.handleServiceRequest(Q);bTF(D).then(function(){h.pendingCommands.delete(Q.command)});
return!0}if(Q.type===2){if(!this.sendAction)return UBu(D,"sendAction"),!1;YpF(this,Q.command,v);this.sendAction(Q);return!0}return!1};
var YpF=function(D,v,h){if((h==null||!h.disableClickTracking)&&D.JSC$12619_screenManager)if(v.clickTrackingParams&&_.g("log_click_with_layer_from_element_in_command_handler")){var a;h=h==null?void 0:(a=h.form)==null?void 0:a.element;D.JSC$12619_screenManager.clickCommand(v,null,h&&h.getScreenLayer&&h.getScreenLayer())}else v.clickTrackingParams?D.JSC$12619_screenManager.clickCommand(v):!_.g("disable_clicked_visual_element_in_command_handler")&&(h==null?0:h.clickedVisualElement)&&_.se(D.JSC$12619_screenManager,
h.clickedVisualElement)},cjs=function(D){var v=!!_.k(D,_.IN),h;
D=((h=_.k(D,_.kE))==null?void 0:h.signal)==="CLIENT_SIGNAL";return v||D},X$p=function(D,v,h){var a=_.k(v,_.IN);
if(a)var Q=(a==null?void 0:a.commands)||[];else{var G;if(((G=_.k(v,_.kE))==null?void 0:G.signal)==="CLIENT_SIGNAL"){var x;Q=((x=_.k(v,_.kE))==null?void 0:x.actions)||[]}}if(Q){(a=qp4(D,Q))&&YpF(D,v,h);v=_.P(Q);for(Q=v.next();!Q.done;Q=v.next()){Q=Q.value;try{var f=Object.assign({},h);a&&(f.disableClickTracking=!0);D.resolveCommand(Q,f)}catch(C){C instanceof Error&&_.mV(C)}}return!0}z_7(v,"Could not handle the meta command");return!1},qp4=function(D,v){return v.every(function(h){return D.metaCommandClickLoggingDenylist.some(function(a){return!!_.k(h,
a)})})},AjM=function(D){var v;
return!((v=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null||!v.url)};var we=function(){pH.apply(this,arguments)};
_.J(we,pH);we.prototype.validate=function(D){var v,h;return!this.hasRun&&!!((v=D.data.response)==null?0:(h=v.onResponseReceivedEndpoints)==null?0:h.length)};
we.prototype.handle=function(D){var v=_.pb.instance;D=_.P(D.data.response.onResponseReceivedEndpoints);for(var h=D.next();!h.done;h=D.next())v.resolveCommand(h.value)};var bEJ,dk4,j_t;
bEJ=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.E9();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.eh=function(){dk4||(dk4=new bEJ);return dk4};
j_t=function(){var D=_.eh();D.miniplayerButtonActivation=!1;D.userActivation=!1;D.playlistWatchPageActivation=!1;D.productDetailsPageActivation=!1;D.miniAppPageActivation=!1;D.playablesDestPageActivation=!1;D.lockupActivation=!1;D.showMiniplayerCommandActivation=!1;D.playlistSuggestionsShelfActivation=!1;D.mediaSessionPipActivation=!1;D.watchPipActivation=!1;D.watchWhileActivation=!1;D.shortsPipActivation=!1;D.companionCanvasActivation=!1};
_.s_p=function(){var D=_.eh(),v=D.mediaSessionPipActivation,h=D.watchPipActivation,a=D.watchWhileActivation,Q=D.playlistWatchPageActivation,G=D.lockupActivation,x=D.showMiniplayerCommandActivation,f=D.navigatingAwayFromWatchDeletedVideo,C=D.shortsPipActivation,U=D.playlistSuggestionsShelfActivation,L=D.productDetailsPageActivation,Z=D.miniAppPageActivation,E=D.playablesDestPageActivation,I=D.companionCanvasActivation;return!D.miniplayerButtonActivation&&!Q&&!U&&!L&&!Z&&!E&&!G&&!x&&!v&&!h&&!a&&!C&&
!I||f};var laI;_.nH=_.Pf("FEwhat_to_watch","/",3854);_.NiI=_.Pf("FEdownloads","/feed/downloads",42352);laI=_.Pf("FEmusic_offline","browse/FEmusic_offline",42352);var Qy=function(D,v){v=v===void 0?[]:v;var h=h===void 0?[]:h;v=sIi.apply(null,[mE8.apply(null,_.j_(v))].concat(_.j_(h)));this.store=eDu(D,void 0,v)};
Qy.prototype.getState=function(){return this.store.getState()};
Qy.prototype.dispatch=function(D){return this.store.dispatch(D)};
Qy.prototype.subscribe=function(D){return this.store.subscribe(D)};
Qy.prototype.replaceReducer=function(D){return this.store.replaceReducer(D)};
Qy.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Oe=function(D,v,h){var a=v(D.getState());return D.subscribe(function(){var Q=v(D.getState());if(Q!==a){var G=a;a=Q;h(Q,G)}})};var x8O;_.Xe=function(D,v,h){return _.oG({type:"REPLACE_ENTITY",payload:{entityPayload:h,entityType:D,key:v}})};
x8O=function(D){return _.oG({type:"REPLACE_ENTITIES",payload:D})};
_.sy=function(D,v,h,a){return _.oG({type:"UPDATE_ENTITY",payload:{entityPayload:h,entityType:D,key:v,mergeOption:a}})};var XF7=function(D){var v=this;D=D===void 0?[]:D;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;D.forEach(function(h){v.append(h)})};
_.V=XF7.prototype;_.V.getLength=function(){return this.totalLength};
_.V.append=function(D){var v=this.arrays.length===0?!1:(v=this.arrays[this.arrays.length-1])&&v.buffer===D.buffer&&v.byteOffset+v.length===D.byteOffset;v?(v=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(v.buffer,v.byteOffset,v.length+D.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(D);this.totalLength+=D.length};
_.V.split=function(D){for(var v=new XF7,h=new XF7,a=_.P(this.arrays),Q=a.next();!Q.done;Q=a.next())Q=Q.value,D>=Q.length?(v.append(Q),D-=Q.length):D?(v.append(new Uint8Array(Q.buffer,Q.byteOffset,D)),h.append(new Uint8Array(Q.buffer,Q.byteOffset+D,Q.length-D)),D=0):h.append(Q);return{headView:v,tailView:h}};
_.V.isFocused=function(D){return D>=this.arrayPos&&D<this.arrayPos+this.arrays[this.arrayIdx].length};
_.V.focus=function(D){if(!this.isFocused(D))for(D<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=D&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var mk9=function(D,v){D.focus(v);return D.arrays[D.arrayIdx][v-D.arrayPos]};(function(){var D=function(a){return new Uint8Array(a)},v=function(a){for(var Q=new Uint8Array(a.length),G=0;G<a.length;G++)Q[G]=a[G];
return Q},h=new Uint8Array([1]);
return h.length===1&&h[0]===1?D:v})();
var pFc=Array(1024),Jlo=window.TextDecoder?new TextDecoder:void 0,NPL=window.TextEncoder?new TextEncoder:void 0;var clO=function(D){this.arrayView=D;this.pos=0;this.pendingTagAndType=-1},U4=function(D){var v=mk9(D.arrayView,D.pos);
++D.pos;if(v<128)return v;for(var h=v&127,a=1;v>=128;)v=mk9(D.arrayView,D.pos),++D.pos,a*=128,h+=(v&127)*a;return h},AlA=function(D,v){var h=D.pendingTagAndType;
for(D.pendingTagAndType=-1;D.pos+1<=D.arrayView.totalLength;){h<0&&(h=U4(D));var a=h>>3,Q=h&7;if(a===v)return!0;if(a>v){D.pendingTagAndType=h;break}h=-1;switch(Q){case 0:U4(D);break;case 1:D.pos+=8;break;case 2:a=U4(D);D.pos+=a;break;case 5:D.pos+=4}}return!1};var bri=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=BPI(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},E4=function(D,v){v=D.pos+v;
if(!(D.buf.length>=v)){for(var h=D.buf.length*2;h<v;)h*=2;D.buf=BPI(h,D.wasm,D.buf.subarray(0,D.pos));D.view=new DataView(D.buf.buffer,D.buf.byteOffset,D.buf.byteLength)}},ZU=function(D,v){if(v>268435455){E4(D,4);
for(var h=v&1073741823,a=0;a<4;a++)D.view.setUint8(D.pos,h&127|128),h>>=7,D.pos+=1;v=Math.floor(v/268435456)}for(E4(D,4);v>127;)D.view.setUint8(D.pos,v&127|128),v>>=7,D.pos+=1;D.view.setUint8(D.pos,v);D.pos+=1};for(var dBf={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},qc2={},HE$=_.P(Object.entries(dBf)),yj$=HE$.next();!yj$.done;yj$=HE$.next()){var w$y=_.P(yj$.value),ezF=w$y.next().value,nuJ=w$y.next().value,OEJ=ezF,KE9=nuJ;KE9&&(qc2[KE9]=OEJ)};var sdc=function(D,v){D=D===void 0?{}:D;switch(v.type){case "ENTITY_LOADED":return v.payload.reduce(function(a,Q){var G,x=(G=Q.options)==null?void 0:G.persistenceOption;if(x&&x!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&x!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return a;if(!Q.entityKey)return _.mV(Error("Ff")),a;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new _.XH("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.mV(Q),a;var f=(0,_.sV.getAnyKey)(Q.payload);
return HrO(a,f,Q.entityKey,Q.payload[f])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var C=_.LG(Q).entityType;f=HrO(a,C,Q);break a}catch(Z){if(Z instanceof Error){Q=new _.XH("Failed to deserialize entity key",{entityKey:Q,originalMessage:Z.message});_.mV(Q);f=a;break a}throw Z;}f=void 0}return f}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new _.XH("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.mV(Q),a;f=(0,_.sV.getAnyKey)(Q.payload);
var U,L;return ylc(a,f,Q.entityKey,Q.payload[f],(U=Q.fieldMask)==null?void 0:(L=U.mergeOptions)==null?void 0:L.repeatedFieldsMergeOption)}return a},D);
case "REPLACE_ENTITY":var h=v.payload;return HrO(D,h.entityType,h.key,h.entityPayload);case "REPLACE_ENTITIES":return Object.keys(v.payload).reduce(function(a,Q){var G=v.payload[Q];return Object.keys(G).reduce(function(x,f){return HrO(x,Q,f,G[f])},a)},D);
case "UPDATE_ENTITY":return h=v.payload,ylc(D,h.entityType,h.key,h.entityPayload,h.mergeOption);default:return D}};var wFA;var TzJ=!1,KH,TF,RA,il,Wi,RzF=function(D){_.AN.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!TzJ){var v,h=new Uint8Array(256),a=new Uint8Array(256);var Q=1;for(v=0;v<256;v++)h[Q]=v,a[v]=Q,Q^=Q<<1^(Q>>7&&283);KH=new Uint8Array(256);TF=kZ(256);RA=kZ(256);il=kZ(256);Wi=kZ(256);for(var G=0;G<256;G++){Q=G?a[255^h[G]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;KH[G]=Q;v=Q<<1^(Q>>7&&283);var x=v^Q;TF[G]=v<<24|Q<<16|Q<<8|x;RA[G]=x<<24|TF[G]>>>8;il[G]=Q<<24|RA[G]>>>
8;Wi[G]=Q<<24|il[G]>>>8}TzJ=!0}Q=kZ(44);for(h=0;h<4;h++)Q[h]=D[4*h]<<24|D[4*h+1]<<16|D[4*h+2]<<8|D[4*h+3];for(a=1;h<44;h++)D=Q[h-1],h%4||(D=(KH[D>>16&255]^a)<<24|KH[D>>8&255]<<16|KH[D&255]<<8|KH[D>>>24],a=a<<1^(a>>7&&283)),Q[h]=Q[h-4]^D;this.key=Q};
_.J(RzF,_.AN);
RzF.prototype.encrypt=function(D){var v=D.length;D=new Uint8Array(D.buffer.slice(D.byteOffset,D.byteOffset+v));for(var h=this.cipherBlock,a=0;a<v&&this.blockOffset<16;)D[a++]^=h[this.blockOffset++];for(var Q=v-(v-a)%16;a<Q;)iE4(this),D[a++]^=h[0],D[a++]^=h[1],D[a++]^=h[2],D[a++]^=h[3],D[a++]^=h[4],D[a++]^=h[5],D[a++]^=h[6],D[a++]^=h[7],D[a++]^=h[8],D[a++]^=h[9],D[a++]^=h[10],D[a++]^=h[11],D[a++]^=h[12],D[a++]^=h[13],D[a++]^=h[14],D[a++]^=h[15];if(a<v)for(iE4(this),this.blockOffset=0;a<v;)D[a++]^=
h[this.blockOffset++];return D};
var iE4=function(D){for(var v=D.key,h=D.counter[0]^v[0],a=D.counter[1]^v[1],Q=D.counter[2]^v[2],G=D.counter[3]^v[3],x=3;x>=0&&!(D.counter[x]=-~D.counter[x]);x--);for(var f,C,U=4;U<40;)x=TF[h>>>24]^RA[a>>16&255]^il[Q>>8&255]^Wi[G&255]^v[U++],f=TF[a>>>24]^RA[Q>>16&255]^il[G>>8&255]^Wi[h&255]^v[U++],C=TF[Q>>>24]^RA[G>>16&255]^il[h>>8&255]^Wi[a&255]^v[U++],G=TF[G>>>24]^RA[h>>16&255]^il[a>>8&255]^Wi[Q&255]^v[U++],h=x,a=f,Q=C;D=D.cipherBlock;x=v[40];D[0]=KH[h>>>24]^x>>>24;D[1]=KH[a>>16&255]^x>>16&255;D[2]=
KH[Q>>8&255]^x>>8&255;D[3]=KH[G&255]^x&255;x=v[41];D[4]=KH[a>>>24]^x>>>24;D[5]=KH[Q>>16&255]^x>>16&255;D[6]=KH[G>>8&255]^x>>8&255;D[7]=KH[h&255]^x&255;x=v[42];D[8]=KH[Q>>>24]^x>>>24;D[9]=KH[G>>16&255]^x>>16&255;D[10]=KH[h>>8&255]^x>>8&255;D[11]=KH[a&255]^x&255;x=v[43];D[12]=KH[G>>>24]^x>>>24;D[13]=KH[h>>16&255]^x>>16&255;D[14]=KH[a>>8&255]^x>>8&255;D[15]=KH[Q&255]^x&255};var WE1=!1;(function(){var D=function(a){return new Uint8Array(a)},v=function(a){for(var Q=new Uint8Array(a.length),G=0;G<a.length;G++)Q[G]=a[G];
return Q},h=new Uint8Array([1]);
return h.length===1&&h[0]===1?D:v})();
var tp;var uEF=function(D){a:{if(!WE1&&!$z){if(tp){var v=tp;break a}tp=(v=window.crypto)==null?void 0:v.subtle;var h,a,Q;if(((h=tp)==null?0:h.importKey)&&((a=tp)==null?0:a.sign)&&((Q=tp)==null?0:Q.encrypt)){v=tp;break a}tp=void 0}v=void 0}v&&(this.nativeEncryptor=new t1t(D,v));this.encryptorPolyfill=new rj$(D)};
uEF.prototype.encrypt=function(D,v){var h=this,a;return _.M(function(Q){switch(Q.nextAddress){case 1:if(!h.nativeEncryptor){Q.jumpTo(2);break}_.gE(Q,3);return Q.yield(h.nativeEncryptor.encrypt(D,v),5);case 5:return Q.return(Q.yieldResult);case 3:a=_.NS(Q),_.yR(a),WE1=!0,h.nativeEncryptor=void 0;case 2:return Q.return(h.encryptorPolyfill.encrypt(D,v))}})};
uEF.prototype.decrypt=function(D,v){return this.encrypt(D,v)};
var t1t=function(D,v){this.JSC$12693_aesKey=D;this.subtleCrypto=v};
t1t.prototype.encrypt=function(D,v){var h=this,a;return _.M(function(Q){if(Q.nextAddress==1)return _.gE(Q,2),Q.yield(DNJ(h,D,v),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);a=_.NS(Q);_.yR(a);WE1=!0;throw a;})};
var DNJ=function(D,v,h){var a,Q;return _.M(function(G){switch(G.nextAddress){case 1:if(D.cryptoKey){G.jumpTo(2);break}return G.yield(D.subtleCrypto.importKey("raw",D.JSC$12693_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.cryptoKey=G.yieldResult;case 2:return a={name:"AES-CTR",counter:h,length:128},G.yield(D.subtleCrypto.encrypt(a,D.cryptoKey,v),4);case 4:return Q=G.yieldResult,G.return(new Uint8Array(Q))}})},rj$=function(D){this.JSC$12696_aesKey=D};
rj$.prototype.encrypt=function(D,v){this.encryptor||(this.encryptor=new RzF(this.JSC$12696_aesKey));for(var h=this.encryptor,a=0;a<4;a++)h.counter[a]=v[a*4]<<24|v[a*4+1]<<16|v[a*4+2]<<8|v[a*4+3];h.blockOffset=16;return this.encryptor.encrypt(D)};
rj$.prototype.decrypt=function(D,v){return this.encrypt(D,v)};var vbb={},Orq=PK("yt-idb-pref-storage",{objectStores:(vbb.prefs={addedAtVersion:1},vbb),shared:!1,upgrade:function(D,v){v(1)&&Re(Tm(D,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.re=function(D){this.token=D};
_.re.getInstance=function(){return _.M(function(D){return D.return(new Promise(function(v){_.Vx().then(function(h){h?(_.re.instance||(_.re.instance=new _.re(h)),v(_.re.instance)):v(void 0)})}))})};
_.re.prototype.get=function(D){var v=this,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return G.yield(K4c(v.token),2);if(G.nextAddress!=3)return h=G.yieldResult,G.yield(h.get("prefs",D),3);a=G.yieldResult;if(!a)return G.return();Q=(0,_.xz)();return a.expirationTimestampMs<=Q?G.return():G.return(a.value)})};
_.re.prototype.set=function(D,v,h){h=h===void 0?31536E3:h;var a=this,Q,G,x;return _.M(function(f){if(f.nextAddress==1)return Q=(0,_.xz)(),G={key:D,value:v,expirationTimestampMs:Q+h*1E3},f.yield(K4c(a.token),2);x=f.yieldResult;return f.yield(x.put("prefs",G),0)})};
_.re.prototype.remove=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(K4c(v.token),2);h=a.yieldResult;return a.yield(h.delete("prefs",D),0)})};var ul={},hR$=(ul.INVALID_ENCODER_VERSION="Invalid encoder version",ul.KEY_CREATION_FAILED="Failed to create encoder key",ul.UNKNOWN_DECODE_ERROR="Failed to decode PES data",ul.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",ul.WRONG_DATA_TYPE="Encoder cannot process the data type",ul),Sq=function(D,v){v=v===void 0?{}:v;_.XH.call(this,hR$[D],Object.assign({},{name:"PESEncoderError",type:D},v));this.type=D;this.level="WARNING";Object.setPrototypeOf(this,Sq.prototype)};
_.J(Sq,_.XH);var DL=function(){};
DL.prototype.encode=function(D,v){try{return this.encodeImpl(D,v)}catch(h){W42(h,R_i)}};
DL.prototype.decode=function(D,v){try{return this.decodeImpl(D,v)}catch(h){W42(h,ir2)}};
var ahp=function(D,v,h){var a;return _.M(function(Q){if(Q.nextAddress==1)return _.gE(Q,2),Q.yield(D.decodeAsyncImpl(v,h),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);a=_.NS(Q);W42(a,ir2);_.YI(Q)})};
DL.prototype.decodeAsyncImpl=function(D,v){return Promise.resolve(this.decodeImpl(D,v))};var vC=function(D,v){this.aesEncryptor=D;this.aesEncryptorAsync=v};
_.J(vC,DL);vC.prototype.encodeImpl=function(D,v){v=t8f(v);D=(new TextEncoder).encode(JSON.stringify(D));return this.aesEncryptor.encrypt(D,v)};
vC.prototype.decodeImpl=function(D,v){if(!(D instanceof Uint8Array))throw TP2(1);var h=new TextDecoder;v=t8f(v);D=this.aesEncryptor.decrypt(D,v);return JSON.parse(h.decode(D))};
vC.prototype.decodeAsyncImpl=function(D,v){var h=this,a,Q,G;return _.M(function(x){if(x.nextAddress==1){if(!(D instanceof Uint8Array))throw TP2(1);a=new TextDecoder;Q=t8f(v);return x.yield(h.aesEncryptorAsync.decrypt(D,Q),2)}G=x.yieldResult;return x.return(JSON.parse(a.decode(G)))})};var rlL={accountLinkStatusEntity:Rgt,booleanEntity:pw4,buttonEntity:o$t,captionTrack:t89,channelHandle:DC9,chipEntity:e7y,commerceAcquisitionClientPayloadEntity:mts,commerceCartListEntity:HOJ,contextNoteFeedEntityPayload:oN1,contextNoteUserRatingEntityPayload:FDy,continuationTokenEntity:Xqp,downloadQualityPickerEntity:IVF,downloadsPageRefreshTokenEntity:kL4,downloadsPageViewConfigurationEntity:yx9,downloadStatusEntity:gFJ,dismissState:nkJ,sfvAudioItemCurrentlyPlayingEntity:BeR,emojiFountainDataEntity:Mu4,
emojiCustomizationSetEntity:xtM,fakeChannel:NtM,fakePlaylist:Yjm,fakePlaylistEntryCollection:Bt1,fakeVideo:Xwt,fakeVideoDescription:Ae4,featuredProductsEntity:V8R,flowStateEntity:n9F,iconBadgeEntity:yEp,interstitialInteractionStateEntity:Mys,likeButtonAnimationEntity:wqs,liveChatPollStateEntity:Z6$,dataFreshnessEntity:PKp,liveViewerLeaderboardChatEntryPointStateEntity:fER,liveViewerLeaderboardPointsEntity:ClJ,liveReactionsDataEntity:fw$,logoEntity:Prb,macroMarkerEntity:ev4,mainDownloadsLibraryEntity:SBp,
mainDownloadsListEntity:Jxy,mainPlaylistDownloadStateEntity:lVF,mainPlaylistEntity:Axt,mainPlaylistVideoEntity:qBb,mainVideoDownloadStateEntity:N34,mainVideoEntity:sRt,markersEngagementPanelSyncEntity:nFR,markersVisibilityOverrideEntity:Ogp,musicAlbumReleaseDetail:EMM,musicAlbumReleaseDownloadMetadataEntity:F4y,musicAlbumRelease:ZrR,musicAlbumReleaseUserDetail:IQJ,musicArtistDetail:kXm,musicArtist:gMs,musicArtistUserDetail:Sc4,musicDownloadsLibraryEntity:z_4,musicLibraryEdit:Jl4,musicLibraryStatusEntity:pFb,
musicPlaylist:lQ9,musicPlaylistDownloadMetadataEntity:UBy,musicShare:YcJ,musicTrackDetail:cl$,musicTrackDownloadMetadataEntity:L4m,musicTrack:BPR,musicTrackUserDetail:XF4,offlineOrchestrationActionWrapperEntity:rlp,offlineVideoPolicy:ui$,offlineVideoStreams:D8p,offlineabilityEntity:YB1,orchestrationWebSamplingEntity:B3s,pageHeaderEntity:Dt4,pdpStateEntity:w2p,pinnedProductEntity:Pbt,playbackData:vGt,playerStateEntity:KBM,quantityIncrementerEntity:eAm,refresh:h$R,saveToPlaylistListEntity:thM,selectedChipIndexEntityPayload:T39,
settingEntity:Zh4,stringEntity:llJ,suggestedFeedbackChipStateEntity:Rvm,transfer:aEF,trendingOfferEntity:xB9,videoDownloadContextEntity:$8s,videoOverviewAsyncDataEntity:CX9,videoPlaybackPositionEntity:UtM,votingEntity:$tM,ytMainChannelEntity:m9s,youchatPendingResponseEntity:ig4,ytMainDownloadedVideoEntity:cxM,ytMainVideoEntity:Hgm};var $N$,GI4,YZ,GFo,Vh2,xN4,fhm,Ml9,PvM;$N$=function(D,v){this.JSC$12715_wrapped=D;this.JSC$12715_encoderRegistry=v;this.changedKeys={}};
GI4=function(D,v){return Q6R(D.JSC$12715_encoderRegistry,v.version).decode(v.data,v.key)};
_.Vlt=function(D,v,h){return D.JSC$12715_wrapped.objectStore("EntityStore").get(v).then(function(a){if(a){if(h&&a.entityType!==h)throw Error("Gf");return GI4(D,a)}})};
YZ=function(D,v,h){return h?(h=h.map(function(a){return _.Vlt(D,a,v)}),Ti.all(h)):D.JSC$12715_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(v)).then(function(a){return a.map(function(Q){return GI4(D,Q)})})};
_.QA2=function(D,v,h){var a=jdq(v),Q=Q6R(D.JSC$12715_encoderRegistry,1),G=Object.assign({},v);return D.JSC$12715_wrapped.objectStore("EntityStore").get(a).then(function(x){if(x){if(x.entityType!==h)throw Error("Gf");G.entityMetadata||(x=GI4(D,x),G.entityMetadata=x.entityMetadata)}}).then(function(){var x={key:a,
entityType:h,data:Q.encode(G,a),version:1};return Ti.all([D.JSC$12715_wrapped.objectStore("EntityStore").put(x),PvM(D,G,h)])}).then(function(){xN4(D,a,h);
return a})};
GFo=function(D,v){var h=_.LG(v).entityType;return Ti.all([D.JSC$12715_wrapped.objectStore("EntityStore").delete(v),Ml9(D,v)]).then(function(){xN4(D,v,h)})};
Vh2=function(D,v,h,a){var Q=Q6R(D.JSC$12715_encoderRegistry,1);return _.Vlt(D,v,a).then(function(G){if(G){G=Sc7(G,h);var x={key:v,entityType:a,data:Q.encode(G,v),version:1};return Ti.all([D.JSC$12715_wrapped.objectStore("EntityStore").put(x),PvM(D,G,a)])}}).then(function(){xN4(D,v,a);
return v})};
xN4=function(D,v,h){var a=D.changedKeys[h];a||(a=new Set,D.changedKeys[h]=a);a.add(v)};
fhm=function(D,v,h){var a=jdq(v);h=uiO(h);if(!h)return Ti.resolve([]);h=new h(v);D=D.JSC$12715_wrapped.objectStore("EntityAssociationStore");v=[];h=_.P(h.getAssociations());for(var Q=h.next();!Q.done;Q=h.next())v.push(D.put({parentEntityKey:a,childEntityKey:Q.value}));return Ti.all(v).then(function(G){return G.map(function(x){return x[1]})})};
Ml9=function(D,v){return D.JSC$12715_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(v))};
PvM=function(D,v,h){var a=jdq(v);return Ml9(D,a).then(function(){return fhm(D,v,h)})};var Cvs=function(){};
_.J(Cvs,DL);Cvs.prototype.encodeImpl=function(D){return D};
Cvs.prototype.decodeImpl=function(D){if(D instanceof Uint8Array)throw TP2(0);return D};var h$I=function(){this.cacheMap={};this.cacheMap[0]=new Cvs;if(!_.g("aes_pes_encoder_killswitch")){var D=this.cacheMap;try{var v=_.BV();var h=t8f(v);var a=new vC(new rj$(h),new uEF(h))}catch(Q){throw D=Q instanceof Error?new Sq("KEY_CREATION_FAILED",{originalMessage:Q.message}):new Sq("KEY_CREATION_FAILED"),_.mV(D),D;}D[1]=a}},Q6R=function(D,v){v=v===void 0?0:v;
D=D.cacheMap[v];if(!D)throw v=new Sq("INVALID_ENCODER_VERSION",{encoderVersion:v}),_.mV(v),v;return D};var pG=function(D,v){_.AN.call(this);this.token=D;this.JSC$12729_encoderRegistry=v;this.observers=[];D=new _.$L.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.BV());D.onmessage=this.handleMessage.bind(this);this.channel=D};
_.J(pG,_.AN);_.ND=function(D,v,h){var a,Q,G,x;return _.M(function(f){if(f.nextAddress==1)return f.yield(nM8(D.token),2);if(f.nextAddress!=3)return a=f.yieldResult,f.yield(_.vK(a,["EntityStore","EntityAssociationStore"],v,function(C){Q=new $N$(C,D.JSC$12729_encoderRegistry);return h(Q)}),3);
G=f.yieldResult;Q&&(x=Q.changedKeys,Object.keys(x).length>0&&(D.channel.postMessage(x),obs(D,x)));return f.return(G)})};
pG.prototype.observe=function(D){var v=this;this.observers.push(D);return function(){var h=v.observers.indexOf(D);h>=0&&v.observers.splice(h,1)}};
var msA=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(_.ND(D,{mode:"readonly",enableRetries:!0},function(a){return a.JSC$12715_wrapped.objectStore("EntityStore").getAll()}),2);
v=h.yieldResult;return h.return(Promise.all(v.filter(function(a){return!!a}).map(function(a){var Q,G;
return _.M(function(x){if(x.nextAddress==1){Q=a.key;G=a.entityType;var f=x.yield;var C=ahp(Q6R(D.JSC$12729_encoderRegistry,a.version),a.data,a.key);return f.call(x,C,2)}return x.return({key:Q,entityType:G,data:x.yieldResult})})})))})};
pG.prototype.handleMessage=function(D){obs(this,D.data)};
var obs=function(D,v){D=_.P(D.observers);for(var h=D.next();!h.done;h=D.next())h=h.value,h(v)};
pG.prototype.disposeInternal=function(){this.channel.close()};
var D8L;var hU,zRp,lEu;hU={};_.Fi$=(hU.mainVideoEntity="mainVideoEntityActionMetadata",hU.mainPlaylistEntity="mainPlaylistEntityActionMetadata",hU.musicTrack="musicTrackEntityActionMetadata",hU.musicPlaylist="musicPlaylistEntityActionMetadata",hU);zRp=new _.Uj("DOWNLOADS_ENTITY_TYPE_MAP");_.jq=_.IG("","downloadsPageViewConfigurationEntity");lEu=_.IG("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.G4I=_.IG("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.IG("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.IG("SMART_DOWNLOADS_ENABLED","settingEntity");_.IG("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Cl4=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var EGo=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.UN9={isLeaderTab:!0};var R$o={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var al=window,Wf=al.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Thc=al.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||tA,uQf=al.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||k2,M3s=al.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||xL4,V3$=al.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||gt$,dG7=al.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||N49;var Kqc;vR({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 CtO=Dvc(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(D){return D}}}),Fw2=Dvc(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(D){return D}}}),$v4=new Map;var FZ4=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],xv2;var Lit=function(D){return _.oG({type:"SET_EPHEMERAL_ACTION",payload:D})};_.ZUJ={ephemeralAction:null};var Ebp=function(D){return _.oG({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:D})};_.IhR={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var Uti={sharedUi:function(D,v){D=D===void 0?_.IhR:D;switch(v.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},D,{animatedThumbnailEnabled:v.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},D,{inlinePreviewEnabled:v.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:v.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},D,{currentPageSubType:v.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
D,{persistentPanelVisible:v.payload});default:return D}},
a11y:SC({ephemeralAction:function(D,v){D=D===void 0?_.ZUJ.ephemeralAction:D;switch(v.type){case "SET_EPHEMERAL_ACTION":return v.payload;default:return D}}}),
entities:mBu};_.Izu={playlistId:"",inviteLinkURL:""};_.gbt={continuationCommand:{}};var PKL=SC({continuationCommand:function(D,v){D=D===void 0?_.gbt.continuationCommand:D;switch(v.type){case "SET_CONTINUATION_COMMAND":return v.payload.continuationCommand;default:return D}}});_.uwi={currentFormId:"",commandsMap:{}};var xti=SC({isLeaderTab:function(D,v){D=D===void 0?_.UN9.isLeaderTab:D;switch(v.type){case "SET_IS_LEADER_TAB":var h,a;return(a=v==null?void 0:(h=v.payload)==null?void 0:h.isLeaderTab)!=null?a:D;default:return D}}});var SCt;_.kI4=function(D){return _.oG({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:D}})};
SCt=function(D){return _.oG({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:D}})};_.$m={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var zAL=SC({isDesktopSmallWidth:function(D,v){D=D===void 0?_.$m.isDesktopSmallWidth:D;switch(v.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return v.payload.isDesktopSmallWidth;default:return D}},
isShortsActive:function(D,v){D=D===void 0?_.$m.isShortsActive:D;switch(v.type){case "SET_IS_SHORTS_ACTIVE":return v.payload.isShortsActive;default:return D}},
isWatchWhileMode:function(D,v){D=D===void 0?_.$m.isWatchWhileMode:D;switch(v.type){case "SET_IS_WATCH_WHILE_MODE":return v.payload.isWatchWhileMode;default:return D}},
playerState:function(D,v){D=D===void 0?_.$m.playerState:D;switch(v.type){case "SET_PLAYER_STATE":return v.payload.playerState;default:return D}},
isFullscreen:function(D,v){D=D===void 0?_.$m.isFullscreen:D;switch(v.type){case "SET_IS_FULLSCREEN":return v.payload.isFullscreen;default:return D}},
isSmallScreenSqueezeback:function(D,v){D=D===void 0?_.$m.isSmallScreenSqueezeback:D;switch(v.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return v.payload.isSmallScreenSqueezeback;default:return D}},
isShortsPipActive:function(D,v){D=D===void 0?_.$m.isShortsPipActive:D;switch(v.type){case "SET_IS_SHORTS_PIP_ACTIVE":return v.payload.isShortsPipActive;default:return D}},
isPlaybackStarted:function(D,v){D=D===void 0?_.$m.isPlaybackStarted:D;switch(v.type){case "SET_IS_PLAYBACK_STARTED":return v.payload.isPlaybackStarted;default:return D}}});_.v$f={currentMode:"canvas-hidden"};var ZO4=function(){return function(D){return function(v){var h=D(v);_.zU(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[v],!0);return h}}};var J6J,cWO;J6J=new _.gT;_.zf=new _.Uj("WATCH_PLAYER_PROMISE_TOKEN");_.pjm=new _.gT;_.lhJ=new _.Uj("SHORTS_PLAYER_PROMISE_TOKEN");cWO=new _.Uj("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var E$i=function(){return function(D){return function(v){v.type==="ENTITY_LOADED"&&_.xd().resolve(_.zf).then(function(h){var a;(a=h.dispatchReduxAction)==null||a.call(h,v)});
return D(v)}}};_.N6F={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Muo=SC({additionalContext:function(D,v){D=D===void 0?_.N6F.additionalContext:D;switch(v.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var h;return(h=v.payload)!=null?h:"";default:return D}},
impersonatedChannelUrl:function(D,v){D=D===void 0?_.N6F.impersonatedChannelUrl:D;switch(v.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var h;return(h=v.payload)!=null?h:"";default:return D}},
selectedVideoIds:function(D,v){D=D===void 0?_.N6F.selectedVideoIds:D;switch(v.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var h={};return Object.assign({},D,(h[v.payload]=!0,h));case "VIDEO_UNSELECTED":return v=v.payload,D=Object.assign({},D),delete D[v],D;default:return D}}});_.YCF={parentClickTrackingParams:""};var fwO=SC({parentClickTrackingParams:function(D,v){D=D===void 0?_.YCF.parentClickTrackingParams:D;switch(v.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return v.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return D}}});var B69=function(D){return _.oG({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:D})};_.c6m={stepStates:{}};var CK2=SC({stepStates:function(D,v){D=D===void 0?_.c6m.stepStates:D;switch(v.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var h=D,a=v.payload,Q,G,x;D={};v={selectionStates:Object.assign({},(x=(Q=h[a.stepId])==null?void 0:Q.selectionStates)!=null?x:{},(D[a.token]={isSelected:a.isSelected},D)),userQuery:(G=h[a.stepId])==null?void 0:G.userQuery};Q={};return Object.assign({},h,(Q[a.stepId]=v,Q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Q=D,G=v.payload,
x={selectionStates:Object.assign({},(a=(h=Q[G.stepId])==null?void 0:h.selectionStates)!=null?a:{}),userQuery:{userQuery:G.userQuery,token:G.userQueryToken}},h={},Object.assign({},Q,(h[G.stepId]=x,h));default:return D}}});var Xjs,A6$,bUt;Xjs=function(D){return _.oG({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:D})};
A6$=function(D){return _.oG({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:D})};
_.XC=function(D){return _.oG({type:"SET_CURRENT_PAGE_TYPE",payload:D})};
_.qCJ=function(D){return _.oG({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:D})};
bUt=function(D){return _.oG({type:"SET_CHIP_BAR_IS_STICKY",payload:D})};_.awI={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"};_.dN9=function(D){return _.oG({type:"SET_PLAYER_STATE",payload:{playerState:D}})};_.QE={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:QSq(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var o$2=SC({isTheaterMode:function(D,v){D=D===void 0?QSq():D;switch(v.type){case "SET_IS_THEATER_MODE":return v.payload.isTheaterMode;default:return D}},
isWatchActive:function(D,v){D=D===void 0?_.QE.isWatchActive:D;switch(v.type){case "SET_IS_WATCH_ACTIVE":return v.payload.isWatchActive;default:return D}},
isLearningJourneyActive:function(D,v){D=D===void 0?_.QE.isLearningJourneyActive:D;switch(v.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return v.payload.isLearningJourneyActive;default:return D}},
isWatchFullscreen:function(D,v){D=D===void 0?_.QE.isWatchFullscreen:D;switch(v.type){case "SET_IS_WATCH_FULLSCREEN":return v.payload.isWatchFullscreen;default:return D}},
isWatchNarrowWidth:function(D,v){D=D===void 0?_.QE.isWatchNarrowWidth:D;switch(v.type){case "SET_IS_WATCH_NARROW_WIDTH":return v.payload.isWatchNarrowWidth;default:return D}},
isWatchRetroMode:function(D,v){D=D===void 0?_.QE.isWatchRetroMode:D;switch(v.type){case "SET_IS_WATCH_RETRO_MODE":return v.payload.isWatchRetroMode;default:return D}},
isLiveChatCollapsed:function(D,v){D=D===void 0?_.QE.isLiveChatCollapsed:D;switch(v.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return v.payload.isLiveChatCollapsed;default:return D}},
openEngagementPanels:function(D,v){D=D===void 0?_.QE.openEngagementPanels:D;var h=[].concat(_.j_(D));switch(v.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return h.push(v.payload.panelToAdd),h;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return h.splice(h.indexOf(v.payload.panelToRemove),1),h;default:return D}},
playerState:function(D,v){D=D===void 0?_.QE.playerState:D;switch(v.type){case "SET_PLAYER_STATE":return v.payload.playerState;default:return D}},
watchScrollTop:function(D,v){D=D===void 0?_.QE.watchScrollTop:D;switch(v.type){case "SET_WATCH_SCROLL_TOP":return v.payload.watchScrollTop;default:return D}},
watchWindowSize:function(D,v){D=D===void 0?_.QE.watchWindowSize:D;switch(v.type){case "SET_WATCH_WINDOW_SIZE":return v.payload.watchWindowSize;default:return D}}});_.j6s={surveyFeedbackData:{feedbackTokens:[]}};var Fpf=SC({surveyFeedbackData:function(D,v){D=D===void 0?_.j6s.surveyFeedbackData:D;switch(v.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return v.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},D,v.payload);default:return D}}});_.GPi={};var g$I=void 0;_.g("web_enable_redux_store_on_demand")||(g$I=Iwq());var s6p=function(D,v,h){var a=this;this.listId=D;this.JSC$12872_updateCallback=v;this.isOfflineVideoCallback=h;_.Gb().subscribe(function(){a.handleUpdate()})};
s6p.prototype.getPlaylistData=function(){var D=_.Gb().getState().entities;if(this.listId&&this.listId!=="PPSV"){var v=jAI(D,this.listId,!0),h=_.IG(this.listId,"mainPlaylistEntity"),a,Q;D=D==null?void 0:(a=D.mainPlaylistEntity)==null?void 0:(Q=a[h])==null?void 0:Q.title;return kPc(v,D,this.listId)}v=_.IEi(Ce2(D));D=_.IEi(_.s4(D));D=v.concat(D);return kPc(D)};
s6p.prototype.getPlaylistId=function(){return this.listId};
s6p.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12872_updateCallback(this.listId,this.getPlaylistData(),{})};var G4=function(D,v,h,a){a=a===void 0?[]:a;this.JSC$12875_playlistNetworkManager=D;this.listId=v;this.JSC$12875_updateCallback=h;this.videoIds=a;this.pendingUpdates=[];this.currentIndex=0};
G4.prototype.JSC$12875_setCurrentIndex=function(D){this.currentIndex=D};
G4.prototype.setListId=function(D){this.listId=D};
var mNJ=function(D,v){D.currentCreateRequest&&D.currentCreateRequest.cancel(v);D.currentUpdateRequest&&D.currentUpdateRequest.cancel(v);D.currentRefreshRequest&&D.currentRefreshRequest.cancel(v)};
G4.prototype.delete=function(){mNJ(this,"PROXY DELETED")};
G4.prototype.addVideos=function(D,v,h){var a=this;h!==void 0?this.videoIds.splice.apply(this.videoIds,[h,0].concat(_.j_(D))):this.videoIds.push.apply(this.videoIds,_.j_(D));this.listId||this.currentCreateRequest?(D.forEach(function(Q,G){Q={addedVideoId:Q,action:"ACTION_ADD_VIDEO"};h&&(Q.addedVideoPosition=h+G);a.pendingUpdates.push(Q)}),VE(this)):HUb(this,v.onCreateListCommand)};
var y6m=function(D,v,h,a,Q){mrO(D.videoIds,v,h);v>D.currentIndex&&h<=D.currentIndex?D.JSC$12875_setCurrentIndex(D.currentIndex+1):v===D.currentIndex?D.JSC$12875_setCurrentIndex(h):v<D.currentIndex&&h>=D.currentIndex&&D.JSC$12875_setCurrentIndex(D.currentIndex-1);D.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:a,movedSetVideoIdPredecessor:Q});VE(D)},HUb=function(D,v){mNJ(D,"OBSOLETE");
D.currentCreateRequest=wjM(D.JSC$12875_playlistNetworkManager,v,D.videoIds);_.yS(D.currentCreateRequest,function(){D.currentCreateRequest=void 0}).then(function(h){D.setListId(h.playlistId);
D.pendingUpdates.length>0?VE(D):eRm(D)})},VE=function(D){if(D.pendingUpdates.length!==0&&(D.currentRefreshRequest&&D.currentRefreshRequest.cancel("OBSOLETE"),!D.currentUpdateRequest&&!D.currentCreateRequest)){var v=D.pendingUpdates.splice(0,D.pendingUpdates.length);
D.currentUpdateRequest=D.JSC$12875_playlistNetworkManager.updatePlaylist(D.listId,v);_.yS(D.currentUpdateRequest,function(){D.currentUpdateRequest=void 0}).then(function(){D.pendingUpdates.length>0?VE(D):eRm(D)}).thenCatch(function(){D.pendingUpdates.unshift.apply(D.pendingUpdates,_.j_(v))})}},eRm=function(D){D.currentRefreshRequest=_.nbs(D.JSC$12875_playlistNetworkManager,D.listId,D.currentIndex,D.videoIds[D.currentIndex]);
_.yS(D.currentRefreshRequest,function(){D.currentRefreshRequest=void 0}).then(function(v){D.JSC$12875_updateCallback(v.playlistId,v.playlistPanelRenderer,v.autoplayRenderer)})};
G4.prototype.size=function(){return this.videoIds.length};var OU9=function(D,v,h,a){a=a===void 0?[]:a;G4.call(this,D,v,h,a);this.JSC$12875_playlistNetworkManager=D;this.listId=v;this.JSC$12875_updateCallback=h;this.videoIds=a};
_.J(OU9,G4);_.PC=function(D,v,h,a,Q,G,x){Q=Q===void 0?[]:Q;x=x===void 0?II:x;G4.call(this,D,v,h,Q);this.JSC$12875_playlistNetworkManager=D;this.listId=v;this.JSC$12875_updateCallback=h;this.onAuthChange=a;this.videoIds=Q;this.storage=G;this.cookieReader=x;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.I3(_.HK,this.checkLoggedInStatusChange.bind(this),1E3)};
_.J(_.PC,G4);_.V=_.PC.prototype;_.V.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.I3(_.HK,this.checkLoggedInStatusChange.bind(this),1E3)};
_.V.JSC$12875_setCurrentIndex=function(D){G4.prototype.JSC$12875_setCurrentIndex.call(this,D);this.store()};
_.V.delete=function(){_.HK.cancelJob(this.queueSapisIdJob);G4.prototype.delete.call(this)};
_.V.setListId=function(D){G4.prototype.setListId.call(this,D);this.store()};
_.V.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Ki$=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],T6J=["playerResponse","videoDetails"],RRJ=["response","currentVideoEndpoint","watchEndpoint","videoId"],iU4=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Wim=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],tlJ=["response","contents","twoColumnWatchNextResults","playlist","playlist"],r6F=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
uNy=["response","contents","twoColumnWatchNextResults"];var xm={},N2I=(xm.WEB_UNPLUGGED="^unplugged/",xm.WEB_UNPLUGGED_ONBOARDING="^unplugged/",xm.WEB_UNPLUGGED_OPS="^unplugged/",xm.WEB_UNPLUGGED_PUBLIC="^unplugged/",xm.WEB_CREATOR="^creator/",xm.WEB_KIDS="^kids/",xm.WEB_EXPERIMENTS="^experiments/",xm.WEB_MUSIC="^music/",xm.WEB_REMIX="^music/",xm.WEB_MUSIC_EMBEDDED_PLAYER="^music/",xm.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",xm);var C62,wjM;C62=function(D,v){this.networkManager=D;this.innertubeTransportService=v};
wjM=function(D,v,h){if(!_.k(v,_.M8))return _.H8(Error("Kf"));_.k(v,_.M8).videoIds=h;h={create_playlist_title:_.p1("QUEUE",void 0,"Queue")};return p2O(_.v4(D.innertubeTransportService,v,h),Sai)};
_.nbs=function(D,v,h,a){v={videoId:a,playlistId:v,playlistIndex:h};h=_.xV(rqm);return p2O(_.My(D.innertubeTransportService,v,h),lwA)};
C62.prototype.updatePlaylist=function(D,v){return p2O(_.v4(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:D,actions:v}}),JEu)};var D0J=function(D){this.storage=D},vvb;
D0J.prototype.store=function(D,v){v=v===void 0?0:v;if(this.storage&&D.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",D),this.storage.set("TLPQindex",String(v)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(h){}};
D0J.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
D0J.prototype.getPlaylistId=function(){if(!this.storage)return null;var D=null;try{D=this.storage.get("TLPQplaylist")}catch(v){}return D};var X2c=["navigationEndpoint","watchEndpoint","videoId"],cEc=["nextButtonVideo","watchEndpoint","videoId"];_.Tb=new _.Uj("NETWORK_TOKEN");_.P4=new _.Uj("PAGE_TOKEN");_.fh=new _.Uj("PLAYLIST_TOKEN");var h9p;h9p=new _.Uj("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.RX=new _.Uj("INNERTUBE_TRANSPORT_TOKEN");var aRR,Ch,QbF,GjJ,PRy,x04;aRR=new Set(["ci","cr","carml"]);Ch=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12922_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ol=function(){Ch.instance||(Ch.instance=new Ch);return Ch.instance};
Ch.prototype.onAny=function(D){return _.$0y(this,D,2)};
Ch.prototype.parkOrScheduleJob=function(D,v,h,a,Q){_.FQ(this,h)?_.c7().addJob(D,v,a):(Q&&(D=QbF(D),GjJ(this,D,v,h,Q)),Q=this.JSC$12922_parkedJobs.get(h),Q||(this.JSC$12922_parkedJobs.set(h,[]),Q=this.JSC$12922_parkedJobs.get(h)),Q.push({job:D,priority:v,delay:a}))};
Ch.prototype.addListener=function(D,v,h){h&&(v=QbF(v),GjJ(this,v,0,D,h));h=this.parkedProcessors.get(D);h||(this.parkedProcessors.set(D,[]),h=this.parkedProcessors.get(D));h.push(v)};
Ch.prototype.processSignal=function(D){if(!_.FQ(this,D)){this.inProgressSignals.add(D);var v=this.JSC$12922_parkedJobs.get(D);if(v){v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,_.c7().addJob(h.job,h.priority,h.delay);this.JSC$12922_parkedJobs.delete(D)}if(v=this.parkedProcessors.get(D)){v=_.P(v);for(h=v.next();!h.done;h=v.next())h=h.value,h();this.parkedProcessors.delete(D)}this.signals.push(D);this.inProgressSignals.delete(D)}};
_.FQ=function(D,v){return aRR.has(v)||_.nJ("IS_HOMEPAGE_COLD")||_.nJ("IS_RESULTS_PAGE_COLD")||_.nJ("IS_WATCH_PAGE_COLD")?D.signals.indexOf(v)>=0:!0};
QbF=function(D){var v=!1;return function(){v||(v=!0,D())}};
GjJ=function(D,v,h,a,Q){if(VKJ.has(a))_.c7().addJob(v,h,Q);else{var G=D.compoundSignals.get(a);G&&_.c7().addJob(function(){_.FQ(D,a)||(G.isTimeoutConditionSatisfied?_.c7().addJob(v,h):G.timeoutConditionObservers.push(function(){_.c7().addJob(v,h)}))},h,Q)}};
_.$0y=function(D,v,h){if(v.length>1){var a=[],Q=Object.create(null);v=_.P(v);for(var G=v.next();!G.done;G=v.next())G=G.value,Q[G]||(a.push(G),Q[G]=!0);v=a}if(v.length===1)return v[0];G=v;a="";Q=h===2?"|":"&";G.sort();G=_.P(G);for(var x=G.next();!x.done;x=G.next())a+=x.value+Q;if(!D.compoundSignals.get(a)){Q=0;G=[];x=_.P(v);for(var f=x.next();!f.done;f=x.next())f=f.value,Q++,_.FQ(D,f)||G.push(f);(h=h===2)&&Q>G.length||!h&&!G.length?D.signals.push(a):PRy(D,a,h,v,G)}return a};
PRy=function(D,v,h,a,Q){var G=Q.length,x=function(){h||--G===0?D.processSignal(v):x04(D,v)};
Q=_.P(Q);for(var f=Q.next();!f.done;f=Q.next())D.addListener(f.value,x);D.compoundSignals.set(v,{signals:a,isOnAny:h,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});x04(D,v)};
x04=function(D,v){if(!_.FQ(D,v)){var h=D.compoundSignals.get(v);if(h&&!h.isTimeoutConditionSatisfied){for(var a=!1,Q=0,G=0,x=_.P(h.signals),f=x.next();!f.done;f=x.next()){var C=f.value;f=!_.FQ(D,C);VKJ.has(C)?a=!0:(C=D.compoundSignals.get(C))?f&&!C.isTimeoutConditionSatisfied&&(G++,h.isInitialized||C.timeoutConditionObservers.push(function(){x04(D,v)})):f&&Q++}h.isInitialized=!0;
h.isOnAny?a&&(h.isTimeoutConditionSatisfied=!0):Q===0&&G===0&&(h.isTimeoutConditionSatisfied=!0);if(h.isTimeoutConditionSatisfied)for(h=_.P(h.timeoutConditionObservers),a=h.next();!a.done;a=h.next())a=a.value,a()}}};
Ch.prototype.processSignal=Ch.prototype.processSignal;Ch.prototype.parkOrScheduleJob=Ch.prototype.parkOrScheduleJob;Ch.prototype.onAny=Ch.prototype.onAny;_.Gm("ytsignals.getInstance",_.ol);Ch.prototype.onAny=Ch.prototype.onAny;Ch.prototype.parkOrScheduleJob=Ch.prototype.parkOrScheduleJob;Ch.prototype.processSignal=Ch.prototype.processSignal;var VKJ=new Set(["eop","eocs","dl","pcl"]);_.Ok=new _.Uj("MINIPLAYER_SERVICE");var z4,MK$,fRp;z4=function(D,v,h){var a=_.iD.getInstance();if(!vvb){var Q=new sGc;var G=void 0,x=_.eA("ID_TOKEN");x&&Q.isAvailable()&&(G=new dl(Q,"yt-queue"+x));vvb=new D0J(G)}Q=vvb;G=_.ol();this.JSC$12929_actionRouter=a;this.pageManager=D;this.playlistManager=v;this.JSC$12929_playlistNetworkManager=h;this.storage=Q;this.signals=G;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.UH=function(){if(!MK$){var D=_.xd(),v=D.resolve(_.PV(_.P4)),h=D.resolve(_.PV(_.Tb)),a=D.resolve(_.PV(_.fh));D=D.resolve(_.RX);MK$=new z4(v,a,new C62(h,D))}return MK$};
fRp=function(D,v,h){if(h){var a;if(((a=D.responsePlaylistData)==null?void 0:a.playlistId)!==h)return}D.responsePlaylistData&&(h=sS8(v,D.responsePlaylistData),D.responsePlaylistData=(0,_.sV.unsafeClone)(D.responsePlaylistData),HOc(D.responsePlaylistData,h));h=D.temporaryItems.findIndex(function(Q){return Q.videoId===v});
h>-1&&D.temporaryItems.splice(h,1);_.Lh(D,_.ZL(D,D.response?D.response.autoplayRenderer:void 0))};
_.CRb=function(D,v){if(D.responsePlaylistData){var h=mtq(v,D.responsePlaylistData);HOc(D.responsePlaylistData,h);if(D.queueProxy){var a=D.queueProxy;h<0||(a.videoIds.splice(h,1),h<a.currentIndex&&a.JSC$12875_setCurrentIndex(a.currentIndex-1),a.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:v}),VE(a))}}_.Lh(D,_.ZL(D,D.response?D.response.autoplayRenderer:void 0))};
z4.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Lh(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
z4.prototype.setPlaylistData=function(D,v,h){this.temporaryItems=[];this.listId=D;this.responsePlaylistData=v;_.Lh(this,_.ZL(this,h))};
var ov4=function(D){return(D==null?0:D.playlistId)?D.playlistId:"PPSV"},F8t=function(D){return D&&D.playlistId?D.playlistId==="PPSV"?!0:bHc(_.Gb().getState().entities,D.playlistId):!1};
z4.prototype.isPlayingOfflineVideo=function(){return this.response?F8t(this.response):!1};
z4.prototype.closeMiniplayer=function(D){var v=this.queueProxy&&this.queueProxy.size()<=1,h=_.xd().resolve(_.Ok);if(!this.queueProxy||v)this.queueProxy&&this.clearQueue(),h.close(!0);else{h.pipController.getWindow()&&window.focus();v=this.responsePlaylistData;var a=this.temporaryItems.length+(v&&v.contents?v.contents.length:0);v=_.p1("QUEUE_CLEARED_UNPLURALIZED")||_.l1("QUEUE_CLEARED",a);v=_.fq(v);h=_.p1("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");a=_.p1("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.l1("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",a);var Q=_.p1("MINIPLAYER_CLOSE",void 0,"Close"),G=_.p1("CANCEL",void 0,"Cancel");_.rt(this.JSC$12929_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.aX(h),dialogMessages:[_.aX(a)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aX(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
v]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aX(G)}}}}}}],D)}};
_.ZL=function(D,v){var h={},a=D.response;h.autoplayRenderer=v;if(!D.responsePlaylistData&&!D.temporaryItems.length)return!a||!a.hasRelatedVideoData&&_.g("kevlar_prefetch_data_augments_network_data")||(h.playerData={rvs:a.relatedVideoArgs,endScreenRenderer:a.endScreenRenderer}),h;h.playerData={};if(D.index===void 0)return _.mV(Error("Mf")),h;h.panel=D.responsePlaylistData?(0,_.sV.unsafeClone)(D.responsePlaylistData):{titleText:_.aX(_.p1("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
v=h.panel;if(v.contents)for(var Q=_.P(D.temporaryItems),G=Q.next();!G.done;G=Q.next())v.contents.push({playlistPanelVideoRenderer:G.value});D.queueProxy&&a&&a.playingVideo&&a.playingVideoId&&!jSA(a.playingVideoId,h.panel)&&(v=a.playingVideo,Q=h.panel,G=D.index,Q.contents&&Q.contents.splice(G===void 0?0:G,0,{playlistPanelVideoRenderer:v}));a&&a.playingVideoId&&(v=D.index,Q=h.panel,v=!Q.contents||v>=Q.contents.length?void 0:Q.contents[v].playlistPanelVideoRenderer,v&&v.videoId===a.playingVideoId||(v=
sS8(a.playingVideoId,h.panel),D.index=v!==-1?v:D.index?D.index-1:0));v=dt4(D.index+1,h.panel);Q=void 0;D.index>0&&(Q=dt4(D.index-1,h.panel));if(Q||v)h.autoplayRenderer=AEr(v,Q,h.autoplayRenderer);!v&&(a==null?0:a.relatedVideoArgs)&&(h.playerData.rvs=a.relatedVideoArgs);a=a?a.playlistIndexOffset:0;D.queueProxy?eAA(h.panel,D.index,a,bOo,!0,!0,!0):eAA(h.panel,D.index,a);h.playerData.playlistPanelRenderer=h.panel;return h};
z4.prototype.openToast=function(D){_.xd().resolve(_.Ok).openToast(D,_.p1("ADDED_TO_QUEUE",void 0,"Added to queue"))};
z4.prototype.isMiniplayerActive=function(){return _.xd().resolve(_.Ok).isMiniplayerActive()};
_.Lh=function(D,v){D.playlistManager.setAutoplayRenderer(v.autoplayRenderer||null);D.playlistManager.setPlaylistData(v.panel||null);v.playerData&&D.playlistManager.setPlayerPlaybackControlData(v.playerData)};var OO7="#";var z99={},U0m={},L8p={},ZIm={},Ev4={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:(z99.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",z99),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:(U0m.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",U0m),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:(L8p.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",L8p),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:(ZIm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",ZIm),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 NG8=[{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:Ev4},{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:Ev4}}];var L_r;_.IX=[[["I2JlZjdlMTFjNGx5N2tpbmQ=","NG5hYnNkbjd2YWx1ZSNmeG9y"],"TlRfS0lORF9TVEFSVCN2eGVkdW9mMTVhZWFBRF9QTEFDRU1F"]];
L_r=[[["aW1hcnkjMXVuNWhuN3BmeG9tcHI=",null,null],[null,["dHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciN4dTc4b25nOW94Y3l5dGQt","M3FzdHlsZS1zY29wZSNjZDNvZ3gxZHFu"],null],["Z2JtYXN0aGVhZC1hZCN2YmttdmoyYWs2",["aC1ncmlkLXJlbmRlcmVyI2tneWpoODVpdHk0N3l0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyI3h4NjZ2MnNjODU3MHl0ZC1yaWM=","czhzdHlsZS1zY29wZSNlMmcybGZ0Nmcz"],null],[null,["LXJlbmRlcmVyIzIyMGc1ajNzcXp5c3l0ZC1iYW5uZXItcHJvbW8=","NGtzdHlsZS1zY29wZSNnY2FuZmlndjVt"],null],[null,["dGQtYWQtc2xvdC1yZW5kZXJlciM4bW53YjB6YjV4cG15"],
null]],[["bDgwdTJycGxheWVyLWFkcyNpeGY3ajY=",null,null]]];_.EL=["cyM0d21uOGtlN3JtaWVnbG9iYWxDYWxsYmFjaw==","bm9ybWFsaXR5RGV0ZWN0ZWQjcGxjMzJid2J2OGQxb25BYg==","cCNqeXl4ZW9raXU5cXZvbkFkU2tp","eDgyNnByYXdfcGxheWVyX3Jlc3BvbnNlI3Jxb3ZibQ==","U2xvdHMjMTBuOXZ5dDN4M2xlYWQ="];_.EH="cyM0d21uOGtlN3JtaWVnbG9iYWxDYWxsYmFjaw== bm9ybWFsaXR5RGV0ZWN0ZWQjcGxjMzJid2J2OGQxb25BYg== cCNqeXl4ZW9raXU5cXZvbkFkU2tp eDgyNnByYXdfcGxheWVyX3Jlc3BvbnNlI3Jxb3ZibQ== d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIzhhYmo2dHh1YnJ5bg== ZiM2c3FqZDNpbmc5NXlhYl9zYV9l U2xvdHMjMTBuOXZ5dDN4M2xlYWQ=".split(" ");var Il;Il=function(D,v,h){this.aQQ=D;this.isAsync=v;this.ysJ=h};
_.HCL=[new Il("b.f_",!1,0),new Il("j.s_",!1,2),new Il("r.s_",!1,4),new Il("e.h_",!1,6),new Il("i.s_",!0,8),new Il("s.t_",!1,10),new Il("p.h_",!1,12),new Il("s.i_",!1,14),new Il("f.i_",!1,16),new Il("a.b_",!1,18),new Il("a.o_",!1),new Il("g.o_",!1,22),new Il("p.i_",!1,24),new Il("p.m_",!1),new Il("n.k_",!0,20),new Il("i.f_",!1),new Il("a.s_",!0),new Il("m.c_",!1),new Il("n.h_",!1,26),new Il("o.p_",!1),new Il("m.p_",!0,28),new Il("o.a_",!1),new Il("d.p_",!1),new Il("e.i_",!1)].reduce(function(D,v){D[v.aQQ]=
v;return D},{});var IRJ=function(){};
IRJ.prototype.flush=function(D,v){D=D===void 0?[]:D;v=v===void 0?!1:v;if(_.g("enable_client_streamz_web")){D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=Jw1(h.value),this.rootSpec&&_.lH(h,2,this.rootSpec),h={serializedIncrementBatch:_.dr(h.JSC$9611_serializeBinary())},_.jj("streamzIncremented",h,{sendIsolatedPayload:v})}};
var Wpq=function(){};
_.J(Wpq,IRJ);var gvF=function(D){var v=new Lk4;var h=new Fk$;h=_.Xx(h,1,"botguard");D=_.Xx(h,2,D);this.rootSpec=_.Nf(v,1,ZfF,D)};
_.J(gvF,IRJ);var UL,kjM=new Map;var gi7,rEI,Vfc,vic,$m4,zeq,S08,oiq;gi7=2;rEI=2;Vfc=2;vic=2;$m4=2;zeq=2;S08=2;oiq=new ZVb;var Jfy,p_J,lR4;Jfy=function(){this.ongoingFlowNonces=new Map};
_.JQ=function(){p_J||(p_J=new Jfy);return p_J};
_.kV=function(D,v,h){return{eventType:{flowEventNamespace:D,flowEventType:v},metadata:h,statusCode:void 0,csn:void 0,can:void 0}};
_.w0u=function(D,v){var h=_.JQ(),a=lR4(h,v,!0);_.SL(h,D,v,a)};
_.SL=function(D,v,h,a){D={flowNonce:a||lR4(D,h),flowType:h,flowEventType:v.eventType};v.metadata&&(D.flowMetadata=v.metadata);v.statusCode!==void 0&&(D.flowEventStatus=v.statusCode);v.csn&&(D.csn=v.csn);v.can&&(D.can=v.can);_.jj("flowEvent",D,void 0)};
lR4=function(D,v,h){h=h===void 0?!1:h;var a=D.ongoingFlowNonces.get(v);if(!a||h)a=m3(16),D.ongoingFlowNonces.set(v,a);return a};_.NSM=new LtF;var TGf={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var gh=function(D,v,h,a,Q,G,x){h=h===void 0?!1:h;a=a===void 0?!1:a;G=G===void 0?_.UH():G;this.hasRun=!1;this.qcO=D;this.f8l=v;this.uiX=h;this.fromHistory=a;this.previousVideoId=Q;this.oFz=G;this.tempData=x;this.eSX=new _.EH9};
_.J(gh,pH);gh.prototype.validate=function(D){return!(!D.data.playerResponse||D.data.page!=="watch"&&D.data.page!=="learning_journey_watch"&&D.data.page!=="shorts"||this.hasRun)};
gh.prototype.handle=function(D){var v=this,h=_.k(D.endpoint,_.hP),a=_.k(D.endpoint,_.AQ);if(_.g("kevlar_continue_playback_without_player_response")&&(h==null?0:h.videoId)&&this.previousVideoId&&(h==null?void 0:h.videoId)===this.previousVideoId&&(h==null?0:h.continuePlayback)&&!this.fromHistory)this.qcO.resolve();else{var Q={};h?Q.watch_endpoint=h:a&&(Q.watch_endpoint=a,a.endTimeSeconds&&(Q.end=a.endTimeSeconds));D.data.page==="watch"?(D.data.filler||this.uiX||(_.n1("cfg"),_.iD.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Q,YDm(this,D.endpoint)),_.g("enable_masthead_quartile_ping_fix")&&Object.assign(Q,BSJ(this)),Object.assign(Q,void 0),D.data.forceExternalPlaylist&&(Q.external_list=!0)):D.data.page==="shorts"?_.iD.getInstance().triggerAction("yt-start-loading-shorts"):D.data.page==="learning_journey_watch"&&_.iD.getInstance().triggerAction("yt-start-loading-learning-journey");if(h=this.f8l()){try{h.loadVideoWithPlayerResponse(D.data.playerResponse,Q),h.getPlayerPromise().then(this.qcO.resolve)}catch(G){_.mV(G),
this.qcO.resolve()}this.hasRun=!0;h.getPlayerPromise().then(function(G){G.addEventListener("onAbnormalityDetected",function(){var x=D.data.playerResponse,f=G.getVideoData().cpn;S08=0;_.SDR=f;if(f=mm2(x))v.eSX.increment("IN_PLAYER"),_.pq(5),_.g("ab_st_vid_ks")?G.pauseVideo(!0):G.stopVideo(),x.playabilityStatus=Object.assign({},x.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:f}}),x.videoDetails=void 0,_.iD.getInstance().triggerOptionalAction("yt-updated-playability-status",
x.playabilityStatus)})})}else _.yR(Error("Pf"))}};
var YDm=function(D,v){var h=_.k(v,_.hP);if(v&&h&&h.playlistId&&h.videoId&&(D=D.oFz,D.queueProxy?(D=D.queueProxy,h=D.listId===h.playlistId?D.attributionData.get(h.videoId):void 0):h=void 0,h))return{queue_info:h}},BSJ=function(D){var v;
if((v=D.tempData)==null?0:v.adpings)return{adpings:D.tempData.adpings}};var km=function(D,v,h){this.hasRun=!1;this.abC=D;this.oLl=v;this.zS5=h};
_.J(km,pH);km.prototype.validate=function(D){return!!_.sV.getValueByKeys.apply(null,[D.data].concat(_.j_(uNy)))};
km.prototype.handle=function(D){var v=this;this.abC.promise.then(function(){var h=D.data;var a=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(Ki$))),Q=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(tlJ))),G=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(RRJ)));var x=(x=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(T6J))))?{videoId:x.videoId,thumbnail:x.thumbnail,title:x.title?_.aX(x.title):void 0,shortBylineText:x.author?_.aX(x.author):void 0}:void 0;var f=void 0;_.g("web_get_playlist_id_from_current_endpoint_ks")||
(f=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(iU4))));var C=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(r6F))),U=_.sV.getValueByKeys.apply(null,[h].concat(_.j_(Wim))),L=!!C||!!U&&!!U.results&&U.results.length>0,Z=0;Q&&Q.currentIndex&&Q.localCurrentIndex&&(Z=Q.currentIndex-Q.localCurrentIndex);Q&&Q.playlistId&&(f=Q.playlistId);h={rawResponse:h,autoplayRenderer:a,hasRelatedVideoData:L,playingVideo:x,playingVideoId:G,playlistPanelRenderer:Q,playlistId:f,playlistIndex:Q&&Q.currentIndex,relatedVideoArgs:C,
endScreenRenderer:U,playlistIndexOffset:Z};a:{a=v.zS5;Q=v.oLl;a.response=h;if(F8t(h))a.downloadPlaylistProxy&&a.downloadPlaylistProxy.getPlaylistId()===ov4(h)||(a.downloadPlaylistProxy=new s6p(ov4(h),a.setPlaylistData.bind(a),a.isPlayingOfflineVideo.bind(a))),a.responsePlaylistData=a.downloadPlaylistProxy.getPlaylistData(),a.listId=ov4(h),a.index=0;else if(h.playlistPanelRenderer&&h.playlistId&&h.autoplayRenderer)h.playlistId.startsWith("TLPQ")?a.queueProxy?a.listId===h.playlistId?(a.index=h.playlistIndex,
a.responsePlaylistData=h.playlistPanelRenderer,a.queueProxy.JSC$12875_setCurrentIndex(a.index)):h.playingVideoId&&a.index!==void 0&&Q.clientParams.autoSaveToQueue&&(a.index+=1,a.queueProxy.JSC$12875_setCurrentIndex(a.index),a.queueProxy.addVideos([h.playingVideoId],{},a.index)):(a.queueProxy=new _.PC(a.JSC$12929_playlistNetworkManager,h.playlistId,a.setPlaylistData.bind(a),a.clearQueue.bind(a),_.yEL(h.playlistPanelRenderer),a.storage),a.responsePlaylistData=h.playlistPanelRenderer,a.listId=h.playlistId,
a.index=h.playlistIndex):(a.index=h.playlistIndex,a.listId!==h.playlistId&&a.clearQueue(),a.responsePlaylistData=h.playlistPanelRenderer,a.listId=h.playlistId,a.playlistProxy=new OU9(a.JSC$12929_playlistNetworkManager,h.playlistId,a.setPlaylistData.bind(a),_.yEL(h.playlistPanelRenderer)));else if(!a.queueProxy)a.responsePlaylistData=void 0;else if(h.playingVideoId&&Q.clientParams.autoSaveToQueue){if(a.index===void 0){_.mV(Error("Lf"));a.clearQueue();break a}a.queueProxy.videoIds.includes(h.playingVideoId)||
(a.index+=1,a.queueProxy.JSC$12875_setCurrentIndex(a.index),a.queueProxy.addVideos([h.playingVideoId],{},a.index))}_.Lh(a,_.ZL(a,a.response.autoplayRenderer))}})};var cf4=function(D,v){v=v===void 0?_.UH():v;yi.call(this);this.dK.push(new km(this.pI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},v));this.dK.push(new gh(this.pI,D,!1,!1));_.g("web_response_commands_chunk_processor")&&this.dK.push(new we)};
_.J(cf4,yi);cf4.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.pI.resolve();yi.prototype.processChunk.call(this,D)};var Sk=function(D,v){D=D===void 0?{layer:0}:D;this.hasRun=!1;this.createScreenConfig=D;this.sjC=v};
_.J(Sk,pH);Sk.prototype.validate=function(D){return!(this.hasRun||!D.endpoint)};
Sk.prototype.handle=function(D){var v=_.c8(),h,a,Q=(a=_.k((h=D.endpoint)==null?void 0:h.commandMetadata,_.Sa))==null?void 0:a.rootVe;this.sjC&&Q?_.bl(v,Q,this.sjC,this.createScreenConfig):ZEJ(v,D.endpoint,this.createScreenConfig);this.hasRun=!0};var JU=function(D,v){this.hasRun=!1;this.bwq=D;this.previousVideoId=v};
_.J(JU,pH);JU.prototype.validate=function(D){return _.g("kevlar_continue_playback_without_player_response")&&(D=_.k(D.endpoint,_.hP),(D==null?0:D.videoId)&&this.previousVideoId&&(D==null?void 0:D.videoId)===this.previousVideoId&&(D==null?0:D.continuePlayback))?!1:this.bwq.cod===0};
JU.prototype.handle=function(D){_.iD.getInstance().triggerAction("yt-stop-old-player",D.data,!0)};var X_R=function(D){D=D===void 0?{layer:0}:D;yi.call(this);this.dK.push(new JU(this));this.dK.push(new Sk(D));this.dK.push(new Hi(D))};
_.J(X_R,yi);var ph=function(){pH.apply(this,arguments)};
_.J(ph,pH);ph.prototype.validate=function(D){return!!D.data.preconnect};
ph.prototype.handle=function(D){_.ea("bc");D=_.P(D.data.preconnect);for(var v=D.next();!v.done;v=D.next())v=v.value,(new Image).src=v};var AfR=function(D,v,h,a,Q,G,x){h=h===void 0?{layer:0}:h;G=G===void 0?_.UH():G;yi.call(this);if(a)if(Q){Q=G;this.dK.push(new km(this.pI,v,Q));this.dK.push(new ph);var f,C;this.dK.push(new gh(this.pI,D,!1,!((f=v.clientParams)==null||!f.fromHistory),(C=v.clientParams)==null?void 0:C.previousVideoId,Q,v.tempData));var U;this.dK.push(new JU(this,(U=v.clientParams)==null?void 0:U.previousVideoId));var L;(L=v.clientParams)!=null&&L.fromHistory||(h.layer||(h=Object.assign({},h,{layer:0})),this.dK.push(new Sk(h,
x)),this.dK.push(new Hi(h)))}else this.dK.push(new km(this.pI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},G)),this.dK.push(new gh(this.pI,D,!1,!1));else this.dK.push(new JU(this)),this.dK.push(new Sk(h)),this.dK.push(new Hi(h));_.g("web_response_commands_chunk_processor")&&a&&this.dK.push(new we)};
_.J(AfR,yi);AfR.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.pI.resolve();yi.prototype.processChunk.call(this,D)};var qDR=function(){this.hasRun=this.hasRun=!1};
_.J(qDR,pH);qDR.prototype.validate=function(D){return!this.hasRun&&!(!D.data.csn||!D.data.rootVe)};
qDR.prototype.handle=function(D){this.hasRun=!0;_.nm(D.data.csn,D.data.rootVe,3)};var bIt=function(D,v,h){h=h===void 0?{layer:0}:h;yi.call(this);this.dK.push(new gh(this.pI,D));this.dK.push(new Sk(h));this.dK.push(new Hi(h))};
_.J(bIt,yi);var d0y=function(D,v,h,a,Q){h=h===void 0?{layer:0}:h;a=a===void 0?_.UH():a;yi.call(this);var G=!!v&&!!v.clientParams&&!!v.clientParams.miniplayer;G&&this.dK.push(new qDR);this.dK.push(new km(this.pI,v,a));this.dK.push(new ph);var x,f;this.dK.push(new gh(this.pI,D,G,!((x=v.clientParams)==null||!x.fromHistory),(f=v.clientParams)==null?void 0:f.previousVideoId,a,v.tempData));var C;this.dK.push(new JU(this,(C=v.clientParams)==null?void 0:C.previousVideoId));var U;(U=v.clientParams)!=null&&U.fromHistory||
(h.layer||(h=Object.assign({},h,{layer:G?3:0})),this.dK.push(new Sk(h,Q)),this.dK.push(new Hi(h)));_.g("web_response_commands_chunk_processor")&&this.dK.push(new we)};
_.J(d0y,yi);var le,m0M;le={};
_.jbp=(le["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},le["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},le["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},le["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},le["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},le["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},le["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},le);_.Ny=new _.OW("yt-edu");_.sbJ=function(){this.JSC$13027_eduDisplayedThisLoad_={}};
m0M=function(D){var v=_.sbJ.getInstance();var h=_.oZ("kevlar_tooltip_impression_cap");v=h&&parseInt(_.Ny.get(D+"-impression")||0,10)>=h||_.Ny.get(D+"-dismissed")?!1:(h=_.jbp[D])&&!v.JSC$13027_eduDisplayedThisLoad_[h.setKey||D]&&(h.titleText&&_.p1(h.titleText)||h.bodyText&&_.p1(h.bodyText))?!0:!1;if(!v)return null;v=_.jbp[D];if(!v)return null;h=v.bodyText?_.p1(v.bodyText):void 0;var a=v.titleText?_.p1(v.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:v.position,popup:{bubbleHintRenderer:{text:a?
_.aX(a):void 0,detailsText:h?_.aX(h):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aX(_.p1("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:D}}]}}}}}}}},{eduImpressionAction:{key:D}}]};
_.x7(_.sbJ);var eeo=!1;for(var HIR="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),yf4=[],Ym=6;Ym>=1;Ym--)yf4.push({columnCount:Ym,query:Ym==1?0:Ym*2*107-4+32,className:"grid-"+Ym+"-columns",width:Ym*2*107+"px"});_.BC=function(D){this.actionRouter_=D=D===void 0?_.iD.getInstance():D;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.w_M(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.w_M=function(D){var v=D.documentWidth_-(D.miniGuideVisible_?72:0)-(D.guidePersistentAndVisible_?240:0)-(D.persistentPanelVisible_?400:0);return yf4.find(function(h){return v>h.query})};
_.x7(_.BC);var e94=function(){var D=this;this.JSC$13039_keyboardInUse=!1;document.addEventListener("keydown",function(){D.onKeydown()});
document.addEventListener("mousedown",function(){D.JSC$13039_keyboardInUse=!1})},nvp;
e94.prototype.isKeyBoardInUse=function(){return this.JSC$13039_keyboardInUse};
e94.prototype.onKeydown=function(){this.JSC$13039_keyboardInUse=!0};var OI$,AU;_.cC=new _.OW("yt-mentions");_.XQ=function(){};
OI$=function(D,v){return AU(v,"drag-to-reorder-edu-displayed")};
AU=function(D,v,h,a,Q,G){h=h===void 0?"OPEN_POPUP_POSITION_TOP":h;if(v){if(_.cC.get(v))return;_.cC.set(v,!0,a)}if(Q&&G!==void 0){v=Number(_.cC.get(Q)||0);if(v>=G)return;_.cC.set(Q,v+1)}return[{openPopupAction:{popupType:"HINT",position:h,popup:{bubbleHintRenderer:{detailsText:D,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.x7(_.XQ);var K8F,TSF,R94;K8F=function(D,v,h,a){this.JSC$13049_taskManager_=D;this.onFulfilled_=typeof v==="function"?v:null;this.onRejected_=typeof h==="function"?h:null;this.JSC$13049_context_=a};
TSF=function(D,v){D.onFulfilled_&&_.b7(D.JSC$13049_taskManager_,function(){D.onFulfilled_.call(D.JSC$13049_context_,v)})};
R94=function(D,v){D.onRejected_&&_.b7(D.JSC$13049_taskManager_,function(){D.onRejected_.call(D.JSC$13049_context_,v)})};
_.qy=function(D){this.JSC$13052_taskManager_=D;this.callbacks_=[]};
_.qy.prototype.then=function(D,v,h){this.callbacks_.push(new K8F(this.JSC$13052_taskManager_,D,v,h));return this};
_.qy.prototype.onSuccess=function(D){this.callbacks_.forEach(function(v){TSF(v,D)})};
_.qy.prototype.onFailure=function(D){this.callbacks_.forEach(function(v){R94(v,D)})};
_.qy.prototype.cancel=function(){this.callbacks_.length=0};
NDR(_.qy);_.iCc=null;_.qL=new _.Uj("ACTIVITY_TOKEN");var be=function(D,v){this.serviceId=new Nl9(D,v)};
be.prototype.toString=function(){return this.serviceId.toString()};var iI4=function(){this.internalMap={}};
_.V=iI4.prototype;_.V.contains=function(D){return Object.prototype.hasOwnProperty.call(this.internalMap,D)};
_.V.get=function(D){if(this.contains(D))return this.internalMap[D]};
_.V.set=function(D,v){this.internalMap[D]=v};
_.V.getKeys=function(){return Object.keys(this.internalMap)};
_.V.remove=function(D){delete this.internalMap[D]};var dh=function(){this.mappings=new iI4;this.errorCallbacks=new Set};
dh.prototype.getModuleId=function(D){return D.serviceId.getModuleId()};
dh.prototype.get=function(D){var v=this.mappings.get(D.toString());return W8J(this,v,D)};
dh.prototype.getMultipleAsync=function(){var D=_.Kz.apply(0,arguments),v=this,h=D.map(function(C){return v.getModuleId(C)}),a=D.map(function(C){return v.mappings.get(C.toString())}).filter(function(C){return C});
if(a.length===D.length)return _.E9(a.map(function(C,U){return W8J(v,C,D[U])}));
var Q=mS().loadMultiple(h);a=_.HZ(h.map(function(C){return Q[C]}));
var G=document.hidden,x=-1,f=_.oZ("get_async_timeout_ms",-1);f>-1&&(x=setTimeout(function(){_.yR(new _.XH("Module timeout.",h,G,document.hidden))},f));
return _.yS(a.then(function(){return D.map(function(C){return W8J(v,v.mappings.get(C.toString()),C)})}).thenCatch(function(C){for(var U=_.P(v.errorCallbacks),L=U.next();!L.done;L=U.next())L=L.value,L(C);
throw C;}),function(){clearTimeout(x)})};
dh.prototype.registerService=function(D,v){this.mappings.set(D.toString(),{type:"mapping",value:v});return D};
var W8J=function(D,v,h){switch(v.type){case "mapping":return v.value;case "factory":return v=v.value(),D.mappings.set(h.toString(),{type:"mapping",value:v}),v;default:return _.K4(v)}};
dh.prototype.onLoadError=function(D){var v=this;this.errorCallbacks.add(D);return function(){v.errorCallbacks.delete(D)}};
_.jk=new dh;var D4c=/^[a-zA-Z0-9_\-]{11}$/;var v3c=_.qA(function(){var D,v;return(v=(D=window).matchMedia)==null?void 0:v.call(D,"(prefers-reduced-motion: reduce)").matches});var tKM=_.qA(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var D=_.T3("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");D||(D=_.l9("VIDEO"),_.Gm("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
D));return!!(D&&D.canPlayType&&D.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var VWq=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var sH;sH=function(){this.tokenJars={};if(this.cookiesEnabled=_.Yd()){var D=_.l8.get("CONSISTENCY",void 0);D&&rfs(this,{encryptedTokenJarContents:D})}};
_.x4O=function(){sH.instance||(sH.instance=new sH);return sH.instance};
sH.prototype.handleResponse=function(D,v){if(!v)throw Error("Vf");var h,a;v=((h=v.innerTubeRequest.context)==null?void 0:(a=h.request)==null?void 0:a.consistencyTokenJars)||[];var Q;(D=(Q=D.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(v,D)};
sH.prototype.replace=function(D,v){D=_.P(D);for(var h=D.next();!h.done;h=D.next())delete this.tokenJars[h.value.encryptedTokenJarContents];rfs(this,v)};
var rfs=function(D,v){if(v.encryptedTokenJarContents&&(D.tokenJars[v.encryptedTokenJarContents]=v,typeof v.expirationSeconds==="string")){var h=Number(v.expirationSeconds);setTimeout(function(){delete D.tokenJars[v.encryptedTokenJarContents]},h*1E3);
D.cookiesEnabled&&_.NM("CONSISTENCY",v.encryptedTokenJarContents,h,void 0,!0)}};var uRJ,mq;uRJ=window.location.hostname.split(".").slice(-2).join(".");_.yy=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var D=_.eA("LOCATION_PLAYABILITY_TOKEN");_.eA("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=DzJ(this))&&(D=this.localStorage.get("yt-location-playability-token"));D&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0)};
_.yy.getInstance=function(){mq=_.T3("yt.clientLocationService.instance");mq||(mq=new _.yy,_.Gm("yt.clientLocationService.instance",mq));return mq};
_.yy.prototype.setLocationOnInnerTubeContext=function(D){D.client||(D.client={});if(this.mostRecentPosition)D.client.locationInfo||(D.client.locationInfo={}),D.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),D.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),D.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),D.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)D.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.yy.prototype.handleResponse=function(D){var v;D=(v=D.responseContext)==null?void 0:v.locationPlayabilityToken;D!==void 0&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0,_.eA("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=DzJ(this))&&this.localStorage.set("yt-location-playability-token",D,15552E3):_.NM("YT_CL",JSON.stringify({loctok:D}),15552E3,uRJ,!0))};
var DzJ=function(D){return D.localStorage===void 0?new _.OW("yt-client-location"):D.localStorage};
_.yy.prototype.clearLocationPlayabilityToken=function(D){D==="TVHTML5"?(this.localStorage=DzJ(this))&&this.localStorage.remove("yt-location-playability-token"):_.BRr("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.yy.prototype.getCurrentPositionFromGeolocation=function(){var D=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var v=!1,h=1E4;_.eA("INNERTUBE_CLIENT_NAME")==="MWEB"&&(v=!0,h=15E3);return new Promise(function(a,Q){navigator.geolocation.getCurrentPosition(function(G){D.mostRecentPosition=G;a(G)},function(G){Q(G)},{enableHighAccuracy:v,
maximumAge:0,timeout:h})})};
_.yy.prototype.createUnpluggedLocationInfo=function(D){var v={};D=D.coords;if(D==null?0:D.latitude)v.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)v.longitudeE7=Math.floor(D.longitude*1E7);if(D==null?0:D.accuracy)v.locationRadiusMeters=Math.round(D.accuracy);return v};
_.yy.prototype.createLocationInfo=function(D){var v={};D=D.coords;if(D==null?0:D.latitude)v.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)v.longitudeE7=Math.floor(D.longitude*1E7);return v};var vxs=function(){};
_.V=vxs.prototype;
_.V.JSC$13119_getRequest=function(D,v,h){v=v===void 0?{}:v;h=h===void 0?XaR:h;var a=v;if(this.isNavigationCommand()){var Q,G=(Q=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:Q.url;a=_.MW8(D.clickTrackingParams,!0,!1,G,this.JSC$13119_getClientScreen(a))}else a=_.MW8(D.clickTrackingParams,!1,this.includeCsn);a={context:a};if(Q=this.getExtension(D))return this.JSC$13119_buildRequest(a,Q,v),Q=this.getApiUrl(D),G=Object.assign({},{command:D},this.getRequestConfig(D,v)),a={input:Q,requestShell:DD(Q),
innerTubeRequest:a,config:G},a.config.authStrategy?a.config.authStrategy.identity=h:a.config.authStrategy={identity:h},(D=this.JSC$13119_getRequestKey(D,v))&&!a.config.requestKey&&(a.config.requestKey=D),a;D=new _.XH("Error: Failed to create Request from Command.",D);_.mV(D)};
_.V.getApiUrl=function(D){var v=_.xV(this.getApiPaths(D)),h;(D=(h=_.k(D.commandMetadata,_.Sa))==null?void 0:h.apiUrl)&&(v=D);return cTL(BmO(v))};
_.V.isNavigationCommand=function(){return!1};
_.V.JSC$13119_getClientScreen=function(){};
_.V.JSC$13119_getRequestKey=function(){};
_.V.getRequestConfig=function(){};
_.GT.Object.defineProperties(vxs.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var HC=function(){};
_.J(HC,vxs);HC.prototype.JSC$13126_getStoreKey=function(){};
HC.prototype.JSC$13119_getRequestKey=function(D,v){v=v===void 0?{}:v;return this.JSC$13126_getStoreKey(D,v)};_.wT={getLocalStorage:_.qA(function(){try{var D=new jGA;var v=D.isAvailable()?D:null}catch(h){return null}return v?new _.zT(v):null}),
getSessionStorage:_.qA(function(){var D=new sGc;return D.isAvailable()?new _.zT(D):null})};var xY=new _.Uj("ENTITY_STATE_TOKEN"),yE=new _.Uj("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var hYm=XMLHttpRequest.prototype.fetch,adJ=hYm&&hYm.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!$z?!0:!1;var wh=function(D){this.JSC$13132_storeWithEntities=D};
_.J(wh,HC);_.V=wh.prototype;_.V.getApiPaths=function(){return IeF};
_.V.getExtension=function(D){return _.k(D,_.hP)||_.k(D,_.AQ)||_.k(D,U8m)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$13126_getStoreKey=function(D){if((_.g("kevlar_cache_on_ttl_player")||_.g("mweb_enable_shorts_innertube_player_prefetch")||_.g("mweb_use_new_history_manager")||_.g("web_shorts_prefetch_service_enabled"))&&(D=this.getExtension(D))&&D.videoId){var v={videoId:D.videoId};D.playlistId&&(v.playlistId=D.playlistId);D.playerParams&&(v.params=D.playerParams);return _.vU("player",v)}};
_.V.JSC$13119_getClientScreen=function(D){var v;return((v=D.contentPlaybackContext)==null?void 0:v.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$13119_buildRequest=function(D,v,h){if(_.g("enable_interstitial_entity_check")){var a=this.JSC$13132_storeWithEntities;if(v.videoId)for(var Q=_.P(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),G=Q.next();!G.done;G=Q.next()){G=G.value;var x;var f=void 0,C=void 0,U=v.videoId,L=G;(x=a)?(U=_.IG(U+L,"interstitialInteractionStateEntity"),x=(f=(C=_.gR(x.getState().entities,"interstitialInteractionStateEntity",U))==null?void 0:C.primaryButtonClicked)!=null?f:!1):x=!1;if(x)switch(G){case "CONTENT_CHECK_REQUIRED":v.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":v.racyCheckOk=!0}}}v.videoId&&(D.videoId=v.videoId);v.playlistId&&(D.playlistId=v.playlistId);v.index!==void 0&&(D.playlistIndex=v.index+1);v.playerParams&&(D.params=v.playerParams);"startTimeSeconds"in v&&v.startTimeSeconds&&(_.g("enable_player_request_builder_start_time_floor")?D.startTimeSecs=Math.floor(v.startTimeSeconds):D.startTimeSecs=v.startTimeSeconds);h.contentPlaybackContext&&(D.playbackContext={contentPlaybackContext:h.contentPlaybackContext});h.prefetchPlaybackContext&&
(D.playbackContext=Object.assign({},D.playbackContext,{prefetchPlaybackContext:h.prefetchPlaybackContext}),D.context.request||(D.context.request={}),D.context.request.isPrefetch=!0);D.playbackContext||(D.playbackContext={});a=tKM();D.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!a,supportXhr:adJ};h.overrideMutedAtStart&&(D.overrideMutedAtStart=h.overrideMutedAtStart);D.racyCheckOk=!!v.racyCheckOk;D.contentCheckOk=!!v.contentCheckOk;!_.g("captions_prefs_killswitch")&&(h=(h=_.nq("yt-player-caption-language-preferences"))?
h:[],h==null?0:h.length)&&(D.captionParams={viewerSelectedCaptionLangs:h})};
_.V.getRequestConfig=function(D){D=this.JSC$13126_getStoreKey(D);var v;D&&(v={storeStrategy:{storeKey:D}});_.g("web_log_player_watch_next_ticks")&&(v=v||{},v.requestTick="ps_s",v.responseTick="ps_r");return v};
wh[MM]=[xY];var ek=function(){};
_.J(ek,HC);_.V=ek.prototype;_.V.getApiPaths=function(){return rqm};
_.V.getExtension=function(D){return _.k(D,_.hP)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$13126_getStoreKey=function(D){if((D=this.getExtension(D))&&D.videoId){var v={videoId:D.videoId};D.playlistId&&(v.playlistId=D.playlistId);D.index&&(v.index=D.index);D.params&&(v.params=D.params);return _.vU("next",v)}};
_.V.JSC$13119_getClientScreen=function(D){var v;return((v=D.contentPlaybackContext)==null?void 0:v.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$13119_buildRequest=function(D,v,h){v.videoId&&(D.videoId=v.videoId);v.playlistId&&(D.playlistId=v.playlistId);v.params&&(D.params=v.params);v.index!==void 0&&(D.playlistIndex=v.index);D.racyCheckOk=!(!h.racyCheckOk&&!v.racyCheckOk);D.contentCheckOk=!!v.contentCheckOk;h.contentPlaybackContext&&(D.autonavState=h.contentPlaybackContext.autonavState,D.playbackContext={vis:h.contentPlaybackContext.vis,lactMilliseconds:h.contentPlaybackContext.lactMilliseconds});h.prefetchPlaybackContext&&(D.context.request||
(D.context.request={}),D.context.request.isPrefetch=!0);_.g("captions_hats_killswitch")||(v=_.YE().getFlag(65),v=v!=null?!v:!1,h=!!_.nq("yt-player-sticky-caption"),D.captionsRequested=v&&h)};
_.V.getRequestConfig=function(D){D=this.JSC$13126_getStoreKey(D);var v;D&&(v={storeStrategy:{storeKey:D}});_.g("web_log_player_watch_next_ticks")&&(v=v||{},v.requestTick="wn_s",v.responseTick="wn_r");return v};
var nh=function(){};
_.J(nh,HC);nh.prototype.getApiPaths=function(){return rqm};
nh.prototype.getExtension=function(D){return _.k(D,_.iL)};
nh.prototype.JSC$13119_buildRequest=function(D,v){v.token&&(D.continuation=v.token)};var OH=function(D,v){this.playerRequestBuilder=D;this.watchNextRequestBuilder=v};
_.J(OH,HC);OH.prototype.getApiPaths=function(){return x4$};
OH.prototype.getExtension=function(D){return _.k(D,_.hP)};
OH.prototype.isNavigationCommand=function(){return!0};
OH.prototype.JSC$13119_buildRequest=function(D,v,h){D.playerRequest={};this.playerRequestBuilder.JSC$13119_buildRequest(D.playerRequest,v,h);_.g("web_streaming_watch")&&(D.watchNextRequest={},this.watchNextRequestBuilder.JSC$13119_buildRequest(D.watchNextRequest,v,h))};
OH[MM]=[wh,ek];var $zp;_.Kh=new _.Uj("SHORTS_CONTROLLER_TOKEN");$zp=new _.Uj("SHORTS_STATE_STORE_TOKEN");var T4=function(D,v){var h=_.Kz.apply(2,arguments);D=D===void 0?0:D;_.XH.call(this,v,h);this.errorType=D;Object.setPrototypeOf(this,this.constructor.prototype)};
_.J(T4,_.XH);var Qjm,GZs,PI4,EPo,RQ,Hlo,CIm,fdy,ZNt,zYb,F0M;Qjm=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(D){return D+"="}).join("|"));
GZs=RegExp(".*\\?.*playnext=1.*");_.Rl=function(D,v,h,a){this.watchEndpointMap=D;this.reelWatchEndpointMap=v;this.innerTubeTransportService=h;this.fetchPbj=a};
PI4=function(D,v,h){var a=_.xd().resolve(_.PV(Vs4));_.Rl.instance=new _.Rl(D,v,h,a)};
_.xzJ=function(D,v){var h=_.oZ("web_pbj_log_warning_rate",0);h=h>0&&Math.random()<h;var a;if((a=_.k(v.commandMetadata,_.Sa))==null||!a.rootVe)return h&&_.yR(Error("Yf")),!1;var Q;a=(Q=_.k(v.commandMetadata,_.Sa))==null?void 0:Q.url;if(!a)return h&&_.yR(Error("Zf")),!1;if(GZs.test(a))return!0;if(Qjm.test(a))return h&&_.yR(Error("$f`"+a)),!1;if(_.k(v,_.hP)){if(!(D.watchEndpointMap.watchNext&&D.watchEndpointMap.player||_.g("kevlar_fetch_initial_data_op_watch_client")))return h&&_.yR(Error("Rf")),!1;
D=_.oZ("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;_.k(v,_.hP)?r9I(v)?v=!0:(D&&_.yR(Error("Sf")),v=!1):(D&&_.yR(Error("Rf")),v=!1);return v}if(_.k(v,_.AQ))return ugi(v);if(_.k(v,_.Qi))return!0;D=_.DY(D.innerTubeTransportService,v);!D&&h&&_.mV(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(v)});return D};
EPo=function(D,v,h,a,Q,G){v={url:v};if(h==null?0:h.itct)v.parentTrackingParams=h.itct;var x=_.xV(Bu$);return _.My(D.innerTubeTransportService,v,x).then(function(f){(f=f.endpoint)||(f=_.nH);(h==null?0:h.itct)&&f&&!f.trackingParams&&(f.trackingParams=h.itct);var C=cR(f);return RQ(D,f,h,a,C,Q,G)})};
RQ=function(D,v,h,a,Q,G,x,f){f=f===void 0?{}:f;if(D.fetchPbj&&!_.xzJ(D,v)&&!_.g("force_one_platform")){f=D.fetchPbj(v);var C=_.E9(f.then(function(K){if(!K)throw Error("bg");x(C)||G(v,K);return K}));
return C}var U,L,Z={rootVe:(U=_.k(v.commandMetadata,_.Sa))==null?void 0:U.rootVe,url:(L=_.k(v.commandMetadata,_.Sa))==null?void 0:L.url,endpoint:v,page:Q};if(_.k(v,_.hP)){var E,I={contentPlaybackContext:_.dT(h,(E=_.k(v.commandMetadata,_.Sa))==null?void 0:E.url,a)},S=_.hn();_.g("web_streaming_watch")&&window.TextDecoderStream?(f=Ms4(D.innerTubeTransportService,v,I,function(K){!Z.response&&K.content&&(Z.response=K.content);!Z.playerResponse&&K.player&&(Z.playerResponse=K.player);G(v,Z)}),U=XNc(v),U.length&&
(Z.preconnect=U,G(v,Z)),fdy(f,S,Z).catch(function(K){K instanceof T4&&K.errorType===2&&_.g("web_streaming_watch_fallback")&&CIm(D,v,I,Z,G,x,S)})):CIm(D,v,I,Z,G,x,S);
return S.promise}if(_.k(v,_.AQ)){var B;if(((B=_.k(v,_.AQ))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var A=_.hn();_.ox9(_.xd().resolve(_.Kh),v).then(function(K){F0M(D,h,a,Q,G,A,K)});
return A.promise}f=_.E9();var d;U={contentPlaybackContext:_.dT(h,(d=_.k(v.commandMetadata,_.Sa))==null?void 0:d.url,a)};(d=D.reelWatchEndpointMap.player)&&(d=d().JSC$13119_getRequest(v,U))&&(f=_.My(D.innerTubeTransportService,d.innerTubeRequest,d.input,v.clickTrackingParams,d.config));d=_.E9();(L=D.reelWatchEndpointMap.reelItemWatch)&&(L=L().JSC$13119_getRequest(v))&&(d=_.My(D.innerTubeTransportService,L.innerTubeRequest,L.input,v.clickTrackingParams,L.config));L=_.E9();_.g("web_enable_delay_shorts_sequence_call_extra")&&
(L=new _.IB(function(K){setTimeout(function(){K(void 0)},200)}));
(!_.g("web_enable_delay_shorts_sequence_call_new")||_.g("web_enable_delay_shorts_sequence_call_forget"))&&(E=D.reelWatchEndpointMap.reelWatchSequence)&&_.k(v,_.AQ).sequenceParams&&(U=E().JSC$13119_getRequest(v,U))&&(_.g("web_enable_delay_shorts_sequence_call_forget")?_.My(D.innerTubeTransportService,U.innerTubeRequest,U.input,v.clickTrackingParams,U.config):L=_.My(D.innerTubeTransportService,U.innerTubeRequest,U.input,v.clickTrackingParams,U.config));U=_.E9(Z);E=_.hn();zYb(v,U,f,d,L,G,x,E);return E.promise}var b;
if(_.k(v,Ref)&&((b=_.k(v.commandMetadata,_.Sa))==null?0:b.url))return f=P6I(_.tN(yz().location.href),_.tN(_.k(v.commandMetadata,_.Sa).url)).toString(),EPo(D,f,h,a,G,function(){return!1});
if(_.k(v,_.Qi))return G(v,Z),_.E9(Z);if(_.DY(D.innerTubeTransportService,v)){f=Object.assign({},{tempData:h,disableCache:h.disableCache},f);var W=_.v4(D.innerTubeTransportService,v,f).then(function(K){Z.response=K;x(W)||G(v,Z);return Z});
return W}return _.E9(Z)};
_.L0b=function(D,v,h,a){if(_.k(v,_.hP)||_.k(v,_.AQ)&&(_.g("mweb_enable_shorts_innertube_player_prefetch")||_.g("kevlar_enable_shorts_prefetch_in_sequence"))||_.k(v,U8m)&&_.g("web_enable_prefetching_videos_on_home")){var Q,G={contentPlaybackContext:_.dT(h,(Q=_.k(v.commandMetadata,_.Sa))==null?void 0:Q.url,a),prefetchPlaybackContext:aef(h)},x,f,C;if(((x=_.k(v,_.hP))==null?void 0:(f=x.watchEndpointSupportedPrefetchConfig)==null?void 0:(C=f.prefetchHintConfig)==null?void 0:C.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(h=
D.watchEndpointMap.watchNext)if(G=h().JSC$13119_getRequest(v,G))return Promise.resolve(_.My(D.innerTubeTransportService,G.innerTubeRequest,G.input,void 0,G.config).then(function(Z){return Z}))}else if(h=D.watchEndpointMap.player)if(G=h().JSC$13119_getRequest(v,G))return Promise.resolve(_.My(D.innerTubeTransportService,G.innerTubeRequest,G.input,void 0,G.config).then(function(Z){return Z}))}else if(_.DY(D.innerTubeTransportService,v)){var U={tempData:h},L=Uzs(D.innerTubeTransportService,v);
return L?new Promise(function(Z,E){var I,S;return _.M(function(B){if(B.nextAddress==1)return B.yield(L,2);if(B.nextAddress!=4)return I=B.yieldResult,I.JSC$13126_getStoreKey(v,U)?B.yield(_.v4(D.innerTubeTransportService,v,U),4):(E(new _.XH("Prefetching request builder with no store key.",v)),B.jumpTo(0));S=B.yieldResult;Z(S);_.YI(B)})}):Promise.reject(new _.XH("Prefetching unregistered request builder.",v))}return Promise.reject(new _.XH("No request builder available to prefetch endpoint.",v))};
Hlo=function(D,v){var h,a,Q;if(_.k(v,_.hP)){var G=D.watchEndpointMap.watchNext;G&&(h=G());(D=D.watchEndpointMap.player)&&(a=D())}else if(_.k(v,_.AQ))(G=D.reelWatchEndpointMap.reelItemWatch)&&(h=G()),(G=D.reelWatchEndpointMap.player)&&(a=G()),(D=D.reelWatchEndpointMap.reelWatchSequence)&&(Q=D());else{a:{D=DjL(v,D.innerTubeTransportService.endpointMap);if(D!==void 0)if(typeof D.then==="function")_.mV(new _.XH("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",v));else break a;
D=void 0}D&&(h=D)}var x,f,C;return{content:(x=h)==null?void 0:x.JSC$13126_getStoreKey(v),player:(f=a)==null?void 0:f.JSC$13126_getStoreKey(v),reelSequence:(C=Q)==null?void 0:C.JSC$13126_getStoreKey(v)}};
CIm=function(D,v,h,a,Q,G,x){var f=_.E9(),C=D.watchEndpointMap.player;_.g("web_streaming_player")&&(C=bu(OH));C&&(C=C().JSC$13119_getRequest(v,h))&&(f=_.My(D.innerTubeTransportService,C.innerTubeRequest,C.input,v.clickTrackingParams,C.config));C=_.E9();var U=D.watchEndpointMap.watchNext;U&&(h=U().JSC$13119_getRequest(v,h))&&(C=_.My(D.innerTubeTransportService,h.innerTubeRequest,h.input,v.clickTrackingParams,h.config));D=_.E9(a);ZNt(v,D,f,C,Q,G,x)};
fdy=function(D,v,h){return _.M(function(a){if(a.nextAddress==1)return a.yield(D,2);v.resolve(h);_.YI(a)})};
ZNt=function(D,v,h,a,Q,G,x){var f,C,U,L,Z;_.M(function(E){switch(E.nextAddress){case 1:return E.yield(v,2);case 2:f=E.yieldResult;if(G(x.promise))return x.resolve(f),E.return();Q(D,f);C=XNc(D);if(!C.length){E.jumpTo(3);break}return E.yield(v,4);case 4:f.preconnect=C,Q(D,f);case 3:return _.gE(E,5),E.yield(h,7);case 7:U=E.yieldResult;_.rl(E,6);break;case 5:return L=_.NS(E),x.reject(L),E.return();case 6:if(U===void 0)return f.reload=!0,Q(D,f),x.resolve(f),E.return();if(G(x.promise))return x.resolve(f),
E.return();f.playerResponse=U;Q(D,f);_.gE(E,8);return E.yield(a,10);case 10:Z=E.yieldResult;_.rl(E,9);break;case 8:_.NS(E);case 9:if(Z===void 0)return f.response={responseContext:{}},x.resolve(f),E.return();if(G(x.promise))return x.resolve(f),E.return();f.response=Z;Q(D,f);x.resolve(f);_.YI(E)}})};
zYb=function(D,v,h,a,Q,G,x,f){var C,U,L,Z,E,I;_.M(function(S){switch(S.nextAddress){case 1:return S.yield(v,2);case 2:C=S.yieldResult;if(x(f.promise))return f.resolve(C),S.return();G(D,C);U=XNc(D);if(!U.length){S.jumpTo(3);break}return S.yield(v,4);case 4:C.preconnect=U,G(D,C);case 3:return _.gE(S,5),S.yield(h,7);case 7:L=S.yieldResult;_.rl(S,6);break;case 5:return Z=_.NS(S),f.reject(Z),S.return();case 6:if(L===void 0)return C.reload=!0,G(D,C),f.resolve(C),S.return();if(x(f.promise))return f.resolve(C),
S.return();C.playerResponse=L;G(D,C);_.gE(S,8);return S.yield(a,10);case 10:E=S.yieldResult;_.rl(S,9);break;case 8:_.NS(S);case 9:if(E===void 0)return C.response={responseContext:{}},f.resolve(C),S.return();if(x(f.promise))return f.resolve(C),S.return();C.response=E;G(D,C);_.gE(S,11);return S.yield(Q,13);case 13:I=S.yieldResult;_.rl(S,12);break;case 11:_.NS(S);case 12:if(x(f.promise))return f.resolve(C),S.return();I&&(C.reelWatchSequenceResponse=I);G(D,C);f.resolve(C);_.YI(S)}})};
F0M=function(D,v,h,a,Q,G,x){var f,C,U,L,Z,E;_.M(function(I){if((f=x)==null||!f.replacementEndpoint)return G.reject(),I.return();C=x.replacementEndpoint;(U=_.k(C,_.AQ))?(x.sequenceContinuation&&(U.sequenceParams=x.sequenceContinuation),L=_.xd().resolve(_.Kh),Z=U.sequenceParams,Exb(L,C)&&delete U.sequenceParams,E=RQ(D,C,v,h,a,Q,function(){return!1}),E.then(function(S){return _.M(function(B){if(B.nextAddress==1)return Idp(L,{reelWatchEndpoint:{sequenceParams:Z}},S),B.yield(0,2);
G.resolve(S);_.YI(B)})})):G.reject();
_.YI(I)})};_.gx4=function(D){if(D.validatedFragments_.length==0)return null;if(!D.mergedPrefetchedData_){for(var v=[],h=_.P(D.validatedFragments_),a=h.next();!a.done;a=h.next()){a=_.P(D.fragmentConfiguration_[a.value].graftedKeys);for(var Q=a.next();!Q.done;Q=a.next())(Q=D.prefetchedData_[Q.value].trackingParams)&&v.push(Q)}D.mergedPrefetchedData_={};Object.assign(D.mergedPrefetchedData_,D.prefetchedData_,{clientSideGrafts:v})}return D.mergedPrefetchedData_};var kZ$;_.ie=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
kZ$=function(D,v,h){if(_.W_o(v))return D.prefetchCache_.get(_.tfr(v,h))};_.WC=new _.Uj("NAVIGATION_TOKEN");var STJ=function(D){var v=this;var h=h===void 0?o3u():h;var a=a===void 0?_.xd().resolve(_.WC):a;this.onePickCommand=D;this.JSC$13230_playlistNetworkManager=h;this.navigationManager=a;this.videoPickerBuilder=_.feu("yt-addtoplaylist");_.Rx$(yXM(w1R(Hpb(this.videoPickerBuilder.setTitle(D.modalTitle).setSize(1E3).addView(ndM()).addView(exs())).addView("youtube"),D.selectButtonLabel)),function(Q){v.handleAction(Q)})};
STJ.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
STJ.prototype.handleAction=function(D){var v=this;if(D&&this.onePickCommand.listId&&D.action==="picked"&&D.docs){var h=[];D.docs.forEach(function(a){h.push({addedVideoId:a.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13230_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,h).then(function(){_.g("playlist_add_video_hard_reload_killswitch")?v.navigationManager.reload():J04(v.navigationManager)})}};var pHJ=function(){if(this.constructor===pHJ)throw new TypeError("cg");};
_.V=pHJ.prototype;_.V.dispose=function(){};
_.V.disconnect=function(){};
_.V.reconnect=function(){};
_.V.observe=function(D,v,h){return{element:D,option:h}};
_.V.unobserveByKey=function(){};var FYo=function(D,v){v=v===void 0?0:v;pHJ.call(this);this.viewroot=D;this.defaultPrescanHeight=v;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),D?{root:D,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.J(FYo,pHJ);_.V=FYo.prototype;_.V.dispose=function(){this.disconnect();this.handlers.clear()};
_.V.disconnect=function(D){this.isConnected=!1;this.pauseObservingUntilReconnect=D===void 0?!1:D;this.observer.disconnect();D=_.P(this.prescanObservers.values());for(var v=D.next();!v.done;v=D.next())v.value.disconnect()};
_.V.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var D=_.P(this.handlers),v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;var a=h.next().value;h=!1;a=_.P(a.keys());for(var Q=a.next();!Q.done;Q=a.next())if((Q=Q.value)&&Q.state==="prescan"){h=!0;break}h&&ldy(this,v).observe(v);this.observer.observe(v)}}};
_.V.handleObserveEvent=function(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var h=this.handlers.get(v.target);if(h){var a=v.isIntersecting;h=_.P(h);for(var Q=h.next();!Q.done;Q=h.next()){var G=_.P(Q.value);Q=G.next().value;G=G.next().value;Q&&(Q.state==="visible"&&a||Q.state==="hidden"&&!a)&&(G(v.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:v.target,option:Q}))}}}};
_.V.handlePrescanEvent=function(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var h=this.handlers.get(v.target);if(h&&v.isIntersecting){h=_.P(h);for(var a=h.next();!a.done;a=h.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;a&&a.state==="prescan"&&(Q(v.target,a.state),a.calledOnce&&this.unobserveByKey({element:v.target,option:a}))}}}};
_.V.observe=function(D,v,h){var a=(a=this.handlers.get(D))&&a.has(h)?{element:D,option:h}:void 0;if(a)return a;a={element:D,option:h};this.handlers.has(D)||this.handlers.set(D,new Map);var Q=this.handlers.get(D);Q&&!Q.has(h)&&Q.set(h,v);this.pauseObservingUntilReconnect||(h.state==="prescan"&&ldy(this,D).observe(D),this.observer.observe(D));return a};
_.V.unobserveByKey=function(D){var v=this.handlers.get(D.element);if(v&&v.has(D.option)){v.delete(D.option);if(D&&D.option.state==="prescan")for(var h=_.P(this.prescanObservers.values()),a=h.next();!a.done;a=h.next())a.value.unobserve(D.element);v.size===0&&(this.handlers.delete(D.element),this.observer.unobserve(D.element))}};
var ldy=function(D,v){var h=D.defaultPrescanHeight;v.hasAttribute("prescan-height")&&(v=Number(v.getAttribute("prescan-height")),isNaN(v)||(h=v));if(D.prescanObservers.has(h))return D.prescanObservers.get(h);v="-0.1px -0.1px "+h+"px -0.1px";v=new IntersectionObserver(D.handlePrescanEvent.bind(D),D.viewroot?{root:D.viewroot,rootMargin:v}:{rootMargin:v});D.prescanObservers.set(h,v);return v};var NNF=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],YTt=function(){var D,v=this;this.JSC$13247_actionRouter=D=D===void 0?_.iD.getInstance():D;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return v.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return v.visibilityObservedElementHandlerKeys}}},BNy,XHF,bNt;
YTt.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.g("kevlar_use_vimio_behavior")&&_.eA("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=zbc())};
YTt.prototype.dispose=function(){this.visibilityMonitor&&_.d9(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
YTt.prototype.handleVisibilityRefreshed=function(){for(var D=_.P(this.targetMap.entries()),v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;_.c0y(this,v,h)}};
_.qTR=function(D,v,h){XHF(D,h);var a=_.A0$(D,v);a.element=h;D.targetedElements.set(h,v);_.c0y(D,v,a)};
XHF=function(D,v){var h=D.targetedElements.get(v);if(h){var a=D.targetMap.get(h);a&&(delete a.element,D.targetMap.set(h,a));D.targetedElements.delete(v);D.visibilityObserver&&D.visibilityObservedElementHandlerKeys&&(h=D.visibilityObservedElementHandlerKeys.get(v))&&(D.visibilityObserver.unobserveByKey(h),D.visibilityObservedElementHandlerKeys.delete(v))}};
_.c0y=function(D,v,h){var a=h.action,Q=h.element;Q&&a&&(NNF.includes(v)||_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||D.visibilityMonitor&&D.visibilityMonitor.isNodeVisible(Q)?bNt(D,v,h):D.visibilityObserver&&(D.visibilityObservedElementHandlerKeys||(D.visibilityObservedElementHandlerKeys=new WeakMap),a=D.visibilityObserver.observe(Q,function(){bNt(D,v,h);D.visibilityObservedElementHandlerKeys.delete(Q)},{calledOnce:!0,
state:"visible"}),D.visibilityObservedElementHandlerKeys.set(Q,a)))};
bNt=function(D,v,h){var a=h.action;(h=h.element)&&a&&(_.rt(D.JSC$13247_actionRouter,[a],h),D.targetMap.delete(v),D.targetedElements.delete(h),D.triggeredTargets.add(v))};
_.A0$=function(D,v){var h=D.targetMap.get(v);h||(h={},D.targetMap.set(v,h));return h};
_.tU=function(){BNy||(BNy=new YTt);return BNy};var dzb=document.createElement("div");dzb.style.touchAction="pan-down";var U4q=dzb.style.touchAction==="pan-down";var jjs,sjR;jjs=function(){this.hammerFn=Ksy();this.JSC$13255_screenManager=_.c8();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.En(83615);_.jh(this.JSC$13255_screenManager,this.ve);LYL()};
_.rh=function(){sjR||(sjR=new jjs);return sjR};
jjs.prototype.registerTouchEvents=function(D,v,h){var a=_.Kz.apply(3,arguments),Q=this.hammerFn(D,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});h&&Q.set({touchAction:h});this.nodeManagerMapping.set(D,Q);var G=
Znr(v);a=_.P(a);for(var x=a.next();!x.done;x=a.next()){x=x.value;if(x.includes("swipe")||x.includes("pinch")||x.includes("pan"))x.includes("swipe")?Q.get("swipe").set({enable:!0,direction:G,velocity:.2}):x.includes("pinch")?Q.get("pinch").set({enable:!0}):x.includes("pan")&&(Q.get("pan").set({enable:!0,direction:G}),Q.get("swipe").set({enable:!0,direction:G,velocity:.2}),Q.get("swipe").recognizeWith("pan"));mzy(this,D,Q,x)}};
var mzy=function(D,v,h,a){h.on(a,function(Q){if(a.includes("pinch"))D.lastPinchTime=Date.now();else if(a.includes("swipe")&&Date.now()-D.lastPinchTime<400)return;Q.pointerType!=="mouse"&&(Q=a==="doubletap"?{coordinates:Q.center}:a.includes("pan")?Q:a.includes("swipe")?{target:Q.target}:{},v.dispatchEvent(new CustomEvent(a,{bubbles:!0,composed:!0,detail:Q})))})};
jjs.prototype.unregisterTouchEvents=function(D){var v=_.Kz.apply(1,arguments),h=this.nodeManagerMapping.get(D);if(h){v=_.P(v);for(var a=v.next();!a.done;a=v.next())h.off(a.value);this.nodeManagerMapping.delete(D);D.style.touchAction="unset"}};var HNm=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var E37=null;var y09=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},s8c=function(){y09.instance||(y09.instance=new y09);
return y09.instance},m4A=function(D){var v=D.networkEvents;
D.networkEvents=[];return _.g("enable_network_monitoring")?v:[]};var wH4;wH4={};_.eY1=PK("yt-serviceworker-metadata",{objectStores:(wH4.auth={addedAtVersion:1},wH4["resource-manifest-assets"]={addedAtVersion:2},wH4),shared:!0,upgrade:function(D,v){v(1)&&Tm(D,"resource-manifest-assets");v(2)&&Tm(D,"auth")},
version:2});var pMq=self.location.origin+"/";leI([/\.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\//]);leI([/purge_shell=1/]);var nx1=void 0;nx1=nx1===void 0?[]:nx1;for(var ONt=[],K0J=_.P(JHJ),TN4=K0J.next();!TN4.done;TN4=K0J.next())ONt.push({key:TN4.value});for(var RYF=_.P(nx1),iNs=RYF.next();!iNs.done;iNs=RYF.next())ONt.push(iNs.value);var W0J,iu=_.$L==null?void 0:(W0J=_.$L.performance)==null?void 0:W0J.memory,BuO=!1,Hnc={},Aq4={},WR={},tQ=navigator;var ue=function(D){this.JSC$13299_expiringStorage=new qM(D)};
ue.prototype.set=function(D,v,h){h=h!==void 0?Date.now()+h:void 0;this.JSC$13299_expiringStorage.set(D,v,h)};
ue.prototype.get=function(D){return this.JSC$13299_expiringStorage.get(D)};
ue.prototype.remove=function(D){this.JSC$13299_expiringStorage.remove(D)};var Rbq=_.DK(["https://www.youtube.com/",""]),in8=_.DK(["https://studio.youtube.com/",""]),DkA="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",tW8=null,Q_4;var tsM=_.DK(["https://www.youtube.com/iframe_api"]),Dz=function(){this.playerResolver_=_.hn();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Ay;this.playbackDurationSeconds_=0},r0p=function(D){var v=function(){return window.YT&&typeof window.YT.ready==="function"};
if(v())return _.E9(window.YT);var h=_.hn(),a=_.l9("SCRIPT");a.onload=a.onreadystatechange=function(){a.readyState&&a.readyState!="loaded"&&a.readyState!="complete"||(a.onload=_.Ay,a.onreadystatechange=_.Ay,a.onerror=_.Ay,v()?h.resolve(window.YT):h.reject(new _.XH("Failed to load the iframe player library","script.onload",a.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
a.onerror=function(Q){a.onload=_.Ay;a.onreadystatechange=_.Ay;a.onerror=_.Ay;h.reject(new _.XH("Failed to load the iframe player library","script.onerror",Q&&Q.target&&Q.target.src))};
_.Ge(a,_.UV(tsM));D.insertBefore(a,D.firstChild);return h.promise},u$J=function(D,v,h){var a,Q;
_.M(function(G){switch(G.nextAddress){case 1:return D.playbackEndedCallback_=h,_.gE(G,2),G.yield(r0p(v.parentElement||null),4);case 4:a=G.yieldResult;_.rl(G,3);break;case 2:return Q=_.NS(G),Q instanceof _.XH&&Q.args&&Q.args[0]=="script.onerror"?_.yR(Q):_.mV(Q),G.return();case 3:a.ready(function(){return new a.Player(v,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:D.onPlayerReady_.bind(D),onStateChange:D.onPlayerStateChange_.bind(D),
onCueRangeExit:D.onCueRangeExit_.bind(D)}})}),_.YI(G)}})};
_.V=Dz.prototype;_.V.getPlayerPromise=function(){return this.playerPromise_};
_.V.onPlayerReady_=function(D){this.playerResolver_.resolve(D.target)};
_.V.onPlayerStateChange_=function(D){if(D.data==YT.PlayerState.PLAYING){D=D.target;var v=D.getCurrentTime();D.addCueRange("playback",v,v+this.playbackDurationSeconds_)}};
_.V.onCueRangeExit_=function(D){D.data=="playback"&&(D.target.stopVideo(),this.playbackEndedCallback_())};
_.V.stopVideo=function(){this.playerPromise_.then(function(D){D.stopVideo()})};
var D5t=function(D){D.playerVars_&&D.playerPromise_.then(function(v){typeof v.cueVideoByPlayerVars!="function"?_.yR(new _.XH("vmh: player API not ready","cueVideoByPlayerVars",typeof v.cueVideoByPlayerVars)):v.cueVideoByPlayerVars(D.playerVars_)})};
Dz.prototype.playVideo=function(){var D=this;this.playerVars_&&this.playerPromise_.then(function(v){typeof v.loadVideoByPlayerVars!="function"?(v=new _.XH("vmh: player API not ready","loadVideoByPlayerVars",typeof v.loadVideoByPlayerVars),_.mV(v)):v.loadVideoByPlayerVars(D.playerVars_)})};
var vQ4=function(D,v,h,a,Q){v&&(h===void 0&&(h=0),a===void 0&&(a=0),D.playbackDurationSeconds_=a/1E3,D.playerVars_={adformat:"17_8",videoId:v,suggestedQuality:"hd720",startSeconds:h/1E3,player_params:Q})};
Dz.prototype.mute=function(){this.playerPromise_.then(function(D){D.mute()})};
Dz.prototype.unMute=function(){this.playerPromise_.then(function(D){D.unMute()})};var h5$=function(D,v){var h=Rr();D||(D="unknown");v||(v="unknown");D="MAIN_APP_WEB_PAGE_TYPE_"+D.toUpperCase();D in M51||(D="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");v="MAIN_APP_WEB_REQUEST_TYPE_"+v.toUpperCase();v in fVM||(v="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.FC(h,{mainAppWeb:{pageType:D,requestType:v,isShellLoad:_.nJ("IS_SHELL_LOAD",!1)}})},aIm={start:function(){_.FC(zhc(),{mainAppWeb:_.$U()})},
success:function(){_.zk(zhc(),"SUCCESS")},
failure:function(){_.zk(zhc(),"FAILURE")},
cancelled:function(){_.zk(zhc(),"CANCELLED")}};var $5J,QC1,CFA;$5J=_.DK(["/sw.js"]);QC1=_.DK(["/sw.js?0"]);_.Gt1=_.UV($5J);CFA=_.UV(QC1);var VcJ=function(){var D=Error.apply(this,arguments);this.message=D.message;"stack"in D&&(this.stack=D.stack)};
_.J(VcJ,Error);_.VT.prototype.load=function(D){this.megabloxUrl_=_.eA("YPC_MB_URL");_.i4(this.megabloxUrl_,(0,_.qp)(function(){D&&D()},this))};
_.Fyf=function(D,v,h,a,Q,G,x,f,C,U,L){_.FEA(C);D.load((0,_.qp)(function(){try{var Z=G?G:_.eA("HL"),E=_.eA("SESSION_INDEX");_.Rhi("client",function(){XlF("59",{helpCenterPath:"/youtube",locale:Z,window:window}).JSC$9979_loadChatSupport({authuser:String(E)})})}catch(I){throw QT(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Q&&Q(I),_.mV(I),I;
}Pws(this,v,h,a,Q,G,x,f,C,U,L)},D))};
_.VT.prototype.openFixFlowDialog=function(D,v,h,a){this.load((0,_.qp)(function(){try{x5J(this,_.T3("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(D).withIntegratorCallback(v).load(h,a)}catch(Q){throw _.mV(Q),Q;}},this))};
var x5J=function(D,v,h,a){var Q=v.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.g("enable_window_constrained_buy_flow_dialog")&&(Q=Q.usingPopupStyle(_.T3("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));a&&(Q=Q.usingCloseCallback(a));v.bootstrap.fromPaymentsUrl(D.megabloxUrl_);D=v.bootstrap.asMashupMode(Q);h=h?h:_.eA("HL");D.usingGaiaIndex(_.eA("SESSION_INDEX")).usingLocale(h).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.g("enable_google_payments_buyflow_material2_style_web")?
D.usingStyle(":m2;pc=#444;ac=#065fd4"):D.usingStyle(":md;pc=#444;ac=#065fd4");return D},Pws=function(D,v,h,a,Q,G,x,f,C,U,L){try{var Z=_.T3("payments.business.integration");
if(!Z)throw new VcJ("payments.business.integration is undefined");var E=Z.standaloneContextAuthId.forUserId(),I=x5J(D,Z,G,function(){Ukc(!1);f&&f()});
x&&I.usingServerAnalyticsEventHandler(x);var S=I.inStandaloneContext(E).buyFlow(function(B){if(B&&(!B.integratorData||B.integratorData===""||B.error))if(B.error!=null)if(String(B.error)==="-1")_.zzc(C);else{var A=String(B.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";QT(10,L,A,B.debugCode);_.GH(A,C,B.debugCode);A=new _.XH("PAYMENT_ERROR_MESSAGE::"+B.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+B.internalErrorDetails);
_.mV(A)}else QT(10,L,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.GH("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",C,"EMPTY_INTEGRATOR_DATA"),_.mV(Error("hg"));h&&(Ukc(!1),h(B))}).withEncryptedParameters(v);
U&&S.withClientParameters(X6i(_.Cg7(U)));S.load(function(){QT(24,L);_.O9("ttc",void 0,"commerce_transaction");yp("commerce_transaction");a&&(a(),Ukc(!0))},function(B){if(B==null?0:B.debugCode)var A=B==null?void 0:B.debugCode;
else if(!B||(B==null?0:B.debugCode))A="EMPTY_LOAD_FAILURE_ERROR",_.mV(Error(A));else{A="EMPTY_LOAD_FAILURE_DEBUG_CODE";var d=new _.XH("LOAD_FAILURE:"+B.message," DEBUG_CODE:"+A);_.mV(d)}QT(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A);_.GH("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",C,A);_.mV(B);Q&&Q(B)})}catch(B){throw B instanceof VcJ&&(QT(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Q&&Q(B)),_.mV(B),B;
}};var Mc4;Mc4=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.fs8=function(D,v){v=v===void 0?!1:v;D=Mc4.test(D)?_.XY(D):null;!v&&window.payments||!D?(D=_.hn(),v=D.promise,D.resolve()):v=_.ZLJ(D,{attributes:{"data-payments-main":"",id:"payment-lib"}});return v};var fI4;fI4=_.DK(["//www.googletagmanager.com/gtm.js?id=",""]);_.vt=function(D,v){_.Cj(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:v}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.eA("GL")}),v=_.l9("SCRIPT"),v.async=!0,_.Ge(v,_.UV(fI4,D)),v.id="gtm",D=document.getElementsByTagName("script"),D.length==0?document.head.appendChild(v):(D=D[0],D.parentNode.insertBefore(v,D)))};
_.hk=function(D){if(D=JSON.parse(D))window.dataLayer=window.dataLayer||[],window.dataLayer.push(D)};var Cwt,oQp;Cwt=_.DK(["https://clients2.google.com/gr/gr_sync.js"]);_.xsf=function(){};
_.xsf.prototype.init=function(){if(oQp()){var D=_.hn();D.resolve();return D.promise}return _.ZLJ(_.UV(Cwt)).then(function(){if(!oQp())throw Error("ig");},function(){throw Error("jg");
})};
_.M77=function(){if(!oQp())return"";var D=window.google.gr;D.init({async:{schedule:"sync"},merchantId:"youtube"});D.start();D=D.finish();return D==null?"":D};
oQp=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.c=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.J(_.c,PolymerFakeBaseClassWithoutHtml);_.XS=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.J(_.XS,PolymerFakeBaseClassWithoutHtml);var LEc=window.ShadyDOM;var rjO,WEr,DN4,vbc,ahL,$NO,aY,LZ;rjO=_.g("enable_shadydom_free_scoped_query_methods");WEr=_.g("enable_shadydom_free_scoped_node_methods");DN4=_.g("enable_shadydom_free_scoped_readonly_properties_batch_one");vbc=_.g("enable_shadydom_free_parent_node");ahL=_.g("enable_shadydom_free_children");$NO=_.g("enable_shadydom_free_last_child");aY=window.ShadyDOM;_.kU=aY&&aY.noPatch&&aY.wrap?aY.wrap:aY?function(D){return aY.patch(D)}:function(D){return D};
LZ=function(D){if(D instanceof ShadowRoot)this.host=(0,_.kU)(D.host),this.root=D;else if(D.$$){this.host=(0,_.kU)(D);var v;this.root=(v=D.root)!=null?v:this.host}else if(D.polymerController){this.host=(0,_.kU)(D);var h;this.root=(h=this.host.shadowRoot)!=null?h:this.host}else this.root=this.host=(0,_.kU)(D)};
t12();uE8();Q6I();GIo();hRO();var Fos={querySelector:function(D,v){v=Eu7(v,fZ(D));D=_.CZ(D);return oy(D).prototype.querySelector.call(D,v)},
querySelectorAll:function(D,v){v=Eu7(v,fZ(D));D=_.CZ(D);return oy(D).prototype.querySelectorAll.call(D,v)}},z5p={appendChild:function(D,v){var h=fZ(D),a=_.Mi(v);
return _.Rz8(_.CZ(D),h?_.zH(v,h,a):v)},
cloneNode:function(D,v){var h=_.Mi(D);D=_.CZ(D);v=oy(D).prototype.cloneNode.call(D,v);return h?UI(v,h):v},
contains:function(D,v){var h=fZ(D),a=_.Mi(v);return h!==a?!1:iEo(D,v)},
insertBefore:function(D,v,h){var a=fZ(D),Q=_.Mi(v);D=_.CZ(D);v=a?_.zH(v,a,Q):v;return oy(D).prototype.insertBefore.call(D,v,h)},
removeChild:function(D,v){var h=fZ(D);D=_.CZ(D);v=h?UI(v,h):v;return oy(D).prototype.removeChild.call(D,v)},
replaceChild:function(D,v,h){var a=fZ(D),Q=_.Mi(v);v=a?_.zH(v,a,Q):Q?UI(v,Q):v;h=a?UI(h,a):h;D=_.CZ(D);return oy(D).prototype.replaceChild.call(D,v,h)},
getRootNode:function(D,v){v=v===void 0?{composed:!0}:v;var h;if(((h=v)!=null?h:{}).composed)D=cjq(D);else{v=D;for(D=guo(D);D;)v=D,D=SpO(D);D=v}return D}},Pvi=DN4?{firstChild:w$u,
nextSibling:mkf,previousSibling:yjO,firstElementChild:ez8,lastElementChild:OEc,nextElementSibling:s_L,previousElementSibling:HEO,childNodes:KEf}:{};vbc&&(Pvi.parentNode=j_2);ahL&&(Pvi.children=Tzc);$NO&&(Pvi.lastChild=nu4);rjO&&Vl2(Fos);WEr&&Vl2(z5p);xN7();var Mlf=function(D){this.node=D instanceof ShadowRoot?D.host:D};
fhA();Cvq();var zRL=new WeakMap;var Li2=Symbol("Ad");var kI7=new Set(["tap","track","down","up"]),SC2=_.g("pbcm_fi_query_decorators");var $k=function(){return _.XS.apply(this,arguments)||this};
_.J($k,_.XS);_.V=$k.prototype;_.V.getState=function(){return this.store.getState()};
_.V.dispatch=function(D){this.store.dispatch(D)};
_.V.beforeRegister=function(){if(this&&typeof this==="object"){var D;var v=!!this.useSignals||!((D=this.polymerController)==null||!D.useSignals)}else v=!1;if(!v&&this.properties)for(v=_.P(Object.keys(this.properties)),D=v.next();!D.done;D=v.next()){var h=D.value;D=this.properties[h];if(D.selector){if(D.computed)throw Error("pg");h=["reduxPropertiesRecomputeTrigger",'"'+h+'"'].concat(_.j_(D.selectorArgs||[])).join(",");D.computed="recomputeReduxSelector("+h+")"}}};
_.V.attached=function(){var D=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){D.reduxPropertiesRecomputeTrigger++}));
_.g("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.V.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.V.recomputeReduxSelector=function(D,v){var h=_.Kz.apply(2,arguments),a=this.properties[v].selector;if(!a)throw Error("ng`"+v);return a.apply(null,[this.store.getState()].concat(_.j_(h)))};
_.V.select=function(D){var v=_.Kz.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return D.apply(null,[this.store.getState()].concat(_.j_(v)))};
_.GT.Object.defineProperties($k.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
$k.prototype.recomputeReduxSelector=$k.prototype.recomputeReduxSelector;_.e([_.Y(),_.n("design:type",Number)],$k.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.e([_.AV()],$k);var Q1=[],N68={},TH=function(){return PT.apply(this,arguments)||this};
_.J(TH,PT);TH.prototype._addPropertyEffect=function(D,v,h){if(v==="__observeEffects"&&h){var a,Q=(a=h.info.method)!=null?a:h.info.methodName;if(Q){var G=this[Q];this[Q]=function(){Q1.push(Q);try{G==null||G.apply(this,arguments)}finally{Q1.pop()}}}}_.yk._addPropertyEffect.apply(this,[D,
v,h])};
TH.prototype._setPendingProperty=function(D,v,h){if(Q1.length){var a=Q1[Q1.length-1],Q;(Q=N68[this.is])!=null&&Q.has(a)||(YC8(this.is,a),_.jj("polymerPropertyChangedInObserver",{componentName:this.is,observerName:a}))}return _.yk._setPendingProperty.apply(this,[D,v,h])};
_.e([WTf()],TH);var B6f=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Xjq,dx={};_.g("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=dx);var mg=function(){return _.XS.apply(this,arguments)||this};
_.J(mg,_.XS);mg.prototype._setUnmanagedPropertyToNode=function(D,v,h){D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!0);if(h!==D[v]||typeof h==="object")D[v]=h;D.is&&D.polymerController&&D.polymerController!==D&&jB(D.is,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!1)};
_.e([_.AV()],mg);c6A()&&(RM.prototype._setUnmanagedPropertyToNode=(new mg)._setUnmanagedPropertyToNode);_.KiO={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(D){},set polymerController(D){}}]};var KZ=function(){var D=PT.apply(this,arguments)||this;D.json=function(){};
return D};
_.J(KZ,PT);KZ.prototype.equals=function(D,v){return D===v};
KZ.prototype.isEmpty=function(D){var v;(v=!D)||(v=_.O8(D)&&D.length===0);return v};
_.e([WTf()],KZ);var U5m=function(D){D=TIf(D);hl.call(this,D)};
_.J(U5m,hl);U5m.prototype.addProvider=function(D){D=D.key?D:TIf([D])[0];var v=this.keyIdToIndex.get(D.key.id);if(v){if(j6q(D,this.providers[v]))throw Error("qg`"+D.key.displayName);}else hl.prototype.addProvider.call(this,D)};
var LoR=new U5m([]);var Z2F=!1;var eRA={};Z2F||(wji(),Z2F=!0);
eRA.InjectBehavior={initializeInjection:function(){var D=this.provide;try{if((D=D!=null?D:[])&&D.length>0)for(var v=TIf(D),h=_.P(v),a=h.next();!a.done;a=h.next())LoR.addProvider(a.value);var Q=new Set;s6L(this.behaviors||[],Q);v={};for(var G=_.P(Q),x=G.next();!x.done;x=G.next()){var f=x.value;f.inject&&Object.assign(v,f.inject)}this.inject&&Object.assign(v,this.inject);for(var C=_.P(Object.keys(v)),U=C.next();!U.done;U=C.next()){var L=U.value,Z=v[L];try{this[L]=LoR.resolve(Z)}catch(E){throw E;}}}catch(E){throw Error(E.message);
}}};var OUf;var T64=/\bclass\b/.test(function(){}.toString()),WiA=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var EQM=function(D){this.wasDefined=!0;Array.isArray(D)||D instanceof Array?(this.JSC$13428_getImpl=D[0],this.JSC$13428_setImpl=D[1]):this.JSC$13428_getImpl=D};
_.V=EQM.prototype;_.V.getWithPath=function(D){return uNu(this.JSC$13428_getImpl(),D)};
_.V.setWithPath=function(D,v){var h=this;if(D.length)throw Error("rg");if(!this.JSC$13428_setImpl)throw Error("sg");Jh(function(){h.JSC$13428_setImpl(v)})};
_.V.notifyPath=function(){throw Error("tg");};
_.V.notifySplices=function(){throw Error("ug");};
_.V.getChangeRecordSignal=function(D,v){var h=this;if(D.length)throw Error("vg");return function(){var a=h.getWithPath(D);return{path:v!=null?v:"",base:a,value:a}}};
_.V.getSplicesSignal=function(){throw Error("wg");};
_.V.getPathMutationSignal=function(){throw Error("xg");};
_.V.pop=function(){throw Error("yg");};
_.V.push=function(){throw Error("zg");};
_.V.splice=function(){throw Error("Ag");};
_.V.unshift=function(){throw Error("Bg");};var GA=function(D){var v=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(D)||D instanceof Array?(this.JSC$13433_getImpl=D[0],this.JSC$13433_setImpl=D[1]):this.JSC$13433_getImpl=D;this.wasDefined=!1;_.LV(function(){v.wasDefined=v.JSC$13433_getImpl()!==void 0})};
GA.prototype.getWithPath=function(D){return uNu(this.JSC$13433_getImpl(),D)};
GA.prototype.setWithPath=function(D,v){var h=this;if(D[D.length-1]!=="*"&&D[D.length-1]!=="splices"){var a=_.LV(function(){return h.getWithPath([])});
if(D.length===0){if(!this.JSC$13433_setImpl)throw Error("Cg");if(a===v)return;this.wasDefined||(this.wasDefined=v!==void 0);Jh(function(){h.JSC$13433_setImpl(v)})}else{for(var Q=0;Q<D.length-1;Q++){if(!a)return;
a=a[D[Q]]}Q=D[D.length-1];a&&(a[Q]=v);this.wasDefined||(this.wasDefined=D.length>1||v!==void 0)}IIy(this,D,{pathComponents:D,value:v})}};
GA.prototype.notifyPath=function(D,v){D.length===0?v&&this.setWithPath(D,v.value):IIy(this,D,{pathComponents:D,value:v==null?void 0:v.value,fallbackWhenUndefined:v==null?void 0:v.value})};
var IIy=function(D,v,h,a){if(D.setMutationSignal){var Q=++D.mutationIndex,G=[D.observedPath],x=D.observedPath,f;v.length===0&&(f=x);for(var C=0;C<v.length;C++){var U=x.subPaths[v[C]];if(!U)break;G.push(U);x=U;C===v.length-1&&(f=U)}for(v=!1;G.length;)x=G.shift(),x.data={index:Q,mutation:h,spliceMutationIndex:a},v||(v=x===f),v&&G.push.apply(G,_.j_(Object.values(x.subPaths)));Jh(function(){D.setMutationSignal(Q)})}};
GA.prototype.notifySplices=function(D,v){var h=this,a=_.LV(function(){return h.getWithPath(D)}),Q=[].concat(_.j_(D),["splices"]);
IIy(this,Q,{pathComponents:Q,value:{indexSplices:v}});if(a==null?0:a.length)v=this.mutationIndex,Q=[].concat(_.j_(D),["length"]),IIy(this,Q,{pathComponents:Q,value:a.length},v)};
var gQF=function(D,v,h,a,Q,G){D.notifySplices(h,[{index:a,addedCount:Q,removed:G,object:v,type:"splice"}])},ktt=function(D,v){D=D.observedPath;
for(var h=0;h<v.length;h++){var a=v[h],Q=D.subPaths[a];Q||(Q={pathComponents:v.slice(0,h+1),subPaths:{}},D.subPaths[a]=Q);D=Q}},JgF=function(D,v,h){ktt(D,v);
if(!D.getMutationSignal){var a=_.P(_.Zq(D.mutationIndex,void 0,"sNBMCd"));D.getMutationSignal=a.next().value;D.setMutationSignal=a.next().value}var Q=D.getMutationSignal;return _.SM(function(){Q();return h(SrR(D,v))},void 0,"zvsXEd")};
GA.prototype.getChangeRecordSignal=function(D,v){var h=this,a=this.mutationIndex,Q;return JgF(this,D,function(G){if(G&&G.index>a){var x=G.mutation;a=G.index;Q=void 0}G=_.LV(function(){return h.getWithPath(D)});
if(x){var f=x.pathComponents[x.pathComponents.length-1],C=[].concat(_.j_(x.pathComponents));if(f==="splices"||f==="length")return{base:G,path:(v?[v].concat(_.j_(C)):C).join("."),value:x.value};var U=D.length>C.length?D:C,L;return{base:G!=null?G:x.fallbackWhenUndefined,path:(v?[v].concat(_.j_(U)):U).join("."),value:(L=_.LV(function(){return h.getWithPath(U)}))!=null?L:x.fallbackWhenUndefined}}Q||(Q={base:G,
path:(v?[v].concat(_.j_(D)):D).join("."),value:G});return Q})};
GA.prototype.getSplicesSignal=function(D){var v=this.mutationIndex,h;return JgF(this,D,function(a){if(a&&a.index>v&&a.spliceMutationIndex!==v){var Q=a.mutation;v=a.index;h=void 0}return Q&&Q.pathComponents[Q.pathComponents.length-1]==="splices"?h=a=Q.value:h})};
GA.prototype.getPathMutationSignal=function(D){var v=this;ktt(this,D);if(!this.getMutationSignal){var h=_.P(_.Zq(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=h.next().value;this.setMutationSignal=h.next().value}var a=this.getMutationSignal,Q=this.mutationIndex,G;return _.SM(function(){a();var x=SrR(v,D);if(x&&x.index>Q&&x.mutation&&D0c(x.mutation.pathComponents,D)){var f=x.mutation;Q=x.index}if(!G||Q!==G.index){var C,U;x=(U=_.LV(function(){return v.getWithPath(D)}))!=null?U:(C=f)==null?
void 0:C.fallbackWhenUndefined;
G={index:Q,value:x}}return G},void 0,"RXYC9b")};
var SrR=function(D,v){D=D.observedPath;v=_.P(v);for(var h=v.next();!h.done;h=v.next())D=D.subPaths[h.value];return D.data};
GA.prototype.pop=function(D){var v=this,h=_.LV(function(){return v.getWithPath(D)});
if(!(h instanceof Array))throw Error("Dg");var a=h.length>0,Q=h.pop();a&&gQF(this,h,D,h.length,0,[Q]);return Q};
GA.prototype.push=function(D){var v=_.Kz.apply(1,arguments),h=this,a=_.LV(function(){return h.getWithPath(D)});
if(!(a instanceof Array))throw Error("Eg");var Q=a.length,G=a.push.apply(a,_.j_(v));v.length&&gQF(this,a,D,Q,v.length,[]);return G};
GA.prototype.splice=function(D,v,h){var a=_.Kz.apply(3,arguments),Q=this,G=_.LV(function(){return Q.getWithPath(D)});
if(!(G instanceof Array))throw Error("Fg");v<0?v=G.length-Math.floor(-v):v&&(v=Math.floor(v));var x=G.splice.apply(G,[v,h].concat(_.j_(a)));(a.length||x.length)&&gQF(this,G,D,v,a.length,x);return x};
GA.prototype.unshift=function(D){var v=_.Kz.apply(1,arguments),h=this,a=_.LV(function(){return h.getWithPath(D)});
if(!(a instanceof Array))throw Error("Gg");var Q=a.unshift.apply(a,_.j_(v));v.length&&gQF(this,a,D,0,v.length,[]);return Q};var V1=function(D,v,h){this.model=D;this.unknownSignalResolver=v;this.options=h;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];v=_.P(x0o());D=v.next().value;v=v.next().value;this.owner=D;this.disposeImpl=v};
V1.prototype.dispose=function(){if(!this.isDisposed){for(var D=_.P(this.childSignalProxies),v=D.next();!v.done;v=D.next())v.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var pSR=function(D,v){D=_.GS(D.owner);try{v()}finally{_.GS(D)}};
V1.prototype.effect=function(D){pSR(this,function(){_.mt(D,"f")})};
var lIy=function(D,v){D.options!=null||(D.options={});var h;(h=D.options).immutableProps!=null||(h.immutableProps=new Set);D.options.immutableProps.add(v)},bI2=function(D,v){v=""+v;
NX9(D,v);var h,a;if((h=D.options)==null?0:(a=h.immutableProps)==null?0:a.has(v))return!0;var Q;if((Q=D.model.__signalCache)==null?0:Q.has(v))h=D.model.__signalCache.get(v),Array.isArray(h)&&lIy(D,v);var G,x,f;return(f=(G=D.options)==null?void 0:(x=G.immutableProps)==null?void 0:x.has(v))!=null?f:!1},YrJ=function(D,v){var h;
D.unknownSignalResolver&&(h=D.unknownSignalResolver(v));var a,Q;((a=D.options)==null?0:(Q=a.immutableProps)==null?0:Q.has(v))?h!=null||(h=new EQM(_.Zq(D.model[v],void 0,"By5iP"))):h!=null||(h=new GA(_.Zq(D.model[v],void 0,"CXghNc")));var G=D.model.hostElement;Object.defineProperty(D.model,v,{get:function(){qCc(G,v);return h.getWithPath([])},
set:function(x){sI(G,v);D.setWithPath([v],x)},
configurable:!0});return h},NX9=function(D,v){var h,a,Q;
((h=D.model.__signalCache)==null||!h.has(v))&&((a=D.options)==null?0:(Q=a.externalSignalProps)==null?0:Q.has(v))&&D.model[v]},tV=function(D,v){v=""+v;
var h=D.signalCache[v];if(h!==void 0)return h;h=!1;NX9(D,v);var a;if((a=D.model.__signalCache)==null?0:a.has(v))if(h=D.model.__signalCache.get(v),Array.isArray(h))h=!0,lIy(D,v);else return D.signalCache[v]=D.model.__signalCache.get(v).signal,D.signalCache[v];var Q,G;a=(G=(Q=D.options)==null?void 0:Q.reactivityMode)!=null?G:0;var x,f;if(!((x=D.options)==null?0:(f=x.reactiveProps)==null?0:f.has(v))&&!h&&a===1)throw Error("Hg`"+v);Q=h?BX4(D,v):YrJ(D,v);return D.signalCache[v]=Q},BX4=function(D,v){var h=
Object.getOwnPropertyDescriptor(D.model.constructor.prototype,v),a=function(){return D.model[v]};
return new EQM(h&&h.get&&!h.set?a:[a,function(Q){D.model[v]=Q}])};
V1.prototype.getWithPath=function(D){var v=_.P(D);D=v.next().value;v=au(v);qCc(this.model.hostElement,""+D);return tV(this,D).getWithPath(v)};
V1.prototype.setWithPath=function(D,v){if(D.length){sI(this.model.hostElement,D.join("."));var h=_.P(D);D=h.next().value;h=au(h);tV(this,D).setWithPath(h,v)}};
V1.prototype.getPathMutationSignal=function(D){var v=_.P(D);D=v.next().value;v=au(v);return tV(this,D).getPathMutationSignal(v)};
V1.prototype.notifyPath=function(D,v){var h=_.P(D);D=h.next().value;h=au(h);tV(this,D).notifyPath(h,v)};
var cg9=function(D,v){if(v.type==="literal")return function(){return{rootWasDefined:!0,value:v.value}};
var h=ic(v.path),a=_.P(h),Q=a.next().value;a=au(a);var G,x;if(v.type==="path"&&(h.length===1||((G=D.options)==null?0:(x=G.immutableProps)==null?0:x.has(Q))))return function(){var Z=D.getWithPath(h.slice(0,1));Z=uNu(Z,h.slice(1));return{rootWasDefined:tV(D,h[0]).wasDefined,value:Z}};
var f=tV(D,Q);if(v.type==="path"){var C=f.getPathMutationSignal(a);return function(){var Z,E=(Z=C())==null?void 0:Z.value;return{rootWasDefined:f.wasDefined,value:E}}}if(v.type==="splices"){var U=f.getSplicesSignal(a);
return function(){var Z=U();return{rootWasDefined:f.wasDefined,value:Z}}}var L=f.getChangeRecordSignal(a,""+Q);
return function(){var Z=L();return{rootWasDefined:f.wasDefined,value:Z}}},Gj4=function(D,v,h){var a=h.map(function(f){return cg9(D,f)}),Q=h.length===0,G=[],x=h.length!==1||h[0].type!=="path"?!1:!0;
D.effect(function(){for(var f=a.length,C=[],U=!!G.length,L=0;L<f;L++){var Z=a[L](),E=Z.rootWasDefined;Z=Z.value;Q||(Q=E);C[L]=Z;x&&(C[L+f]=U?G[L]:C[L],G[L]=Z)}Q&&Hl(D.owner,function(){return void v.apply(null,_.j_(C))})})},vvc=function(D,v,h,a,Q){var G=tV(D,v);
Q!==void 0&&G.setWithPath([],Q);Gj4(D,function(){var x=_.Kz.apply(0,arguments);sI(D.model.hostElement,v,!0);G.setWithPath([],h.apply(null,_.j_(x)))},a)};
V1.prototype.arrayPush=function(D){var v=_.Kz.apply(1,arguments),h=_.P(D),a=h.next().value;h=au(h);a=tV(this,a);return a.push.apply(a,[h].concat(_.j_(v)))};
V1.prototype.arraySplice=function(D,v,h){var a=_.Kz.apply(3,arguments),Q=_.P(D),G=Q.next().value;Q=au(Q);G=tV(this,G);return G.splice.apply(G,[Q,v,h].concat(_.j_(a)))};
V1.prototype.arrayUnshift=function(D){var v=_.Kz.apply(1,arguments),h=_.P(D),a=h.next().value;h=au(h);a=tV(this,a);return a.unshift.apply(a,[h].concat(_.j_(v)))};
V1.prototype.notifySplices=function(D,v){var h=_.P(D);D=h.next().value;h=au(h);tV(this,D).notifySplices(h,v)};var XS9=!0,Ag4=!1,dzc=!1,qrF=!1,b2b=0;qrF=!1;b2b=0;XS9=!0;Ag4=dzc=!1;var z9f=/([^\s]+?)\(([\s\S]*)\)/,CRc=/\.([^.]+)$/,L8L=/\\,/g,MKO=/&comma;/g,fRL=/\\(.)/g,U0A=[],ov7={"*":"wildcard",splices:"splices"};var NSi=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"),SDI=/[A-Z]/,d5F=["class","hidden","id","on-dom-change"],BS4=new Set([].concat(_.j_(d5F),
["if","notify-dom-change","restamp"])),cfo=new Set([].concat(_.j_(d5F),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),X_I=new Set(["restamp"]);var XSf=new Set(["className","id"]);var jbL=Symbol(),nvL=window;var rfq=window;var QjA=0,vxq=0,rx=[],$zL=0,Dz4=!1,ad4=document.createTextNode("");(new window.MutationObserver(hYA)).observe(ad4,{characterData:!0});var Dp=new Map,uc=0,jC9=function(D){this.mappedHandleId=D},Vso=function(D,v,h,a){this.mappedHandleId=D;
var Q=this;this.mappedHandleId=D;this.callback=v;this.waitTime=h;this.schedulerPriority=a;this.handleId=_.HK.addJob(function(){Q.callback();Dp.delete(Q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.J(Vso,jC9);Vso.prototype.cancel=function(){_.HK.cancelJob(this.handleId);Dp.delete(this.mappedHandleId)};
var PIo=function(D,v){this.mappedHandleId=D;var h=this;this.mappedHandleId=D;this.callback=v;this.handleId=GZq(function(){h.callback();Dp.delete(h.mappedHandleId)})};
_.J(PIo,jC9);PIo.prototype.cancel=function(){var D=this.handleId-vxq;D<0||rx.length<=D||(rx[D]=null);Dp.delete(this.mappedHandleId)};var CIA=function(){};
CIA.prototype.cancel=function(){this.jobHandle!==void 0&&(xzc(this.jobHandle),this.jobHandle=void 0)};
CIA.prototype.run=function(D,v,h){var a=this;this.cancel();this.callback=D;this.jobHandle=_.hD(function(){D();a.callback=void 0},v,h)};
CIA.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Mso=new WeakMap;var sC9=F2(function(D){for(var v=D,h=0;h<3;h++)v=Object.getPrototypeOf(v);delete v.prototype.connectedCallback;var a=function(){return D.apply(this,arguments)||this};
_.J(a,D);a.prototype._attachDom=function(Q){if(!Q)return null;var G=(0,_.kU)(this.hostElement);G.attachShadow({mode:"open",shadyUpgradeFragment:Q});G.shadowRoot.appendChild(Q);return G.shadowRoot};
a.prototype._takeAttributes=function(){for(var Q=this.hostElement.attributes,G=0;G<Q.length;G++){var x=Q[G],f=void 0,C=void 0;(C=(f=this).__attributeReaction)==null||C.call(f,x.name,null,x.value)}};
a.prototype._readyClients=function(){D.prototype._readyClients.call(this);this.root=this};
a.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);D.prototype.connectedCallback.call(this)};
_.GT.Object.defineProperties(a,{template:{configurable:!0,enumerable:!0,get:function(){return a.prototype._template}}});
return a}),m5$=F2(function(D){var v=function(){return D.apply(this,arguments)||this};
_.J(v,D);v.prototype.created=function(){if(this.__notifyEffects)for(var h=_.P(Object.values(this.__notifyEffects)),a=h.next();!a.done;a=h.next()){a=_.P(a.value);for(var Q=a.next();!Q.done;Q=a.next())Q.value.fn=Uzq}if(this.__reflectEffects)for(h=_.P(Object.values(this.__reflectEffects)),a=h.next();!a.done;a=h.next())for(a=_.P(a.value),Q=a.next();!Q.done;Q=a.next())Q.value.fn=L0c};
v.prototype._addEventListenerToNode=function(h,a,Q){h=$t(h);mK(h,a,Q)||D.prototype._addEventListenerToNode.call(this,h,a,Q)};
v.prototype._removeEventListenerFromNode=function(h,a,Q){h=$t(h);Ha(h,a,Q)||D.prototype._removeEventListenerFromNode.call(this,h,a,Q)};
v.prototype._propertiesChanged=function(h,a,Q){if(this.__dataToNotify&&this.__notifyEffects)for(var G=_.P(Object.keys(this.__dataToNotify)),x=G.next();!x.done;x=G.next()){x=x.value;var f=zYc(x);this.__notifyEffects[f]||delete this.__dataToNotify[x]}else this.__dataToNotify=null;D.prototype._propertiesChanged.call(this,h,a,Q)};
v.prototype.fire=function(h,a,Q){a=a===void 0?{}:a;var G;return _.F1($t((G=Q==null?void 0:Q.node)!=null?G:this),h,a,Q)};
v.prototype._ensureAttribute=function(h,a){var Q=$t(this);Q.hasAttribute(h)||Wr(Q,a,h)};
v.prototype.isLightDescendant=function(h){var a=$t(this);return $t(a)!==h&&_.ZW(a).contains(h)&&_.ZW(a).getRootNode()===_.ZW(h).getRootNode()};
return v});
_.y3.ready=function(){var D;((D=this.hostElement)!=null?D:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var v;((v=this.hostElement)!=null?v:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.iN._subscribeIronResize=function(D){var v;((v=D.hostElement)!=null?v:D).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.iN._unsubscribeIronResize=function(D){var v;((v=D.hostElement)!=null?v:D).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var IdL=[Array,Boolean,Date,Number,Object,String],Gz=function(D,v,h,a){this.polySiInfo=D;this.polySiParams=v;this.polySiContext=h;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;a||this instanceof HTMLElement&&(a=this);if(!a)throw Error("Og");this.allowedProps=v.allowedProps;this.hostElement=a;this.is=D.is;this.upgradeDisabled=!!v.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");D=new Set(v.reactiveSchemas.filter(function(Q){return Q.type!==
"observe"}).map(function(Q){return Q.propertyKey}));
this.signalProxy=new V1(this,void 0,{reactiveProps:D,reactivityMode:v.reactivityMode});this.__dataHasAccessor={};v=_.P(v.reactiveSchemas);for(D=v.next();!D.done;D=v.next())D=D.value,D.type==="signal"&&(this.__dataHasAccessor[D.propertyKey]=!0);this.upgradeDisabled||H2J(this)};
Gz.prototype.getExtraMethodsToForward=function(){return[]};
var H2J=function(D){D.polySiContext.didRegister||(D.registered(),D.polySiContext.didRegister=!0);D.polySiContext.finalizedTemplate||(D.polySiContext.finalizedTemplate={},D.polySiParams.templateGetter&&(D.polySiContext.finalizedTemplate.processedTemplate=uRc(D.polySiParams.templateGetter,D.polySiParams.is)));ygF(D);var v=D.hostElement;v.loggingStatus!=null||(v.loggingStatus={});v.loggingStatus.isInitializing=!0;_.LV(function(){return void D.created()});
v.loggingStatus.isInitializing=!1;D.isPolySiElementConnected&&wSt(D)},wSt=function(D){D.didCallReady||(_.LV(function(){return void D.ready()}),D.didCallReady=!0);
D.isAttached=!0;D.attached()};
_.V=Gz.prototype;_.V.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||wSt(this)};
_.V.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.V.attributeChangedCallback=function(D,v,h){if(this.upgradeDisabled)D==="disable-upgrade"&&h===null&&(this.upgradeDisabled=!1,H2J(this));else if(v!==h){var a=_.l4(D),Q=this.polySiContext.typesForSignals[a];if(Q&&(!this.reflecting||_.g("polysi_attribute_changed_serializing_killswitch"))){switch(Q){case Object:try{var G=JSON.parse(h)}catch(f){G=h}break;case Array:try{G=JSON.parse(h)}catch(f){G=null}break;case Date:G=isNaN(h)?String(h):Number(h);G=new Date(G);break;case Boolean:G=h!==null;break;case Number:G=
Number(h);break;default:G=h}this[a]=G}a=_.P(this.polySiParams.behaviors);for(Q=a.next();!Q.done;Q=a.next())G=void 0,(G=Q.value.attributeChanged)==null||G.call(this,D,v,h);var x;(x=this.attributeChanged)==null||x.call(this,D,v,h)}};
_.V.attributeChangedCallbackWrapper=function(D,v,h){this.attributeChangedCallback(D,v,h)};
_.V.setPropertiesFromInitialAttributeValues=function(){for(var D=0;D<this.hostElement.attributes.length;D++){var v=this.hostElement.attributes[D];(v.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(v.name))&&this.attributeChangedCallback(v.name,null,v.value)}};
_.V.created=function(){this.provide=this.polySiParams.provide;var D;(D=this.initializeInjection)==null||D.call(this);D=_.P(this.polySiParams.reactiveSchemas);for(var v=D.next();!v.done;v=D.next())v=v.value,v.type==="signal"&&(this.mutablePropNames.add(v.propertyKey),tV(this.signalProxy,v.propertyKey));Exc(this,this.polySiInfo,this.polySiParams.behaviors);D=_.P(this.polySiParams.reactiveSchemas);for(v=D.next();!v.done;v=D.next())v=v.value,v.type==="signal"&&v.value!==void 0&&(this.signalProxy.model[v.propertyKey]=
typeof v.value==="function"?v.value.call(this):v.value);if(this.polySiParams.signalProperties)for(D=_.P(this.polySiParams.signalProperties),v=D.next();!v.done;v=D.next()){v=v.value;var h=void 0;((h=this.__signalCache)==null?0:h.has(v))||(this.signalProxy.model[v]=void 0)}qrF||e54(this);ZN2(this);D=_.P(this.polySiParams.behaviors);for(v=D.next();!v.done;v=D.next())h=void 0,(h=v.value.created)==null||h.call(this);var a;(a=this.polySiInfo.created)==null||a.call(this)};
_.V.registered=function(){var D=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var v=Object.getPrototypeOf(this);v.addReactiveSchema=function(f){D.polySiParams.reactiveSchemas.push(f)};
for(var h=_.P(this.polySiParams.behaviors),a=h.next();!a.done;a=h.next()){var Q=void 0;(Q=a.value.beforeRegister)==null||Q.call(v)}var G;(G=this.polySiInfo.beforeRegister)==null||G.call(v);v.addReactiveSchema=kZO;h=_.P(this.polySiParams.behaviors);for(a=h.next();!a.done;a=h.next())Q=void 0,(Q=a.value.registered)==null||Q.call(v);var x;(x=this.polySiInfo.registered)==null||x.call(v)};
_.V.ready=function(){var D;(D=this.beforeReady)==null||D.call(this);qrF&&e54(this);var v;if(D=(v=this.polySiContext.finalizedTemplate)==null?void 0:v.processedTemplate){D=tKi(D.template,D.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:D.hasInsertionPoint,thisCtx:this});v=D.nodesById;D=D.root;var h=this.hostElement;var a=a===void 0?!1:a;h=(0,_.kU)(h);if(!h.attachShadow)throw Error("Gd");if(!h.shadowRoot||a)h.attachShadow({mode:"open",shadyUpgradeFragment:D}),h.shadowRoot.appendChild(D);
this.root=h.shadowRoot;this.$=v}nQF(this);a=_.P(this.polySiParams.behaviors);for(v=a.next();!v.done;v=a.next())D=void 0,(D=v.value.ready)==null||D.call(this);var Q;(Q=this.polySiInfo.ready)==null||Q.call(this)};
_.V.attached=function(){for(var D=_.P(this.polySiParams.behaviors),v=D.next();!v.done;v=D.next()){var h=void 0;(h=v.value.attached)==null||h.call(this)}var a;(a=this.polySiInfo.attached)==null||a.call(this)};
_.V.detached=function(){for(var D=_.P(this.polySiParams.behaviors),v=D.next();!v.done;v=D.next()){var h=void 0;(h=v.value.detached)==null||h.call(this)}var a;(a=this.polySiInfo.detached)==null||a.call(this)};
var ygF=function(D){for(var v=_.P(D.polySiParams.behaviors),h=v.next();!h.done;h=v.next())if(h=h.value,h.listeners)for(var a in h.listeners)W8c(D,D.hostElement,a,h.listeners[a]);if(D.polySiInfo.listeners)for(var Q in D.polySiInfo.listeners)W8c(D,D.hostElement,Q,D.polySiInfo.listeners[Q])},W8c=function(D,v,h,a,Q){D=r68(D,a,Q);
mK(v,h,D)||v.addEventListener(h,D);return D},e54=function(D){for(var v=_.P(D.polySiParams.reactiveSchemas),h=v.next();!h.done;h=v.next())h=h.value,h.type==="compute"||h.type==="computeWithMethod"?h9L(D.signalProxy,h,D):h.type==="redux"?Qb8(D.signalProxy,h,D.store):h.type==="signal"&&h.readOnly&&$0u(D.signalProxy,h)},nQF=function(D){for(var v=_.P(D.polySiParams.reactiveSchemas),h=v.next(),a={};!h.done;a={schema$jscomp$12:void 0},h=v.next())a.schema$jscomp$12=h.value,a.schema$jscomp$12.type==="notify"?
VKc(D.signalProxy,a.schema$jscomp$12,D.hostElement):a.schema$jscomp$12.type==="observe"?PRu(D.signalProxy,a.schema$jscomp$12,D):a.schema$jscomp$12.type==="reflect"&&D.signalProxy.effect(function(G){return function(){var x=D.signalProxy.getWithPath([G.schema$jscomp$12.propertyKey]);
D.reflecting=!0;Evo(D.hostElement,G.schema$jscomp$12.propertyKey,x,!0);D.reflecting=!1}}(a));
if(D.reflectedAttributes)for(v=_.P(Object.entries(D.reflectedAttributes)),a=v.next(),h={};!a.done;h={key$jscomp$932:void 0,value$jscomp$9830:void 0},a=v.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;h.key$jscomp$932=a;h.value$jscomp$9830=Q;D.signalProxy.effect(function(G){return function(){D.reflecting=!0;Evo(D.hostElement,G.key$jscomp$932,(0,G.value$jscomp$9830)(),!0);D.reflecting=!1}}(h))}};
_.V=Gz.prototype;_.V._setPendingProperty=function(D,v){this.set(D,v);return!1};
_.V._enableProperties=function(){};
_.V._setPendingPropertyOrPath=function(D,v){this.notifyPath(D,v);return!1};
_.V._addPropertyEffect=function(){};
_.V._stampTemplate=function(){throw Error("Pg");};
_.V.fire=function(D,v,h){v=v===void 0?{}:v;h=h===void 0?{}:h;var a,Q,G={bubbles:(a=h.bubbles)!=null?a:!0,cancelable:!!h.cancelable,composed:(Q=h.composed)!=null?Q:!0},x;return _.F1(STc((x=h.node)!=null?x:this.hostElement),D,v,G)};
_.V.get=function(D,v){var h=ic(D);return v?uNu(v,h):D==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(h)};
_.V.linkPaths=function(){};
_.V.listen=function(D,v,h){D=STc(D);this.boundListeners!=null||(this.boundListeners=new WeakMap);var a=this.boundListeners.get(D);a||(a={},this.boundListeners.set(D,a));var Q=v+h;a[Q]||(a[Q]=W8c(this,D,v,h))};
_.V.notifyPath=function(D,v){this.signalProxy.notifyPath(ic(D),arguments.length===2?{value:v}:void 0)};
_.V.canNotifyPath=function(D){return this.mutablePropNames.has(D)&&!bI2(this.signalProxy,D)};
_.V.notifySplices=function(D,v){this.signalProxy.notifySplices(ic(D),v)};
_.V.pop=function(D){var v=this.signalProxy;D=ic(D);var h=_.P(D);D=h.next().value;h=au(h);return tV(v,D).pop(h)};
_.V.push=function(D){var v=_.Kz.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[ic(D)].concat(_.j_(v)))};
_.V.set=function(D,v,h){if(h)throw Error("Qg");D==="hidden"?this.hostElement.hidden=!!v:this.signalProxy.setWithPath(ic(D),v)};
_.V.setProperties=function(D){D=_.P(Object.entries(D));for(var v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;this[v]=h}};
_.V.splice=function(D,v,h){var a=_.Kz.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[ic(D),v,h].concat(_.j_(a)))};
_.V.unlinkPaths=function(){};
_.V.unlisten=function(D,v,h){D=STc(D);if(this.boundListeners){var a=this.boundListeners.get(D);if(a){h=v+h;var Q=a[h];Q&&(Ha(D,v,Q)||D.removeEventListener(v,Q),delete a[h])}}};
_.V.unshift=function(D){var v=_.Kz.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[ic(D)].concat(_.j_(v)))};
_.GT.Object.defineProperties(Gz.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 bN2=[Array,Boolean,Date,Number,Object,String];var sjI=!1;var Pt=function(){var D=HTMLElement.apply(this,arguments)||this;D.restamp=!1;D.notifyDomChange=!1;D.JSC$13541_didCallConnected=!1;D.JSC$13541_renderDebouncer=null;D.disableTemplateUpdateSignalImpl=Vs()?void 0:_.Zq(!1,void 0,"Ofhkwb");var v;D.getDisableTemplateUpdate=(v=D.disableTemplateUpdateSignalImpl)==null?void 0:v[0];var h;D.setDisableTemplateUpdate=(h=D.disableTemplateUpdateSignalImpl)==null?void 0:h[1];return D};
_.J(Pt,HTMLElement);var O24=function(D){D.conditionSignalImpl!=null||(D.conditionSignalImpl=new GA(_.Zq(!1,void 0,"gE52Fb")));return D.conditionSignalImpl};
_.V=Pt.prototype;_.V.showHideChildren=function(D){Kot(this,D,this.if)};
_.V.attributeChangedCallback=function(D,v,h){if(this.JSC$13541_didCallConnected)throw Error("Ug`"+D);D==="notify-dom-change"?this.notifyDomChange=h!==null:D==="restamp"&&(this.restamp=h!==null)};
_.V.debounceRender=function(){this.JSC$13541_renderDebouncer=_.p6(this.JSC$13541_renderDebouncer,n9,this.JSC$13541_renderImpl.bind(this));_.lr(this.JSC$13541_renderDebouncer)};
_.V.disconnectedCallback=function(){var D=(0,_.kU)(this).parentNode;(!D||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in D&&!D.host)&&TXM(this)};
_.V.connectedCallback=function(){var D=this;this.JSC$13541_didCallConnected=!0;XS9?mzu():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.g("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){O24(D).getWithPath([]);D.debounceRender()})};
_.V.render=function(){_.cN()};
_.V.JSC$13541_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var D=this.if,v=!1;if(D){this.hasInstance()||(R5$(this),v=!0);a:{var h=(0,_.kU)(this).parentNode;if(this.hasInstance()){var a=this.instance.children;if((a==null?0:a.length)&&(0,_.kU)(this).previousSibling!==a[a.length-1])for(var Q=0;Q<a.length;Q++)(0,_.kU)(h).insertBefore(a[Q],this)}else{if(!h){h=!1;break a}i29(this,h)}h=!0}if(!h)return}else this.restamp&&TXM(this);Kot(this,!1,D);D&&!v&&R5$(this);Ag4&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.hasInstance=function(){return!!this.instance};
var i29=function(D,v){var h=D.parentSignalProxy;if(Vs()){var a=_.P(_.Zq(!0,void 0,"dkzufd"));var Q=a.next().value;a=a.next().value;h=D.parentSignalProxy}else{var G;var x=new V1((G=Wo9(D))!=null?G:{},function(C){var U=tV(D.parentSignalProxy,C).getChangeRecordSignal([]);C=_.Zq(void 0,void 0,"iG8Uwe");var L=new GA(C);x.effect(function(){if(D.getDisableTemplateUpdate&&!D.getDisableTemplateUpdate()){var Z=U();L.notifyPath(ic(Z.path),{value:Z.value})}});
return L});
D.parentSignalProxy.childSignalProxies.push(x);var f=h=x}h=tKi(D.templateInfo,D.templateInfo.nodeInfoList,h,{eventListenerHost:D.eventListenerHost,hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,enabledSignal:Vs()?Q:void 0,getModel:function(){return Wo9(D)}}).root;
D.instance={root:h,children:[],hidden:!1,signalProxy:f,getTemplateUpdatesEnabled:Q,setTemplateUpdatesEnabled:a};f=_.P(h.childNodes);for(Q=f.next();!Q.done;Q=f.next())D.instance.children.push(Q.value);(0,_.kU)(v).insertBefore(D.instance.root,D)},Wo9=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var v={},h;
for(h in D)D.hasOwnProperty(h)&&(v[h]=D[h]);return v}},TXM=function(D){if(D.instance){var v=D.instance.children;
if(v.length){var h=(0,_.kU)(v[0]).parentNode;if(h){h=(0,_.kU)(h);for(var a=0;a<v.length;a++)h.removeChild(v[a])}}Vs()?D.instance.setTemplateUpdatesEnabled(!1):D.instance.signalProxy.dispose();D.instance=void 0}},Kot=function(D,v,h){v=v||!h;
D.instance&&D.instance.hidden!==v&&(D.instance.hidden=v,jjq(v,D.instance.children))},R5$=function(D){if(Vs()){var v=D.instance;
v&&Hl(D.parentSignalProxy.owner,function(){return!v.getTemplateUpdatesEnabled()})&&v.setTemplateUpdatesEnabled(!0)}else D.setDisableTemplateUpdate(!1)};
_.GT.Object.defineProperties(Pt.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var D=this;return Hl(this.parentSignalProxy.owner,function(){return O24(D).getWithPath([])})},
set:function(D){D||(Vs()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));O24(this).setWithPath([],!!D)}}});
_.GT.Object.defineProperties(Pt,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Pt);var tcb=[],xk=function(){var D=HTMLElement.apply(this,arguments)||this;D.as="item";D.indexAs="index";D.itemsIndexAs="itemsIndex";D.targetFramerate=20;D.notifyDomChange=!1;D.isDetached=!1;D.JSC$13548_renderDebouncer=null;D.instances=[];D.chunkingId=null;D.chunkCount=null;D.shouldMeasureChunk=!1;D.shouldContinueChunking=!1;D.renderStartTime=null;D.JSC$13548_didCallConnected=!1;return D};
_.J(xk,HTMLElement);var rgt=function(D){D.itemSignalImpl!=null||(D.itemSignalImpl=new GA(_.Zq(tcb,void 0,"YBrqgf")));return D.itemSignalImpl},uPJ=function(D,v){Array.isArray(v)||(v=tcb);
rgt(D).setWithPath([],v)};
_.V=xk.prototype;_.V.showHideChildren=function(D){for(var v=_.P(this.instances),h=v.next();!h.done;h=v.next())jjq(D,h.value.children)};
_.V.notifyPath=function(D,v){D=ic(D);D[0]==="items"&&(D.length===1?uPJ(this,v):rgt(this).setWithPath(D.slice(1),v))};
_.V.canNotifyPath=function(D){return D==="items"};
_.V.attributeChangedCallback=function(D,v,h){if(this.JSC$13548_didCallConnected)throw Error("Vg`"+D);D==="as"?this.as=h:D==="index-as"?this.indexAs=h:D==="items-index-as"?this.itemsIndexAs=h:D==="initial-count"?this.initialCount=Number(h):D==="notify-dom-change"?this.notifyDomChange=h!==null:D==="target-framerate"&&(this.targetFramerate=Number(h))};
_.V.disconnectedCallback=function(){this.isDetached=!0;for(var D=0;D<this.instances.length;D++)Dop(this,D);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.V.connectedCallback=function(){var D=this,v=rgt(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Q=v(),G=ic(Q.path);if(G[0]===void 0||G[0]==="splices"||G[0]==="length")D.debounceRender();else{var x=G[0];if(x=D.instances[typeof x==="string"?Math.floor(Number(x)):x])G=[D.as].concat(_.j_(G.slice(1))),x.signalProxy.notifyPath(G,Q)}});
this.JSC$13548_didCallConnected=!0;XS9?mzu():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var h=(0,_.kU)((0,_.kU)(this).parentNode),a=0;a<this.instances.length;a++)h.insertBefore(this.instances[a].root,this);this.chunkingId&&this.render()}};
_.V.debounceRender=function(){this.JSC$13548_renderDebouncer=_.p6(this.JSC$13548_renderDebouncer,n9,this.JSC$13548_renderImpl.bind(this));_.lr(this.JSC$13548_renderDebouncer)};
_.V.render=function(){this.debounceRender();_.cN()};
_.V.JSC$13548_renderImpl=function(){var D=this;if(!this.parentSignalProxy.isDisposed){var v=this.items,h=vDJ(this,v.length);h2R(this,v,h);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){D.chunkingId=null;if(D.shouldMeasureChunk){var a=performance.now()-D.renderStartTime;D.chunkCount=Math.round(Math.ceil(1E3/D.targetFramerate)/a*D.chunkCount)||1}D.shouldContinueChunking&&D.debounceRender()}));
Ag4&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var vDJ=function(D,v){var h=v,a=D.instances.length;if(D.initialCount){if(D.chunkCount){var Q=Math.min(Math.max(v-a,0),D.chunkCount);h=Math.min(a+Q,v)}else h=Math.min(v,D.initialCount),Q=Math.max(h-a,0),D.chunkCount=Q||1;D.shouldMeasureChunk=Q===D.chunkCount;D.shouldContinueChunking=h<v;D.renderStartTime=performance.now()}return h},h2R=function(D,v,h){for(var a=0;a<h;a++){var Q=D.instances[a],G=v[a];
Q?(Q.signalProxy.setWithPath([D.as],G),Q.signalProxy.setWithPath([D.indexAs],a)):a_$(D,G,a)}for(v=D.instances.length-1;v>=a;v--)h=D,Q=v,Dop(h,Q),_.P(h.instances.splice(Q,1)).next().value.signalProxy.dispose()},Dop=function(D,v){D=D.instances[v];
v=(0,_.kU)(D.root);for(var h=0;h<D.children.length;h++)v.appendChild(D.children[h])},a_$=function(D,v,h){var a={};
v=Object.assign({},$o4(D),(a[D.as]=v,a[D.indexAs]=h,a[D.itemsIndexAs]=h,a));var Q=new V1(v,function(x){if(x!==D.as&&x!==D.indexAs){if(x===D.itemsIndexAs)return tV(Q,D.indexAs);var f=tV(D.parentSignalProxy,x).getChangeRecordSignal([]);x=_.Zq(void 0,void 0,"T21Pqc");var C=new GA(x);Q.effect(function(){var U=f();C.notifyPath(ic(U.path),{value:U.value})});
return C}});
D.parentSignalProxy.childSignalProxies.push(Q);a=tKi(D.templateInfo,D.templateInfo.nodeInfoList,Q,{eventListenerHost:D.eventListenerHost,getModel:function(){var x={};return Object.assign({},$o4(D),(x[D.as]=Q.model[D.as],x[D.indexAs]=Q.model[D.indexAs],x[D.itemsIndexAs]=Q.model[D.indexAs],x))},
hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,methodInvocationRequirement:b2b,enabledSignal:D.stampingEnabled}).root;v={root:a,children:[],signalProxy:Q};a=_.P(a.childNodes);for(var G=a.next();!G.done;G=a.next())v.children.push(G.value);a=(a=D.instances[h+1])?a.children[0]:D;(0,_.kU)((0,_.kU)(D).parentNode).insertBefore(v.root,a);D.instances[h]=v},$o4=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var v={},h;
for(h in D)D.hasOwnProperty(h)&&(v[h]=D[h]);return v}};
xk.prototype.itemForElement=function(D){var v=this,h=this.instances.find(function(a){return a.children.includes(D)});
if(h)return Hl(this.parentSignalProxy.owner,function(){return h.signalProxy.getWithPath([v.as])})};
xk.prototype.indexForElement=function(D){var v=this.instances.findIndex(function(h){return h.children.includes(D)});
return v>=0?v:void 0};
_.GT.Object.defineProperties(xk.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var D=this;return Hl(this.parentSignalProxy.owner,function(){return rgt(D).getWithPath([])})},
set:function(D){uPJ(this,D)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.GT.Object.defineProperties(xk,{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",xk);var QDR,Gpy;_.Mv=new _.Uj("STATE_STORE_TOKEN");QDR=new _.Uj("SELECT_TOKEN");Gpy=new _.Uj("DISPATCH_TOKEN");var ON2={getSelectFn:function(){var D;return(D=_.xd().resolve(_.PV(QDR)))!=null?D:HNA},
getDispatchFn:function(){var D;return(D=_.xd().resolve(_.PV(Gpy)))!=null?D:_.P8().dispatch.bind(_.P8())},
getAppStore:function(){return _.xd().resolve(_.Mv)}},y0f,nxr=!1;var iNq,Jjp={traceAllComponents:_.g("web_tracing_all_components"),exportToCsi:_.g("web_tracing_export_to_csi"),exportBreadcrumbs:_.g("web_enable_tracing"),bufferSize:_.oZ("web_max_tracing_events"),enabledSpansArray:_.zi("web_tracing_enabled_spans"),exportToDevTools:_.g("web_tracing_export_to_devtools")};iNq=new p$t;var D52=function(){};var tsi=void 0;var VUR=function(){};
VUR.prototype.hasAttribute=function(D){if(D==="dir")return!1;if(D==="disable-upgrade"){var v,h;return(h=(v=this.hostElement)==null?void 0:v.hasAttribute("disable-upgrade"))!=null?h:!1}throw Error("Wg`"+D);};
VUR.prototype.attributeChangedCallbackWrapper=function(D,v,h){if(D==="disable-upgrade"&&this.__isUpgradeDisabled&&h===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var a;((a=this.hostElement)!=null?a:this).isConnected&&this.connectedCallback()}else v===h||this.__isReflecting||this.attributeChangedCallback(D,v,h)};
VUR.prototype.getExtraMethodsToForward=function(){for(var D=this,v=[],h=_.P(PJM),a=h.next(),Q={};!a.done;Q={tagName$jscomp$54:void 0,name$jscomp$598:void 0},a=h.next())Q.name$jscomp$598=a.value,a=void 0,Q.name$jscomp$598==="_setPendingProperty"?(Q.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),a=function(G){return function(x,f,C){jB(G.tagName$jscomp$54,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return D._setPendingProperty(x,f,C)}}(Q)):a=function(G){return function(){return D[G.name$jscomp$598].apply(D,
_.j_(_.Kz.apply(0,arguments)))}}(Q),v.push([Q.name$jscomp$598,
a]);return v};
for(var aIA=m5$(sC9((0,_.HN)(VUR))),Vc4=["disabled","disable-upgrade"],xoR=(0,_.HN)(function(){}),MU1=new Set(Object.getOwnPropertyNames(xoR.prototype)),Cw2=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.j_(MU1))),x5c=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),PJM=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),f_s=new Set([].concat(_.j_(x5c),_.j_(PJM),_.j_(MU1))),CJb=_.P(f_s),oDy=CJb.next();!oDy.done;oDy=CJb.next())B6f.add(oDy.value);var fI7={created:function(){ZN2(this);this.initializeInjection()}};var gQ8=!1,zz=window.ShadyDOM,BX7=["appendChild","insertBefore","removeChild","replaceChild"],Yrc=[Node];zz&&Yrc.push(zz.Wrapper);var jCf,sCf,yg8={};var U_,Lb=new Set;var i2f=new Set("context didCallReady is info params signalProxy".split(" ")),tcc="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),rg2="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var FC1=SC({entities:mBu}),z2M=new Qy(FC1);var Uo1=function(){return _.XS.apply(this,arguments)||this};
_.J(Uo1,_.XS);_.GT.Object.defineProperties(Uo1.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return z2M}}});
_.e([_.AV()],Uo1);_.fe=[$k.prototype,Uo1.prototype];_.Ce={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var D=this,v={};setTimeout(function(){var h;return _.F1((h=D.hostElement)!=null?h:D,"yt-live-chat-add-tooltip-target",v)},0);
this.handler_=v.handler},
detached:function(){if(this.handler_){var D;this.handler_.removeElementFromSupportingTooltips((D=this.hostElement)!=null?D:this)}this.handler_=null}}};_.JD=new _.Uj("ICON_MANAGER_TOKEN");var LCF=[48,20,18,16,15,13,12],I_8=new Map,FCr=new Set,f_q=new Set,oDu=new Set,MUr=new Set,CJc=new Set,Uor=new Promise(function(D){var v=!1,h=!1,a=!1,Q=[],G=function(x){if("detail"in x)if(x=x.detail,x.name==="yt-icons")z2i(x),v=!0;else if(x.name==="yt-sys-icons")z2i(x),h=!0;else{var f;((f=x.name)==null?0:f.includes("yt-sys-icons"))&&x.size!==24&&(z2i(x,!0),Q.push(x.size),Q.length===LCF.length&&(a=!0))}v&&h&&a&&(window.removeEventListener("iron-iconset-added",G),D())};
window.addEventListener("iron-iconset-added",G)}),Zdc=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"]]);_.oY={};_.oY.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.$V,computeHref_:function(D,v){v=v===void 0?!1:v;if(!D||D.commandExecutorCommand)return null;var h=Pj2(D,v);return v||h!==null?h?_.g("enable_polymer_resin")?_.nz(h).toString():h:null:(_.yR(new _.XH("computeHref was null",this.is,D)),null)},
computeOptionalHref_:function(D){return this.computeHref_(D,!0)},
computeNofollow_:function(D){return D?ueo(D)?"nofollow":null:null},
computeIcon_:function(D){return D&&D.iconType?_.SQ(D.iconType):""},
resolveCommand:function(D,v,h){v=v===void 0?{}:v;return _.lP(D,this.hostElement,v,h===void 0?!1:h)}};var ED$,Fw;_.ZdJ={};ED$=null;
Fw={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_=zbc(this.viewroot));_.hD(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var D=this;this.unobserve_();if(_.g("kevlar_vimio_use_shared_monitor"))pe2(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 v=[];this.visibilityOptionVisible_&&v.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&v.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&v.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=v}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){gDq(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var D=_.OV(this.parentNode,function(h){var a,Q=(a=h.polymerController)!=null?a:h;return!!Q.getVisibilityObserverForChild&&Q.getVisibilityObserverForChild()},!0);
if(D){var v;this.localVisibilityObserver_=((v=D.polymerController)!=null?v:D).getVisibilityObserverForChild()}else ED$||(ED$=zbc()),this.localVisibilityObserver_=ED$;return this.localVisibilityObserver_},visibilityCallback:function(D){D?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.g("kevlar_use_vimio_behavior")||(Fw={});Fw&&!_.g("kevlar_use_vimio_behavior")&&(delete Fw.attached,delete Fw.detached);_.ZdJ.YtVisibilityObserverBehavior=[Fw];var I_F={};I_F.YtVisualElementBehavior=[_.ZdJ.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.g("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.g("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var D=this.getScreenLayer&&this.getScreenLayer(),v=this.getVisibilityLogger();v&&v.reportShown(this,void 0,D)}},
onHidden:function(){if(_.g("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.g("kevlar_vimio_use_shared_monitor")){var D=this.getScreenLayer&&this.getScreenLayer(),v=this.getVisibilityLogger();v&&v.reportHidden(this,void 0,D)}},
getVisibilityLogger:function(){return _.g("kevlar_use_vimio_behavior")?_.Yt():null},
shouldSkipLogging:function(){if(_.eA("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var D=this.getParentRenderer&&this.getParentRenderer();if(!D)return!1;var v,h=(v=D.polymerController)!=null?v:D;if(!h.data)return!1;D=this.data.trackingParams;D=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:D;var a;v=(a=h.data)==null?void 0:a.trackingParams;var Q,G;v=((Q=h.data)==null?0:Q.loggingDirectives)?(G=h.data)==null?void 0:G.loggingDirectives.trackingParams:v;return D&&v&&D===
v}}];var Yhr=new Map,jQ;var Q7L=function(D){this.layer=D},Uk=function(D){return D.layer!==void 0?D.layer:D.parent?Uk(D.parent):D.layer=0};var bdO;_.t={};bdO=0;_.t.YtRendererBehavior=[_.oY.YtComponentBehavior,I_F.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_:_.g("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var D,v;(v=(D=this.monitorScrollElement)!=null?D:this.hostElement)==null||v.removeEventListener("scroll",_.pZ(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();l_A(this.hostElement);XHF(_.tU(),this.hostElement);Q_.delete(this.hostElement)},
registerRenderer:function(D){var v;((v=D.polymerController)!=null?v:D).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(D),this.markDirty())},
unregisterRenderer_:function(D){this.useVimio_||(this.childCache_.delete(D),this.markDirty())},
attached:function(){var D=this,v=this.getParentRenderer();if(v){var h,a,Q;(a=(h=(Q=v.polymerController)!=null?Q:v).registerRenderer)==null||a.call(h,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var G,x;(x=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||x.addEventListener("scroll",_.pZ(this,this.onScroll))}_.HK.addJob(function(){BV2(D.hostElement)},8);
h=new Q7L(this.screenLayer||void 0);(v=Q_.get(v))&&v.layerNode&&(h.parent=v.layerNode);v={};xBf(this.hostElement,(v.isRenderer=!0,v.layerNode=h,v[G1I]=this.data,v))},
getParentRenderer:function(){for(var D=this.hostElement.parentNode,v,h;D&&((v=Q_.get(D))==null||!v.isRenderer)&&!((h=D.polymerController)!=null?h:D).isRenderer_;)D=D.parentNode||D.host;return D},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.g("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.nJ("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.g("debug_web_ve_data")&&this.data.trackingParams){var D="";try{D=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(h){_.mV(h)}if(D){var v=pfo(D,1);v!==void 0&&(this.hostElement.dataset.veIndex=String(v));D=pfo(D,2);
D!==void 0&&(this.hostElement.dataset.ve=String(D))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.g("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.d4(this.data.loggingDirectives.trackingParams)),this.visualElement=_.B8(_.c8(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var D=this.data.targetId;_.qTR(_.tU(),D,this.hostElement)}else XHF(_.tU(),this.hostElement)},
onScroll:function(){var D=Date.now();D-this.lastHandledScroll_<50||(this.lastHandledScroll_=D,this.markDirty())},
markDirty:function(){_.g("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():dou(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var D=this.getParentRenderer();if(D&&(D=Q_.get(D))&&D.layerNode)return Uk(D.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.j_(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++)this.sendImpression(this.data.impressionEndpoints[D]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(D){D.clickTrackingParams&&delete D.clickTrackingParams;var v,h;(D==null?0:(v=D.commandMetadata)==null?0:(h=v.webCommandMetadata)==null?0:h.sendPost)?_.L1(this.hostElement,[D,{impression:!0}]):_.ZD(this.hostElement,[D],this.hostElement)},
logExplicitClick:function(D){var v=_.wd(this.getScreenLayer());if(v){var h,a=(h=D.polymerController)!=null?h:D;D=a.visualElement;a=a.trackingParams||a.clickTrackingParams;!D&&a&&(D=_.d4(a));D&&_.hA(v,D)}}}];var gDs={},zA=function(){return _.XS.apply(this,arguments)||this};
_.J(zA,_.XS);zA.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
zA.prototype.onPdgItemBehaviorClick=zA.prototype.onPdgItemBehaviorClick;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zA.prototype,"data",void 0);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],zA.prototype,"onPdgItemBehaviorClick",null);_.e([_.AV()],zA);gDs.YtPdgLiveChatItemBehavior=[zA.prototype,_.t.YtRendererBehavior];var kp1;var Sht;_.U$={};_.U$.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Le=function(){var D=PT.apply(this,arguments)||this;D.switchTemplateAtRegistration=!1;return D};
_.J(Le,PT);Le.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Hdq(this),_.oxf(this,"doRender"),this.doRender())};
Le.prototype.debounceRender=function(){this.templatingFn&&_.aq(this,"doRender",this.doRender)};
Le.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.mV(Error("fh"))};
Le.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.e([WTf()],Le);var Jvm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Zz={},nDO=(Zz[1]={filterString:null,isUnwrappable:null,unwrap:null},Zz[2]={filterString:function(D,v,h){return ZY(h)},
isUnwrappable:function(D){return D instanceof iH},
unwrap:function(D){return r0(D)}},Zz[3]={filterString:function(D,v,h){return Jvm.test(h)?h:eR.toString()},
isUnwrappable:function(D){return sQ(D)},
unwrap:function(D){return _.mM(D)}},Zz[4]={filterString:function(){return eR.toString()},
isUnwrappable:function(D){return D instanceof cd},
unwrap:function(D){return _.qf(D).toString()}},Zz[5]={filterString:function(D,v,h){return h},
isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D.toString()}},Zz[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(D){return D instanceof _.a9},
unwrap:function(D){return oIq(D)}},Zz[8]={filterString:function(D,v,h){h=String(h).toLowerCase();
return pai(D,v,h)?h:"zClosurez"},
isUnwrappable:null,unwrap:null},Zz[10]={filterString:null,isUnwrappable:null,unwrap:null},Zz);VX[nV["default"]]=KC4;var TVf=[];(function(){var D=at;at=function(v){D==null||D(v);ys(function(){for(var h=0;h<v.length;h++)R28(v[h])})}})();var pet=function(){var D=_.XS.apply(this,arguments)||this;D.hasUnmounted=!1;return D};
_.J(pet,_.XS);_.V=pet.prototype;_.V.beforeRegister=function(){var D=this.doIdomRender;this.templatingFn?_.mV(Error("eh")):(this.templatingFn=D,this.switchTemplateAtRegistration=!0,e2q(this))};
_.V.attached=function(){};
_.V.detached=function(){R28(this.hostElement)};
_.V.renderIdom=function(){throw Error("hh");};
_.V.doIdomRender=function(){var D=this;Ijc(this.hostElement,function(){D.renderIdom()})};
_.e([_.AV()],pet);var l_m=[Le.prototype,pet.prototype];var NVJ,Yh1=function(){return NVJ!==void 0?NVJ:NVJ=document.createElement("template")};
document.head.appendChild(Yh1().content);var BVt;var cv9,Xe$=function(){return cv9!==void 0?cv9:cv9=document.createElement("template")};
document.head.appendChild(Xe$().content);var Av$;var qhR=document.head,bd$=qhR.appendChild,doy;if(Av$===void 0){var jDp=document.createElement("template");_.p(jDp,"\x3c!--css-build:shady--\x3e");jDp.content.insertBefore(Xe$().content.cloneNode(!0),jDp.content.firstChild);Av$=jDp}doy=Av$;bd$.call(qhR,doy.content);var sDb,mo4=function(){return sDb!==void 0?sDb:sDb=document.createElement("template")};
document.head.appendChild(mo4().content);var Hds;var yvR=document.head,wet=yvR.appendChild,e2s;if(Hds===void 0){var nD$=document.createElement("template");_.p(nD$,"\x3c!--css-build:shady--\x3e");nD$.content.insertBefore(mo4().content.cloneNode(!0),nD$.content.firstChild);Hds=nD$}e2s=Hds;wet.call(yvR,e2s.content);var OdJ=document.head,KCJ=OdJ.appendChild,TV9;if(BVt===void 0){var R2F=document.createElement("template");_.p(R2F,"\x3c!--css-build:shady--\x3e");R2F.content.insertBefore(Yh1().content.cloneNode(!0),R2F.content.firstChild);BVt=R2F}TV9=BVt;KCJ.call(OdJ,TV9.content);var id4,WCJ=function(){return id4!==void 0?id4:id4=document.createElement("template")};
document.head.appendChild(WCJ().content);var tU9;_.$5=new _.Uj("DARK_THEME_TOKEN");var jcc=new _.z0("accessibilityProperties");var dJ2=new _.z0("layoutProperties");var scO=new _.z0("imageType");var rv9={};if("ytAttributedStringLinkHoverColor"in rv9)throw Error("kh`ytAttributedStringLinkHoverColor");(function(D,v){rv9[D]="value"in v&&"unit"in v?DJ8(D,v):function(h){try{return v(h)}catch(a){throw Error("ih`"+D+"`"+a.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var uA4=function(D){var v=this;this.holdTime=D===void 0?500:D;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(h){var a=new CustomEvent("LONG_PRESS"),Q;(Q=h.changedTouches[0].target)==null||Q.dispatchEvent(a)};
this.ontouchstart=function(h){v.longPressTimeout=_.LK(_.HK,function(){v.onlongpress(h);v.longPressOccurred=!0},v.holdTime)};
this.ontouchmove=function(){_.HK.cancelJob(v.longPressTimeout);v.longPressTimeout=NaN;v.longPressOccurred=!1;v.moveOccurred=!0};
this.ontouchend=function(h){if(v.longPressTimeout&&!v.longPressOccurred&&!v.moveOccurred){var a;(a=h.changedTouches[0].target)==null||a.dispatchEvent(new Event("click"))}_.HK.cancelJob(v.longPressTimeout);v.longPressTimeout=NaN;v.longPressOccurred=!1;v.moveOccurred=!1}};var Zku=function(D,v){uA4.call(this,v);var h=this;this.callback=D;this.onlongpress=function(a){var Q;(Q=h.callback)==null||Q.call(h,a)}};
_.J(Zku,uA4);var Erc=function(D,v){var h=Object.assign({},v);D=_.P(new Map([["ontouchstart",D.ontouchstart],["ontouchend",D.ontouchend],["ontouchmove",D.ontouchmove]]));for(var a=D.next(),Q={};!a.done;Q={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},a=D.next()){var G=_.P(a.value);a=G.next().value;G=G.next().value;Q.eventName$jscomp$101=a;Q.eventHandler$jscomp$1=G;v[Q.eventName$jscomp$101]=function(x){return function(f){var C;(C=h[x.eventName$jscomp$101])==null||C.call(h,f);(0,x.eventHandler$jscomp$1)(f)}}(Q)}};_.fx=new _.Uj("COMMAND_HANDLER_TOKEN");var h1q=new _.z0("parallelCommand");var Qcu=new _.z0("performOnceCommand");var $Jc=new _.z0("serialCommand");var GEL=void 0;var DJF=function(){this.data=[];this.consumer=null};
DJF.prototype.push=function(D){this.consumer?this.consumer(D):this.data.push(D)};var hm={};_.Zq(hm,void 0,"sgPmTd");_.Zq(null,void 0,"jypsq");_.Zq(null,void 0,"mWiOof");var Cf4=new DJF;var Fzc=[aJF,$14,Q4J,Vt1,Gy4,hM1,PsM,x1t];var quO=new _.z0("bracketTextDecorator");var hd=new _.z0("highlightTextDecorator");_.Gh=new _.Uj("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Yuf=function(){},vrR;
(vrR=window.requestIdleCallback)==null||vrR.bind(window);var coA={calledOnce:!1,state:"visible"},BnL={calledOnce:!1,state:"hidden"};var h1s=new _.Uj("ICON_WIZ_COMPONENT_TOKEN");_.Y5=_.H(function(D){var v=D.icon;var h=D.active;var a=D.className;var Q=D.style;var G=D.dataSelected;var x=D.dataDisabled;var f=D.role;var C=D.animateIcon;var U=D.themeOverride;var L=D.ariaHidden;var Z=D.ariaExpanded;var E=D.ariaLabel;var I=D.tabindex;var S=D.id;var B=D.size;var A=D.iconFilter;var d=D.onKeydown;return _.F(_.z,{cond:v,then:function(){var b=_.xd().resolve(h1s);return _.F(b,{icon:v,dataSelected:G,dataDisabled:x,animateIcon:C,themeOverride:U,ariaExpanded:Z,tabindex:I,id:S,active:h,size:B,
role:f,className:a,ariaHidden:L,ariaLabel:E,style:function(){return Q!=null&&Q()||B==null||!B()?Q==null?void 0:Q():"width: "+(B==null?void 0:B())+"px;height: "+((B==null?void 0:B())+"px;")},
iconFilter:A,onKeydown:d})}})},"j");
_.Y5.idomCompat={callbacks:{onKeydown:!0}};var Dac=window.devicePixelRatio||1;var $ac=new Map([["yt_outline_bag_black_24","bag"]]);var E$=function(D){var v=this;this.margin=.1;this.whenInViewportWithMargin=D;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){v.requestScan()});
window.addEventListener("touchend",function(){v.requestScan()});
window.addEventListener("updateui",function(){v.requestScan()});
var h=new _.tn((0,_.qp)(this.requestScan,this),100);window.addEventListener("scroll",function(){h.fire()},!0);
window.addEventListener("resize",(0,_.qp)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){v.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.qp)(this.requestScan,this))};
E$.prototype.observe=function(D){this.observationTargets.includes(D)||this.observationTargets.push(D)};
E$.prototype.unobserve=function(D){this.observationTargets=this.observationTargets.filter(function(v){return v!==D})};
E$.prototype.requestScan=function(){var D=this;this.scanRequested||(ys(function(){aTp(D)}),this.scanRequested=!0)};
var aTp=function(D){var v=(1+D.margin)*(document.documentElement.clientHeight||window.innerHeight);D.observationTargets=D.observationTargets.filter(function(h){var a=h.getBoundingClientRect();(a=v>a.top&&!!a.height)&&D.whenInViewportWithMargin(h);return!a&&h.parentNode});
D.scanRequested=!1};
E$.prototype.disconnect=function(){this.observationTargets=[]};var $Jb,GEp;$Jb=_.P(_.Zq(xac(),void 0,"O3X2wd"));_.Qcy=$Jb.next().value;GEp=$Jb.next().value;window.addEventListener("resize",function(){GEp(xac())});var V41={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},P3J=void 0,xJy=window.innerWidth,M4R=window.innerHeight;window.addEventListener("resize",function(){P3J=void 0});var fT4;if("IntersectionObserver"in window)fT4=C5c();else{if(P3J===void 0){var C3J;C3J="matchMedia"in window?window.matchMedia(V41.landscape+","+V41.portrait).matches:void 0;P3J=C3J!==void 0?C3J:xJy>=930&&M4R>=550||xJy>=550&&M4R>=930}fT4=P3J?{observe:function(D){ys(function(){var v;(v=D.onViewportEntered)==null||v.call(D)})},
unobserve:function(){}}:new E$(function(D){ys(function(){var v;
(v=D.onViewportEntered)==null||v.call(D)})})}var MVf=fT4;var orJ=_.H(function(D){var v=!1,h=_.va("img",function(a){_.dq(function(){v=!0;a.onload=null})});
_.bW(function(){var a,Q=(a=D.data)==null?void 0:a.call(D),G,x=(G=D.getSrc)==null?void 0:G.call(D).cb,f;a=(f=D.config)==null?void 0:f.call(D);if(f=h.value)if(G=function(U,L){if(!v)return x?x(U,L):U},zIr(f,a),_.g("web_image_dont_reload_same_src")&&FQu(f,Q,G))_.g("web_image_dont_reload_same_src_simulate_load")&&f.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var C;oBc(f,Q||null,G,a,(C=D.lazy)==null?void 0:C.call(D))}},"zS0jKb");
return _.F("img",{el:h})},"l");
orJ.idomCompat=!0;_.PX=_.H(function(D){var v=function(){var h,a=D.data(),Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL,kL,Z4,S2,s8,Xf,dJ,R4;var sF={contentMode:(Q=D.contentMode)==null?void 0:Q.call(D),loadedClass:(G=D.loadedClass)==null?void 0:G.call(D),isPreloaded:(x=D.isPreloaded)==null?void 0:x.call(D),notifyOnLoaded:(f=D.notifyOnLoaded)==null?void 0:f.call(D),notifyOnUnloaded:(C=D.notifyOnUnloaded)==null?void 0:C.call(D),preferredThumbnail:(U=D.preferredThumbnail)==null?void 0:U.call(D),preserveHeight:(L=D.preserveHeight)==
null?void 0:L.call(D),preserveWidth:(Z=D.preserveWidth)==null?void 0:Z.call(D),objectPosition:(E=D.objectPosition)==null?void 0:E.call(D),targetWidth:(I=D.targetWidth)==null?void 0:I.call(D),targetHeight:(S=D.targetHeight)==null?void 0:S.call(D),shouldShowPlaceholder:(B=D.shouldShowPlaceholder)==null?void 0:B.call(D),useWidth:(A=D.useWidth)==null?void 0:A.call(D),isToggled:(d=D.isToggled)==null?void 0:d.call(D),alt:(b=D.alt)==null?void 0:b.call(D),className:(W=D.className)==null?void 0:W.call(D),
onerror:D.onerror,onload:D.onload,style$:((K=D.style$)==null?void 0:K.call(D))||((O=D.style)==null?void 0:O.call(D)),color:(R=D.color)==null?void 0:R.call(D),width:(vA=D.width)==null?void 0:vA.call(D),height:(f7=D.height)==null?void 0:f7.call(D),"aria-hidden$":(dJ=(xL=D["aria-hidden$"])==null?void 0:xL.call(D))!=null?dJ:(kL=D.ariaHidden)==null?void 0:kL.call(D),draggable:(Z4=D.draggable)==null?void 0:Z4.call(D),"data-disabled$":(R4=(S2=D["data-disabled$"])==null?void 0:S2.call(D))!=null?R4:(s8=D.dataDisabled)==
null?void 0:s8.call(D),size:(Xf=D.size)==null?void 0:Xf.call(D)};return ZYo(a,sF,(h=D.hideOn404)==null?void 0:h.call(D))};
return _.F(_.A$,null,_.F(_.Bv,{when:function(){var h;return((h=v())==null?void 0:h.type)==="image"}},function(){return _.F(orJ,{data:function(){return v().image},
getSrc:{cb:function(h,a){var Q=v().image.sources,G=v().config.isPreloaded,x=v().config.useWidth,f=v().config.targetWidth,C=v().config.targetHeight,U=v().config.preferredThumbnail;return _.vBL(a,Q,G,x,f,C,U)||""}},
config:function(){var h=v().config,a;for(a in h)h[a]===void 0&&delete h[a];return h},
lazy:D.renderLazy})}),_.F(_.Bv,{when:function(){var h;
return((h=v())==null?void 0:h.type)==="icon"}},function(){return _.F(_.Y5,{icon:function(){return v().iconName},
role:function(){return v().config.role},
className:function(){return v().config.className},
style:function(){return v().config.style$+";width: "+(v().config.width+"px;height: ")+(v().config.height+"px;color: ")+(v().config.color+";")},
ariaLabel:function(){return v().config["aria-label$"]},
ariaHidden:function(){return v().config["aria-hidden$"]},
dataDisabled:function(){return v().config["data-disabled$"]},
active:function(){return v().config.isToggled},
size:function(){return v().config.size}})}))},"m");
_.PX.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var FzJ=function(D){return function(v){return _.F(sic,null,function(){var h=v.data(),a=_.sY(v.config);return _.F(QX,null,function(){return void D(h,a)})})}}(SoI),gBc=_.H(function(D){var v=function(a){var Q,G=_.ML(function(E){Q=jM(function(){for(var I=_.P(L()),S=I.next();!S.done;S=I.next()){S=Juq(S.value);
S=typeof S==="string"?document.createTextNode(S):S;if(!(S instanceof Node)){I=new _.XH("Part is not a node",S,typeof S);_.mV(I);break}E.appendChild(S)}})}),x=f_(function(){return Hko(a())},{isEqual:IG8}),f=_.MK(D.config),C=function(){var E,I=x();
return!((E=f())==null||!E.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0)},U=f_(f,{isEqual:lG8}),L=function(){var E=mJu(x(),U());
wgi(E,U());return x().content?R1A(x().content,E).parts:[]},Z=!0;
_.bW(function(){x();U();if(Z)Z=!1;else{var E=L();Promise.resolve().then(function(){var I=G.value;if(I){I.innerText="";var S;(S=Q)==null||S();Q=_.by(I,function(){return _.F(pEo,{parts:E})},"n")}})}},"YlhjWd");
return _.F("span",{el:G,class:function(){return x()&&Jo4(x(),f())},
dir:function(){var E;return((E=f())==null?0:E.userInput)?"auto":void 0},
"aria-label":function(){var E;return C()?(E=f())==null?void 0:E.ariaLabel:void 0},
role:function(){return C()?"text":void 0}})},h;
return((h=D.config)==null?0:h.renderedFromFormattedString)?v(D.text):_.F(_.z,{cond:D.text,then:v})},"p");
gBc.idomCompat=!0;_.IY=_.H(function(D){var v=_.MK(D.text),h=Nbu(D);D.renderedFromFormattedString!==void 0&&(h.renderedFromFormattedString=!0);return _.g("attr_string_reactive")?_.F(gBc,{text:v,config:h}):_.F(_.z,{cond:function(){var a;return v()&&((a=Hko(v()))==null?void 0:a.content)},
then:function(){return _.F(FzJ,{data:D.text,config:h})},
debugInstance:"Apcuac"})},"q");
_.IY.idomCompat=!0;var bYc="";HmI({beforeVisit:function(D){D.type.TAG_NAME&&(bYc=D.type.TAG_NAME)},
afterRender:function(D,v){var h;bYc=(h=v==null?void 0:v.type)!=null?h:""},
didPatch:function(){bYc=""}});var Yoo=function(D,v,h){v=v===void 0?"unknown":v;h=h===void 0?{}:h;_.XH.call(this,D+" ("+v+")",Object.assign({},{name:"YtWcwError",tagName:v},h));Object.setPrototypeOf(this,this.constructor.prototype)};
_.J(Yoo,_.XH);_.FZ=new WeakMap;_.o3=!1;var qoL,da7,AuI;_.gj=Symbol("mh");_.C_=Symbol("nh");qoL=Symbol("oh");da7=new Set(Object.getOwnPropertyNames(Element.prototype));AuI=Symbol("ph");var z14=_.H(function(D){return _.F("yt-attributed-string",{"aria-label":D.ariaLabel,hidden:D.hidden,id:D.id,class:D.className,"force-default-style":D.forceDefaultStyle},_.F(_.IY,{text:D.data,ariaLabel:D.ariaLabel,ellipsisTruncate:D.ellipsisTruncate,isOverlay:D.isOverlay,linkInheritColor:D.linkInheritColor,noPreWrap:D.noPreWrap,noWrap:D.noWrap,userInput:D.userInput,noEndpoints:D.noEndpoints,headerRuns:D.headerRuns,isHeadline:D.isHeadline}))},"r");
_.g("web_wiz_attributed_string")&&_.zh(z14,"yt-attributed-string",{props:{ariaHidden:_.gj,ariaLabel:_.gj,className:_.gj,ellipsisTruncate:_.gj,isOverlay:_.gj,linkInheritColor:_.gj,noEndpoints:_.gj,noStyleRuns:_.gj,noLinkColor:_.gj,noPreWrap:_.gj,noWrap:_.gj,skipOnClick:_.gj,userInput:_.gj,headerRuns:_.gj,isHeadline:_.gj,id:_.gj,data:_.gj,hidden:_.gj,forceDefaultStyle:_.gj,text:_.C_,disableUpgrade:_.C_,disable:_.C_,slot:_.C_}});var kk=function(){return _.c.apply(this,arguments)||this};
_.J(kk,_.c);kk.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},SoI(this.data,this.config))};
_.e([_.l(l_m),_.n("design:type",Object)],kk.prototype,"ytIdomTemplatingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kk.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kk.prototype,"ariaLabel",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"disable",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"ellipsisTruncate",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"isOverlay",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"linkInheritColor",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"noPreWrap",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"noWrap",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"userInput",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kk.prototype,"noEndpoints",void 0);_.e([_.Y(),_.n("design:type",Array)],kk.prototype,"headerRuns",void 0);
_.e([_.Ry({is:"yt-attributed-string",disableElementRegistration:!0})],kk);
_.g("web_wiz_attributed_string")||_.w(kk,"yt-attributed-string",function(){if(tU9===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
D.content.insertBefore(WCJ().content.cloneNode(!0),D.content.firstChild);tU9=D}D=tU9;return D},{mode:2});var UJ1,Lz1,eI7;UJ1=function(){this.firstThumbnailLoaded=!1};
_.Zky=function(){Lz1||(Lz1=new UJ1);return Lz1};
eI7=function(D){var v=_.Zky();v.firstThumbnailLoaded||(v.firstThumbnailLoaded=!0,_.ea("ftl",D))};
UJ1.prototype.reset=function(){this.firstThumbnailLoaded=!1};var s0c=0,wEi=new WeakMap,HYq=0,Z2=new Set;var Erb,IT4=function(){return Erb!==void 0?Erb:Erb=document.createElement("template")};
document.head.appendChild(IT4().content);var gr4;var Tbr,iYA,Sd;_.g1=_.$L.caches;Sd=function(){};
Sd.prototype.open=function(D){return _.g1.open(kEb(D))};
Sd.prototype.has=function(D){return _.g1.has(kEb(D))};
Sd.prototype.delete=function(D){return _.g1.delete(kEb(D))};
Sd.prototype.match=function(D,v){var h=this,a,Q,G,x,f,C;return _.M(function(U){switch(U.nextAddress){case 1:return U.yield(h.keys(),2);case 2:a=U.yieldResult,Q=_.P(a),G=Q.next();case 3:if(G.done){U.jumpTo(5);break}x=G.value;return U.yield(h.open(x),6);case 6:return f=U.yieldResult,U.yield(f.match(D,v),7);case 7:if(C=U.yieldResult)return U.return(C);G=Q.next();U.jumpTo(3);break;case 5:return U.return()}})};
var WQ4=function(){};
_.J(WQ4,Sd);var kEb=function(D){if(D.includes(":"))throw Error("sh`"+D);return D+":"+_.BV("CacheStorage get")};
WQ4.prototype.keys=function(){var D,v,h,a,Q,G,x,f,C;return _.M(function(U){if(U.nextAddress==1)return D=[],v=_.BV("CacheStorage keys"),U.yield(_.g1.keys(),2);h=U.yieldResult;a=_.P(h);for(Q=a.next();!Q.done;Q=a.next())G=Q.value,x=_.KQL(G),f=x.originalName,C=x.datasyncId,C===v&&D.push(f);return U.return(D)})};var Jk=function(){var D=_.c.apply(this,arguments)||this;D.objectURL=null;D.loadTime=Infinity;return D};
_.J(Jk,_.c);_.V=Jk.prototype;_.V.renderIdom=function(){OYO(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&Uaf(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.V.objectFitToContentMode=function(D){switch(D){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.V.logThumbnailFailureVe=function(){var D=_.En(197497);_.de(_.c8(),D);var v=_.wd();v&&D&&v&&_.DU(v,[D])};
_.V.loadImageFromCacheIfExists=function(D){var v=this,h=D.target;(h==null?0:h.src)&&rur(h.src).then(function(a){v.objectURL=_.OQ(a).toString();v.setSrc(h,v.objectURL)}).catch(function(){})};
_.V.onError=function(D){var v=this;if(_.g("web_use_cache_for_image_fallback")){var h=D.target;h&&rur(h.src).then(function(a){v.objectURL=_.OQ(a).toString();v.setSrc(h,v.objectURL)}).catch(function(){_.g("kevlar_woffle_log_thumbnail_failure_ve")&&v.logThumbnailFailureVe();
_.g("kevlar_woffle_fallback_image")&&v.setSrc(h,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.V.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.V.setConfig=function(){var D=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(v){D.loadImageFromCacheIfExists(v);D.revokeObjectURL();nBo(D.hostElement)},
onerror:function(v){D.onError(v)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.g("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.V.setSrc=function(D,v){v&&(D.src=v)};
_.e([_.l(l_m),_.n("design:type",Object)],Jk.prototype,"ytIdomTemplatingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Jk.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],Jk.prototype,"alt",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Jk.prototype,"ftlEligible",void 0);_.e([_.Y(),_.n("design:type",Number)],Jk.prototype,"height",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Jk.prototype,"notifyOnLoaded",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],Jk.prototype,"notifyOnUnloaded",void 0);_.e([_.Y(),_.n("design:type",String)],Jk.prototype,"objectFit",void 0);_.e([_.Y(),_.n("design:type",String)],Jk.prototype,"objectPosition",void 0);_.e([_.Y(),_.n("design:type",String)],Jk.prototype,"preferredThumbnail",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Jk.prototype,"preserveHeight",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Jk.prototype,"preserveWidth",void 0);
_.e([_.Y({value:!0}),_.n("design:type",Boolean)],Jk.prototype,"useWidth",void 0);_.e([_.Y({value:function(){return!_.nJ("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.n("design:type",Boolean)],Jk.prototype,"shouldRenderLazy",void 0);_.e([_.Y(),_.n("design:type",Number)],Jk.prototype,"width",void 0);_.e([_.Ry({is:"yt-image",disableElementRegistration:!0})],Jk);
_.w(Jk,"yt-image",function(){if(gr4===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);D.content.insertBefore(IT4().content.cloneNode(!0),D.content.firstChild);
gr4=D}D=gr4;return D},{mode:2});var pe=function(){return _.c.apply(this,arguments)||this};
_.J(pe,_.c);pe.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var D=_.Rq(this.data.onVisibleCommand);D&&this.ytComponentBehavior.resolveCommand(D)}};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.U$.YtVisibilityBehavior),_.n("design:type",Object)],pe.prototype,"ytVisibilityBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pe.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],pe);
_.w(pe,"yt-bumper-user-edu-content-view-model",function(){if(Sht===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;kp1===void 0&&(kp1=document.createElement("template"));var a=kp1;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Sht=D}D=Sht;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Sus;var JoJ,pg4=function(){if(JoJ!==void 0)return JoJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;Sus===void 0&&(Sus=document.createElement("template"));var a=Sus;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return JoJ=D};var lT$;_.lt={};lT$=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"]);_.lt.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var D=this.getContext_();return D?D.getTaskManager():_.HK},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var D=_.F1(this.hostElement,"yt-get-context-provider",{});D.detail&&D.detail.contextProvider?this.cachedProviderNode_=D.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return lT$.has(this.hostElement.localName)},
getNetworkManager:function(){var D=this.getContext_();if(D)return D.getNetworkManager()}};var $3q,Nnb,Bnp,Yu9;_.Nv=function(D){var v=Nnb.get(D);if(v&&(v=v.pop()))return Yu9++,v;Bnp++;try{var h=document.createElement(D)}catch(a){throw new _.XH("ElementPool failed to create element",D,a.message);}return h};
$3q=function(D){var v=D.is;if(v){var h=Nnb.get(v);h||(h=[],Nnb.set(v,h));var a=_.eA("ELEMENT_POOL_CONFIG")||{};h.length>=(a[v]!==void 0?a[v]:_.eA("ELEMENT_POOL_DEFAULT_CAP",0))||h.push(D)}else _.yR(new _.XH("Element pool should only handle custom elements:",D.nodeName))};
Nnb=new Map;Bnp=0;Yu9=0;var k5=new WeakMap,aii=new WeakMap;var Xg9;_.Yk=function(D,v,h){h=h===void 0?_.c7():h;this.JSC$13814_defaultPriority=D;this.signal=v;this.scheduler=h;this.nextJobDescriptor=0;this.JSC$13814_parkedJobs=[];this.scheduledJobs=new Map};
_.Bt=function(D,v){if(v){var h=_.ol();D.signal&&!_.FQ(h,D.signal)?(h.addListener(D.signal,function(){D.processSignal()}),D.JSC$13814_parkedJobs.push({job:v,
priority:void 0})):com(D,v)}};
Xg9=function(D,v){if(v!==D.JSC$13814_defaultPriority){D.JSC$13814_defaultPriority=v;for(var h=_.P(D.scheduledJobs.values()),a=h.next();!a.done;a=h.next())a=a.value,D.scheduler.cancelJob(a.jobId),a.jobId=D.scheduler.addJob(a.jobWrapper,v)}};
_.Yk.prototype.flushJobs=function(){Xg9(this,10);this.processSignal()};
_.Yk.prototype.cancel=function(){for(var D=_.P(this.scheduledJobs),v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;this.scheduler.cancelJob(h.jobId);this.scheduledJobs.delete(v)}this.JSC$13814_parkedJobs=[]};
_.Yk.prototype.processSignal=function(){for(var D=_.P(this.JSC$13814_parkedJobs),v=D.next();!v.done;v=D.next())v=v.value,com(this,v.job,v.priority);this.JSC$13814_parkedJobs=[]};
var com=function(D,v,h){h=h||D.JSC$13814_defaultPriority;if(h===10)EA(v);else{var a=D.nextJobDescriptor++,Q=function(){v();D.scheduledJobs.delete(a)},G=D.scheduler.addJob(Q,h);
D.scheduledJobs.set(a,{jobWrapper:Q,jobId:G,priority:h})}};var Ao4;_.ct={};Ao4={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.ct.YtRendererstamperBehavior=[_.lt.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var D in this.stampDom){var v=this.stampDom[D];v&&v.id&&this.addReactiveSchema({type:"observe",method:{methodName:D34(v.id),args:[{type:"wildcard",path:D}]}})}else{(D=(this.constructor.generatedFrom||this).observers)||(D=[]);for(v in this.stampDom){var h=this.stampDom[v];h&&h.id&&D.push(D34(h.id)+"("+v+".*)")}this.constructor.generatedFrom.observers=D}},
addStampDomObserverFns_:function(){for(var D in this.stampDom){var v=this.stampDom[D];v.id?(this[D34(v.id)]=this.rendererStamperObserver_.bind(this,D,v.id),this.hasDataPath_[D]=!1):(v=new _.XH("Bad rendererstamper config",this.is+":"+D),_.mV(v))}},
rendererStamperObserver_:function(D,v,h){if(h.path==D){if(h.value===void 0&&!this.hasDataPath_[D])return;this.hasDataPath_[D]=h.value!==void 0}this.rendererStamperApplyChangeRecord_(D,v,h)},
rendererStamperApplyChangeRecord_:function(D,v,h){var a=this.renderJobsMap_[v],Q=null;D==h.path?(h=h.value,_.O8(h)||(h=h===void 0||h===null?[]:[h]),D=this.stampDom[D],D.mapping&&(Q=this.stampDomArray_.bind(this,h,v,D.mapping,D.reuseComponents,D.events,D.stamperStableList)),a&&a.cancel(),h=D.usePageScheduler?this.getTaskManager():void 0,a||D.initialRenderPriority==void 0)?D.renderPriority==void 0||a||(a=new _.Yk(D.renderPriority,D.waitForSignal,h),this.renderJobsMap_[v]=a):(a=new _.Yk(D.initialRenderPriority,
D.waitForSignal,h),this.renderJobsMap_[v]=a,Q=function(G,x){G();Xg9(x,10)}.bind(this,Q,a)):Q=D+".splices"==h.path?this.stampDomArraySplices_.bind(this,D,v,h.value):this.forwardRendererStamperChanges_.bind(this,D,v,h);
a?_.Bt(a,Q):Q()},
forwardRendererStamperChanges_:function(D,v,h){var a=h.path.slice(D.length+1),Q=this.getStampContainer_(v),G=a.indexOf("."),x=a.substring(0,G),f=!1,C=0,U=parseInt(x,0);if(x[0]=="#"){f=parseInt(x.substring(1),0);U=this.get(D);var L=this.get([D,x]);U[f]==L?C=f:C=U.indexOf(L);f=!0}else isNaN(U)||(C=U,f=!0);f&&(a=a.substring(x.length+1),G=a.indexOf("."));x=_.qc(Q).children[C];var Z;if(Q=(Z=x==null?void 0:x.polymerController)!=null?Z:x)a="data"+a.slice(G),typeof Q.notifyPath!=="function"?_.yR(new _.XH("notifyPath missing",
this.is+": "+D+", "+v)):h.value?Q.notifyPath(a,h.value):Q.notifyPath(a)},
stampDomArraySplices_:function(D,v,h){if(h&&h.indexSplices){var a=this.getStampContainer_(v);if(a){for(var Q=_.qc(a),G=hN7(this.stampDom[D].reuseComponents),x=h.indexSplices.length,f=0;f<x;f++){for(var C=h.indexSplices[f],U=Q.children[C.index],L=C.removed.length;L>0;L--)U&&U.parentElement&&(_.qc(U.parentElement).removeChild(U),G&&$3q(U),U=Q.children[C.index]);L=this.stampDom[D].mapping;for(var Z=C.index+C.addedCount,E=document.createDocumentFragment(),I=G,S=C.index;S<Z;S++){var B=C.object[S],A=u07(L,
B);if(A){var d=L[A];B=B[A];A=this.getComponentName_(d,B);var b=U?k5.has(U):!1;I&&U&&U.is==A&&b?(A=U,this.telemetry_.reuse++,U=U.nextElementSibling):I&&U&&b?(A=this.createComponent_(d,B,G),b=_.qc(U).nextElementSibling,Q.insertBefore(A,b),Goi(this.is,Q,U,G),U=b):(I=!1,A=this.createComponent_(d,B,G),E.appendChild(A));this.deferRenderStamperBinding_(A,d,B)}else d=new _.XH("Unimplemented type",D,v,a.tagName,Object.keys(B)[0]),_.mV(d)}Q.insertBefore(E,U)}this.flushRenderStamperComponentBindings_();this.stampDom[D].events&&
_.F1(this.hostElement,"yt-rendererstamper-finished",{container:a})}else D=new _.XH("Container object not found",v,this.hostElement?this.hostElement.is:""),_.mV(D)}},
stampDomArray_:function(D,v,h,a,Q,G){var x=this.getStampContainer_(v);if(x)if(v=_.qc(x),a=hN7(a),D){var f=0,C=0,U;if(G=G===void 0?_.nJ("STAMPER_STABLE_LIST",!1):G||!1)for(U=v.firstElementChild;U&&!k5.has(U)&&D.length>C;){G=D[C];var L=u07(h,G);if(L){if(this.getComponentName_(h[L],G[L])!=U.is){var Z=this.createComponent_(h[L],G[L],a),E=_.qc(U).nextElementSibling;E?v.insertBefore(Z,E):v.appendChild(Z);Goi(this.is,v,U,a);U=Z}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(U,h[L],G[L]);f++;
C++;U=_.qc(U).nextElementSibling}else C++}VTo(this.is,v,f,a);f=U;if(D.length>C){G=document.createDocumentFragment();for(L=D.length;C<L;C++)if(Z=D[C],E=u07(h,Z))U=this.createComponent_(h[E],Z[E],a),this.deferRenderStamperBinding_(U,h[E],Z[E]),G.appendChild(U);f&&_.qc(f).parentNode&&U&&!k5.has(U)?v.insertBefore(G,f):v.appendChild(G)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Q&&_.F1(this.hostElement,"yt-rendererstamper-finished",{container:x})}else VTo(this.is,v,0,
a);else D=new _.XH("Container object not found",v,this.hostElement?this.hostElement.is:""),_.mV(D)},
getStampContainer_:function(D){return this.$&&this.$[D]||_.ZW(this.hostElement).querySelector("#"+D)},
getComponentName_:function(D,v){return typeof D==="string"?D:D.matcher?D.matcher.call(this,v):D.component},
createComponent_:function(D,v,h){D=this.getComponentName_(D,v);try{var a=Lb.has(D);if(h&&!a){var Q=_.Nv(D);try{_.SB(Q)}catch(G){h="Failed to clear styles for "+D+".",G.message&&(h+=" Original error: "+G.message),_.yR(new _.XH(h))}}else Q=document.createElement(D)}catch(G){return Q="YtRendererStamperBehavior failed to create "+D+".",G.message&&(Q+=" Original description: "+G.message),G.message="YtRendererStamperBehavior failed to create element",_.wf(G,Q),Ao4.hasOwnProperty(D)?_.yR(G):_.mV(G),document.createElement("SPAN")}this.telemetry_.create++;
return Q},
deferRenderStamperBinding_:function(D,v,h){this.deferredBindingTasks_.push({component:D,typeOrConfig:v,data:h})},
flushRenderStamperComponentBindings_:function(){for(var D=0,v=this.deferredBindingTasks_.length;D<v;D++){var h=this.deferredBindingTasks_[D];if(!h)break;var a=void 0,Q=void 0,G=void 0,x=void 0,f=h.component,C=h.typeOrConfig;h=h.data;var U=(x=f.polymerController)!=null?x:f;x=f.loggingStatus;try{x&&(x.isRendererStamper=!0);if(typeof C!=="string"){for(G in C.attributes)C.attributes[G]===!0?f.setAttribute(G,""):C.attributes[G]===!1?f.removeAttribute(G):f.setAttribute(G,C.attributes[G]);for(Q in C.params)U[Q]=
C.params[Q],f!==U&&jB(f.localName,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(a in C.properties){var L=C.properties[a];if(L){var Z=v4q(L);U[a]=this.get(Z);f!==U&&jB(f.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(a==="on-tap"||a==="on-click"){var E=this.get(Z);f.addEventListener("click",E);aii.set(f,{property:a,listener:{type:"element",eventName:"click",handler:E}})}}else{var I=new _.XH("Undefined property binding",a);_.mV(I)}}}if(C.classListBinding){var S=v4q(C.classListBinding),
B=S?this[S]:null;if(B)for(a=0;a<B.length;a++)_.Iy(f,B[a],!0)}U.data=h}finally{x&&(x.isRendererStamper=!1)}if(a=k5.get(f))f.hidden=!1,k5.delete(f),_.HK.cancelJob(a)}this.deferredBindingTasks_.length=0}}];_.zh(_.H(function(D){function v(){h().seconds&&G(eF2({seconds:Number(h().seconds)-Date.now()/1E3}))}
var h=D.targetTimestamp;D=D.className;var a=_.P(_.Zq("",void 0,"Lqijgf")),Q=a.next().value,G=a.next().value;_.dM(function(){v();var x=setInterval(function(){v()},1E3);
_.dq(function(){clearInterval(x)})});
return _.F("yt-countdown",{class:_.S3("ytCountDownHost",D)},_.F("div",null,Q))},"s"),"yt-countdown",{props:{targetTimestamp:_.gj,
className:_.C_}});_.Xw=new _.Uj("KEY_MANAGER_TOKEN");var PdA={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"};_.Ak=_.H(function(D){var v=_.va("a",D.ref),h=D.aTagConfig?D.aTagConfig:_.SM(function(){var a,Q,G,x,f;var C=(f=_.Rq((G=D.command)==null?void 0:G.call(D)))!=null?f:(x=D.command)==null?void 0:x.call(D);return _.W8({innertubeCommand:C,skipOnClick:(a=D.skipOnClick)==null?void 0:a.call(D),defaultTarget:(Q=D.target)==null?void 0:Q.call(D)})||{}},void 0,"TAvz0");
_.bW(function(){_.g("mweb_enable_keto_batch_pages")||(v.value._data=h()._data,v.value.params=h().params)},"dcjvAe");
return _.F("a",{el:v,href:function(){return h().href$},
rel:function(){return h().rel$},
class:function(){var a,Q;return(Q=h().className)!=null?Q:(a=D.className)==null?void 0:a.call(D)},
style:function(){var a;if((a=D.style)==null?0:a.call(D))return D.style();var Q;return((Q=D.disabled)==null?0:Q.call(D))?"pointer-events:none":""},
"aria-haspopup":function(){return!!h()["aria-haspopup$"]},
"force-new-state":p_(function(){return h()["force-new-state$"]}),
title:p_(function(){var a,Q;return(Q=h().title$)!=null?Q:(a=D.title)==null?void 0:a.call(D)}),
role:p_(function(){var a;return((a=D.role)==null?void 0:a.call(D))||h().role$}),
target:p_(function(){return h().target$}),
dir:p_(function(){var a;return((a=D.dir)==null?void 0:a.call(D))||h().dir}),
tabindex:function(){var a;return h().tabindex$?Number(h().tabindex$):(a=D.tabIndex)==null?void 0:a.call(D)},
"aria-hidden":function(){var a,Q;return(Q=h()["aria-hidden$"])!=null?Q:(a=D.ariaHidden)==null?void 0:a.call(D)},
"aria-label":function(){var a,Q;return(Q=h()["aria-label$"])!=null?Q:(a=D.ariaLabel)==null?void 0:a.call(D)},
"aria-current":D.ariaCurrent,"aria-disabled":D.disabled,"aria-labelledby":D.ariaLabelledby,"aria-describedby":D.ariaDescribedby,"aria-selected":D.ariaSelected,"tab-identifier":D.tabIdentifier,"on:pointerdown":_.Jd(function(a){var Q,G;return void((G=(Q=h()).onpointerdown)==null?void 0:G.call(Q,a))}),
"on:click":_.Jd(function(a){var Q,G;(G=(Q=h()).onclick)==null||G.call(Q,a);var x;(x=D.onClick)==null||x.call(D,a)}),
"on:focusin":_.Jd(function(a){var Q;(Q=D.onFocusin)==null||Q.call(D,a)}),
"on:focusout":_.Jd(function(a){var Q;(Q=D.onFocusout)==null||Q.call(D,a)})},D.children)},"u");var U37={duration:1E3,easing:"ease",fill:"forwards"};zNu.componentType=cl;var E4u={duration:1E3,easing:"ease",fill:"forwards"},dJt=_.H(function(D){var v=_.va("animated-rolling-character"),h=void 0,a=function(){var f,C;return Qp((f=D.character)==null?void 0:f.call(D))||Qp((C=D.previousCharacter)==null?void 0:C.call(D))},Q=_.P(_.Zq(0,void 0,"Dgrnr")),G=Q.next().value,x=Q.next().value;
_.dM(function(){if(window.ResizeObserver&&_.g("web_fix_rolling_numbers_zoom_safari")){var f=new ResizeObserver(function(){var C,U,L=Math.round(((U=(C=v.value.querySelector("div"))==null?void 0:C.getBoundingClientRect().height)!=null?U:0)*100)/100;L&&x(L)});
f.observe(v.value);_.dq(function(){f.disconnect()})}});
_.bW(function(){var f=_.g("web_fix_rolling_numbers_zoom_safari")?G:D.marginMultiplier;if(f()){var C;(C=h)==null||C.cancel();if(a()){var U;C=((U=D.previousCharacter)==null?0:U.call(D))?Number(D.previousCharacter())+10:D.rollUp()?0:30;var L;if((L=D.shouldAnimate)==null||!L.call(D)){var Z,E;C-=Zvf((Z=D.character)==null?void 0:Z.call(D),(E=D.previousCharacter)==null?void 0:E.call(D),D.rollUp(),C)}}else{C=D.rollUp()?0:2;var I;(I=D.shouldAnimate)!=null&&I.call(D)||(U=C,L=D.rollUp()?-1:1,C=U-L)}v.value.style.marginTop=
"-"+C*f()+"px";var S;if((S=D.shouldAnimate)==null?0:S.call(D)){var B,A;h=Iiu(v.value,(B=D.character)==null?void 0:B.call(D),(A=D.previousCharacter)==null?void 0:A.call(D),D.rollUp(),C,a(),f())}else{var d;v.value.style.display=((d=D.character)==null?0:d.call(D))?"":"none"}}},"jKjMhe");
return _.F("animated-rolling-character",{el:v,class:"animatedRollingCharacterHost"},_.F(_.z,{cond:a,then:function(){return _.F(qu$,null)},
else:function(){return _.F(bkb,{character:D.character})}}))},"w");
dJt.idomCompat=!0;var g4O=_.g("web_enable_sink_animated_rolling_character_and_number")?dJt:zNu,jcb=_.g("web_enable_sink_animated_rolling_character_and_number")?dJt:LlL(zNu),qu$=_.H(function(){for(var D=[],v=1;v<30;v++)D.push(_.F("div",null,v%10));return _.F(_.xf,null,_.F("div",null,"\u00a0"),D,_.F("div",null,"\u00a0"))},"x"),bkb=_.H(function(D){var v=D.character;
return _.F(_.xf,null,_.F("div",null,"\u00a0"),_.F(_.z,{cond:function(){return!(v==null?0:v())||_.C7(v==null?void 0:v())},
then:function(){return _.F("div",null,"\u00a0")},
else:function(){return _.F("div",null,v)}}),_.F("div",null,"\u00a0"))},"y");koc.componentType=cl;var sc$=_.H(function(D){var v=void 0,h=void 0,a=function(){var G;return((G=D.fontSizeMultiplier)==null?0:G.call(D))?D.heightPx()*D.fontSizeMultiplier():D.heightPx()},Q=_.SM(function(){if(!D.numberText())return[];
var G,x,f=((G=D.forceRollUp)==null?void 0:G.call(D))||!h||!((x=D.numberValue)==null?0:x.call(D))||h<D.numberValue(),C,U=D.numberText();G=a();x=!((C=D.shouldAnimate)==null||!C.call(D));C=[];var L=0,Z=0,E=(v?v.replace(/\D/g,"").length:0)-(U?U.replace(/\D/g,"").length:0),I=v?v.split(/(\d)/).filter(Boolean):[];for(U=U.split(/(\d)/).filter(Boolean);E<0;){var S=U[Z];C.push({character:S,rollUp:f,marginMultiplier:G,shouldAnimate:x});Z++;Qp(S)&&E++}for(;L<E;)S=I[L],C.push({previousCharacter:S,rollUp:f,marginMultiplier:G,
shouldAnimate:x}),L++,Qp(S)||E++;for(;Z<U.length;)E=U[Z],S=I[L],Qp(E)===Qp(S)?(Z++,L++):Qp(E)?(L++,E=void 0):Qp(S)&&(Z++,S=void 0),C.push({character:E,previousCharacter:S,rollUp:f,marginMultiplier:G,shouldAnimate:x});v=D.numberText();var B;h=(B=D.numberValue)==null?void 0:B.call(D);return C},void 0,"kWiBv");
return _.F("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return D.numberText()?["height: "+a()+"px;","line-height: "+D.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.F(_.Xd,{each:Q,keyBy:"INDEX"},function(G){return _.F(jcb,{character:function(){return G().character},
previousCharacter:function(){return G().previousCharacter},
marginMultiplier:function(){return G().marginMultiplier},
rollUp:function(){return G().rollUp},
shouldAnimate:function(){return G().shouldAnimate}})}))},"z");
sc$.idomCompat=!0;_.mJy=_.g("web_enable_sink_animated_rolling_character_and_number")?sc$:LlL(koc);var Hk4=function(D,v){this.fillAnimation=new Animation(liA(D),document.timeline);this.strokeAnimation=new Animation(N8A(v),document.timeline)};
Hk4.prototype.play=function(){var D,v;(v=(D=this.fillAnimation).play)==null||v.call(D);var h,a;(a=(h=this.strokeAnimation).play)==null||a.call(h)};
Hk4.prototype.cancel=function(){var D,v;(v=(D=this.fillAnimation).cancel)==null||v.call(D);var h,a;(a=(h=this.strokeAnimation).cancel)==null||a.call(h)};_.qv=_.H(function(D){var v=D.model;var h=D.pointerDownEvent;var a=D.pointerUpEvent;var Q=D.pointerLeaveEvent;var G=D.hovered;D=_.va("yt-touch-feedback-shape");var x=_.va("div"),f=_.va("div"),C=_.P(_.lL(function(){return(a==null?0:a())||(Q==null?0:Q())?!1:!(h==null||!h())||!1})),U=C.next().value,L=C.next().value,Z=void 0,E=function(){!Z&&f.value&&x.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(Z=new Hk4(f.value,x.value));
var b;(b=Z)==null||b.play()},I=function(){var b;
(b=Z)==null||b.cancel()},S=function(){var b;
(b=Z)==null||b.cancel()};
_.bW(function(){(a==null?0:a())&&E()},"bg756c");
_.bW(function(){(h==null?0:h())&&I()},"QAes8c");
_.bW(function(){(Q==null?0:Q())&&S()},"YaFbrc");
C=_.Jd(function(){E();L(!1)});
var B=_.Jd(function(){I();L(!0)}),A=_.Jd(function(){S();
L(!1)});
_.dq(function(){if(Z){var b;(b=Z)==null||b.cancel();Z=void 0}});
var d={};U=_.S3("yt-spec-touch-feedback-shape",function(){return Yfc(v().color)},function(){return B8r(v().thumbnailSize,!!v().isExtended)},(d["yt-spec-touch-feedback-shape--focused"]=function(){return!!v().focused&&!v().disabled},d["yt-spec-touch-feedback-shape--circular"]=function(){return!!v().circular},d["yt-spec-touch-feedback-shape--down"]=U,d["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!v().triggerEvents},d["yt-spec-touch-feedback-shape--hovered"]=function(){return G==
null?void 0:G()},d));
return _.F("yt-touch-feedback-shape",{el:D,class:U,style:_.NL({"margin-top":function(){return v().customTopExtend?"-"+v().customTopExtend+"px":void 0}}),
"on:mousedown":B,"on:mouseup":C,"on:pointerleave":A,"on:touchstart":B,"on:touchend":C,"aria-hidden":!0},_.F(_.z,{cond:function(){return!!v().hoverEffect},
then:function(){return _.F("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.NL({"border-radius":function(){return v().borderRadius},
background:function(){var b;if(b=v().hoverEffect){for(var W=[],K=_.P((b==null?void 0:b.lightingTechniques)||[]),O=K.next();!O.done;O=K.next())switch(O.value){case 2:var R=O=void 0;W.push("linear-gradient(135deg, "+((O=b)==null?void 0:(R=O.palette)==null?void 0:R.keyLight)+",transparent)")}var vA,f7;W.push((vA=v().hoverEffect)==null?void 0:(f7=vA.palette)==null?void 0:f7.background);b=W.join(", ")}else b=void 0;return b}})})}}),_.F("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.NL({"border-radius":function(){return v().borderRadius},
"border-color":function(){var b,W;return(b=v().touchEffect)==null?void 0:(W=b.palette)==null?void 0:W.background}}),
el:x}),_.F("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.NL({"border-radius":function(){return v().borderRadius},
"background-color":function(){var b,W;return(b=v().touchEffect)==null?void 0:(W=b.palette)==null?void 0:W.background}}),
el:f}))},"D");
_.qv.idomCompat=!0;var yo4={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 bt=_.E8();bt=bt.toLowerCase();if(_.oo(bt,"android")){var wgM=bt.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);wgM&&parseFloat(wgM[1])<100||bt.match("("+Object.keys(yo4).join("|")+")")};var e14=_.H(function(D){return _.F(_.z,{cond:D.aTagConfig,then:function(v){return _.F(_.Ak,{aTagConfig:v,disabled:D.disabled,className:D.className,style:D.style,title:D.title,ariaLabel:D.ariaLabel,ariaCurrent:function(){var h,a;return((h=D.toggleable)==null?void 0:h.call(D))&&((a=D.toggled)==null?void 0:a.call(D))},
ref:D.ref},D.children)},
else:function(){return _.F("button",{el:_.ML(D.ref),"on:click":_.Jd(function(v){var h;return(h=D.onClick)==null?void 0:h.call(D,v)}),
class:D.className,title:D.title,style:D.style,disabled:D.disabled,"aria-pressed":function(){var v,h;return((v=D.toggleable)==null?0:v.call(D))?!((h=D.toggled)==null||!h.call(D)):void 0},
"aria-label":D.ariaLabel,"aria-disabled":D.visiblyDisabled,"aria-hidden":D.ariaHidden,tabindex:D.tabIndex},D.children)}})},"E"),Okt=_.H(function(D){var v=D.data;
var h=D.hasIconLeading;var a=D.hasIconLeadingTrailing;var Q=D.hasIconTrailing;var G=D.iconButton;var x=D.iconClassName;var f=D.secondaryIconClassName;var C=D.icon;var U=D.secondaryIcon;var L=D.textContentClassName;return _.F(dj,{className:"",style:"display: inherit; justify-content: center"},_.F(_.z,{debugInstance:"V4z1Uc",cond:function(){return C&&(h()||a()||(G==null?void 0:G()))},
then:function(){return _.F(dj,null,_.F("div",{class:x,"aria-hidden":"true"},C==null?void 0:C()))}}),_.F(_.z,{debugInstance:"ok3btb",
cond:function(){return(v().buttonText||v().animatedTextProps||v().formattedButtonText)&&!(G==null?0:G())},
then:function(){return _.F(dj,null,_.F(nr4,{className:L,iconPosition:function(){return v().iconPosition},
text:function(){return v().buttonText},
oneOffCustomTextWrap:function(){return v().oneOffCustomTextWrap},
formattedButtonText:function(){return v().formattedButtonText},
animatedTextProps:function(){return v().animatedTextProps}}))}}),_.F(_.z,{debugInstance:"DO5Rz",
cond:Q,then:function(){return _.F(dj,null,_.F("div",{class:x},C==null?void 0:C()))}}),_.F(_.z,{debugInstance:"bnojSc",
cond:a,then:function(){return _.F(dj,null,_.F("div",{class:f},U==null?void 0:U()))}}),_.F(_.z,{debugInstance:"HN3kad",
cond:function(){return!v().disabled&&!0},
then:function(){return _.F(_.qv,{model:function(){var Z=v();return{color:Z.style==="overlay-dark"?4:Z.style==="overlay"?Z.type==="filled"?4:3:Z.type==="filled"||Z.style==="call-to-action-inverse"||Z.style==="mono-inverse"?2:1}}})}}))},"F"),nr4=_.H(function(D){var v=function(){var h,a;
return((h=D.iconPosition)==null?void 0:h.call(D))==="icon-with-label"||((a=D.oneOffCustomTextWrap)==null?void 0:a.call(D))};
return _.F("div",{class:D.className,"aria-hidden":function(){var h,a,Q;return((h=D.ariaHidden)==null?void 0:h.call(D))&&(!((a=D.animatedTextProps)==null||!a.call(D))||!((Q=D.formattedButtonText)==null||!Q.call(D)))}},_.F(_.A$,null,_.F(_.Bv,{when:function(){var h;
return(h=D.animatedTextProps)==null?void 0:h.call(D)}},function(){return _.F(_.mJy,{numberText:function(){return D.animatedTextProps().numberText},
numberValue:function(){return D.animatedTextProps().numberValue},
heightPx:function(){return D.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return D.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return D.animatedTextProps().shouldAnimate},
forceRollUp:function(){return D.animatedTextProps().forceRollUp}})}),_.F(_.Bv,{when:function(){var h;
return(h=D.formattedButtonText)==null?void 0:h.call(D)}},function(){return _.F(_.IY,{text:function(){return Object.assign({},D.formattedButtonText(),{lineBreakMode:v()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":D.formattedButtonText().lineBreakMode,
alignment:v()?"TEXT_ALIGNMENT_CENTER":D.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!v()}})}),_.F(_.Bv,{when:function(){var h,a;
return((h=D.iconPosition)==null?void 0:h.call(D))==="icon-with-label"&&((a=D.text)==null?void 0:a.call(D))}},function(){return _.F(_.IY,{text:function(){return{content:D.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.F(_.cv,null,function(){return D.text})))},"G"),Kz4=_.H(function(D){return _.F(_.z,{debugInstance:"kM7Sgc",
cond:D.hasLabel,then:function(){var v;return _.F("label",{class:D.className},D.children,(v=D.textContent)==null?void 0:v.call(D))},
else:function(){return D.children}})},"H"),dj=_.H(function(D){return D.children},"I");var Tn1=_.H(function(D){var v=_.ML(),h=_.P(_.Zq(void 0,void 0,"Ug77pc")),a=h.next().value,Q=h.next().value;h=_.P(_.Zq(void 0,void 0,"XGf7Zb"));var G=h.next().value,x=h.next().value;h=_.P(_.Zq(0,void 0,"Ygnx7b"));var f=h.next().value,C=h.next().value;h=_.Jd(function(){switch(f()){case 1:C(2);break;case 3:var L,Z;(Z=(L=v.value).hidePopover)==null||Z.call(L);C(0);Q(void 0);x(void 0)}});
_.bW(function(){if(D.show()){var L;Q((L=D.children)==null?void 0:L.call(D));var Z;x((Z=D.location)==null?void 0:Z.call(D));switch(f()){case 0:var E,I;(I=(E=v.value).showPopover)==null||I.call(E);C(1);break;case 3:C(1);var S,B;(B=(S=v.value).hidePopover)==null||B.call(S);var A,d;(d=(A=v.value).showPopover)==null||d.call(A)}}else switch(f()){case 2:C(3);break;case 1:var b,W;(W=(b=v.value).hidePopover)==null||W.call(b);Q(void 0);x(void 0);C(0)}},"lOyibf");
_.jA(function(){});
var U={};return _.F("yt-popover",{popover:"manual",el:v,style:_.NL({left:function(){var L;return(L=G())==null?void 0:L.left},
top:function(){var L;return(L=G())==null?void 0:L.top},
bottom:function(){var L;return(L=G())==null?void 0:L.bottom},
right:function(){var L;return(L=G())==null?void 0:L.right}}),
class:_.S3("ytPopoverComponentHost",D.classNames,(U.ytPopoverComponentHostClosing=function(){return f()===3},U.ytPopoverComponentHostSeeThrough=function(){var L;
return((L=D.seeThrough)==null?void 0:L.call(D))===!0},U)),
"on:animationend":h},a)},"K");var R1m={left:"0px",right:"auto",top:"0px",bottom:"auto"},ikm=function(){var D=this;this.registerTooltipElement=function(h){var a;D.tooltipElement=(a=h.querySelector("yt-popover"))!=null?a:void 0};
var v=_.P(_.Zq(void 0,void 0,"z4iHWd"));this.state=v.next().value;this.setState=v.next().value;v=_.P(_.Zq(void 0,void 0,"uKDcaf"));this.schedulerJobID=v.next().value;this.setSchedulerJobID=v.next().value},m38=function(D,v){var h=cX,a=_.HK.addJob(function(){var Q=Wzy(h,D,v);
h.setState({text:v.text,location:Q,anchor:D,offset:v.offset})},4,v.delay);
h.setSchedulerJobID(a)},Hv4=function(){var D=cX,v=D.schedulerJobID();
v&&(_.HK.cancelJob(v),D.setSchedulerJobID(void 0));D.setState(void 0)};
ikm.prototype.notify=function(D,v){var h;((h=this.state())==null?void 0:h.anchor)===D&&(h=Wzy(this,D,v),this.setState({text:v.text,location:h,anchor:D,offset:v.offset}))};
var Wzy=function(D,v,h){var a=v.getBoundingClientRect();v=window.innerWidth;var Q=window.innerHeight,G=h.location,x=h.offset;h=h.text;if(D=D.tooltipElement){var f=getComputedStyle(D);D=f.font;var C=BX(f.lineHeight),U=BX(f.paddingLeft),L=BX(f.paddingRight),Z=BX(f.paddingTop);f=BX(f.paddingBottom);var E=document.createElement("canvas").getContext("2d");E.font=D;h={width:E.measureText(h).width+U+L,height:C+Z+f}}else h=void 0;D=h;if(!D)return R1m;h=D.width;D=D.height;U=x+D;Z=x+h;C=a.top>=U;U=Q-a.bottom>=
U;L=a.left>=Z;Z=v-a.right>=Z;f=G;switch(G){case "top":!C&&U&&(f="bottom");break;case "bottom":!U&&C&&(f="top");break;case "left":!L&&Z&&(f="right");break;case "right":!Z&&L&&(f="left")}switch(f){case "top":G=a.left+a.width/2-h/2;a=a.top-D-x;break;case "bottom":G=a.left+a.width/2-h/2;a=a.bottom+x;break;case "left":G=a.left-h-x;a=a.top+a.height/2-D/2;break;case "right":G=a.right+x;a=a.top+a.height/2-D/2;break;default:G=a.left+a.width/2-h/2,a=a.bottom+x}x=Object.assign({},R1m);G+h>v?(x.right="0px",x.left=
"auto"):(x.left=Math.round(Math.max(0,G)+window.scrollX)+"px",x.right="auto");a+D>Q?(x.bottom="0px",x.top="auto"):(x.top=Math.round(Math.max(0,a)+window.scrollY)+"px",x.bottom="auto");return x};var cX;cX=new ikm;_.t4M=_.H(function(){var D=_.SM(function(){var h;return(h=cX.state())==null?void 0:h.text},void 0,"jgLmfd"),v=_.SM(function(){var h;
return(h=cX.state())==null?void 0:h.location},void 0,"zV1Udb");
return _.F("yt-tooltip",{class:"ytTooltipContainerHost",el:_.ML(cX.registerTooltipElement),"aria-hidden":"true"},_.F(Tn1,{classNames:"ytTooltipContainerContent",location:v,show:function(){return!!D()},
seeThrough:!0},D))},"L");var Am7=Pl("stamper-context");_.jd=_.H(function(D){var v=D.data;var h=D.icon;var a=D.iconName;var Q=D.animateIcon;var G=D.secondaryIcon;var x=D.secondaryIconName;var f=D.focusedOverride;var C=D.clientOnlyWizTooltipsEnabled;wxA();var U=czq(v),L=U.size,Z=U.style;D=U.disabled;var E=U.onTap,I=U.alignByText,S=U.aTagConfig,B=U.customColors,A=U.segmentedPosition,d=U.toggled,b=U.toggleable,W=U.accessibilityLabel,K=U.onToggle,O=U.iconPosition,R=U.oneOffCustomTextWrap,vA=U.disableTextEllipsis,f7=U.disableBackdropFilter,xL=U.tooltipText,
kL=U.ariaHidden,Z4=U.tabIndex,S2=U.buttonText,s8=U.formattedButtonText,Xf=U.animatedTextProps,dJ=U.onClickRateLimitMs,R4=bvO(v,h,G,a,x,f,Q),sF=R4.type;h=R4.shouldFocus;a=R4.hasIconLeading;Q=R4.hasIconTrailing;var rc=R4.hasIconLeadingTrailing,I4=R4.hasIconOnly;G=R4.hasIconOnly40;var q1=R4.hasIconWithLabel;x=R4.iconButton;var jt=R4.visiblyDisabled;f=R4.overrideSmallSizeIcon;U=R4.iconToRender;R4=R4.secondaryIconToRender;var rr=_.P(yzu(xL)).next().value,Zb=function(ZJ){E==null||E(ZJ);b()&&(K==null||K(ZJ))},
VO=_.SM(function(){return dJ==null?void 0:dJ()},void 0,"wrF7V"),Pm=_.SM(function(){return VO()?WRs(Zb,VO()):Zb},void 0,"fG5dyf"),Yp={},C3={};
return _.F(Kz4,{className:_.S3("yt-spec-button-shape-with-label",(Yp["yt-spec-button-shape-with-label--is-overlay"]=function(){return Z()==="overlay"||Z()==="overlay-dark"},Yp)),
hasLabel:q1,textContent:function(){return _.F(nr4,{text:S2,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:R,iconPosition:O,formattedButtonText:s8,animatedTextProps:Xf})}},_.F(e14,{aTagConfig:S,
className:_.S3("yt-spec-button-shape-next",function(){return d3O(sF())},function(){return jt()?void 0:jkf(Z())},function(){return sk8(L())},(C3["yt-spec-button-shape-next--disabled"]=jt,C3["yt-spec-button-shape-next--focused"]=h,C3["yt-spec-button-shape-next--icon-trailing"]=Q,C3["yt-spec-button-shape-next--icon-leading"]=a,C3["yt-spec-button-shape-next--icon-leading-trailing"]=rc,C3["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return rc()&&!(S2()||s8())},C3["yt-spec-button-shape-next--icon-button"]=
function(){return I4()||q1()},C3["yt-spec-button-shape-next--icon-only-default"]=G,C3["yt-spec-button-shape-next--align-by-text"]=I,C3["yt-spec-button-shape-next--segmented-start"]=function(){return A()==="start"},C3["yt-spec-button-shape-next--segmented-end"]=function(){return A()==="end"},C3["yt-spec-button-shape-next--override-small-size-icon"]=f,C3["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=R,C3["yt-spec-button-shape-next--disable-text-ellipsis"]=vA,C3["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!f7()&&!_.g("web_disable_backdrop_filter")},C3)),
style:function(){var ZJ=B();if(ZJ){var VK=ZJ.color;var oP=ZJ.backgroundColor;ZJ=ZJ.borderColor;var rJ="";VK&&(rJ+="color: "+VK+";");oP&&(rJ+="background-color: "+oP+";");ZJ&&(rJ+="border-color: "+ZJ+";");VK={style:rJ}}else VK={};return VK.style},
onClick:function(ZJ){Pm()(ZJ)},
disabled:D,ariaLabel:W,toggleable:b,toggled:d,title:function(){return(C==null?0:C())||!xL()?"":xL()},
visiblyDisabled:jt,ariaHidden:kL,tabIndex:Z4,ref:function(ZJ){(C==null?0:C())&&rr(ZJ)}},_.F(Okt,{data:v,
hasIconLeading:a,hasIconLeadingTrailing:rc,hasIconTrailing:Q,iconButton:x,icon:U,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:R4})))},"N");
_.jd.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.s$=_.H(function(D){var v=D.data;var h=D.className;var a=D.style;var Q=D.useOutlinedIcon;var G=D.buttonOverrides;var x=D.animatedTextProps;var f=D.onClick;var C=D.target;var U=_.va("button-view-model",function(b){b.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var W=v().targetId;W&&_.qTR(_.tU(),W,b);return function(){XHF(_.tU(),b)}}),L=function(){return v().iconName},Z,E=(Z=_.xd().resolve(_.PV(_.$5)))==null?void 0:Z(),I=function(){var b=v();
var W=G==null?void 0:G(),K=x==null?void 0:x(),O=C==null?void 0:C();if(b){var R=iv4(b.type);var vA=!!b.title||!!b.titleFormatted;var f7=!(!b.iconName&&!b.iconImage);vA=f7&&!vA?"icon-only":f7?b.iconTrailing||b.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;vA==="icon-only-40"&&(R="text");var xL;f7=(xL=W==null?void 0:W.state)!=null?xL:Wl7(b.state);var kL,Z4=(kL=W==null?void 0:W.disabled)!=null?kL:b.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||b.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.g("web_button_vm_refactor_disabled")){var S2;Z4=(S2=W==null?void 0:W.disabled)!=null?S2:f7==="disabled"}K=K&&K.numberText&&!isNaN(Number(K.numberValue))?K:void 0;kL=Object;S2=kL.assign;xL=b.title;var s8=b.titleFormatted,Xf=b.accessibilityText,dJ=RNu(b.style),R4=tT8(b.buttonSize);O=T8f(b,U,Z4,f,O);Z4=Z4&&!b.onDisabledTap;var sF=OvO(b,U),rc=b.customFontColor,I4=b.customBackgroundColor;var q1=b.customBorderColor;var jt=b.customDarkThemeFontColor,rr=b.customDarkThemeBackgroundColor,Zb=b.customDarkThemeBorderColor;
rc=E&&jt?jt:rc;I4=E&&rr?rr:I4;q1=E&&Zb?Zb:q1;q1={color:rc?_.uu(rc):void 0,backgroundColor:I4?_.uu(I4):void 0,borderColor:q1?_.uu(q1):void 0};b=S2.call(kL,{},{buttonText:xL,formattedButtonText:s8,animatedTextProps:K,accessibilityLabel:Xf,style:dJ,type:R,state:f7,size:R4,iconPosition:vA,onTap:O,disabled:Z4,aTagConfig:sF,customColors:q1,tooltipText:b.tooltip},W)}else b={style:"mono",type:"text",state:"active",size:"M"};b.focused=A();return b},S=function(){return AzI(I(),!!v().iconName)};
D=_.P(_.Zq(!1,void 0,"WVXhrd"));Z=D.next().value;var B=D.next().value,A=Z;D=_.Jd(function(){var b=_.xd().resolve(_.PV(_.Xw));b&&B(b.isKeyBoardInUse());return!1});
Z=_.Jd(function(){B(!1);return!1});
_.bW(function(){var b,W=_.k(v==null?void 0:(b=v())==null?void 0:b.onVisible,_.Tz);W&&_.iP(W,{disableClickTracking:!0})},"w0lGYc");
var d=_.g("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.F("button-view-model",{el:U,class:_.S3("ytSpecButtonViewModelHost",h),"on:focusin":D,"on:focusout":Z},_.F(_.z,{cond:function(){var b;return(v==null?0:(b=v())==null?0:b.iconImage)?{sources:[v().iconImage]}:void 0},
then:function(b){return _.F(_.jd,{data:I,icon:function(){return _.F(_.PX,{data:b,alt:"",targetWidth:S,targetHeight:S,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:d})},
else:function(){return _.F(_.jd,{data:I,icon:function(){return _.F(_.Y5,{icon:L,active:function(){return(Q==null?0:Q())?!1:I().toggled},
animateIcon:function(){var b;return!!(a==null?0:(b=a())==null?0:b.animateIcon)},
size:S})},
clientOnlyWizTooltipsEnabled:d})}}))},"P");
_.s$.idomCompat={callbacks:{onClick:!0}};_.zh(_.H(function(D){return _.F("yt-button-view-model",{id:D.id,class:_.S3(D.scopingClassName,D.classes),icon:function(){var v;return(v=D.icon)==null?void 0:v.call(D)},
"dialog-dismiss":function(){var v;return((v=D.dialogDismiss)==null?0:v.call(D))?"":void 0}},_.F(_.s$,{data:function(){var v;
return(v=D.data)==null?void 0:v.call(D)},
className:function(){var v;return(v=D.className)==null?void 0:v.call(D)},
style:function(){var v;return(v=D.style)==null?void 0:v.call(D)},
useOutlinedIcon:function(){var v;return(v=D.useOutlinedIcon)==null?void 0:v.call(D)},
buttonOverrides:function(){var v;return(v=D.buttonOverrides)==null?void 0:v.call(D)},
animatedTextProps:function(){var v;return(v=D.animatedTextProps)==null?void 0:v.call(D)},
onClick:function(v){var h;return(h=D.onClick)==null?void 0:h.call(D,v)}}))},"Q"),"yt-button-view-model",{props:{data:_.gj,
className:_.gj,style:_.gj,useOutlinedIcon:_.gj,buttonOverrides:_.gj,animatedTextProps:_.gj,onClick:_.C_,scopingClassName:_.gj,id:_.gj,icon:_.gj,dialogDismiss:_.gj,classes:_.gj,target:_.C_}});_.zh(_.H(function(D){var v=D.data;var h=D.id;var a=D.className;var Q=D.iconName;var G=D.animateIcon;var x=D.secondaryIconName;D=_.P(_.Zq(!1,void 0,"TtJl8"));var f=D.next().value,C=D.next().value,U=function(){var Z=_.xd().resolve(_.PV(_.Xw));Z&&C(Z.isKeyBoardInUse())},L=function(){C(!1)};
D=_.va("yt-button-shape",function(Z){if(_.xd().resolve(_.PV(_.Xw)))return Z.addEventListener("focusin",U),Z.addEventListener("focusout",L),function(){Z.removeEventListener("focusin",U);Z.removeEventListener("focusout",L)}});
return _.F("yt-button-shape",{el:D,id:h,class:a},_.F(_.z,{cond:v,then:function(){return _.F(_.jd,{data:v,iconName:Q,secondaryIconName:x,focusedOverride:f,animateIcon:G})}}))},"R"),"yt-button-shape",{props:{data:_.gj,
id:_.gj,className:_.gj,iconName:_.gj,animateIcon:_.gj,secondaryIconName:_.gj,clientOnlyWizTooltipsEnabled:_.gj,disableUpgrade:_.gj},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var mZ=function(){var D=_.c.apply(this,arguments)||this;D.isGoalActive=!0;return D};
_.J(mZ,_.c);mZ.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
mZ.prototype.progressBarChanged=function(){var D=_.ZW(this.hostElement).querySelector("#progress-bar-progress"),v,h,a,Q=(a=Number((v=this.creatorGoalState)==null?void 0:v.currentGoalCount)/Number((h=this.creatorGoalState)==null?void 0:h.totalGoalCount)*100)!=null?a:0,G;D.style.width=((G=Math.min(Q,100))!=null?G:0)+"%"};
mZ.prototype.goalStateChanged=function(){var D;this.isGoalActive=((D=this.creatorGoalState)==null?void 0:D.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var v;D={"--yt-progress-bar-color":jDL((v=this.creatorGoalState)==null?void 0:v.progressBarColor)};_.SB(this.hostElement,D)};
mZ.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.GT.Object.defineProperties(mZ.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var D;return this.isGoalActive&&!((D=this.creatorGoalState)==null||!D.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.endTimestampMs){var v;D=Number((v=this.creatorGoalState)==null?void 0:v.endTimestampMs)/1E3;return{seconds:String(D)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.themedTargetImage){var v;D=_.k((v=this.creatorGoalState)==null?void 0:v.themedTargetImage,iOJ);return this.isAppDarkTheme()?D==null?void 0:D.imageDark:D==null?void 0:D.imageLight}}}});
_.GT.Object.defineProperties(mZ,{template:{configurable:!0,enumerable:!0,get:function(){return pg4()}}});
mZ.prototype.goalStateChanged=mZ.prototype.goalStateChanged;mZ.prototype.progressBarChanged=mZ.prototype.progressBarChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],mZ.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);
_.e([_.Y({selectorArgs:["data.creatorGoalEntityKey"],selector:function(D,v){return _.gR(D.entities,"creatorGoalEntity",v)}}),
_.n("design:type",Object)],mZ.prototype,"creatorGoalState",void 0);_.e([_.Y(),_.n("design:type",Object)],mZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],mZ.prototype,"isGoalActive",void 0);_.e([_.N("creatorGoalState","isGoalActive"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mZ.prototype,"shouldShowCountdown",null);_.e([_.N("creatorGoalState"),_.n("design:type",Object),_.n("design:paramtypes",[])],mZ.prototype,"endTimestamp",null);
_.e([_.N("creatorGoalState"),_.n("design:type",Object),_.n("design:paramtypes",[])],mZ.prototype,"targetIconThemedImage",null);_.e([_.Ni("creatorGoalState.currentGoalCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mZ.prototype,"progressBarChanged",null);_.e([_.Ni("creatorGoalState.creatorGoalState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mZ.prototype,"goalStateChanged",null);
_.e([_.Ry({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],mZ);_.w(mZ,"yt-creator-goal-progress-flow-view-model",function(){return pg4()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var roJ;var uJJ;var Ht=function(){return _.c.apply(this,arguments)||this};
_.J(Ht,_.c);Ht.prototype.attached=function(){var D,v,h;if(this==null?0:(D=this.data)==null?0:(v=D.pdgPurchasedBumperLoggingDirectives)==null?0:(h=v.loggingDirectives)==null?0:h.trackingParams){var a,Q,G;Duf(this==null?void 0:(a=this.data)==null?void 0:(Q=a.pdgPurchasedBumperLoggingDirectives)==null?void 0:(G=Q.loggingDirectives)==null?void 0:G.trackingParams)}};
Ht.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ht.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Ht);
_.w(Ht,"yt-live-chat-item-bumper-view-model",function(){if(uJJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;roJ===void 0&&(roJ=document.createElement("template"));var a=roJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);uJJ=D}D=uJJ;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var DaJ;var vBp;_.QL=function(D,v){this.data=D;this.actions=v;this.data=D;this.actions=v};
_.td=function(){};_.y1={};_.y1.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(D,v){vg8(this.hostElement,D,v)},
getNavigationEndpointPopupAction:function(D){return hTI(D,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(D,v){a12(this.hostElement,D,v,this.openPopupConfig)}};var ogL=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.wj={};
_.wj.YtEndpointBehavior=[_.y1.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.eA("openPopupConfig");(this.useClickHandler=_.nJ("useClickHandler",!1))?this.hostElement.addEventListener("click",JV(this,this.onEndpointClick_)):(mK(this.hostElement,"tap",JV(this,this.onEndpointTap_)),mK(this.hostElement,"touchend",JV(this,this.onEndpointTouchEnd_)));mK(this.hostElement,"touchstart",JV(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
JV(this,this.onEndpointTapStart_))},
onEndpointClick_:function(D){G5f(this.hostElement,D,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(D){var v=this.hostElement,h=this.openPopupConfig,a=this.disableCommandHandlerOverride;a=a===void 0?!1:a;var Q=$uf(D);if(Q){Q.href&&hV(Q.href);var G=D.detail;var x=G.sourceEvent;G=G.preventer;x=x.button!==void 0?x.button===0&&!Ad(x):G?!Ad(G):!0;Q.data&&x&&QF8(v,Q,D,h,a)}},
onEndpointTouchEnd_:function(D){Ad(D)||$uf(D)&&D.preventDefault()},
onEndpointTapStart_:function(D){f1I(D)}}];_.ed={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(D){for(var v=_.iD.getInstance(),h=_.P(Object.keys(D)),a=h.next();!a.done;a=h.next()){var Q=a.value;a=D[Q];if(this&&this[a]){var G=v.actionRoutingMap.get(Q);G||(G=new Map,v.actionRoutingMap.set(Q,G));v.registerActionHandler(this,Q,this[a].bind(this),G)}else Q=Error("ld"),Q.params=a,_.OM(Q)}},
unregisterActionMap:function(D){_.uD(_.iD.getInstance(),D,this)}}]};var d1=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_"+(_.g("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.g("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.g("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.g("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:_.g("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:_.g("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var bL;var j3=new Map;var NC7=window.matchMedia("(forced-colors: active)").matches;var hIs;var aGJ;var $aJ=new _.Uj("LOTTIE_LOADER_TOKEN");_.ne=_.H(function(D){var v=D.data;var h=D.className;var a=D.animationName;var Q=D.animationRef;var G=D.elRefForInterop;var x=_.$X("lottie-component"),f;_.dq(function(){var U;return void((U=f)==null?void 0:U.destroy())});
var C;_.bW(function(){var U=_.sY(a);if(U!==C){C=U;var L=Object.assign({},{animationName:U,animationRef:_.sY(Q)},_.sY(v));try{_.xd().resolve($aJ)().then(function(I){var S;(S=f)==null||S.destroy();var B,A;S=(A=G==null?void 0:(B=G())==null?void 0:B.value)!=null?A:x.value;B=L.animationRef;A=L.listeners;I=I.loadAnimation(Object.assign({},{container:S},L.animationConfig));B&&(B.lottieEl=I);if(A)for(S=_.P(Object.entries(A)),B=S.next();!B.done;B=S.next())A=_.P(B.value),B=A.next().value,(A=A.next().value)&&
I.addEventListener(B,A);f=I})}catch(I){U=I;
var Z="LottieComponent error.";U.message&&(Z+=" Original description: "+U.message);_.wf(U,Z);_.yR(U);var E;((E=L.listeners)==null?0:E.error)&&L.listeners.error(U)}}},"nrJISd");
return _.F(GU4,{cond:function(){return!(G==null?0:G())},
then:function(){return _.F("lottie-component",{class:_.S3("ytLottieComponentHost",h),el:x})}})},"T");_.zh(_.H(function(D){return _.F("ytd-lottie-player",{id:D.id,hidden:D.hidden,class:D.className,"aria-label":D.ariaLabel,style:"display: block;"},_.F(_.ne,{data:D.data,animationName:function(){var v;return((v=D.data().animationConfig)==null?void 0:v.name)||""},
animationRef:function(){return D.data().animationRef}}))},"U"),"ytd-lottie-player",{props:{data:_.gj,
id:_.gj,hidden:_.gj,className:_.gj,ariaLabel:_.gj}});var O$=function(){var D=_.c.apply(this,arguments)||this;D.animationRef={};D.delhiIconsEnabled=_.g("enable_web_delhi_icons");return D};
_.J(O$,_.c);_.V=O$.prototype;
_.V.handlePropertyChange=function(){var D=this.animatedIcon,v=this.active,h=this.isDarkTheme;if(D){var a=this.previousActive!==v;this.previousActive=v;this.animationRef.lottieEl?a&&this.toggleAnimation(v,D.totalFrames):v?this.initializeAnimationAsToggled(D.lottiePlayerProps,D.totalFrames):this.initializeAnimationAsUntoggled(D.lottiePlayerProps);D.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=D.type;this.lottiePlayerProps=this.computeLottiePlayerProps(D,h)}};
_.V.computeLottiePlayerProps=function(D,v){var h=this.deepCloneLottiePlayerProps(D);v?(v=D.nameDarkTheme,D=D.pathDarkTheme):(v=D.name,D=D.path);h.animationConfig.name=v;(v=j3.get(D))?h.animationConfig.animationData=v:h.animationConfig.path=D;return h};
_.V.initializeAnimationAsToggled=function(D,v){D.animationConfig.initialSegment=[v-1,v]};
_.V.initializeAnimationAsUntoggled=function(D){D.animationConfig.initialSegment=void 0};
_.V.toggleAnimation=function(D,v){if(D){var h;(h=this.animationRef.lottieEl)==null||h.playSegments([0,v],!0)}else{var a;(a=this.animationRef.lottieEl)==null||a.playSegments([0,1],!0)}};
_.V.deepCloneLottiePlayerProps=function(D){var v=Object.assign({},D.lottiePlayerProps.animationConfig);D=Object.assign({},D.lottiePlayerProps);D.animationConfig=v;return D};
O$.prototype.handlePropertyChange=O$.prototype.handlePropertyChange;_.e([_.Y(),_.n("design:type",Object)],O$.prototype,"animatedIcon",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],O$.prototype,"active",void 0);_.e([_.Y(),_.n("design:type",Boolean)],O$.prototype,"isDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],O$.prototype,"animatedIconType",void 0);_.e([_.Y(),_.n("design:type",Boolean)],O$.prototype,"previousActive",void 0);
_.e([_.Y(),_.n("design:type",Object)],O$.prototype,"lottiePlayerProps",void 0);_.e([_.Y(),_.n("design:type",Object)],O$.prototype,"animationRef",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],O$.prototype,"delhiIconsEnabled",void 0);_.e([_.Ni("animatedIcon","active","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],O$.prototype,"handlePropertyChange",null);_.e([_.Ry({is:"yt-animated-icon",disableElementRegistration:!0})],O$);
_.w(O$,"yt-animated-icon",function(){if(aGJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;hIs===void 0&&(hIs=document.createElement("template"));var a=hIs;h.call(v,a.content.cloneNode(!0),D.content.firstChild);aGJ=D}D=aGJ;return D},{mode:2});var Q0R;var G7t;var qlf=_.H(function(D){var v=_.$X("span"),h=sM(function(){return{value:null,cancelled:!1}});
_.dq(function(){h.cancelled=!0});
var a=_.SM(D.data,{equals:function(Q,G){return Q.iconName===G.iconName&&Q.iconStyle===G.iconStyle&&Q.iconSize===G.iconSize&&Q.iconSetName===G.iconSetName&&Q.iconSelected===G.iconSelected}},"AoOoyf");
_.bW(function(){var Q,G=(Q=D.options)==null?void 0:Q.call(D);ASq(v,h,a(),G)},"Tie9e");
return _.F("span",{class:"yt-icon-shape",el:v})},"W");
qlf.idomCompat=!0;var qqA=["youtube_fill","youtube_outline"];var VV9=new _.OB({type:"iconset",value:void 0}),Ke=function(){var D=_.c.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.iconName="";D.iconsetName="yt-icons";D.iconset=null;D.missingIconSet=!1;D.iconType=null;D.iconShapeDataSignal=_.Zq(void 0,void 0,"b0v7Ac");D.renderingOptionsSignal=_.Zq({iconWidth:"100%",iconHeight:"100%",iconFilter:D.iconFilter},void 0,"Ls6l3e");D.wizHasRendered=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(Ke,_.c);Ke.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
Ke.prototype.handlePropertyChange=function(){var D=this,v,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d;return _.M(function(b){switch(b.nextAddress){case 1:if(v=!D.icon&&!D.iconName||!D.isAttached)return b.return();h=D;a=h.icon;Q=h.size;G=h.defaultToFilled;x=h.active;f=h.targetContainer;D.toggleContainerClass(f);_.g("kevlar_use_wil_icons")&&a&&(C=xoI(a),D.iconType=C.length?C[1]:null);if(a){b.jumpTo(2);break}D.iconsetName="";D.iconName="";return b.yield(D.renderIcon(f,a),3);case 3:return b.return();case 2:U=P5s(a);
L=xoI(U);L.length&&(D.iconsetName=L[0],D.iconName=L[1]);if(!_.g("kevlar_use_wil_icons")){b.jumpTo(4);break}Z=Ke;E=xab;I=D.iconType;S=D.active;B=D.defaultToFilled;A=D.size;d=D.iconsetName;return b.yield(MV9(),6);case 6:return b.yield(E.call(Z,I,S,B,A,d,b.yieldResult),5);case 5:D.iconShapeData=b.yieldResult;case 4:if(D.shouldRenderIconShape(f)){b.jumpTo(7);break}return b.yield(D.determineIconSet(U,x,G,Q,f),7);case 7:return b.yield(D.renderIcon(f,a),0)}})};
Ke.prototype.toggleContainerClass=function(D){D?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var P5s=function(D){return!_.g("default_to_innertube_icon")||D.indexOf(":")>0?D:_.SQ(D)};
_.V=Ke.prototype;_.V.determineIconSet=function(D,v,h,a){var Q=this;return _.M(function(G){return G.nextAddress==1?_.g("kevlar_system_icons")||_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.eA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?G.yield(Q.switchToYtSysIconset(D,v,h,a),3):G.jumpTo(2):G.nextAddress!=2?G.return():G.yield(Q.useYtSysIconsetForMissingIcons(D,v,h,a),0)})};
_.V.switchToYtSysIconset=function(D,v,h,a){var Q=this,G,x,f,C,U,L,Z;return _.M(function(E){switch(E.nextAddress){case 1:if(!D||Q.iconsetName!=="yt-icons"&&Q.iconsetName!=="yt-sys-icons"){E.jumpTo(0);break}G=xoI(D);x=G[1];x=_.EDO(x);_.g("enable_polymer_icons_replace_underscores_dash")&&x.includes("_filled")&&(x=x.replace(/_filled/g,"-filled"));return E.yield(kt(x,!0),3);case 3:return f=E.yieldResult,E.yield(kt(x,!1),4);case 4:if((C=E.yieldResult)||v&&f)Q.iconsetName="yt-sys-icons";Q.iconName=Q.getIconName(x,
v,h,C,f);if(a===24){E.jumpTo(0);break}U="yt-sys-icons"+a+":"+Q.iconName;return E.yield(kt(U,!1,!0),6);case 6:return L=E.yieldResult,E.yield(kt(U,!0,!0),7);case 7:Z=E.yieldResult;Q.iconName=Q.getIconName(x,v,h,L,Z);if(!v&&L||v&&Z)Q.iconsetName="yt-sys-icons"+a;_.YI(E)}})};
_.V.getIconName=function(D,v,h,a,Q){D.includes("-filled")&&(D=D.replace("-filled",""));return Q&&(v||h)?D+"-filled":D};
_.V.useYtSysIconsetForMissingIcons=function(D,v,h,a){var Q=this,G,x;return _.M(function(f){if(f.nextAddress==1)return Q.iconsetName!=="yt-icons"?f.jumpTo(0):f.yield(kt(Q.iconName,!1,!1,!0),3);if(f.nextAddress!=4)return G=f.yieldResult,f.yield(kt(Q.iconName,!1),4);x=f.yieldResult;if(G||!x)return f.jumpTo(0);Q.iconsetName="yt-sys-icons";return f.yield(Q.switchToYtSysIconset(D,v,h,a),0)})};
_.V.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var MV9=function(){return _.M(function(D){try{return D.return(_.xd().resolve(_.JD))}catch(v){return D.return(new Promise(function(h){_.ol().parkOrScheduleJob(function(){h(_.xd().resolve(_.JD))},2,"ci")}))}})},xab=function(D,v,h,a,Q,G){a=a===void 0?24:a;
if(D){D=D.toLowerCase();var x=D.endsWith("_filled")||D.endsWith("-filled");v={iconName:D,iconStyle:(v===void 0?0:v)||(h===void 0?0:h)||x?"youtube_fill":"youtube_outline",iconSize:a,iconSetName:Q===void 0?"yt-icons":Q};h=!!G.resolveIcon(v);h||(v.iconSize=void 0,h=!!G.resolveIcon(v));!h&&x&&(v.iconName=D.substring(0,D.length-7),v.iconSize=a,h=!!G.resolveIcon(v),h||(v.iconSize=void 0,h=!!G.resolveIcon(v)));h||(v.iconStyle=void 0,h=!!G.resolveIcon(v));h||_.yR(new _.XH("Icon not supported",{iconName:v.iconName,
iconStyle:v.iconStyle,iconSize:v.iconSize,iconType:D}));return h?v:void 0}};
_.V=Ke.prototype;_.V.shouldRenderIconShape=function(D){if(!_.g("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;D=this.getContainer(D);return!Yl8(D,this.icon)};
_.V.renderIcon=function(D,v){var h=this,a,Q,G,x,f,C,U,L;return _.M(function(Z){switch(Z.nextAddress){case 1:if(v&&h.icon!==v)return Z.return();a=h.getContainer(D);Q=Yl8(a,h.icon);if(h.shouldRenderIconShape(D)&&h.iconType)return h.applyIconShape(Q,a),Z.return();h.removeIconShape();if(!a)return Z.return();h.iconName===""&&h.iconset&&a&&(h.removeStaticIcon(h.iconset,a),Q&&h.removeAnimatedIcon(a));if(h.iconName===""&&h.iconset||!h.iconsetName||!VV9)return Z.return();h.iconset=VV9.byKey(h.iconsetName);
if(!h.iconset)return h.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.pZ(h,h.onIconsetAdded)),Z.return();h.missingIconSet&&(h.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.pZ(h,h.onIconsetAdded)));x=(G=Q||h.isAnimatedIcon?pBq(h.icon):void 0)&&!G.lazyLoad;C=G&&((f=G)==null?void 0:f.lazyLoad)&&(G.lottiePlayerProps.animationConfig.animationData?!0:j3.get(h.isDarkTheme?G.pathDarkTheme:G.path)?!0:!1);if(x||C)return h.applyAnimatedIcon(a,G,h.iconset),Z.return();if(C||
(U=G)==null||!U.lazyLoad){Z.jumpTo(2);break}L=cSL(G,h.isDarkTheme);h.applyStaticIcon(h.iconset,a,h.iconName,D,Q);return Z.yield(L,3);case 3:return Z.yield(h.renderIcon(h.targetContainer,h.icon),4);case 4:return Z.return();case 2:h.applyStaticIcon(h.iconset,a,h.iconName,D,Q),_.YI(Z)}})};
_.V.getContainer=function(D){var v,h=(v=cjq(this.hostElement))==null?void 0:v.host;v=!!h&&!!h.polymerController;if(!D||v)return D?this.getTargetContainer(D,h):this.hostElement};
_.V.getTargetContainer=function(D,v){var h=_.ZW(v).querySelector("#"+D);h||(D=new _.XH("yt-icon container missing",v.is,D),_.mV(D));return h};
_.V.applyStaticIcon=function(D,v,h,a,Q){Q&&this.removeAnimatedIcon(v);this.removeIconShape();Q=Q&&!!this.iconType&&!!this.iconShapeData&&_.g("kevlar_use_wil_icons");try{Q?this.applyIconShape(!1,v):D.applyIcon(v,h)}catch(G){this.handleError(G,a,v)}};
_.V.applyIconShape=function(D,v){this.iconset&&v&&(this.removeStaticIcon(this.iconset,v),D&&this.removeAnimatedIcon(v));D={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var h=_.P(this.iconShapeDataSignal);v=h.next().value;h=h.next().value;var a=_.P(this.renderingOptionsSignal),Q=a.next().value;a=a.next().value;h(this.iconShapeData);a(D);if(!this.wizHasRendered)for(this.wizHasRendered=!0,D=_.P(bBq(v,Q)).next().value;D.firstChild;)_.ZW(this.hostElement).appendChild(D.firstChild)};
_.V.removeIconShape=function(){if(_.g("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.V.removeStaticIcon=function(D,v){D.removeIcon(v)};
_.V.applyAnimatedIcon=function(D,v,h){this.removeStaticIcon(h,D);this.removeIconShape();var a;h=this.animatedIconElement&&((a=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:a.type)===v.type;if(this.animatedIconElement&&h){this.animatedIconElement.polymerController.animatedIcon=v;var Q;((Q=this.animatedIconElement)==null?void 0:Q.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(D),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=v,this.animatedIconElement.polymerController.active=this.active,_.g("delhi_modern_web_player_icons")?(v=l1L(D,this.icon)&&D.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=v?v.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.g("kevlar_use_wil_icons")?
D.insertBefore(this.animatedIconElement,D.childNodes[0]):(D=_.ZW(D),D.insertBefore(this.animatedIconElement,D.childNodes[0]))};
_.V.removeAnimatedIcon=function(D){_.g("kevlar_use_wil_icons")?this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement):(D=_.ZW(D),this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.V.handleError=function(D,v,h){_.wf(D,this.iconName,v,h);v=Yl8(h,this.icon);var a=!1;window.location.href.includes("JpymaW6Lh2w")?a=!0:h._svgIcon&&(h=(h=h._svgIcon.parentNode)?h.tagName:"unknown",_.wf(D,h),h==="YT-ICON"&&D.name==="NotFoundError"?a=!0:D.name==="NotFoundError"&&v&&(a=!0));a?_.yR(D):_.mV(D)};
_.GT.Object.defineProperties(Ke,{template:{configurable:!0,enumerable:!0,get:function(){if(G7t===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;
Q0R===void 0&&(Q0R=document.createElement("template"));var a=Q0R;h.call(v,a.content.cloneNode(!0),D.content.firstChild);G7t=D}D=G7t;return D}}});
Ke.prototype.handlePropertyChange=Ke.prototype.handlePropertyChange;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Ke.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",String)],Ke.prototype,"icon",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Ke.prototype,"active",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Ke.prototype,"defaultToFilled",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Ke.prototype,"isAnimatedIcon",void 0);
_.e([_.Y({value:24}),_.n("design:type",Number)],Ke.prototype,"size",void 0);_.e([_.Y({value:""}),_.n("design:type",String)],Ke.prototype,"targetContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],Ke.prototype,"animatedIconElement",void 0);_.e([_.Y(),_.n("design:type",Object)],Ke.prototype,"isDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ke.prototype,"ariaHidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Ke.prototype,"ariaLabel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Ke.prototype,"role",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Ke.prototype,"tabindex",void 0);_.e([_.Y(),_.n("design:type",String)],Ke.prototype,"style",void 0);_.e([_.Y(),_.n("design:type",String)],Ke.prototype,"iconFilter",void 0);
_.e([_.Ni("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],Ke.prototype,"handlePropertyChange",null);_.e([_.Ry({is:"yt-icon",noInjection:!0})],Ke);var duq="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),sFi=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var fGR={};fGR.YtPlaintextBehavior=[_.Hq,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(D){D.preventDefault();D=D.clipboardData.getData("text/plain");document.execCommand("insertText",!1,D)},
preventRichTextFormatting_:function(D){_.Ip&&(D=D.detail.keyboardEvent,D.stopImmediatePropagation(),D.preventDefault())}}];var C5J;var oBJ;var TA=function(){var D=_.c.apply(this,arguments)||this;D.ignoreShadyDom=!1;D.hasChange_=!1;D.hasSetTitle_=!1;D.useIOObserverForVisibilityLogging_=_.g("kevlar_use_vimio_behavior")&&_.eA("INNERTUBE_CLIENT_NAME")==="WEB";D.ytFormattedStringObserverHandlerKeys_=void 0;return D};
_.J(TA,_.c);_.V=TA.prototype;_.V.created=function(){this.useIOObserverForVisibilityLogging_=_.g("kevlar_use_vimio_behavior")&&_.eA("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.V.ready=function(){_.eA("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_()};
_.V.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.V.detached=function(){this.unobserveIOObservers_()};
_.V.clearContents_=function(){for(var D=this.getRoot(),v=D.lastChild;v&&v.tagName!=="STYLE";){try{D.removeChild(v)}catch(h){break}v=D.lastChild}};
_.V.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var D=_.P(this.ytFormattedStringObserverHandlerKeys_),v=D.next();!v.done;v=D.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(v.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.V.resetForAttributedString=function(){var D=this.getRoot();!D.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),D.appendChild(this.ytAttributedStringElementRef))};
_.V.resetForFormattedString=function(){var D=this.getRoot(),v=D.querySelector("yt-attributed-string");v&&(this.ytAttributedStringElementRef=D.removeChild(v))};
_.V.textChanged=function(){this.textChanged_(this.text)};
_.V.textChanged_=function(D){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!D||!D.runs&&!D.simpleText;if(_.g("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var v=this.hostElement.firstChild;v&&v.nodeName==="FONT";){var h=v;v=v.nextSibling;this.hostElement.removeChild(h)}v=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
h=D.simpleText;var a;!h&&((a=D.runs)==null?void 0:a.length)===1&&this.isSimpleString_(D.runs[0])&&(h=D.runs[0].text);h!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.eA("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(h!==void 0){try{v.textContent=h}catch(Q){}v.textContent||(this.isEmpty=!0)}else D=D.runs,h!==void 0&&(D=[{text:h}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),D&&this.updateText_(D),
v.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.V.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)};
_.V.computeAriaLabel_=function(D){return D};
_.V.computeEllipsisTruncateStyling=function(D,v){return D&&!v};
_.V.computeUseAttributedString=function(D){return _.g("web_replace_formatted_with_attributed_string")&&uA7(D)&&!this.disableAttributedString&&!this.enableContentEditable};
_.V.setNodeStyle_=function(D,v){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.g("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?v.removeAttribute("dir"):v.setAttribute("dir","auto");v.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");v.style.color="";var h=null;this.noStyles||(D.bold&&(v.classList.add("bold"),h="bold"),D.deemphasize&&(v.classList.add("deemphasize"),h="deemphasize"),D.italics&&v.classList.add("italic"),
D.strikethrough&&v.classList.add("strikethrough"),D.errorUnderline&&(v.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),D.bracket&&v.classList.add("bracket"),D.textColor&&(v.style.color=_.rT(D.textColor)));h!==v.getAttribute("style-target")&&(h?v.setAttribute("style-target",h):v.removeAttribute("style-target"))};
_.V.setUpVisibilityLogging_=function(D,v){var h=this;this.setNodeTrackingParams_(D,v);var a;((a=v.data)==null?0:a.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(D=this.ytRendererBehavior.visibilityObserver.observe(v,function(Q){var G=h.ytRendererBehavior.getVisibilityLogger();G&&G.reportShown(Q)},this.ytRendererBehavior.visibilityOptionVisible_),v=this.ytRendererBehavior.visibilityObserver.observe(v,function(Q){var G=h.ytRendererBehavior.getVisibilityLogger();
G&&G.reportHidden(Q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(D),this.ytFormattedStringObserverHandlerKeys_.push(v))};
_.V.setNodeTrackingParams_=function(D,v){v.data||(v.data={});if((D=D.loggingDirectives?D.loggingDirectives.trackingParams:null)||v.data.trackingParams)v.data.trackingParams=D};
_.V.computeHasLinkOnly_=function(D){return!(!D||D.length!==1||this.noEndpoints||!D[0].navigationEndpoint)};
_.V.getRoot=function(){var D=this.buildScopeDomOptions();return this.enableContentEditable?_.ZW(_.ZW(this.hostElement,D).querySelector("[contenteditable]")):_.ZW(this.hostElement,D)};
_.V.fixContenteditableScope=function(){var D=function(v){v&&(v.nodeType===1&&v.classList&&(v.classList.add("style-scope"),v.classList.add("yt-formatted-string")),v.childNodes&&v.childNodes.forEach(function(h){D(h)}))};
D(this.getRoot())};
_.V.updateText_=function(D){for(var v=D.length,h=this.getRoot(),a=h.firstChild;a&&a.nodeName==="STYLE";)a=a.nextSibling;for(var Q=0;Q<v&&a;){var G=D[Q],x=_.g("remove_cr_char")&&G.text?G.text.replace("\r",""):G.text;if(this.isSimpleString_(G)&&!this.useMixedDirectionFormattedStrings)if(a.nodeName==="#text"){a.textContent!=x&&(a.textContent=x);Q++;a=a.nextSibling;continue}else break;if(_.k(G,O_))break;else if(!this.noEndpoints&&G.navigationEndpoint){if(a.nodeName!=="A")break;this.setDataOnAnchor_(a,
G.navigationEndpoint)}else if(a.nodeName!=="SPAN")break;this.setNodeStyle_(G,a);this.setUpVisibilityLogging_(G,a);a.textContent!=x&&(a.textContent=x);Q++;a=a.nextSibling}if(a)for(G=h.lastChild,a=Q?a.previousSibling:null;G&&G!=a;){try{h.removeChild(G)}catch(f){break}G=h.lastChild}Q!==v&&this.addTextNodes_(D,Q)};
_.V.addTextNodes_=function(D,v){for(var h=document.createDocumentFragment(),a=D.length;v<a;v++){var Q=D[v],G=_.g("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)h.appendChild(document.createTextNode(G));else{var x=_.k(Q,O_);if(x){if(x.image){var f=document.createElement("img");x.isCustomEmoji||f.classList.add("small-emoji");f.classList.add("emoji");x.isCustomEmoji&&(f.dataset.emojiId=x.emojiId);f.src=_.UA(x.image.thumbnails,
this.emojiSize);(Q=this.get("image.accessibility.accessibilityData.label",x))?f.alt=Q:x.shortcuts&&x.shortcuts.length>0?f.alt=x.shortcuts[0]:x.emojiId&&(f.alt=x.emojiId);h.appendChild(f);this.hasEmoji=!0}}else!this.noEndpoints&&Q.navigationEndpoint?(f=document.createElement("a"),f.classList.add("yt-simple-endpoint"),f.setAttribute("spellcheck","false"),this.setDataOnAnchor_(f,Q.navigationEndpoint)):f=document.createElement("span"),this.setNodeStyle_(Q,f),this.setUpVisibilityLogging_(Q,f),f.appendChild(document.createTextNode(G)),
h.appendChild(f)}}this.getRoot().appendChild(h)};
_.V.isSimpleString_=function(D){return(this.noEndpoints||!D.navigationEndpoint)&&!_.k(D,O_)&&(this.noStyles||!(D.bold||D.deemphasize||D.italics||D.strikethrough||D.errorUnderline||D.bracket||D.textColor))&&!D.loggingDirectives};
_.V.getRawText=function(){return _.$V(this.text)};
_.V.getFirstRunText=function(){var D;if(((D=this.text)==null?0:D.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.V.setFirstRunText=function(D){var v;((v=this.text)==null?0:v.runs)&&this.text.runs[0]&&(this.text.runs[0].text=D,this.textChanged_(this.text))};
_.V.setDataOnAnchor_=function(D,v){var h=this;!_.g("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(v)||this.isSignalServiceEndpoint_(v)?(D.onclick=this.serviceEndpointHandler_(v),Rm(D,"#")):tbA({text:this.text,command:v},function(){xOc(D,v,h.target)})};
_.V.isServiceEndpoint_=function(D){var v;return!((v=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null||!v.sendPost)};
_.V.isSignalServiceEndpoint_=function(D){return!!_.k(D,_.kE)};
_.V.serviceEndpointHandler_=function(D){var v=this;return function(h){_.L1(v.hostElement,[D]);h.preventDefault()}};
_.V.overrideAriaLabelChanged_=function(){var D=this.getRoot();this.enableContentEditable&&D&&D.setAttribute("aria-label",this.overrideAriaLabel)};
_.V.enableContentEditableChanged_=function(){var D=this,v=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),v=_.ZW(this.hostElement,v),!v.lastChild||v.lastChild instanceof HTMLElement&&v.lastChild.id!=="contenteditable-root"){var h=document.createElement("div");h.id="contenteditable-root";h.setAttribute("contenteditable","true");h.setAttribute("dir","auto");h.onfocus=function(){D.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
v.appendChild(h);this.overrideAriaLabel&&h.setAttribute("aria-label",this.overrideAriaLabel)}}else h=_.EI(this.hostElement).firstChild,h instanceof HTMLElement&&h.id==="contenteditable-root"&&_.ZW(this.hostElement,v).removeChild(h)};
_.V.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.V.getNodesForVisibilityLogging_=function(){return _.op(this.getRoot().childNodes,function(D){var v;return!((v=D.data)==null||!v.trackingParams)})};
_.V.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.V.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(v){D.reportShown(v)})}};
_.V.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(v){D.reportHidden(v)})}};
_.GT.Object.defineProperties(TA.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.g("enable_mixed_direction_formatted_strings")}}});
TA.prototype.enableContentEditableChanged_=TA.prototype.enableContentEditableChanged_;TA.prototype.overrideAriaLabelChanged_=TA.prototype.overrideAriaLabelChanged_;TA.prototype.ellipsisTruncateChanged_=TA.prototype.ellipsisTruncateChanged_;TA.prototype.textChanged=TA.prototype.textChanged;_.e([_.l(fGR.YtPlaintextBehavior),_.n("design:type",Object)],TA.prototype,"ytPlaintextBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],TA.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TA.prototype,"text",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"noEndpoints",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"noStyles",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],TA.prototype,"isDarkTheme",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],TA.prototype,"splitLines",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],TA.prototype,"forceDefaultStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],TA.prototype,"ellipsisTruncate",void 0);_.e([_.Y(),_.n("design:type",Object)],TA.prototype,"ignoreShadyDom",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.n("design:type",Boolean)],TA.prototype,"ellipsisTruncateStyling",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.n("design:type",String)],TA.prototype,"ariaLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],TA.prototype,"isEmpty",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.n("design:type",Boolean)],TA.prototype,"hasLinkOnly_",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"hasEmoji",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"disableAttributedString",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"isOverlay",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"linkInheritColor",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"noPreWrap",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"userInput",void 0);_.e([_.Y({value:16}),_.n("design:type",Number)],TA.prototype,"emojiSize",void 0);_.e([_.Y(),_.n("design:type",String)],TA.prototype,"target",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"enableContentEditable",void 0);_.e([_.Y(),_.n("design:type",String)],TA.prototype,"overrideAriaLabel",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"respectHtmlDir",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TA.prototype,"respectLangDir",void 0);_.e([_.N("plaintextOnly"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],TA.prototype,"useMixedDirectionFormattedStrings",null);_.e([_.Y({computed:"computeUseAttributedString(text)"}),_.n("design:type",Boolean)],TA.prototype,"useYtAttributedString",void 0);
_.e([_.Ni("text"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TA.prototype,"textChanged",null);_.e([_.Ni("ellipsisTruncate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TA.prototype,"ellipsisTruncateChanged_",null);_.e([_.Ni("overrideAriaLabel"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TA.prototype,"overrideAriaLabelChanged_",null);
_.e([_.Ni("enableContentEditable"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TA.prototype,"enableContentEditableChanged_",null);_.e([_.Ry({is:"yt-formatted-string",disableElementRegistration:!0})],TA);
_.w(TA,"yt-formatted-string",function(){if(oBJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden$="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;C5J===void 0&&(C5J=document.createElement("template"));var a=C5J;h.call(v,a.content.cloneNode(!0),D.content.firstChild);oBJ=D}D=oBJ;return D});var FQy;var zI1;var Ua9;var LQp;var RY=function(){var D=_.c.apply(this,arguments)||this;D.focused=!1;D.disabled=!1;D.isOverlay=!1;return D};
_.J(RY,_.c);RY.prototype.triggerDown=function(){if(!this.disabled){_.Iy(this.hostElement,"down",!0);var D;(D=this.currentAnimation)==null||D.cancel()}};
RY.prototype.triggerUp=function(){if(!this.disabled){_.Iy(this.hostElement,"down",!1);var D=this.fillElement;var v=this.strokeElement;typeof GroupEffect==="function"?(D=new GroupEffect([liA(D),N8A(v)]),D=new Animation(D,document.timeline)):D=new Hk4(D,v);this.currentAnimation=D;var h;(h=this.currentAnimation)==null||h.play()}};
_.e([_.Br(".stroke"),_.n("design:type",HTMLElement)],RY.prototype,"strokeElement",void 0);_.e([_.Br(".fill"),_.n("design:type",HTMLElement)],RY.prototype,"fillElement",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],RY.prototype,"focused",void 0);_.e([_.Y(),_.n("design:type",Object)],RY.prototype,"disabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],RY.prototype,"isOverlay",void 0);_.e([_.Ry({is:"yt-interaction",disableElementRegistration:!0})],RY);
_.w(RY,"yt-interaction",function(){if(LQp===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Ua9===void 0&&(Ua9=document.createElement("template"));var a=Ua9;h.call(v,a.content.cloneNode(!0),D.content.firstChild);LQp=D}D=LQp;return D},{mode:2});var Wt=function(){return _.c.apply(this,arguments)||this};
_.J(Wt,_.c);_.V=Wt.prototype;_.V.ready=function(){var D=this,v=_.ZW(this.hostElement).querySelector("#button");v.addEventListener("focus",function(){nvp||(nvp=new e94);D.keyboardFocused=nvp.isKeyBoardInUse()});
v.addEventListener("blur",function(){D.keyboardFocused=!1;D.rippleUp_()})};
_.V.computeTabIndex_=function(D){return D?-1:0};
_.V.computeButtonAriaPressed_=function(D){if(this.toggleable)return D?"true":"false"};
_.V.rippleDown_=function(){_.ZW(this.hostElement).querySelector("#interaction").triggerDown()};
_.V.rippleUp_=function(){_.ZW(this.hostElement).querySelector("#interaction").triggerUp()};
_.V.onPressedChanged_=function(){var D=_.EI(_.ZW(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.EI(_.ZW(this.hostElement).querySelector("#button")).children[0];D&&(D.active=this.pressed)};
Wt.prototype.onPressedChanged_=Wt.prototype.onPressedChanged_;Wt.prototype.rippleUp_=Wt.prototype.rippleUp_;Wt.prototype.rippleDown_=Wt.prototype.rippleDown_;_.e([_.Y(),_.n("design:type",String)],Wt.prototype,"label",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Wt.prototype,"disabled",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Wt.prototype,"pressed",void 0);_.e([_.Y(),_.n("design:type",Object)],Wt.prototype,"toggleable",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],Wt.prototype,"untabbable",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Wt.prototype,"keyboardFocused",void 0);_.e([_.lc("down"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wt.prototype,"rippleDown_",null);_.e([_.lc("up"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wt.prototype,"rippleUp_",null);
_.e([_.Ni("pressed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wt.prototype,"onPressedChanged_",null);_.e([_.Ry({is:"yt-icon-button",disableElementRegistration:!0})],Wt);
_.w(Wt,"yt-icon-button",function(){if(zI1===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;FQy===void 0&&(FQy=document.createElement("template"));var a=FQy;h.call(v,a.content.cloneNode(!0),D.content.firstChild);zI1=D}D=zI1;return D},{mode:2});var ZY4;var EB4=function(){var D=document.body,v=D.appendChild;if(ZY4===void 0){var h=document.createElement("template");_.p(h,'\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>');
ZY4=h}h=ZY4;v.call(D,h.content)};
document.body?EB4():window.addEventListener("DOMContentLoaded",EB4);var IGF=_.DK(["aria-"]),tk={};tk.YtRenderButtonBehavior=[_.t.YtRendererBehavior,_.wj.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!!_.xd().resolve(_.PV(_.Xw))&&_.g("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var D=this.computeHref_(this.endpoint,!0);D?Rm(this.elements_.endpoint,D):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){D=this.buttonClass.split(" ");D=_.P(D);for(var v=D.next();!v.done;v=D.next())v=v.value,_.Iy(this.hostElement,v,!0),this.elements_.button&&_.Iy(this.elements_.button,v,!0),this.elements_.text&&_.Iy(this.elements_.text,v,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(D=null,this.buttonAccessibility&&(D=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=D:D?_.Pp([_.CT(IGF)],this.elements_.button,"aria-label",D):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var D=_.xd().resolve(_.PV(_.Xw));D&&(this.keyboardFocused=D.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Nv("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,_.qc(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.qc(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(D,v){if(v)for(D=v.split(" "),D=_.P(D),v=D.next();!v.done;v=D.next())v=v.value,_.Iy(this.hostElement,v,!1),this.elements_.button&&_.Iy(this.elements_.button,v,!1),this.elements_.text&&_.Iy(this.elements_.text,v,!1)},
buttonIconChanged_:function(D){this.elements_.icon?D?(this.elements_.icon.icon=D,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.qc(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.gx(this.hostElement,"is-paper-button-with-icon",!1)):D&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.qc(this.elements_.button).appendChild(this.elements_.icon):_.qc(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.gx(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(D){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,D){var v=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(D){case "yt_icon_button_with_label":v=!0;_.Iy(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();D=_.qc(this.elements_.button).firstElementChild;
this.elements_.icon=D;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.qc(this.elements_.endpoint).appendChild(this.elements_.button);_.qc(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Nv("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;_.qc(this.elements_.button).appendChild(this.elements_.text);_.qc(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":v=!0,this.elements_.button=this.getYtIconButton_(),D=_.qc(this.elements_.button).firstElementChild,this.elements_.icon=D,this.setIconActive_(this.elements_.icon),
_.qc(this.elements_.endpoint).appendChild(this.elements_.button)}_.gx(this.hostElement,"is-icon-button",v);_.gx(this.hostElement,"is-paper-button",!v);_.gx(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 h;_.ZW((h=this.container.hostElement)!=null?h:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.qc(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(D){if(D!=void 0||this.disabled)this.disabled=D,this.elements_.button&&(this.elements_.button.disabled=D)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(D){_.g("kevlar_system_icons")&&D&&this.data&&(this.data.isSelected!==void 0?D.active=this.data.isSelected:this.data.isToggled!==void 0&&(D.active=this.data.isToggled))},
observeBasicPalette_:function(D){_.sA(this.hostElement,D)},
disabledChanged_:function(D){this.data&&this.set("data.isDisabled",D)},
onYtButtonTap_:function(D){if(this.disabled)D.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.L1(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(D=this.disableCommandHandlerOverride,!this.data||!this.data.command||D||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.g("handle_service_request_actions")||_.L1(this.hostElement,[this.serviceEndpoint]),
_.F1(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.g("handle_service_request_actions")?(D=[],this.serviceEndpoint&&D.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&D.push(this.data.command),D.length&&_.ZD(this.hostElement,D,this.hostElement)):this.data&&this.data.command&&(D=this.data.command,D.accountUnlinkCommand||D.accountLinkCommand||D.insertAdCommand||D.insertHighlightMarkerCommand||
D.createLivestreamHighlightClipCommand||D.getVideoUploadFeedbackCommand||D.musicDeletePrivatelyOwnedEntityCommand||D.ypcCancelRecurrenceEndpoint||D.getMultiSelectCommandEndpoint?_.L1(this.hostElement,[D]):_.ZD(this.hostElement,[D],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var D,v=_.ZW((D=this.container.hostElement)!=null?D:this.container);v.lastChild&&v.lastChild.tagName!="STYLE";)try{v.removeChild(v.lastChild)}catch(h){break}},
getYtIconButton_:function(){var D=this.reuseEnabled_()?_.Nv("yt-icon-button"):document.createElement("yt-icon-button"),v=_.qc(D).firstElementChild;if(v&&v.is!="yt-icon"){for(v=_.qc(D);v.lastChild;)v.removeChild(v.lastChild);v=null}v||(v=this.getIcon_(),this.setIconActive_(v),_.qc(D).appendChild(v));return D},
reuseEnabled_:function(){return _.g("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Nv("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Nv("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.gBJ={};
_.gBJ.YtButtonBehavior=[tk.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var D=this.data;D&&(this._setEndpoint(this.computeEndpoint_(D)),this._setServiceEndpoint(this.computeServiceEndpoint_(D)),this._setCommand(this.computeCommand_(D)),this._setButtonIcon(this.computeButtonIcon_(D)),this._setButtonText(this.computeButtonText_(D,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(D)),this._setButtonTooltip(this.computeTooltip_(D)),this._setButtonClass(this.computeButtonClass_(D)),this._setIconPositionType(this.computeIconPositionType_(D)),this.updateRenderedElements())},
setPressedState:function(D){var v;if((v=this.elements_)==null?0:v.button)this.elements_.button.pressed=!!D},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeEndpoint_:function(D){var v=D&&D.navigationEndpoint,h=this.get("data.command.commandMetadata.webCommandMetadata.url"),a=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return v?v:D&&D.command&&D.command.modalEndpoint?D.command:h&&!a&&D.command?D.command:null},
computeServiceEndpoint_:function(D){var v=D&&D.serviceEndpoint,h=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return v?v:h&&D.command?D.command:null},
computeCommand_:function(D){return D&&D.command||null},
computeButtonIcon_:function(D){return D&&D.icon&&D.icon.iconType?_.SQ(D.icon.iconType):null},
computeButtonText_:function(D,v){return!v&&D&&D.text||null},
computeAccessibility_:function(D){return this.get("accessibilityData.accessibilityData",D)||D&&D.accessibility||(D&&D.text?{label:this.getSimpleString(D.text)}:null)},
computeTooltip_:function(D){return D?D.isDisabled&&D.disabledTooltip||D.tooltip||null:null},
computeButtonClass_:function(D){var v=D&&D.style?D.style.toLowerCase().replace(/_/g,"-")+" ":"";v+=D&&D.size?D.size.toLowerCase().replace(/_/g,"-")+" ":"";D.colorData&&D.colorData.basicColorPaletteData&&D.colorData.basicColorPaletteData.borderColor&&(v+="palette-with-border");return v.trim()}}];var mr={};var k7J;var SoR;var Jus,pE4=function(){return Jus!==void 0?Jus:Jus=document.createElement("template")};
document.head.appendChild(pE4().content);var lGF;var Nby,Yo4=function(){return Nby!==void 0?Nby:Nby=document.createElement("template")};
document.head.appendChild(Yo4().content);var Bb9;var cus,XEy=function(){return cus!==void 0?cus:cus=document.createElement("template")};
document.head.appendChild(XEy().content);var AuR;var qop=document.head,bYJ=qop.appendChild,da4;if(AuR===void 0){var j0s=document.createElement("template");_.p(j0s,"\x3c!--css-build:shady--\x3e");j0s.content.insertBefore(XEy().content.cloneNode(!0),j0s.content.firstChild);AuR=j0s}da4=AuR;bYJ.call(qop,da4.content);var s0J=document.head,mat=s0J.appendChild,HYs;if(Bb9===void 0){var yub=document.createElement("template");_.p(yub,"\x3c!--css-build:shady--\x3e");yub.content.insertBefore(Yo4().content.cloneNode(!0),yub.content.firstChild);Bb9=yub}HYs=Bb9;mat.call(s0J,HYs.content);var wEM=document.head,eI4=wEM.appendChild,nB4;if(lGF===void 0){var OY$=document.createElement("template");_.p(OY$,"\x3c!--css-build:shady--\x3e");OY$.content.insertBefore(pE4().content.cloneNode(!0),OY$.content.firstChild);lGF=OY$}nB4=lGF;eI4.call(wEM,nB4.content);var KQp;_.HX("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");KQp=_.g("web_button_rework")&&_.nJ("BUTTON_REWORK")||_.g("web_button_rework_with_live");_.rj=function(){return _.c.apply(this,arguments)||this};
_.J(_.rj,_.c);_.rj.prototype.created=function(){this.openPopupConfig=_.eA("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.rj.prototype.onYtNavigate_=function(D){var v=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);v&&(this.ytOpenPopupBehavior.openPopup(v),D.stopPropagation(),D.preventDefault())};
_.GT.Object.defineProperties(_.rj,{template:{configurable:!0,enumerable:!0,get:function(){if(SoR===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
var v=D.content,h=v.insertBefore;k7J===void 0&&(k7J=document.createElement("template"));var a=k7J;h.call(v,a.content.cloneNode(!0),D.content.firstChild);SoR=D}D=SoR;return D}}});
_.rj.prototype.onYtNavigate_=_.rj.prototype.onYtNavigate_;_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],_.rj.prototype,"ytOpenPopupBehavior",void 0);_.e([_.l(_.gBJ.YtButtonBehavior),_.n("design:type",Object)],_.rj.prototype,"ytButtonBehavior",void 0);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],_.rj.prototype,"onYtNavigate_",null);
_.e([_.Ry({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:KQp})],_.rj);var Tb1;var RIM=_.g("web_button_rework")&&_.nJ("BUTTON_REWORK")||_.g("web_button_rework_with_live"),v2=function(){var D=_.c.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.skipCommandHandling=!1;D.alignByText=!1;D.fitToVisibleBounds=!0;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};D.onTap=function(v){_.F1(D.hostElement,"yt-service-request-sent-button-renderer",v)};
return D};
_.J(v2,_.c);_.V=v2.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.V.onClick=function(D){var v,h=this.disabled||((v=this.data)==null?void 0:v.isDisabled);v=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");h&&v&&D.stopPropagation()};
_.V.computeIcon=function(){var D,v,h=(D=this.data)==null?void 0:(v=D.icon)==null?void 0:v.iconType;if(h)return _.SQ(h)};
_.V.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.V.handleUpdateButtonAction=function(D){D=_.k(D,HXp);var v=_.k(D==null?void 0:D.updatedButton,_.Vi);if(this.data&&D&&v){var h=this.data;h.targetId&&D.targetId&&h.targetId===D.targetId&&(this.data=v)}};
_.GT.Object.defineProperties(v2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var D=this;if(this.data){var v=ngf({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.F1(D.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.F1(D.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});v.alignByText=this.alignByText;return v}}}});
_.GT.Object.defineProperties(v2,{template:{configurable:!0,enumerable:!0,get:function(){if(Tb1===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');Tb1=D}D=Tb1;return D}}});
v2.prototype.onClick=v2.prototype.onClick;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],v2.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],v2.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"isPressed",void 0);
_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"forceIconButton",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"forceIconOnly",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"forceModernIconButton",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"skipCommandHandling",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"alignByText",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"buttonTooltipPosition",void 0);
_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"fitToVisibleBounds",void 0);_.e([_.Y({computed:"computeTooltip(data)"}),_.n("design:type",Object)],v2.prototype,"tooltip",void 0);_.e([_.Y(),_.n("design:type",Object)],v2.prototype,"overrides",void 0);_.e([_.Y(),_.n("design:type",Boolean)],v2.prototype,"disabled",void 0);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],v2.prototype,"onClick",null);
_.e([_.N("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.n("design:type",Object),_.n("design:paramtypes",[])],v2.prototype,"computedButtonShape",null);_.e([_.Ry({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!RIM,cssBuildOptOut:!0}),_.Ry({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!RIM,cssBuildOptOut:!0})],v2);var iYm;var WQJ;var hE=function(){var D=_.c.apply(this,arguments)||this;D.empty_=!0;D.loadTime=Infinity;D.pendingPaint=!1;D.hasChange_=!1;D.oldThumbnail_=null;D.oldDelayedSrc_="";D.objectURL_=null;return D};
_.J(hE,_.c);_.V=hE.prototype;_.V.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.V.ready=function(){var D=this.shouldShowPlaceholder_();_.Iy(this.hostElement,"no-transition",!0);D&&this.hostElement.classList.add("with-placeholder")};
_.V.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.V.isThumbPreloaded_=function(D){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",D)};
_.V.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||tVM};
_.V.computeThumbnailSrc_=function(D){return D&&D.thumbnails?_.UA(D.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.V.computeAlt_=function(){var D=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&D||""};
_.V.thumbnailChanged_=function(){var D=_.P([this.thumbnail,this.oldThumbnail_]),v=D.next().value;D=D.next().value;this.oldThumbnail_=v;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(D=this.computeThumbnailSrc_(D),this.computeThumbnailSrc_(v)===D))return;_.g("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(v)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):v&&_.nJ("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.$R(this,this.onReload_):_.$R(this,this.onShow_):this.resetImage_();v&&(this.hostElement.style.opacity=""+v.opacity)}};
_.V.delayedSrcChanged_=function(){var D=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===D||this.resetImage_()};
_.V.setSrc_=function(D){D?(_.ZW(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ZW(this.hostElement).querySelector("#img").src=D):(_.ZW(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.V.resetImage_=function(){OYO(this.hostElement);this.empty_=!0;this.setSrc_(tVM);this.ytRendererBehavior.invalidate(!1)};
_.V.observePlaceholderColor_=function(){var D=this.thumbnail&&this.thumbnail.placeholderColor;D?this.hostElement.style.backgroundColor=_.rT(D):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.V.onLoad_=function(){_.ZW(this.hostElement).querySelector("#img").src&&_.ZW(this.hostElement).querySelector("#img").src!==tVM&&(nBo(this.hostElement),this.notifyOnLoaded&&_.F1(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.V.onError_=function(){var D=this;if(_.g("web_use_cache_for_image_fallback"))rur(_.ZW(this.hostElement).querySelector("#img").src).then(function(v){D.objectURL_=_.OQ(v).toString();D.setSrc_(D.objectURL_)}).catch(function(){_.g("kevlar_woffle_fallback_image")&&D.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.V.onPrescanVisible=function(){this.onShow_()};
_.V.onVisible=function(){if(_.g("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.V.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var D=this.computeSrc_();D!==_.ZW(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))}};
_.V.onReload_=function(){this.empty_=!1;var D=this.computeSrc_();D!==_.ZW(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))};
_.V.shouldShowPlaceholder_=function(){return _.g("kevlar_thumbnail_bg")};
hE.prototype.observePlaceholderColor_=hE.prototype.observePlaceholderColor_;hE.prototype.delayedSrcChanged_=hE.prototype.delayedSrcChanged_;hE.prototype.thumbnailChanged_=hE.prototype.thumbnailChanged_;_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],hE.prototype,"alt",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],hE.prototype,"ariaHidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],hE.prototype,"ariaLabel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],hE.prototype,"hidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],hE.prototype,"id",void 0);_.e([_.l(_.U$.YtVisibilityBehavior),_.n("design:type",Object)],hE.prototype,"ytVisibilityBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",String)],hE.prototype,"delayedSrc",void 0);
_.e([_.Y(),_.n("design:type",Object)],hE.prototype,"thumbnail",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],hE.prototype,"loaded",void 0);_.e([_.Y(),_.n("design:type",Boolean)],hE.prototype,"notifyOnLoaded",void 0);_.e([_.Y(),_.n("design:type",Number)],hE.prototype,"height",void 0);_.e([_.Y(),_.n("design:type",Number)],hE.prototype,"width",void 0);_.e([_.Y({value:function(){return"width"}}),
_.n("design:type",String)],hE.prototype,"dimension",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],hE.prototype,"fit",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],hE.prototype,"fitHeight",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],hE.prototype,"fitWidth",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],hE.prototype,"objectFit",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],hE.prototype,"objectPosition",void 0);_.e([_.Y(),_.n("design:type",String)],hE.prototype,"preferredThumbnail",void 0);_.e([_.Y({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.n("design:type",String)],hE.prototype,"alt_",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],hE.prototype,"sharedTooltipText",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],hE.prototype,"ftlEligible",void 0);_.e([_.Y({value:void 0}),_.n("design:type",String)],hE.prototype,"observeHiddenOption",void 0);_.e([_.Y({value:"observe_once"}),_.n("design:type",String)],hE.prototype,"observePrescanOption",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],hE.prototype,"roundedContainer",void 0);
_.e([_.qi("thumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hE.prototype,"thumbnailChanged_",null);_.e([_.qi("delayedSrc"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hE.prototype,"delayedSrcChanged_",null);_.e([_.Ni("thumbnail.placeholderColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hE.prototype,"observePlaceholderColor_",null);
_.e([_.Ry({is:"yt-img-shadow",disableElementRegistration:!0})],hE);var tVM=_.nJ("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Zp()(hE,"yt-img-shadow",function(){if(WQJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;iYm===void 0&&(iYm=document.createElement("template"));var a=iYm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);WQJ=D}D=WQJ;return D},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var gPq;_.aS=new _.Uj("SCREEN_MANAGER_TOKEN");gPq=new _.Uj("LOG_INITIAL_SCREEN_TOKEN");var ru1=_.w1({entities:{}});var u04=_.e3(ru1)(ru1.entities,{selectSfvAudioItemPlaybackState:function(D,v){var h,a;D=(a=_.gR(D,"sfvAudioItemCurrentlyPlayingEntity",v))!=null?a:void 0;return(h=D==null?void 0:D.sfvAudioItemPlaybackState)!=null?h:void 0},
playlistLoopStateEntitySelector:function(D,v){var h;return(h=_.gR(D,"playlistLoopStateEntity",v))!=null?h:void 0}});_.$$=_.H(function(D){function v(vA){return _.k(vA,_.fH)}
function h(){var vA=a().isTogglingDisabled||B()&&a().toggledIsTogglingDisabled,f7=vA||E()?B():!B();A(f7);b(!1);if(!vA){var xL;(xL=x)==null||xL(!!f7)}var kL;((kL=G)==null?0:kL())||_.mj(_.xd().resolve(_.aS),a().trackingParams);var Z4;if(!f7||!v(a().defaultButtonViewModel)||(Z4=G)!=null&&Z4()){var S2;!v(a().toggledButtonViewModel)||((S2=G)==null?0:S2())||_.mj(_.xd().resolve(_.aS),v(a().toggledButtonViewModel).trackingParams)}else _.mj(_.xd().resolve(_.aS),v(a().defaultButtonViewModel).trackingParams)}
var a=D.data,Q=D.buttonShapeOverrides,G=D.disableExplicitClickLogging,x=D.onToggle,f=D.style,C=D.useOutlinedIcon,U=D.className,L=function(){var vA,f7;return B()?(vA=D.animatedTextPropsToggled)==null?void 0:vA.call(D):(f7=D.animatedTextPropsDefault)==null?void 0:f7.call(D)},Z=_.SM(function(){return L()?Object.assign({},L(),{shouldAnimate:d()}):void 0},void 0,"Zp4uoe"),E=function(){var vA;
return((vA=O())==null?void 0:vA.isToggled)!==void 0},I=_.P(_.lL(function(){var vA,f7,xL;
return E()?(vA=O())==null?void 0:vA.isToggled:(xL=Q==null?void 0:(f7=Q())==null?void 0:f7.toggled)!=null?xL:a().isToggled})),S=I.next().value;
I=I.next().value;var B=S,A=I;I=_.P(_.lL(function(){var vA,f7;return(vA=D.animatedTextPropsToggled)==null?void 0:(f7=vA.call(D))==null?void 0:f7.shouldAnimate}));
S=I.next().value;I=I.next().value;var d=S,b=I;S=_.P(_.Zq(!1,void 0,"mq3Zfe"));var W=S.next().value,K=S.next().value,O=_.Th(function(vA){a:{var f7=a().entityKey,xL=a().toggledStateEntitySelectorType;if(xL)switch(xL){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!f7)break;vA=u04.selectSfvAudioItemPlaybackState(vA,f7);if(vA==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){vA={isToggled:!0};break a}if(vA){vA={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":vA=
{isToggled:_.RTf(vA).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":vA={isToggled:_.RTf(vA).includes("engagement-panel-live-chat-item-section")};break a;default:_.yR(new _.XH("Error: entitySelectorType defined but not matched in selector.",vA,xL))}vA=void 0}return vA}),R=function(){return Object.assign({},Q==null?void 0:Q(),{onToggle:h,
toggleable:!0,toggled:B(),focused:W()})};
return _.F("toggle-button-view-model",{"on:focusin":_.Jd(function(){var vA=_.xd().resolve(_.PV(_.Xw));vA&&K(vA.isKeyBoardInUse());return!1}),
"on:focusout":_.Jd(function(){K(!1);return!1})},_.F(_.z,{cond:function(){return B()?v(a().toggledButtonViewModel):v(a().defaultButtonViewModel)},
then:function(vA){return _.F(_.s$,{data:vA,className:U,style:f,useOutlinedIcon:C,buttonOverrides:R,animatedTextProps:Z})}}))},"Y");
_.$$.idomCompat={callbacks:{onToggle:!0}};_.zh(_.H(function(D){return _.F("yt-toggle-button-view-model",{class:function(){var v;return(v=D.scopingClassName)==null?void 0:v.call(D)}},_.F(_.$$,{data:function(){var v;
return(v=D.data)==null?void 0:v.call(D)},
buttonShapeOverrides:function(){var v;return(v=D.overrides)==null?void 0:v.call(D)},
animatedTextPropsDefault:function(){var v;return(v=D.animatedTextPropsDefault)==null?void 0:v.call(D)},
animatedTextPropsToggled:function(){var v;return(v=D.animatedTextPropsToggled)==null?void 0:v.call(D)},
disableExplicitClickLogging:function(){var v;return(v=D.disableExplicitClickLogging)==null?void 0:v.call(D)},
onToggle:function(v){var h;return(h=D.onToggle)==null?void 0:h.call(D,v)},
style:function(){var v;return(v=D.style)==null?void 0:v.call(D)},
useOutlinedIcon:function(){var v;return(v=D.useOutlinedIcon)==null?void 0:v.call(D)},
className:function(){var v;return(v=D.className)==null?void 0:v.call(D)}}))},"Z"),"yt-toggle-button-view-model",{props:{data:_.gj,
buttonShapeOverrides:_.gj,overrides:_.gj,animatedTextPropsDefault:_.gj,animatedTextPropsToggled:_.gj,disableExplicitClickLogging:_.gj,onToggle:_.C_,style:_.gj,useOutlinedIcon:_.gj,className:_.gj,scopingClassName:_.gj}});var Qd=function(){return _.c.apply(this,arguments)||this};
_.J(Qd,_.c);Qd.prototype.onTap=function(D){D.stopPropagation();D=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.sy("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D})):this.ytLiveChatReduxBehavior.dispatch(_.Xe("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D}))};
_.GT.Object.defineProperties(Qd.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.k(this.data.toggleButton,_.oA),v;if(Number(((v=this.likeCountState)==null?void 0:v.likeCountIfIndifferentNumber)||"0")===0){var h;v=((h=this.data.likeCountPlaceholder)==null?void 0:h.content)||""}else{var a,Q,G;v=((a=this.likeCountState)==null?void 0:(Q=a.likeCountIfIndifferent)==null?void 0:Q.content)||((G=this.data.likeCountPlaceholder)==null?void 0:G.content)||""}var x,f;h=((x=this.likeCountState)==null?void 0:(f=
x.likeCountIfLiked)==null?void 0:f.content)||"1";x=_.k(D.toggledButtonViewModel,_.fH);return Object.assign({},D,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.k(D.defaultButtonViewModel,_.fH),{title:v})},toggledButtonViewModel:{buttonViewModel:Object.assign({},x,{title:h})}})}}}});
Qd.prototype.onTap=Qd.prototype.onTap;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Qd.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],Qd.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Qd.prototype,"data",void 0);
_.e([_.Y({selectorArgs:["data.likeCountEntityKey"],selector:iBI}),_.n("design:type",Object)],Qd.prototype,"likeCountState",void 0);_.e([_.Y({selectorArgs:["data.engagementStateKey"],selector:rz8}),_.n("design:type",Object)],Qd.prototype,"engagementState",void 0);_.e([_.N("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Qd.prototype,"isLiked",null);
_.e([_.N("data","likeCountState","isLiked"),_.n("design:type",Object),_.n("design:paramtypes",[])],Qd.prototype,"toggleButton",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Qd.prototype,"onTap",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Qd);
_.w(Qd,"yt-live-chat-like-button-view-model",function(){if(vBp===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;DaJ===void 0&&(DaJ=document.createElement("template"));var a=DaJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);vBp=D}D=vBp;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var D3J;var v4s;var GP=function(){return _.c.apply(this,arguments)||this};
_.J(GP,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GP.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],GP);
_.w(GP,"yt-live-chat-paid-message-footer-renderer",function(){if(v4s===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;D3J===void 0&&(D3J=document.createElement("template"));var a=D3J;h.call(v,a.content.cloneNode(!0),D.content.firstChild);v4s=D}D=v4s;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var hN4;var aiM;var $3s;var Qky,GoM=function(){if(Qky!==void 0)return Qky;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;$3s===void 0&&($3s=document.createElement("template"));var a=$3s;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return Qky=D};var Vd=function(){return _.c.apply(this,arguments)||this};
_.J(Vd,_.c);Vd.prototype.onTap=function(D){D.stopPropagation()};
_.GT.Object.defineProperties(Vd.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.k(this.data.replyButton,_.fH),v,h,a,Q,G,x,f,C=Number(((v=this.replyCountState)==null?void 0:v.replyCountNumber)||"0")===0?(h=this.data)==null?void 0:(a=h.replyCountPlaceholder)==null?void 0:a.content:((Q=this.replyCountState)==null?void 0:(G=Q.replyCount)==null?void 0:G.content)||((x=this.data)==null?void 0:(f=x.replyCountPlaceholder)==null?void 0:f.content)||"",U;return Object.assign({},
D,{title:C,accessibilityText:(U=this.replyCountState)==null?void 0:U.replyButtonAccessibilityText})}}}});
_.GT.Object.defineProperties(Vd,{template:{configurable:!0,enumerable:!0,get:function(){return GoM()}}});
Vd.prototype.onTap=Vd.prototype.onTap;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Vd.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],Vd.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Vd.prototype,"data",void 0);
_.e([_.Y({selectorArgs:["data.replyCountEntityKey"],selector:function(D,v){return _.gR(D.entities,"replyCountEntity",v)}}),
_.n("design:type",Object)],Vd.prototype,"replyCountState",void 0);_.e([_.N("data","replyCountState"),_.n("design:type",Object),_.n("design:paramtypes",[])],Vd.prototype,"buttonViewModel",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Vd.prototype,"onTap",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Vd);
_.w(Vd,"yt-live-chat-reply-button-view-model",function(){return GoM()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var VT4;var Pdm;var P2=function(){var D=_.c.apply(this,arguments)||this;D.ariaLabel="";return D};
_.J(P2,_.c);
P2.prototype.dataChanged=function(){for(var D=(0,_.kU)(_.ZW(this.hostElement).querySelector("#image"));D.firstChild;)D.removeChild(D.firstChild);if(this.data)if(this.data.icon){var v=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(v.polymerController.icon="yt-sys-icons:shield-filled",v.polymerController.defaultToFilled=!0):v.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();D.appendChild(v)}else if(this.data.customThumbnail){v=document.createElement("img");
var h=_.j0q(this.data.customThumbnail.thumbnails,16);h?(v.src=h,D.appendChild(v),v.setAttribute("alt",this.hostElement.ariaLabel||"")):_.yR(new _.XH("Could not compute URL for thumbnail",this.data.customThumbnail))}};
P2.prototype.identity=function(D){return D};
P2.prototype.computeType=function(D){return Iq(D||void 0)};
P2.prototype.dataChanged=P2.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],P2.prototype,"data",void 0);_.e([_.Y({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.n("design:type",Object)],P2.prototype,"ariaLabel",void 0);_.e([_.Y({computed:"computeType(data)",reflectToAttribute:!0}),_.n("design:type",String)],P2.prototype,"type",void 0);
_.e([_.Y({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.n("design:type",String)],P2.prototype,"sharedTooltipText",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("live_chat_enable_new_moderator_badge")}}),
_.n("design:type",Boolean)],P2.prototype,"enableNewModeratorBadge",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P2.prototype,"dataChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],P2);
_.w(P2,"yt-live-chat-author-badge-renderer",function(){if(Pdm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;VT4===void 0&&(VT4=document.createElement("template"));var a=VT4;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Pdm=D}D=Pdm;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var x3y;var MTs;var x$=function(){return _.c.apply(this,arguments)||this};
_.J(x$,_.c);_.V=x$.prototype;_.V.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"}}}}};
_.V.computeBadgesInsideChip=function(D){return D?D.filter(function(v){return Iq(v.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.V.computeBadgesOutsideChip=function(D){return this.prependChatBadges||!D?[]:D.filter(function(v){v=Iq(v.liveChatAuthorBadgeRenderer);return v!=="verified"&&v!=="owner"})};
_.V.computeBadgesBeforeChip=function(D){return this.prependChatBadges&&D?D.filter(function(v){v=Iq(v.liveChatAuthorBadgeRenderer);return v!=="verified"&&v!=="owner"}):[]};
_.V.computeIsHighlighted=function(D,v){var h=!!vD4(D,"owner"),a=!!vD4(D,"verified");D=!!vD4(D,"moderator");return(h||a&&!D)&&!v};
_.V.computeAuthorType=function(D){return DoL(D)};
_.V.computeAuthorClass=function(D,v){return v?(D?D+" ":"")+"single-line":D};
_.V.onSeedColorChanged=function(){_.g("live_chat_author_name_color_usernames")||_.g("live_chat_seed_color_usernames")||_.g("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):_.g("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
x$.prototype.onSeedColorChanged=x$.prototype.onSeedColorChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],x$.prototype,"authorName",void 0);_.e([_.Y(),_.n("design:type",Array)],x$.prototype,"authorBadges",void 0);
_.e([_.Y({computed:"computeAuthorType(authorBadges)"}),_.n("design:type",String)],x$.prototype,"authorType",void 0);_.e([_.Y({computed:"computeAuthorClass(authorType, singleLine)"}),_.n("design:type",String)],x$.prototype,"authorClass",void 0);_.e([_.Y({computed:"computeBadgesInsideChip(authorBadges)"}),_.n("design:type",Array)],x$.prototype,"badgesInsideChip",void 0);_.e([_.Y({computed:"computeBadgesOutsideChip(authorBadges)"}),_.n("design:type",Array)],x$.prototype,"badgesOutsideChip",void 0);
_.e([_.Y({computed:"computeBadgesBeforeChip(authorBadges)"}),_.n("design:type",Array)],x$.prototype,"badgesBeforeChip",void 0);_.e([_.Y({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.n("design:type",Boolean)],x$.prototype,"isHighlighted",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],x$.prototype,"singleLine",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],x$.prototype,"disableHighlighting",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],x$.prototype,"dashboardMoneyFeed",void 0);_.e([_.Y({value:_.g("live_chat_prepend_badges"),reflectToAttribute:!0}),_.n("design:type",Boolean)],x$.prototype,"prependChatBadges",void 0);_.e([_.Y(),_.n("design:type",String)],x$.prototype,"authorNameColor",void 0);_.e([_.Br("#author-name"),_.n("design:type",HTMLDivElement)],x$.prototype,"username",void 0);
_.e([_.Ni("authorNameColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],x$.prototype,"onSeedColorChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],x$);
_.w(x$,"yt-live-chat-author-chip",function(){if(MTs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;x3y===void 0&&(x3y=document.createElement("template"));var a=x3y;h.call(v,a.content.cloneNode(!0),D.content.firstChild);MTs=D}D=MTs;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var fis;var Cd$;var Mt=function(){var D=_.c.apply(this,arguments)||this;D.debounceCommand=_.b2(function(v){D.ytComponentBehavior.resolveCommand(v)},1500);
return D};
_.J(Mt,_.c);Mt.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var D=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",v,h,a=this.isHearted?(v=this.data)==null?void 0:v.unheartCommand:(h=this.data)==null?void 0:h.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.sy("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:D}));(D=_.Rq(a))&&this.debounceCommand(D)}};
_.GT.Object.defineProperties(Mt.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D,v;if(!((D=this.data)==null?0:(v=D.creatorThumbnail)==null?0:v.sources))return{};D={thumbnails:[]};v={};v.url=this.data.creatorThumbnail.sources[0].url;D.thumbnails.push(v);return D}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((h=this.engagementState)==null?void 0:h.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}}});
Mt.prototype.onTap=Mt.prototype.onTap;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],Mt.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Mt.prototype,"data",void 0);
_.e([_.Y({selectorArgs:["data.engagementStateKey"],selector:rz8}),_.n("design:type",Object)],Mt.prototype,"engagementState",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Mt.prototype,"thumbnailDetails",null);_.e([_.N("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Mt.prototype,"isHearted",null);_.e([_.N("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Mt.prototype,"isEditable",null);
_.e([_.N("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Mt.prototype,"showCreatorView",null);_.e([_.N("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Mt.prototype,"showButton",null);_.e([_.N("data","isHearted"),_.n("design:type",String),_.n("design:paramtypes",[])],Mt.prototype,"label",null);_.e([_.N("data","isHearted"),_.n("design:type",Object),_.n("design:paramtypes",[])],Mt.prototype,"heartHoverText",null);
_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Mt.prototype,"onTap",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Mt);
_.w(Mt,"yt-live-chat-creator-heart-view-model",function(){if(Cd$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;fis===void 0&&(fis=document.createElement("template"));var a=fis;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Cd$=D}D=Cd$;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var fO=function(){};
_.J(fO,HC);fO.prototype.JSC$13119_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:DD("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
fO.prototype.getApiPaths=function(){return[]};
fO.prototype.getExtension=function(){};
fO.prototype.JSC$13119_buildRequest=function(){};var o4R={},Fls=(o4R.GET_DATASYNC_IDS=qP(fO),o4R);var zNy,U34,Llp,Ms4,CO,Iiy,Uzs,E4y,Zv9;zNy="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");U34=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.uL=function(D,v,h,a,Q,G,x,f,C){this.endpointMap=D;this.networkManager=v;this.authService=h;this.responseProcessorMap=a;this.innertubeResponseStore=Q;this.contextProcessors=G;this.asyncContextProcessors=x;this.localInnertubeRouter=f;this.requestSequencer=C;this.inflightRequests=new Map;D.signalEndpointMap||(D.signalEndpointMap={});D.signalEndpointMap=Object.assign({},Fls,D.signalEndpointMap)};
Llp=function(D,v,h,a,Q,G,x,f,C){if(_.uL.instance!==void 0){if(a=_.uL.instance,D=[D!==a.endpointMap,v!==a.networkManager,h!==a.authService,Q!==a.innertubeResponseStore,G!==a.contextProcessors,x!==a.asyncContextProcessors,f!==a.localInnertubeRouter],D.some(function(U){return U}))throw new _.XH("InnerTubeTransportService is already initialized",D);
}else _.uL.instance=new _.uL(D,v,h,a,Q,G,x,f,C)};
_.v4=function(D,v,h){var a=a===void 0?XaR:a;var Q=Uzs(D,v);return Q?new _.IB(function(G,x){var f,C,U,L,Z;return _.M(function(E){switch(E.nextAddress){case 1:return E.yield(Q,2);case 2:f=E.yieldResult;C=f.JSC$13119_getRequest(v,h,a);if(!C){x(new _.XH("Error: Failed to build request for command.",v));E.jumpTo(0);break}hV(C.input);L=((U=C.requestShell)==null?void 0:U.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){Z=Zv9(C.config,L);E.jumpTo(4);break}return E.yield(E4y(C.config,L),5);case 5:Z=
E.yieldResult;case 4:G(Iiy(D,C,Z)),_.YI(E)}})}):_.H8(new _.XH("Error: No request builder found for command.",v))};
Ms4=function(D,v,h,a){var Q=Q===void 0?XaR:Q;var G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R;return _.M(function(vA){switch(vA.nextAddress){case 1:G=u57(v,D.endpointMap);if(!G)throw new _.XH("Error: No streaming request builder found for command",v);x=G.JSC$13119_getRequest(v,h,Q);if(!x)throw new _.XH("Failed to build YtRequest for streaming Command",v);if((f=D.localInnertubeRouter)==null||!f.shouldPreferLocalResponse(x.input,x.innerTubeRequest)){vA.jumpTo(2);break}return vA.yield(D.localInnertubeRouter.localInnertubeResponse(x.input,
x.innerTubeRequest),3);case 3:return C=vA.yieldResult,U={},C.playerResponse&&(CO(D,C.playerResponse,x),U.player=C.playerResponse,(L=a)==null||L(U,C)),C.watchNextResponse&&(CO(D,C.watchNextResponse,x),U.content=C.watchNextResponse,(Z=a)==null||Z(U,C)),vA.return(U);case 2:I=((E=x.requestShell)==null?void 0:E.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){S=Zv9(x.config,I);vA.jumpTo(4);break}return vA.yield(E4y(x.config,I),5);case 5:S=vA.yieldResult;case 4:return d=(A=(B=x.requestShell)==
null?void 0:B.headers)!=null?A:{},x.requestShell=Object.assign({},x.requestShell,{headers:Object.assign({},d,S)}),b=Object.assign({},x.requestShell),W=JSON.stringify(x.innerTubeRequest),x.requestShell.method==="POST"&&(b=Object.assign({},b,{body:W})),K=function(f7,xL){CO(D,xL.playerResponse||xL.watchNextResponse||xL.reelItemWatchResponse||xL.reelWatchSequenceResponse,x);a==null||a(f7,xL)},O={},vA.yield(g4$(D.networkManager,x.input,b,K),6);
case 6:return O=vA.yieldResult,((R=x.config)==null?0:R.responseTick)&&_.ea(x.config.responseTick),vA.return(O)}})};
_.My=function(D,v,h,a,Q){Q=Q===void 0?{authStrategy:{identity:XaR}}:Q;var G=G===void 0?!0:G;var x=function(){};
x=ev7(yxf(h));v.context||(v.context=_.MW8(a,G));return new _.IB(function(f){var C,U,L,Z,E;return _.M(function(I){if(I.nextAddress==1)return C=BmO(h),U=_.u4(C),D.authService.syncHeaders?(L=Zv9(Q,U),I.jumpTo(2)):I.yield(E4y(Q,U),3);I.nextAddress!=2&&(L=I.yieldResult);Z=cTL(BmO(h));E={input:Z,requestShell:DD(Z),innerTubeRequest:v,config:Q};f(Iiy(D,E,L,x));_.YI(I)})})};
CO=function(D,v,h){var a;if(v&&!(v==null?0:(a=v.sequenceMetaData)==null?0:a.skipProcessing)&&D.responseProcessorMap){a=_.P(zNy);for(var Q=a.next();!Q.done;Q=a.next())Q=Q.value,D.responseProcessorMap[Q]&&D.responseProcessorMap[Q].handleResponse(v,h)}};
Iiy=function(D,v,h,a){a=a===void 0?function(){}:a;
var Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL,kL,Z4,S2,s8,Xf,dJ,R4,sF,rc,I4,q1,jt,rr,Zb,VO,Pm,Yp,C3;return _.M(function(ZJ){switch(ZJ.nextAddress){case 1:x=(Q=v.config)==null?void 0:(G=Q.storeStrategy)==null?void 0:G.storeKey;if(!(x&&D.innertubeResponseStore&&D.innertubeResponseStore.has(x))||((f=v.config)==null?0:(C=f.storeStrategy)==null?0:C.disableCache)){ZJ.jumpTo(2);break}return ZJ.yield(D.innertubeResponseStore.get(x),3);case 3:if((U=ZJ.yieldResult)&&!U.isExpired())return ZJ.return(Promise.resolve(_.Vf(U)));
case 2:if(!((L=v)==null?0:(Z=L.innerTubeRequest)==null?0:Z.context)){ZJ.jumpTo(4);break}E=v.innerTubeRequest.context;if(!(D.asyncContextProcessors&&D.asyncContextProcessors.length>0)){ZJ.jumpTo(5);break}I=[];S=_.P(D.asyncContextProcessors);for(B=S.next();!B.done;B=S.next())A=B.value,d=A.processContext(v),d.wrappedPromise_&&I.push(d.wrappedPromise_);if(!(I.length>0)){ZJ.jumpTo(5);break}return ZJ.yield(Promise.all(I),5);case 5:b=_.P(D.contextProcessors||[]),W=b.next();case 8:if(W.done){ZJ.jumpTo(4);
break}K=W.value;return ZJ.yield(K.processContext(E),9);case 9:W=b.next();ZJ.jumpTo(8);break;case 4:if((O=D.localInnertubeRouter)==null||!O.shouldPreferLocalResponse(v.input,v.innerTubeRequest)){ZJ.jumpTo(12);break}return ZJ.yield(D.localInnertubeRouter.localInnertubeResponse(v.input,v.innerTubeRequest),13);case 13:return R=ZJ.yieldResult,CO(D,R,v),ZJ.return(R);case 12:return(xL=(f7=v.config)==null?void 0:f7.requestKey)&&D.inflightRequests.has(xL)?vA=D.inflightRequests.get(xL):(kL=JSON.stringify(v.innerTubeRequest),
s8=(S2=(Z4=v.requestShell)==null?void 0:Z4.headers)!=null?S2:{},v.requestShell=Object.assign({},v.requestShell,{headers:Object.assign({},s8,h)}),Xf=Object.assign({},v.requestShell),v.requestShell.method==="POST"&&(Xf=Object.assign({},Xf,{body:kL})),((dJ=v.config)==null?0:dJ.requestTick)&&_.ea(v.config.requestTick),R4=function(){return D.networkManager.fetch(v.input,Xf,v.config)},vA=D.requestSequencer?koJ(D.requestSequencer,v,R4):R4(),xL&&D.inflightRequests.set(xL,vA)),ZJ.yield(vA,14);
case 14:(sF=ZJ.yieldResult)&&_.g("web_streaming_player")&&Array.isArray(sF)&&(sF=sF[0].playerResponse);if(sF&&"error"in sF&&((rc=sF)==null?0:(I4=rc.error)==null?0:I4.details))for(q1=sF.error.details,jt=_.P(q1),rr=jt.next();!rr.done;rr=jt.next())Zb=rr.value,(VO=Zb["@type"])&&U34.indexOf(VO)>-1&&(delete Zb["@type"],sF=Zb);xL&&D.inflightRequests.has(xL)&&D.inflightRequests.delete(xL);((Pm=v.config)==null?0:Pm.responseTick)&&_.ea(v.config.responseTick);if(sF||(Yp=D.localInnertubeRouter)==null||!Yp.canProvideFallbackResponse(v.input,
v.innerTubeRequest)){ZJ.jumpTo(15);break}return ZJ.yield(D.localInnertubeRouter.localFallbackInnertubeResponse(v.input,v.innerTubeRequest),16);case 16:sF=ZJ.yieldResult;case 15:return CO(D,sF,v),((C3=v.config)==null?0:C3.processorTick)&&_.ea(v.config.processorTick),a(),ZJ.return(sF||void 0)}})};
_.DY=function(D,v){return rSf(v,D.endpointMap)};
Uzs=function(D,v){D=DjL(v,D.endpointMap);if(D!==void 0)return Promise.resolve(D)};
E4y=function(D,v){var h,a,Q,G;return _.M(function(x){if(x.nextAddress==1){Q=(h=D)==null?void 0:(a=h.authStrategy)==null?void 0:a.sessionIndex;var f=x.yield;var C=_.E9(nVc({sessionIndex:Q}));return f.call(x,C,2)}G=x.yieldResult;return x.return(Promise.resolve(Object.assign({},v8A(v),G)))})};
Zv9=function(D,v){var h;D=D==null?void 0:(h=D.authStrategy)==null?void 0:h.sessionIndex;h=nVc({sessionIndex:D});return Object.assign({},v8A(v),h)};var Sf$,Jz4,px1,lim,N8m,Yfb,Xx4,AzR,zP,qfR,bv$,czs,d3$;Sf$=0;Jz4=/tone[1-5]/;px1=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");lim="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
N8m=Number.MAX_SAFE_INTEGER;Yfb=RegExp("\ufe0f","g");_.oS=function(D){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;D&&_.B81(this,D)};
_.B81=function(D,v){try{_.kd(v,{context:D,onSuccess:function(a,Q){Array.isArray(Q)?D.load(Q):(a=new _.XH("Emoji manager JSON response was not an array!",{response:Q}),_.mV(a))},
onError:function(a){a=new _.XH("Failed to retrieve emoji manager initial JSON data!",{url:v,statusCode:_.Uz(a).toString()});_.yR(a)}})}catch(a){var h=new _.XH("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:v});
_.yR(h)}};
_.oS.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.oS.prototype.load=function(D,v){if(v)if(D.length)D=D.concat(v.emojis);else{this.emojis=v.emojis;this.emojiMap=v.emojiMap;this.emojiShortcutMap=v.emojiShortcutMap;this.emojiShortcutCharMap=czs(v);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=v.emojiRegex;return}this.emojis=[].concat(_.j_(new Set(this.emojis.concat(D))));this.hasInitializedShortcutCharMap=!1;D=Array(this.emojis.length);for(v=0;v<this.emojis.length;v++){var h=this.emojis[v];if(h.emojiId){this.emojiMap[h.emojiId]=h;this.emojiMap[h.emojiId].index=
v;for(var a=0;h.shortcuts&&a<h.shortcuts.length;a++)this.emojiShortcutMap[h.shortcuts[a].toLocaleLowerCase()]=h;D[v]=h.isCustomEmoji&&h.shortcuts?h.shortcuts[0]:h.emojiId}}D.sort(function(Q,G){return G.length-Q.length});
if(D.length)try{this.emojiRegex=new RegExp(D.join("|").replace("*","\\*"),"gi")}catch(Q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Xx4=function(D,v){v=_.P(v);for(var h=v.next();!h.done;h=v.next()){var a=h.value;if(a.emojiId&&D.emojiMap[a.emojiId]){h=Object.assign({},D.emojiMap[a.emojiId],a);D.emojiMap[a.emojiId]=h;var Q=void 0;h.index&&((Q=D.emojis[h.index])==null?void 0:Q.emojiId)===a.emojiId&&(D.emojis[h.index]=h);a=void 0;if((a=h.shortcuts)==null?0:a.length)for(D.hasInitializedShortcutCharMap=!1,a=_.P(h.shortcuts),Q=a.next();!Q.done;Q=a.next())D.emojiShortcutMap[Q.value.toLocaleLowerCase()]=h}}};
AzR=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(_.re.getInstance(),2);if(a.nextAddress!=3)return(v=a.yieldResult)?a.yield(v.get("ytlc-emoji-pref"),3):a.return();(h=a.yieldResult)&&Xx4(D,Object.keys(h).map(function(Q){return{emojiId:Q,stickyPrefId:h[Q]}}).filter(function(Q){return!!Q.emojiId&&!!Q.stickyPrefId}));
_.YI(a)})};
_.Fc=function(D,v,h){return(D=D.emojiMap[v])&&(!D.isLocked||h!==void 0&&h)?D:void 0};
zP=function(D,v,h){h=_.Fc(D,v,h===void 0?!1:h);var a=v.match("\u200d");h&&D.skinTone!==0&&(D=(a==null?void 0:a.length)===1?_.Fc(D,v.replace("\u200d",px1[D.skinTone]+"\u200d")):_.Fc(D,v+px1[D.skinTone]))&&(h=D);return h};
qfR=function(D,v){var h=D.emojiMap[v];return(h==null?0:h.stickyPrefId)?D.emojiMap[h.stickyPrefId]:zP(D,v)};
_.zN=function(D,v){D=D.emojiShortcutMap[v.toLocaleLowerCase()];return!D||D.isLocked?null:D};
bv$=function(D,v,h){return czs(D,h===void 0?!1:h)[v]||{}};
czs=function(D,v){v=v===void 0?!1:v;if(!D.hasInitializedShortcutCharMap){D.hasInitializedShortcutCharMap=!0;for(var h=0;h<D.emojis.length;h++){var a=D.emojis[h];if(!(a.isLocked||v&&a.isCustomEmoji&&a.emojiId&&!D.pickerCustomEmojiIds.includes(a.emojiId)))for(var Q=0;a.shortcuts&&Q<a.shortcuts.length;Q++){var G=a.shortcuts[Q];G.startsWith(":_")&&a.isCustomEmoji&&(D.emojiShortcutCharMap[":_"]==null&&(D.emojiShortcutCharMap[":_"]=Object.create(null)),D.emojiShortcutCharMap[":_"][G]=a);if(!(G.length<3||
!a.isCustomEmoji&&Jz4.test(G))){var x=G.substr(0,3).toLocaleLowerCase();D.emojiShortcutCharMap[x]==null&&(D.emojiShortcutCharMap[x]=Object.create(null));D.emojiShortcutCharMap[x][G]=a}}}}return D.emojiShortcutCharMap};
_.oS.prototype.createEmoji=function(D,v){v=v===void 0?!0:v;var h=document.createElement("img");D.isCustomEmoji||h.classList.add("small-emoji");h.classList.add("emoji");h.classList.add("yt-formatted-string");h.src=D.image?_.UA(D.image.thumbnails,this.emojiSize)||"":"";var a=void 0;D.image&&D.image.accessibility&&D.image.accessibility.accessibilityData&&(a=D.image.accessibility.accessibilityData.label);h.alt=a?a:(D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId)||"";D.isCustomEmoji&&(h.dataset.emojiId=
D.emojiId);_.zw&&(h.setAttribute("contenteditable","false"),h.setAttribute("unselectable","on"));v&&(D.shortcuts&&D.shortcuts.length&&h.setAttribute("shared-tooltip-text",D.shortcuts[0]),h.id="emoji-"+Sf$++);return h};
_.oS.prototype.createDocumentFragment=function(D,v,h,a){v=v===void 0?!1:v;h=h===void 0?!0:h;a=a===void 0?!1:a;D=D.replace(Yfb,"");for(var Q=document.createDocumentFragment(),G=0,x,f=0;(x=this.emojiRegex.exec(D))!=null;){var C=_.Fc(this,x[0])||_.zN(this,x[0]);!C||C.isCustomEmoji&&!v||(C=this.createEmoji(C,h),G!==x.index&&Q.appendChild(document.createTextNode(D.substring(G,x.index))),Q.appendChild(C),G=x.index+x[0].length,f++)}if(!a||f)return Q.appendChild(document.createTextNode(D.substr(G))),Q};
d3$=function(D,v,h){var a,Q,G,x,f,C,U,L,Z;return _.M(function(E){if(E.nextAddress==1){if(!v.emojiId||!D.emojiMap[v.emojiId])return E.return();a=Object.assign({},D.emojiMap[v.emojiId],{stickyPrefId:h});D.emojiMap[v.emojiId]=a;v.index&&((Q=D.emojis[v.index])==null?void 0:Q.emojiId)===v.emojiId&&(D.emojis[v.index]=a);if((G=v.shortcuts)==null?0:G.length)for(D.hasInitializedShortcutCharMap=!1,x=_.P(v.shortcuts),f=x.next();!f.done;f=x.next())C=f.value,D.emojiShortcutMap[C.toLocaleLowerCase()]=a;return E.yield(_.re.getInstance(),
2)}if(E.nextAddress!=4)return(U=E.yieldResult)?E.yield(U.get("ytlc-emoji-pref"),4):E.jumpTo(0);Z=(L=E.yieldResult)!=null?L:{};Z[v.emojiId]=h;return E.yield(U.set("ytlc-emoji-pref",Z,N8m),0)})};
_.Ua=new _.oS;var m3F;_.LO={};
m3F={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.g("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:_.g("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 hQ(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var D=_.ZW(this.hostElement||this).querySelector("#inline-action-button-container");D&&D.setAttribute("aria-hidden","true");this.menuButton=_.ZW(this.hostElement).querySelector("#menu-button")},
attached:function(){var D=this.menuButton;D&&(D.addEventListener("focusin",_.pZ(this,this.onMenuButtonFocus_)),D.addEventListener("focusout",_.pZ(this,this.onMenuButtonBlur_)))},
detached:function(){var D=this.menuButton;D&&(D.removeEventListener("focusin",_.pZ(this,this.onMenuButtonFocus_)),D.removeEventListener("focusout",_.pZ(this,this.onMenuButtonBlur_)))},
identity:_.mI,truthy:function(D){return!!D},
computeTimestampString:function(D){return D?D.timestampText?this.getSimpleString(D.timestampText):this.TIME_FORMATTER.format(new Date(D.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(D){return D},
computeMenuVisible_:function(D,v){return D||v},
computeHasInlineActionButtons:function(D){if(!D)return!1;var v,h;return!((v=D.inlineActionButtons)==null||!v.length)||!((h=D.additionalInlineActionButtons)==null||!h.length)},
createDocumentFragmentFromString:function(D){var v=_.Ua.createDocumentFragment.bind(_.Ua),h;if((h=this.participantsManager)==null||!h.viewerRegex)return v(D);h=document.createDocumentFragment();for(var a=0,Q;(Q=this.participantsManager.viewerRegex.exec(D))!=null;){if(Q.index>0){var G=":"+Q[0]+":";if((_.Fc(_.Ua,G)||_.zN(_.Ua,G))&&D.indexOf(G)===Q.index-1)continue}h.appendChild(v(D.substring(a,Q.index)));a=document.createElement("span");a.appendChild(v(Q[0]));a.classList.add("mention");h.appendChild(a);
a=Q.index+Q[0].length}h.appendChild(v(D.substring(a)));return h},
createDocumentFragment:function(D){var v=document.createDocumentFragment();if(D.simpleText)return v.appendChild(this.createDocumentFragmentFromString(D.simpleText)),v;if(!D.runs)return v;for(var h=0;h<D.runs.length;h++){var a=D.runs[h];if(a.emoji)v.appendChild(_.Ua.createEmoji(a.emoji));else if(a.text)if(a.navigationEndpoint){var Q=document.createElement("a");Q.classList.add("yt-simple-endpoint");xOc(Q,a.navigationEndpoint);_.ZW(Q).appendChild(this.createDocumentFragmentFromString(a.text));v.appendChild(Q)}else v.appendChild(this.createDocumentFragmentFromString(a.text))}return v},
hasModerationOverlayVisible:function(){var D;return((D=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:D.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(D){D.composedPath().some(function(v){return(v=v instanceof Element?v:null)?v.tagName&&(v.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||v.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.g("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(D)},
colorFromDecimal:function(D){return jDL(D)},
markAsDeleted:function(D,v){this.set("data.deletedStateMessage",D);this.set("data.showOriginalContentMessage",v)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(D){if(this.data.contextMenuEndpoint){var v=_.xd().resolve(_.Tb),h=this.data.contextMenuEndpoint,a;(a=_.uL.instance)&&_.DY(a,h)?(v=jk9(v,h),a=_.My(a,{},v)):a=_.skF(v,h);a.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);D&&D.stopPropagation()}},
handleGetContextMenuResponse_:function(D){var v=_.uL.instance;v&&_.DY(v,{liveChatEndpoint:{}})||(D=D.response);D.liveChatItemContextMenuSupportedRenderers&&D.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(D.liveChatItemContextMenuSupportedRenderers.menuRenderer);D.actions&&_.zU(this.hostElement,"yt-live-chat-actions",[D.actions])},
handleGetContextMenuError:function(D){if(D instanceof Error||D instanceof Object||D instanceof String)var v=D;_.mV(new _.XH("Error encountered calling GetLiveChatItemContextMenu",v))},
showContextMenu_:function(D){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:D}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.F1(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.F1(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.LO.YtLiveChatItemBehavior=[m3F,_.oY.YtComponentBehavior,_.y1.YtOpenPopupBehavior];_.Zw=function(){};var HvJ;var yzy;var wxm;var eN4;var Ea=function(){var D=_.c.apply(this,arguments)||this;D.active=!1;D.identity=_.mI;return D};
_.J(Ea,_.c);Ea.prototype.dataChanged=function(){this.active=!1};
Ea.prototype.onClick=function(){_.F1(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Ea.prototype.dataChanged=Ea.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],Ea.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ea.prototype,"active",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ea.prototype,"dataChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Ea);
_.w(Ea,"yt-live-chat-text-input-field-suggestion",function(){if(eN4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;wxm===void 0&&(wxm=document.createElement("template"));var a=wxm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);eN4=D}D=eN4;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});_.IS=function(D,v,h){return CustomEvent.call(this,D,{detail:{value:v,path:h}})||this};
_.J(_.IS,CustomEvent);_.g2=function(){var D=_.c.apply(this,arguments)||this;D.viewerName=null;D.actionMap={"yt-live-chat-actions":"onChatMessage_"};D.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];D.PARTICIPANT_TIME_USEC_=3E8;return D};
_.J(_.g2,_.c);_.V=_.g2.prototype;_.V.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.V.addParticipant=function(D){var v=_.joc(this.participants,D,function(a,Q){a=a[Object.keys(a)[0]];Q=Q[Object.keys(Q)[0]];a=String(_.$V(a.authorName)).toLowerCase();Q=String(_.$V(Q.authorName)).toLowerCase();return a<Q?-1:a==Q?0:1}.bind(this));
if(v>=0){var h=this.participants[v];h[Object.keys(h)[0]].timestampUsec&&this.splice("participants",v,1,D)}else this.splice("participants",-v-1,0,D);D=D[Object.keys(D)[0]];v=_.$V(D.authorName).toLocaleLowerCase();h=v.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(h)||(this.allParticipantsCharMap_[h]={});this.allParticipantsCharMap_[h][v]=D};
_.V.getAuthorsFromPrefix=function(D){return this.allParticipantsCharMap_.hasOwnProperty(D)?this.allParticipantsCharMap_[D]:null};
_.V.computeViewerRegex_=function(D){if(!D)return null;D=D.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var v=D.indexOf("@")===0&&_.g("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(v+D.replace(/ /g,"\\s*")+"|^"+D.replace(/ /g,"\\s*")+"$|^"+D.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+D.replace(/ /g,"\\s*")+"$|(?<=\\s)"+D.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.V.checkForStaleParticipants_=function(){var D=this;this.trimOldParticipants_();this.asyncHandle_&&xzc(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.hD(function(){D.checkForStaleParticipants_()},3E4))};
_.V.onChatMessage_=function(D){var v=this,h=Date.now()*1E3;D.forEach(function(a){if(a=_.k(a,FGs)){a=a.item;var Q=Object.keys(a)[0];v.SUPPORTED_ITEM_TYPES_.indexOf(Q)!=-1&&a[Q].timestampUsec>=h-v.PARTICIPANT_TIME_USEC_&&v.addParticipant(a)}},this);
this.checkForStaleParticipants_()};
_.V.trimOldParticipants_=function(){for(var D=Date.now()*1E3,v=this.participants.length-1;v>=0;v--){var h=this.participants[v];h=h[Object.keys(h)[0]];h.timestampUsec&&h.timestampUsec<D-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",v,1)}};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],_.g2.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],_.g2.prototype,"viewerName",void 0);_.e([_.Y({computed:"computeViewerRegex_(viewerName)"}),_.n("design:type",Object)],_.g2.prototype,"viewerRegex",void 0);_.e([_.Y({value:function(){return[]},
notify:!0}),_.n("design:type",Array)],_.g2.prototype,"participants",void 0);_.e([_.Ry({is:"yt-live-chat-participants-manager",noInjection:!0})],_.g2);var n44=/.*([:@#].*?)$/,k$=/\u00a0/g,Ov$=String.fromCharCode(160),Klb={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"},Su=function(){var D=_.c.apply(this,arguments)||this;D.disabled=!1;D.liveChatRichMessageInput=null;D.messageInput=null;D.isValidWithNoInputText=!1;D.suggestions=[];D.emojiManager=_.Ua;D.inputMethodEditorActive=
!1;D.suggestionIndex=-1;D.JSC$14118_lastSuggestionRange=null;return D};
_.J(Su,_.c);_.V=Su.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.V.attached=function(){_.U1&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.V.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.V.dataChanged=function(){if(!this.ignoreColorMapping){var D=!1,v={},h;for(h in Klb)this.data&&this.data.hasOwnProperty(h)&&(v[Klb[h]]=this.colorFromDecimal(this.data[h]),D=!0);D&&_.SB(this.hostElement,v)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.V.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.V.colorFromDecimal=function(D){D=Math.floor(Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
_.V.preventDrag=function(D){D.dataTransfer&&(D.dataTransfer.dropEffect="none");D.preventDefault()};
_.V.preventResize=function(D){D.returnValue=!1};
_.V.onInputChange=function(){var D=this.characterCount,v=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&v&&v.remove();if(!v&&this.characterCount>this.maxCharacterLimit){var h=window.getSelection();if(h){var a=h.getRangeAt(0);h.removeAllRanges();h.addRange(a)}}if(h=this.getCurrentRange())a=this.calculateTextBeforeRange(h),this.completeEmojisInRange(h,a,!0)||this.updateSuggestions(h,a);a=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(a);
_.F1(this.hostElement,"yt-live-chat-message-input-change",a);v&&this.characterCount===0&&v.remove();h&&h.commonAncestorContainer.parentElement.id==="input"&&h.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>D):h&&!h.collapsed&&h.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(D=this.input.childNodes.length-1;D>=0;D--)this.input.childNodes[D].nodeName==="BR"&&this.input.childNodes[D].remove()};
_.V.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.V.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var D=this.getCurrentRange();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.mergeOverflowText=function(D){if(D){var v=document.createRange();v.selectNodeContents(D);v=v.extractContents();this.input.insertBefore(v,D)}};
_.V.checkRangeAtEndOfInput=function(){var D=this.getCurrentRange();if(D){var v=_.ZW(this.hostElement).querySelector("#overflow-text"),h=document.createRange();v&&v.previousSibling?v.previousSibling instanceof HTMLImageElement?h.selectNode(v.previousSibling):h.selectNodeContents(v.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?h.selectNode(this.input.lastChild):h.selectNodeContents(this.input.lastChild));h.collapse(!1);return h.isPointInRange(D.startContainer,
D.startOffset)}return!1};
_.V.handleOverflowText=function(D){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var v=_.ZW(this.hostElement).querySelector("#overflow-text"),h=this.getCurrentRange();this.input.normalize();D=this.checkRangeAtEndOfInput()&&D;this.mergeOverflowText(v);for(var a,Q=0,G=0,x,f=this.input.childNodes,C=0;C<f.length;C++){var U=f[C];U instanceof Text?(G+=U.textContent.length,G>this.maxCharacterLimit&&(a=U,Q=this.maxCharacterLimit+U.textContent.length-G)):U instanceof HTMLImageElement&&
(a=void 0,G=U.dataset.emojiId&&((a=this.data)==null?0:a.emojiCharacterCount)?G+this.data.emojiCharacterCount:G+U.alt.length,a=this.input,Q=C);if(G>this.maxCharacterLimit&&a){x=document.createRange();x.collapse(!1);v?(G=this.input.lastChild.previousSibling,G instanceof Text?x.setEnd(this.input.lastChild.previousSibling,G.textContent.length):G instanceof HTMLImageElement&&x.setEnd(this.input,this.input.childNodes.length-1)):x.selectNodeContents(this.input);x.setStart(a,Q);break}}x&&(a=!1,h&&(D=x.isPointInRange(h.startContainer,
h.startOffset-1)),v||(v=document.createElement("span"),v.id="overflow-text",v.textContent="",v.setAttribute("contenteditable","true"),_.ZW(_.ZW(this.hostElement).querySelector("#input")).appendChild(v),a=!0),v&&(h=x.extractContents(),v.insertBefore(h,v.firstChild),D&&v.firstChild&&(h=document.createRange(),a?h.setStartAfter(v.lastChild):h.setStartAfter(v.firstChild),h.collapse(!0),v=window.getSelection(),v.removeAllRanges(),v.addRange(h))))}};
_.V.checkForDuplicateSpans=function(){for(var D=0;D<this.input.childNodes.length;D++){var v=this.input.childNodes[D];if(v.nodeName==="SPAN"){var h=document.createRange();h.selectNodeContents(v);h=h.extractContents();this.input.insertBefore(h,v);v.remove()}}this.handleOverflowText(!0)};
_.V.getCurrentRange=function(){var D=window.getSelection();return D&&D.rangeCount?D.getRangeAt(0).cloneRange():null};
_.V.getInputRange=function(){var D=this.getCurrentRange();if(D){for(var v=D.commonAncestorContainer,h=!1,a=_.ZW(this.hostElement).querySelector("#input");v;){if(v===a){h=!0;break}v=v.parentNode}h||(D=null)}D||(D=this.getRangeAtEnd());return D};
_.V.getRangeAtEnd=function(){var D=document.createRange(),v=_.ZW(this.hostElement).querySelector("#input").lastChild;!v||v.nodeName!=="#text"&&v.nodeName!=="SPAN"?(D.selectNodeContents(_.ZW(this.hostElement).querySelector("#input")),D.collapse(!1)):v.nodeName==="#text"?D.setStart(v,v.textContent.length):D.setStart(v,v.childNodes.length);return D};
_.V.getChatParticipantSuggestions=function(D,v,h,a){var Q=_.g("live_chat_enable_handles_web_text_input_update");if(v)for(var G in v)if(G.indexOf(D)===0||Q&&G.indexOf(h+D)===0){var x=v[G],f=_.$V(x.authorName);a.push({suggestion:{author:!0,authorType:h,image:x.authorPhoto,alt:f,text:f}});if(a.length>=64)break}};
_.V.getSuggestions=function(D){var v=[],h=D.substring(0,3),a=bv$(_.Ua,h,!0);if(a)for(var Q in a)if(Q.toLocaleLowerCase().indexOf(D)===0){var G=a[Q];if(G&&G.emojiId){if(G=qfR(_.Ua,G.emojiId)){var x=void 0,f=void 0,C=void 0,U=void 0,L=((x=G.image)==null?0:(f=x.accessibility)==null?0:(C=f.accessibilityData)==null?0:C.label)||G.isCustomEmoji?(U=G.shortcuts)==null?void 0:U[0]:G.emojiId;v.push({suggestion:{emoji:!0,image:G.image,alt:L,text:Q,textToInsertWhenSelected:G.isCustomEmoji?Q:L}})}if(v.length>=
64)break}}if(!this.participantsManager)return null;if(h.indexOf("@")===0||h.indexOf("#")===0)a=h.charAt(0),D=D.substring(1),Q=_.g("live_chat_enable_handles_web_text_input_update"),h.indexOf("@")===0&&Q&&(Q=this.participantsManager.getAuthorsFromPrefix(h.substring(0,2)),this.getChatParticipantSuggestions(D,Q,a,v)),h=h.substring(1),h=this.participantsManager.getAuthorsFromPrefix(h),this.getChatParticipantSuggestions(D,h,a,v);return v?v.sort(function(Z,E){return E.suggestion.text<Z.suggestion.text?-1:
E.suggestion.text===Z.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(D){var v=_.g("live_chat_enable_handles_web_text_input_update"),h=D.authorType;v=D.text.indexOf(h)===0&&v?D.text+Ov$:h+D.text+Ov$;D.emoji?this.insertTextAtRange(this.JSC$14118_lastSuggestionRange,D.textToInsertWhenSelected||""):D.author&&this.insertTextAtRange(this.JSC$14118_lastSuggestionRange,v)};
_.V.updateSuggestionsAtCaret=function(){var D=this.getCurrentRange();D&&this.updateSuggestions(D,this.calculateTextBeforeRange(D))};
_.V.offsetStartOfRangeBy=function(D,v){for(;v>0;)if(D.startOffset-v>=0){D.setStart(D.startContainer,D.startOffset-v);break}else{v=D.startContainer instanceof HTMLImageElement?v-D.startContainer.alt.length:v-D.startOffset;var h=D.startContainer.previousSibling;if(!h){D.setStart(D.startContainer,0);break}if(_.g("live_chat_require_space_for_autocomplete_emoji")){var a=void 0,Q=void 0;D.setStart(h,((a=h)==null?void 0:(Q=a.textContent)==null?void 0:Q.length)||0)}else D.setStart(h,h.childNodes.length||
0)}};
_.V.updateSuggestions=function(D,v){var h=this;this.JSC$14118_lastSuggestionRange&&(this.JSC$14118_lastSuggestionRange.detach(),this.JSC$14118_lastSuggestionRange=null);if((v=n44.exec(v))&&v.length&&(v=v[v.length-1].toLocaleLowerCase(),v.length>2&&(this.offsetStartOfRangeBy(D,v.length),this.JSC$14118_lastSuggestionRange=D,(D=this.getSuggestions(v))&&D.length))){this.suggestions=D;_.$R(this,function(){_.ZW(h.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.V.completeEmojisInRange=function(D,v,h){var a=v.replace(/[\s\xa0]+$/,"");v=v.length-a.length;a=a.split(" ");a=a[a.length-1].trim().toLocaleLowerCase();var Q=a.lastIndexOf(":");if(h&&!v&&Q!==a.length-1)return!1;Q!==-1&&(h=a.lastIndexOf(":",Q-1),h!==-1&&(a=a.substring(h)));if((h=_.zN(_.Ua,a))&&h.emojiId){h=qfR(_.Ua,h.emojiId)||null;this.offsetStartOfRangeBy(D,a.length+v);var G,x,f,C;a=(((G=h)==null?0:G.isCustomEmoji)?(x=h)==null?void 0:(f=x.shortcuts)==null?void 0:f[0]:(C=h)==null?void 0:C.emojiId)||
"";v&&(a+=Ov$);this.insertTextAtRange(D,a);this.dropdown.opened=!1;return!0}return!1};
_.V.onSuggestion=function(D){this.insertSuggestion(D.detail);this.dropdown.opened=!1};
_.V.onKeyPress=function(D){D.keyCode===13&&(D.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.F1(this.hostElement,"yt-live-chat-send-message"))};
_.V.completeEmojis=function(){var D=document.createRange(),v=_.ZW(this.hostElement).querySelector("#input").lastChild;v?D.setStart(v,v.childNodes.length):(D.selectNodeContents(_.ZW(this.hostElement).querySelector("#input")),D.collapse(!1));this.completeEmojisInRange(D,this.calculateTextBeforeRange(D),_.g("live_chat_require_space_for_autocomplete_emoji"))};
_.V.maybePreventTextFormatting=function(D){!_.Ip||!D.ctrlKey&&!D.metaKey||D.keyCode!==66&&D.keyCode!==73||(D.stopImmediatePropagation(),D.preventDefault())};
_.V.onKeyDown=function(D){this.maybePreventTextFormatting(D);if(this.dropdown.opened)switch(D.keyCode){case 27:this.dropdown.opened=!1;D.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;D.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.V.onKeyUp=function(D){switch(D.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.zw)this.onInputChange()};
_.V.changeSuggestionIndex=function(D){if(this.dropdown.opened){var v=_.ZW(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<v.children.length&&(v.children[this.suggestionIndex].active=!1);var h=this.suggestions.length;this.suggestionIndex=(D+h)%h;D=v.children[this.suggestionIndex];D.active=!0;v.scrollTop=D.offsetTop}};
_.V.onInputPaste=function(D){D.preventDefault();(D=D.clipboardData)&&D.types&&(D=D.getData("text/plain")||"",D=D.replace(/\n/g,""),this.insertText(D));(D=this.getCurrentRange())&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.onFocus=function(){this._setFocused(!0)};
_.V.onBlur=function(){this._setFocused(!1)};
_.V.insertText=function(D){this.insertTextAtRange(this.getInputRange(),D)};
_.V.insertTextAtRange=function(D,v){if(D&&(D.collapsed||D.deleteContents(),v=_.Ua.createDocumentFragment(v,!0,!1))){for(var h=_.P((v==null?void 0:v.childNodes)||[]),a=h.next();!a.done;a=h.next()){a=a.value;var Q=void 0,G=void 0,x=void 0,f=void 0,C=void 0;(x=(Q=window)==null?void 0:(G=Q.ShadyCSS)==null?void 0:G.ScopingShim)==null||(C=(f=x).scopeNode)==null||C.call(f,a,this.hostElement.localName)}h=v.lastChild;D.insertNode(v);this.focused||this.input.focus();if(this.focused){D=D.cloneRange();D.selectNodeContents(h);
D.collapse(!1);if(v=window.getSelection())v.removeAllRanges(),v.addRange(D);D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}D=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(D);_.F1(this.hostElement,"yt-live-chat-message-input-change",D)}};
_.V.setLiveChatRichMessageInput=function(D){_.ZW(_.ZW(this.hostElement).querySelector("#input")).textContent="";if(D&&D.textSegments){for(var v=0;v<D.textSegments.length;v++){var h=D.textSegments[v];h.text?_.ZW(_.ZW(this.hostElement).querySelector("#input")).appendChild(_.Ua.createDocumentFragment(h.text,!0,!1)):h.emojiId&&(h=_.Fc(_.Ua,h.emojiId))&&_.ZW(_.ZW(this.hostElement).querySelector("#input")).appendChild(_.Ua.createEmoji(h,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.V.setText=function(D){this.setLiveChatRichMessageInput(D?{textSegments:[{text:D}]}:null)};
_.V.calculateTextBeforeRange=function(D){var v="",h=D.startContainer;if(h&&h instanceof Text){var a;v=((a=h.textContent)==null?void 0:a.substring(0,D.startOffset))||"";h=h.previousSibling}for(;h&&h instanceof Text;)v=h.textContent+v,h=h.previousSibling;return v.replace(k$," ")};
_.V.calculateLiveChatRichMessageInput=function(){for(var D=[],v="",h=_.ZW(_.ZW(this.hostElement).querySelector("#input")).childNodes,a=0;a<h.length;a++){var Q=h[a];Q instanceof Text?v+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(v&&(D.push({text:v.replace(k$," ")}),v=""),D.push({emojiId:Q.dataset.emojiId})):v+=Q.alt)}v&&D.push({text:v.replace(k$," ")});if(h=_.ZW(this.hostElement).querySelector("#overflow-text")){v="";h=h.childNodes;for(a=0;a<h.length;a++)Q=h[a],Q instanceof Text?
v+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(v&&(D.push({text:v.replace(k$," ")}),v=""),D.push({emojiId:Q.dataset.emojiId})):v+=Q.alt);v&&D.push({text:v.replace(k$," ")})}return{textSegments:D}};
_.V.computeCharacterCount=function(D){if(!D||!D.textSegments)return 0;for(var v=0,h=0;h<D.textSegments.length;h++){var a=D.textSegments[h];if(a.text)v+=a.text.length;else if(a.emojiId){var Q=void 0;if((Q=this.data)==null?0:Q.emojiCharacterCount)v+=this.data.emojiCharacterCount;else{var G=Q=void 0,x=void 0;v+=((G=_.Fc(_.Ua,(Q=a)==null?void 0:Q.emojiId))==null?void 0:(x=G.shortcuts)==null?void 0:x[0].length)||0}}}return v};
_.V.characterCountChanged=function(){_.F1(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.V.focusedChanged=function(){this.hostElement.dispatchEvent(new _.IS("focused-changed",this.focused))};
_.V.focus=function(){this.setFocus(!1)};
_.V.focusAtEnd=function(){this.setFocus(!0)};
_.V.setFocus=function(D){D=D?this.getRangeAtEnd():this.getInputRange();_.ZW(this.hostElement).querySelector("#input").focus();var v=window.getSelection();v&&(v.removeAllRanges(),v.addRange(D))};
_.V.insertEmoji=function(D){var v,h=((D==null?0:D.isCustomEmoji)?(v=D.shortcuts)==null?void 0:v[0]:D==null?void 0:D.emojiId)||"";this.insertText(h)};
_.V.computeText=function(D){if(!D||!D.textSegments)return"";for(var v="",h=0;h<D.textSegments.length;h++){var a=D.textSegments[h];if(a.text)v+=a.text;else if(a.emojiId){var Q=void 0,G=void 0,x=void 0;v+=((G=_.Fc(_.Ua,(Q=a)==null?void 0:Q.emojiId))==null?void 0:(x=G.shortcuts)==null?void 0:x[0])||""}}return v};
_.V.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.GT.Object.defineProperties(Su.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
Su.prototype.focusedChanged=Su.prototype.focusedChanged;Su.prototype.characterCountChanged=Su.prototype.characterCountChanged;Su.prototype.onSuggestion=Su.prototype.onSuggestion;Su.prototype.onMessageSet=Su.prototype.onMessageSet;Su.prototype.dataChanged=Su.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Su.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Su.prototype,"disabled",void 0);_.e([_.N("disabled"),_.n("design:type",Number),_.n("design:paramtypes",[])],Su.prototype,"inputTabIndex",null);_.e([_.N("data.maxCharacterLimit"),_.Y({readOnly:!0,notify:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Su.prototype,"maxCharacterLimit",null);
_.e([_.N("liveChatRichMessageInput"),_.Y({readOnly:!0,notify:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Su.prototype,"characterCount",null);_.e([_.N("maxCharacterLimit, characterCount"),_.Y({readOnly:!0,notify:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Su.prototype,"remainingCharacterCount",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Su.prototype,"isChatMessageInput",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Su.prototype,"inputExpanded",void 0);_.e([_.Y({readOnly:!0,notify:!0}),_.n("design:type",Object)],Su.prototype,"liveChatRichMessageInput",void 0);_.e([_.Y(),_.n("design:type",Object)],Su.prototype,"messageInput",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Su.prototype,"ignoreColorMapping",void 0);_.e([_.N("characterCount"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Su.prototype,"hasText",null);
_.e([_.Y(),_.n("design:type",Object)],Su.prototype,"isValidWithNoInputText",void 0);_.e([_.N("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.Y(),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Su.prototype,"isInputValid",null);_.e([_.Y({readOnly:!0,value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Su.prototype,"focused",void 0);_.e([_.Y(),_.n("design:type",Array)],Su.prototype,"suggestions",void 0);
_.e([_.Y(),_.n("design:type",_.oS)],Su.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",_.g2)],Su.prototype,"participantsManager",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Su.prototype,"noUnderline",void 0);_.e([_.Y(),_.n("design:type",Object)],Su.prototype,"inputMethodEditorActive",void 0);_.e([_.Br("#dropdown"),_.n("design:type",Object)],Su.prototype,"dropdown",void 0);_.e([_.Br("#input"),_.n("design:type",HTMLElement)],Su.prototype,"input",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Su.prototype,"dataChanged",null);_.e([_.Ni("messageInput"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Su.prototype,"onMessageSet",null);_.e([_.lc("yt-live-chat-select-suggestion"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Su.prototype,"onSuggestion",null);
_.e([_.Ni("characterCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Su.prototype,"characterCountChanged",null);_.e([_.Ni("focused"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Su.prototype,"focusedChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Su);
_.T89=_.w(Su,"yt-live-chat-text-input-field-renderer",function(){if(yzy===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;HvJ===void 0&&(HvJ=document.createElement("template"));var a=HvJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);yzy=D}D=yzy;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var JE=function(){var D=_.c.apply(this,arguments)||this;D.buttonOverrides={style:"overlay",type:"filled"};D.allowAnimations=!1;D.modern=_.g("web_button_rework_with_live");D.noPadding=!1;return D};
_.J(JE,_.c);_.V=JE.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.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"}}}}};
_.V.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.attached=function(){this.allowAnimations=!1};
_.V.dataChanged=function(){if(this.data){var D={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.SB(this.hostElement,D);this.allowAnimations=!0}};
_.V.messageChanged=function(){var D,v=(D=this.data)==null?void 0:D.message;D=_.ZW(_.ZW(this.hostElement).querySelector("#message"));D.textContent="";v&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(v))};
_.V.computeShowOnlyHeader=function(D,v){return!D||D.pdgLikeButton||D.replyButton||D.buyFlowButton?!1:this.isEmpty(D,v)&&!D.footer};
_.V.computeShowFooterDivider=function(D,v,h){return D?!!D.footer&&!this.isEmpty(D,v)&&!h:!1};
_.V.computeIsUserEditable=function(D){return!!D.inputField};
_.V.computeHasHeartButton=function(D){return(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.V.computeNoveltyImage=function(D){if(D.headerOverlayImage&&D.headerOverlayImage.thumbnails.length){var v=D.headerOverlayImage.thumbnails[0],h,a;if((h=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(a=h.loggingDirectives)==null?0:a.trackingParams){var Q,G;Duf((Q=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(G=Q.loggingDirectives)==null?void 0:G.trackingParams)}return v.width||0}return 0};
_.V.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.V.inputFocus=function(){var D=_.ZW(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");D&&D.focus()};
_.V.inputInsertEmoji=function(D){var v=_.ZW(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");v&&v.insertEmoji(D)};
_.V.inputMessage=function(){var D=_.ZW(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),v;return D&&((v=this.data)==null?0:v.inputField)?(D.completeEmojis(),_.WX(D.liveChatRichMessageInput)):null};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.V.isEmpty=function(D,v){return D?D.empty||!(D.message||D.inputField||v):!0};
_.V.onLowerBuyButtonClick=function(){var D,v=_.k((D=this.data)==null?void 0:D.buyButton,_.Vi);v&&v.trackingParams&&!moo(v.command)&&(D=_.d4(v.trackingParams))&&(v=_.wd())&&_.hA(v,D)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.GT.Object.defineProperties(JE.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
JE.prototype.isDeletedChanged=JE.prototype.isDeletedChanged;JE.prototype.messageChanged=JE.prototype.messageChanged;JE.prototype.dataChanged=JE.prototype.dataChanged;_.e([_.l(gDs.YtPdgLiveChatItemBehavior),_.n("design:type",Object)],JE.prototype,"ytPdgLiveChatItemBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],JE.prototype,"ytLiveChatReduxBehavior",void 0);
_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],JE.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],JE.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:rz8}),_.n("design:type",Object)],JE.prototype,"engagementState",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.n("design:type",Boolean)],JE.prototype,"isUserEditable",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.n("design:type",Boolean)],JE.prototype,"hasHeartButton",void 0);_.e([_.Y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.n("design:type",Boolean)],JE.prototype,"showOnlyHeader",void 0);
_.e([_.Y({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.n("design:type",Boolean)],JE.prototype,"showFooterDivider",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Object)],JE.prototype,"allowAnimations",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],JE.prototype,"dashboardMoneyFeed",void 0);_.e([_.Y({computed:"computeNoveltyImage(data)"}),_.n("design:type",Number)],JE.prototype,"noveltyWidth",void 0);
_.e([_.Y({computed:"computeAuthorPhotoSize(data)"}),_.n("design:type",Number)],JE.prototype,"authorPhotoSize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],JE.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],JE.prototype,"noPadding",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JE.prototype,"dataChanged",null);
_.e([_.Ni("data.message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JE.prototype,"messageChanged",null);_.e([_.N("data","dashboardMoneyFeed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],JE.prototype,"hideLowerBumper",null);_.e([_.Ni("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JE.prototype,"isDeletedChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],JE);
_.w(JE,"yt-live-chat-paid-message-renderer",function(){if(aiM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;hN4===void 0&&(hN4=document.createElement("template"));var a=hN4;h.call(v,a.content.cloneNode(!0),D.content.firstChild);aiM=D}D=aiM;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var RNy;var ivJ;var pO=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.J(pO,_.XS);pO.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.eA("openPopupConfig")};
_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],pO.prototype,"ytOpenPopupBehavior",void 0);_.e([_.AV()],pO);_.lK=[_.y1.YtOpenPopupBehavior,pO.prototype];var Wl4;var ag=[_.YV,iDR,_.$G,_.BR,_.hP,_.LJM,_.AQ,_.rp4,_.bp,g82];_.g("web_watch_get_updated_metadata_response_processing")&&ag.push(_.Lq4);_.g("web_continuation_response_processing")&&ag.push(_.iL);var K7r=new _.Uj("RESPONSE_RECEIVED_COMMANDS"),Lfq=new _.Uj("RESPONSE_RECEIVED_COMMANDS");var MXI="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),xjO=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],PxI=["GET_UNSEEN_NOTIFICATION_COUNT"];var Nt=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;D.serviceEndpointHandlers=[];return D};
_.J(Nt,_.XS);Nt.prototype.created=function(){var D=this;this.endpointHandlerActionMap={"yt-service-request":function(v,h,a,Q){var G;return VXL(D.hostElement,v,h,a,Q,D.serviceEndpointHandlers,(G=D.onEntitiesUpdated)==null?void 0:G.bind(D))}}};
Nt.prototype.attached=function(){_.rf(_.iD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Nt.prototype.detached=function(){_.uD(_.iD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.e([_.AV()],Nt);_.tTF=[Nt.prototype];var rzF,uU1=function(){return rzF!==void 0?rzF:rzF=document.createElement("template")};
document.head.appendChild(uU1().content);var Du9;var vgF=document.head,hTR=vgF.appendChild,a1t;if(Du9===void 0){var $u9=document.createElement("template");_.p($u9,"\x3c!--css-build:shady--\x3e");$u9.content.insertBefore(uU1().content.cloneNode(!0),$u9.content.firstChild);Du9=$u9}a1t=Du9;hTR.call(vgF,a1t.content);var QFF,G59=function(){return QFF!==void 0?QFF:QFF=document.createElement("template")};
document.head.appendChild(G59().content);var VG9;var PBR=document.head,xu1=PBR.appendChild,MGR;if(VG9===void 0){var f1R=document.createElement("template");_.p(f1R,"\x3c!--css-build:shady--\x3e");f1R.content.insertBefore(G59().content.cloneNode(!0),f1R.content.firstChild);VG9=f1R}MGR=VG9;xu1.call(PBR,MGR.content);var CBR;_.HX("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.HX("sharingRendererButtons","buttonRenderer","ytd-button-renderer");CBR=_.g("web_button_rework")&&_.nJ("BUTTON_REWORK")||_.g("web_button_rework_with_live");_.Y$=function(){var D=_.c.apply(this,arguments)||this;D.isPressed=!1;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return D};
_.J(_.Y$,_.c);_.V=_.Y$.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.onHintIdChanged=function(){var D=this,v,h,a=(v=this.ytButtonBehavior.data)==null?void 0:(h=v.hint)==null?void 0:h.hintRenderer;if(a&&a.hintId){v=_.U9(this.hostElement,"yt-get-opened-popups-action");v=(v&&v.length===1?v[0]:[]).length>0;var Q=null;a.hintId!=="sponsor-pre-purchase"||v?a.hintId.startsWith("sponsor-post-purchase")&&!v?Q=m0M("membership-manage"):a.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!v&&(Q=m0M("membership-freebie-join")):Q=m0M("membership-join");Q&&_.HK.addLowPriorityJob(function(){for(var G=
_.P(Q),x=G.next();!x.done;x=G.next())D.ytComponentBehavior.resolveCommand(x.value)})}};
_.V.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.V.onYtNavigate=function(D){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);v&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(v))};
_.V.onYtServiceRequestSent=function(D,v){this.handleServiceRequestActions(v);_.F1(this.hostElement,"yt-service-request-sent-button-renderer")};
_.V.onServiceRequestCompleted=function(D,v){this.handleServiceRequestActions(v);_.F1(this.hostElement,"yt-service-request-completed-button-renderer")};
_.V.updateButton=function(D){var v;if(D=(v=_.k(D,HXp))==null?void 0:v.updatedButton)this.ytButtonBehavior.data=_.k(D,_.Vi)};
_.V.handleUpdateButtonAction=function(D){var v=this.ytButtonBehavior.data;v.targetId&&D.updateButtonAction.targetId&&v.targetId===D.updateButtonAction.targetId&&this.updateButton(D)};
_.V.handleServiceRequestActions=function(D){if(D=D.actions)for(var v=0;v<D.length;v++)this.updateButton(D[v])};
_.GT.Object.defineProperties(_.Y$,{template:{configurable:!0,enumerable:!0,get:function(){if(Wl4===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);Wl4=D}D=Wl4;return D}}});
_.Y$.prototype.onServiceRequestCompleted=_.Y$.prototype.onServiceRequestCompleted;_.Y$.prototype.onYtServiceRequestSent=_.Y$.prototype.onYtServiceRequestSent;_.Y$.prototype.onYtNavigate=_.Y$.prototype.onYtNavigate;_.Y$.prototype.onPressedStateChanged=_.Y$.prototype.onPressedStateChanged;_.Y$.prototype.onHintIdChanged=_.Y$.prototype.onHintIdChanged;_.e([_.Y(),_.n("design:type",Object)],_.Y$.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],_.Y$.prototype,"isPressed",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],_.Y$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.gBJ.YtButtonBehavior),_.n("design:type",Object)],_.Y$.prototype,"ytButtonBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],_.Y$.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],_.Y$.prototype,"ytComponentBehavior",void 0);
_.e([_.l(tk.YtRenderButtonBehavior),_.n("design:type",Object)],_.Y$.prototype,"ytRenderButtonBehavior",void 0);_.e([_.Ni("data.hint.hintRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],_.Y$.prototype,"onHintIdChanged",null);_.e([_.Ni("isPressed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],_.Y$.prototype,"onPressedStateChanged",null);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],_.Y$.prototype,"onYtNavigate",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],_.Y$.prototype,"onYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],_.Y$.prototype,"onServiceRequestCompleted",null);_.e([_.m({is:"ytd-button-renderer",disableElementRegistration:CBR})],_.Y$);var B2=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.J(B2,_.c);_.V=B2.prototype;_.V.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"}}}}};
_.V.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.dataChanged=function(){if(this.data&&this.data.sticker){var D=_.UA(this.data.sticker.thumbnails,this.stickerWidth);D||_.JsO(D).thenCatch(function(){_.yR(new _.XH("Failed to load Super Sticker with url",D))})}};
_.V.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)?32:40};
_.V.computeIsV2Style=function(D){return(D==null?0:D.isV2Style)?!0:!1};
_.V.onStickerLoaded=function(D){var v,h,a;(v=_.xU(D))==null||(h=v.parentNode)==null||(a=h.classList)==null||a.add("sticker-loaded")};
_.V.computeNoveltyImageWidth=function(D){var v,h;if(D==null?0:(v=D.headerOverlayImage)==null?0:(h=v.thumbnails)==null?0:h.length){v=D.headerOverlayImage.thumbnails[0];var a,Q;if((a=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=a.loggingDirectives)==null?0:Q.trackingParams){var G,x;Duf((G=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(x=G.loggingDirectives)==null?void 0:x.trackingParams)}return v.width||0}return 0};
_.V.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.V.updateStickerStyles=function(){var D=this.data;D&&(D={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.authorNameTextColor)},
_.SB(this.hostElement,D))};
_.V.onBuyButtonClick=function(){var D,v=_.k((D=this.data)==null?void 0:D.buyButton,_.Vi);v&&!moo(v.command)&&this.ytRendererBehavior.logExplicitClick(v)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.GT.Object.defineProperties(B2.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
B2.prototype.updateStickerStyles=B2.prototype.updateStickerStyles;B2.prototype.isDeletedChanged=B2.prototype.isDeletedChanged;B2.prototype.onStickerLoaded=B2.prototype.onStickerLoaded;B2.prototype.dataChanged=B2.prototype.dataChanged;_.e([_.l(gDs.YtPdgLiveChatItemBehavior),_.n("design:type",Object)],B2.prototype,"ytPdgLiveChatItemBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],B2.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],B2.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],B2.prototype,"data",void 0);
_.e([_.Y({computed:"computeAuthorPhotoSize(data)"}),_.n("design:type",Number)],B2.prototype,"authorPhotoSize",void 0);_.e([_.Y(),_.n("design:type",Boolean)],B2.prototype,"isDeleted",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],B2.prototype,"dashboardMoneyFeed",void 0);_.e([_.Y({computed:"computeNoveltyImageWidth(data)"}),_.n("design:type",Number)],B2.prototype,"noveltyWidth",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B2.prototype,"modern",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.n("design:type",Boolean)],B2.prototype,"isV2Style",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B2.prototype,"dataChanged",null);_.e([_.lc("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],B2.prototype,"onStickerLoaded",null);
_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],B2.prototype,"stickerWidth",null);_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],B2.prototype,"stickerHeight",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],B2.prototype,"hasHeartButton",null);_.e([_.N("data","dashboardMoneyFeed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],B2.prototype,"hideLowerBumper",null);
_.e([_.Ni("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B2.prototype,"isDeletedChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B2.prototype,"updateStickerStyles",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],B2);
_.w(B2,"yt-live-chat-paid-sticker-renderer",function(){if(ivJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;RNy===void 0&&(RNy=document.createElement("template"));var a=RNy;h.call(v,a.content.cloneNode(!0),D.content.firstChild);ivJ=D}D=ivJ;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var ogp;var F5b;var zT$,Uu9=function(){return zT$!==void 0?zT$:zT$=document.createElement("template")};
document.head.appendChild(Uu9().content);var L5R,ZB$=function(){return L5R!==void 0?L5R:L5R=document.createElement("template")};
document.head.appendChild(ZB$().content);var Egy;var I1b,ggJ=function(){return I1b!==void 0?I1b:I1b=document.createElement("template")};
document.head.appendChild(ggJ().content);var k5m;var SlM=document.head,JSJ=SlM.appendChild,pBs;if(k5m===void 0){var l1p=document.createElement("template");_.p(l1p,"\x3c!--css-build:shady--\x3e");l1p.content.insertBefore(ggJ().content.cloneNode(!0),l1p.content.firstChild);k5m=l1p}pBs=k5m;JSJ.call(SlM,pBs.content);var NC4=document.head,YlF=NC4.appendChild,BCJ;if(Egy===void 0){var c2=document.createElement("template");_.p(c2,"\x3c!--css-build:shady--\x3e");c2.content.insertBefore(ZB$().content.cloneNode(!0),c2.content.firstChild);c2.content.insertBefore(Uu9().content.cloneNode(!0),c2.content.firstChild);Egy=c2}BCJ=Egy;YlF.call(NC4,BCJ.content);var Xc=function(){var D=_.XS.apply(this,arguments)||this;D.focusedIndex=0;D.verticalOffset=0;D.verticalAlign="top";D.dynamicAlign=!0;return D};
_.J(Xc,_.XS);Xc.prototype.emojiUrl=function(D){D=_.Fc(this.emojiManager,D);if(!D)return"";var v;D=(v=D.image)==null?void 0:v.thumbnails;return _.UA(D,24)||""};
var cSp=function(D){var v;D.emojiVariants&&(v=D.data)!=null&&v.target&&_.$R(D,function(){D.set("verticalOffset",-1*D.hostElement.clientHeight);var h=_.ZW(D.hostElement).querySelector("img");h&&h.focus()})};
_.V=Xc.prototype;_.V.onKeyboardEnter=function(){};
_.V.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.V.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.V.onKeyDown=function(D){switch(D.keyCode){case 13:this.onKeyboardEnter();D.preventDefault();break;case 40:this.changeFocus(1);D.preventDefault();break;case 38:this.changeFocus(-1);D.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.V.onYtEmojiSelect=function(D){var v=this,h,a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1)return a=(h=v.data)==null?void 0:h.emoji,x=((Q=a)==null?void 0:Q.stickyPrefId)||((G=a)==null?void 0:G.emojiId),C=(f=D.detail)==null?void 0:f.emojiId,x&&C&&x!==C?L.yield((U=v.emojiManager)==null?void 0:d3$(U,a,C),2):L.return();_.zU(v.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[a,C]);_.YI(L)})};
_.V.changeFocus=function(D){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+D+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(D=_.ZW(this.hostElement).querySelector("#variants"))&&D.children[this.focusedIndex].focus())};
_.GT.Object.defineProperties(Xc.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Xc.prototype.onYtEmojiSelect=Xc.prototype.onYtEmojiSelect;Xc.prototype.onKeyDown=Xc.prototype.onKeyDown;Xc.prototype.onEmojiVariantsChanged=Xc.prototype.onEmojiVariantsChanged;Xc.prototype.onVerticalOffsetOrPositionTargetChanged=Xc.prototype.onVerticalOffsetOrPositionTargetChanged;_.e([_.l(_.MB),_.n("design:type",Object)],Xc.prototype,"ironOverlayBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Xc.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",_.oS)],Xc.prototype,"emojiManager",void 0);
_.e([_.Y(),_.n("design:type",Object)],Xc.prototype,"emojiVariants",void 0);_.e([_.Y(),_.n("design:type",Object)],Xc.prototype,"focusedIndex",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Xc.prototype,"positionTarget",null);_.e([_.Y({reflectToAttribute:!0}),_.N("verticalOffset","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Xc.prototype,"isPositioned",null);_.e([_.Y(),_.n("design:type",Object)],Xc.prototype,"verticalOffset",void 0);
_.e([_.Y(),_.n("design:type",Object)],Xc.prototype,"verticalAlign",void 0);_.e([_.Y(),_.n("design:type",Object)],Xc.prototype,"dynamicAlign",void 0);_.e([_.Ni("verticalOffset","positionTarget"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xc.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.e([_.Ni("emojiVariants"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xc.prototype,"onEmojiVariantsChanged",null);
_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],Xc.prototype,"onKeyDown",null);_.e([_.lc("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype",Promise)],Xc.prototype,"onYtEmojiSelect",null);_.e([_.AV()],Xc);var XBF=[Xc.prototype];var ASs;var ql9;var bBs=/medium-light|medium-dark|light|medium|dark/,dus=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,jFM=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),AE=function(){var D=_.c.apply(this,arguments)||this;D.userSelection={left:null,right:null};D.scrollAction="lock";D.isEmojiDraftInProgress=!1;return D};
_.J(AE,_.c);_.V=AE.prototype;_.V.onClick=function(D){D=_.xU(D);D instanceof HTMLImageElement&&this.selectOrUpdateEmoji(D)};
_.V.selectOrUpdateEmoji=function(D){var v=D.getAttribute("selection");v&&(v==="default"?_.F1(this.hostElement,"yt-emoji-select",_.Fc(this.emojiManager,D.id)):v==="left"?this.userSelection=Object.assign({},this.userSelection,{left:D.src}):v==="right"?this.userSelection=Object.assign({},this.userSelection,{right:D.src}):v==="user"&&this.userSelection.left&&this.userSelection.right&&_.F1(this.hostElement,"yt-emoji-select",_.Fc(this.emojiManager,D.id)))};
_.V.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.V.onMultiSelectorThumbnailRowChanged=function(){var D,v,h;((D=this.data)==null?0:(v=D.emoji)==null?0:(h=v.multiSelectorThumbnailRow)==null?0:h.length)&&this.openSelector()};
_.V.getThumbnailFromEmojiRow=function(D){var v,h;return(D==null?void 0:(v=D.thumbnails)==null?void 0:(h=v[0])==null?void 0:h.url)||""};
_.V.getEmojiAltTextForPartialSelector=function(D){var v;return((v=this.getThumbnailFromEmojiRow(D).match(dus))==null?void 0:v[0])||""};
_.V.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.V.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.V.getRowSelection=function(D){return["left","right"][D]};
_.V.getIdFromComposedEmoji=function(D){return(D==null?void 0:D.emojiId)||""};
_.V.getEmojiFromPartialSelections=function(D,v){if(!D&&!v)return null;var h,a,Q=(h=this.data)==null?void 0:(a=h.emoji)==null?void 0:a.variantIds;if(!Q||!Q.length)return null;var G;D=(G=D.match(bBs))==null?void 0:G[0];var x;v=(x=v.match(bBs))==null?void 0:x[0];if(!D||!v)return null;var f=jFM.get(D);x=jFM.get(v);if(f===x){x=Array.from(jFM.values()).filter(function(U){return U!==f}).join("|");
var C=new RegExp("^((?!("+x+")).)*"+f+"$")}else C=new RegExp(f+".*"+x);return(Q=Q.find(function(U){return C.test(U)}))&&_.Fc(this.emojiManager,Q)||null};
_.V.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var D,v=this.ytEmojiSelectorBehavior.emojiUrl(((D=this.data.emoji)==null?void 0:D.emojiId)||"");_.ZW(this.hostElement).querySelector('[selection="user"]').src.includes(v)||(this.isEmojiDraftInProgress=!0)}};
_.V.onDomChange=function(){cSp(this.ytEmojiSelectorBehavior)};
_.V.getFocusableElements=function(){return _.ZW(this.hostElement).querySelectorAll("img").filter(function(D){return D.getAttribute("role")==="option"})};
_.V.changeFocus=function(D){var v=this.getFocusableElements();v!=null&&v.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+D+v.length)%v.length,this.ytEmojiSelectorBehavior.focusedIndex<v.length&&(D=v[this.ytEmojiSelectorBehavior.focusedIndex])&&D.focus())};
_.V.onKeyboardEnter=function(){var D=this.getFocusableElements();D!=null&&D.length&&(D=D[this.ytEmojiSelectorBehavior.focusedIndex])&&D instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(D),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.GT.Object.defineProperties(AE.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,v,h,a;return this.emojiManager&&((v=this.data)==null?0:(h=v.emoji)==null?0:(a=h.variantIds)==null?0:a.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.Fc(D.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D,v=(D=this.userSelection)==null?void 0:D.left,h;D=(h=this.userSelection)==null?void 0:h.right;return v&&D?this.getEmojiFromPartialSelections(v,D):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.composedEmojiSelection)==null?0:D.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var v;D=(v=this.userSelection)==null?void 0:v.left;var h;v=(h=this.userSelection)==null?void 0:h.right;if(!D&&!v){var a;return this.ytEmojiSelectorBehavior.emojiUrl(((a=this.data.emoji)==null?void 0:a.emojiId)||"")}return D&&!v?D:!D&&v?v:""}}});
AE.prototype.onMultiSelectorThumbnailRowChanged=AE.prototype.onMultiSelectorThumbnailRowChanged;AE.prototype.onClick=AE.prototype.onClick;_.e([_.l(_.MB),_.n("design:type",Object)],AE.prototype,"ironOverlayBehavior",void 0);_.e([_.l(XBF),_.n("design:type",Object)],AE.prototype,"ytEmojiSelectorBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],AE.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",_.oS)],AE.prototype,"emojiManager",void 0);
_.e([_.Y(),_.n("design:type",Object)],AE.prototype,"userSelection",void 0);_.e([_.Y(),_.n("design:type",Object)],AE.prototype,"scrollAction",void 0);_.e([_.Y(),_.n("design:type",Object)],AE.prototype,"isEmojiDraftInProgress",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],AE.prototype,"emojiVariants",null);_.e([_.N("data","userSelection"),_.n("design:type",Object),_.n("design:paramtypes",[])],AE.prototype,"composedEmojiSelection",null);
_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],AE.prototype,"onClick",null);_.e([_.Ni("data.emoji.multiSelectorThumbnailRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AE.prototype,"onMultiSelectorThumbnailRowChanged",null);_.e([_.N("data","userSelection","composedEmojiSelection"),_.n("design:type",String),_.n("design:paramtypes",[])],AE.prototype,"draftEmojiUrl",null);
_.e([_.Ry({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],AE);
_.w(AE,"yt-emoji-multi-person-selector",function(){if(ql9===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;ASs===void 0&&(ASs=document.createElement("template"));var a=ASs;h.call(v,a.content.cloneNode(!0),D.content.firstChild);ql9=D}D=ql9;return D},{mode:2});var sFM;var mu4;var qt=function(){var D=_.c.apply(this,arguments)||this;D.tooltip_=null;return D};
_.J(qt,_.c);_.V=qt.prototype;_.V.dataChanged_=function(){var D;if((D=this.data)==null?0:D.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ZW(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.kU)(this.tooltip_).textContent=this.data.tooltip};
_.V.computeTargetId=function(){var D;return((D=this.data)==null?void 0:D.targetId)||""};
_.V.computeId_=function(D){return D};
_.V.computeIcon_=function(D){return _.SQ(D)};
_.V.onTap_=function(){this.active=!this.active;_.F1(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.V.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("active-changed",this.active))};
_.GT.Object.defineProperties(qt.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var D,v;if((D=this.data)==null?0:(v=D.icon)==null?0:v.iconType)return this.data.icon.iconType==="SUPER_STICKER";var h,a;return((h=this.data)==null?void 0:(a=h.icon)==null?void 0:a.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
qt.prototype.activeChangedForBinding=qt.prototype.activeChangedForBinding;qt.prototype.dataChanged_=qt.prototype.dataChanged_;_.e([_.l(_.Ce.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],qt.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qt.prototype,"data",void 0);_.e([_.Y({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.n("design:type",String)],qt.prototype,"id",void 0);
_.e([_.Y({computed:"computeTargetId(data.targetId)"}),_.n("design:type",String)],qt.prototype,"targetId",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],qt.prototype,"active",void 0);_.e([_.Y({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.n("design:type",String)],qt.prototype,"icon",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qt.prototype,"dataChanged_",null);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],qt.prototype,"iconFilled",null);_.e([_.Ni("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qt.prototype,"activeChangedForBinding",null);_.e([_.Ry({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],qt);
_.w(qt,"yt-emoji-picker-category-button-renderer",function(){if(mu4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;sFM===void 0&&(sFM=document.createElement("template"));var a=sFM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);mu4=D}D=mu4;return D},{mode:2});var HBF;var yS9;var bK=function(){var D=_.c.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};D.JSC$14183_ignoreNextFocus_=!1;D.longPressTimeoutId=-1;return D};
_.J(bK,_.c);_.V=bK.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.c8(),v=0;v<this.emoji.length;v++){var h={veType:88013,elementIndex:v},a=this.emoji[v];a.isCustomEmoji&&(a=document.querySelector(("#"+a.emojiId).replace("/","\\/")))&&(h=_.B8(D,h))&&(a.visualElement=h)}};
_.V.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.V.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.V.emojiSkinToneChanged_=function(D){this.skinTone=D};
_.V.dataChanged=function(){this.data&&this.data.emojiData&&Xx4(this.emojiManager,this.data.emojiData)};
_.V.emojiUrl=function(D){D=this.getEmoji(D);if(!D)return"";var v;D=(v=D.image)==null?void 0:v.thumbnails;return _.UA(D,24)||""};
_.V.emojiAlt=function(D){var v=this.get("image.accessibility.accessibilityData.label",D);return v?v:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.V.emojiAriaLabel=function(D){return D.shortcuts?D.shortcuts[0]:""};
_.V.emojiAriaSelected=function(D,v,h){return D&&h==v?"true":"false"};
_.V.getEmoji=function(D){if(this.emojiManager)return this.shouldUseStickyPreferences?qfR(this.emojiManager,D):zP(this.emojiManager,D)};
_.V.computeId_=function(D){return D.categoryId||""};
_.V.computeEmoji=function(D){var v=this;return this.emojiManager?D.emojiIds?D.emojiIds.map(function(h){return h?_.Fc(v.emojiManager,h):null}).filter(pkf):D.emojiData?D.emojiData.map(function(h){var a=!!h.emojiId&&_.Fc(v.emojiManager,h.emojiId);
return a?Object.assign({},a,h):null}).filter(pkf):[]:[]};
_.V.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.V.computeAriaLabel_=function(D){return _.$V(D)};
_.V.computeAriaActivedescendant_=function(D,v){return D&&D[v]?D[v].emojiId||"":""};
_.V.handleLongPressEmojiWithVariants=function(D,v){this.changeFocusToEmoji(D.emojiId,!1);this.openVariantSelector(D,v)};
_.V.onMouseDown=function(D){var v=this;this.hostElement!==document.activeElement&&(this.JSC$14183_ignoreNextFocus_=!0);if(D.button===0){var h=_.xU(D);if(h instanceof HTMLImageElement){var a=_.ZW(this.hostElement).querySelector("#repeat").itemForElement(h);this.emojiContainsVariants(a)&&(this.longPressTimeoutId=setTimeout(function(){v.handleLongPressEmojiWithVariants(a,h)},500))}}};
_.V.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.V.onFocus=function(){this.JSC$14183_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14183_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.emojiContainsVariants=function(D){return!!(D&&D.variantIds&&D.variantIds.length)};
_.V.onClick=function(D){clearTimeout(this.longPressTimeoutId);D=_.xU(D);if(D instanceof HTMLImageElement){var v=D.id;this.changeFocusToEmoji(v,!1);var h=this.getEmoji(v),a;if(a=this.shouldUseStickyPreferences&&this.emojiContainsVariants(h)){var Q;a=!((Q=this.emojiManager.emojiMap[v])!=null&&Q.stickyPrefId)}a?(Q=_.ZW(this.hostElement).querySelector("#repeat").itemForElement(D),this.openVariantSelector(Q,D)):_.F1(this.hostElement,"yt-emoji-select",h)}};
_.V.isActiveEmojiWithVariants=function(D,v){return D&&v?v.stickyPrefId?D===v.stickyPrefId:D===v.emojiId:!1};
_.V.onCloseEmojiVariantSelector=function(D){this.activeEmojiWithVariantsId===D&&(this.activeEmojiWithVariantsId="")};
_.V.onMouseOver_=function(D){D=_.xU(D);D instanceof HTMLImageElement&&_.F1(this.hostElement,"yt-emoji-hover",_.Fc(this.emojiManager,D.id))};
_.V.changeFocus_=function(D,v){this.focusedIndex=(this.focusedIndex+D+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(D=this.emoji[this.focusedIndex],v&&(this.showFocus=!0,_.ZW(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.F1(this.hostElement,"yt-emoji-hover",D)))};
_.V.changeFocusToEmoji=function(D,v){if(D){var h=this.emoji.findIndex(function(a){return a.emojiId===D});
h!==-1&&this.changeFocus_(h-this.focusedIndex,v)}};
_.V.onKeyDown_=function(D){switch(D.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var v=this.emoji[this.focusedIndex];if(v&&v.emojiId){if(this.emojiContainsVariants(v)){var h=_.ZW(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(v,h)}else _.F1(this.hostElement,"yt-emoji-select",zP(this.emojiManager,v.emojiId)),this.hostElement.focus();D.preventDefault()}}break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),
D.preventDefault()}};
_.V.onEmojiStickyPreferenceChanged=function(D,v){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&D.emojiId&&D.variantIds&&D.variantIds.includes(v)&&this.activeEmojiWithVariantsId!==v&&this.setStickyEmojiPreference(D.emojiId,v)};
_.V.openVariantSelector=function(D,v){this.activeEmojiWithVariantsId=D.stickyPrefId||D.emojiId||"";_.F1(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:D,target:v})};
_.V.setStickyEmojiPreference=function(D,v){if(this.data){var h=this.emoji.findIndex(function(Q){return Q.emojiId===D});
if(h!==-1){var a=this.emoji[h];a.stickyPrefId=v;this.set("emoji."+h,Object.assign({},a));this.activeEmojiWithVariantsId=v}}};
bK.prototype.onKeyDown_=bK.prototype.onKeyDown_;bK.prototype.onMouseOver_=bK.prototype.onMouseOver_;bK.prototype.onClick=bK.prototype.onClick;bK.prototype.onBlur_=bK.prototype.onBlur_;bK.prototype.onFocus=bK.prototype.onFocus;bK.prototype.onMouseUp=bK.prototype.onMouseUp;bK.prototype.onMouseDown=bK.prototype.onMouseDown;bK.prototype.dataChanged=bK.prototype.dataChanged;bK.prototype.disableIncrementalLoadingChanged_=bK.prototype.disableIncrementalLoadingChanged_;bK.prototype.emojiManagerChanged_=bK.prototype.emojiManagerChanged_;
bK.prototype.emojiChanged_=bK.prototype.emojiChanged_;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],bK.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bK.prototype,"data",void 0);_.e([_.Y({computed:"computeId_(data)"}),_.n("design:type",String)],bK.prototype,"id",void 0);_.e([_.Y({computed:"computeEmoji(data)"}),_.n("design:type",Array)],bK.prototype,"emoji",void 0);_.e([_.Y(),_.n("design:type",Number)],bK.prototype,"skinTone",void 0);
_.e([_.Y(),_.n("design:type",_.oS)],bK.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",Boolean)],bK.prototype,"disableIncrementalLoading",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],bK.prototype,"focusedIndex",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],bK.prototype,"showFocus",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.n("design:type",Object)],bK.prototype,"ariaLabel",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.n("design:type",Object)],bK.prototype,"ariaActivedescendant",void 0);_.e([_.Y({value:60}),_.n("design:type",Number)],bK.prototype,"domRepeatTargetFramerate",void 0);_.e([_.Y({value:1}),_.n("design:type",Number)],bK.prototype,"domRepeatInitialCount",void 0);_.e([_.Y({value:""}),_.n("design:type",String)],bK.prototype,"activeEmojiWithVariantsId",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],bK.prototype,"shouldUseStickyPreferences",void 0);_.e([_.Ni("emoji"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"emojiChanged_",null);_.e([_.Ni("emojiManager"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"emojiManagerChanged_",null);
_.e([_.Ni("disableIncrementalLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"disableIncrementalLoadingChanged_",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"dataChanged",null);_.e([_.lc("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],bK.prototype,"onMouseDown",null);
_.e([_.lc("mouseup"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"onMouseUp",null);_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"onFocus",null);_.e([_.lc("blur"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bK.prototype,"onBlur_",null);
_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],bK.prototype,"onClick",null);_.e([_.lc("mouseover"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],bK.prototype,"onMouseOver_",null);_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],bK.prototype,"onKeyDown_",null);
_.e([_.Ry({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],bK);
_.w(bK,"yt-emoji-picker-category-renderer",function(){if(yS9===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;HBF===void 0&&(HBF=document.createElement("template"));var a=HBF;h.call(v,a.content.cloneNode(!0),D.content.firstChild);yS9=D}D=yS9;return D},{mode:2});var wBs;var eT9;var ng9;var OBM;var d2=function(){var D=_.c.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.getFormattedStringRawText=_.$V;D.JSC$14189_ignoreNextFocus_=!1;return D};
_.J(d2,_.c);_.V=d2.prototype;_.V.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")};
_.V.emojiUrl=function(D){var v,h;D=(v=zP(this.emojiManager,D,!0))==null?void 0:(h=v.image)==null?void 0:h.thumbnails;return _.UA(D,24)||""};
_.V.emojiAlt=function(D){var v=this.get("image.accessibility.accessibilityData.label",D);return v?v:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.V.emojiId=function(D){return"emoji"+D};
_.V.computeId_=function(D){return D.categoryId||""};
_.V.computeAriaActivedescendant_=function(D){return this.emoji&&D<this.emoji.length?this.emojiId(D):""};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.c8(),v=0;v<this.emoji.length;v++){var h={veType:88013,elementIndex:v},a=this.emoji[v];a.isCustomEmoji&&(a=document.querySelector(("#"+a.emojiId).replace("/","\\/")))&&(h=_.B8(D,h))&&(a.visualElement=h)}};
_.V.computeEmoji_=function(D){var v=this;return this.emojiManager?D.emojiIds.map(function(h){return _.Fc(v.emojiManager,h,!0)}).filter(lrL):[]};
_.V.titleOffsetChanged_=function(){var D=this.hostElement.getBoundingClientRect(),v=_.ZW(this.hostElement).querySelector("#title").getBoundingClientRect();D=Math.max(0,Math.min(this.titleOffset,D.height-v.height));_.ZW(this.hostElement).querySelector("#title").style.top=D+"px"};
_.V.onEmojiMouseOver_=function(D){_.F1(this.hostElement,"yt-emoji-hover",D.model.item)};
_.V.onEmojiTap_=function(D){this.data.command&&(D=PBI(_.xd().resolve(_.PV(TC)),this.data.command,D),_.F1(this.hostElement,"yt-navigate",D))};
_.V.emojiAriaLabel=function(D){return D.shortcuts[0]};
_.V.emojiAriaSelected=function(D,v,h){return D&&h==v?"true":"false"};
_.V.changeFocus_=function(D,v){var h=this.emoji.length;this.focusedIndex=(this.focusedIndex+D+h)%h;D=this.emoji[this.focusedIndex];if(v){var a;(a=_.ZW(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||a.scrollIntoView(!1);_.F1(this.hostElement,"yt-emoji-hover",D)}};
_.V.onMouseDown_=function(){this.JSC$14189_ignoreNextFocus_=!0};
_.V.onFocus_=function(){this.JSC$14189_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14189_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.onKeyDown_=function(D){switch(D.keyCode){case 13:this.onEmojiTap_(D);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),D.preventDefault()}};
d2.prototype.onKeyDown_=d2.prototype.onKeyDown_;d2.prototype.onBlur_=d2.prototype.onBlur_;d2.prototype.onFocus_=d2.prototype.onFocus_;d2.prototype.onMouseDown_=d2.prototype.onMouseDown_;d2.prototype.onEmojiTap_=d2.prototype.onEmojiTap_;d2.prototype.titleOffsetChanged_=d2.prototype.titleOffsetChanged_;d2.prototype.emojiChanged_=d2.prototype.emojiChanged_;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],d2.prototype,"data",void 0);_.e([_.Y({computed:"computeId_(data)"}),_.n("design:type",String)],d2.prototype,"id",void 0);_.e([_.Y({computed:"computeEmoji_(data)"}),_.n("design:type",Array)],d2.prototype,"emoji",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],d2.prototype,"titleOffset",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.n("design:type",Object)],d2.prototype,"ariaLabel",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.n("design:type",Object)],d2.prototype,"ariaActivedescendant",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],d2.prototype,"showFocus",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],d2.prototype,"focusedIndex",void 0);_.e([_.Y(),_.n("design:type",_.oS)],d2.prototype,"emojiManager",void 0);
_.e([_.Ni("emoji"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],d2.prototype,"emojiChanged_",null);_.e([_.Ni("titleOffset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],d2.prototype,"titleOffsetChanged_",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],d2.prototype,"onEmojiTap_",null);
_.e([_.lc("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],d2.prototype,"onMouseDown_",null);_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],d2.prototype,"onFocus_",null);_.e([_.lc("blur"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],d2.prototype,"onBlur_",null);
_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],d2.prototype,"onKeyDown_",null);_.e([_.Ry({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],d2);
_.w(d2,"yt-emoji-picker-upsell-category-renderer",function(){if(OBM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;ng9===void 0&&(ng9=document.createElement("template"));var a=ng9;h.call(v,a.content.cloneNode(!0),D.content.firstChild);OBM=D}D=OBM;return D},{mode:2});var K5t;var TCJ;var ju=function(){var D=_.c.apply(this,arguments)||this;D.scrollAction="lock";D.verticalAlign="top";return D};
_.J(ju,_.c);_.V=ju.prototype;_.V.onClick=function(D){D=_.xU(D);D instanceof HTMLImageElement&&_.F1(this.hostElement,"yt-emoji-select",_.Fc(this.emojiManager,D.id))};
_.V.openSelector=function(){this.ironOverlayBehavior.open()};
_.V.onDomChange=function(){cSp(this.ytEmojiSelectorBehavior)};
_.V.computeIsFamilySelector=function(D){var v;return(D==null?void 0:(v=D.emoji)==null?void 0:v.emojiId)==="\ud83d\udc6a"};
_.V.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var D=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];D&&D.emojiId&&(_.F1(this.hostElement,"yt-emoji-select",_.Fc(this.emojiManager,D.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.GT.Object.defineProperties(ju.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,v,h,a;return this.emojiManager&&((v=this.data)==null?0:(h=v.emoji)==null?0:(a=h.variantIds)==null?0:a.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.Fc(D.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}}});
ju.prototype.onClick=ju.prototype.onClick;_.e([_.l(_.MB),_.n("design:type",Object)],ju.prototype,"ironOverlayBehavior",void 0);_.e([_.l(XBF),_.n("design:type",Object)],ju.prototype,"ytEmojiSelectorBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ju.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",_.oS)],ju.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",Object)],ju.prototype,"scrollAction",void 0);_.e([_.Y(),_.n("design:type",Object)],ju.prototype,"verticalAlign",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.n("design:type",Boolean)],ju.prototype,"isFamilySelector",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ju.prototype,"emojiVariants",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],ju.prototype,"onClick",null);_.e([_.Ry({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],ju);
_.w(ju,"yt-emoji-variant-selector",function(){if(TCJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;K5t===void 0&&(K5t=document.createElement("template"));var a=K5t;h.call(v,a.content.cloneNode(!0),D.content.firstChild);TCJ=D}D=TCJ;return D},{mode:2});var RT9=/:/g,iBR=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],sa=function(){var D=_.c.apply(this,arguments)||this;D.emojiVariantSelector=null;D.emojiMultiPersonSelector=null;D.identity=_.mI;D.lastAnimationTime_=0;D.animationStart_=null;D.animationEnd_=null;return D};
_.J(sa,_.c);_.V=sa.prototype;
_.V.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}}};
_.V.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Ua)};
_.V.attached=function(){_.zw&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&AzR(this.emojiManager)};
_.V.dataChanged=function(){var D;if((D=this.data)==null?0:D.categories){D=this.emojiManager;var v=this.getCustomEmojiIds();D.pickerCustomEmojiIds=[].concat(_.j_(lim),_.j_(v))}};
_.V.getCustomEmojiIds=function(){var D,v=(D=this.data.categories)==null?void 0:D.find(function(G){var x;return((x=G.emojiPickerCategoryRenderer)==null?void 0:x.categoryId)&&iBR.includes(G.emojiPickerCategoryRenderer.categoryId)}),h;
D=(h=this.data.categories)==null?void 0:h.find(function(G){return G.emojiPickerUpsellCategoryRenderer});
var a,Q;return[v==null?void 0:(a=v.emojiPickerCategoryRenderer)==null?void 0:a.emojiIds,D==null?void 0:(Q=D.emojiPickerUpsellCategoryRenderer)==null?void 0:Q.emojiIds].flat().filter(function(G){return!!G})};
_.V.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.V.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.V.updateCategoriesAndPlaceholderInternal=function(D,v){var h=this;D&&v&&(this.categories=D.categories||[],this.categoryButtons=D.categoryButtons||[],this.resetPlaceholder(),this.search="",_.hD(function(){h.updateButtons_()}))};
_.V.computeId_=function(D){return D.id||""};
_.V.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(D){return D.emojiPickerCategoryRenderer&&D.emojiPickerCategoryRenderer.emojiData}):!1};
_.V.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.V.onShowEmojiVariantSelector=function(D){var v=D.detail.emojiData;v.variantIds&&v.variantIds.length&&(v.multiSelectorThumbnailRow&&v.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:v,target:D.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:v,target:D.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onIronOverlayClosed=function(D){var v=qfR(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");v&&D.composedPath&&(D.composedPath().includes(_.ZW(this.hostElement).querySelector("#emoji-variant-selector"))||D.composedPath().includes(_.ZW(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.zU(this.hostElement,"yt-close-emoji-variant-selector",[v.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onEmojiVariantSelectorMouseup=function(D){var v=D.target.firstChild;this.variantSelectorOpened&&v&&_.hD(function(){v.noCancelOnOutsideClick=!1},100)};
_.V.onEmojiVariantSelectorMousedown=function(D){D=D.target.firstChild;this.variantSelectorOpened&&D&&(D.noCancelOnOutsideClick=!1)};
_.V.onSelectCategory_=function(D){var v=this.search!="";this.search="";for(var h=_.ZW(this.hostElement).querySelector("#categories").children,a=0;a<h.length;a++){var Q=h[a];if(Q.id==D.detail.categoryId){v?(_.ZW(this.hostElement).querySelector("#categories").scrollTop=Q.offsetTop,this.updateButtons_()):(this.animationStart_=_.ZW(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.V.onEmojiHover_=function(D){this.placeholder=D.detail.shortcuts?D.detail.shortcuts[0]:""};
_.V.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.V.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.V.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.V.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.V.computeSearchCategory_=function(D){D=D.replace(RT9,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();D=D.split(" ");for(var v=[],h=this.emojiManager.emojis,a=0;a<h.length;a++){var Q=h[a];if(Q.searchTerms)for(var G=0;G<Q.searchTerms.length;G++){for(var x=Q.searchTerms[G].toLocaleLowerCase(),f=!1,C=0;C<D.length;C++)if(x.indexOf(D[C])!=-1){f=!0;break}if(f&&(!Q.isCustomEmoji||!Q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Q.emojiId))){v.push(Q.emojiId);
break}}}return{categoryId:-1,emojiIds:v}};
_.V.computeSearchEmptyMessage_=function(D,v){return D&&v&&v.emojiIds&&v.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.V.computeSearching_=function(D){return this.emojiManager&&D.replace(RT9,"").length>1};
_.V.computeSkinToneHidden=function(){var D;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((D=this.data)==null||!D.hideSkinTonePicker)};
_.V.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.V.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.V.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.V.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.V.selectSkinTone_=function(D){D=Number(D.target.getAttribute("tone"));this.set("emojiManager.skinTone",D);_.zU(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[D]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.V.skinToneChanged_=function(){_.ZW(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var D=_.ZW(this.hostElement).querySelector("#dropdown-content").children,v=0;v<D.length;v++)v===this.skinTone?D[v].setAttribute("selected",""):D[v].removeAttribute("selected")};
_.V.animateScroll_=function(D){this.lastAnimationTime_||(this.lastAnimationTime_=D);D-=this.lastAnimationTime_;D<200?(_.ZW(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*D/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ZW(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.V.searchChanged_=function(){this.updateButtons_()};
_.V.updateButtons_=function(){var D=null;if(!this.search)for(var v=_.ZW(this.hostElement).querySelector("#categories").scrollTop,h=_.ZW(this.hostElement).querySelector("#categories").children,a=0;a<h.length;a++){var Q=h[a];Q.offsetTop<=v&&(D=Q.id)}v=_.ZW(this.hostElement).querySelector("#category-buttons").children;for(h=0;h<v.length;h++)a=v[h],a.active=a.id===D};
sa.prototype.searchChanged_=sa.prototype.searchChanged_;sa.prototype.skinToneChanged_=sa.prototype.skinToneChanged_;sa.prototype.onEmojiHover_=sa.prototype.onEmojiHover_;sa.prototype.onSelectCategory_=sa.prototype.onSelectCategory_;sa.prototype.onShowEmojiVariantSelector=sa.prototype.onShowEmojiVariantSelector;sa.prototype.updateCategoriesAndPlaceholder_=sa.prototype.updateCategoriesAndPlaceholder_;sa.prototype.dataChanged=sa.prototype.dataChanged;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],sa.prototype,"data",void 0);_.e([_.Y({value:function(){return[]}}),
_.n("design:type",Array)],sa.prototype,"categories",void 0);_.e([_.Y({value:function(){return[]}}),
_.n("design:type",Array)],sa.prototype,"categoryButtons",void 0);_.e([_.Y({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.n("design:type",Boolean)],sa.prototype,"disableScroll",void 0);_.e([_.Y({computed:"computeId_(data)",reflectToAttribute:!0}),_.n("design:type",String)],sa.prototype,"id",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sa.prototype,"selected",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sa.prototype,"disableIncrementalLoading",void 0);_.e([_.Y(),_.n("design:type",String)],sa.prototype,"placeholder",void 0);_.e([_.Y({value:""}),_.n("design:type",String)],sa.prototype,"search",void 0);_.e([_.Y({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.n("design:type",Boolean)],sa.prototype,"searching",void 0);_.e([_.Y({computed:"computeSearchCategory_(search)"}),_.n("design:type",Object)],sa.prototype,"searchCategory",void 0);
_.e([_.Y({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.n("design:type",Object)],sa.prototype,"searchEmptyMessage",void 0);_.e([_.Y({computed:"identity(emojiManager.skinTone)"}),_.n("design:type",Number)],sa.prototype,"skinTone",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sa.prototype,"skinToneOpened",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],sa.prototype,"variantSelectorOpened",void 0);
_.e([_.Y({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.n("design:type",Boolean)],sa.prototype,"skinToneHidden",void 0);_.e([_.Y(),_.n("design:type",_.oS)],sa.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",Object)],sa.prototype,"emojiVariantSelector",void 0);_.e([_.Y(),_.n("design:type",Object)],sa.prototype,"emojiMultiPersonSelector",void 0);
_.e([_.Y({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.n("design:type",Boolean)],sa.prototype,"shouldUseStickyPreferences",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sa.prototype,"dataChanged",null);_.e([_.Ni("data","selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sa.prototype,"updateCategoriesAndPlaceholder_",null);
_.e([_.lc("yt-show-emoji-variant-selector"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],sa.prototype,"onShowEmojiVariantSelector",null);_.e([_.lc("yt-emoji-picker-select-category"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],sa.prototype,"onSelectCategory_",null);_.e([_.lc("yt-emoji-hover"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],sa.prototype,"onEmojiHover_",null);
_.e([_.Ni("skinTone"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sa.prototype,"skinToneChanged_",null);_.e([_.Ni("search"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sa.prototype,"searchChanged_",null);_.e([_.Ry({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],sa);
_.w(sa,"yt-emoji-picker-renderer",function(){if(eT9===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;wBs===void 0&&(wBs=document.createElement("template"));var a=wBs;h.call(v,a.content.cloneNode(!0),D.content.firstChild);eT9=D}D=eT9;return D},{mode:2});var mp=function(){var D=_.c.apply(this,arguments)||this;D.emojiManager=_.Ua;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.selectedIndex=1;D.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return D};
_.J(mp,_.c);_.V=mp.prototype;_.V.handleEmojiCustomizationVisible=function(D){this.emojiPickerRenderer.selected=D;this.selectedIndex=1;D?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.V.emojiCustomizationSetChanged=function(){var D;(D=this.data)!=null&&D.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.WA(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.V.updateSaveButtonState=function(D){var v;(v=this.data)!=null&&v.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Xe("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:D}))};
_.V.emojiUrl=function(D){D=_.Fc(this.emojiManager,D);if(!D)return"";var v;D=(v=D.image)==null?void 0:v.thumbnails;return _.UA(D,24)||""};
_.V.emojiAlt=function(D){var v=_.Fc(this.emojiManager,D);if(!v)return D;var h,a,Q,G=(v==null?void 0:(h=v.image)==null?void 0:(a=h.accessibility)==null?void 0:(Q=a.accessibilityData)==null?void 0:Q.label)||"";return G?G:v.isCustomEmoji?v.shortcuts[0]:v.emojiId||D};
_.V.emojiAriaLabel=function(D){var v,h;return((v=_.Fc(this.emojiManager,D))==null?void 0:(h=v.shortcuts)==null?void 0:h[0])||D};
_.V.onEmojiClick=function(D){D.model.index!==0&&(this.selectedIndex=D.model.index)};
_.V.onEmojiSelect=function(D){D=D.detail;var v,h;((v=this.data)==null?0:v.emojiCustomizationSetEntityKey)&&((h=this.emojiCustomizationSet)==null?0:h.emojiId)&&D.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Xe("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)}))};
_.V.canEditEmoji=function(D,v,h){D=D.indexOf(v);return D===h||D===0||h===0?!1:!0};
_.V.getUpdatedEmojiIdList=function(D,v,h){var a=D.indexOf(v);D=[].concat(_.j_(D));a>=0&&(D[a]=D[h]);D[h]=v;return D};
_.GT.Object.defineProperties(mp,{template:{configurable:!0,enumerable:!0,get:function(){if(F5b===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;ogp===void 0&&(ogp=document.createElement("template"));var a=ogp;h.call(v,a.content.cloneNode(!0),D.content.firstChild);F5b=D}D=F5b;return D}}});
mp.prototype.onEmojiSelect=mp.prototype.onEmojiSelect;_.e([_.l(_.fe),_.n("design:type",Object)],mp.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],mp.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Br("yt-emoji-picker-renderer"),_.n("design:type",Object)],mp.prototype,"emojiPickerRenderer",void 0);
_.e([_.Y({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(D,v){return _.gR(D.entities,"emojiCustomizationSetEntity",v)},
observer:"emojiCustomizationSetChanged"}),_.n("design:type",Object)],mp.prototype,"emojiCustomizationSet",void 0);_.e([_.Y(),_.n("design:type",Object)],mp.prototype,"originalEmojiSet",void 0);_.e([_.Y(),_.n("design:type",_.oS)],mp.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",Object)],mp.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],mp.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],mp.prototype,"selectedIndex",void 0);
_.e([_.lc("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],mp.prototype,"onEmojiSelect",null);_.e([_.Ry({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],mp);var W5J;var tG4;var rS9;var u54;var H2=function(){var D=_.c.apply(this,arguments)||this;D.authorBadges=[];return D};
_.J(H2,_.c);_.V=H2.prototype;_.V.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.V.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]]"}}}}}};
_.V.dataChanged=function(){var D=DoL(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",D)};
_.V.updateMessage=function(){var D=this.data.message,v=_.ZW(_.ZW(this.hostElement).querySelector("#message"));v.textContent="";D&&v.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.V.onShowOriginalClick=function(D){D.preventDefault();this.showOriginal=!0};
_.V.computeShowBar=function(D,v,h){return D&&v||h};
_.V.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.V.computeAuthorIsOwner=function(D){return!!vD4(D.authorBadges,"owner")};
_.V.computeAuthorNameColor=function(D){var v;if(_.g("live_chat_author_name_color_usernames")&&(D==null?0:(v=D.authorName)==null?0:v.simpleText))return _.VUI(_.PJi(D.authorName.simpleText));if(_.g("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.VUI(_.g4(D.authorSeedColorArgb));if(_.g("live_chat_colored_usernames"))return"#cc0000";var h;return _.g("live_chat_simple_color_usernames")&&(D==null?0:(h=D.authorName)==null?0:h.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.g4(D.authorUsernameColorDark):_.g4(D.authorUsernameColorLight):""};
H2.prototype.updateMessage=H2.prototype.updateMessage;H2.prototype.dataChanged=H2.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],H2.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],H2.prototype,"data",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"showOriginal",void 0);_.e([_.Y({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"isDimmed",void 0);_.e([_.Y({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"showBar",void 0);
_.e([_.Y({computed:"computeAuthorBadges(data)"}),_.n("design:type",Array)],H2.prototype,"authorBadges",void 0);_.e([_.Y({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"authorIsOwner",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"inCollapsedBanner",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"inBanner",void 0);
_.e([_.Y({value:_.g("live_chat_hide_avatars"),reflectToAttribute:!0}),_.n("design:type",Boolean)],H2.prototype,"avatarHidden",void 0);_.e([_.Y({computed:"computeAuthorNameColor(data)"}),_.n("design:type",String)],H2.prototype,"authorNameColor",void 0);_.e([_.Y(),_.n("design:type",_.g2)],H2.prototype,"participantsManager",void 0);_.e([_.Y({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.n("design:type",Object)],H2.prototype,"filledButtonOverrides",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],H2.prototype,"dataChanged",null);_.e([_.Ni("data.message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],H2.prototype,"updateMessage",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],H2);
_.w(H2,"yt-live-chat-text-message-renderer",function(){if(u54===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;rS9===void 0&&(rS9=document.createElement("template"));var a=rS9;h.call(v,a.content.cloneNode(!0),D.content.firstChild);u54=D}D=u54;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var yd=function(){var D=_.c.apply(this,arguments)||this;D.tonalButtonOverrides={type:"tonal",style:"overlay"};return D};
_.J(yd,_.c);
yd.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]]"}}}}}};
yd.prototype.shouldSupportInlineActionButtons=function(){return!0};
yd.prototype.shouldSupportWholeItemClick=function(){return!0};
_.GT.Object.defineProperties(yd.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],yd.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yd.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",_.g2)],yd.prototype,"participantsManager",void 0);
_.e([_.Y(),_.n("design:type",Object)],yd.prototype,"tonalButtonOverrides",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.infoDialogButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],yd.prototype,"hasInfoDialogButton",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],yd);
_.w(yd,"yt-live-chat-auto-mod-message-renderer",function(){if(tG4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;W5J===void 0&&(W5J=document.createElement("template"));var a=W5J;h.call(v,a.content.cloneNode(!0),D.content.firstChild);tG4=D}D=tG4;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Djp;var v8m;var h0m;var ars=function(){return _.c.apply(this,arguments)||this};
_.J(ars,_.c);_.e([_.Y(),_.n("design:type",Object)],ars.prototype,"data",void 0);_.e([_.m({is:"ytd-factoid-renderer",disableElementRegistration:!0})],ars);
_.w(ars,"ytd-factoid-renderer",function(){if(h0m!==void 0)return h0m;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return h0m=D},{mode:1});var w2=function(){return _.c.apply(this,arguments)||this};
_.J(w2,_.c);w2.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.e([_.Y(),_.n("design:type",Object)],w2.prototype,"data",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],w2);
_.w(w2,"yt-live-chat-channel-activity-reputation-renderer",function(){if(v8m===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Djp===void 0&&(Djp=document.createElement("template"));var a=Djp;h.call(v,a.content.cloneNode(!0),D.content.firstChild);v8m=D}D=v8m;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var $jm;var QfJ;var eu=function(){return _.c.apply(this,arguments)||this};
_.J(eu,_.c);eu.prototype.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Boolean)],eu.prototype,"menuFocused",void 0);_.e([_.Y(),_.n("design:type",Object)],eu.prototype,"data",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],eu.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],eu);
_.w(eu,"yt-live-chat-donation-announcement-renderer",function(){if(QfJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;$jm===void 0&&($jm=document.createElement("template"));var a=$jm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);QfJ=D}D=QfJ;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var G89;var VXp,PxR=function(){if(VXp!==void 0)return VXp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;G89===void 0&&(G89=document.createElement("template"));var a=G89;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return VXp=D};var nO=function(){return _.c.apply(this,arguments)||this};
_.J(nO,_.c);_.GT.Object.defineProperties(nO,{template:{configurable:!0,enumerable:!0,get:function(){return PxR()}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nO.prototype,"data",void 0);_.e([_.Ry({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],nO);_.w(nO,"yt-live-chat-empty-feed-view-model",function(){return PxR()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var xj$;var MXR;var Oa=function(){return _.c.apply(this,arguments)||this};
_.J(Oa,_.c);Oa.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"}}}}}};
_.GT.Object.defineProperties(Oa.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var D,v;return{runs:[{text:(D=this.data)==null?void 0:(v=D.channelName)==null?void 0:v.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var D=[],v;if((v=this.data)==null||!v.channelBadges)return D;var h;v=_.P((h=this.data)==null?void 0:h.channelBadges);for(h=v.next();!h.done;h=v.next()){h=_.k(h.value,RhM);var a=void 0,Q=void 0;if((a=h)==null?0:(Q=a.badgeImage)==null?0:Q.sources)a=void 0,Q={liveChatAuthorBadgeRenderer:{tooltip:h.tooltip,accessibility:{accessibilityData:{label:(a=_.k(h.rendererContext,_.BO))==null?void 0:a.label}}}},h.badgeImage.sources[0].clientResource?Q.liveChatAuthorBadgeRenderer.icon=
{iconType:h.badgeImage.sources[0].clientResource.imageName}:Q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:h.badgeImage.sources},D.push(Q)}return D}}});
_.e([_.Y(),_.n("design:type",Object)],Oa.prototype,"data",void 0);_.e([_.N("data.channelName"),_.n("design:type",Object),_.n("design:paramtypes",[])],Oa.prototype,"channelName",null);_.e([_.N("data.channelBadges"),_.n("design:type",Array),_.n("design:paramtypes",[])],Oa.prototype,"channelBadges",null);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Oa);
_.w(Oa,"yt-live-chat-identity-view-model",function(){if(MXR===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;xj$===void 0&&(xj$=document.createElement("template"));var a=xj$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);MXR=D}D=MXR;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var fr4;var CxM;var o8s;var Ff4;var KO=function(){var D=_.c.apply(this,arguments)||this;D.hidden=!1;D.supportsInlineActionButtons=!0;return D};
_.J(KO,_.c);KO.prototype.ready=function(){var D;((D=document.querySelector("yt-live-chat-app"))==null?0:D.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
KO.prototype.dataChanged=function(D){var v=(0,_.kU)(_.ZW(this.hostElement).querySelector("#detail-text"));v.textContent="";(D==null?0:D.detailText)&&v.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D.detailText))};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],KO.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({observer:"dataChanged"}),_.n("design:type",Object)],KO.prototype,"data",void 0);
_.e([_.Y({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.n("design:type",Object)],KO.prototype,"hidden",void 0);_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],KO);
_.w(KO,"yt-live-chat-legacy-paid-message-renderer",function(){if(Ff4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;o8s===void 0&&(o8s=document.createElement("template"));var a=o8s;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Ff4=D}D=Ff4;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var z01;var UjF;var Lfs={},TP=function(){return _.XS.apply(this,arguments)||this};
_.J(TP,_.XS);TP.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
TP.prototype.onLiveChatMembershipItemBehaviorClick=TP.prototype.onLiveChatMembershipItemBehaviorClick;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TP.prototype,"data",void 0);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],TP.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.e([_.AV()],TP);
Lfs.YtLiveChatMembershipItemBehavior=[TP.prototype,_.t.YtRendererBehavior];var RS=function(){var D=_.c.apply(this,arguments)||this;D.supportsInlineActionButtons=!0;D.hasPrimaryHeaderText=!1;D.showOnlyHeader=!1;D.authorBadges=[];D.modern=_.g("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.J(RS,_.c);_.V=RS.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.V.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V.messageChanged=function(){var D=this.data.message,v=(0,_.kU)(_.ZW(this.hostElement).querySelector("#message"));v.textContent="";D&&v.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.V.computeHasPrimaryHeaderText=function(D){return!(!D||!D.headerPrimaryText)};
_.V.computeShowOnlyHeader=function(D,v){return this.isMessageEmpty(D,v)};
_.V.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.V.isMessageEmpty=function(D,v){return!D||D.empty?!0:!D.message&&!D.inputField&&!v};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.V.getInputElement=function(){return _.ZW(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.V.inputFocus=function(){var D=this.getInputElement();D&&D.focus()};
_.V.inputInsertEmoji=function(D){var v=this.getInputElement();v&&v.insertEmoji(D)};
_.V.inputMessage=function(){var D=this.getInputElement();return D&&this.data.inputField?(D.completeEmojis(),_.WX(D.liveChatRichMessageInput)):null};
_.V.onFooterButtonClick=function(){this.data.footerButton&&_.F1(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.V.shouldSupportWholeItemClick=function(){return!0};
RS.prototype.isDeletedChanged=RS.prototype.isDeletedChanged;RS.prototype.messageChanged=RS.prototype.messageChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],RS.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(Lfs.YtLiveChatMembershipItemBehavior),_.n("design:type",Object)],RS.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],RS.prototype,"data",void 0);_.e([_.Y({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.n("design:type",Object)],RS.prototype,"hasPrimaryHeaderText",void 0);_.e([_.Y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.n("design:type",Object)],RS.prototype,"showOnlyHeader",void 0);
_.e([_.Y({computed:"computeAuthorBadges(data)"}),_.n("design:type",Array)],RS.prototype,"authorBadges",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],RS.prototype,"modern",void 0);_.e([_.Ni("data.message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RS.prototype,"messageChanged",null);_.e([_.Ni("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RS.prototype,"isDeletedChanged",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],RS);
_.w(RS,"yt-live-chat-membership-item-renderer",function(){if(UjF===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;z01===void 0&&(z01=document.createElement("template"));var a=z01;h.call(v,a.content.cloneNode(!0),D.content.firstChild);UjF=D}D=UjF;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var ZA9;var E8y;var iK=function(){return _.c.apply(this,arguments)||this};
_.J(iK,_.c);iK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iK.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],iK);
_.w(iK,"yt-live-chat-mode-change-message-renderer",function(){if(E8y===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;ZA9===void 0&&(ZA9=document.createElement("template"));var a=ZA9;h.call(v,a.content.cloneNode(!0),D.content.firstChild);E8y=D}D=E8y;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Iry;var g8t;var W2=function(){return _.c.apply(this,arguments)||this};
_.J(W2,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],W2.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],W2.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],W2);
_.w(W2,"yt-live-chat-moderation-message-renderer",function(){if(g8t===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;Iry===void 0&&(Iry=document.createElement("template"));var a=Iry;h.call(v,a.content.cloneNode(!0),D.content.firstChild);g8t=D}D=g8t;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var k81;var SEF;var tE=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_button_rework");return D};
_.J(tE,_.c);tE.prototype.onClick=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var v;_.pb.instance.resolveCommand((v=this.data)==null?void 0:v.onClickCommand)}};
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tE.prototype,"modern",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],tE.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],tE.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],tE.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],tE);
_.w(tE,"yt-live-chat-offer-click-count-message-renderer",function(){if(SEF===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;k81===void 0&&(k81=document.createElement("template"));var a=k81;h.call(v,a.content.cloneNode(!0),D.content.firstChild);SEF=D}D=SEF;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Js$;var pk9=function(){return _.c.apply(this,arguments)||this};
_.J(pk9,_.c);_.e([_.Y(),_.n("design:type",Object)],pk9.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],pk9);
_.w(pk9,"yt-live-chat-placeholder-item-renderer",function(){if(Js$===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);Js$=D}D=Js$;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var lrp;var NyJ;var YE$=new hQ(7),r2=function(){var D=_.c.apply(this,arguments)||this;D.data={};return D};
_.J(r2,_.c);r2.prototype.dataChanged=function(){var D;((D=this.data)==null?0:D.class)&&_.Iy(this.hostElement,this.data.class,!0);var v;((v=this.oldData)==null?0:v.class)&&_.Iy(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
r2.prototype.computeTimestampString=function(D){return YE$.format(new Date(D/1E3))};
r2.prototype.dataChanged=r2.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],r2.prototype,"data",void 0);_.e([_.Y({computed:"computeTimestampString(data.timestampUsec)"}),_.n("design:type",String)],r2.prototype,"timestampString",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r2.prototype,"dataChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],r2);
_.w(r2,"yt-live-chat-server-error-message",function(){if(NyJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;lrp===void 0&&(lrp=document.createElement("template"));var a=lrp;h.call(v,a.content.cloneNode(!0),D.content.firstChild);NyJ=D}D=NyJ;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Byb;var csJ;var uK=function(){var D=_.c.apply(this,arguments)||this;D.defaultToFilledIcon=!1;return D};
_.J(uK,_.c);uK.prototype.computeHasPrimaryColorIcon=function(D){return D==="SPARK"||D==="SPONSORSHIP_STAR"};
uK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],uK.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uK.prototype,"defaultToFilledIcon",void 0);_.e([_.Y(),_.n("design:type",Object)],uK.prototype,"data",void 0);
_.e([_.Y({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.n("design:type",Boolean)],uK.prototype,"hasPrimaryColorIcon",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],uK);
_.w(uK,"yt-live-chat-viewer-engagement-message-renderer",function(){if(csJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Byb===void 0&&(Byb=document.createElement("template"));var a=Byb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);csJ=D}D=csJ;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Xky;var DZ=function(){var D=_.c.apply(this,arguments)||this;D.modernUpdate=!1;D.buttonStyle="overlay";D.buttonType="filled";return D};
_.J(DZ,_.c);DZ.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
DZ.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],DZ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],DZ.prototype,"modernUpdate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],DZ.prototype,"buttonStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],DZ.prototype,"buttonType",void 0);
_.e([_.m({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],DZ);
_.w(DZ,"ytd-ad-hover-text-button-renderer",function(){if(Xky!==void 0)return Xky;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Xky=D},{mode:1});var Ast;var v0=function(){var D=_.c.apply(this,arguments)||this;D.buttonOverrides={size:"XS"};D.modern=_.g("web_button_rework");return D};
_.J(v0,_.c);v0.prototype.onHelpTap=function(D){this.data&&this.data.informationDialog&&(_.F1(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),D.preventDefault(),D.stopPropagation())};
_.e([_.Y(),_.n("design:type",Object)],v0.prototype,"buttonOverrides",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],v0.prototype,"modern",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],v0.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],v0);
_.w(v0,"ytd-live-chat-purchased-product-message-renderer",function(){if(Ast!==void 0)return Ast;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Ast=D},{mode:1});var qEs;var bA4;var h9=function(){var D=_.c.apply(this,arguments)||this;D.isContainerDeleted=!1;return D};
_.J(h9,_.c);h9.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
h9.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))};
h9.prototype.isContainerDeletedChanged=h9.prototype.isContainerDeletedChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],h9.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],h9.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],h9.prototype,"isContainerDeleted",void 0);
_.e([_.Y(),_.n("design:type",String)],h9.prototype,"deletedStateMessage",void 0);_.e([_.Ni("isContainerDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h9.prototype,"isContainerDeletedChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],h9);
_.w(h9,"ytd-sponsorships-live-chat-header-renderer",function(){if(bA4!==void 0)return bA4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return bA4=D},{mode:1});var a1=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.J(a1,_.c);a1.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]]"}}}}}};
a1.prototype.onCtaButtonClick=function(){var D,v=_.k((D=this.data)==null?void 0:D.optInPrompt,_.Vi);if(D=this.maybeGetButtonCommand(v)){var h;(h=_.c8())==null||h.clickCommand(D)}};
a1.prototype.maybeGetButtonCommand=function(D){return!D||!D.command||_.k(D.command,YH1)===void 0&&_.k(D.command,NhJ)===void 0?null:D.command};
a1.prototype.shouldHideOptinPrompt=function(D,v){return!D||v};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],a1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],a1.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],a1.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],a1.prototype,"modern",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],a1);
_.w(a1,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(qEs!==void 0)return qEs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return qEs=D},{mode:1});var djJ;var $i=function(){return _.c.apply(this,arguments)||this};
_.J($i,_.c);$i.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
$i.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))};
$i.prototype.isDeletedChanged=$i.prototype.isDeletedChanged;_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],$i.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$i.prototype,"data",void 0);_.e([_.Ni("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$i.prototype,"isDeletedChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],$i);
_.w($i,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(djJ!==void 0)return djJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="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');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return djJ=D},{mode:1});var Qh=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return D};
_.J(Qh,_.c);_.V=Qh.prototype;
_.V.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"}}}};
_.V.handleLiveChatAction=function(D){_.k(D,U_s)?this.handleMarkChatItemAsDeletedAction(_.k(D,U_s)):_.k(D,zhb)&&this.handleRemoveChatItemAction(_.k(D,zhb))};
_.V.handleLiveChatActions=function(D){D.forEach(this.handleLiveChatAction,this)};
_.V.handleMarkChatItemAsDeletedAction=function(D){var v=this,h;((h=this.data)==null?0:h.items)&&this.data.items.forEach(function(a,Q){var G=Object.keys(a)[0];Object.values(a)[0].id===D.targetItemId&&v.markAsDeleted("data.items",Q,G,D.deletedStateMessage,D.showOriginalContentMessage)})};
_.V.handleRemoveChatItemAction=function(D){var v=this,h;((h=this.data)==null?0:h.items)&&this.data.items.forEach(function(a,Q){Object.values(a)[0].id===D.targetItemId&&v.splice("data.items",Q,1)})};
_.V.markAsDeleted=function(D,v,h,a,Q){D=[D,v,h].join(".");this.set(D+".deletedStateMessage",a);this.set(D+".showOriginalContentMessage",Q)};
_.e([_.Y(),_.n("design:type",Object)],Qh.prototype,"data",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Qh.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Qh);
_.w(Qh,"yt-live-chat-item-display-list-renderer",function(){if(CxM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;fr4===void 0&&(fr4=document.createElement("template"));var a=fr4;h.call(v,a.content.cloneNode(!0),D.content.firstChild);CxM=D}D=CxM;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var jfF;var sfp,mj4=function(){if(sfp!==void 0)return sfp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;jfF===void 0&&(jfF=document.createElement("template"));var a=jfF;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return sfp=D};var GJ=function(){var D=_.c.apply(this,arguments)||this;D.isHeader=!1;return D};
_.J(GJ,_.c);GJ.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.GT.Object.defineProperties(GJ,{template:{configurable:!0,enumerable:!0,get:function(){return mj4()}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GJ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GJ.prototype,"isHeader",void 0);_.e([_.Ry({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],GJ);_.w(GJ,"yt-live-chat-item-display-renderer",function(){return mj4()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var HA4,yss,KfM,OA$;
HA4={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}};yss={home:"eohps",search:"eosps",watch:"eowps"};_.wk4=["watch","search","home"];
_.Vh=function(){this.JSC$14300_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14300_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.eA("PRECONSTRUCTION_DELAY",0);this.signals_=_.ol();this.targetPage_=""};
_.Vh.prototype.init=function(D,v){D=D===void 0?"":D;v=v===void 0?null:v;if(this.JSC$14300_isInitialized_)this.abort();else if(this.JSC$14300_isInitialized_=!0,D&&_.e04(this,D),v){var h=_.FQ(this.signals_,"pcl")?0:10,a=function(){for(var Q=0,G;G=_.wk4[Q++];)G!=D&&G!=v&&this.pendingPages_.push(G);_.n8p(this)}.bind(this);
this.signals_.parkOrScheduleJob(a,h,"pcl")}};
_.Vh.prototype.abort=function(){this.fragmentJobId_&&(_.HK.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);OA$(this)};
_.e04=function(D,v){D.JSC$14300_isInitialized_&&!D.targetPage_&&(D.targetPage_=v,KfM(D,v),D.isInitialPass_=!1,KfM(D,v),D.signals_.processSignal(yss[D.targetPage_]),OA$(D),_.n8p(D))};
_.n8p=function(D){D.pendingPages_.length&&!D.pagePreparerJobId_&&(D.pagePreparerJobId_=_.c1(_.HK,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.e04(this,this.pendingPages_.shift())}.bind(D),D.DEFAULT_DELAY_))};
KfM=function(D,v){if(v=HA4[v])for(var h in v){var a=!1,Q=h;h.charAt(0)=="~"&&(a=!0,Q=h.substring(1));var G=v[h];G=typeof G=="object"?G:{count:G};v[h]=G;G.componentName=Q;G.count>0&&(D.isInitialPass_?a||D.isSeenDuringInitialPass_[Q]||(D.JSC$14300_queue_.push({componentName:Q,count:1,signals:G.signals}),D.isSeenDuringInitialPass_[Q]=!0,G.count--):D.JSC$14300_queue_.push(G))}};
OA$=function(D){D.JSC$14300_queue_.length=0;D.targetPage_="";D.isInitialPass_=!0;D.signals_.processSignal("eop")};
_.Vh.getInstance=function(){return _.Qf(_.Vh)};var TyF=function(){this.signals=_.ol();this.init()};
TyF.prototype.startPreconstruction=function(){_.Vh.getInstance().init(_.nJ("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
TyF.prototype.init=function(){R01(this);window.Polymer&&UbR&&ni7();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var D=_.$L.ytcsi;if(D&&D.gt&&(D=D.gt())&&D.tick&&(D.tick.aft>0||D.tick.pbs>0)&&(_.nJ("IS_HOMEPAGE_COLD")||_.nJ("IS_RESULTS_PAGE_COLD")||_.nJ("IS_WATCH_PAGE_COLD"))){iAF(this);break a}di2(XqL,this.onNotifications,this)}};
var R01=function(D){var v=function(){D.signals.processSignal("dl")};
document.readyState==="complete"?(_.Wv(Error("yh"),"WARNING"),v()):_.f2O(window,"load",v)};
TyF.prototype.onNotifications=function(D){D.timer||(_.nJ("IS_HOMEPAGE_COLD")||_.nJ("IS_RESULTS_PAGE_COLD")||_.nJ("IS_WATCH_PAGE_COLD"))&&iAF(this)};
var iAF=function(D){D.signals.parkOrScheduleJob(function(){D.signals.processSignal("eocs")},10,"eor")};
new TyF;var P0,WfR=function(){return _.XS.apply(this,arguments)||this};
_.J(WfR,_.XS);_.V=WfR.prototype;_.V.enableActiveViewMeasurement=function(D){if(this.isActiveViewEnabled(D)){var v=this.getUrlPrefixesFromCommand(D.viewableCommands);D=this.getUrlPrefixesFromCommand(D.endOfSessionCommands);if(!P0){var h=_.oZ("custom_active_view_tos_timeout_ms");P0=h>0&&h!==36E5?new g0f(this.getVersion(),h):new g0f(this.getVersion())}SvA(P0,this.hostElement);JiA(P0,this.hostElement,v,D)}};
_.V.stopActiveViewMeasurement=function(){P0&&SvA(P0,this.hostElement)};
_.V.isActiveViewEnabled=function(D){return!!D&&(this.hasAtLeastOneUrl(D.viewableCommands)||this.hasAtLeastOneUrl(D.endOfSessionCommands))};
_.V.hasAtLeastOneUrl=function(D){return!!D&&D.length>0&&D[0].loggingUrls!=null&&D[0].loggingUrls.length>0};
_.V.getVersion=function(){var D=_.eA("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
_.V.getUrlPrefixesFromCommand=function(D){if(!D)return[];var v=[];D=_.P(D);for(var h=D.next();!h.done;h=D.next())if(h=h.value,h.loggingUrls){h=_.P(h.loggingUrls);for(var a=h.next();!a.done;a=h.next())a=a.value,a.baseUrl&&v.push(a.baseUrl)}return v};
_.e([_.AV()],WfR);var xi=[WfR.prototype];var tXt=function(){return _.XS.apply(this,arguments)||this};
_.J(tXt,_.XS);_.GT.Object.defineProperties(tXt.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_entity_store_from_dependency_injection")?_.P8():_.Gb()}}});
_.e([_.AV()],tXt);_.Mm=[$k.prototype,tXt.prototype];var rsF=["ytd-rich-shelf-renderer"],fC=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;D.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";D.followUpDialogPromise=null;D.followUpDialogPromiseResolve=null;D.followUpDialogPromiseReject=null;return D};
_.J(fC,_.XS);_.V=fC.prototype;_.V.dismissibleItemIsDismissedChanged_=function(D){_.g("kevlar_fluid_dismiss")&&(D?_.F1(this.hostElement,"yt-dismissible-item-dismissed"):_.F1(this.hostElement,"yt-dismissible-item-undismissed"))};
_.V.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.V.dismissibleItemReset_=function(){var D=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.IB(function(v,h){D.followUpDialogPromiseResolve=v;D.followUpDialogPromiseReject=h});
_.F1(this.hostElement,"yt-enable-lockup-interaction")};
_.V.dismissibleItemOnYtServiceRequestSent_=function(D,v){v.actions&&this.dismissibleItemProcessActions(v.actions,D)};
_.V.dismissibleItemOnRequestSent=function(D){if(_.g("web_button_rework"))for(var v=_.P(D.detail),h=v.next();!h.done;h=v.next()){var a=void 0;(h=(a=_.k(h.value,_.kE))==null?void 0:a.actions)&&this.dismissibleItemProcessActions(h,D)}};
_.V.dismissibleItemOnCommandSent=function(D,v){v&&this.dismissibleItemProcessActions(v,D)};
_.V.setAndGetDismissedContentId=function(D){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+D};
_.V.replayDismissAction=function(D){this.dismissibleItemProcessActions([D])};
_.V.dismissibleItemProcessActions=function(D,v){for(var h=0;h<D.length;h++){var a=D[h],Q=void 0;((Q=_.k(a,_.IN))==null?0:Q.commands)&&this.dismissibleItemProcessActions(_.k(a,_.IN).commands,v);if(_.k(a,_.yo)){if(Q=_.k(a,_.yo),!Q.replaceParentSection||rsF.includes(this.hostElement.nodeName.toLowerCase()))Q.groupDismissal&&Ny4(this,Q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Xe("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:a})),a=void 0,(a=v)==null||a.stopPropagation()}else if(_.k(a,UEF))this.dismissibleItemHandleHideEnclosingAction_(),a=void 0,(a=v)==null||a.stopPropagation();else if(_.k(a,mC1))a=_.k(a,mC1),Q=void 0,((Q=a)==null?0:Q.targetGroupId)&&Ny4(this,{targetGroupId:a.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Xe("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
a=void 0,(a=v)==null||a.stopPropagation();else if(_.k(a,_.kE))(a=_.k(a,_.kE).actions)&&_.ZD(this.hostElement,a,this.hostElement),a=void 0,(a=v)==null||a.stopPropagation();else{var G=Q=void 0;((Q=_.k(a,_.Kp))==null?void 0:Q.signal)!=="TELL_US_WHY"||((G=_.k(a,_.Kp))==null?0:G.targetId)&&_.g("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),a=void 0,(a=v)==null||a.stopPropagation())}}};
_.V.dismissibleItemOnYtServiceRequestCompleted_=function(D,v){var h=this.get("feedbackResponses.0.followUpDialog",v.data);h?this.followUpDialogPromiseResolve(h):v.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(v.actions,D)};
_.V.dismissibleItemHandleReplaceEnclosingAction_=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0;var v=null;(v=_.ZW(this.hostElement).querySelector("#dismissed"))&&_.$R(this,function(){_.hX(v)});
_.F1(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.V.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.V.dismissibleItemHandleUndoFeedbackAction_=function(){_.F1(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.V.dismissibleItemHandleTellUsWhySignalAction_=function(){var D=this;this.followUpDialogPromise.then(function(v){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:v}})})};
fC.prototype.dismissibleItemOnYtServiceRequestCompleted_=fC.prototype.dismissibleItemOnYtServiceRequestCompleted_;fC.prototype.dismissibleItemOnCommandSent=fC.prototype.dismissibleItemOnCommandSent;fC.prototype.dismissibleItemOnRequestSent=fC.prototype.dismissibleItemOnRequestSent;fC.prototype.dismissibleItemOnYtServiceRequestSent_=fC.prototype.dismissibleItemOnYtServiceRequestSent_;fC.prototype.dismissibleItemDataChanged_=fC.prototype.dismissibleItemDataChanged_;
fC.prototype.dismissibleItemIsDismissedChanged_=fC.prototype.dismissibleItemIsDismissedChanged_;_.e([_.l(_.lK),_.n("design:type",Object)],fC.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],fC.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],fC.prototype,"isDismissed",void 0);_.e([_.Y(),_.n("design:type",Object)],fC.prototype,"dismissedRenderer",void 0);
_.e([_.Ni("isDismissed"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean]),_.n("design:returntype")],fC.prototype,"dismissibleItemIsDismissedChanged_",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fC.prototype,"dismissibleItemDataChanged_",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],fC.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.e([_.lc("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],fC.prototype,"dismissibleItemOnRequestSent",null);
_.e([_.lc("yt-dismissible-item-action"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Array]),_.n("design:returntype")],fC.prototype,"dismissibleItemOnCommandSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],fC.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.e([_.AV()],fC);_.CC=[_.lK,_.Mm,fC.prototype];var o1=function(){var D=_.XS.apply(this,arguments)||this;D.disableGridStateAware=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};D.currentGridClass="";return D};
_.J(o1,_.XS);o1.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.$R(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var D=this.gridStateAwareGetElement();_.Iy(D,"grid",!0)}};
o1.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
o1.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ZW(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
o1.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var D="grid-disabled";else{D=_.BC.getInstance();var v=this.get("pageSubtype");D=v&&HIR.includes(v)?"grid-disabled":D.currentSnapState_?D.currentSnapState_.className:null}(v=this.gridStateAwareGetElement())&&D!==this.currentGridClass&&(D&&_.Iy(v,D,!0),this.currentGridClass&&_.Iy(v,this.currentGridClass,!1),this.currentGridClass=D)};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],o1.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",String)],o1.prototype,"gridStateAwareSizingElementSelector",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],o1.prototype,"disableGridStateAware",void 0);_.e([_.AV()],o1);_.Fg=[o1.prototype,_.ed.YtActionHandlerBehavior];_.zJ=new _.Uj("GUIDE_TOKEN");var LC;_.U0={};LC=function(){var D=_.XS.apply(this,arguments)||this;D.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return D};
_.J(LC,_.XS);_.V=LC.prototype;_.V.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var D=_.xd().resolve(_.PV(_.zJ));D&&(this.guidePersistentAndVisible=D.getGuidePersistentAndVisible(),this.activeEndpoint=D.getActiveEndpoint(),this.guideOpened=D.getGuideOpened(),this.miniGuideVisible=D.getMiniGuideVisible())};
_.V.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.V.handleGuideStateAction=function(D){this.guidePersistentAndVisible=D};
_.V.handleMiniGuideStateAction=function(D){this.miniGuideVisible=D};
_.V.handleGuideOpenedAction=function(D){this.guideOpened=D};
_.V.handleActiveEndpointAction=function(D){this.activeEndpoint=D};
LC.prototype.onActiveEndpointChange=LC.prototype.onActiveEndpointChange;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],LC.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],LC.prototype,"guidePersistentAndVisible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],LC.prototype,"miniGuideVisible",void 0);_.e([_.Y(),_.n("design:type",Object)],LC.prototype,"activeEndpoint",void 0);
_.e([_.Ni("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LC.prototype,"onActiveEndpointChange",null);_.e([_.Y(),_.n("design:type",Boolean)],LC.prototype,"guideOpened",void 0);_.e([_.AV()],LC);_.U0.YtdGuideStateAwareBehavior=[];_.U0.YtdGuideStateAwareBehavior.push(LC.prototype,_.ed.YtActionHandlerBehavior);var ubb=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],ZZ=function(){var D=_.XS.apply(this,arguments)||this;D.hoverJobId=0;D.JSC$14331_touched=!1;return D};
_.J(ZZ,_.XS);_.V=ZZ.prototype;_.V.created=function(){this.useExpandableTooltip=!ubb.includes(this.is)};
_.V.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.V.detached=function(){this.useExpandableTooltip=!1};
_.V.lockupOnDown=function(D){this.interactionElement&&!_.Gf(_.Pr(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.V.lockupOnUp=function(D){this.interactionElement&&!_.Gf(_.Pr(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.V.onTouchStart=function(){this.JSC$14331_touched=!0};
_.V.lockupOnMouseEnter=function(){var D=this,v=_.oZ("kevlar_lockup_hover_delay",-1);this.JSC$14331_touched&&v>=0?(_.HK.cancelJob(this.hoverJobId),this.hoverJobId=_.HK.addJob(function(){D.lockupIsHovered=!0},8,v),this.JSC$14331_touched=!1):this.lockupIsHovered=!0};
_.V.lockupOnMouseLeave=function(){this.hoverJobId&&(_.HK.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.V.lockupOnPopupClosed=function(D,v){var h;((h=v.popupRenderer)==null?void 0:h.is)==="ytd-menu-popup-renderer"&&(D=v.popupRenderer.veData,v=_.wd(),D&&v&&_.vf(v,[D]))};
_.V.lockupOnLockupRequested=function(D){var v=D.detail.videoIds[0],h;D.detail&&v===((h=this.data)==null?void 0:h.videoId)&&(D.detail.returnValue=[this.data])};
_.V.lockupOnYtServiceRequestSent=function(D,v){if(D=v.actions)for(var h=0;h<D.length;h++){var a=D[h];if(a.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&v.ajaxPromise){var Q=void 0,G=(Q=_.k(v.endpoint,_.$G))==null?void 0:Q.playlistId;Q=void 0;a=(Q=a.removedVideoId)!=null?Q:"";fRp(_.UH(),a,G)}else a.action==="ACTION_REMOVE_VIDEO"&&v.ajaxPromise&&(G=void 0,a=(G=a.setVideoId)!=null?G:"",_.CRb(_.UH(),a))}};
_.V.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.V.lockupOnLockupEnabled=function(){if(!this.$){var D=_.xd().resolve(_.P4).getCurrentPage(),v=this.getParentRenderer?this.getParentRenderer():void 0;_.yR(new _.XH("component not ready",this.is,this.isAttached,D==null?void 0:D.is,v==null?void 0:v.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
ZZ.prototype.lockupOnLockupEnabled=ZZ.prototype.lockupOnLockupEnabled;ZZ.prototype.lockupOnLockupDisabled=ZZ.prototype.lockupOnLockupDisabled;ZZ.prototype.lockupOnYtServiceRequestSent=ZZ.prototype.lockupOnYtServiceRequestSent;ZZ.prototype.lockupOnLockupRequested=ZZ.prototype.lockupOnLockupRequested;ZZ.prototype.lockupOnPopupClosed=ZZ.prototype.lockupOnPopupClosed;ZZ.prototype.lockupOnMouseLeave=ZZ.prototype.lockupOnMouseLeave;ZZ.prototype.lockupOnMouseEnter=ZZ.prototype.lockupOnMouseEnter;
ZZ.prototype.onTouchStart=ZZ.prototype.onTouchStart;ZZ.prototype.lockupOnUp=ZZ.prototype.lockupOnUp;ZZ.prototype.lockupOnDown=ZZ.prototype.lockupOnDown;_.e([_.Y(),_.n("design:type",Object)],ZZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ZZ.prototype,"lockupIsHovered",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ZZ.prototype,"lockupTouchTriggered",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ZZ.prototype,"useExpandableTooltip",void 0);
_.e([_.Br("#interaction"),_.n("design:type",Object)],ZZ.prototype,"interactionElement",void 0);_.e([_.lc("down"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ZZ.prototype,"lockupOnDown",null);_.e([_.lc("up"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ZZ.prototype,"lockupOnUp",null);
_.e([_.lc("touchstart"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZZ.prototype,"onTouchStart",null);_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZZ.prototype,"lockupOnMouseEnter",null);_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZZ.prototype,"lockupOnMouseLeave",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],ZZ.prototype,"lockupOnPopupClosed",null);_.e([_.lc("yt-lockup-requested"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ZZ.prototype,"lockupOnLockupRequested",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],ZZ.prototype,"lockupOnYtServiceRequestSent",null);_.e([_.lc("yt-disable-lockup-interaction"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZZ.prototype,"lockupOnLockupDisabled",null);
_.e([_.lc("yt-enable-lockup-interaction"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZZ.prototype,"lockupOnLockupEnabled",null);_.e([_.AV()],ZZ);_.E0=[ZZ.prototype];_.DnM={YtdReduxBehavior:[]};_.DnM.YtdReduxBehavior.push.apply(_.DnM.YtdReduxBehavior,_.Mm);var I1=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;D.disableNowPlaying=!1;D.disableTooltips=!1;D.useHoveredProperty=!1;D.hovered=!1;D.isThumbnailHovered_=!1;D.addBackground=_.g("kevlar_thumbnail_bg");D.nowPlaying=!1;D.disableRounding=!1;D.size="small";return D};
_.J(I1,_.XS);_.V=I1.prototype;_.V.computeThumbnailOverlaySidePanelWidth_=function(D,v){return D-v};
_.V.computeSize=function(D,v){if(!this.disableRounding){if(!D&&!v)return"small";D=Math.max(D||0,v||0);return D>=256?"large":D>=96?"medium":"small"}};
_.V.computeFinalHoveredState_=function(D,v,h){return this.nowPlaying?!1:_.g("kevlar_thumbnail_fluid")&&D?v:h};
_.V.computeHoverOverlays_=function(D,v){return D&&v?v:void 0};
_.V.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.V.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.V.checkMiniplayer_=function(){var D;if(((D=this.data)==null?0:D.playlistSetVideoId)&&_.g("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{D=_.eh();var v=D.currentEndpoint;!this.disableNowPlaying&&v&&_.k(v,_.hP)&&this.data?(v=_.k(v,_.hP),this.nowPlaying=this.data.playlistId?v.playlistId===this.data.playlistId:v.videoId===this.data.videoId,this.isVideoPlaying=D==null?void 0:D.isVideoPlaying):this.nowPlaying=!1}};
I1.prototype.checkMiniplayer_=I1.prototype.checkMiniplayer_;I1.prototype.onMouseLeave_=I1.prototype.onMouseLeave_;I1.prototype.onMouseEnter_=I1.prototype.onMouseEnter_;I1.prototype.computeHoverOverlays_=I1.prototype.computeHoverOverlays_;I1.prototype.computeFinalHoveredState_=I1.prototype.computeFinalHoveredState_;I1.prototype.computeSize=I1.prototype.computeSize;I1.prototype.computeThumbnailOverlaySidePanelWidth_=I1.prototype.computeThumbnailOverlaySidePanelWidth_;
_.e([_.l(_.Mm),_.n("design:type",Object)],I1.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],I1.prototype,"height",void 0);_.e([_.Y(),_.n("design:type",Boolean)],I1.prototype,"bottomSidePanel",void 0);_.e([_.Y(),_.n("design:type",Number)],I1.prototype,"width",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"disableNowPlaying",void 0);
_.e([_.Y({selector:_.eq}),_.n("design:type",Boolean)],I1.prototype,"miniplayerIsActive",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"disableTooltips",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"useHoveredProperty",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"hovered",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"isThumbnailHovered_",void 0);
_.e([_.Y({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.n("design:type",Boolean)],I1.prototype,"finalHoveredState_",void 0);_.e([_.Y({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.n("design:type",Number)],I1.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],I1.prototype,"addBackground",void 0);
_.e([_.Y({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.n("design:type",Object)],I1.prototype,"hoverOverlays_",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],I1.prototype,"nowPlaying",void 0);_.e([_.Y(),_.n("design:type",Boolean)],I1.prototype,"isVideoPlaying",void 0);_.e([_.Y(),_.n("design:type",Object)],I1.prototype,"disableRounding",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.n("design:type",Object)],I1.prototype,"size",void 0);_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],I1.prototype,"onMouseEnter_",null);_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],I1.prototype,"onMouseLeave_",null);
_.e([_.Ni("data","disableNowPlaying","miniplayerIsActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],I1.prototype,"checkMiniplayer_",null);_.e([_.AV()],I1);var vKy=[I1.prototype];_.gG={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(D,v){return D+":"+_.iq(v)},
getPlayerListener_:function(D,v,h){D=this.getPlayerListenerKey_(D,v);v=this.playerListeners_.get(D);h&&this.playerListeners_.delete(D);return v},
savePlayerListener_:function(D,v){var h=v.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(D,v),h);return h},
listenToPlayerEvent:function(D,v,h){h=this.savePlayerListener_(v,h);D.addEventListener(v,h)},
listenToPlayerEvents:function(D,v){v.forEach(function(h,a){this.listenToPlayerEvent(D,a,h)}.bind(this))},
unlistenFromPlayerEvent:function(D,v,h){h=this.getPlayerListener_(v,h,!0);D.removeEventListener(v,h)},
unlistenFromPlayerEvents:function(D,v){v.forEach(function(h,a){this.unlistenFromPlayerEvent(D,a,h)}.bind(this))}}};
_.ki=function(){};_.hO4=new _.Uj("PLAYER_API_TOKEN");var Xku=!1,djc,qEq=!1,sfL;var og=function(D,v,h,a,Q){_.AN.call(this);var G=this;this.playerId=v;this.webPlayerContextConfig=a;this.zet=Q;this.ff4=!1;this.api={};this.pCI=this.dm6=null;this.dIJ=new _.JO;this.sG={};this.kLj=this.wnK=this.elementId=this.pZt=this.config=null;this.nwz=!1;this.lS=this.l06=null;this.mLK={};this.vdO=["onReady"];this.lastError=null;this.vLC=NaN;this.hHH={};this.eP2=0;this.dD=this.targetElement=D;_.Ia(this,this.dIJ);an1(this);h?this.eP2=setTimeout(function(){G.loadNewVideoConfig(h)},0):a&&($ny(this),
QEF(this))};
_.J(og,_.AN);og.prototype.getId=function(){return this.playerId};
og.prototype.loadNewVideoConfig=function(D){if(!this.isDisposed()){this.eP2&&(clearTimeout(this.eP2),this.eP2=0);var v=D||{};v instanceof ZCF||(v=new ZCF(v));this.config=v;this.setConfig(D);QEF(this);this.isReady()&&GDy(this)}};
var $ny=function(D){var v;D.webPlayerContextConfig?v=D.webPlayerContextConfig.rootElementId:v=D.config.attrs.id;D.elementId=v||D.elementId;D.elementId==="video-player"&&(D.elementId=D.playerId,D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.playerId:D.config.attrs.id=D.playerId);var h;((h=D.dD)==null?void 0:h.id)===D.elementId&&(D.elementId+="-player",D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.elementId:D.config.attrs.id=D.elementId)};
og.prototype.setConfig=function(D){this.pZt=D;this.config=VEp(D);$ny(this);if(!this.wnK){var v;this.wnK=PAM(this,((v=this.config.args)==null?void 0:v.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var h;if((h=this.config)==null?0:h.attrs)D=this.config.attrs,(v=D.width)&&this.dD&&(this.dD.style.width=ty(Number(v)||v,!0)),(D=D.height)&&this.dD&&(this.dD.style.height=ty(Number(D)||D,!0))};
og.prototype.getConfig=function(){return this.pZt};
var GDy=function(D){if(D.config&&D.config.loaded!==!0)if(D.config.loaded=!0,!D.config.args||D.config.args.autoplay!=="0"&&D.config.args.autoplay!==0&&D.config.args.autoplay!==!1){var v;D.api.loadVideoByPlayerVars((v=D.config.args)!=null?v:null)}else D.api.cueVideoByPlayerVars(D.config.args)},MEF=function(D){var v=!0,h=D.getPlayerElement();
h&&D.config&&(v=h.dataset.version===xn$(D));return v&&!!_.T3("yt.player.Application.create")},QEF=function(D){if(!D.isDisposed()&&!D.nwz){var v=MEF(D);
if(v&&(D.getPlayerElement()?"html5":null)==="html5")D.kLj="html5",D.isReady()||fn$(D);else if(CAy(D),D.kLj="html5",v&&D.lS&&D.targetElement)D.targetElement.appendChild(D.lS),fn$(D);else{D.config&&(D.config.loaded=!0);var h=!1;D.l06=function(){h=!0;var a=oK1(D,"player_bootstrap_method")?_.T3("yt.player.Application.createAlternate")||_.T3("yt.player.Application.create"):_.T3("yt.player.Application.create");var Q=D.config?VEp(D.config):void 0;a&&a(D.targetElement,Q,D.webPlayerContextConfig,D.zet);fn$(D)};
D.nwz=!0;v?D.l06():(_.i4(xn$(D),D.l06),(v=F1F(D))&&rTO(v||""),zOF(D)&&!h&&_.Gm("yt.player.Application.create",null))}}};
og.prototype.getPlayerElement=function(){var D=_.Cj(document,this.elementId);!D&&this.dD&&this.dD.querySelector&&(D=this.dD.querySelector("#"+this.elementId));return D};
var fn$=function(D){if(!D.isDisposed()){var v=D.getPlayerElement(),h=!1;v&&v.getApiInterface&&v.getApiInterface()&&(h=!0);if(h){D.nwz=!1;if(!oK1(D,"html5_remove_not_servable_check_killswitch")){var a;if((v==null?0:v.isNotServable)&&D.config&&(v==null?0:v.isNotServable((a=D.config.args)==null?void 0:a.video_id)))return}Un9(D)}else D.vLC=setTimeout(function(){fn$(D)},50)}},Un9=function(D){an1(D);
D.ff4=!0;var v=D.getPlayerElement();if(v){D.dm6=L1y(D,v,"addEventListener");D.pCI=L1y(D,v,"removeEventListener");var h=v.getApiInterface();h=h.concat(v.getInternalApiInterface());for(var a=D.api,Q=0;Q<h.length;Q++){var G=h[Q];a[G]||(a[G]=L1y(D,v,G))}}for(var x in D.sG)D.sG.hasOwnProperty(x)&&D.dm6&&D.dm6(x,D.sG[x]);GDy(D);D.wnK&&D.wnK(D.api);D.dIJ.publish("onReady",D.api)},L1y=function(D,v,h){var a=v[h];
return function(){var Q=_.Kz.apply(0,arguments);try{return D.lastError=null,a.apply(v,Q)}catch(G){if(h!=="sendAbandonmentPing")throw G.params=h,D.lastError=G,Q=new _.XH("PlayerProxy error in method call",{error:G,method:h,playerId:D.playerId}),Q.level="WARNING",Q;}}},an1=function(D){D.ff4=!1;
if(D.pCI)for(var v in D.sG)D.sG.hasOwnProperty(v)&&D.pCI(v,D.sG[v]);for(var h in D.hHH)D.hHH.hasOwnProperty(h)&&clearTimeout(Number(h));D.hHH={};D.dm6=null;D.pCI=null;v=D.api;for(var a in v)v.hasOwnProperty(a)&&(v[a]=null);v.addEventListener=function(Q,G){D.addEventListener(Q,G)};
v.removeEventListener=function(Q,G){D.removeEventListener(Q,G)};
v.destroy=function(){D.dispose()};
v.getLastError=function(){return D.getLastError()};
v.getPlayerType=function(){return D.getPlayerType()};
v.getCurrentVideoConfig=function(){return D.getConfig()};
v.loadNewVideoConfig=function(Q){D.loadNewVideoConfig(Q)};
v.isReady=function(){return D.isReady()}};
og.prototype.isReady=function(){return this.ff4};
og.prototype.addEventListener=function(D,v){var h=this;this.isDisposed();var a=PAM(this,v);a&&(_.wc(this.vdO,D)||this.sG[D]||(v=Z54(this,D),this.dm6&&this.dm6(D,v)),this.dIJ.subscribe(D,a),D==="onReady"&&this.isReady()&&setTimeout(function(){a(h.api)},0))};
og.prototype.removeEventListener=function(D,v){this.isDisposed()||(v=PAM(this,v))&&this.dIJ.unsubscribe(D,v)};
var PAM=function(D,v){var h=v;if(typeof v==="string"){if(D.mLK[v])return D.mLK[v];h=function(){var a=_.Kz.apply(0,arguments),Q=_.T3(v);if(Q)try{Q.apply(_.$L,a)}catch(G){throw a=new _.XH("PlayerProxy error when executing callback",{error:G}),a.level="ERROR",a;}};
D.mLK[v]=h}return h?h:null},Z54=function(D,v){var h=function(a){var Q=function(){D.isDisposed();
if(!D.isDisposed())try{D.dIJ.publish(v,a!=null?a:void 0)}catch(f){var x=new _.XH("PlayerProxy error when creating global callback",{error:f.message,event:v,playerId:D.playerId,data:a,originalStack:f.stack,componentStack:f.componentStack});x.level="WARNING";throw x;}};
if(oK1(D,"web_player_publish_events_immediately"))Q();else{var G=setTimeout(function(){Q();_.sV.remove(D.hHH,String(G))},0);
_.sV.add(D.hHH,String(G),!0)}};
return D.sG[v]=h};
og.prototype.getPlayerType=function(){return this.kLj||(this.getPlayerElement()?"html5":null)};
og.prototype.getLastError=function(){return this.lastError};
var CAy=function(D){D.cancel();an1(D);D.kLj=null;D.config&&(D.config.loaded=!1);var v=D.getPlayerElement();v&&(MEF(D)||!zOF(D)?D.lS=v:(v&&v.destroy&&v.destroy(),D.lS=null));D.targetElement&&_.nW(D.targetElement)};
og.prototype.cancel=function(){this.l06&&_.l$2(xn$(this),this.l06);clearTimeout(this.vLC);this.nwz=!1};
og.prototype.disposeInternal=function(){CAy(this);if(this.lS&&this.config&&this.lS.destroy)try{this.lS.destroy()}catch(v){var D=new _.XH("PlayerProxy error during disposal",{error:v});D.level="ERROR";throw D;}this.mLK=null;for(D in this.sG)this.sG.hasOwnProperty(D)&&delete this.sG[D];this.pZt=this.config=this.api=null;delete this.targetElement;delete this.dD;_.AN.prototype.disposeInternal.call(this)};
var zOF=function(D){var v,h;D=(v=D.config)==null?void 0:(h=v.args)==null?void 0:h.fflags;return!!D&&D.indexOf("player_destroy_old_version=true")!==-1},xn$=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.jsUrl:(D=D.config.assets)?D.js:""},F1F=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.cssUrl:(D=D.config.assets)?D.css:""},oK1=function(D,v){if(D.webPlayerContextConfig)var h=D.webPlayerContextConfig.serializedExperimentFlags;
else{var a;if((a=D.config)==null?0:a.args)h=D.config.args.fflags}return(h||"").split("&").includes(v+"=true")},VEp=function(D){for(var v={},h=_.P(Object.keys(D)),a=h.next();!a.done;a=h.next()){a=a.value;
var Q=D[a];v[a]=typeof Q==="object"?_.sV.clone(Q):Q}return v};var e0o={},wk7="player_uid_"+(Math.random()*1E9>>>0);var Sf=function(D,v,h,a,Q,G){v=v===void 0?document.createElement("div"):v;this.webPlayerContextConfig=D;this.container=v;this.commandResolver=h;this.apiResolver=Kfi();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.gT;a||G?EK4(this):In4(this);this.pendingPlayerResponse=a;this.pendingWatchNextResponse=Q;this.pendingPlayerVars=G;gK4(this)};
Sf.prototype.loadVideoWithPlayerResponse=function(D,v,h){this.loadVideo(D,v,h)};
Sf.prototype.loadVideoWithPlayerVars=function(D){return this.loadVideo(void 0,void 0,D)};
Sf.prototype.destroy=function(D){if(D=_.Cj(document,D))D=wk7+"_"+_.iq(D),(D=e0o[D])&&D.dispose()};
var Sx1=function(D,v){var h;_.M(function(a){if(a.nextAddress==1)return D.pendingWatchNextResponse=v,D.synchronousApi?(h=D.synchronousApi,a.jumpTo(2)):a.yield(D.api,3);a.nextAddress!=2&&(h=a.yieldResult);if(!kD1(D,h))return a.return();D.pendingWatchNextResponse&&(h.updateVideoData({raw_watch_next_response:D.pendingWatchNextResponse}),D.pendingWatchNextResponse=void 0);_.YI(a)})},kD1=function(D,v){var h;
if(!(v==null?0:(h=v.isReady)==null?0:h.call(v))){var a;_.yR(new _.XH("playerApi is falsey",{synchronousApi:D.synchronousApi,apiResolved:D.apiResolver.resolved,playerApiUndefined:v===void 0,playerApiNull:v===null,playerApiReady:(v==null?void 0:(a=v.isReady)==null?void 0:a.call(v))===!0,playerApiMethods:v?Object.keys(v):[]}));return!1}return!0},JW1=function(D,v){if(typeof D[v]==="function")return D[v]()},pIp=function(D){var v=window,h,a=(h=v.ytplayer)==null?void 0:h.bootstrapPlayerContainer;
if((h=a==null?void 0:a.firstElementChild)&&_.$N(h,"html5-video-player")){var Q,G,x=(Q=v.ytplayer)==null?void 0:(G=Q.bootstrapWebPlayerContextConfig)==null?void 0:G.contextId;Q=D.webPlayerContextConfig.contextId;if(x&&x===Q){a!==D.container&&(a=!1,JW1(h,"getPlayerState")===2&&(a=!0),D.container.appendChild(h),a||JW1(h,"playVideo"));var f;if((f=v.ytplayer)==null?0:f.bootstrapPlayerResponse)D.bootstrapPlayerResponse=v.ytplayer.bootstrapPlayerResponse}}},gK4=function(D){var v,h,a,Q,G;
_.M(function(x){if(x.nextAddress==1)return D.pageReadyOrDataAvailable?x.jumpTo(2):x.yield(D.pageReadyOrDataAvailableResolver.promise,2);if(x.nextAddress!=4)return!_.g("kevlar_player_unified_player_loading")||As2()&&bAo()?x.jumpTo(4):x.yield(HA7(),4);pIp(D);if(D.pendingPlayerResponse||D.pendingPlayerVars)v=ysq(D.pendingPlayerResponse,D.pendingWatchNextResponse,D.pendingPlayerVars),D.pendingPlayerResponse&&D.pendingPlayerResponse===D.bootstrapPlayerResponse&&(v.loaded=!0),D.bootstrapPlayerResponse=
void 0;h=OAO(D.container,v,D.webPlayerContextConfig);((a=v)==null?0:a.loaded)&&D.pendingWatchNextResponse?(Sx1(D,D.pendingWatchNextResponse),D.pendingPlayerResponse=void 0,D.pendingPlayerVars=void 0):ln4(D);Q=function(f){h.removeEventListener("onReady",Q);D.synchronousApi=f;D.apiResolver.resolve(f)};
h.addEventListener("onReady",Q);D.commandResolver!==void 0&&(G=D.commandResolver,h.addEventListener("innertubeCommand",function(f){G(f)}));
_.YI(x)})};
Sf.prototype.loadVideo=function(D,v,h){var a=this,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){if(I.nextAddress==1)return a.pendingPlayerResponse=D,a.pendingWatchNextResponse=v,a.pendingPlayerVars=h,EK4(a),a.synchronousApi?(Q=a.synchronousApi,I.jumpTo(2)):I.yield(a.api,3);I.nextAddress!=2&&(Q=I.yieldResult);if(!kD1(a,Q))return I.return(new Promise(function(){}));
x=new Promise(function(S){G=S});
f=function(){var S=Q.getPlayerResponse();S&&(Q.removeEventListener("onVideoDataChange",f),G(S))};
Q.addEventListener("onVideoDataChange",f);if(a.pendingPlayerResponse||a.pendingPlayerVars)a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse?(G(a.pendingPlayerResponse),a.pendingWatchNextResponse&&Sx1(a,a.pendingWatchNextResponse)):(C=ysq(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),(E=(U=a.pendingPlayerResponse)==null?void 0:(L=U.playerConfig)==null?void 0:(Z=L.playbackStartConfig)==null?void 0:Z.startPaused)?Q.cueVideoByPlayerVars(C.args):Q.loadVideoByPlayerVars(C.args)),
ln4(a),a.bootstrapPlayerResponse=void 0;return I.return(x)})};
var In4=function(D){if(document.readyState==="complete"||document.readyState==="interactive")EK4(D);else{var v=function(){document.removeEventListener("DOMContentLoaded",v);EK4(D)};
document.addEventListener("DOMContentLoaded",v)}},EK4=function(D){D.pageReadyOrDataAvailable=!0;
D.pageReadyOrDataAvailableResolver.resolve()},ln4=function(D){D.pendingPlayerResponse=void 0;
D.pendingWatchNextResponse=void 0;D.pendingPlayerVars=void 0};
_.GT.Object.defineProperties(Sf.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var J9=function(D){Ww.call(this,D===void 0?"document_active":D);var v=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(h){v.transition("document_disposed",{event:h})});
window.addEventListener("beforeunload",function(h){v.transition("document_disposed_preventable",{event:h})});
window.addEventListener("unload",function(h){v.transition("document_disposed",{event:h});v.hasRun=new Map})};
_.J(J9,Ww);
J9.prototype.runPreventableDispose=function(D,v){if(!this.hasRun.get("document_disposed_preventable")){D(v==null?void 0:v.event);var h,a;if((v==null?0:(h=v.event)==null?0:h.defaultPrevented)||(v==null?0:(a=v.event)==null?0:a.returnValue)){v.event.returnValue||(v.event.returnValue=!0);v.event.defaultPrevented||v.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")};
J9.prototype.runDispose=function(D,v){this.hasRun.get("document_disposed")?this.transition("document_active"):(D(v==null?void 0:v.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
J9.prototype.runFlush=function(D,v){D(v==null?void 0:v.event);this.transition("document_active")};
J9.prototype.runActive=function(){};var pC=function(D){Ww.call(this,D===void 0?"document_visibility_unknown":D);var v=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(h){document.visibilityState==="visible"?v.transition("document_visible",{event:h}):v.transition("document_hidden",
{event:h})});
_.g("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(h){v.transition("document_backgrounded",{event:h})}),window.addEventListener("focus",function(h){v.transition("document_foregrounded",{event:h})}))};
_.J(pC,Ww);pC.prototype.runVisible=function(D,v){D(v==null?void 0:v.event);_.g("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
pC.prototype.runHidden=function(D,v){D(v==null?void 0:v.event);_.g("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
pC.prototype.runBackgrounded=function(D,v){D(v==null?void 0:v.event)};
pC.prototype.runForegrounded=function(D,v){D(v==null?void 0:v.event)};var lX=function(){this.teardownLifecycle=new J9;this.visibilityLifecycle=new pC};
lX.prototype.install=function(){var D=_.Kz.apply(0,arguments),v=this;D.forEach(function(h){v.teardownLifecycle.install(h)});
D.forEach(function(h){v.visibilityLifecycle.install(h)})};var Nm=function(){lX.call(this);var D={};this.install((D.document_disposed={callback:this.abortSlisAndFlush},D));_.g("combine_ve_grafts")&&(D={},this.install((D.document_disposed={callback:this.flushInteractionLoggingAttachVes},D)));D={};this.install((D.flush_logs={callback:this.logFinalPayload},D));_.g("web_log_cfg_cee_ks")||_.c1(_.HK,N7R)};
_.J(Nm,lX);var Ty8=function(){Nm.loggingInstance||(Nm.loggingInstance=new Nm);return Nm.loggingInstance};
Nm.prototype.logFinalPayload=function(){if(_.g("web_fp_via_jspb")){var D=new Omp,v=_.wd();v&&_.Xx(D,1,v);v=_.g("jspb_sparse_encoded_pivot")?new B1([{}]):new B1;_.Nf(v,380,K3t,D);U9I("finalPayload",v);_.g("web_fp_via_jspb_and_json")&&_.jj("finalPayload",{csn:_.wd()})}else _.jj("finalPayload",{csn:_.wd()})};
Nm.prototype.abortSlisAndFlush=function(){aZs(zF);Ue!=null&&Ue.flush()};
Nm.prototype.flushInteractionLoggingAttachVes=function(){kG9(_.c8())};
var N7R=function(){var D=_.eA("CLIENT_EXPERIMENT_EVENTS");if(D){var v=aJ8();D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,v(h)&&_.jj("genericClientExperimentEvent",{eventType:h});delete _.y7.CLIENT_EXPERIMENT_EVENTS}};var YxJ={};
YxJ.YtPlayerBehavior=[_.gG.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var D=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.gT;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;R0r(function(){D.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.eg(this,"pan-down"),_.g("kevlar_pinch_fullscreen")&&_.rh().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.g("kevlar_pinch_fullscreen")&&_.rh().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(D,v,h){var a=this;Fe(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Fe(!1,"MainAppPlayer already created.");else{var Q=_.g("kevlar_player_container_query_killswitch")?this.$.container:_.ZW(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Sf(this.getWebPlayerContextConfig_(),Q,function(G){return _.lP(G,a.hostElement)},D,v,h);
this.mainAppPlayer_.api.then(function(G){a.player_=G;a.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&J6J.resolve(G)})}},
loadVideoWithPlayerResponse:function(D,v){var h=this;if(this.useUnifiedPlayer_()){var a=this.watchNextData,Q,G=(Q=D.videoDetails)==null?void 0:Q.videoId,x,f,C;(Q=(x=this.watchNextData)==null?void 0:(f=x.currentVideoEndpoint)==null?void 0:(C=f.watchEndpoint)==null?void 0:C.videoId)&&G!=Q&&(a=void 0,_.g("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(D,a,v):this.createMainAppPlayer_(D,a,v);this.mainAppPlayer_.api.then(function(){_.F1(h.hostElement,
"yt-player-updated")})}else this.update(YEO(D,v))},
loadVideoWithPlayerVars:function(D){var v=this;this.useUnifiedPlayer_()?(_.g("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(D):this.createMainAppPlayer_(void 0,void 0,D),this.mainAppPlayer_.api.then(function(){_.F1(v.hostElement,"yt-player-updated")})):this.update({args:D})},
update:function(D){var v=this;if(this.useUnifiedPlayer_())Fe(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(D);var h=d_i(D.args);h&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==h&&Object.assign(D.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(D).then(function(a){_.F1(v.hostElement,"yt-player-updated",_.g("kevlar_player_updated_obsolete_player_killswitch")?
a:void 0)})}_.H1(new _.XH("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.getPlayerPromise(),2);h=a.yieldResult;if(!h)throw Error("Ah");D&&v.updatePlayerPlaylist_(D);_.YI(a)})},
acquireApi_:function(D){var v=this;if(this.useUnifiedPlayer_())Fe(!1,"Invalid method call in kevlar_unified_player.");else return _.HK.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Fe(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(h){v.shouldAutoplay_(D)?h.loadVideoByPlayerVars(D.args):h.cueVideoByPlayerVars(D.args)})):this.initPlayerPromise_=this.initPlayerContainer_(D),this.initPlayerPromise_},
initPlayerContainer_:function(D){var v=this;if(this.useUnifiedPlayer_())Fe(!1,"Invalid method call in kevlar_unified_player.");else return Fe(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.yR(Error("Bh")),Fe(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.g("kevlar_player_container_query_killswitch")?this.$.container:_.ZW(this.hostElement).querySelector("#container"),HA7().then(function(){var h=v.initPlayer_(D);v.playerResolver_.resolve(h);
return h})},
onPlayerReady_:function(D,v){this.useUnifiedPlayer_()?Fe(!1,"Invalid method call in kevlar_unified_player."):(D.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&J6J.resolve(D),v(D))},
maybeCallApiMethodOnElement_:function(D,v){if(typeof D[v]==="function")return D[v]()},
maybeAdoptBootstrapPlayer_:function(){var D=window,v,h=(v=D.ytplayer)==null?void 0:v.bootstrapPlayerContainer;if((v=h==null?void 0:h.firstElementChild)&&v.classList.contains("html5-video-player")){var a,Q,G=(a=D.ytplayer)==null?void 0:(Q=a.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;a=this.getWebPlayerContextConfig_().contextId;if(G&&G===a){h!==this.playerContainer_&&(h=!1,this.maybeCallApiMethodOnElement_(v,"getPlayerState")===2&&(h=!0),this.playerContainer_.appendChild(v),h||this.maybeCallApiMethodOnElement_(v,
"playVideo"));var x;if((x=D.ytplayer)==null?0:x.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=D.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(D){var v=this;if(this.useUnifiedPlayer_())Fe(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(h){v.maybeAdoptBootstrapPlayer_();var a=D?Byc(D):void 0;a&&a==v.bootstrapPlayerResponse_&&(D.loaded=!0);a=v.playerContainer_;var Q=v.getWebPlayerContextConfig_();a=OAO(a,D,Q);v.player_=a;v.onPlayerReadyEvent_=v.onPlayerReady_.bind(v,v.player_,h);v.player_.addEventListener("onReady",v.onPlayerReadyEvent_);v.player_.addEventListener("innertubeCommand",
v.onPlayerInnerTubeCommand_.bind(v))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(D){D.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(D){D.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var D=_.xd().resolve(_.P4).getCurrentPage();D&&D.getScrollTop()<=0?_.eg(this,"pan-down"):_.eg(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()||D.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()&&D.toggleFullscreen()})},
updatePlayerPlaylist_:function(D){var v=this,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return h=_.xd().resolve(_.PV(_.fh)),a=!!(h&&h.playlistComponent&&h.playlistComponent.loopOn),G.yield(v.getPlayerPromise(),2);var x=Q=G.yieldResult,f=x.updatePlaylist,C=[];if(_.g("kevlar_player_playlist_use_local_index")){var U,L;var Z=(L=(U=D.localCurrentIndex)!=null?U:D.currentIndex)!=null?L:0}else{var E;Z=(E=D.currentIndex)!=null?E:0}if(D.contents)for(U=0;U<D.contents.length;U++)if((L=D.contents[U])&&L.playlistPanelVideoRenderer)if(qa2(L)){L=
L.playlistPanelVideoRenderer;E="";L.shortBylineText&&(E=_.$V(L.shortBylineText));var I="";L.title?I=_.$V(L.title):L.unplayableText&&(I=_.$V(L.unplayableText));C.push({author:E,title:I,encrypted_id:L.videoId})}else U<Z&&--Z;f.call(x,{index:Z,list:D.playlistId?D.playlistId:"",loop:a,playlist_title:D.title,playlist_length:C.length,video:C,fetch:0,external_list:"1",title:D.title?D.title:"",playlist_author:D.ownerName?_.$V(D.ownerName):void 0});_.YI(G)})},
focusOnPlayer:function(){_.$R(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var D=this.playerContainer_.querySelector(".html5-video-player");D&&(_.Yi(_.xd().resolve(_.qL)),D.focus())}})},
preparePlayer:function(){var D=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(v){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")v();else{var h=function(){document.removeEventListener("DOMContentLoaded",h);v()};
document.addEventListener("DOMContentLoaded",h)}})).then(function(){return HA7()}).then(function(){D.initPlayerPromise_||D.preparePlayerJobId_||(D.preparePlayerJobId_=_.c1(_.HK,function(){D.initPlayerPromise_||(D.initPlayerPromise_=D.initPlayerContainer_())}))}):_.H1(new _.XH("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(D){this.useUnifiedPlayer_()?Fe(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(D)||(D.args.autoplay="0")},
shouldAutoplay_:function(D){if(this.useUnifiedPlayer_())Fe(!1,"Invalid method call in kevlar_unified_player.");else{var v=this.get("args.el",D);return v&&v!="detailpage"&&this.isMiniplayerActive_()||v&&(v=="sponsorshipsoffer"||v=="handlesclaiming")&&this.get("args.autoplay",D)=="0"?!1:(D=Byc(D))&&this.get("playerConfig.playbackStartConfig.startPaused",D)?!1:!0}},
isMiniplayerActive_:function(){return _.xd().resolve(_.Ok).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var D=this.getPlayer();if(D){var v=D.getPlayerState();_.g("kevlar_player_check_ad_state_on_stop")&&(v=D.getPlayerState(D.getPresentingPlayerType()));v!=5&&D.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(D,v,h){h=h===void 0?!1:h;var a=this,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return v||(v=a.hostElement),Q=a.useUnifiedPlayer_()?!!a.mainAppPlayer_:!!a.initPlayerPromise_,Q?C.yield(a.getPlayerPromise(),2):(h?D.insertBefore(v,D.firstChild):D.appendChild(v),C.return());G=C.yieldResult;x=G.getPlayerState(G.getPresentingPlayerType());f=!1;if(x==-1||x==1||x==3)f=!0;h?D.insertBefore(v,D.firstChild):D.appendChild(v);f&&G.playVideo();G.setSize(NaN,NaN);_.YI(C)})},
watchNextDataChanged_:function(D){var v=this;D&&(this.useUnifiedPlayer_()&&_.g("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Sx1(this.mainAppPlayer_,D):this.getPlayerPromise().then(function(h){h.updateVideoData(v.computeWatchNextPlayerVars_(D))}))},
computeWatchNextPlayerVars_:function(D){if(this.useUnifiedPlayer_()&&_.g("kevlar_unified_player_update_watch_next_killswitch"))Fe(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:D}},
maybeSendAbandonmentPing_:function(){var D=this.getPlayer();D&&D.getPlayerState()!=5&&D.getPlayerState()!=0&&D.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var D=_.eA("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(D=Object.assign({},D),D.rootElementId=this.playerId);D.serializedExperimentIds&&D.serializedExperimentFlags||_.yR(Error("Ch"));return D},
hasWebPlayerContextConfig_:function(){return!!_.eA("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(D){this.useUnifiedPlayer_()?Fe(!1,"Invalid method call in kevlar_unified_player."):_.lP(D,this.hostElement)},
useUnifiedPlayer_:function(){var D=_.g("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.g("kevlar_unified_player")||D}}];var B7y={};B7y.YtPlaylistPanelBehavior=[_.t.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(D){D=D.detail;if(D.actions.loop!=void 0||D.actions["yt-icons:loop"]!=void 0)this.loopOn=D.actions.loop||D.actions["yt-icons:loop"];if(D.actions.shuffle!=void 0||D.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=D.actions.shuffle||D.actions["yt-icons:shuffle"]},
setMenuData_:function(D){if(!D||!D.playlistButtons||D.isInfinite)return null;for(var v=D.playlistButtons.menuRenderer.topLevelButtons,h=v.length,a=0;a<h;a++)if(v[a].toggleButtonRenderer){var Q=v[a].toggleButtonRenderer;Q.defaultIcon.iconType=="LOOP"&&this.loopOn?Q.isToggled=this.loopOn:Q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Q.isToggled=this.shuffleOn)}return D.playlistButtons}}];var cW$=function(D){Fn.call(this,D,132);this.isDocument=D===document.documentElement};
_.J(cW$,Fn);cW$.prototype.calculateScrollDelta=function(D,v,h){var a=0;D<v?a=D<v-100?-48:-8:D>v+h&&(a=D>v+h+100?48:8);return a};
cW$.prototype.JSC$11399_onMouseMove=function(D){this.isDocument||(D.clientX=D.event_.pageX,D.clientY=D.event_.pageY);Fn.prototype.JSC$11399_onMouseMove.call(this,D)};var B0=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;D.scrollElement=document.documentElement;D.JSC$14390_dragListGroup=null;D.dragScrollSupport=null;D.onDraggerCreated=function(v){var h=v.JSC$11395_dragger;h.scrollTarget_=D.scrollElement;v=v.draggerEl;h&&v.menuOpened&&h.setEnabled(!1)};
D.onDragStart=function(v){var h=v.draggerEl;v=v.currDragItem;var a=Object.assign({},v==null?void 0:v.data);a.trackingParams=void 0;h.data=a;h.style.position="absolute";h.style.width=(v==null?void 0:v.clientWidth)+"px";h.style.zIndex="2030";h.onDrag&&h.onDrag();_.g("web_owner_document_fallback_killswitch")?(v=document.querySelector("ytd-app"))&&_.ZW(v).appendChild(h):(v=_.e9(h),(a=v.querySelector("ytd-app"))?_.ZW(a).appendChild(h):v.body.appendChild(h));D.dragScrollSupport=new cW$(D.scrollElement);
D.dragScrollSupport.horizontalScrolling_=!1;h=D.dragScrollSupport;h.constrainScroll_=!!h.margin_&&!1};
D.onDrop=function(v){D.handleDrop(v);D.dragScrollSupport&&(_.V5(D.dragScrollSupport),D.dragScrollSupport=null)};
D.onReorderableScroll=function(){if(D.JSC$14390_dragListGroup){var v=D.JSC$14390_dragListGroup;nUF(v,v.currDragItem_)}};
return D};
_.J(B0,_.XS);B0.prototype.detached=function(){_.XIm(this)};
_.XIm=function(D){D.JSC$14390_dragListGroup&&(_.d9(D.JSC$14390_dragListGroup,bZF,D.onDragStart),_.d9(D.JSC$14390_dragListGroup,miJ,D.onDragStart),D.JSC$14390_dragListGroup.dispose(),D.JSC$14390_dragListGroup=null);D.dragScrollSupport&&(_.V5(D.dragScrollSupport),D.dragScrollSupport=null);D.scrollElement.removeEventListener("scroll",D.onReorderableScroll)};
_.AW9=function(D,v,h,a){a=a===void 0?"":a;_.XIm(D);h&&(D.scrollElement=h);D.JSC$14390_dragListGroup=new aR;D.JSC$14390_dragListGroup.hysteresisDistance_=2;yV4(D.JSC$14390_dragListGroup,v);D.JSC$14390_dragListGroup.draggerElClasses_=zu("dragging").split(" ");a&&wrR(D.JSC$14390_dragListGroup,function(Q){var G=Q||document,x=null;G.getElementsByClassName?x=G.getElementsByClassName(a)[0]:x=gCb("*",a,Q);return x||Q});
_.s_(D.JSC$14390_dragListGroup,AVy,D.onDraggerCreated);_.s_(D.JSC$14390_dragListGroup,bZF,D.onDragStart);_.s_(D.JSC$14390_dragListGroup,miJ,D.onDrop);D.JSC$14390_dragListGroup.init();D.scrollElement.addEventListener("scroll",D.onReorderableScroll,{passive:!0})};
B0.prototype.handleDrop=function(){};
_.GT.Object.defineProperties(B0.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.e([_.Y({value:100}),_.n("design:type",Number)],B0.prototype,"scrollMargin",void 0);_.e([_.AV()],B0);_.qx9=[B0.prototype];_.c0={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(D,v,h){var a=this.getClickTarget_(v);if(a&&this.isClickAllowed_(a)){v.preventDefault();D=(0,_.sV.unsafeClone)(D);var Q=this.getContainerBoundingRect();v=this.getRelativeClickXy_(v,Q);this.expandEndpointUrlMacros_(D,{NX:v[0],NY:v[1],NB:a.code});h&&this.truncateWebCommendMetadataUrl_(D);_.F1(this.hostElement,"yt-navigate",{endpoint:D})}},
getClickTarget_:function(D){if(!this.clickTargetMap)return null;D=_.Pr(D)||[];D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;if(v===_.ZW(this.hostElement).querySelector("#menu"))break;if(v=this.clickTargetMap.get(v.id))return v}return null},
getRelativeClickXy_:function(D,v){var h=D.detail.x,a=D.detail.y;_.g("use_on_click_for_desktop_display_ad")&&D.clientX!=null&&D.clientY!=null&&(h=D.clientX,a=D.clientY);D=Math.round(h-v.left);v=Math.round(a-v.top);return D<0||v<0?[null,null]:[D,v]},
getContainerBoundingRect:function(){return _.ZW(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(D,v){for(var h=_.P(D.loggingUrls||[]),a=h.next();!a.done;a=h.next())a=a.value,a.baseUrl&&(a.baseUrl=xxO(a.baseUrl,v));D.urlEndpoint&&D.urlEndpoint.url&&(D.urlEndpoint.url=xxO(D.urlEndpoint.url,v));D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url&&(D.commandMetadata.webCommandMetadata.url=xxO(D.commandMetadata.webCommandMetadata.url,v))},
truncateWebCommendMetadataUrl_:function(D){if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url){var v=D.commandMetadata.webCommandMetadata.url,h=v.indexOf("&pp=");if(h>0){var a=v.indexOf("&",h+1);D.commandMetadata.webCommandMetadata.url=a>h&&a<v.length?v.slice(0,h)+v.slice(a):v.slice(0,h)}}},
configureClickTargets:function(D,v,h){this.containerId=D;this.clickTargetMap=new Map;D=_.P(v);for(v=D.next();!v.done;v=D.next())if(v=v.value,v.location){var a=h.get(v.location);a&&(_.Iy(_.ZW(this.hostElement).querySelector("#"+a),"yt-simple-endpoint",this.isClickAllowed_(v)),this.clickTargetMap.set(a,v))}},
isClickAllowed_:function(D){return D.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Xg={};
_.Xg.YtLazyListBehavior=[_.lt.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var D=(this.constructor.generatedFrom||this).observers;D||(D=[]);D.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
D}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var D=this.renderElementsOutsideVisibleArea_;D&&(Xg9(D,4),D.processSignal())},
deepLazyListObserver_:function(D){var v=this;if(D){var h=D.value||[];if(this.itemsPath==D.path){var a=this.nonDeferredItemCount;D=0;a>-1&&h.length>a&&(D=_.eA("REMAINING_DOVA_DEFERRED_CHUNKS",-1));D>0?(a>0&&(a=h.slice(0,a),this.setInitialItemsOnDataChanged(a)),(a=this.renderElementsOutsideVisibleArea_)?a.cancel():(a=this.renderElementsOutsideVisibleArea_=new _.Yk(2,"eocs"),_.f2O(window,"scroll",function(){return v.renderDeferredElements()})),_.Bt(a,function(){v.setInitialItemsOnDataChanged(h)}),_.wM("REMAINING_DOVA_DEFERRED_CHUNKS",
D-1)):this.setInitialItemsOnDataChanged(h)}else if(this.itemsPath+".splices"==D.path)this.onItemsUpdated_(h);
else a="shownItems"+D.path.substr(this.itemsPath.length),this.useSignals&&a==="shownItems.length"||this.notifyPath(a,D.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(D){D&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(D),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(D){D=D.indexSplices;for(var v=0,h=D.length;v<h;v++){var a=D[v];if(a.index<this.shownCount&&(a.removed&&this.splice("shownItems",a.index,a.removed.length),a.addedCount)){var Q=a.object.slice(a.index,a.index+a.addedCount);a=["shownItems",a.index,0];a.push.apply(a,Q);this.splice.apply(this,a)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(D){this.cancelPendingTasks_();D||(D=[]);this.items_=D;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.nJ("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.$R(this,this.tryRenderChunk_)))},
fillRange_:function(D,v){this.canShowMore&&this.items_&&(D=this.items_.slice(D,v),D.unshift("shownItems"),this.push.apply(this,D),this.shownCount=v,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var D=this;this.canShowMore&&_.aq(this,"renderChunk",function(){D.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.nJ("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.b7(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var D=this.renderElementsOutsideVisibleArea_;D&&(D.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var D=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(D-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=D;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(D){return Math.ceil(1E3/D)},
onCanShowMoreUpdated_:function(D){this.data&&this.items_!==null&&(D?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(D){!this.shouldUseTaskManager()&&this.data&&(!D&&this.canShowMore?(_.oxf(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):D&&this.partiallyRenderedItems_.has(this.items_)&&(_.g("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var bX;_.A9={};
bX=function(){var D=_.XS.apply(this,arguments)||this;D.atStart=!0;D.atEnd=!0;D.startIndex=0;D.endIndex=0;D.scrollCount=0;D.initialStartIndex=0;D.disableScrollEventListener=!1;D.useFloorScrolling=!1;D.isSearch=!1;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.disableWheelScroll=!1;D.centerListItems=!1;D.offset=0;D.minComponentWidth=0;D.marginWidthRight=0;D.marginWidthLeft=0;D.setButtonsStateRequested=!1;D.itemsVisibilityObserver=null;D.fullyVisibleItemsIndices=[];D.JSC$14401_onWheelScroll=function(v){if(D.isSearch&&
!D.disableWheelScroll&&_.g("desktop_enable_dmpanel_wheel_scroll")){var h=v.shiftKey?Math.abs(v.deltaY)>Math.abs(v.deltaX)?v.deltaY:v.deltaX:v.deltaX;h!==0&&(v.preventDefault(),D.ytLazyListBehavior.fillRemainingListItems(),D.offset+=h,qm(D),D.reposition_())}};
D.onPointerDown=function(v){b54(D)&&(D.dragMouseStart=v.clientX,D.dragOffsetStart=D.offset,D.dragging=!0)};
D.onPointerMove=function(v){b54(D)&&D.dragging&&(D.ytLazyListBehavior.fillRemainingListItems(),D.offset=D.dragOffsetStart-(v.clientX-D.dragMouseStart),qm(D),D.reposition_())};
D.onPointerUp=function(){b54(D)&&(D.dragging=!1)};
return D};
_.J(bX,_.XS);var dnR=function(D){var v=_.ZW(D.hostElement).querySelector("#items").children;if(!v)return 0;var h=0;D=_.P(D.fullyVisibleItemsIndices);for(var a=D.next();!a.done;a=D.next())h+=v[a.value].clientWidth;return h},b54=function(D){return D.isSearch&&_.g("desktop_enable_dmpanel_click_drag_scroll")};
bX.prototype.created=function(){this.cachedViewportWidth=_.eA("initialInnerWidth")||window.innerWidth;this.JSC$14401_cachedViewportHeight=_.eA("initialInnerHeight")||window.innerHeight;_.eA("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.wM("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
bX.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.g("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();jE4(this)};
bX.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.g("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var D;(D=this.itemsVisibilityObserver)==null||D.disconnect();this.itemsVisibilityObserver=null;var v;(v=this.itemsObserver)==null||v.disconnect()};
var jE4=function(D){var v=_.ZW(D.hostElement).querySelector("#scroll-container");if(v){if(!D.itemsVisibilityObserver){var h=window.getComputedStyle(v).marginRight;D.itemsVisibilityObserver=new IntersectionObserver(function(a){sEm(D,a)},{root:v,
rootMargin:h,threshold:.98})}if(v=_.ZW(D.hostElement).querySelector("#items"))D.itemsObserver=new gV9(v,function(a){mn9(D,a)})}},mn9=function(D,v){H5s(D)&&(Array.from(v.addedNodes).filter(function(h){return h.nodeType===Node.ELEMENT_NODE}).forEach(function(h){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.observe(h)}),Array.from(v.removedNodes).filter(function(h){return h.nodeType===Node.ELEMENT_NODE}).forEach(function(h){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.unobserve(h)}))},
sEm=function(D,v){var h=new Set(D.fullyVisibleItemsIndices);
v=_.P(v);for(var a=v.next();!a.done;a=v.next()){a=a.value;var Q=a.target.parentElement;Q?(Q=Array.from(Q.children).indexOf(a.target),a.isIntersecting?h.add(Q):h.has(Q)&&h.delete(Q)):_.yR(new _.XH("Parent element not found",a.target.nodeName))}D.fullyVisibleItemsIndices=Array.from(h).sort(function(G,x){return G-x});
h.size===0?_.yR(new _.XH("No visible entries in horizontal list")):(D.startIndex=D.fullyVisibleItemsIndices[0],D.endIndex=D.fullyVisibleItemsIndices[D.fullyVisibleItemsIndices.length-1])},H5s=function(D){D.data?D=(D=D.data)&&D.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===D.itemSizeConstraint:!1:D=!1;
return D};
_.V=bX.prototype;_.V.addScrollEventListeners=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container");D.style.touchAction="pan-y";D.addEventListener("wheel",this.JSC$14401_onWheelScroll);D.addEventListener("pointerdown",this.onPointerDown);D.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.V.removeScrollEventListeners=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.JSC$14401_onWheelScroll);D.removeEventListener("pointerdown",this.onPointerDown);D.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.V.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.$R(this,this.setStartIndex,[this.initialStartIndex])};
_.V.reposition_=function(){var D=_.eA("HTML_DIR")=="rtl"?"":"-",v=_.ZW(this.hostElement).querySelector("#items");v&&(v.style.transform="translateX("+D+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.V.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.$R(this,this.setButtonsState_))};
_.V.setButtonsState_=function(){this.setButtonsStateRequested=!1;var D=_.ZW(this.hostElement).querySelector("#items").firstElementChild;if(D){this.minComponentWidth||(this.minComponentWidth=yWM(this,D));D=_.ZW(this.hostElement).querySelector("#scroll-container").clientWidth;var v=_.ZW(this.hostElement).querySelector("#items");v=_.g("kevlar_horizontal_list_scroll_width_killswitch")?v.clientWidth:v.scrollWidth;var h=this.get(this.ytLazyListBehavior.itemsPath,this);if(h){var a=Math.round(D/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+a,h.length)-1)}this.ytLazyListBehavior.canShowMore?v+this.minComponentWidth>=this.offset+D&&(this.atEnd=!1):this.atEnd=this.offset+D>=v-20?!0:!1;this.atStart=this.offset<=20}};
_.V.setStartIndex=function(D){if(!this.minComponentWidth){var v=_.ZW(this.hostElement).querySelector("#items").firstElementChild;if(!v)return;this.minComponentWidth=yWM(this,v)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*D;qm(this);this.reposition_()};
_.V.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.cN();var D=_.ZW(this.hostElement).querySelector("#scroll-container").clientWidth;_.g("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=yWM(this,_.ZW(this.hostElement).querySelector("#items").firstElementChild));D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&wIJ(this);this.offset+=H5s(this)?
dnR(this):D*this.minComponentWidth;qm(this);this.reposition_();this.scrollCount++};
_.V.prevClick_=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container").clientWidth;D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=H5s(this)?dnR(this):this.minComponentWidth*this.scrollCount-1):this.offset-=H5s(this)?dnR(this):D*this.minComponentWidth;this.centerListItems&&wIJ(this);qm(this);this.reposition_()};
_.V.onIronResize_=function(){this.resizeSupportEnabled&&_.$R(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.V.onItemsTransitionEnd_=function(D){_.xU(D)===_.ZW(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.V.onChildElementFocus_=function(D){D=D.target.closest("#items > *");var v=_.ZW(this.hostElement).querySelector("#scroll-container");if(v.contains(D)){if(_.g("web_horizontal_list_behavior_focus_killswitch"))if(D.offsetLeft<this.offset)this.offset=Math.abs(D.offsetLeft)<D.clientWidth?0:D.offsetLeft;else if(D.offsetLeft+D.clientWidth>this.offset+v.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.cN(),this.offset=D.offsetLeft+D.clientWidth-v.clientWidth;else return;else{var h=_.ZW(this.hostElement).querySelector("#items"),
a=_.eA("HTML_DIR")==="rtl",Q=a?h.clientWidth-D.offsetLeft:D.offsetLeft;h=a?h.clientWidth-(D.offsetLeft+D.clientWidth):D.offsetLeft+D.clientWidth;var G=a?Q>this.offset+v.clientWidth:Q<this.offset,x=a?h<this.offset:h>this.offset+v.clientWidth,f=a?G:x;if(a?x:G)v=a?h:Q,this.offset=Math.abs(v)<D.clientWidth?0:v;else if(f)this.ytLazyListBehavior.fillRemainingListItems(),_.cN(),this.offset=(a?Q:h)-v.clientWidth;else return}qm(this);this.reposition_()}};
_.V.observeShownItems_=function(){this.reset()};
_.V.checkComponentWidthResize=function(){var D=_.ZW(this.hostElement).querySelector("#items").firstElementChild;D&&(D=yWM(this,D),this.centerListItems||D!==this.minComponentWidth)&&(this.minComponentWidth=D,this.offset=D*this.scrollCount,this.centerListItems&&wIJ(this),qm(this),this.reposition_())};
var yWM=function(D,v){var h=window.getComputedStyle(v).marginRight;h=Math.floor(Number(h.replace("px","")));var a=window.getComputedStyle(v).marginLeft;a=Math.floor(Number(a.replace("px","")));D.centerListItems&&!D.marginWidthRight&&(D.marginWidthRight=h,D.marginWidthLeft=a);return D.resizeSupportEnabled?v.getBoundingClientRect().width+h:v.offsetWidth+h},qm=function(D){var v=_.ZW(D.hostElement).querySelector("#scroll-container").clientWidth,h=_.ZW(D.hostElement).querySelector("#items").clientWidth;
D.offset<0?D.offset=0:D.offset+v>=h&&(D.offset=h-v)},wIJ=function(D){D.offset-=(_.ZW(D.hostElement).querySelector("#scroll-container").clientWidth+D.marginWidthRight-D.minComponentWidth)/2-D.marginWidthLeft};
_.GT.Object.defineProperties(bX.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var D=_.eA("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(D==-1)D=this.JSC$14401_cachedViewportHeight,D=D>1320?5:D>1020?4:D>730?3:D>430?2:1;else if(D==0)return 0;_.wM("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",D-1);D=_.eA("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(D>-1)return D;D=this.cachedViewportWidth;D=D>1600?6:D>1400?5:D>1300?4:D>1090?5:D>870?4:D>660?3:2;_.wM("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
D);return D},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.g("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
bX.prototype.observeShownItems_=bX.prototype.observeShownItems_;bX.prototype.onChildElementFocus_=bX.prototype.onChildElementFocus_;bX.prototype.onItemsTransitionEnd_=bX.prototype.onItemsTransitionEnd_;bX.prototype.onIronResize_=bX.prototype.onIronResize_;bX.prototype.prevClick_=bX.prototype.prevClick_;bX.prototype.nextClick_=bX.prototype.nextClick_;bX.prototype.setButtonsState_=bX.prototype.setButtonsState_;bX.prototype.requestButtonsStateUpdate_=bX.prototype.requestButtonsStateUpdate_;
bX.prototype.reposition_=bX.prototype.reposition_;bX.prototype.reset=bX.prototype.reset;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],bX.prototype,"ytLazyListBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],bX.prototype,"atStart",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],bX.prototype,"atEnd",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"startIndex",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"endIndex",void 0);_.e([_.Y({value:6}),_.n("design:type",Number)],bX.prototype,"initialCount",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"scrollCount",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"initialStartIndex",void 0);
_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"disableScrollEventListener",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"supportComponentResize",void 0);_.e([_.Y({value:function(){var D=this;return function(){return D.prevClick_()}}}),
_.n("design:type",Function)],bX.prototype,"boundPrevClick",void 0);_.e([_.Y({value:function(){var D=this;return function(){return D.nextClick_()}}}),
_.n("design:type",Function)],bX.prototype,"boundNextClick",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"useFloorScrolling",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"isSearch",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"dragging",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"dragMouseStart",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"dragOffsetStart",void 0);
_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"disableWheelScroll",void 0);_.e([_.Y(),_.n("design:type",Object)],bX.prototype,"centerListItems",void 0);_.e([_.lc("iron-resize"),_.Ni("guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bX.prototype,"onIronResize_",null);_.e([_.lc("transitionend"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],bX.prototype,"onItemsTransitionEnd_",null);
_.e([_.lc("focusin"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],bX.prototype,"onChildElementFocus_",null);_.e([_.Ni("shownItems"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bX.prototype,"observeShownItems_",null);_.e([_.AV()],bX);_.A9.YtdHorizontalListBehavior=[];_.A9.YtdHorizontalListBehavior.push(_.iN,_.t.YtRendererBehavior,_.Xg.YtLazyListBehavior,_.U0.YtdGuideStateAwareBehavior,bX.prototype);var WfI=["APP_STATE","PI"];var eOJ=_.DK(["about:blank"]),nK1={pushState:window.history.pushState,replaceState:window.history.replaceState};var dG=function(D){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=D;this.internalPushState=D.pushState.bind(D);this.internalReplaceState=D.replaceState.bind(D)};
dG.prototype.init=function(){this.initialized=!0};
dG.prototype.pushState=function(D,v){this.initialized||this.init();this.internalPushState&&this.internalPushState(D,"",v)};
dG.prototype.replaceState=function(D,v){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(D,"",v)};
dG.prototype.getState=function(){return this.history&&this.history.state};var O54=function(D){var v=function(){var h=D.apply(this,arguments)||this;h.boundHistoryPushState=!1;h.boundHistoryReplaceState=!1;h.debugInfo={};return h};
_.J(v,D);v.prototype.init=function(){var h=_.l9("IFRAME");_.uH(h,_.UV(eOJ));h.sandbox="allow-same-origin";h.style.display="none";this.iframe=h;document.body.appendChild(h);this.bindHistoryStateFunctions();D.prototype.init.call(this)};
v.prototype.bindHistoryStateFunctions=function(){var h=this,a=[],Q;this.iframe&&((Q=this.iframe.contentWindow)==null?0:Q.history)&&(Q=this.iframe.contentWindow.history)&&(a.push(Q),Object.getPrototypeOf(Q)&&a.push(Object.getPrototypeOf(Q)));window.history&&a.push(window.history);Q=window.history;Object.getPrototypeOf(Q)&&a.push(Object.getPrototypeOf(Q));a.push(nK1);Q=function(x){for(var f=null,C=0;C<a.length;C++){var U=a[C][x];if(typeof U==="function"){f=U.bind(window.history);h.debugInfo[x]=C;break}}return f};
if(!this.boundHistoryReplaceState){var G=Q("replaceState");G&&(this.internalReplaceState=G,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Q=Q("pushState"))&&(this.internalPushState=Q,this.boundHistoryPushState=!0)};
return v}(dG),K1t=function(){return O54.call(this,window.history)||this};
_.J(K1t,O54);K1t.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var jf=function(D){this.browserHistory=D;this.initialized=!1};
jf.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
jf.prototype.pushState=function(D,v){this.initialized||this.init();this.browserHistory.pushState(D,v)};
jf.prototype.replaceState=function(D,v){this.initialized||this.init();this.browserHistory.replaceState(D,v)};
jf.prototype.handlePopstate=function(D){return D.state};_.T7y=function(D,v,h,a,Q){this.endpoint=D;this.forward=v;this.historyEntry=h;this.JSC$30192_savedComponentState=a;this.legacyBorder=Q===void 0?!1:Q};var ROJ=function(D,v){this.rootData=D;this.scrollTop=v};var Nh=new _.Uj("PAGE_REQUEST_TOKEN"),Vs4=new _.Uj("FETCH_PBJ_TOKEN");_.s0=new _.Uj("EPHEMERAL_STORE_TOKEN");_.m_=function(D){this.data=Object.assign({},D);var v;(v=this.data.innertubeResponse)==null||delete v.frameworkUpdates};
_.m_.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.xz)()};
_.Vf=function(D){return Object.assign({},D.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var i59=function(){this.maxSize=100;this.timeToDataCache=new Map};
i59.prototype.get=function(D){var v=this.timeToDataCache.get(D);v&&(this.timeToDataCache.delete(D),this.timeToDataCache.set(D,v));if(v&&v.rootData&&(_.g("web_use_response_store_for_history_cache")||_.g("mweb_use_new_history_manager"))){var h=_.xd().resolve(_.s0),a=W1b(v),Q=!!a;if(a){if(a.content){var G=H0(h,a.content);Q&&G?v.rootData.response=_.Vf(G):Q=!1}a.player&&(G=H0(h,a.player),Q&&G?v.rootData.playerResponse=_.Vf(G):Q=!1);a.reelSequence&&(h=H0(h,a.reelSequence),Q&&h?v.rootData.reelWatchSequenceResponse=
_.Vf(h):Q=!1)}Q||(this.timeToDataCache.delete(D),v=void 0)}return v};
i59.prototype.set=function(D,v){if(v.rootData&&(_.g("web_use_response_store_for_history_cache")||_.g("mweb_use_new_history_manager"))){var h=W1b(v),a=Object.assign({},v.rootData);h&&(h.content&&v.rootData.response&&(tEs(this,h.content,v.rootData.response),a.response=null),h.player&&v.rootData.playerResponse&&(tEs(this,h.player,v.rootData.playerResponse),a.playerResponse=null),h.reelSequence&&v.rootData.reelWatchSequenceResponse&&(tEs(this,h.reelSequence,v.rootData.reelWatchSequenceResponse),a.reelWatchSequenceResponse=
null));v=new ROJ(a,v.scrollTop)}this.timeToDataCache.has(D)?this.timeToDataCache.delete(D):this.timeToDataCache.size>=this.maxSize&&(h=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(h.value));this.maxSize!==0&&this.timeToDataCache.set(D,v)};
i59.prototype.clear=function(){this.timeToDataCache.clear()};
var W1b=function(D){var v=_.xd().resolve(_.PV(Nh)),h;if((h=D.rootData)==null?0:h.endpoint)return v==null?void 0:Hlo(v,D.rootData.endpoint);var a;_.yR(new _.XH("History snapshot response data does not contain endpoint",(a=D.rootData)==null?void 0:a.url));return null},tEs=function(D,v,h){if(D.maxSize>0){var a;
(D=(a=h.responseContext)==null?void 0:a.maxAgeSeconds)&&Number(D)>0&&(a=_.xd().resolve(_.s0),h=Lj(h,D),a.put(v,new _.m_(h)))}};var rWR=function(D,v,h){this.endpoint=v;this.JSC$30197_savedComponentState=h===void 0?null:h;this.entryTime=D};var hO7=1;var yh=function(D){var v=function(){var h=D.apply(this,[].concat(_.j_(_.Kz.apply(0,arguments))))||this;h.historyEntryTime=0;h.historySnapshotCache=h.createHistoryCache();return h};
_.J(v,D);v.prototype.createHistoryCache=function(){return new i59};
v.prototype.saveAndReplace=function(h,a,Q){var G=window.location.href;var x=x===void 0?{}:x;var f=(f=this.browserHistory.getState())&&f.entryTime?f.entryTime:anr();h=this.createNewHistoryEntry(h,x,f);this.saveSnapshot(f,a,Q);this.replaceState(h,G||window.location.href)};
v.prototype.saveAndPush=function(h,a,Q,G,x){x=x===void 0?{}:x;this.saveSnapshot(this.historyEntryTime,Q,G);Q=this.historySnapshotCache;G=this.historyEntryTime;var f=Q.timeToDataCache.keys();f=_.P(f);for(var C=f.next();!C.done;C=f.next())C=C.value,C>G&&Q.timeToDataCache.delete(C);a=this.createNewHistoryEntry(a,x);this.pushState(a,h)};
v.prototype.saveSnapshot=function(h,a,Q){this.historySnapshotCache.set(h,new ROJ(a,Q))};
v.prototype.createNewHistoryEntry=function(h,a,Q){Q=Q===void 0?anr():Q;return new rWR(Q,h,a)};
v.prototype.handlePopstate=function(h){var a=D.prototype.handlePopstate.call(this,h),Q=null,G=null,x=!1,f=null;a&&a.entryTime&&(f=this.historySnapshotCache.get(a.entryTime)||null,x=a.entryTime>this.historyEntryTime,this.historyEntryTime=a.entryTime,Q=a.endpoint,G=a.JSC$30197_savedComponentState);this.handleHistoryCacheLoad(new _.T7y(Q,x,f,G),h);return a};
v.prototype.pushState=function(h,a){Number(h==null?void 0:h.entryTime)>=0&&(this.historyEntryTime=h.entryTime);D.prototype.pushState.call(this,h,a)};
v.prototype.replaceState=function(h,a){Number(h==null?void 0:h.entryTime)>=0&&(this.historyEntryTime=h.entryTime);D.prototype.replaceState.call(this,h,a)};
v.prototype.handleHistoryCacheLoad=function(){};
return v}(jf),u3s=function(){var D=yh.call(this,new K1t)||this;
D.dispatchElement=null;D.entryIndex=0;return D};
_.J(u3s,yh);_.V=u3s.prototype;_.V.init=function(D){D=D===void 0?!0:D;yh.prototype.init.call(this);this.initialized||(D||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.V.handlePopstate=function(D){var v=null;D.state||(v="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return yh.prototype.handlePopstate.call(this,D);var h=new CustomEvent("yt-history-pop",{cancelable:!0});_.zU(this.dispatchElement,"yt-history-pop",[h,{errorMsg:v}]);_.U9(this.dispatchElement,"yt-close-all-popups-action");if(!h.defaultPrevented){h=_.xd().resolve(_.P4);v=h.getCurrentData();var a=h.getCurrentPage();h=0;a?(a=_.zU(this.dispatchElement,"yt-get-page-offset",
[a]),a.length>0&&(h=a[0])):_.yR(new _.XH("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:v?v.page:"undefined"}));v&&(v.csn=_.wd());this.saveSnapshot(this.historyEntryTime,v,h)}return yh.prototype.handlePopstate.call(this,D)};
_.V.handleHistoryCacheLoad=function(D,v){D.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.P(_.U9(this.dispatchElement,"yt-history-will-navigate",[v])).next().value||_.zU(this.dispatchElement,"yt-history-load",[v,D]))};
_.V.pushState=function(D,v){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var h=new _.XH("history.pushState is not a function",this.getDebugString());_.mV(h)}yh.prototype.pushState.call(this,D,v)};
_.V.replaceState=function(D,v){if(!this.browserHistory.boundHistoryReplaceState){var h=new _.XH("history.replaceState is not a function",this.getDebugString());_.mV(h)}yh.prototype.replaceState.call(this,D,v)};
_.V.saveAndPush=function(D,v,h,a,Q){Q=Q===void 0?{}:Q;h&&(h.csn=_.wd());yh.prototype.saveAndPush.call(this,D,v,h,a,Q)};
_.V.getDebugString=function(){var D=[];this.initialized&&D.push("i");this.browserHistory.boundHistoryReplaceState&&D.push("bhr");this.browserHistory.boundHistoryPushState&&D.push("bhs");"replaceState"in this.browserHistory.debugInfo&&D.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&D.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&D.push("ei:"+String(this.entryIndex));return D.join(",")};
_.wG=function(D,v){D.init(!0);var h=D.browserHistory.getState();D.replaceState(h,Un(v))};
u3s.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ef=new _.Uj("DESKTOP_HISTORY_MANAGER_TOKEN");var Dey=[10,20,30,40,50,60],nC=function(){this.currentPartitionIndex=0},vS4=function(D){fZy({mainAppWeb:_.$U(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},hq9=function(D){fZy({mainAppWeb:_.$U(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},aPb=function(D){return D.currentPartitionIndex>=0&&D.currentPartitionIndex<Dey.length?Dey[D.currentPartitionIndex]:-1},$et=function(D){return D.currentPartitionIndex>0&&D.currentPartitionIndex-1<Dey.length?Dey[D.currentPartitionIndex-1]:-1};
nC.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var D=$et(this);D>0&&hq9(D);D=aPb(this);D>0&&vS4(D);Q$p(this)}};
var Q$p=function(D){var v=aPb(D);if(v>0){var h=$et(D);h<0&&(h=0);D.intervalId=_.HK.addJob(function(){var a=$et(D);a>0&&hq9(a);a=aPb(D);a>0&&vS4(a);Q$p(D)},3,(v-h)*6E4);
D.currentPartitionIndex+=1}else D.currentPartitionIndex=-1};var G9F=function(){this.skipNextNavigation=!1},VS9=function(D,v,h){if(!v)return!1;
if(D.skipNextNavigation)return D.skipNextNavigation=!1;if(_.k(h,_.RB))return!1;var a,Q,G;if((a=_.k(h,_.YV))==null?0:(Q=a.browseEndpointContextSupportedConfigs)==null?0:(G=Q.browseEndpointContextMainConfig)==null?0:G.skipConfirmation)return!1;var x;return((x=_.k(v.commandMetadata,_.Sa))==null?void 0:x.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
G9F.prototype.showConfirmationDialog=function(D,v){this.navigateParams=v;this.customConfirmationCommand?_.xd().resolve(_.fx).resolveCommand(this.customConfirmationCommand):(v={openPopupAction:{popup:{confirmDialogRenderer:{title:_.aX(_.p1("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.aX(_.p1("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.aX(_.p1("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.aX(_.p1("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.iD.getInstance().triggerAction("yt-open-popup-action",v,D))};
G9F.prototype.cancelPendingNavigation=function(){var D;((D=this.navigateParams)==null?void 0:D.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var PVF=function(){},MSM=function(D,v,h,a,Q,G,x){h=h===void 0?{}:h;
x=x===void 0?{}:x;var f=_.Rl.instance,C,U=(C=_.k(v,_.RB))==null?void 0:C.url;return U?EPo(f,U,h,window.location.href,function(L,Z){xeJ(D,L,Z,!1,!0,h,G,a)},function(){return!1}):RQ(f,v,h,window.location.href,cR(v),function(L,Z){xeJ(D,L,Z,!1,!0,h,G,a)},Q,x)},xeJ=function(D,v,h,a,Q,G,x,f){if(!D.JSC$14459_chunkHandler)if(h.page==="learning_journey_watch"&&_.g("web_enable_canvas_on_learning_journey")){var C=!_.k(f,_.YV);
Q=Q||a;if(C)if(Q){if(_.g("kevlar_continue_playback_without_player_response")){var U;var L=(U=_.k(f,_.hP))==null?void 0:U.videoId}a={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:a,previousVideoId:L},tempData:G}}else a={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else a={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};D.JSC$14459_chunkHandler=new AfR(_.Mq,a,x,C,Q)}else if(h.page==="watch"||h.page==="learning_journey_watch")if(Q||a){if(_.g("kevlar_continue_playback_without_player_response")){var Z;
C=(Z=_.k(f,_.hP))==null?void 0:Z.videoId}D.JSC$14459_chunkHandler=new d0y(_.Mq,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:a,previousVideoId:C},tempData:G},x)}else D.JSC$14459_chunkHandler=new cf4(_.Mq);else h.page==="shorts"&&Q&&!a?D.JSC$14459_chunkHandler=new bIt(_.Mq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:G},x):D.JSC$14459_chunkHandler=new X_R(x);D.JSC$14459_chunkHandler.processChunk({endpoint:v,data:h});return D.JSC$14459_chunkHandler.pI.promise},
fPM=function(D,v,h,a,Q){(h=_.gx4(h))&&xeJ(D,v,h,!1,!0,a,void 0,Q)};_.CVm=new _.Uj("NAVIGATION_SERVICE_TOKEN");var oS9=function(){this.pendingNavigationPromise=null};
_.V=oS9.prototype;_.V.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.V.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.V.addEventListener=function(){throw Error("Dh");};
_.V.dispatchEvent=function(){throw Error("Dh");};
_.V.removeEventListener=function(){throw Error("Dh");};var FWm=new _.Uj("APP_ROOT");var QE8=null;var zqF=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],O0=function(){_.jZ.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Ue$(this)};
_.J(O0,_.jZ);O0.prototype.verifyUser=function(){var D=Ue$(this),v=D.logout;if(!D.sessionChange)return!0;this.dispatchEvent("ytsessionchange");v&&this.dispatchEvent("ytuserinvalid");return!1};
var Ue$=function(D){var v=zqF.map(function(Q){var G;return(G=_.l8.get(Q))!=null?G:""}),h=v.some(function(Q,G){return D.sessionCookies&&D.sessionCookies[G]!==""&&Q===""}),a=v.some(function(Q,G){return D.sessionCookies&&D.sessionCookies[G]!==Q});
D.sessionCookies=v;return{logout:h,sessionChange:a}};
O0.prototype.clearTimeout=function(){this.scheduledJobId&&(_.HK.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var fnO=new _.Uj("POSTMESSAGE_TUNNEL_TOKEN");var PAi=["/parent_tools","/file_download","/artist_roster"],F18=[aJF,$14,Q4J,Vt1,Gy4,hM1,PsM,x1t];var KC=new _.Uj("NAVIGATION_CONFIRMATION_SERVICE");var LWp="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),ZM$=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],TJ=function(D,v){this.pendingNavigationPromise=null;this.JSC$14482_clientRoot=D;this.historyManager=v;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 PVF;this.debugString=D.is;D={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,
"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.rf(_.iD.getInstance(),D,this.JSC$14482_clientRoot)},S3J,Jab,pns,lP4,k9b;
_.J(TJ,oS9);TJ.prototype.reload=function(){_.ay(window.location.href)};
var J04=function(D){D.currentEndpoint&&_.k(D.currentEndpoint,_.AQ)?D.reload():D.currentEndpoint&&D.navigate(D.currentEndpoint,!0,void 0,{disableCache:!0})};
TJ.prototype.navigate=function(D,v,h,a,Q,G,x,f){v=v===void 0?!1:v;h=h===void 0?{}:h;a=a===void 0?{}:a;var C=_.xd().resolve(KC),U;if(!x&&VS9(C,(U=this.currentEndpoint)!=null?U:void 0,D))return C.showConfirmationDialog(this.JSC$14482_clientRoot.parentElement,{endpoint:D,reload:v,params:h,tempData:a,requestType:Q,createScreenConfig:G}),!1;var L=_.ol();_.FQ(L,"eocs")||L.parkOrScheduleJob(function(){L.processSignal("eocs")},10,"eor");
GDu();x=cR(D);C=a.autonav==="1";U=_.wd();O0.instance||(O0.instance=new O0);var Z=O0.instance.verifyUser(),E;if(_.g("enable_dark_theme_only_on_shorts")){var I=document.documentElement.hasAttribute("dark"),S=_.sL(!0)==="USER_INTERFACE_THEME_DARK";if(x==="shorts"){if(!I)if(_.g("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var B;_.ay((B=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:B.url,void 0,void 0,window.top)}}else{var A;_.ay(_.vV((A=_.k(D==
null?void 0:D.commandMetadata,_.Sa))==null?void 0:A.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.g("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!I){var d;_.ay(_.vV((d=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:d.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(S!==I){var b;_.ay(_.vV((b=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:b.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(x==="watch"){if(ES$(_.xd().resolve(_.Ok),
D)&&(Z||_.g("fix_miniplayer_navigation_killswitch")))return!1;_.g("block_all_player_prefetch_requests")||(E=kZ$(_.Qf(_.ie),D,C))}else{var W,K=(W=_.k(this.currentEndpoint,_.hP))==null?void 0:W.videoId;K&&_.re.getInstance().then(function(s8){s8&&s8.set("yt-miniplayer-shown-video-id",K)})}E&&(h.frags=E.missingFragments_.join(","));
B=null;var O;A=(O=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:O.ignoreNavigation;if(!A)if(_.g("kevlar_command_url")){var R;B=(R=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?void 0:R.url}else B=_.rn8(D,h);if(B&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&B==this.lastNavigationUrl)return _.HU({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.zk(Rr(),"CANCELLED")}B&&(this.lastNavigationUrl=B);y97();_.wM("IS_HOMEPAGE_COLD",
!1);_.wM("IS_RESULTS_PAGE_COLD",!1);_.wM("IS_WATCH_PAGE_COLD",!1);D.loggingUrls&&D.loggingUrls.forEach(function(s8){s8.baseUrl&&_.WK(s8.baseUrl)});
_.Z5o(D,G?G.layer:0)&&_.g("kevlar_flush_logs_on_away_navigation")&&_.s5();if(zO8(D))return!1;h5$(x,Q);if(!B)return A||_.yR(new _.XH("Can't construct url for endpoint",D)),_.zk(Rr(),"FAILURE"),!1;_.VEL();O=D&&_.k(D,_.YV)&&_.k(D,_.YV).browseId.startsWith("UC");h=(R=_.g("enable_dark_theme_only_on_shorts")&&x==="shorts"?!1:_.mc()&&document.documentElement.hasAttribute("dark")!==_.jL())?{themeRefresh:1}:{};R&&!_.Yd()&&_.sL()==="USER_INTERFACE_THEME_DARK"&&(h.theme="dark");O=R||IPp(B)&&!O&&!_.g("kevlar_disable_url_allowlist");
Z||(O=!0);if(O||_.eA("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var vA;var f7=(vA=window.top)==null?void 0:vA.location.href}catch(s8){var xL;f7=(xL=s8)==null?void 0:xL.message}_.yR(new _.XH("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:f7}))}D=_.g("kevlar_redirect_on_window_killswitch")?window.top:window;hV(B);_.ay(_.vV(B,h),void 0,void 0,D);_.zk(Rr(),"ABORTED");return!1}_.g("kevlar_early_popup_close")&&_.zU(this.JSC$14482_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14459_chunkHandler=void 0;var kL;f7=cR((kL=this.currentEndpoint)!=null?kL:void 0);(kL=x==="shorts"&&f7==="shorts")||_.d97();_.KJ(gF4)("nr",void 0);C&&_.HU({webInfo:{navigationReason:"an"}});D.clickTrackingParams&&(a.itct=D.clickTrackingParams,a.csn=U);uOL(a);a.endpoint=JSON.stringify(D);_.g("enable_unknown_lact_fix_on_html5")&&(_.xd().resolve(_.qL),a.lact=_.x_());_.sV.isEmpty(a)||_.Vp(B,a);!_.g("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(G=Object.assign({},{layer:0},G,{parentLayer:3}));this.pendingNavigationPromise=G=MSM(this.pageFetcher,D,a,this.currentEndpoint,this.JSC$14482_isNetworkPromiseStale.bind(this),G,f);G=G.then(this.handleNavigateSuccess.bind(this,G,D,E,a),this.handleNavigateFail.bind(this,G,D));_.eh().navigationFinishPromise=G;v={endpoint:D,pageType:x,url:Un(B),reload:!!v,noProgressBar:kL};Q&&(v.type=Q);var Z4;Q=_.NP((Z4=this.currentEndpoint)!=null?Z4:null);Z4=_.NP(D!=null?D:null);this.fireEvent("yt-navigate-start",
v);var S2;(S2=_.xd().resolve(_.PV(_.CVm)))==null||S2.publish("navigation-start",{sourcePageSubtype:Q,destinationPageSubtype:Z4});E&&fPM(this.pageFetcher,D,E,a,this.currentEndpoint);return!0};
TJ.prototype.JSC$14482_isNetworkPromiseStale=function(D){return D!=this.pendingNavigationPromise};
var gSF=function(D,v,h,a,Q){var G=cR(v);v={endpoint:v,pageType:G};Q&&(v.errorMessage=Q);_.yR(h);v.navigationDoneMs=_.ea("nd");v.navigationErrorReason=a;D.fireEvent("yt-navigate-error",v)};
TJ.prototype.handleNavigateFail=function(D,v,h){var a=void 0;h instanceof _.Oy&&(a=h,WsI(h));if(this.JSC$14482_isNetworkPromiseStale(D))return _.H8(a);_.zk(Rr(),"FAILURE");gSF(this,v,h,"101");return _.H8(h)};
TJ.prototype.handleNavigateSuccess=function(D,v,h,a,Q){if(this.JSC$14482_isNetworkPromiseStale(D))return _.E9();this.pendingNavigationPromise=null;if(!Q)return v=new _.XH("Missing data in response for navigation endpoint",v),_.H8(v);if(Q.reload)return window.location.reload(!0),_.E9();h&&(D={},_.sV.extend(D,_.gx4(h),Q),Q=D);var G,x;h=(G=Q)==null?void 0:(x=G.timing)==null?void 0:x.responseStart;h!=null&&_.ea("srt",h);_.ea("pdc");var f,C;G=(f=Q)==null?void 0:(C=f.timing)==null?void 0:C.info;G!=null&&
(f=_.KJ(_.pq7)(G),_.HU(f));_.zk(Rr(),"SUCCESS");k9b(this,v,Q,1,a);return _.E9()};
var IPp=function(D){var v=D;_.g("kevlar_no_redirect_to_classic_2_ks")||(v=(new _.aN(D)).getPath());if(v==="/"||v==="/red")return!1;var h=!0;LWp.forEach(function(a){D.indexOf(a)===0&&(h=!1)});
ZM$.forEach(function(a){var Q=a.url;_.g(a.expFlag)&&D.indexOf(Q)===0&&(h=!1)});
return h};
TJ.prototype.publishPageData=function(D){this.fireEvent("yt-page-data-fetched",{pageData:D})};
S3J=function(D,v,h,a,Q,G){var x=null;v.page!=="watch"&&v.page!=="learning_journey_watch"||a?v.filler||_.zU(D.JSC$14482_clientRoot,"yt-stop-old-player",[v]):x=xeJ(D.pageFetcher,Q,v,h,!1,G,void 0,D.currentEndpoint);if(x)return x.then(D.publishPageData.bind(D,v));D.publishPageData(v);return _.E9()};
Jab=function(D,v,h){var a=null;if(!h)return a=new _.XH("Empty data",D.debugString,v);var Q=h.response;if(!Q)return a;var G={endpointType:cR(v)||"unknown"};Q.responseContext?(Q=Q.responseContext.errors)&&(a=new _.XH("Errors in response context",D.debugString,v,Q,G)):a=Q.error||Q.errorMetadata?new _.XH("Errors in response",D.debugString,v,Q.error,Q.errorMetadata,G):new _.XH("responseContext missing",D.debugString,v,Object.keys(Q).sort().join(","),G);var x,f,C,U;if(D=h==null?void 0:(x=h.response)==null?
void 0:(f=x.responseContext)==null?void 0:(C=f.webResponseContextExtensionData)==null?void 0:(U=C.webResponseContextDebugData)==null?void 0:U.debugErrorMessages)for(x=0;x<D.length;x++);return a};
pns=function(D){var v,h,a,Q;return D==null?void 0:(v=D.response)==null?void 0:(h=v.responseContext)==null?void 0:(a=h.errors)==null?void 0:(Q=a.error)==null?void 0:Q["0"]};
lP4=function(D,v){var h;if(h=v.url&&!v.url.startsWith("/clip"))h=v.url,h=!_.g("webfe_parse_debug_param_in_resolveurl_service")&&D.searchDebugUrlMatcher.test(h)||$D4(h)?!0:!1;if(h)$D4(v.url)&&_.DX(window.location.href).themeRefresh?(v=_.PU(v.url,"themeRefresh"),_.wG(D.historyManager,v)):v.url&&!Dni(v.url)&&_.wG(D.historyManager,v.url);else if(v.endpoint){var a,Q,G;(h=(a=v.endpoint)==null?void 0:(Q=a.commandMetadata)==null?void 0:(G=Q.webCommandMetadata)==null?void 0:G.url)&&!Dni(h)&&_.wG(D.historyManager,
h);h&&v.url&&h!=v.url&&!v.url.match("playnext=1")&&new _.XH("Response url mismatch in response data",D.debugString,h,v.url)}};
_.NH4=function(D,v,h,a,Q,G,x,f){G=G===void 0?!1:G;var C=_.xd().resolve(KC),U;if(!f&&VS9(C,(U=D.currentEndpoint)!=null?U:void 0,v))return C.showConfirmationDialog(D.JSC$14482_clientRoot.parentElement,{endpoint:v,data:h,navigationType:a,tempData:Q,isMiniplayer:G,isForwardHistoryNavigation:x==null?void 0:x.forward}),_.E9();D.pageFetcher.JSC$14459_chunkHandler=void 0;return k9b(D,v,h,a,Q,G)};
k9b=function(D,v,h,a,Q,G){G=G===void 0?!1:G;D.isMiniplayerExpansion=G;var x=a===2;D.currentEndpoint=v;D.numNavigations++;D.numNavigations&&(Hnc.navigationCount=D.numNavigations);_.wM("NUM_NAV",D.numNavigations);var f=Jab(D,v,h);if(f)return gSF(D,v,f,"102",pns(h)),_.H8(f);var C,U,L,Z;f=h.rootVe||(h==null?void 0:(C=h.response)==null?void 0:(U=C.responseContext)==null?void 0:(L=U.webResponseContextExtensionData)==null?void 0:(Z=L.ytConfigData)==null?void 0:Z.rootVisualElementType);!x&&h&&lP4(D,h);var E,
I;C=h==null?void 0:(E=h.response)==null?void 0:(I=E.responseContext)==null?void 0:I.maxAgeSeconds;if(!x&&!isNaN(C)){var S;_.g("kevlar_use_response_ttl_to_invalidate_cache")?S=(0,_.xz)()+1E3*C:_.g("kevlar_always_invalidate_cache")&&(S=0);isNaN(S)||(h.expirationTime=S)}_.Qf(_.ie).prefetchCache_.clear();x||h.page!=="watch"||h.type!=="reduced"&&a!==1?a=S3J(D,h,x,!!G,v,Q):(D.publishPageData(h),a=_.E9());Q=a.then(function(){var B=cR(v);B={endpoint:v,pageType:B,fromHistory:x,response:h};B.navigationDoneMs=
_.ea("nd");D.fireEvent("yt-navigate-finish",B);var A;(A=_.xd().resolve(_.PV(_.CVm)))==null||A.publish("navigation-end")});
h.csn&&f&&h.clientSideGrafts&&a.then(D.attachClientSideGrafts.bind(D,h,_.yC()));return Q};
_.V=TJ.prototype;_.V.attachClientSideGrafts=function(D,v){D.clientSideGrafts&&v&&D.clientSideGrafts.forEach(function(h){if(v&&h){var a=_.d4(h);_.g("combine_ve_grafts")?_.c8().graftServerVe(h,v):_.tP(D.csn,v,a)}})};
_.V.handleSignalActionHistoryBack=function(){window.history.back()};
_.V.handleSignalActionCloseWindow=function(){window.close()};
_.V.handleSignalActionReloadPage=function(){this.reload()};
_.V.handleSignalActionSoftReloadPage=function(){J04(this)};
_.V.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.V.fireEvent=function(D,v){D=new CustomEvent(D,{bubbles:!0,cancelable:!1,composed:!0,detail:v});this.dispatchEvent(D)};
_.V.addEventListener=function(D,v){this.JSC$14482_clientRoot.addEventListener(D,v)};
_.V.dispatchEvent=function(D){return this.JSC$14482_clientRoot.dispatchEvent(D)};
_.V.removeEventListener=function(D,v){this.JSC$14482_clientRoot.removeEventListener(D,v)};
TJ[MM]=[FWm,_.ef];_.J7r=new be("browse","h8y2qb");_.pzf=new be("search","JzFVk");_.lu4=new be("shorts","xwEKAe");_.NOL=new be("watchFixie","nmfa2d");_.YSu=new be("watchFlexy","CF909");_.BOc=new be("watchGrid","Tm0L3c");_.c7c=new be("watchLearningJourney","L3n37");var Y34;var BH9=function(){return _.c.apply(this,arguments)||this};
_.J(BH9,_.c);_.GT.Object.defineProperties(BH9,{template:{configurable:!0,enumerable:!0,get:function(){if(Y34===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);Y34=D}D=Y34;return D}}});
_.e([_.l(YxJ.YtPlayerBehavior),_.n("design:type",Object)],BH9.prototype,"ytPlayerBehavior",void 0);_.e([_.m({is:"ytd-player"})],BH9);var ca4;var Xn4;var Aap;var R1=function(){var D=_.c.apply(this,arguments)||this;D.forceModernIconButton=!1;D.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return D};
_.J(R1,_.c);R1.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]]"}}}}}};
R1.prototype.handleAccountLinkingStateChangedCommand=function(D){if(D=_.k(D,Ttb)){var v,h=(v=this.data)==null?void 0:v.providerKey;v=D.providerKey;h&&v&&h.id===v.id&&h.subject===v.subject&&(D=D.linked,D!==void 0&&(this.set("data.linked",D),this.notifyPath("data.linked"),_.g("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(D)))}};
R1.prototype.setPlayerAccountLinkState=function(D){var v=new PNt;x9$(v,GL4(new QRM,D));var h=_.Mq();h&&h.getPlayerPromise().then(function(a){a.setAccountLinkState(_.dr(v.JSC$12174_serializeBinary(),4));a.updateAccountLinkingConfig(D)})};
R1.prototype.handleShowAccountLinkDialog=function(){var D=this.get("button.buttonRenderer.command");D&&_.gK([D],this.hostElement)};
_.GT.Object.defineProperties(R1.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}}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.e([_.l([_.ed.YtActionHandlerBehavior]),_.n("design:type",Object)],R1.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],R1.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],R1.prototype,"overrides",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],R1.prototype,"forceModernIconButton",void 0);_.e([_.Y({value:"bottom"}),_.n("design:type",String)],R1.prototype,"buttonTooltipPosition",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],R1.prototype,"forceIconButton",void 0);_.e([_.Y(),_.n("design:type",Boolean)],R1.prototype,"disableTextTransform",void 0);
_.e([_.N("data","data.linked","data.isWarning"),_.n("design:type",Object),_.n("design:paramtypes",[])],R1.prototype,"button",null);_.e([_.m({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],R1);
_.w(R1,"ytd-account-link-button-renderer",function(){if(Aap!==void 0)return Aap;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Aap=D},{mode:1});var q3m;var bMJ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],iX=function(){return _.c.apply(this,arguments)||this};
_.J(iX,_.c);iX.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
iX.prototype.updateButtonActiveState=function(){var D=this,v=!!bMJ.find(function(h){return D.currentState===h});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.g("enable_web_delhi_icons")&&(v=!1);this.button&&(this.button.isPressed=v)};
_.GT.Object.defineProperties(iX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.playlistLoopStateEntity)==null?void 0:D.state)||((v=this.data)==null?void 0:v.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=void 0,v;if(this.currentState&&((v=this.data)==null?0:v.states)){v=_.P(this.data.states);for(var h=v.next();!h.done;h=v.next()){h=_.k(h.value,_.o9$);var a=void 0;if(((a=h)==null?void 0:a.state)===this.currentState){D=h;break}}}return D}}});
iX.prototype.updateButtonActiveState=iX.prototype.updateButtonActiveState;_.e([_.l(_.Mm),_.n("design:type",Object)],iX.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.pIL}),_.n("design:type",Object)],iX.prototype,"playlistLoopStateEntity",void 0);_.e([_.Y(),_.n("design:type",Object)],iX.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],iX.prototype,"forceIconOnly",void 0);_.e([_.Br("ytd-button-renderer"),_.n("design:type",_.Y$)],iX.prototype,"button",void 0);
_.e([_.N("data","playlistLoopStateEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],iX.prototype,"currentState",null);_.e([_.Ni("currentButtonStateRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iX.prototype,"updateButtonActiveState",null);_.e([_.N("currentState"),_.n("design:type",Object),_.n("design:paramtypes",[])],iX.prototype,"currentButtonStateRenderer",null);
_.e([_.m({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],iX);
_.w(iX,"ytd-playlist-loop-button-renderer",function(){if(q3m!==void 0)return q3m;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return q3m=D},
{mode:1});var des;var j$s=_.p1("DOWNLOAD",{},"Download"),s$p=_.p1("DOWNLOADING",{},"Downloading"),met=_.p1("DOWNLOADED",{},"Downloaded"),HM4=_.p1("RETRY",{},"Retry"),W0=function(){var D=_.c.apply(this,arguments)||this;D.forceIconButton=!1;D.forceIconOnly=!1;D.overrides=!1;D.buttonTooltipPosition=!1;D.styleActionButton=!1;D.disableTextTransform=!1;D.downloadProgress=0;D.isDownloadComplete=!1;D.isHidden=!0;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return D};
_.J(W0,_.c);_.V=W0.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var D;(D=this.data)!=null&&D.text||(D=_.KG(_.Gb().getState(),this.videoId),this.updateButtonState(D))};
_.V.computeVideoId=function(D){return D};
_.V.computePlayerStateEntityKey=function(D){return D};
_.V.showHideButton=function(){this.updateButtonVisibility()};
_.V.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var D;((D=this.playerStateEntity)==null?void 0:D.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(D){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==s$p||!_.cf(D))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=j$s;var v="OFFLINE_DOWNLOAD";var h="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":D=HM4;v="OFFLINE_DOWNLOAD";h="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":D=met;v="OFFLINE_PIN";h="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":D=
s$p;v="OFFLINE_DOWNLOADING_ZERO";h="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":D=HM4;v="OFFLINE_DOWNLOAD";h="ACTION_RETRY";break;default:D=j$s,v="OFFLINE_DOWNLOAD",h="ACTION_ADD"}this.isVideoDeletedByUser&&(D=j$s,v="OFFLINE_DOWNLOAD",h="ACTION_ADD");var a=Object.assign({},this.data);a.text=_.aX(D);a.tooltip=D;a.icon={iconType:v};a.size="SIZE_DEFAULT";a.style="STYLE_DEFAULT";_.k(a.command,_.Jn)&&(_.k(a.command,_.Jn).action=h);this.set("data",a)}};
_.V.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?D="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var v;D!==((v=this.data.icon)==null?void 0:v.iconType)&&(v=Object.assign({},this.data),v.text=_.aX(s$p),v.tooltip=s$p,v.icon={iconType:D},_.k(v.command,_.Jn)&&(_.k(v.command,_.Jn).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",v))}};
W0.prototype.updateProgress=W0.prototype.updateProgress;W0.prototype.onTransferStateChanged=W0.prototype.onTransferStateChanged;W0.prototype.showHideButton=W0.prototype.showHideButton;W0.prototype.dataChanged=W0.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],W0.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"forceIconButton",void 0);
_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"forceIconOnly",void 0);_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"overrides",void 0);_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"buttonTooltipPosition",void 0);_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"styleActionButton",void 0);_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"disableTextTransform",void 0);
_.e([_.Y({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.n("design:type",String)],W0.prototype,"videoId",void 0);_.e([_.Y({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.n("design:type",String)],W0.prototype,"playerStateEntityKey",void 0);_.e([_.Y(),_.n("design:type",Object)],W0.prototype,"data",void 0);_.e([_.Y({selector:RG,selectorArgs:["videoId"]}),_.n("design:type",Object)],W0.prototype,"downloadProgress",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],W0.prototype,"isDownloadComplete",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],W0.prototype,"isHidden",void 0);_.e([_.Y({selector:_.KG,selectorArgs:["videoId"]}),_.n("design:type",String)],W0.prototype,"transferState",void 0);_.e([_.Y({selector:_.slL,selectorArgs:["videoId"]}),_.n("design:type",Object)],W0.prototype,"isVideoDeletedByUser",void 0);
_.e([_.Y({selector:XCI,selectorArgs:["videoId"]}),_.n("design:type",Object)],W0.prototype,"offlineabilityState",void 0);_.e([_.Y({selector:zTO,selectorArgs:["playerStateEntityKey"]}),_.n("design:type",Object)],W0.prototype,"playerStateEntity",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],W0.prototype,"showTooltips",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],W0.prototype,"sendCommandWhenDisabled",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],W0.prototype,"disabled",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W0.prototype,"dataChanged",null);_.e([_.qi("offlineabilityState","playerStateEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W0.prototype,"showHideButton",null);
_.e([_.qi("transferState","isVideoDeletedByUser"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W0.prototype,"onTransferStateChanged",null);_.e([_.qi("downloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W0.prototype,"updateProgress",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],W0);
_.w(W0,"ytd-download-button-renderer",function(){if(des!==void 0)return des;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return des=D},{mode:2});var ya$;var wnp,eqJ=function(){if(wnp!==void 0)return wnp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return wnp=D};var nSJ=_.g("web_button_rework")&&_.nJ("BUTTON_REWORK")||_.g("web_button_rework_with_live"),OM$=_.oZ("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,t9=function(){var D=_.c.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.alignByText=!1;D.isShorts=!1;D.animatedText=!1;D.shouldAnimate=!1;D.JSC$14521_browserSupportsAnimation=_.g("web_supports_animations_api");D.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};D.onTap=function(){var v;if((v=D.data)==null||!v.defaultNavigationEndpoint){var h;v=!((h=D.data)==null?0:h.isToggled);var a;if((a=D.data)==null||!a.preventAutoToggle){D.shouldAnimate=!1;D.disableTextUpdateJobId&&_.HK.cancelJob(D.disableTextUpdateJobId);D.disableTextUpdateJobId=_.HK.addLowPriorityJob(function(){D.disableTextUpdateJobId=void 0},OM$);
var Q;D.set("data.isToggled",!((Q=D.data)==null?0:Q.isToggled));h=D.getInnertubeIcon();a={toggled:v,actions:{}};h&&(a.actions[h.toLowerCase()]=v);_.F1(D.hostElement,"yt-toggle-button",a)}}};
return D};
_.J(t9,_.c);_.V=t9.prototype;_.V.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.HK.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.toggle=function(D){var v;this.set("data.isToggled",D!==void 0?D:!((v=this.data)==null?0:v.isToggled))};
_.V.handleUpdateToggleButtonStateCommand=function(D){if(this.data){D=_.k(D,$w$);var v,h,a,Q=(v=this.data)==null?void 0:(h=v.toggleButtonSupportedData)==null?void 0:(a=h.toggleButtonIdData)==null?void 0:a.id;Q&&D&&Q===(D==null?void 0:D.buttonId)&&this.set("data.isToggled",D.toggled)}};
_.V.handleUpdateToggleButtonTextAction=function(D){if(this.data){D=_.k(D,ZOJ);var v,h,a,Q=(v=this.data)==null?void 0:(h=v.toggleButtonSupportedData)==null?void 0:(a=h.toggleButtonIdData)==null?void 0:a.id;Q&&D&&Q===(D==null?void 0:D.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=D.defaultNumericalValue,this.set("data.defaultText",D.defaultText),this.set("data.toggledText",D.toggledText),this.shouldAnimate=!1)}};
_.V.getInnertubeIcon=function(){var D=this.data;if(D){var v,h,a=((v=D.defaultIcon)==null?0:v.iconType)?(h=D.defaultIcon)==null?void 0:h.iconType:null,Q,G;v=((Q=D.toggledIcon)==null?0:Q.iconType)?(G=D.toggledIcon)==null?void 0:G.iconType:a;return D.isToggled?v:a}};
_.V.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.GT.Object.defineProperties(t9.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14521_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var v=D.renderer;var h=D.element;var a=D.toggled;var Q=D.onTapCallback;var G=D.commandClientArgs;var x=D.overrides;var f=D.forceIcon;var C=D.forceModernIconButton;var U=D.forceDisabled;var L=D.useAnimatedText;var Z=D.animatedTextProps;D=B7u(v,a);f=!v.defaultIcon||!f&&v.defaultText?v.defaultIcon?"leading":void 0:C?"icon-only":"icon-only-40";f==="icon-only-40"&&(D.type="text");var E;C=Object;var I=C.assign,S;a:switch((S=
v.style)==null?void 0:S.styleType){case "STYLE_COMPACT_GRAY":S={size:"S"};break a;default:S={size:"M"}}var B=!!a;var A=(A=a&&v.toggledText||v.defaultText)?_.nb(A):void 0;L?(L=_.$V(a&&v.toggledText||v.defaultText))&&Z&&!isNaN(Number(Z.numberValue))?(Z.numberText=L,a&&(Z.numberValue+=1),L=Z):L=void 0:L=void 0;var d,b,W,K;var O=(Z=((b=a?v.toggledAccessibilityData||((O=v.toggledText)==null?void 0:O.accessibility):v.accessibilityData||((d=v.defaultText)==null?void 0:d.accessibility))==null?void 0:(W=b.accessibilityData)==
null?void 0:W.label)||((K=v.accessibility)==null?void 0:K.label))?Z:_.$V(a&&v.toggledText||v.defaultText);U=U===void 0?v.isDisabled:U;h=Yxc(v,a,Q,h,G);a=N7I(v,a);a!=null&&a.length?(a=_.W8({innertubeCommand:C3c(a),forceNewState:!0}),a=tD(a)?a:void 0):a=void 0;v=I.call(C,{},D,S,{iconPosition:f},x,{focused:!1,toggled:B,toggleable:!0,formattedButtonText:A,animatedTextProps:L,accessibilityLabel:O,disabled:U,onTap:h,aTagConfig:a},muo((E=v.colorData)==null?void 0:E.basicColorPaletteData));v.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(v.type="filled");return v}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.getInnertubeIcon();if(D)return _.SQ(D)}}});
t9.prototype.resetAnimation=t9.prototype.resetAnimation;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],t9.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"isPressed",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"forceIconButton",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"forceIconOnly",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"forceModernIconButton",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"alignByText",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"overrides",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],t9.prototype,"disabled",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"isShorts",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"buttonTooltipPosition",void 0);_.e([_.Y(),_.n("design:type",Object)],t9.prototype,"animatedText",void 0);_.e([_.Y(),_.n("design:type",String)],t9.prototype,"textNumberValue",void 0);_.e([_.Y({computed:"computeTooltip(data, data.isToggled)"}),_.n("design:type",Object)],t9.prototype,"tooltip",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t9.prototype,"resetAnimation",null);_.e([_.N("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.n("design:type",Object),_.n("design:paramtypes",[])],t9.prototype,"computedButtonShape",null);_.e([_.N("data.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],t9.prototype,"computedIcon",null);
_.e([_.m({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],t9);nSJ&&_.w(t9,"ytd-toggle-button-renderer",eqJ,{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var KWt=_.H(function(D){function v(U){var L;return _.M(function(Z){if(Z.nextAddress==1)return(L=!XIA(U,f())||!f().enabled)?Z.jumpTo(2):Z.yield(jE7(),3);Z.nextAddress!=2&&(L=Z.yieldResult);if(L)return Z.return();h();setTimeout(function(){x(!1)},1500);
_.YI(Z)})}
function h(){setTimeout(function(){x(!0);var U;(U=a.lottieEl)==null||U.goToAndPlay(0)},150)}
var a=_.ke(),Q=_.P(_.Zq(!1,void 0,"UfUosc")),G=Q.next().value,x=Q.next().value,f=_.MK(D.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.jA(function(){var U,L;((U=D.settings)==null?void 0:(L=U.call(D))==null?void 0:L.uniqueId)==="this is not intended behavior"&&_.yR(new _.XH("Smartimation Settings is undefined"))});
_.bW(function(){f().experimentEnabled&&(f().enabled?AWf(v):(x(!1),qxf(v)),_.dq(function(){qxf(v)}))},"IHhVmc");
_.bW(function(){f().timings.join("");f().experimentEnabled&&(b57(f()),_.dq(function(){dnI(f())}))},"fsfhOe");
var C=_.SM(function(){var U=a,L=f().uniqueId+"-border",Z,E;var I="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((E=(Z=_.xd().resolve(_.PV(_.$5)))==null?void 0:Z())!=null&&E?"dark":"light")+"_v2.json";return{animationRef:U,animationConfig:{name:L,autoplay:!1,loop:!1,path:I}}},void 0,"UWvUGe");
Q={};return _.F("yt-smartimation",{class:_.S3(D.className,"smartimation",(Q["smartimation--experiment-enabled"]=function(){return f().experimentEnabled},Q["smartimation--active-border"]=G,Q["smartimation--enable-masking"]=sEA(),Q))},_.F(_.z,{cond:function(){return f().experimentEnabled},
then:function(){return _.F("div",{class:"smartimation__border"},_.F(_.ne,{className:"smartimation__border-gradient",data:C,animationName:function(){return C().animationConfig.name}}))}}),_.F("div",{class:"smartimation__content"},D.children))},"ba");
KWt.idomCompat=!0;_.zh(KWt,"yt-smartimation",{props:{className:_.gj,settings:_.gj}});var rG=function(){var D=_.c.apply(this,arguments)||this;D.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};D.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};D.shouldEnableSmartimation=!1;return D};
_.J(rG,_.c);rG.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
rG.prototype.onDataChanged=function(){var D,v;this.shouldEnableSmartimation=(((D=this.data)==null?void 0:(v=D.timedAnimationData)==null?void 0:v.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
rG.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var D=_.k(this.data.likeButton,_.Pi),v=_.k(this.data.dislikeButton,_.Pi);return!!((D==null?0:D.isToggled)||(v==null?0:v.isToggled))};
rG.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]]"}}}}}};
_.GT.Object.defineProperties(rG.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,v,h=((D=this.data)==null?void 0:(v=D.timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:"like-dislike",timings:h,enabled:this.shouldEnableSmartimation,experimentEnabled:h.length>0}}}});
rG.prototype.onDataChanged=rG.prototype.onDataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rG.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],rG.prototype,"likeButtonOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],rG.prototype,"dislikeButtonOverride",void 0);
_.e([_.N("shouldEnableSmartimation"),_.n("design:type",Object),_.n("design:paramtypes",[])],rG.prototype,"smartimationSettings",null);_.e([_.Ni("data"),_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rG.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],rG);
_.w(rG,"ytd-segmented-like-dislike-button-renderer",function(){if(ya$!==void 0)return ya$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return ya$=D},{mode:1});var THJ;var Rqp;(Rqp=document.body)==null||Rqp.setAttribute("rounded-container","");var iMs={};iMs.YtToggleButtonBehavior=[_.ed.YtActionHandlerBehavior,tk.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var D=this.data.isToggled;if(!this.isModal_(D)){if(!this.data.preventAutoToggle){this.toggle();var v={toggled:this.data.isToggled,actions:{}};v.actions[this.buttonIcon]=this.data.isToggled;_.F1(this.hostElement,"yt-toggle-button",v)}v=this.data.defaultServiceEndpoint||null;var h=this.data.toggledServiceEndpoint||null;if(v&&h||v&&this.data.preventAutoToggle)D=D?h:v,v=this.disableCommandHandlerOverride,_.g("killswitch_toggle_button_behavior_resolve_command")||v?_.L1(this.hostElement,
[D]):_.lP(D,this.hostElement),_.F1(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:D})}},
stateChanged_:function(){var D=this.data;if(D){var v=D.isToggled;this._setEndpoint(this.computeEndpoint_(D));this._setServiceEndpoint(this.computeServiceEndpoint_(D));this._setButtonIcon(this.computeButtonIcon_(D,v));this._setButtonText(this.computeButtonText_(D,v));this._setButtonAccessibility(this.computeAccessibility_(D,v));this._setButtonTooltip(this.computeTooltip_(D,v));this._setButtonClass(this.computeButtonClass_(D,v));this._setIconPositionType(this.computeIconPositionType_(D));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=v):this.elements_.button.setAttribute("aria-pressed",v));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=v)}},
shouldSetIconActiveState_:function(){return _.g("kevlar_system_icons")},
toggle:function(D){this.set("data.isToggled",D!==void 0?D:!this.data.isToggled);_.g("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(D){if(D){var v,h;return!!((v=this.data)==null?0:(h=v.toggledServiceEndpoint)==null?0:h.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(D){return D&&D.defaultNavigationEndpoint||null},
computeButtonIcon_:function(D,v){var h=D&&D.defaultIcon?_.SQ(D.defaultIcon.iconType):null;D=D&&D.toggledIcon?_.SQ(D.toggledIcon.iconType):h;return v?D:h},
handleUpdateToggleButtonStateCommand_:function(D){D=D.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&this.toggle(D.toggled)},
computeButtonText_:function(D,v){return D?v&&D.toggledText||D.defaultText||null:null},
computeAccessibility_:function(D,v){return D?(v?this.get("toggledAccessibilityData.accessibilityData",D):this.get("accessibilityData.accessibilityData",D))||D.accessibility||null:null},
computeTooltip_:function(D,v){return D?v&&D.toggledTooltip||D.defaultTooltip||null:null},
computeButtonClass_:function(D,v){if(!D)return"";var h="",a=D.toggledStyle||D.style;if(v=v?a:D.style){v.styleType&&(v=v.styleType);try{h+=v.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.wf(Q,v,typeof v),_.yR(Q)}}if(D=D.size){D.sizeType&&(D=D.sizeType);try{h+=D.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.wf(Q,D,typeof D),_.yR(Q)}}return h.trim()},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeServiceEndpoint_:function(D){var v=D&&D.serviceEndpoint,h=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return v?v:h&&D.command?D.command:null},
handleUpdateToggleButtonTextAction_:function(D){D=D.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&(this.set("data.defaultText",D.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",D.toggledText),this.notifyPath("data.toggledText"))}}];_.HX("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var WWJ=_.g("web_button_rework")&&_.nJ("BUTTON_REWORK")||_.g("web_button_rework_with_live"),uX=function(){var D=_.c.apply(this,arguments)||this;D.systemIcons=_.g("kevlar_system_icons");D.roundedContainer=!0;return D};
_.J(uX,_.c);uX.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
uX.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var D=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var v={toggled:!!this.data.isToggled,actions:{}};v.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var h,a;v.actions.playlistId=(h=this.data.defaultServiceEndpoint)==null?void 0:(a=h.playlistEditEndpoint)==null?void 0:a.playlistId;_.F1(this.hostElement,"yt-toggle-button",v)}(D=D?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(D)}};
uX.prototype.onYtNavigate=function(D){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);v&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(v))};
_.GT.Object.defineProperties(uX,{template:{configurable:!0,enumerable:!0,get:function(){if(THJ===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);THJ=D}D=THJ;return D}}});
uX.prototype.onYtNavigate=uX.prototype.onYtNavigate;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],uX.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],uX.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(iMs.YtToggleButtonBehavior),_.n("design:type",Object)],uX.prototype,"ytToggleButtonBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],uX.prototype,"data",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],uX.prototype,"showTooltips",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uX.prototype,"systemIcons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uX.prototype,"roundedContainer",void 0);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],uX.prototype,"onYtNavigate",null);
_.e([_.m({is:"ytd-toggle-button-renderer",disableElementRegistration:WWJ})],uX);var tSp,rat;_.De=new _.Uj("PANEL_CONTROLLER_TOKEN");_.vM=new _.Uj("SHEET_CONTROLLER_TOKEN");_.hq=new _.Uj("DIALOG_CONTROLLER_TOKEN");tSp=new _.Uj("DIALOG_CONTAINER_TOKEN");rat=new _.Uj("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.a8=new _.Uj("PERSISTENT_PANEL_CONTROLLER_TOKEN");var T7u=_.p1("DOWNLOAD",{},"Download"),RO4=_.p1("DOWNLOADING",{},"Downloading"),i5f=_.p1("DOWNLOADED",{},"Downloaded"),W1c=_.p1("RETRY",{},"Retry");var ul4=_.H(function(D){var v=vS7,h=function(){return""},a=tEq(D.data),Q=rWI(D.data),G=u3q(D.data),x=Deu(D.data);
v=function(){var f=D.data(),C=O57(f,a(),Q(),G(),x()),U=!!f.videoId,L=C.text;return{title:U?L:void 0,tooltip:U?void 0:L,accessibilityText:L,onTap:C.onTap,iconName:C.iconType,style:f.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:C.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:f.buttonSize}};
h={};h=_.S3("ytDownloadButtonViewModelHost",(h.ytDownloadButtonViewModelIsHidden=function(){var f=D.data(),C=x();return f.playlistId||C()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||C()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},h));
return _.F("download-button-view-model",{class:h},_.F(_.s$,{data:v}))},"ca");
ul4.idomCompat=!0;var MSi=new _.Uj("SUBMIT_API_SERVICE_TOKEN");var VSf,PV8,fPi={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var lPo=new _.Uj("RENDERER_LOGGER_TOKEN");var k9c=new _.Uj("RENDERER_STAMPER_OPTIONS_TOKEN");var CVA;_.Ye=new pXJ;CVA=new Map;var S34="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),pnq=["notificationTextRenderer","notificationMultiActionRenderer"],
Jac="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),gS8=oSf(function(D){return _.sY(D==null?void 0:D.targetId)}).useUpdatableData;var IPL=0;_.c4.debugName="EjJbCe";var DWy=_.H(function(D){var v=D.data;D=D.className;_.dM(function(){v().formId||_.mV(Error("Hh"))});
var h=_.G98(function(){return v().formId},function(){return v().beforeSubmitCommand},function(){return v().afterSubmitCommand}),a=h.submitForm,Q=h.isValid,G=h.isSubmitting,x=function(){return{state:v().isDisabled||!Q()||G()?"disabled":"active"}};
return _.F("yt-submit-button-view-model",{class:_.S3("ytSubmitButtonViewModelHost",D)},_.F(_.c4,{data:function(){return v().button}},{buttonViewModel:function(f){return _.F(_.s$,{data:f.data,
buttonOverrides:x,onClick:a})}}))},"ea");var hWy=_.H(function(D){var v=D.backgroundLottieRef;var h=D.foregroundLottieRef;var a=D.children;var Q=D.wrapperClass;var G=D.disableAnimation;D=function(){return(_.g("web_animated_actions")||_.g("web_animated_actions_v2"))&&!(G==null?0:G())};
return _.F("yt-animated-action",{class:_.S3("ytAnimatedActionHost",Q)},_.F("div",{class:"ytAnimatedActionContentWithBackground"},_.F(_.z,{cond:D,then:function(){return _.F(vWJ,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:v==null?void 0:v(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(NHo()?"dark":"light")+"_v5.json"}}}})}}),a),_.F(_.z,{cond:D,
then:function(){return _.F(vWJ,{lottiePlayerProps:function(){return{animationRef:h==null?void 0:h(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(NHo()?"dark":"light")+"_v4.json"}}}})}}))},"fa");
hWy.idomCompat=!0;var vWJ=_.H(function(D){var v=D.wrapperClass;var h=D.lottieClass;var a=D.lottiePlayerProps;return _.F("div",{class:_.S3("ytAnimatedActionLottie",v),"aria-hidden":"true"},_.F(_.ne,{className:h,data:a,animationName:function(){return a().animationConfig.name}}))},"ga");var Y3o={isOpen:!1};var ca7={isAllowed:!1};var AaL={errorMessage:"",title:"",privacy:"",isDisabled:!0};var bMc={isOpen:!1};var j$q={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var a8p={response:void 0};var me2=function(D,v){D=D===void 0?a8p:D;switch(v.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},D,{response:v.payload});default:return D}};var $WJ={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var HM7=function(D,v){D=D===void 0?$WJ:D;switch(v.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},D,{nextDisabled:v.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},D,{nextCommand:v.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},D,{footerSubmissionData:v.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},D,{isImpersonationValid:v.payload});default:return D}};var QxM={reportFormData:void 0,reportDetailsFormData:void 0};var yaO=function(D,v){D=D===void 0?QxM:D;switch(v.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportFormData:v.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportDetailsFormData:v.payload});default:return D}};var G$$=void 0;_.g("mweb_enable_redux_store_on_demand")||(G$$=new Qy(wnL()));var $3=_.g("enable_web_delhi_icons");var VPt=_.H(function(D){D=_.fb(D,{themeOverride:void 0,animationRef:{}});var v=D.animatedIconType,h=D.active,a=D.themeOverride,Q=D.animationRef;D=D.staticIconFn;var G=_.P(_.Zq(void 0,void 0,"l48agc")),x=G.next().value,f=G.next().value,C=function(){a:{var A=v();var d=a==null?void 0:a();var b;d=(d==null?void 0:d.useDarkTheme)||((b=_.xd().resolve(_.PV(_.$5)))==null?void 0:b());switch(A){case "LIKE":G$$||(G$$=new Qy(wnL()));A=(A=gg4(G$$.getState()))&&A.animationLightUrl&&A.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:d?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:d?A.animationDarkUrl:A.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(A){d=A;break a}d="animated_like_icon_"+(d?"dark":"light")+"_"+($3?"v5":"v4");d={lottiePlayerProps:{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+d+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
($3?" animated-like-icon-delhi":"")}}},totalFrames:$3?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":d={lottiePlayerProps:{animationConfig:{name:d?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(d?"dark":"light")+($3?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+($3?" animated-subscribe-icon-delhi":"")}}},totalFrames:$3?120:79,lazyLoad:!1};break a}d=
void 0}return d},U=function(){var A,d;
return(d=(A=C())==null?void 0:A.lottiePlayerProps.animationConfig.name)!=null?d:""},L=function(){if(C()){var A=C().lottiePlayerProps.animationConfig.path;
return j3.get(A)||x()}};
G=_.P(_.Zq(!1,void 0,"sDrGId"));var Z=G.next().value;G=G.next().value;var E=nSc(G),I=function(){var A=C(),d,b,W;return(W=A==null?void 0:(d=A.lottiePlayerProps.animationConfig)==null?void 0:(b=d.rendererSettings)==null?void 0:b.className)!=null?W:""},S=void 0,B=void 0;
_.bW(function(){var A=C(),d=U(),b=L(),W=Z(),K=h();if(A&&(B!==d&&(B=d,S=K,d=Q(),E.animationConfig=A.lottiePlayerProps.animationConfig,E.animationRef=d,b&&(E.animationConfig.animationData=b,E.animationConfig.path=void 0),d=A.lottiePlayerProps.animationConfig.path,!j3.get(d)&&A.lazyLoad&&d&&eq4(d,f)),!(W||A.lazyLoad&&!b))){if(b=!Q().lottieEl)K?(W=A.totalFrames,E.animationConfig.initialSegment=[W-1,W]):E.animationConfig.initialSegment=void 0;if(S!==K&&!b)if(b=Q(),K){var O;(O=b.lottieEl)==null||O.playSegments([0,
A.totalFrames],!0)}else{var R;(R=b.lottieEl)==null||R.playSegments([0,1],!0)}S=K}},"RQVZ1d");
return _.F("animated-icon",{class:"ytAnimatedIconHost"},_.F(_.z,{cond:function(){var A,d;return!((A=C())==null||!A.lottiePlayerProps.animationConfig.path||((d=C())==null?0:d.lazyLoad)&&!L()||Z())},
then:function(){return _.F(_.ne,{data:E,animationName:U,className:I,animationRef:Q})},
else:D}))},"ia");_.Q8=_.H(function(D){var v=_.va("yt-subscribe-button-view-model"),h=_.va("div"),a=_.va("div"),Q=_.ke(),G=_.ke(),x=_.ke(),f=_.l7(EKo,function(){return D.data().stateEntityStoreKey}),C=_.l7(Ino,function(){var rc,I4;
return(I4=(rc=D.data().notificationStateEntityStoreKeys)==null?void 0:rc.subsNotificationStateKey)!=null?I4:""}),U=function(){return!D.data().enableSubscribeButtonPostClickAnimation},L=_.P(_.Zq(0,void 0,"YtsSKb")),Z=L.next().value,E=L.next().value;
L=_.P(_.Zq(0,void 0,"V6JxRe"));var I=L.next().value,S=L.next().value;L=_.P(_.Zq(!1,void 0,"JUCSZ"));var B=L.next().value,A=L.next().value;L=_.P(_.Zq(!1,void 0,"oV6jwf"));var d=L.next().value,b=L.next().value;L=_.P(_.Zq(!1,void 0,"hK1Whe"));var W=L.next().value,K=L.next().value,O;L=_.P(_.Zq(!1,void 0,"Asaolf"));var R=L.next().value,vA=L.next().value,f7=function(){b(!0);_.b7(_.HK,function(){b(!1)},1500)};
_.bW(function(){var rc=d();_.LV(function(){rc&&!U()&&f()&&DWu(Q,G,x)})},"Qq6Hsf");
_.bW(function(){var rc=f();_.LV(function(){if(!U()&&rc){var I4;((I4=D.animateWidth)==null?0:I4.call(D))&&ulo(v.value,!!rc.subscribed,Z(),I());var q1,jt;((q1=O)==null?0:q1.subscribed)||!rc.subscribed||rc.key!==((jt=O)==null?void 0:jt.key)||f7();O=rc}})},"hog8te");
L=_.SM(function(){var rc,I4,q1,jt=D.data(),rr=!((rc=f())==null||!rc.subscribed);rc=!((I4=D.isOverlay)==null||!I4.call(D));I4=B()?v:void 0;var Zb=(q1=C())==null?void 0:q1.state;q1=R();ra2(jt,Zb);return TH4({model:jt,subscribed:rr,isOverlay:rc,element:I4,notificationState:Zb,disableTextEllipsis:!0,focused:q1})},void 0,"hc1PRd");
var xL=function(){var rc;if(!U()&&((rc=D.animateWidth)==null?0:rc.call(D))&&(h==null?0:h.value)&&(a==null?0:a.value)&&!W()){rc=f();var I4=_.P((rc==null?0:rc.subscribed)?[h,a]:[a,h]),q1=I4.next().value;I4=I4.next().value;q1=Math.ceil(q1.value.getBoundingClientRect().width);I4=Math.ceil(I4.value.getBoundingClientRect().width);E(q1);S(I4);ulo(v.value,!(rc==null||!rc.subscribed),q1,I4);K(!0)}},kL=_.Jd(function(rc){xL();
var I4=f();I4&&(rc.detail.endpoint.subscribeEndpoint||rc.detail.endpoint.unsubscribeEndpoint)&&iMq(v.value,!I4.subscribed,I4)}),Z4=function(){var rc=_.xd().resolve(_.PV(_.Xw));
rc&&vA(rc.isKeyBoardInUse())},S2=function(){vA(!1)};
_.DO("yt-player-subscribe",function(rc){var I4=f();I4&&rc===D.data().channelId&&iMq(v.value,!0,I4)});
_.DO("yt-player-unsubscribe",function(rc){var I4=f();I4&&rc===D.data().channelId&&iMq(v.value,!1,I4)});
_.DO("yt-update-subscribe-button-action",function(rc){rc=_.k(rc,yFm);var I4=f();I4&&rc&&rc.channelId===D.data().channelId&&iMq(v.value,!!rc.subscribed,I4)});
_.jA(function(){v.value&&(v.value.addEventListener("focusin",Z4),v.value.addEventListener("focusout",S2));var rc=_.c1(_.HK,function(){xL()});
A(!0);_.dq(function(){_.HK.cancelJob(rc);v.value&&(v.value.removeEventListener("focusin",Z4),v.value.removeEventListener("focusout",S2))})});
var s8=function(){var rc,I4,q1;if(q1=!((rc=f())==null||!rc.subscribed))rc=!!D.data().disableNotificationBell,q1=(I4=C())==null?void 0:I4.state,q1=!rc&&!!q1;return q1},Xf=function(){var rc;
return!((rc=f())==null?0:rc.subscribed)},dJ=function(){var rc,I4;
if(I4=Xf()){I4=!!D.data().disableNotificationBell;var q1=(rc=C())==null?void 0:rc.state;I4=!I4&&!!q1}return I4},R4={},sF={};
return _.F("yt-subscribe-button-view-model",{class:_.S3(D.className,"ytSubscribeButtonViewModelHost",(R4.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var rc,I4;return!((rc=f())==null||!rc.subscribed)&&((I4=D.animateWidth)==null?void 0:I4.call(D))&&d()},R4.ytSubscribeButtonViewModelHostHidden=function(){var rc;
return!((rc=f())==null?0:rc.subscribed)&&D.data().hideWhenUnsubscribed},R4)),
el:v,"on:yt-service-request-sent":kL},_.F(hWy,{backgroundLottieRef:Q,foregroundLottieRef:G,wrapperClass:_.S3("ytSubscribeButtonViewModelAnimatedActionWrapper",(sF.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var rc;return((rc=D.animateWidth)==null?void 0:rc.call(D))&&d()},sF.ytSubscribeButtonViewModelStaticWidth=function(){var rc;
return!((rc=D.animateWidth)==null?0:rc.call(D))},sF)),
disableAnimation:U},_.F("div",{el:h,class:"ytSubscribeButtonViewModelContainer"},_.F(_.jd,{data:L,icon:function(){return _.F(_.z,{cond:s8,then:function(){var rc=function(){var I4;return RqL((I4=C())==null?void 0:I4.state)};
return _.F(_.z,{cond:function(){return U()||rc()!=="NOTIFICATIONS_NONE"},
then:function(){return _.F(_.Y5,{icon:rc})},
else:function(){return _.F(VPt,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:x})}})}})},
secondaryIconName:function(){return s8()?"EXPAND":void 0}}))),_.F("div",{el:a,
class:"ytSubscribeButtonViewModelInvisible"},_.F(_.z,{cond:function(){var rc;return((rc=D.animateWidth)==null?void 0:rc.call(D))&&!U()&&!W()},
then:function(){return _.F(_.jd,{data:_.SM(function(){var rc;return TH4({model:D.data(),subscribed:Xf(),isOverlay:!((rc=D.isOverlay)==null||!rc.call(D)),element:v,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var rc;return dJ()?RqL((rc=C())==null?void 0:rc.state):void 0},
secondaryIconName:function(){return dJ()?"EXPAND":void 0}})}})))},"la");
_.Q8.idomCompat=!0;var PGs=_.H(function(D){var v=D.data;var h=_.l7(EKo,function(){return v().subscriptionStateEntityKey});
return _.F(_.z,{cond:function(){var a=v(),Q=h();return!a.hideWhenUnsubscribed||(Q==null?0:Q.subscribed)?_.k(v().button,_.fH):void 0},
then:function(a){return _.F("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.F(_.s$,{data:a,buttonOverrides:function(){return{toggled:!0}}}))}})},"ma");
PGs.idomCompat=!0;var xW1,Gn;xW1=_.H(function(D){return _.F(_.c4,{data:function(){return D.actionRow().actions}},{buttonViewModel:function(v){var h=v.data;
return _.F(Gn,{isRow:D.isRow,isIconOnlyButton:function(){return vW4(h())},
useIntrinsicWidth:D.useIntrinsicWidth},_.F(_.s$,{data:h}))},
subscribeButtonViewModel:function(v){return _.F(Gn,{isRow:D.isRow},_.F(_.Q8,{data:v.data,isOverlay:!1,animateWidth:function(){return!D.isRow()}}))},
downloadButtonViewModel:function(v){var h=v.data;return _.F(Gn,{isRow:D.isRow,isIconOnlyButton:function(){return!!h().playlistId}},_.F(ul4,{data:h}))},
submitButtonViewModel:function(v){var h=v.data;return _.F(Gn,{isRow:D.isRow,isIconOnlyButton:function(){var a=h();return vW4(_.k(a==null?void 0:a.button,_.fH))}},_.F(DWy,{data:h}))},
toggleButtonViewModel:function(v){var h=v.data;return _.F(Gn,{isRow:D.isRow,isIconOnlyButton:function(){var a=h();return vW4(_.k(a.isToggled?a.toggledButtonViewModel:a.defaultButtonViewModel,_.fH))}},_.F(_.$$,{data:h}))},
subscribePlusButtonViewModel:function(v){return _.F(Gn,{isRow:D.isRow},_.F(PGs,{data:v.data}))}})},"na");
Gn=_.H(function(D){var v={};return _.F("div",{class:_.S3("ytFlexibleActionsViewModelAction",(v.ytFlexibleActionsViewModelActionRowAction=D.isRow,v.ytFlexibleActionsViewModelActionIntrinsicWidth=D.useIntrinsicWidth,v.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,v.ytFlexibleActionsViewModelActionIconOnlyButton=D.isIconOnlyButton,v))},D.children)},"oa");
_.V8=_.H(function(D){var v=function(){var a;return((a=D.layout)==null?void 0:a.call(D))===1},h={};
return _.F("yt-flexible-actions-view-model",{class:_.S3("ytFlexibleActionsViewModelHost",D.className,(h.ytFlexibleActionsViewModelInline=function(){return!v()},h.ytFlexibleActionsViewModelScrollable=function(){return D.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},h))},_.F(_.Xd,{each:function(){return D.data().actionsRows||[]}},function(a){return _.F(_.z,{cond:v,
then:function(){return _.F("div",{class:"ytFlexibleActionsViewModelActionRow"},_.F(xW1,{actionRow:a,isRow:v,useIntrinsicWidth:function(){return!!D.data().respectActionIntrinsicWidth}}))},
else:function(){return _.F(xW1,{actionRow:a,isRow:v})}})}))},"pa");_.zh(_.V8,"yt-flexible-actions-view-model",{props:{data:_.gj,layout:_.gj,justifyContentOverride:_.gj,className:_.gj}});_.PM=_.H(function(D){var v=_.l7(R3,function(){var Q;return(Q=D.data().dislikeEntityKey)!=null?Q:""}),h=_.SM(function(){var Q=v();
return Q?Q.likeStatus==="DISLIKE":_.k(D.data().toggleButtonViewModel,_.oA).isToggled},void 0,"fNr9he"),a=_.SM(function(){return Object.assign({},_.k(D.data().toggleButtonViewModel,_.oA),{isToggled:h()})},void 0,"AezoCc");
return _.F("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.F(_.$$,{data:a,buttonShapeOverrides:D.buttonShapeOverrideables,onToggle:function(Q){var G=v();G&&Q!==(G.likeStatus==="DISLIKE")&&G.key&&_.xt(_.sy("likeStatusEntity",G.key,{likeStatus:Q?"DISLIKE":"INDIFFERENT",hadUserInteraction:Q}))}}))},"qa");
_.PM.idomCompat=!0;_.x3=_.H(function(D){var v=_.g("web_supports_animations_api"),h=f_(function(E){var I=U();if(!E){var S,B;return{numberText:(B=I==null?void 0:(S=I.likeCountIfIndifferent)==null?void 0:S.content)!=null?B:"",numberValue:Number(I==null?void 0:I.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var A;S=(I==null?void 0:(A=I.likeCountIfIndifferent)==null?void 0:A.content)!==E.numberText;if(f()||!S)return E;var d;return{numberText:(I==null?void 0:(d=I.likeCountIfIndifferent)==null?void 0:d.content)||
"",numberValue:Number(I==null?void 0:I.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!I}}),a=f_(function(E){var I=U();
if(!E){var S,B;return{numberText:(B=I==null?void 0:(S=I.likeCountIfLiked)==null?void 0:S.content)!=null?B:"",numberValue:Number(I==null?void 0:I.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var A;S=(I==null?void 0:(A=I.likeCountIfIndifferent)==null?void 0:A.content)!==E.numberText;if(f()||!S)return E;var d;return{numberText:(I==null?void 0:(d=I.likeCountIfLiked)==null?void 0:d.content)||"",numberValue:Number(I==null?void 0:I.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!I}}),Q=_.P(_.Zq(void 0,
void 0,"xldjge")),G=Q.next().value,x=Q.next().value,f=G,C=_.l7(R3,function(){var E,I;
return(I=(E=D.data())==null?void 0:E.likeStatusEntityKey)!=null?I:""}),U=_.l7(iBI,function(){var E,I;
return((E=D.likeCountEntity)==null?void 0:(I=E.call(D))==null?void 0:I.key)||""}),L=_.SM(function(){var E;
return((E=C())==null?void 0:E.likeStatus)==="LIKE"},void 0,"B3od5e"),Z=function(){var E;
return v&&!((E=D.likeCountEntity)==null||!E.call(D))};
return _.F("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.F(_.$$,{data:function(){var E=Object,I=E.assign,S;var B=_.k((S=D.data())==null?void 0:S.toggleButtonViewModel,_.oA);return I.call(E,{},B||{},{isToggled:L()})},
buttonShapeOverrides:D.buttonShapeOverrideables,animatedTextPropsDefault:function(){return Z()?h():void 0},
animatedTextPropsToggled:function(){return Z()?a():void 0},
onToggle:function(E){hWu(E,C(),f(),x)},
style:function(){var E;return((E=D.disableIconAnimation)==null?0:E.call(D))?void 0:{animateIcon:"true"}}}))},"ra");
_.x3.idomCompat=!0;var MPF=_.H(function(D){var v=function(){return _.k(D.data().likeButtonViewModel,_.hp)},h=function(){var Q;
return((Q=v())==null?void 0:Q.likeStatusEntityKey)||""},a=_.SM(function(){var Q,G;
var x=(G=_.l7(R3,h)())!=null?G:(Q=v())==null?void 0:Q.likeStatusEntity;Q=D.data();var f;Q=(Q==null?void 0:(f=Q.timedAnimationData)==null?void 0:f.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(x==null?void 0:x.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},void 0,"zZ3GQb");
return _.F("segmented-like-dislike-button-view-model",{class:_.S3("ytSegmentedLikeDislikeButtonViewModelHost",D.className),"button-renderer":!0},_.F(KWt,{settings:a},_.F("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.F(_.z,{cond:v,then:function(Q){return _.F(_.x3,{data:Q,likeCountEntity:function(){return D.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.g("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.F(_.z,{cond:function(){return _.k(D.data().dislikeButtonViewModel,_.vi)},
then:function(Q){return _.F(_.PM,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"sa");
MPF.idomCompat=!0;_.zh(MPF,"segmented-like-dislike-button-view-model",{props:{data:_.gj,className:_.gj}});var f84=_.H(function(D){var v=D.data;var h=D.className;var a=D.setMinWidth;var Q=D.forceIconOnly;var G=_.va("account-link-button-view-model"),x=_.l7(_.a8L,function(){var E;return(E=v().accountLinkStatusEntityKey)!=null?E:""}),f=_.l7(_.a8L,function(){var E;
return(E=v().accountLinkStatusSecondaryEntityKey)!=null?E:""}),C=function(){if(!_.g("web_account_link_secondary_killswitch")){var E,I;
return((E=x())==null?void 0:E.linked)||((I=f())==null?void 0:I.linked)}var S;return(S=x())==null?void 0:S.linked};
_.bW(function(){var E=x();if(E){var I=x9$(new PNt,GL4(new QRM,!!E.linked));_.Ig().then(function(S){S&&(S.setAccountLinkState(_.dr(I.JSC$12174_serializeBinary(),4)),S.updateAccountLinkingConfig(!!E.linked))})}},"IvZF7");
var U=function(){return _.k(v().toggleButtonViewModel,_.oA)};
_.DO("yt-signal-action-show-account-link-dialog",function(){if(U()){var E=C()?U().toggledButtonViewModel:U().defaultButtonViewModel;E=_.k(E,_.fH);var I;if((I=x())==null?0:I.isWarning){I=_.k(v().warningButtonViewModel,_.fH);if(!I){_.Wv(Error("Ih"));return}E=I}var S;(I=_.Rq((S=E)==null?void 0:S.onTap))&&_.gK([I],G.value)}else _.Wv(Error("Jh"))});
var L=function(){var E=U();return Object.assign({},E,{isToggled:C()})},Z=function(){return(Q==null?0:Q())?{iconPosition:"icon-only"}:{}};
return _.F("account-link-button-view-model",{class:_.S3("ytwAccountLinkButtonViewModelHost",h,function(){return(a==null?0:a())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:G,"button-renderer":!0},_.F("div",null,_.F(_.z,{cond:function(){var E;if((E=x())==null?0:E.isWarning)return(E=_.k(v().warningButtonViewModel,_.fH))||_.Wv(Error("Ih")),E},
then:function(E){return _.F(_.s$,{data:E,buttonOverrides:Z})},
else:function(){return _.F(_.$$,{data:L,buttonShapeOverrides:Z})}})))},"ua");_.zh(f84,"account-link-button-view-model",{props:{data:_.gj,className:_.C_,setMinWidth:_.C_,forceIconOnly:_.C_}});_.HX("menuRenderer","menuRenderer","ytd-menu-renderer");
var CGy={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"}},
oWp=_.g("web_fix_missing_action_buttons")?100:200,M4=function(){var D=_.c.apply(this,arguments)||this;D.safeArea=!_.g("kevlar_flex_menu_safe_area_killswitch");D.tonalOverride=!1;D.threeDotSize="M";D.isOverlay=!1;D.useOverlayDark=!1;D.topLevelIconsOnly=!1;D.JSC$14653_lastWidth=0;D.maybeUpdateFlexibleMenu=function(){_.g("web_fix_missing_action_buttons")?requestAnimationFrame(D.maybeUpdateFlexibleMenuImpl):D.maybeUpdateFlexibleMenuImpl()};
D.maybeUpdateFlexibleMenuImpl=function(){var v;if((v=D.data)!=null&&v.flexibleItems){D.maybeFlushDebouncer();v=D.hostElement.clientWidth;var h=v>D.JSC$14653_lastWidth,a,Q=((a=D.topLevelButtonsContainer)==null?void 0:a.scrollHeight)||0,G;a=((G=D.flexibleItemButtonsContainer)==null?void 0:G.scrollHeight)||0;G=D.hostElement.scrollHeight>Math.max(Q,a)+8;h?(D.resetFlexibleItems(),D.JSC$14653_lastWidth=D.hostElement.clientWidth,D.maybeUpdateFlexibleMenu()):G&&(D.shrinkFlexibleMenu(),D.JSC$14653_lastWidth=
v)}};
D.computeThreeDotButtonShape=function(){if(D.tonalOverride)return Object.assign({},{onTap:function(){D.onOverflowTap()},
iconPosition:"icon-only",style:D.isOverlay?D.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:D.threeDotSize,state:"active",accessibilityLabel:D.computeAccessibilityLabel(D.data)},D.threeDotButtonOverride)};
D.onOverflowTap=function(){if(D.data.fetchMenuCommand)_.xd().resolve(_.fx).resolveCommand(D.data.fetchMenuCommand,{form:{element:D.hostElement}});else if(D.data.isDisabled&&D.data.disabledCommand)_.lP(D.data.disabledCommand,D.hostElement);else{var v=D.createMenuRendererVe(),h={items:D.items};D.data.menuPopupAccessibility&&(h.menuPopupAccessibility=D.data.menuPopupAccessibility);D.data.footer&&(h.footer=D.data.footer);v={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:h},veData:v}};
_.xd().resolve(_.vM).openSheet({openPopupActionCommand:v},D.hostElement)}};
return D};
_.J(M4,_.c);_.V=M4.prototype;_.V.updateButtonOverrides=function(){if(!_.g("menu_renderer_label_update_upkillswitch")){var D=_.ZW(this.hostElement).querySelector("yt-button-view-model");D&&(D.buttonOverrides=this.buttonOverrides)}};
_.V.computeHasItems=function(){var D;return((D=this.topLevelButtonData)==null?void 0:D.length)||this.hasFlexibleItems};
_.V.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.V.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.SB(this.hostElement,{"--ytd-menu-renderer-button-color":_.rT(this.data.iconColor)}))};
_.V.onStamperFinished=function(){this.JSC$14653_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.V.setupFlexibleMenu=function(){var D=this,v;(v=this.data)!=null&&v.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.tn(this.maybeUpdateFlexibleMenu,oWp,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){D.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.V.maybeFlushDebouncer=function(){if(_.g("web_replace_formatted_with_attributed_string")){var D;(D=this.topLevelButtons)==null||D.forEach(function(h){var a;(h=(a=h.getElementsByTagName("yt-attributed-string"))==null?void 0:a[0])&&F0i(h)});
var v;(v=this.flexibleItemButtons)==null||v.forEach(function(h){var a;(h=(a=h.getElementsByTagName("yt-attributed-string"))==null?void 0:a[0])&&F0i(h)})}};
_.V.resetFlexibleItems=function(){var D;if((D=this.data)!=null&&D.flexibleItems){_.g("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var v;this.flexAsTopLevelButtons=(v=this.data.flexibleItems)==null?void 0:v.map(function(h){return _.k(h,_.HHy).topLevelButton});
_.g("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.V.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.V.shrinkFlexibleMenu=function(){var D;(D=this.flexAsTopLevelButtons)!=null&&D.length&&(this.flexAsTopLevelButtons=[].concat(_.j_(this.flexAsTopLevelButtons.slice(0,-1))))};
_.V.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:CGy,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:CGy,events:!0}}};
_.V.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.detached=function(){this.icon="MORE_VERT"};
_.V.computeTopLevelButtonData=function(D){if(!D)return[];var v;D=(v=D==null?void 0:D.topLevelButtons)!=null?v:[];return _.sV.unsafeClone([].concat(_.j_(D)))};
_.V.computeItems=function(D,v){if(!D)return[];var h=[];if(v){var a=(D.flexibleItems||[]).map(function(x){return _.k(x,_.HHy)});
a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next())Q=Q.value,v.includes(Q.topLevelButton)||(Q=Q.menuItem)&&h.push(Q)}var G;D=(G=D==null?void 0:D.items)!=null?G:[];return[].concat(_.j_(h),_.j_(D))};
_.V.computeMenuActive=function(D,v){return D||v};
_.V.onPopupOpened=function(){this.overlayOpen=!0;_.F1(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.V.onPopupClosed=function(){this.overlayOpen=!1;_.F1(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.onPopupCanceled=function(){this.overlayOpen=!1;_.F1(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.computeAccessibilityLabel=function(D){return this.get("accessibility.accessibilityData.label",D)};
_.V.isHidden=function(D,v){return this.tonalOverride||!D?!0:D.fetchMenuCommand||D.isDisabled&&D.disabledCommand?!1:!(v==null?0:v.length)};
_.V.isModernOverflowHidden=function(D,v){return this.tonalOverride&&D?D.fetchMenuCommand?!1:!(v==null?0:v.length):!0};
_.V.createMenuRendererVe=function(){var D=this.data.trackingParams,v=_.wd(),h=_.yC();return D&&v&&h?(D=_.d4(D),h=_.En(7591),_.g("combine_ve_grafts")?_.de(_.c8(),h,D):_.tP(v,D,h),h):null};
_.GT.Object.defineProperties(M4.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.flexAsTopLevelButtons)==null||!D.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
M4.prototype.onPopupCanceled=M4.prototype.onPopupCanceled;M4.prototype.onPopupClosed=M4.prototype.onPopupClosed;M4.prototype.onPopupOpened=M4.prototype.onPopupOpened;M4.prototype.tonalOverrideChanged=M4.prototype.tonalOverrideChanged;M4.prototype.resetFlexibleItems=M4.prototype.resetFlexibleItems;M4.prototype.setupFlexibleMenu=M4.prototype.setupFlexibleMenu;M4.prototype.iconButtonColorChanged=M4.prototype.iconButtonColorChanged;M4.prototype.updateButtonOverrides=M4.prototype.updateButtonOverrides;
_.e([_.l(_.lK),_.n("design:type",Object)],M4.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#button-shape"),_.n("design:type",HTMLElement)],M4.prototype,"buttonShape",void 0);_.e([_.Br("#button"),_.n("design:type",Object)],M4.prototype,"button",void 0);
_.e([_.Y(),_.n("design:type",Object)],M4.prototype,"data",void 0);_.e([_.Y({computed:"computeTopLevelButtonData(data)"}),_.n("design:type",Array)],M4.prototype,"topLevelButtonData",void 0);_.e([_.Y(),_.n("design:type",Array)],M4.prototype,"flexAsTopLevelButtons",void 0);_.e([_.Y({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.n("design:type",Array)],M4.prototype,"items",void 0);_.e([_.Y({value:"MORE_VERT"}),_.n("design:type",String)],M4.prototype,"icon",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],M4.prototype,"safeArea",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.n("design:type",Boolean)],M4.prototype,"menuActive",void 0);_.e([_.Y(),_.n("design:type",Boolean)],M4.prototype,"menuFocused",void 0);_.e([_.Y({value:"bottom"}),_.n("design:type",String)],M4.prototype,"buttonTooltipPosition",void 0);_.e([_.Y(),_.n("design:type",Boolean)],M4.prototype,"overlayOpen",void 0);
_.e([_.Y({value:!0}),_.n("design:type",Boolean)],M4.prototype,"forceIconButton",void 0);_.e([_.Y(),_.n("design:type",Boolean)],M4.prototype,"styleActionButton",void 0);_.e([_.Y(),_.n("design:type",Boolean)],M4.prototype,"disableTextTransformOnButtons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],M4.prototype,"tonalOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],M4.prototype,"threeDotSize",void 0);
_.e([_.Y(),_.n("design:type",Object)],M4.prototype,"threeDotButtonOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],M4.prototype,"isOverlay",void 0);_.e([_.Y(),_.n("design:type",Object)],M4.prototype,"useOverlayDark",void 0);_.e([_.Y({computed:"computeButtonOverride(tonalOverride)"}),_.n("design:type",Object)],M4.prototype,"buttonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],M4.prototype,"hasCustomIconColor",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("flexAsTopLevelButtons"),_.n("design:type",Object),_.n("design:paramtypes",[])],M4.prototype,"hasFlexibleItems",null);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.n("design:type",Boolean)],M4.prototype,"hasItems",void 0);_.e([_.Y(),_.n("design:type",Object)],M4.prototype,"topLevelIconsOnly",void 0);
_.e([_.Ni("topLevelIconsOnly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"updateButtonOverrides",null);_.e([_.N("topLevelIconsOnly"),_.n("design:type",Object),_.n("design:paramtypes",[])],M4.prototype,"buttonOverrides",null);_.e([_.Br("#top-level-buttons-computed"),_.n("design:type",HTMLElement)],M4.prototype,"topLevelButtonsContainer",void 0);_.e([_.cr(".top-level-buttons > *"),_.n("design:type",Array)],M4.prototype,"topLevelButtons",void 0);
_.e([_.Br("#flexible-item-buttons"),_.n("design:type",HTMLElement)],M4.prototype,"flexibleItemButtonsContainer",void 0);_.e([_.cr("#flexible-item-buttons > *"),_.n("design:type",Array)],M4.prototype,"flexibleItemButtons",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"iconButtonColorChanged",null);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"setupFlexibleMenu",null);_.e([_.qi("topLevelIconsOnly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"resetFlexibleItems",null);_.e([_.Ni("tonalOverride"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"tonalOverrideChanged",null);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"onPopupOpened",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"onPopupClosed",null);_.e([_.lc("yt-popup-canceled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M4.prototype,"onPopupCanceled",null);
_.w(M4,"ytd-menu-renderer",function(){if(Xn4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);Xn4=D}D=Xn4;return D},{mode:2});var Fwt;var zWJ;_.fn=_.H(function(D){var v=D.data;var h=function(){if(v().icon)a:{var Q={iconName:v().icon};for(var G=_.xd().resolve(_.JD),x=_.P([12,24]),f=x.next();!f.done;f=x.next()){var C=f.value;f=Object.assign({},Q,{iconStyle:"youtube_fill",iconSize:C});C=Object.assign({},Q,{iconStyle:"youtube_outline",iconSize:C});if(G.resolveIcon(f)){Q=f;break a}if(G.resolveIcon(C)){Q=C;break a}}Q=void 0}else Q=void 0;return Q};
D={};var a={};return _.F("badge-shape",{class:_.S3("yt-badge-shape",function(){return xWr(v().type)},(D["yt-badge-shape--overlay"]=function(){return v().isOverlay},D["yt-badge-shape--ads-include-dot"]=function(){return v().adsIncludeDot},D["yt-badge-shape--thumbnail-badge"]=function(){a:switch(v().type){case 17:case 18:case 19:var Q=!0;
break a;default:Q=!1}return Q},D["yt-badge-shape--status-badge"]=function(){a:switch(v().type){case 12:case 13:case 14:case 15:case 16:var Q=!0;
break a;default:Q=!1}return Q},D["yt-badge-shape--no-text"]=function(){return!v().text},D["yt-badge-shape--modern"]=function(){return v().modern||_.g("web_modern_badge_shape")},D)),
style:_.NL({"background-color":function(){var Q;return(Q=v().customColors)==null?void 0:Q.backgroundColor}}),
role:function(){return v().accessibilityText?"img":void 0},
"aria-label":function(){return v().accessibilityText}},_.F(_.z,{cond:function(){return v().animation},
then:function(Q){return _.F(_.ne,{className:"yt-badge-shape__icon",data:Q,animationName:function(){return Q().animationConfig.name||""}})}}),_.F(_.z,{cond:function(){var Q;
return h()&&!((Q=v())==null?0:Q.animation)},
then:function(){return _.F("div",{class:"yt-badge-shape__icon"},_.F(qlf,{data:function(){return h()}}))}}),_.F("div",{class:_.S3("yt-badge-shape__text",(a["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(v().numBadgesInRow||0)>1},a))},function(){var Q;
return(Q=v())==null?void 0:Q.text}))},"va");
_.fn.idomCompat=!0;_.zh(_.fn,"badge-shape",{props:{data:_.gj}});var Cn=function(){var D=_.c.apply(this,arguments)||this;D.systemIcons=_.g("kevlar_system_icons");D.animated=_.g("animated_live_badge_icon");D.useBadgeShape=_.g("web_badge_shape_defrag");return D};
_.J(Cn,_.c);_.V=Cn.prototype;_.V.addTooltips=function(){for(var D=_.ZW(this.hostElement).querySelectorAll(".badge"),v=0,h;h=D[v++];){var a=this.repeatElement.itemForElement(h);h=_.ZW(h);h.lastChild&&h.lastChild.is==="tp-yt-paper-tooltip"&&h.removeChild(h.lastChild);if(a=a.metadataBadgeRenderer&&a.metadataBadgeRenderer.tooltip){var Q=_.Nv("tp-yt-paper-tooltip");(0,_.kU)(Q).textContent=a;Q.setAttribute("position","top");Q.setAttribute("aria-hidden","true");h.appendChild(Q)}}};
_.V.badgesChanged=function(){var D=this;_.ol().parkOrScheduleJob(function(){D.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.V.standaloneRoundedBadgeChanged=function(){var D=this.useRoundedBadge?this.useRoundedBadge:void 0;D&&(this.useRoundedBadge=D)};
_.V.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.computeStyle=function(D){_.g("enable_html5_teal_ad_badge")&&D==="BADGE_STYLE_TYPE_AD"&&(D="badge-style-type-ad-alternate");_.g("kevlar_ytb_live_badges")&&D==="BADGE_STYLE_TYPE_LIVE_NOW"&&(D="badge-style-type-live-now-alternate");return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeRole=function(D){return this.computeAriaLabel(D)?"img":"status"};
_.V.computeAriaLabel=function(D){var v;return(D==null?void 0:(v=D.accessibilityData)==null?void 0:v.label)||(D==null?void 0:D.label)};
_.V.computeBadgeShape=function(D){if(D){var v,h;var a=VP2(D.style);var Q=PGq(D.style),G=D.label,x=((v=D.accessibilityData)==null?void 0:v.label)||D.label;a:switch(D.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":v=!0;break a;default:v=!1}var f=(h=D.icon)==null?void 0:h.iconType;a:switch(D.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":D=!0;break a;default:D=!1}a={type:a,brNzRatingBadgeType:Q,text:G,accessibilityText:x,
isOverlay:v,icon:f!=="PREMIUM"?f:void 0,modern:_.g("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:D}}else a={};return a};
_.V.updateComputedBadges=function(D,v,h){var a=this;(v=v?[v]:h?[h]:void 0)?this.computedBadges=v:this.computedBadges=D==null?void 0:D.filter(function(Q){var G;if((G=Q.metadataBadgeRenderer)==null?0:G.groups){G=!1;Q=_.P(Q.metadataBadgeRenderer.groups);for(var x=Q.next();!x.done;x=Q.next()){x=x.value;var f=void 0;G=G||((f=a.hiddenBadgeGroups)==null?void 0:f.includes(x))}return!G}return!0})};
_.V.useFilledIcons=function(D){return _.g("kevlar_system_icons")&&(D==="AUDIO_BADGE"||D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE"||D==="SPONSORSHIP_STAR"||D==="PERSON_RADAR_FILLED"||D==="PERSON_RADAR")};
_.V.computeBadgeShapeStyle=function(D){return this.useBadgeShape?D==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||D==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.V.computeIcon=function(D){var v,h;D=D==null?void 0:(v=D.metadataBadgeRenderer)==null?void 0:(h=v.icon)==null?void 0:h.iconType;if(D!=="PREMIUM"&&D)return _.SQ(D)};
_.V.computeStandaloneBadge=function(D){var v;D=D==null?void 0:(v=D.icon)==null?void 0:v.iconType;return D==="PREMIUM_STANDALONE"||D==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Cn.prototype.hiddenBadgeGroupsChanged=Cn.prototype.hiddenBadgeGroupsChanged;Cn.prototype.standaloneBadgeChanged=Cn.prototype.standaloneBadgeChanged;Cn.prototype.standaloneRoundedBadgeChanged=Cn.prototype.standaloneRoundedBadgeChanged;Cn.prototype.badgesChanged=Cn.prototype.badgesChanged;_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"hidden",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Cn.prototype,"componentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Array)],Cn.prototype,"badges",void 0);_.e([_.Y(),_.n("design:type",Object)],Cn.prototype,"topStandaloneBadge",void 0);_.e([_.Y(),_.n("design:type",Object)],Cn.prototype,"bottomStandaloneBadge",void 0);_.e([_.Y(),_.n("design:type",Object)],Cn.prototype,"computedBadges",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"mediumFontAdBadge",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"useRoundedBadge",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"largeFontAdBadge",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"overlayAd",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"overlayPremium",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"noDotAdBadge",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"collectionTruncate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"isThumbnailBadge",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cn.prototype,"wrapBadges",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Number)],Cn.prototype,"numBadgesInRow",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Cn.prototype,"systemIcons",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Cn.prototype,"animated",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Cn.prototype,"useBadgeShape",void 0);_.e([_.Y({value:[]}),_.n("design:type",Array)],Cn.prototype,"hiddenBadgeGroups",void 0);_.e([_.Br("#repeat"),_.n("design:type",nZ)],Cn.prototype,"repeatElement",void 0);_.e([_.qi("badges"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Cn.prototype,"badgesChanged",null);
_.e([_.qi("useRoundedBadge"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Cn.prototype,"standaloneRoundedBadgeChanged",null);_.e([_.qi("topStandaloneBadge","bottomStandaloneBadge"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Cn.prototype,"standaloneBadgeChanged",null);_.e([_.qi("hiddenBadgeGroups"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Cn.prototype,"hiddenBadgeGroupsChanged",null);
_.e([_.m({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Cn);
var UW9=_.Zp()(Cn,"ytd-badge-supported-renderer",function(){if(zWJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);zWJ=D}D=zWJ;return D},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.E_("kevlar_poly_si_batch_j053")?1:2});var o8=function(){var D=_.c.apply(this,arguments)||this;D.iconType="STAR";D.standardizeIconSize=_.g("kevlar_system_icons");D.mediaHoverOverlayInitialVisibility=_.g("enable_top_landscape_image_button_command_web");D.noBottomMargin=!1;D.thumbnailObjectFit="CONTAIN";D.thumbnailFitHeight=!0;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.J(o8,_.c);_.V=o8.prototype;
_.V.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"}}}};
_.V.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",o8.JSC$14665_DEFAULT_CLICK_LOCATION_BEHAVIOR,o8.JSC$14665_CLICK_LOCATION_ID_MAP))};
_.V.onTap=function(D){if(!_.g("use_on_click_for_desktop_display_ad"))this.onTapOrClick(D)};
_.V.onClick=function(D){if(_.g("use_on_click_for_desktop_display_ad"))this.onTapOrClick(D)};
_.V.onTapOrClick=function(D){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,D,!1)};
_.V.updateMediaBackgroundImage=function(){var D=this.get("data.image.thumbnail.thumbnails");D&&(D=_.UA(D,0))&&_.SB(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+D+")"})};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var D=0;D<this.data.impressionEndpoints.length;D++){var v=this.data.impressionEndpoints[D];v.clickTrackingParams&&delete v.clickTrackingParams;_.xd().resolve(_.fx).resolveCommand(v,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var h;((h=this.data)==null?0:h.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.V.handleMuteAd=function(){};
_.V.attached=function(){var D=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.GT.Object.defineProperties(o8.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.titleText)return"";var v;return _.p1("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((v=this.data)==null?void 0:v.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
o8.prototype.onClick=o8.prototype.onClick;o8.prototype.onTap=o8.prototype.onTap;o8.prototype.dataChanged=o8.prototype.dataChanged;
o8.JSC$14665_CLICK_LOCATION_ID_MAP=_.g("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"]]);
o8.JSC$14665_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.g("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"}];_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.CC),_.n("design:type",Object)],o8.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],o8.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],o8.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.l(xi),_.n("design:type",Object)],o8.prototype,"ytdActiveViewBehavior",void 0);_.e([_.l([_.ed.YtActionHandlerBehavior]),_.n("design:type",Object)],o8.prototype,"actionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],o8.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],o8.prototype,"clickCommand",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],o8.prototype,"miniMode",void 0);_.e([_.Y(),_.n("design:type",String)],o8.prototype,"iconType",void 0);_.e([_.N("data.titleText"),_.n("design:type",String),_.n("design:paramtypes",[])],o8.prototype,"titleAriaLabel",null);
_.e([_.N("data.rating"),_.n("design:type",Object),_.n("design:paramtypes",[])],o8.prototype,"getRating",null);_.e([_.N("data.price"),_.n("design:type",Object),_.n("design:paramtypes",[])],o8.prototype,"getPrice",null);_.e([_.N("data.thirdLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],o8.prototype,"getThirdLine",null);_.e([_.N("data.fourthLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],o8.prototype,"getFourthLine",null);
_.e([_.N("data.fifthLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],o8.prototype,"getFifthLine",null);_.e([_.N("getRating"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"computeRatingHidden",null);_.e([_.N("getPrice"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"computePriceHidden",null);_.e([_.N("getThirdLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"computeThirdLineHidden",null);
_.e([_.N("getFourthLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"computeFourthLineHidden",null);_.e([_.N("getFifthLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"computeFifthLineHidden",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.energyIcon"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"hasEnergyIcon",null);
_.e([_.N("computePriceHidden","computeRatingHidden"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"computeSecondaryTextHidden",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],o8.prototype,"standardizeIconSize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],o8.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],o8.prototype,"noBottomMargin",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.layout"),_.n("design:type",String),_.n("design:paramtypes",[])],o8.prototype,"layout",null);_.e([_.N("data.layout"),_.n("design:type",Object),_.n("design:paramtypes",[])],o8.prototype,"mediaThumbnailWidth",null);_.e([_.N("layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],o8.prototype,"useRoundedBadge",null);_.e([_.Y(),_.n("design:type",String)],o8.prototype,"thumbnailObjectFit",void 0);
_.e([_.Y(),_.n("design:type",Object)],o8.prototype,"thumbnailFitHeight",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],o8.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],o8.prototype,"onTap",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],o8.prototype,"onClick",null);
_.e([_.m({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],o8);
_.w(o8,"ytd-display-ad-renderer",function(){if(Fwt!==void 0)return Fwt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Fwt=D},{mode:1});var Lwm;var Ztm;var EWm;var MP8=new Map;var I8$=!1;var FO=function(){var D=_.c.apply(this,arguments)||this;D.DEFAULT_TOOLTIP_OFFSET="10";D.TOOLTIP_OFFSET_NO_BANNER="-8";D.badges=null;D.noEndpoints=!1;D.wrapText=!1;D.forceVerified=!1;D.tooltipPosition="top";D.compactStyle=!1;D.height=0;D.lineHeight=0;return D};
_.J(FO,_.c);_.V=FO.prototype;_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.V.attached=function(){var D=this;this.observer=new MutationObserver(function(v,h){D.handleResized();h.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.V.detached=function(){this.observer&&this.observer.disconnect()};
_.V.logTooltipEvent=function(){_.g("kevlar_wiz_tooltip_event_killswitch")||I8$||(_.f8o("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),I8$=!0)};
_.V.handleWindowResized=function(){this.handleResized()};
_.V.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")))};
_.V.onHeightChanged=function(){if(this.verified){var D=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.eA("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=D:this.textContainerEl.style.marginRight=D}};
_.V.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.eA("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.V.handleResized=function(){var D=this;this.verified&&_.HK.addLowPriorityJob(function(){D.fitBackgroundToText();var v=getComputedStyle(D.hostElement).lineHeight;v&&(v=v.match(/\d+/))&&v.length&&(D.lineHeight=Number(v[0]));D.height=D.lineHeight&&!D.wrapText?D.lineHeight:D.textEl.offsetHeight})};
_.V.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var D=document.createRange(),v=_.ZW(this.textEl).children;v.length>0?D.selectNodeContents(v[0]):D.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(D.getBoundingClientRect().width)+"px"}};
_.V.computeChannelBadgeStyle=function(D){var v;if((D==null?0:(v=D.runs)==null?0:v.length)&&D.runs[0].textColor)return"--ytd-badge-icon-color:"+_.rT(D.runs[0].textColor)+";"};
_.GT.Object.defineProperties(FO.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"?_.aX(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var D=this.get("badges.0.metadataBadgeRenderer.tooltip");if(D)return D}return _.$V(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
FO.prototype.onLineHeightChanged=FO.prototype.onLineHeightChanged;FO.prototype.onHeightChanged=FO.prototype.onHeightChanged;FO.prototype.onChannelNameChanged=FO.prototype.onChannelNameChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],FO.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"badges",void 0);_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"channelName",void 0);
_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"noEndpoints",void 0);_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"wrapText",void 0);_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"forceVerified",void 0);_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"tooltipPosition",void 0);_.e([_.Y(),_.n("design:type",String)],FO.prototype,"tooltip",void 0);_.e([_.Y(),_.n("design:type",Boolean)],FO.prototype,"hasChannelArt",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],FO.prototype,"compactStyle",void 0);_.e([_.Br("#text-container"),_.n("design:type",HTMLElement)],FO.prototype,"textContainerEl",void 0);_.e([_.Br("#text"),_.n("design:type",Object)],FO.prototype,"textEl",void 0);_.e([_.Br("#verified-tooltip"),_.n("design:type",HTMLElement)],FO.prototype,"verifiedTooltip",void 0);_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"height",void 0);
_.e([_.Y(),_.n("design:type",Object)],FO.prototype,"lineHeight",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("badges","forceVerified"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],FO.prototype,"verified",null);_.e([_.N("badges","verified"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],FO.prototype,"hideBadges",null);_.e([_.N("channelName"),_.n("design:type",Object),_.n("design:paramtypes",[])],FO.prototype,"formattedName",null);
_.e([_.N("badges","verified","formattedName"),_.n("design:type",String),_.n("design:paramtypes",[])],FO.prototype,"tooltipText",null);_.e([_.N("hasChannelArt"),_.n("design:type",String),_.n("design:paramtypes",[])],FO.prototype,"tooltipOffset",null);_.e([_.Ni("channelName"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],FO.prototype,"onChannelNameChanged",null);
_.e([_.Ni("height"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],FO.prototype,"onHeightChanged",null);_.e([_.Ni("lineHeight","height"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],FO.prototype,"onLineHeightChanged",null);_.e([_.m({is:"ytd-channel-name",disableElementRegistration:!0})],FO);
_.w(FO,"ytd-channel-name",function(){if(EWm!==void 0)return EWm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return EWm=D},{mode:_.E_("kevlar_poly_si_batch_j036")?1:2});var zn=function(){var D=_.c.apply(this,arguments)||this;D.standardizeIconSize=_.g("kevlar_system_icons");return D};
_.J(zn,_.c);zn.prototype.basicPaletteChanged=function(){var D;(D=this.data.color)!=null&&D.basicColorPaletteData&&_.sA(this.hostElement,this.data.color.basicColorPaletteData)};
zn.prototype.useFilledIcons=function(D){return _.g("kevlar_system_icons")&&(D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE")};
_.GT.Object.defineProperties(zn.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return this.data.authorCreator||((D=this.data)==null?void 0:(v=D.color)==null?void 0:(h=v.basicColorPaletteData)==null?void 0:h.backgroundColor)}}});
zn.prototype.basicPaletteChanged=zn.prototype.basicPaletteChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zn.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],zn.prototype,"standardizeIconSize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.authorUnifiedVerified"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"verified",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"creator",null);_.e([_.Ni("data.color.basicColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"basicPaletteChanged",null);_.e([_.m({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],zn);
_.w(zn,"ytd-author-comment-badge-renderer",function(){if(Ztm!==void 0)return Ztm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Ztm=D},{mode:1});var gW4;var Ut=function(){return _.c.apply(this,arguments)||this};
_.J(Ut,_.c);Ut.prototype.computeThumbnailWidth=function(D){if(D==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ut.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],Ut.prototype,"icon",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Ut.prototype,"surface",void 0);
_.e([_.Y({reflectToAttribute:!0,value:_.g("enable_shrink_image_size_on_web_posts_singleton")}),_.n("design:type",Boolean)],Ut.prototype,"searchSxsUx",void 0);_.e([_.Y({reflectToAttribute:!0,value:_.g("enable_community_page_on_desktop")}),_.n("design:type",Boolean)],Ut.prototype,"useSmallerPostImageAttachments",void 0);_.e([_.m({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Ut);
_.w(Ut,"ytd-backstage-image-renderer",function(){if(gW4!==void 0)return gW4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return gW4=D},{mode:1});var k$y;var Ln=function(){var D=_.c.apply(this,arguments)||this;D.isLoading=!1;D.selectedItemIndex=-1;return D};
_.J(Ln,_.c);_.V=Ln.prototype;_.V.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.V.computeIsImagePoll=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.V.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.V.thumbnailSrc=function(D){var v,h,a,Q;return(D==null?0:(v=D.thumbnails)==null?0:(h=v[0])==null?0:h.url)?_.nz((a=D.thumbnails)==null?void 0:(Q=a[0])==null?void 0:Q.url):void 0};
_.V.progressWidth=function(D){return"width:"+(D?D*100:0)+"%;"};
_.V.textAreaWidth=function(D){return this.isImagePoll?null:"width:"+(D?D*100:0)+"%;"};
_.V.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.V.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var D=this.data.choices,v=0;v<D.length;v++)if(D[v].selected){this.selectedItemIndex=v;break}};
_.V.onPopupClosed=function(D,v){D=Number(this.pollVotes.selected);v.confirmed&&(this.selectChoice(D,!1),_.zU(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.V.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.V.onYtCommentPollRevert=function(D,v){v&&(this.selectChoice(v.selectedChoiceIndex,!0),this.set("data.totalVotes",v.totalVotes))};
_.V.onYtServiceRequestSent=function(D,v){if(v.actions)for(D=0;D<v.actions.length;D++){var h=v.actions[D];_.k(h,nr)&&this.set("data.totalVotes",_.k(h,nr).totalVotes)}};
_.V.onYtServiceRequestCompleted=function(D){var v=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(v==="FEEDBACK_DESELECT"||v==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.F1(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.V.getEndpoint=function(D,v){return v===D?this.data.choices[v].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.V.selectChoice=function(D,v){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var h=0;h<this.data.choices.length;h++){var a;if(D===this.selectedItemIndex){var Q=!1;var G=a=null}else a=(Q=h===D)?this.data.choices[h].voteRatioIfSelected:this.data.choices[h].voteRatioIfNotSelected,G=Q?this.data.choices[h].votePercentageIfSelected:this.data.choices[h].votePercentageIfNotSelected;this.set("data.choices."+h+".voteRatio",a);
this.set("data.choices."+h+".votePercentage",G);this.set("data.choices."+h+".selected",Q)}v||(this.isLoading=!0,(v=this.getEndpoint(D,this.selectedItemIndex))&&_.xd().resolve(_.fx).resolveCommand(v,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.GT.Object.defineProperties(Ln.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Ln.prototype.onYtServiceRequestCompleted=Ln.prototype.onYtServiceRequestCompleted;Ln.prototype.onYtServiceRequestSent=Ln.prototype.onYtServiceRequestSent;Ln.prototype.onYtCommentPollRevert=Ln.prototype.onYtCommentPollRevert;Ln.prototype.onPopupClosed=Ln.prototype.onPopupClosed;Ln.prototype.dataChanged=Ln.prototype.dataChanged;_.e([_.l(_.od),_.n("design:type",Object)],Ln.prototype,"paperItemBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],Ln.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ln.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Ln.prototype,"isLoading",void 0);_.e([_.Y({computed:"computeIsChannelOwner(data.choices)"}),_.n("design:type",Boolean)],Ln.prototype,"isChannelOwner",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.n("design:type",Boolean)],Ln.prototype,"isImagePoll",void 0);_.e([_.Y({computed:"computeIsTotalVotesDisabled(data)"}),_.n("design:type",Boolean)],Ln.prototype,"isTotalVotesDisabled",void 0);_.e([_.Y(),_.n("design:type",Object)],Ln.prototype,"previousPollInfo",void 0);_.e([_.Y(),_.n("design:type",Object)],Ln.prototype,"selectedItemIndex",void 0);_.e([_.Br("#poll-votes"),_.n("design:type",Object)],Ln.prototype,"pollVotes",void 0);
_.e([_.N("isChannelOwner"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ln.prototype,"endpointStyle",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ln.prototype,"dataChanged",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Ln.prototype,"onPopupClosed",null);
_.e([_.lc("yt-comment-poll-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Ln.prototype,"onYtCommentPollRevert",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Ln.prototype,"onYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ln.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Ln);
_.w(Ln,"ytd-backstage-poll-renderer",function(){if(k$y!==void 0)return k$y;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" 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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return k$y=D},{mode:2});var Ssm;var JC9={autoplay:!1,loop:!1},py4={simpleText:""},Ze=function(){var D=_.c.apply(this,arguments)||this;D.isLoading=!1;D.usesPanelLockup=!1;D.selectedItemIndex=-1;D.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},JC9,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});D.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},JC9,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});D.correctnessAnimationProps=[];D.correctnessAnimationRefs=[];return D};
_.J(Ze,_.c);_.V=Ze.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.V.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.V.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.V.computeIsImageQuiz=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.V.onExplanationChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var D=this.data.choices;if(D){this.maybeInitializeQuizLotties(D);for(var v=0;v<D.length;v++)if(D[v].isSelected||this.isChannelOwner&&D[v].isCorrect){this.selectedItemIndex=v;return}this.selectedItemIndex=-1}}};
_.V.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var D=this.selectedItemIndex,v=Number(this.quizVotes.selected);this.selectChoice(v);this.sendVoteAction(v,D);this.quizVotes.selected=-1;var h;D=!((h=this.data)==null?0:h.enableAnimation);this.maybePlayAnswerAnimations(D)}};
_.V.onYtCommentPollRevert=function(D,v){v&&(this.selectChoice(v.selectedChoiceIndex),this.set("data.totalVotes",v.totalVotes))};
_.V.onYtServiceRequestSent=function(D,v){if(v.actions)for(D=_.P(v.actions),v=D.next();!v.done;v=D.next())(v=_.k(v.value,nr))&&this.set("data.totalVotes",v.totalVotes)};
_.V.onYtServiceRequestCompleted=function(D){var v=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(v==="FEEDBACK_DESELECT"||v==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.F1(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.V.getAnimationPropsForChoiceIndex=function(D,v){return v[D]};
_.V.maybePlayAnswerAnimations=function(D){D=D===void 0?!1:D;var v;if((v=this.data)!=null&&v.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){v=_.P(this.correctnessAnimationRefs);for(var h=v.next();!h.done;h=v.next()){var a=void 0,Q=void 0;(a=h.value)==null||(Q=a.lottieEl)==null||Q.stop()}if(!(this.selectedItemIndex<0)){v=0;D&&(v=this.isCorrect?37:25);var G,x;(G=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(x=G.lottieEl)==null||x.goToAndPlay(D?v:0,!0);if(!(this.isCorrect||
(G=this.data.choices.findIndex(function(L){return L.isCorrect}),G<0))){var f,C;
(C=(f=this.correctnessAnimationRefs[G])==null?void 0:f.lottieEl)==null||C.goToAndPlay(37,!0);var U;f=(U=this.fadeContainers)==null?void 0:U.item(G);!D&&f&&this.fadeIn(f)}}}};
_.V.thumbnailSrc=function(D){var v,h,a,Q;return(D==null?0:(v=D.thumbnails)==null?0:(h=v[0])==null?0:h.url)?_.nz((a=D.thumbnails)==null?void 0:(Q=a[0])==null?void 0:Q.url):void 0};
_.V.a11yVotedText=function(D,v){var h,a,Q=((h=this.data)==null?void 0:(a=h.correctVotedText)==null?void 0:a.simpleText)||"",G,x;h=((G=this.data)==null?void 0:(x=G.votedText)==null?void 0:x.simpleText)||"";if(!v)return"";var f,C;if((f=this.data)==null?0:(C=f.choices)==null?0:C[D].isCorrect)return Q;var U,L;return((U=this.data)==null?0:(L=U.choices)==null?0:L[D].isSelected)?h:""};
_.V.getEndpoint=function(D,v){return v===D?this.data.choices[D].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.V.sendVoteAction=function(D,v){if(D=this.getEndpoint(D,v))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(D)};
_.V.selectChoice=function(D){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var v=0;v<this.data.choices.length;v++)this.set("data.choices."+v+".isSelected",D===this.selectedItemIndex?!1:v===D);this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.V.maybeInitializeQuizLotties=function(D){var v=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=D.map(function(h){return{animationConfig:h.isCorrect?v.baseCorrectLottiePlayerAnimationConfig:v.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){v.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(h){return h.animationRef||{}})};
_.V.fadeIn=function(D){D.classList.add("fade-in");_.I3(_.HK,function(){D.classList.remove("fade-in")},900)};
_.GT.Object.defineProperties(Ze.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.$V(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.choices)==null?void 0:v.some(function(h){return h.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?py4:this.data.choices[this.selectedItemIndex].explanation||py4}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Ze.prototype.onYtServiceRequestCompleted=Ze.prototype.onYtServiceRequestCompleted;Ze.prototype.onYtServiceRequestSent=Ze.prototype.onYtServiceRequestSent;Ze.prototype.onYtCommentPollRevert=Ze.prototype.onYtCommentPollRevert;Ze.prototype.dataChanged=Ze.prototype.dataChanged;Ze.prototype.onExplanationChanged=Ze.prototype.onExplanationChanged;_.e([_.l(_.od),_.n("design:type",Object)],Ze.prototype,"paperItemBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ze.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.lt.YtTaskEmitterBehavior),_.n("design:type",Object)],Ze.prototype,"ytTaskEmitterBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],Ze.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ze.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ze.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Object)],Ze.prototype,"usesPanelLockup",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.n("design:type",Boolean)],Ze.prototype,"isChannelOwner",void 0);_.e([_.Y({computed:"computeIsTotalVotesDisabled(data)"}),_.n("design:type",Boolean)],Ze.prototype,"isTotalVotesDisabled",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.n("design:type",Boolean)],Ze.prototype,"isImageQuiz",void 0);_.e([_.Y(),_.n("design:type",Object)],Ze.prototype,"previousQuizInfo",void 0);_.e([_.Y(),_.n("design:type",Object)],Ze.prototype,"selectedItemIndex",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data","usesPanelLockup"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ze.prototype,"shouldUseModernUi",null);
_.e([_.cr(".fade-container"),_.n("design:type",Object)],Ze.prototype,"fadeContainers",void 0);_.e([_.Y(),_.n("design:type",Array)],Ze.prototype,"correctnessAnimationProps",void 0);_.e([_.N("explanation","showCorrectAnswer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ze.prototype,"showExplanation",null);_.e([_.N("isChannelOwner","isAttempted"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ze.prototype,"showCorrectAnswer",null);
_.e([_.N("isChannelOwner","isAttempted","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ze.prototype,"isQuizAnsweringDisabled",null);_.e([_.N("isQuizAnsweringDisabled"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ze.prototype,"endpointStyle",null);_.e([_.N("data","selectedItemIndex"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ze.prototype,"isAttempted",null);
_.e([_.N("data","selectedItemIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ze.prototype,"explanation",null);_.e([_.N("data","selectedItemIndex"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ze.prototype,"isCorrect",null);_.e([_.Br("ytd-expander"),_.n("design:type",Object)],Ze.prototype,"expander",void 0);_.e([_.Br("#quiz-votes"),_.n("design:type",Object)],Ze.prototype,"quizVotes",void 0);
_.e([_.Ni("explanation"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ze.prototype,"onExplanationChanged",null);_.e([_.Ni("data","isChannelOwner"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ze.prototype,"dataChanged",null);_.e([_.lc("yt-comment-quiz-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Ze.prototype,"onYtCommentPollRevert",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Ze.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ze.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Ze);
_.w(Ze,"ytd-backstage-quiz-renderer",function(){if(Ssm!==void 0)return Ssm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Ssm=D},{mode:1});var l84;var Et=function(){return _.c.apply(this,arguments)||this};
_.J(Et,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Et.prototype,"data",void 0);_.e([_.m({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Et);
_.w(Et,"ytd-post-uploaded-video-renderer",function(){if(l84!==void 0)return l84;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return l84=D},{mode:1});var NgF;var I8=function(){return _.c.apply(this,arguments)||this};
_.J(I8,_.c);I8.prototype.useFilledIcons=function(D){return D==="SPONSORSHIP_STAR"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],I8.prototype,"data",void 0);_.e([_.m({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],I8);
var YsM=_.Zp()(I8,"ytd-sponsors-only-badge-renderer",function(){if(NgF===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);NgF=D}D=NgF;return D},{allowedProps:["data"],
mode:1});var BgJ;var gu=function(){return _.c.apply(this,arguments)||this};
_.J(gu,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],gu.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gu.prototype,"data",void 0);_.e([_.m({is:"ytd-child-video-renderer",disableElementRegistration:!0})],gu);
_.w(gu,"ytd-child-video-renderer",function(){if(BgJ!==void 0)return BgJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return BgJ=D},{mode:1});var cCR;var Xyt;var k3=function(){var D=_.c.apply(this,arguments)||this;D.size=0;D.enableWebModernCollectionsV2=_.g("web_modern_collections_v2");D.fallbackImageSize={height:void 0,width:9999};D.webModernCollections=!1;return D};
_.J(k3,_.c);_.V=k3.prototype;_.V.computeBlurredImageSize=function(D){return D?{height:D*2,width:D*2}:this.fallbackImageSize};
_.V.computeImageSize=function(D){return D?{height:D,width:D}:this.fallbackImageSize};
_.V.computeObjectFit=function(D){return D?"FILL":"CONTAIN"};
_.V.computePreserve=function(D){return D?!0:!1};
_.V.setBackground=function(){var D,v;_.g("web_modern_collections_v2")&&((D=this.data)==null?0:(v=D.thumbnail)==null?0:v.sampledThumbnailColor)&&(D=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+D.red+","+D.green+","+D.blue+",1)")};
k3.prototype.setBackground=k3.prototype.setBackground;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],k3.prototype,"watchFeedThumbnail",void 0);_.e([_.Y(),_.n("design:type",Object)],k3.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],k3.prototype,"size",void 0);
_.e([_.Y({computed:"computeBlurredImageSize(size)"}),_.n("design:type",Object)],k3.prototype,"blurredImageSize",void 0);_.e([_.Y({computed:"computeImageSize(size)"}),_.n("design:type",Object)],k3.prototype,"imageSize",void 0);_.e([_.Y({computed:"computePreserve(size)"}),_.n("design:type",String)],k3.prototype,"preserve",void 0);_.e([_.Y({computed:"computeObjectFit(size)"}),_.n("design:type",String)],k3.prototype,"objectFit",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],k3.prototype,"enableWebModernCollectionsV2",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],k3.prototype,"webModernCollections",void 0);_.e([_.Ni("data.thumbnail.sampledThumbnailColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],k3.prototype,"setBackground",null);_.e([_.m({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],k3);
_.w(k3,"ytd-playlist-custom-thumbnail-renderer",function(){if(Xyt!==void 0)return Xyt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Xyt=D},{mode:1});var ACt;var SW=function(){return _.c.apply(this,arguments)||this};
_.J(SW,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],SW.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],SW.prototype,"width",void 0);_.e([_.m({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],SW);
_.w(SW,"ytd-playlist-video-thumbnail-renderer",function(){if(ACt!==void 0)return ACt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ACt=D},{mode:1});var qst;var Jq=function(){return _.c.apply(this,arguments)||this};
_.J(Jq,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Jq.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],Jq.prototype,"width",void 0);_.e([_.m({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Jq);
_.w(Jq,"ytd-show-custom-thumbnail-renderer",function(){if(qst!==void 0)return qst;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return qst=D},{mode:1});var btR;var pn=function(){return _.c.apply(this,arguments)||this};
_.J(pn,_.c);pn.prototype.useFilledIcons=function(D){return D==="MUSIC"||D==="COURSE"};
pn.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=DW(this.overlayColor,"0.8");else if(this.overlayColor){var D=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+D.red+","+D.green+","+D.blue+",0.8)"}};
_.GT.Object.defineProperties(pn.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)}}});
pn.prototype.overlayColorChanged=pn.prototype.overlayColorChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pn.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],pn.prototype,"overlayColor",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.icon","data.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],pn.prototype,"overlayStyle",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.icon","data.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],pn.prototype,"overlayTextStyle",null);_.e([_.Ni("overlayColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pn.prototype,"overlayColorChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],pn);
_.w(pn,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(btR!==void 0)return btR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return btR=D},{mode:1});var dWM;var l6=function(){var D=_.c.apply(this,arguments)||this;D.active=!1;return D};
_.J(l6,_.c);l6.prototype.computeIsSpinnerHidden=function(D){return(D==null?void 0:D.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
l6.prototype.computeOverlayIcon=function(D){return(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],l6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],l6.prototype,"active",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],l6);
_.w(l6,"ytd-thumbnail-overlay-downloading-renderer",function(){if(dWM!==void 0)return dWM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return dWM=D},{mode:1});var jxR;var N4=function(){return _.c.apply(this,arguments)||this};
_.J(N4,_.c);_.GT.Object.defineProperties(N4.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],N4.prototype,"data",void 0);_.e([_.N("data.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],N4.prototype,"text",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],N4);
_.w(N4,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(jxR!==void 0)return jxR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return jxR=D},{mode:1});var sxJ,mW$=function(){if(sxJ!==void 0)return sxJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return sxJ=D};var Y3=function(){return _.c.apply(this,arguments)||this};
_.J(Y3,_.c);_.GT.Object.defineProperties(Y3,{template:{configurable:!0,enumerable:!0,get:function(){return mW$()}}});
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Y3.prototype,"animateEqualizer",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Y3);_.Zp()(Y3,"ytd-thumbnail-overlay-equalizer",function(){return mW$()},{allowedProps:["animateEqualizer"],
mode:1});var Htt;var BM=function(){var D=_.c.apply(this,arguments)||this;D.nowPlayingBadge=_.g("web_now_playing_badge");D.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return D};
_.J(BM,_.c);BM.prototype.activeChanged=function(){var D=this;_.g("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.$R(this,function(){_.F1(D.hostElement,"yt-playlist-lockup-now-playing-active",D)})};
BM.prototype.onMiniplayerPlayStateChanged=function(D){var v,h=(v=_.k(_.eh().currentEndpoint,_.hP))==null?void 0:v.videoId;this.isVideoPlaying=D&&(_.g("web_limit_now_playing_animation_killswitch")||this.videoId===h)};
BM.prototype.activeChanged=BM.prototype.activeChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],BM.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],BM.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],BM.prototype,"isVideoPlaying",void 0);_.e([_.Y(),_.n("design:type",String)],BM.prototype,"videoId",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],BM.prototype,"equalizerOnly",void 0);_.e([_.Y(),_.n("design:type",Boolean)],BM.prototype,"isActive",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],BM.prototype,"nowPlayingBadge",void 0);_.e([_.Ni("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BM.prototype,"activeChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],BM);
_.w(BM,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Htt!==void 0)return Htt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Htt=D},{mode:1});var yC9;var cM=function(){return _.c.apply(this,arguments)||this};
_.J(cM,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cM.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],cM);
_.w(cM,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(yC9!==void 0)return yC9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yC9=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var wy9;var XO=function(){return _.c.apply(this,arguments)||this};
_.J(XO,_.c);XO.prototype.onDurationChanged=function(){var D,v;_.ZW(this.hostElement).querySelector("#progress").style.width=((v=(D=this.data)==null?void 0:D.percentDurationWatched)!=null?v:0)+"%"};
XO.prototype.onDurationChanged=XO.prototype.onDurationChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],XO.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XO.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],XO.prototype,"isLive",void 0);_.e([_.Ni("data.percentDurationWatched"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XO.prototype,"onDurationChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],XO);
_.w(XO,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(wy9!==void 0)return wy9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wy9=D},{mode:1});var eWF;var Aq=function(){var D=_.c.apply(this,arguments)||this;D.bottomPanel=!1;D.richGridOverlay=!1;D.watchFeedOverlay=!1;D.isCompact=!1;return D};
_.J(Aq,_.c);Aq.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.GT.Object.defineProperties(Aq.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.icon)==null?void 0:v.iconType)==="PLAY_ALL"&&_.g("kevlar_system_icons")}}});
Aq.prototype.widthChanged=Aq.prototype.widthChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Aq.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],Aq.prototype,"width",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Aq.prototype,"bottomPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Aq.prototype,"richGridOverlay",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Aq.prototype,"watchFeedOverlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Aq.prototype,"isCompact",void 0);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Aq.prototype,"isIconFilled",null);_.e([_.Ni("width","watchFeedOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Aq.prototype,"widthChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Aq);
_.w(Aq,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(eWF!==void 0)return eWF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return eWF=D},{mode:1});var nWp;var Ot1=["CLIP","SHORTS"],q4=function(){var D=_.c.apply(this,arguments)||this;D.animated=_.g("animated_live_badge_icon");D.hasIcon=!1;D.updateTimerIntervalId=0;D.timeSinceLive=0;return D};
_.J(q4,_.c);_.V=q4.prototype;_.V.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.V.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.V.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.V.hasIconOrText=function(){var D,v;return!!(((D=this.data)==null?0:D.icon)||((v=this.data)==null?0:v.text))};
_.V.initializeLiveBadgeTimer=function(){var D=this,v,h=(v=this.liveBadgeData)==null?void 0:v.startTimestampSec;if(h&&this.canShowLiveBadgeTimer()){var a;v=Number((a=this.liveBadgeData)==null?void 0:a.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(h);this.updateTimerIntervalId=_.Ez(function(){D.canShowLiveBadgeTimer()?D.timeSinceLive++:(D.timeSinceLive=0,window.clearInterval(D.updateTimerIntervalId))},v)}else this.timeSinceLive=0};
_.V.canShowLiveBadgeTimer=function(){var D=Date.now(),v,h;return D<(Number((v=this.liveBadgeData)==null?void 0:v.endTimestampSec)-1)*1E3&&D>Number((h=this.liveBadgeData)==null?void 0:h.startTimestampSec)*1E3};
_.GT.Object.defineProperties(q4.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data;var v=this.timeSinceLive;var h,a,Q,G;a:{var x=D.style;if(x===void 0)x=17;else switch(x){case "LIVE":x=18;break a;default:x=17}}v={type:x,text:v?eF2({seconds:v}):_.$V(D.text),accessibilityText:(h=D.text)==null?void 0:(a=h.accessibility)==null?void 0:(Q=a.accessibilityData)==null?void 0:Q.label,icon:(G=D.icon)==null?void 0:G.iconType}}else v={};return v}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return Ot1.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
q4.prototype.initializeLiveBadgeTimer=q4.prototype.initializeLiveBadgeTimer;q4.prototype.dataChanged=q4.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],q4.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],q4.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],q4.prototype,"icon",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],q4.prototype,"animated",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.n("design:type",Boolean)],q4.prototype,"hideTimeStatus",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],q4.prototype,"hasIcon",void 0);_.e([_.Y(),_.n("design:type",Object)],q4.prototype,"timeSinceLive",void 0);_.e([_.N("data","timeSinceLive"),_.n("design:type",Object),_.n("design:paramtypes",[])],q4.prototype,"badgeShapeData",null);
_.e([_.N("data","overlayType"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],q4.prototype,"hideBadgeShape",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"dataChanged",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.style"),_.n("design:type",Object),_.n("design:paramtypes",[])],q4.prototype,"overlayStyle",null);
_.e([_.N("data.liveBadgeData"),_.n("design:type",Object),_.n("design:paramtypes",[])],q4.prototype,"liveBadgeData",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.type"),_.n("design:type",Object),_.n("design:paramtypes",[])],q4.prototype,"overlayType",null);_.e([_.N("overlayType","overlayStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],q4.prototype,"useFilledIcon",null);
_.e([_.qi("liveBadgeData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"initializeLiveBadgeTimer",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],q4);
_.w(q4,"ytd-thumbnail-overlay-time-status-renderer",function(){if(nWp!==void 0)return nWp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nWp=D},{mode:_.E_("kevlar_poly_si_batch_j035")?1:2});var KwF;var b6=function(){return _.c.apply(this,arguments)||this};
_.J(b6,_.c);b6.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"}}}}};
b6.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(D){if(this.hasPlaybackProgressBar)return{percentDurationWatched:D.percentDurationWatched}};
b6.prototype.computeHasPlaybackProgressBar=function(D){return!!D.percentDurationWatched&&D.percentDurationWatched>0};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],b6.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.n("design:type",Boolean)],b6.prototype,"hasPlaybackProgressBar",void 0);
_.e([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],b6);
_.w(b6,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(KwF!==void 0)return KwF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return KwF=D},{mode:1});var Tgb;var RWJ=_.H(function(D){var v=D.data;var h=D.children;var a=function(){return!!v().doubleStack},Q=function(){return!!v().includeStackHeight};
return _.F("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!v().experimentEnabled}},_.F(_.z,{cond:v,
then:function(){var G={};return _.F(_.xf,null,_.F(_.z,{cond:Q,then:function(){var x={};return _.F("div",{class:_.S3("ytCollectionsStackSpacer",(x.ytCollectionsStackSpacerDoubleStack=a,x))})}}),_.F("div",{class:_.S3((G.ytCollectionsStackRelativeStack=Q,G))},_.F(_.z,{cond:a,
then:function(){var x={};return _.F("div",{class:_.S3("ytCollectionsStackCollectionStack2",function(){return v().customClassName2ndStack},(x.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return v().enableResponsiveMode},x)),
style:_.NL({"background-color":function(){return oWL(v())}})})}}),_.F("div",{class:_.S3("ytCollectionsStackCollectionStack1",function(){return v().customClassName1stStack},function(){return CGu(v().thumbnailSize?v().thumbnailSize:"medium")}),
style:_.NL({"background-color":function(){return oWL(v())}})}),h))}}))},"wa");_.zh(RWJ,"yt-collections-stack",{props:{data:_.gj}});var du=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};D.webModernCollections=!1;D.isSearch=!1;D.isDoubleStack=!1;D.thumbnailSize="medium";D.enableWebModernCollectionsV2=_.g("web_modern_collections_v2");return D};
_.J(du,_.c);_.V=du.prototype;
_.V.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]]"}}}}}};
_.V.getThumbnailDetails=function(D){if(D!=null&&D.thumbnailRenderer){var v=D.thumbnailRenderer,h;if((h=v.playlistVideoThumbnailRenderer)==null?0:h.thumbnail)return v.playlistVideoThumbnailRenderer.thumbnail;var a;if((a=v.playlistCustomThumbnailRenderer)==null?0:a.thumbnail)return v.playlistCustomThumbnailRenderer.thumbnail;D=D.thumbnailRenderer;var Q;if((Q=D.showCustomThumbnailRenderer)==null?0:Q.thumbnail)return D.showCustomThumbnailRenderer.thumbnail}};
_.V.computeOverlayColor=function(D){var v,h;if((v=this.getThumbnailDetails(D))==null?0:(h=v.darkColorPalette)==null?0:h.section2Color)return this.getThumbnailDetails(D).darkColorPalette.section2Color;var a;return(a=this.getThumbnailDetails(D))==null?void 0:a.sampledThumbnailColor};
_.V.computeWebModernCollections=function(D){if(D==null||!D.thumbnailOverlays)return!1;D=_.P(D.thumbnailOverlays);for(var v=D.next();!v.done;v=D.next()){var h=void 0;if((h=v.value)==null?0:h.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.V.computeNavigationEndpoint=function(D){return gMq(D==null?void 0:D.navigationEndpoint)};
_.GT.Object.defineProperties(du.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:D==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:D==null?void 0:D.vibrantColorPalette,darkColorPalette:D==null?void 0:D.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],du.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(vKy),_.n("design:type",Object)],du.prototype,"ytdThumbnailBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],du.prototype,"componentBehavior",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],du.prototype,"watchFeedThumbnail",void 0);_.e([_.Y(),_.n("design:type",Number)],du.prototype,"customThumbnailSize",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],du.prototype,"hideAria",void 0);_.e([_.Y(),_.n("design:type",Object)],du.prototype,"data",void 0);_.e([_.Y({computed:"computeOverlayColor(data)"}),_.n("design:type",Object)],du.prototype,"overlayColor",void 0);
_.e([_.Y({computed:"computeWebModernCollections(data)"}),_.n("design:type",Object)],du.prototype,"webModernCollections",void 0);_.e([_.Y({computed:"computeNavigationEndpoint(data)"}),_.n("design:type",Object)],du.prototype,"computedNavigationEndpoint",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],du.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],du.prototype,"isDoubleStack",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],du.prototype,"thumbnailSize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],du.prototype,"enableWebModernCollectionsV2",void 0);_.e([_.N("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.n("design:type",Object),_.n("design:paramtypes",[])],du.prototype,"collectionStack",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],du);
_.w(du,"ytd-playlist-thumbnail",function(){if(Tgb!==void 0)return Tgb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Tgb=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var its;var jW=function(){var D=_.c.apply(this,arguments)||this;D.noEndpoints=!1;D.amsterdamPostMvp=_.g("web_amsterdam_post_mvp_playlists");D.badges=[];D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.J(jW,_.c);_.V=jW.prototype;_.V.getMetadata=function(D){if(!D)return[];var v=[],h=D.shortViewCountText||D.viewCountText;h&&v.push(_.$V(h));D.publishedTimeText&&v.push(_.$V(D.publishedTimeText));D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&v.push(_.dp(_.$V(D.upcomingEventData.upcomingEventText),Number(D.upcomingEventData.startTime)));return v};
_.V.observeDataForBylineSeparator=function(){this.data&&_.Iy(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.V.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.rT(this.metadataColor)};
_.V.getSimpleString=function(D){return _.$V(D)};
_.V.isBylineHidden=function(D){return this.noByline||!((D==null?0:D.longBylineText)||(D==null?0:D.shortBylineText))};
_.V.isMetadataHidden=function(D){var v;return((v=this.getMetadata(D))==null?void 0:v.length)===0};
_.V.isBylineMetadataSeparatorHidden=function(D){return this.isMetadataHidden(D)||!this.shouldShowVideoInfo};
_.V.isLongByline=function(D,v){return v&&!(D==null||!D.longBylineText)};
_.GT.Object.defineProperties(jW.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var D;return this.amsterdamPostMvp&&!((D=this.data)==null||!D.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
jW.prototype.metadataColorChanged=jW.prototype.metadataColorChanged;jW.prototype.observeDataForBylineSeparator=jW.prototype.observeDataForBylineSeparator;_.e([_.l(_.Mm),_.n("design:type",Object)],jW.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jW.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],jW.prototype,"noEndpoints",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"isSlimShort",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"radioMeta",void 0);_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],jW.prototype,"isGridViewEnabled",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"richMeta",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],jW.prototype,"amsterdamPostMvp",void 0);_.e([_.Y(),_.n("design:type",Boolean)],jW.prototype,"noByline",void 0);
_.e([_.Y({computed:"isLongByline(data, radioMeta)"}),_.n("design:type",Boolean)],jW.prototype,"longByline",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"truncateMetadataLine",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"miniMode",void 0);_.e([_.Y(),_.n("design:type",Number)],jW.prototype,"metadataColor",void 0);_.e([_.Y(),_.n("design:type",Array)],jW.prototype,"badges",void 0);
_.e([_.Y({selector:_.KG,selectorArgs:["data.videoId"]}),_.n("design:type",String)],jW.prototype,"transferState",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"isDownloading",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],jW.prototype,"typographyBump",void 0);_.e([_.Br("#metadata-line"),_.n("design:type",HTMLElement)],jW.prototype,"metadataLine",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jW.prototype,"observeDataForBylineSeparator",null);_.e([_.Ni("metadataColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jW.prototype,"metadataColorChanged",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],jW.prototype,"shouldShowVideoInfo",null);
_.e([_.N("badges"),_.n("design:type",String),_.n("design:paramtypes",[])],jW.prototype,"inlineBadgeClass",null);_.e([_.N("longByline"),_.n("design:type",String),_.n("design:paramtypes",[])],jW.prototype,"longBylineClass",null);_.e([_.N("data","longByline"),_.n("design:type",Object),_.n("design:paramtypes",[])],jW.prototype,"bylineText",null);_.e([_.N("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jW.prototype,"watchFeedBigThumbs",null);
_.e([_.m({is:"ytd-video-meta-block",disableElementRegistration:!0})],jW);
_.w(jW,"ytd-video-meta-block",function(){if(its!==void 0)return its;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return its=D},{mode:_.E_("kevlar_poly_si_batch_j080")?1:2});_.HX("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var st=function(){var D=_.c.apply(this,arguments)||this;D.displayItemCount=2;D.isBackstagePlaylist=!1;D.isPostCompactPlaylist=!1;D.shouldShowChannelThumbnail=!1;D.useModernCollectionsV2=_.g("web_modern_collections_v2");return D};
_.J(st,_.c);_.V=st.prototype;_.V.computeFirstVideos=function(D,v){return D===void 0||v===void 0?[]:D.slice(0,v)};
_.V.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var D=this.data.thumbnailRenderer;D.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",D.playlistVideoThumbnailRenderer.thumbnail);D.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",D.playlistCustomThumbnailRenderer.thumbnail)}};
_.V.computeThumbnailHeight=function(D,v,h,a,Q){return a?Q==="BIG"?280:Q==="MASSIVE"?337:234:h?240:v?72:D?118:138};
_.V.computeThumbnailWidth=function(D,v,h,a,Q){return a?Q==="MEDIUM"?450:Q==="BIG"?500:Q==="MASSIVE"?600:420:h?360:v?128:D?210:246};
_.V.computeUseBiggerThumbs=function(D){return D&&_.g("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelThumbnail=function(D,v){return D&&!(v==null||!v.channelThumbnail)};
_.GT.Object.defineProperties(st.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
st.prototype.dataChanged=st.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],st.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],st.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],st.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],st.prototype,"displayItemCount",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],st.prototype,"isBackstagePlaylist",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],st.prototype,"isPostCompactPlaylist",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],st.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.n("design:type",Boolean)],st.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],st.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],st.prototype,"isDownloads",void 0);_.e([_.Y({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.n("design:type",Object)],st.prototype,"shouldShowChannelThumbnail",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],st.prototype,"useModernCollectionsV2",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],st.prototype,"dataChanged",null);_.e([_.N("isSearch"),_.n("design:type",String),_.n("design:paramtypes",[])],st.prototype,"stackThumbnailSize",null);_.e([_.m({is:"ytd-playlist-renderer",disableElementRegistration:!0})],st);
_.w(st,"ytd-playlist-renderer",function(){if(cCR===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);cCR=D}D=cCR;return D},{mode:1});var WwJ;var tPt;var mY=function(){var D=_.c.apply(this,arguments)||this;D.collections=!!_.g("web_modern_collections_v2");D.startX=0;return D};
_.J(mY,_.c);mY.prototype.onEndpointMouseDown=function(D){this.startX=D.clientX};
mY.prototype.onEndpointClick=function(D){this.startX!==D.clientX&&(D.preventDefault(),D.stopPropagation())};
mY.prototype.computeObjectFit=function(D){return D==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
mY.prototype.computeCardStyle=function(D){return D?D.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.GT.Object.defineProperties(mY.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var D,v;return this.collections&&((D=this.data)==null?void 0:(v=D.searchRefinementCardRendererStyle)==null?void 0:v.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}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],mY.prototype,"data",void 0);_.e([_.Y({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.n("design:type",Number)],mY.prototype,"objectFit",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.n("design:type",String)],mY.prototype,"cardStyle",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],mY.prototype,"roundContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],mY.prototype,"collections",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],mY.prototype,"isAlbumCard",null);_.e([_.N("data","collections","isAlbumCard"),_.n("design:type",Object),_.n("design:paramtypes",[])],mY.prototype,"collectionStack",null);
_.e([_.m({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],mY);
_.w(mY,"ytd-search-refinement-card-renderer",function(){if(tPt!==void 0)return tPt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return tPt=D},{mode:1});var rCR;var HM=function(){var D=_.c.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.J(HM,_.c);_.e([_.Y(),_.n("design:type",Object)],HM.prototype,"data",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],HM.prototype,"componentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],HM.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],HM.prototype,"isRichGrid",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],HM.prototype,"miniMode",void 0);
_.e([_.m({is:"ytd-game-details-renderer",disableElementRegistration:!0})],HM);
_.w(HM,"ytd-game-details-renderer",function(){if(rCR!==void 0)return rCR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rCR=D},{mode:1});var uDs;var DUb;var y8=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return D};
_.J(y8,_.c);_.V=y8.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(D){var v=D||this.data;return v&&v.states&&v.currentStateId!=null?v.states.find(function(h){return h.stateId===v.currentStateId})||null:null};
_.V.currentStateRendererData=function(D){return(D=this.currentStateData(D))&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.V.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())};
_.V.computeButtonIcon=function(D){D=this.currentStateRendererData(D);var v;return(D==null?0:(v=D.icon)==null?0:v.iconType)?D.icon.iconType.toLowerCase():null};
_.V.computeAccessibility=function(D){return(D=this.currentStateRendererData(D))&&D.accessibilityData?D.accessibilityData.accessibilityData||null:null};
_.V.computeButtonClass=function(D){var v=this.currentStateRendererData(D);if(!v)return"";D="";var h=v.style;h&&(D+=h.toLowerCase().replace(/_/g,"-")+" ");(v=v.size)&&(D+=v.toLowerCase().replace(/_/g,"-")+" ");return D.trim()};
_.V.computeServiceEndpoint=function(D){if(!D)return null;var v=D&&D.serviceEndpoint,h=this.get("command.commandMetadata.webCommandMetadata.sendPost",D);return v?v:h&&D.command?D.command:null};
_.V.computeBellMenuItemParams=function(D){var v;D=(v=_.k(D==null?void 0:D.command,_.IN))==null?void 0:v.commands;if(!D||D.length===0)return null;v=_.k(D[0],_.Oc);var h,a;return(v==null?0:(h=v.popup)==null?0:(a=h.menuPopupRenderer)==null?0:a.items)?v.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(D){var v=D.trackingParams,h=this.computeBellMenuItemParams(this.data);this.data&&v&&h&&h.includes(v)&&this.ytRenderButtonBehavior._setButtonIcon(D.icon.iconType.toLowerCase())};
_.V.onYtServiceRequestCompleted=function(D,v){(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",v))&&this.set("data",D)};
_.V.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.V.resetState=function(){this.set("data.currentStateId",3)};
_.V.onYtButtonTapHandler=function(){if(this.data){var D=this.currentStateRendererData(this.data);D&&this.ytRendererBehavior.logExplicitClick(D)}};
y8.prototype.onYtServiceRequestError=y8.prototype.onYtServiceRequestError;y8.prototype.onYtServiceRequestCompleted=y8.prototype.onYtServiceRequestCompleted;y8.prototype.stateChanged=y8.prototype.stateChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],y8.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(tk.YtRenderButtonBehavior),_.n("design:type",Object)],y8.prototype,"ytRenderButtonBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],y8.prototype,"data",void 0);_.e([_.qi("data","data.currentStateId"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],y8.prototype,"stateChanged",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],y8.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],y8.prototype,"onYtServiceRequestError",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],y8);
_.w(y8,"ytd-subscription-notification-toggle-button-renderer",function(){if(DUb!==void 0)return DUb;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return DUb=D},{mode:1});var vjF;var wu=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};D.tapHandler=function(){if(D.data){var v=D.currentStateRendererData();v&&D.ytRendererBehavior.logExplicitClick(v)}};
return D};
_.J(wu,_.c);_.V=wu.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(){var D=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(v){return v.stateId===D.data.currentStateId})||null:null};
_.V.currentStateRendererData=function(){var D=this.currentStateData();return D&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.V.computeAccessibilityLabel=function(){var D,v,h;return(D=this.currentStateRendererData())==null?void 0:(v=D.accessibilityData)==null?void 0:(h=v.accessibilityData)==null?void 0:h.label};
_.V.computeBellMenuItemParams=function(){var D,v,h=(v=_.k((D=this.data)==null?void 0:D.command,_.IN))==null?void 0:v.commands;if(!h||h.length===0)return null;D=_.k(h[0],_.Oc);var a,Q;return(D==null?0:(a=D.popup)==null?0:(Q=a.menuPopupRenderer)==null?0:Q.items)?D.popup.menuPopupRenderer.items.map(function(G){return G.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(D){var v=D.trackingParams,h=this.computeBellMenuItemParams();if(this.data&&v&&h&&h.includes(v)&&(D==null||!D.isDisabled)){var a;((a=_.k(D.serviceEndpoint,_.kE))==null?void 0:a.signal)!=="CLIENT_SIGNAL"&&(this.icon=D.icon.iconType)}};
_.V.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.V.onYtServiceRequestCompleted=function(D,v){if(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",v))this.icon=void 0,this.set("data",D)};
_.V.onYtServiceRequestError=function(){this.icon=void 0};
_.GT.Object.defineProperties(wu.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data,v=this.textLabel,h=this.hostElement,a=this.computeAccessibilityLabel(),Q=this.tapHandler,G=this.isOverlay?"overlay":"mono",x=(D==null?0:D.disableButton)?"disabled":"active";v=v?_.nb(v):void 0;return{style:G,type:"tonal",state:x,size:"M",focused:!1,formattedButtonText:v,iconPosition:"leading-trailing",onTap:zW4(D,Q,h),accessibilityLabel:a}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.currentStateRendererData(),v,h,a=(h=this.icon)!=null?h:D==null?void 0:(v=D.icon)==null?void 0:v.iconType;if(a)return _.SQ(a)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.secondaryIcon)==null?void 0:v.iconType;if(h)return _.SQ(h)}}});
wu.prototype.onYtServiceRequestError=wu.prototype.onYtServiceRequestError;wu.prototype.onYtServiceRequestCompleted=wu.prototype.onYtServiceRequestCompleted;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],wu.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wu.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],wu.prototype,"textLabel",void 0);
_.e([_.Y(),_.n("design:type",String)],wu.prototype,"icon",void 0);_.e([_.Y(),_.n("design:type",Boolean)],wu.prototype,"isOverlay",void 0);_.e([_.N("data.*","textLabel"),_.n("design:type",Object),_.n("design:paramtypes",[])],wu.prototype,"computedButtonShape",null);_.e([_.N("data.*","icon"),_.n("design:type",Object),_.n("design:paramtypes",[])],wu.prototype,"computedIcon",null);_.e([_.N("computedIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],wu.prototype,"computedAnimateIcon",null);
_.e([_.N("data.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],wu.prototype,"computedSecondaryIcon",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],wu.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wu.prototype,"onYtServiceRequestError",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],wu);
_.w(wu,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(vjF!==void 0)return vjF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return vjF=D},{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var hLm;_.zh(hWy,"yt-animated-action",{props:{backgroundLottieRef:_.gj,foregroundLottieRef:_.gj,wrapperClass:_.gj,disableAnimation:_.gj},unsafeExternallySettableAttributes:new Set(["key"])});var eW=function(){var D=_.c.apply(this,arguments)||this;D.animatedActionEnabled=_.g("web_animated_actions");D.foregroundLottieRef={};D.backgroundLottieRef={};D.forceIconOnly=!1;D.showTextWhileAnimating=!1;D.keyboardFocused=!1;D.isAnimating=!1;D.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return D};
_.J(eW,_.c);_.V=eW.prototype;_.V.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.V.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]]"}}}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onYtServiceRequestSent=function(D,v){(this.get("endpoint.subscribeEndpoint",v)||this.get("endpoint.unsubscribeEndpoint",v))&&this.updateSubscriptionState(!this.subscribed)};
_.V.onYtServiceRequestCompleted=function(D,v){(D=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",v.data))&&this.bellButton&&(this.bellButton.data=D)};
_.V.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.SB(this.hostElement)};
_.V.onPlayerSubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.V.onPlayerUnsubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||this.updateSubscriptionState(!1)};
_.V.handleUpdateSubscribeButtonAction=function(D){D=_.k(D,yFm);var v;D&&D.channelId===((v=this.data)==null?void 0:v.channelId)&&this.updateSubscriptionState(!!D.subscribed)};
_.V.computeButtonStyle=function(D){return this.get("style.styleType",D)||null};
_.V.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.V.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.V.updateSubscriptionState=function(D){if(D!==this.subscribed){this.set("data.subscribed",D);var v,h=(v=this.data)==null?void 0:v.subscribedEntityKey;h&&this.ytdReduxBehavior.dispatch(_.Xe("subscriptionStateEntity",h,{key:h,subscribed:D}));this.isCompactRed()||_.F1(this.hostElement,"yt-subscription-changed",D);D||(_.zU(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!D),D&&this.hasBellButton&&this.startAnimation())}};
_.V.startAnimation=function(){var D=this;if(!this.isAnimating){var v=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var h;(h=this.backgroundLottieRef.lottieEl)==null||h.goToAndPlay(0);var a;(a=this.foregroundLottieRef.lottieEl)==null||a.goToAndPlay(0);_.HK.addJob(function(){D.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.HK.addJob(function(){D.updateContainerToFitContent(!!D.subscribed,!0)},2,1500);
_.HK.addJob(function(){D.isAnimating=!1},2,v)}};
_.V.maybeAnimateBellIcon=function(){var D=_.EI(this.hostElement).querySelector("yt-animated-icon");if(D){var v;(v=D.animationRef.lottieEl)==null||v.goToAndPlay(0)}};
_.V.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.V.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.V.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var D;this.unsubscribedWidth=(D=this.subscribeButtonShape)==null?void 0:D.getBoundingClientRect().width}var v;this.subscribedWidth=(v=this.bellButton)==null?void 0:v.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.V.updateContainerToFitContent=function(D,v){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(D?(D=this.subscribedWidth,v=this.isAnimating&&!v,this.subscribedIconOnlyWidth===void 0||v||(D=this.subscribedIconOnlyWidth),this.hostElement.style.width=D+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.V.clearContainerSize=function(){this.hostElement.style.width=""};
_.V.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.V.maybeSetSubscribedButtonIconOnlyWidth=function(){var D=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var v;D.subscribedIconOnlyWidth=(v=D.bellButton)==null?void 0:v.getBoundingClientRect().width;requestAnimationFrame(function(){if(D.bellButton){var h;D.bellButton.textLabel=
(h=D.data)==null?void 0:h.subscribedButtonText}})})))};
_.GT.Object.defineProperties(eW.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var D;return(D=this.data)==null?void 0:D.subscribedButtonText}var v;return this.forceIconOnly?void 0:(v=this.data)==null?void 0:v.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,v,h=((D=this.data)==null?void 0:(v=D.timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:"subscribe",timings:h,enabled:h.length>0&&!this.subscribed,experimentEnabled:h.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!this.subscribed&&((D=this.data)==null?void 0:D.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var v=D.renderer;var h=D.element;var a=D.subscribed;var Q=D.commandController;var G=D.isOverlay;D=D.stopPropagation;var x=EWA(v,a);G&&(x.style="overlay");G=Object;var f=G.assign,C;a:switch((C=v.style)==null?void 0:C.styleType){case "COMPACT_GRAY":case "COMPACT_RED":C={size:"S"};break a;default:C={size:"M"}}var U=ZtA(v,
a);var L=(L=a?v.subscribedButtonText:v.unsubscribedButtonText)?_.nb(L):void 0;return f.call(G,{},x,C,{focused:!1,toggled:a,accessibilityLabel:U,formattedButtonText:L,onTap:LwA(v,a,h,Q,D)})}}}});
eW.prototype.onMouseDown=eW.prototype.onMouseDown;eW.prototype.onDataChanged=eW.prototype.onDataChanged;eW.prototype.observedSubscribed=eW.prototype.observedSubscribed;eW.prototype.onYtServiceRequestCompleted=eW.prototype.onYtServiceRequestCompleted;eW.prototype.onYtServiceRequestSent=eW.prototype.onYtServiceRequestSent;eW.prototype.maybeUpdateBellButtonText=eW.prototype.maybeUpdateBellButtonText;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],eW.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],eW.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],eW.prototype,"data",void 0);
_.e([_.Y({selectorArgs:["data.subscribedEntityKey"],selector:EKo}),_.n("design:type",Object)],eW.prototype,"subscriptionStateEntity",void 0);_.e([_.Y({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.n("design:type",Boolean)],eW.prototype,"subscribed",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],eW.prototype,"branded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],eW.prototype,"animatedActionEnabled",void 0);
_.e([_.Y(),_.n("design:type",Object)],eW.prototype,"foregroundLottieRef",void 0);_.e([_.Y(),_.n("design:type",Object)],eW.prototype,"backgroundLottieRef",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],eW.prototype,"overlayButton",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.n("design:type",Object)],eW.prototype,"buttonStyle",void 0);_.e([_.Y(),_.n("design:type",Object)],eW.prototype,"forceIconOnly",void 0);
_.e([_.Y(),_.n("design:type",Object)],eW.prototype,"showTextWhileAnimating",void 0);_.e([_.Y({value:function(){return!!_.xd().resolve(_.PV(_.Xw))&&_.g("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.n("design:type",Boolean)],eW.prototype,"useKeyboardFocused",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],eW.prototype,"keyboardFocused",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],eW.prototype,"isAnimating",void 0);_.e([_.N("data.notificationPreferenceButton.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"hasBellButton",null);
_.e([_.Ni("subscribedButtonText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eW.prototype,"maybeUpdateBellButtonText",null);_.e([_.N("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"subscribedButtonText",null);_.e([_.N("data.timedAnimationData.animationTiming","subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"smartimationSettings",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"subscribeButtonHidden",null);_.e([_.Y({reflectToAttribute:!0}),_.N("subscribed","hasBellButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"subscribeButtonInvisible",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"unsubscribeButtonHidden",null);_.e([_.Br("ytd-subscription-notification-toggle-button-renderer-next"),_.n("design:type",Object)],eW.prototype,"bellButton",void 0);_.e([_.Br("#subscribe-button-shape"),_.n("design:type",HTMLElement)],eW.prototype,"subscribeButtonShape",void 0);
_.e([_.N("overlayButton","subscribed","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],eW.prototype,"buttonShape",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],eW.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],eW.prototype,"onYtServiceRequestCompleted",null);
_.e([_.Ni("subscribed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eW.prototype,"observedSubscribed",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eW.prototype,"onDataChanged",null);_.e([_.lc("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],eW.prototype,"onMouseDown",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],eW);
_.w(eW,"ytd-subscribe-button-renderer",function(){if(hLm!==void 0)return hLm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return hLm=D},{mode:1});var nn=function(){var D=_.c.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.J(nn,_.c);nn.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nn.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nn.prototype,"isRichGrid",void 0);_.e([_.m({is:"ytd-game-card-renderer",disableElementRegistration:!0})],nn);
_.w(nn,"ytd-game-card-renderer",function(){if(uDs!==void 0)return uDs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uDs=D},{mode:1});var Ot={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.g("defer_menus")&&!HNm?0:void 0,waitForSignal:"eocs"};var aAF;var $UM;var Kn=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return D};
_.J(Kn,_.c);_.V=Kn.prototype;_.V.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.V.onSeriesReminderStateEntityChange=function(){var D,v,h;((D=this.eventReminderStateEntity)==null?0:D.key)&&((v=this.seriesReminderStateEntity)==null?void 0:v.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((h=this.eventReminderStateEntity)==null?void 0:h.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Xe("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.V.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.V.onYtServiceRequestError=function(){var D;this.updateReminderStateEntitiesFromButtonState((D=this.data)==null?void 0:D.currentState)};
_.V.handleUpdateUpcomingEventReminderButtonStateCommand=function(D){if(D=_.k(D,cUy)){var v,h=(v=this.data)==null?void 0:v.targetId;h&&D.targetId===h&&_.hD(this.updateReminderStateEntitiesFromButtonState.bind(this,D.state))}};
_.V.getButtonStateFromReminderState=function(){var D;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var v;if(((v=this.eventReminderStateEntity)==null?void 0:v.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var h,a;if(((h=this.seriesReminderStateEntity)==null?void 0:h.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((a=this.eventReminderStateEntity)==
null?void 0:a.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Q;return(Q=this.data)==null?void 0:Q.currentState};
_.V.updateReminderStateEntitiesFromButtonState=function(D){if(D){switch(D){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":D="UPCOMING_EVENT_REMINDER_STATE_NONE";var v="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":D="UPCOMING_EVENT_REMINDER_STATE_SINGLE";v="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":D="UPCOMING_EVENT_REMINDER_STATE_NONE";v="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var h;
((h=this.eventReminderStateEntity)==null?0:h.key)&&this.ytdReduxBehavior.dispatch(_.Xe("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:D})));var a;((a=this.seriesReminderStateEntity)==null?0:a.key)&&this.ytdReduxBehavior.dispatch(_.Xe("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:v})))}};
_.GT.Object.defineProperties(Kn.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.getButtonStateFromReminderState(),v,h;if(D&&((v=this.data)==null?0:(h=v.states)==null?0:h.length))for(v=_.P(this.data.states),h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0;if(((a=_.k(h,XCR))==null?void 0:a.state)===D)return _.k(h,XCR)}}}});
Kn.prototype.onYtServiceRequestError=Kn.prototype.onYtServiceRequestError;Kn.prototype.onYtServiceRequestCompleted=Kn.prototype.onYtServiceRequestCompleted;Kn.prototype.onSeriesReminderStateEntityChange=Kn.prototype.onSeriesReminderStateEntityChange;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Kn.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Kn.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Kn.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:gK7}),_.n("design:type",Object)],Kn.prototype,"eventReminderStateEntity",void 0);
_.e([_.Y({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(D,v){return _.gR(D.entities,"sportsSeriesReminderStateEntity",v)}}),
_.n("design:type",Object)],Kn.prototype,"seriesReminderStateEntity",void 0);_.e([_.N("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],Kn.prototype,"currentButtonStateRenderer",null);_.e([_.Ni("seriesReminderStateEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kn.prototype,"onSeriesReminderStateEntityChange",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kn.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kn.prototype,"onYtServiceRequestError",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Kn);
_.w(Kn,"ytd-upcoming-event-reminder-button-renderer",function(){if($UM!==void 0)return $UM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return $UM=D},{mode:1});var Qw1;var Tn=function(){return _.c.apply(this,arguments)||this};
_.J(Tn,_.c);Tn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.GT.Object.defineProperties(Tn.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(_.g("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Tn.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Tn.prototype,"shelfDismissal",void 0);_.e([_.N("data.responseText"),_.n("design:type",Object),_.n("design:paramtypes",[])],Tn.prototype,"text",null);
_.e([_.N("data.responseText"),_.n("design:type",Object),_.n("design:paramtypes",[])],Tn.prototype,"textAriaLabel",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Tn);
_.w(Tn,"ytd-notification-multi-action-renderer",function(){if(Qw1!==void 0)return Qw1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Qw1=D},{mode:1});var GgM;var R8=function(){return _.c.apply(this,arguments)||this};
_.J(R8,_.c);R8.prototype.ready=function(){var D=this;_.ZW(this.hostElement).querySelector("#undo").addEventListener("tap",function(){D.onUndoTap()})};
R8.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],R8.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],R8);
_.w(R8,"ytd-notification-text-renderer",function(){if(GgM!==void 0)return GgM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return GgM=D},{mode:1});var VNm;var i6=function(){var D=_.c.apply(this,arguments)||this;D.mouseOverDelayJobId=0;D.fadeInImageDelayJobId=0;D.startTimeMs=-1;D.loadingStartTimeMs=-1;D.loadingEndTimeMs=-1;D.hasVideoPreview=!1;return D};
_.J(i6,_.c);_.V=i6.prototype;_.V.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.V.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.showThumbnail=function(){var D=this;this.csn=_.wd();_.n1("fmth");_.HK.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.I3(_.HK,function(){D.loadingStartTimeMs=(0,_.xz)();var v=_.ZW(D.hostElement).querySelector("#thumbnail");v.complete?D.displayMouseOverImage():v.addEventListener("load",_.pZ(D,D.displayMouseOverImage))},150):_.Iy(_.ZW(this.hostElement).querySelector("#play"),"show",!0)};
_.V.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.V.onTap=function(){this.removeVideoPreview()};
_.V.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var D=this.videoId,v=this.csn,h=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,a=this.startTimeMs,Q=this.hasVideoPreview,G=_.d4(this.trackingParams),x={isMovingThumbnail:Q};Q&&a>0&&(h>0&&(x.movingThumbnailLoadingDurationMs=Math.round(h)),x.durationHoveredMs=Math.round((0,_.xz)()-a));D&&(x.videoId=D);_.aG(v,G,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:x});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.V.removeVideoPreview=function(){_.HK.cancelJob(this.mouseOverDelayJobId);_.HK.cancelJob(this.fadeInImageDelayJobId);var D=_.ZW(this.hostElement).querySelector("#thumbnail");_.Iy(D,"fade-in",!1);D.removeEventListener("load",_.pZ(this,this.displayMouseOverImage));D=_.ZW(this.hostElement).querySelector("#play");_.Iy(D,"fade-in",!1);_.Iy(D,"show",!1)};
_.V.displayMouseOverImage=function(){var D=_.ZW(this.hostElement).querySelector("#thumbnail"),v=_.ZW(this.hostElement).querySelector("#play");this.isImageAvailable(D)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.xz)(),this.startTimeMs=(0,_.xz)(),this.fadeInImageDelayJobId=_.I3(_.HK,function(){_.Iy(D,"fade-in",!0)},50)):_.Iy(v,"fade-in",!0)};
_.V.computeThumbnail=function(D,v){var h;D&&D.movingThumbnailDetails&&D.movingThumbnailDetails.thumbnails&&v?h=_.UA(D.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):h=v?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(h)return _.nz(h)};
_.V.isImageAvailable=function(D){return!(!D.src||D.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||D.naturalWidth===120)};
i6.prototype.onTap=i6.prototype.onTap;i6.prototype.dataChanged=i6.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],i6.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],i6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],i6.prototype,"csn",void 0);_.e([_.Y(),_.n("design:type",Object)],i6.prototype,"trackingParams",void 0);
_.e([_.Y(),_.n("design:type",String)],i6.prototype,"videoId",void 0);_.e([_.Y(),_.n("design:type",Boolean)],i6.prototype,"isAttachedAndDataSet",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i6.prototype,"dataChanged",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i6.prototype,"onTap",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],i6);
_.w(i6,"ytd-moving-thumbnail-renderer",function(){if(VNm!==void 0)return VNm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return VNm=D},{mode:1});var Pas;_.fK=function(D){this.hostElement=D;this.eventSink=null;this.eventList=[]};
_.fK.prototype.shouldForward=function(){var D,v;return(v=(D=this.eventSink)==null?void 0:D.isConnected)!=null?v:document.body.contains(this.eventSink)};
_.fK.prototype.start=function(D,v){this.eventSink&&this.stop();for(var h=0;h<D.length;h++)this.hostElement.addEventListener(D[h],_.pZ(this,this.forwardEvent));var a;this.eventSink=(a=v.hostElement)!=null?a:v;this.eventList=D};
_.fK.prototype.stop=function(){for(var D=0;D<this.eventList.length;D++)this.hostElement.removeEventListener(this.eventList[D],_.pZ(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.fK.prototype.forwardEvent=function(D,v){this.shouldForward()&&(D.stopPropagation(),this.eventSink instanceof Element?_.F1(this.eventSink,D.type,v):_.yR(new _.XH("eventSink is not an element")))};_.WM={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.fK(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(D,v){this.forwarder_.start(D,v)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var tq=function(){return _.c.apply(this,arguments)||this};
_.J(tq,_.c);_.V=tq.prototype;_.V.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=_.eA("HTML_DIR")==="rtl"?"right":"left"};
_.V.dataChanged=function(){this.popupOpen=!1};
_.V.computeAriaLabel=function(D){return _.k(D,xEF).label};
_.V.onTap=function(D){D.stopPropagation();D.preventDefault();this.data.command&&_.xd().resolve(_.fx).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
tq.prototype.onPopupClosed=tq.prototype.onPopupClosed;tq.prototype.onPopupOpened=tq.prototype.onPopupOpened;tq.prototype.onTap=tq.prototype.onTap;tq.prototype.dataChanged=tq.prototype.dataChanged;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],tq.prototype,"eventForwardingBehavior",void 0);_.e([_.l(_.tx),_.n("design:type",Object)],tq.prototype,"ironButtonState",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],tq.prototype,"componentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],tq.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:-1}),_.n("design:type",Number)],tq.prototype,"tabindex",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.n("design:type",Object)],tq.prototype,"ariaLabel",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],tq.prototype,"disableTooltips",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],tq.prototype,"popupOpen",void 0);
_.e([_.Y(),_.n("design:type",Element)],tq.prototype,"eventSink",void 0);_.e([_.Br("#tooltip"),_.n("design:type",Object)],tq.prototype,"tooltip",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tq.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],tq.prototype,"onTap",null);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tq.prototype,"onPopupOpened",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tq.prototype,"onPopupClosed",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],tq);
_.w(tq,"ytd-thumbnail-overlay-button-renderer",function(){if(Pas!==void 0)return Pas;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Pas=D},{mode:1});var xU$;var ru=function(){return _.c.apply(this,arguments)||this};
_.J(ru,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ru.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ru.prototype,"disableAnimation",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ru.prototype,"rounded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ru.prototype,"transparentBackground",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ru.prototype,"noPadding",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],ru);
_.w(ru,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(xU$!==void 0)return xU$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xU$=D},{mode:1});var MN1;var u6=function(){return _.c.apply(this,arguments)||this};
_.J(u6,_.c);u6.prototype.computeIconPosition=function(D){return this.get("iconPosition",D)||null};
u6.prototype.computeIconStyle=function(D){return this.get("iconStyle",D)||null};
u6.prototype.computeIsIconStyleFilled=function(D){if(!D)return!1;var v;return D.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((v=D.icon)==null?void 0:v.iconType)==="ERROR_BLACK"};
_.e([_.Y(),_.n("design:type",Object)],u6.prototype,"data",void 0);_.e([_.Y({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.n("design:type",Object)],u6.prototype,"iconPosition",void 0);_.e([_.Y({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.n("design:type",Object)],u6.prototype,"iconStyle",void 0);_.e([_.Y({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],u6.prototype,"iconStyleFilled",void 0);
_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],u6);
_.w(u6,"ytd-thumbnail-overlay-icon-renderer",function(){if(MN1!==void 0)return MN1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return MN1=D},{mode:1});var fA4;var Dk=function(){return _.c.apply(this,arguments)||this};
_.J(Dk,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Dk.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Dk);
_.w(Dk,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(fA4!==void 0)return fA4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fA4=D},{mode:1});var Cat;var v$=function(){var D=_.c.apply(this,arguments)||this;D.isPreviewLoading=!1;return D};
_.J(v$,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],v$.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],v$.prototype,"isPreviewLoading",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],v$);
_.w(v$,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Cat!==void 0)return Cat;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Cat=D},{mode:1});var ojF;var hj=function(){return _.c.apply(this,arguments)||this};
_.J(hj,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hj.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],hj);
_.w(hj,"ytd-thumbnail-overlay-pinking-renderer",function(){if(ojF!==void 0)return ojF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ojF=D},{mode:1});var Fh1;var a_=function(){var D=_.c.apply(this,arguments)||this;D.disableTooltips=!1;D.isLoading=!1;D.useExpandableTooltip=!1;D.toggled=!1;D.hovered=!1;D.mouseoverDelayJobId=0;D.toggleDelayJobId=0;D.expandAnimationDelayJobId=0;return D};
_.J(a_,_.c);_.V=a_.prototype;_.V.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");_.ZW(this.hostElement).querySelector("#tooltip").position=_.eA("HTML_DIR")==="rtl"?"right":"left"};
_.V.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.HK.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.HK.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.HK.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.V.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.HK.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.HK.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.HK.cancelJob(this.expandAnimationDelayJobId)};
_.V.computeIcon=function(D,v,h){return(D=h?v:D)&&D.iconType?_.SQ(D.iconType):void 0};
_.V.computeAriaLabel=function(D,v,h){return _.k(h?v:D,xEF).label};
_.V.computeTooltip=function(D,v,h){return h?v:D};
_.V.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.V.computeIconOnHover=function(D,v){if((D==null?0:D.iconType)&&!v)return _.SQ(D.iconType)};
_.V.onTap=function(D){var v=this;D.stopPropagation();D.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(D),this.useExpandableTooltip&&(this.toggleDelayJobId=_.I3(_.HK,function(){v.hovered=!1;v.data&&!v.data.toggledServiceEndpoint&&(v.expandAnimationDelayJobId=_.I3(_.HK,function(){v.set("data.isToggled",
!1)},200))},2E3))};
_.V.onMouseenter=function(){var D=this;this.mouseoverDelayJobId=_.I3(_.HK,function(){D.hovered=!0},300)};
_.V.onMouseleave=function(){_.HK.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.V.onServiceRequestCompleted=function(D,v){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(v)||this.set("data.isToggled",!this.data.isToggled)};
_.V.serviceRequestWasSuccessful=function(D){return _.k(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.$G)?D.data.status==="STATUS_SUCCEEDED":!0};
a_.prototype.onServiceRequestCompleted=a_.prototype.onServiceRequestCompleted;a_.prototype.onPopupClosed=a_.prototype.onPopupClosed;a_.prototype.onPopupOpened=a_.prototype.onPopupOpened;a_.prototype.onMouseleave=a_.prototype.onMouseleave;a_.prototype.dataChanged=a_.prototype.dataChanged;_.e([_.l(_.tx),_.n("design:type",Object)],a_.prototype,"ironButtonState",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],a_.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],a_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.n("design:type",Object)],a_.prototype,"ariaLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],a_.prototype,"disableTooltips",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],a_.prototype,"popupOpen",void 0);_.e([_.Y(),_.n("design:type",Object)],a_.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Element)],a_.prototype,"eventSink",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],a_.prototype,"useExpandableTooltip",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.n("design:type",Object)],a_.prototype,"toggled",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],a_.prototype,"hovered",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.n("design:type",Object)],a_.prototype,"iconOnHover",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],a_.prototype,"dataChanged",null);
_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],a_.prototype,"onMouseleave",null);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],a_.prototype,"onPopupOpened",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],a_.prototype,"onPopupClosed",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],a_.prototype,"onServiceRequestCompleted",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],a_);
_.w(a_,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Fh1!==void 0)return Fh1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Fh1=D},{mode:_.E_("kevlar_poly_si_batch_j053")?1:2});var zLm;var UUy=_.H(function(D){var v=D.data;var h=D.thumbnailSize;var a=function(){return v().enableSegmentView};
return _.F("yt-thumbnail-overlay-progress-bar-view-model",{class:_.S3("ytThumbnailOverlayProgressBarHost",function(){return I8O(h==null?void 0:h())})},_.F(_.z,{cond:a,
then:function(){return _.F("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.F("div",{class:_.sn("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+v().startPercent+"%"}}),_.F("div",{class:_.sn("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+v().segmentDurationPercent+"%"}},_.F("div",{class:_.sn("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.F("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.F("div",null," ",function(){return v().segmentLabel})),_.F("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.F("div",{class:_.sn("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.F(_.z,{cond:function(){return!a()&&v().startPercent},
then:function(){var Q={};return _.F("div",{class:_.sn("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.g("web_enable_modern_progress_bar_overlay"),Q))},_.F("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+v().startPercent+"%"}}))}}))},"xa");
UUy.idomCompat=!0;var Lh4=_.H(function(D){var v=_.ke(),h=_.Th(function(Q){var G,x,f;a:{var C=(G=D.data())==null?void 0:G.animationActivationTargetId;G=((x=D.data())==null?void 0:x.animationActivationEntityKey)||"";x=(f=D.data())==null?void 0:f.animationActivationEntitySelectorType;if(G&&C)switch(x){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Q=zTO(Q,G);f=_.xd().resolve(_.PV(_.Ok));C=!!(Q&&Q.videoId===C&&(f==null?0:f.isMiniplayerActive()));C={activated:C,playAnimation:C&&Q.playerState==="PLAYER_STATE_PLAYING"};
break a}C=void 0}return C});
_.bW(function(){var Q;if((Q=h())==null?0:Q.activated){var G;if((G=h())==null?0:G.playAnimation){var x;(x=v.lottieEl)==null||x.goToAndPlay(0)}else{var f;(f=v.lottieEl)==null||f.goToAndStop(0)}}},"DbQiXd");
var a=function(){var Q,G=!((Q=h())==null||!Q.activated);if(D.data()){Q=D.data();var x=void 0;Q.icon&&(x=_.roc(Q.icon),x=Q0I(x));var f=void 0,C;if((C=Q.backgroundColor)==null?0:C.lightTheme){var U;f={backgroundColor:DW((U=Q.backgroundColor)==null?void 0:U.lightTheme,"0.8")}}if(Q.text||x||G){if(G&&Q.lottieData&&v){U=Q.lottieData;var L,Z,E;C={animationConfig:{name:U.url,path:U.url,autoplay:(L=U.settings)==null?void 0:L.autoplay,loop:(E=(Z=U.settings)==null?void 0:Z.loop)!=null?E:!0},animationRef:v}}else C=
void 0;if(G)L=17;else b:switch(Q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":L=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":L=19;break b;default:L=17}G={type:L,text:G&&Q.animatedText?Q.animatedText:Q.text,icon:x,customColors:f,animation:C}}else G=void 0}else G=void 0;return G};
return _.F("yt-thumbnail-badge-view-model",{class:_.S3("ytThumbnailBadgeViewModelHost",D.class)},_.F(_.z,{cond:a,then:function(){return _.F(_.fn,{data:function(){return a()}})}}))},"za");var Z8J=_.H(function(D){var v={},h={};return _.F("yt-thumbnail-bottom-overlay-view-model",{class:_.S3("ytThumbnailBottomOverlayViewModelHost",(v.ytThumbnailBottomOverlayViewModelHostBackground=function(){return D.data().enableGradientBackground},v))},_.F(_.c4,{data:function(){return D.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(a){return _.F(UUy,{data:a.data,
thumbnailSize:D.thumbnailSize})}}),_.F("div",{class:_.S3("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var a;
return gW7((a=D.thumbnailSize)==null?void 0:a.call(D))},(h.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var a;
return(a=D.isClip)==null?void 0:a.call(D)},h.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var a;
return!_.g("web_enable_modern_progress_bar_overlay")&&((a=D.thumbnailSize)==null?void 0:a.call(D))==="small"},h))},_.F(_.c4,{data:function(){return D.data().badge}},{thumbnailBadgeViewModel:function(a){return _.F(Lh4,{data:a.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.F(_.c4,{data:function(){return D.data().badges}},{thumbnailBadgeViewModel:function(a){return _.F(Lh4,{data:a.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Aa");
Z8J.idomCompat=!0;_.zh(Z8J,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.C_,thumbnailSize:_.C_,isClip:_.C_}});var Xy2={calledOnce:!1,state:"visible"},AC2={calledOnce:!1,state:"hidden"};var $u=_.H(function(D){var v=D.data;var h=D.className;D=D.alwaysShow;var a=_.JCf(),Q={};return _.F("thumbnail-hover-overlay-view-model",{el:_.ML(_.eb(function(){return v().rendererContext})),
class:_.S3("ytThumbnailHoverOverlayViewModelHost",h,(Q.ytThumbnailHoverOverlayViewModelHostForceHover=D,Q)),"aria-label":function(){var G;return(G=_.k(v().rendererContext,_.BO))==null?void 0:G.label},
role:function(){return _.yL(v().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.yL(v().rendererContext)!==void 0?0:void 0},
"on:keypress":a},_.F("div",{class:_.S3("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(v().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var G="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:G="ytThumbnailHoverOverlayViewModelStyleCover"}return G})},_.F(_.z,{cond:function(){return v().icon},
then:function(G){return _.F(_.PX,{data:G,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.F(_.z,{cond:function(){return v().text},
then:function(G){return _.F(_.IY,{text:G,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ca");
$u.idomCompat=!0;var Ejm=_.H(function(D){var v=D.data;return _.F(_.c4,{data:function(){return v==null?void 0:v().overlays}},{thumbnailHoverOverlayViewModel:$u})},"Da");
Ejm.idomCompat=!0;var IA9={};var gjJ=_.H(function(D){var v=D.data;var h=D.image;var a=D.state;var Q=D.iconType;var G=D.overlays;var x=D.isOverlay;var f=_.$X("div");D=_.P(_.Zq(!0,void 0,"AA4e7b"));var C=D.next().value,U=D.next().value,L=function(){return!!v().onTap},Z=_.MK(Q,"LIVE");
_.bW(function(){var I=v();requestAnimationFrame(function(){if(f.value===null)var S=!0;else{var B=f.value;S=I.badgeText;var A=dWi(I.size);S in IA9?B=IA9[S]:(B=B.clientWidth,IA9[S]=B);(S=B>A)?f.value.style.display="none":f.value.style.visibility="visible"}U(S)})},"vNdN8b");
var E=function(){var I={};return I["yt-spec-avatar-shape__image"]=!0,I["yt-spec-avatar-shape__image--ads-app"]=v().type===1,I["yt-spec-avatar-shape__image--inscribed-square"]=v().type===2,I};
return _.F("yt-avatar-shape",null,_.F("div",{el:_.ML(sxc(L,{keydown:function(I){if(I.key==="Enter"){var S;(S=I.currentTarget)==null||S.click()}},
click:function(I){var S,B;return void((B=(S=v()).onTap)==null?void 0:B.call(S,I))}})),
class:function(){var I={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},S=v();I=(I[S.clusterLayoutConfig?yCf(S.clusterLayoutConfig):wyf(S.size)]=!0,I["yt-spec-avatar-shape__button--tappable"]=L(),I);(S=v().avatarButtonCustomClassName)&&(I[S]=!0);return _.sn(I)},
"aria-label":function(){return L()?v().accessibilityText:""},
role:function(){return L()?"button":void 0},
tabindex:function(){return L()?0:void 0}},_.F("div",{class:function(){var I,S=v(),B=a==null?void 0:a(),A=x==null?void 0:x(),d=!((I=S.decorations)==null||!I.includes(2)||S.size!=="medium"&&S.size!=="large"),b=S.size==="tiny"||S.size==="extra-small",W,K,O,R,vA={};
I=(vA["yt-spec-avatar-shape--live-ring"]=!!(((W=S.decorations)==null?0:W.includes(0))&&nWL(S.size)),vA["yt-spec-avatar-shape--stories-watched"]=d&&!(B==null||!B.storiesWatched),vA["yt-spec-avatar-shape--stories-unwatched"]=d&&!(B==null?0:B.storiesWatched),vA["yt-spec-avatar-shape--background-border"]=Otr(S.decorations)&&!b,vA["yt-spec-avatar-shape--background-border-thin"]=Otr(S.decorations)&&b,vA["yt-spec-avatar-shape__on-select-border"]=!((K=S.decorations)==null||!K.includes(4)),vA["yt-spec-avatar-shape__white-border"]=
!((O=S.decorations)==null||!O.includes(5)),vA["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((R=S.decorations)==null?0:R.includes(5))&&b),vA["yt-spec-avatar-shape--is-overlay"]=!!A,vA);return _.sn(I)},
style:function(){a:{var I=v().clusterLayoutConfig;if(I){b:{var S=I.numAvatarsInCluster;var B=I.avatarIndex;if(B!==S-1){switch(I.clusterSize){case "small":I="32";break;case "medium":I="36";break;case "40":I="40";break;default:S=void 0;break b}S="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+I+"x"+I+"_avatars_"+S+"_index_"+B+".svg"}else S=void 0}if(S){S=_.NL({"-webkit-mask-image":"url("+S+")","mask-image":"url("+S+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}S=void 0}return S}},_.F("div",{class:function(){var I={};
var S=v();I=(I[S.clusterLayoutConfig?mWO(S.clusterLayoutConfig):Ht2(S.size)]=!0,I["yt-spec-avatar-shape--no-margin"]=Otr(v().decorations),I["yt-spec-avatar-shape--square"]=v().type===2,I);return _.sn(I)}},_.F(_.PX,{data:h,
alt:function(){return!L()&&v().accessibilityText?v().accessibilityText:""},
targetWidth:function(){return eW8(v().size)},
targetHeight:function(){return eW8(v().size)},
className:function(){return _.sn(E())}}),_.F(_.z,{cond:function(){var I;
return((I=v().decorations)==null?void 0:I.includes(0))&&nWL(v().size)},
then:function(){return _.F("div",{class:function(){var I={};I=(I["yt-spec-avatar-shape__live-badge"]=!0,I["yt-spec-avatar-shape__live-badge--badge-small"]=v().size==="small",I["yt-spec-avatar-shape__live-badge--badge-medium"]=v().size==="medium"||v().size==="48",I["yt-spec-avatar-shape__live-badge--badge-large"]=v().size==="large",I["yt-spec-avatar-shape__live-badge--badge-extra-large"]=v().size==="extra-large"||v().size==="extra-extra-large"||v().size==="giant",I);return _.sn(I)}},_.F(_.z,{cond:function(){return v().badgeText},
then:function(I){return _.F("div",{class:"yt-spec-avatar-shape__badge-text",el:f},I)}}),_.F(_.z,{cond:C,
then:function(){return _.F("div",{class:"yt-spec-avatar-shape__badge-icon"},_.F(_.Y5,{icon:Z,size:function(){a:switch(v().size){case "extra-large":var I=16;break a;default:I=13}return I}}))}}))}}),_.F(_.z,{cond:function(){var I,S;
return((I=v().decorations)==null?void 0:I.includes(1))||((S=v().decorations)==null?void 0:S.includes(0))&&!nWL(v().size)},
then:function(){return _.F("div",{class:function(){var I=v(),S,B,A={};var d=(A["yt-spec-avatar-shape__live-dot"]=!((S=I.decorations)==null||!S.includes(0)||nWL(I.size)),A["yt-spec-avatar-shape__new-content"]=!((B=I.decorations)==null||!B.includes(1)),A);return _.sn(d)}})}}),_.F(_.z,{cond:function(){return!!G},
then:function(){return _.F("div",{class:function(){var I={};I=Object.assign((I["yt-spec-avatar-shape__image-overlays"]=!0,I),E());return _.sn(I)}},G==null?void 0:G())}})))))},"Ga");
gjJ.idomCompat={callbacks:{overlays:!0}};_.Q2=_.H(function(D){function v(){h().endpoint&&_.r4(h().endpoint)}
var h=D.data;var a=D.decorations;var Q=D.avatarButtonCustomClassName;var G=D.isOverlay;var x=D.clusterLayoutConfig;return _.F("avatar-view-model",null,_.F(_.z,{cond:function(){return h().image},
then:function(f){return _.F(gjJ,{data:function(){return Tgc({data:h(),onTap:h().endpoint?v:void 0,decorations:a==null?void 0:a(),badgeText:void 0,accessibilityText:h().accessibilityText,avatarButtonCustomClassName:Q==null?void 0:Q(),clusterLayoutConfig:x==null?void 0:x()})},
image:f,iconType:"RADAR_LIVE",overlays:function(){return _.F(Ejm,{data:h})},
isOverlay:G})}}))},"Ha");
_.Q2.idomCompat=!0;_.GG=_.H(function(D){var v=D.data;D=D.className;var h=_.$X("yt-decorated-avatar-view-model"),a=function(){return _.k(v().avatar,_.nj)},Q=_.SM(function(){var G,x=v(),f=a(),C=_.yL(v().rendererContext),U=(G=h.value)!=null?G:void 0,L;
if(f){U={data:x,avatar:f,onTap:C,element:U};G=U.data;x=U.avatar;f=U.onTap;C=U.element;U=U.commandController;f=f?tP2(f,C,U):void 0;C=[];G.liveData&&C.push(0);var Z;U=(Z=G.liveData)==null?void 0:Z.liveBadgeText;Z=(L=_.k(G.rendererContext,_.BO))==null?void 0:L.label;L=Tgc({data:x,onTap:f,decorations:C,badgeText:U,accessibilityText:Z?Z:G.a11yLabel})}else L={size:"medium"};return L},void 0,"c00kWd");
return _.F("yt-decorated-avatar-view-model",{class:_.S3("ytDecoratedAvatarViewModelHost",D),el:h},_.F(_.z,{cond:function(){var G;return(G=a())==null?void 0:G.image},
then:function(G){return _.F(gjJ,{data:Q,image:G,iconType:"RADAR_LIVE",overlays:function(){return _.F(Ejm,{data:a})}})}}))},"Ia");
_.GG.idomCompat=!0;_.V2=_.H(function(D){var v=function(){var f;return Object.assign({},D.data(),(f=D.overrides)==null?void 0:f.call(D))},h=function(){return _.wp(v().rendererContext)},a=function(){var f=v().avatars,C,U;
return(U=(C=(f==null?0:f[0])?_.k(f[0],_.nj):void 0)==null?void 0:C.avatarImageSize)!=null?U:"AVATAR_SIZE_UNKNOWN"},Q=function(){return Ww4(v())},G=function(){if(v().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var f=void 0;
else if((f=D.decorations)==null?0:f.call(D))f=D.decorations();else{f=v();var C=0;f.avatars&&(C+=f.avatars.length);f.decoratedText&&(C+=1);f=C>1?[3]:[]}return f},x={};
return _.F("yt-avatar-stack-view-model",{el:_.ML(_.eb(function(){return v().rendererContext})),
class:_.S3("yt-avatar-stack-view-model",D.className,(x["yt-avatar-stack-view-model--tappable"]=h,x["yt-avatar-stack-view-model--is-overlay"]=D.isOverlay,x["yt-avatar-stack-view-model--medium-text"]=D.useMediumText,x)),tabindex:function(){return h()?0:void 0},
role:function(){return h()?"link":void 0},
"aria-label":function(){var f,C;return(C=(f=_.k(v().rendererContext,_.BO))==null?void 0:f.label)!=null?C:""}},_.F(_.z,{cond:function(){var f;
return v().avatars&&!((f=D.hideAvatar)==null?0:f.call(D))},
then:function(){return _.F("div",{class:"yt-avatar-stack-view-model__avatars"},_.F(_.z,{cond:function(){return v().decoratedText},
then:function(f){var C={};return _.F("div",{class:_.S3("yt-avatar-stack-view-model__text-container",(C["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return a()==="AVATAR_SIZE_XXS"||a()==="AVATAR_SIZE_XS"},C["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var U;
return((U=D.isOverlay)==null?void 0:U.call(D))&&(a()==="AVATAR_SIZE_XXS"||a()==="AVATAR_SIZE_XS")},C)),
style:_.NL({width:function(){return Q().avatarSizeInPx+"px"},
height:function(){return Q().avatarSizeInPx+"px"}})},_.F(_.IY,{text:f,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.F("div",{style:function(){return _.NL(Q().avatarStackStyle)()},
class:function(){return Q().avatarStackClass}},_.F(_.c4,{data:function(){return Q().avatars.reverse()}},{avatarViewModel:function(f,C){return _.F("div",{style:function(){var U,L;
return _.NL((L=(U=Q()).avatarStyle)==null?void 0:L.call(U,C()))()},
class:function(){return Q().avatarClass}},_.F(_.Q2,{data:f.data,
decorations:G,avatarButtonCustomClassName:function(){return Q().avatarButtonCustomClassName},
isOverlay:D.isOverlay,clusterLayoutConfig:function(){var U,L;return(L=(U=Q()).clusterLayoutConfig)==null?void 0:L.call(U,C())}}))},
decoratedAvatarViewModel:function(f,C){return _.F("div",{style:function(){var U,L;return _.NL((L=(U=Q()).avatarStyle)==null?void 0:L.call(U,C()))()},
class:function(){return Q().avatarClass}},_.F(_.GG,{data:f.data}))}})))}}),_.F(_.z,{cond:function(){return v().text},
then:function(f){return _.F(_.IY,{text:f,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ja");
_.V2.idomCompat=!0;_.zh(_.H(function(D){var v=D.data;var h=D.thumbnailSize;return _.F("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.F("div",{class:_.S3("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return rCI(h==null?void 0:h())})},_.F(_.c4,{data:function(){return v().avatarStack}},{avatarStackViewModel:function(a){return _.F(_.V2,{data:a.data,
decorations:[5]})}})))},"Ka"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.gj,
thumbnailSize:_.gj}});var kgy=_.H(function(D){D=_.fb(D,{hidden:!1});var v=D.data;return _.F("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:D.hidden},_.F(_.IY,{text:function(){return v().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.F(_.z,{cond:function(){return v().subtitle},
then:function(){return _.F(_.IY,{text:function(){return v().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"La");
kgy.idomCompat=!0;_.zh(kgy,"yt-thumbnail-overlay-title-view-model",{props:{data:_.gj,hidden:_.gj}});var SU4=_.H(function(D){D=_.fb(D,{isClip:!1});var v=D.data,h=D.thumbnailSize,a={};return _.F("yt-thumbnail-overlay-badge-view-model",{class:_.S3("yt-thumbnail-overlay-badge-view-model",function(){a:switch(v().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Q="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Q="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Q},function(){return uDq(h==null?void 0:h())},(a["yt-thumbnail-overlay-badge-view-model--clip"]=D.isClip,
a))},_.F(_.c4,{data:function(){return v().thumbnailBadges}},{thumbnailBadgeViewModel:function(Q){return _.F(Lh4,{data:Q.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ma");
SU4.idomCompat=!0;_.zh(SU4,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.gj,thumbnailSize:_.gj,isClip:_.gj}});var J_p=_.H(function(D){var v=D.data;D=D.hidden;var h=_.SM(function(){return v().indicatorCount||0},void 0,"AbKnMc"),a={};
return _.F("yt-page-indicator-view-model",{class:_.S3("ytPageIndicatorViewModelHost",(a.ytPageIndicatorViewModelIndicatorHidden=function(){return!v().indicatorCount},a)),
hidden:D},_.F(_.Xd,{each:function(){return Array(h())}},function(Q,G){var x={};
return _.F("div",{class:_.S3("ytPageIndicatorViewModelIndicator",(x.ytPageIndicatorViewModelIndicatorSelected=function(){return v().selectedIndex===G()},x))})}))},"Na");
J_p.idomCompat=!0;_.zh(J_p,"yt-page-indicator-view-model",{props:{data:_.gj,hidden:_.gj}});var P$=function(){var D=_.c.apply(this,arguments)||this;D.eventSink=function(){return D};
D.disableInteraction=!1;D.noRoundedCorners=!1;D.isPreviewLoading=!1;D.isOriginalAspectRatio=!1;D.computedObjectFit=!1;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return D};
_.J(P$,_.c);_.V=P$.prototype;
_.V.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:_.g("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"}}};
_.V.onImageLoaded=function(){this.loaded=!0};
_.V.onImageUnloaded=function(){this.loaded=!1};
_.V.computeRichThumbnail=function(D,v,h,a){if(D&&v&&!a&&!_.g("disable_moving_thumbs_handling")&&!h)return v};
_.V.computeImageWidth=function(D,v){return v||9999};
_.V.computeIsOriginalAspectRatio=function(D){return D};
_.V.computeIsLive=function(D){if(D==null?0:D.badges)for(var v=0;v<D.badges.length;v++){var h=D.badges[v];if(h.metadataBadgeRenderer&&h.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(D==null?0:D.thumbnailOverlays)for(v=0;v<D.thumbnailOverlays.length;v++)if(h=D.thumbnailOverlays[v],h.thumbnailOverlayTimeStatusRenderer&&h.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.V.computeObjectFit=function(D,v){return v||(D?"CONTAIN":"")};
_.V.computeNavigationEndpoint=function(D,v,h){return D?v:h};
_.V.computeHasClip=function(D){D=_.P(D||[]);for(var v=D.next();!v.done;v=D.next())if(v.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.V.computeOverlayColor=function(D){var v;return(D==null?0:(v=D.darkColorPalette)==null?0:v.section2Color)?D.darkColorPalette.section2Color:D==null?void 0:D.sampledThumbnailColor};
_.GT.Object.defineProperties(P$.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Jzo(this.width)}}});
P$.prototype.onImageUnloaded=P$.prototype.onImageUnloaded;P$.prototype.onImageLoaded=P$.prototype.onImageLoaded;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],P$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(vKy),_.n("design:type",Object)],P$.prototype,"ytdThumbnailBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],P$.prototype,"componentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],P$.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],P$.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],P$.prototype,"circular",void 0);
_.e([_.Y({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.n("design:type",Object)],P$.prototype,"richThumbnail",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.n("design:type",Boolean)],P$.prototype,"hasClip",void 0);_.e([_.Y(),_.n("design:type",Object)],P$.prototype,"eventSink",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],P$.prototype,"queued",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],P$.prototype,"richGridThumbnail",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],P$.prototype,"useExpandableTooltip",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],P$.prototype,"useUntranslatedNavigationEndpoint",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],P$.prototype,"disableInteraction",void 0);
_.e([_.Y({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.n("design:type",Object)],P$.prototype,"computedNavigationEndpoint",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],P$.prototype,"nowPlayingEqualizerOnly",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],P$.prototype,"hidePlaybackStatus",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],P$.prototype,"objectFit",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],P$.prototype,"noRoundedCorners",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],P$.prototype,"watchFeedThumbnail",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],P$.prototype,"isPreviewLoading",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.n("design:type",Object)],P$.prototype,"isOriginalAspectRatio",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.n("design:type",Object)],P$.prototype,"computedObjectFit",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.n("design:type",Boolean)],P$.prototype,"isLiveVideo",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],P$.prototype,"loaded",void 0);_.e([_.Y({computed:"computeOverlayColor(data.thumbnail)"}),_.n("design:type",Object)],P$.prototype,"overlayColor",void 0);_.e([_.Y({selector:_.ILr}),_.n("design:type",Boolean)],P$.prototype,"inlinePreviewIsEnabled",void 0);_.e([_.Y(),_.n("design:type",Number)],P$.prototype,"width",void 0);
_.e([_.N("inlinePreviewIsEnabled"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],P$.prototype,"isPreviewDisabled",null);_.e([_.N("width"),_.n("design:type",String),_.n("design:paramtypes",[])],P$.prototype,"thumbnailSize",null);_.e([_.lc("image-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P$.prototype,"onImageLoaded",null);
_.e([_.lc("image-unloaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P$.prototype,"onImageUnloaded",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-thumbnail"})],P$);
var pGJ=_.Zp()(P$,"ytd-thumbnail",function(){if(zLm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);zLm=D}D=zLm;return D},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var hLA=function(D){var v=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14925_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14925_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(h){lA4(v,h)};
this.onLockupMouseLeaveFn=function(h){h=h.relatedTarget;var a,Q;((a=document.getElementsByTagName("ytd-video-preview"))==null?0:(Q=a.item(0))==null?0:Q.contains(h))||(v.terminateVideoPreview(),xu(v))};
this.onThumbnailMouseDownFn=function(){v.terminateVideoPreview();xu(v)};
this.onTouchStart=function(){v.JSC$14925_touched=!0};
this.mediaRenderer=D.mediaRenderer;this.thumbnailElement=D.thumbnailElement;this.lockupElement=D.lockupElement;this.videoPreviewOptsInput=D.videoPreviewOpts;N$F(this);Mk(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)):
_.yR(Error("Kh")):_.yR(Error("Lh")):YU$(this)},hL=function(D){YU$(D);
var v;(v=D.lockupElement)==null||v.removeEventListener("mouseenter",D.onMouseMoveFn);var h;(h=D.lockupElement)==null||h.removeEventListener("mouseleave",D.onLockupMouseLeaveFn);var a;(a=D.lockupElement)==null||a.removeEventListener("touchstart",D.onTouchStart);var Q;(Q=D.thumbnailElement)==null||Q.removeEventListener("mousedown",D.onThumbnailMouseDownFn);xu(D)},N$F=function(D){D.inlinePreviewIsEnabledForUser=_.Gb().getState().ui.inlinePreviewIsEnabled;
D.unsubscribeFromInlinePreviewIsEnabled=_.Oe(_.Gb(),_.ILr,function(v){(D.inlinePreviewIsEnabledForUser=v)||xu(D)});
D.JSC$14925_unsubscribeFromInlinePreviewIsActive=_.Oe(_.Gb(),_.Emq,function(v){(D.inlinePreviewIsActive=v)||xu(D)})},YU$=function(D){D.unsubscribeFromInlinePreviewIsEnabled();
D.unsubscribeFromInlinePreviewIsEnabled=function(){};
D.JSC$14925_unsubscribeFromInlinePreviewIsActive();D.JSC$14925_unsubscribeFromInlinePreviewIsActive=function(){}},lA4=function(D,v){v.buttons>0||(v=_.oZ("kevlar_lockup_hover_delay",-1),D.JSC$14925_touched&&v>=0?(_.HK.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.I3(_.HK,function(){B$s(D)},v),D.JSC$14925_touched=!1):B$s(D))},yMI=function(D){D.videoPreviewJobId=_.I3(_.HK,function(){return _.M(function(v){return v.yield(c_m(D,{isAutoplay:!0}),0)})})},B$s=function(D){!D.previewTriggered&&Mk(D)&&
(D.inlinePreviewIsActive&&D.terminateVideoPreview(),D.previewTriggered=!0,D.mediaRenderer.isInlinePreviewTriggered=!0,_.HK.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.I3(_.HK,function(){return _.M(function(v){return v.yield(c_m(D),0)})}))},c_m=function(D,v){v=v===void 0?{}:v;
var h=v.isAutoplay===void 0?!1:v.isAutoplay;var a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){if(!Mk(D))return f.return();a=D.getVideoPreviewOpts();if(!a)return f.return();h&&(a.isAutoplay=!0);return(G=(Q=_.U9(D.mediaRenderer.hostElement,"yt-open-video-preview-action",[a]))&&Q[0])?f.yield(Q[0],3):f.jumpTo(2)}f.nextAddress!=2&&(G=f.yieldResult===1);if(G){var C=(x=D.mediaRenderer)==null?void 0:x.data;C&&(vj8(C)?delete C.inlinePlayerData:"inlinePlaybackEndpoint"in C&&delete C.inlinePlaybackEndpoint)}_.YI(f)})};
hLA.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var D,v;if((v=(D=this.videoPreviewOptsInput)==null?void 0:D.videoPreviewData)!=null)D=v;else if(D=this.mediaRenderer.data)if(vj8(D))D={inlinePlaybackEndpoint:_.Rq(D.inlinePlayerData.onVisible),navigationEndpoint:_.Rq(D.onTap),thumbnail:"image"in D?D.image:D.thumbnail,thumbnailOverlays:void 0,accessibilityText:DUc(D)};else if("multipleInlinePlaybackEndpoint"in D){var h=_.k(_.k(D.multipleInlinePlaybackEndpoint,k0$),Sjt);if(h!=
null&&h.playerDescriptors){v=[];h=_.P(h.playerDescriptors);for(var a=h.next();!a.done;a=h.next())a=a.value,v.push({inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:DUc(D)});D=v}else D=void 0}else D={inlinePlaybackEndpoint:D.inlinePlaybackEndpoint,navigationEndpoint:D.navigationEndpoint,thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays,accessibilityText:DUc(D)};else D=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:D,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Mk=function(D){var v;if(v=D.inlinePreviewIsEnabledForUser)v=(D=D.mediaRenderer.data)?"inlinePlaybackEndpoint"in D&&D.inlinePlaybackEndpoint||vj8(D)&&D.inlinePlayerData||"multipleInlinePlaybackEndpoint"in D&&D.multipleInlinePlaybackEndpoint?!0:!1:!1;return v};
hLA.prototype.terminateVideoPreview=function(){_.zU(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var xu=function(D){_.HK.cancelJob(D.videoPreviewJobId);D.inlinePreviewIsActive=!1;D.previewTriggered=!1;D.mediaRenderer.isInlinePreviewTriggered=!1};var XGt=_.DK(["#"]),fE=function(){var D=_.c.apply(this,arguments)||this;D.isDisabled=!1;return D};
_.J(fE,_.c);_.V=fE.prototype;_.V.configureRendererStamper=function(){return{"data.menu":Ot,"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"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.getMetadata=function(D){var v=[];if(D.metadataText&&Object.keys(D.metadataText).length>0){var h=this.ytRendererBehavior.getSimpleString(D.metadataText);D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&(h=_.dp(h,Number(D.upcomingEventData.startTime)));v.push(h)}else D.shortViewCountText&&v.push(this.ytRendererBehavior.getSimpleString(D.shortViewCountText)),D.publishedTimeText&&v.push(this.ytRendererBehavior.getSimpleString(D.publishedTimeText)),D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&
(h=this.ytRendererBehavior.getSimpleString(D.upcomingEventData.upcomingEventText),v.push(_.dp(h,Number(D.upcomingEventData.startTime))));return v};
_.V.calculateBylineText=function(D){return D.shortBylineText?D.shortBylineText:D.bylineText?D.bylineText:null};
_.V.calculateIsDisabled=function(D){return!!D.isDisabled};
_.V.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.GeL(XGt)};
_.V.onDetailsTap=function(D){var v=this.data&&this.data.navigationEndpoint;v&&!_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.g("kevlar_grid_video_renderer_killswitch")?_.F1(this.hostElement,"yt-navigate",{endpoint:v}):this.ytComponentBehavior.resolveCommand(v))};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14932_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:_.ZW(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ZW(this.hostElement).querySelector("ytd-thumbnail")})};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$14932_inlinePreviewHoverListener)==null||hL(D)};
_.V.computeThumbnailWidth=function(D,v){return v&&v>0?v:D?360:210};
_.V.computeNumBadgesInRow=function(D){var v;return((v=D.badges)==null?void 0:v.length)||0};
_.V.computeShowChannelThumbnail=function(D,v){var h;return v&&!!(D==null?0:(h=D.channelThumbnailSupportedRenderers)==null?0:h.channelThumbnailWithLinkRenderer)};
_.GT.Object.defineProperties(fE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$14932_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
fE.prototype.dataChanged=fE.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],fE.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],fE.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.E0),_.n("design:type",Object)],fE.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],fE.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fE.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],fE.prototype,"noEndpoints",void 0);_.e([_.Y({computed:"calculateBylineText(data)"}),_.n("design:type",Object)],fE.prototype,"bylineText",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],fE.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],fE.prototype,"isDownloading",void 0);_.e([_.Y({reflectToAttribute:!0,value:0}),_.n("design:type",Number)],fE.prototype,"width",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.n("design:type",Object)],fE.prototype,"isDisabled",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fE.prototype,"dataChanged",null);_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fE.prototype,"isHovered",null);_.e([_.m({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],fE);
_.w(fE,"ytd-grid-video-renderer",function(){if(aAF!==void 0)return aAF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" 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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return aAF=D},{mode:_.E_("kevlar_poly_si_batch_j047")?1:2});var A_J;var CE=function(){var D=_.c.apply(this,arguments)||this;D.roundedContainer=!0;D.skipRoundingTop=!1;D.disableTopPadding=!1;D.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");D.extractOverlay=!1;return D};
_.J(CE,_.c);CE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
CE.prototype.onClick=function(D){var v,h=(v=this.data)==null?void 0:v.sourceEndpoint;!_.Gf(_.Pr(D),this.hostElement,["A".toString()])&&h&&_.F1(this.hostElement,"yt-navigate",{endpoint:h})};
_.GT.Object.defineProperties(CE.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.data)==null?void 0:D.paragraphMaxLines)!=null?v:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],CE.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CE.prototype,"showVerticalDividers",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CE.prototype,"roundedContainer",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CE.prototype,"skipRoundingTop",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CE.prototype,"disableTopPadding",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],CE.prototype,"amsterdamEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CE.prototype,"extractOverlay",void 0);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],CE.prototype,"showMetadataAtTop",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],CE.prototype,"showMetadataBelowTitle",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.menu"),_.n("design:type",Object),_.n("design:paramtypes",[])],CE.prototype,"hasMenu",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.truncateParagraphs"),_.n("design:type",Object),_.n("design:paramtypes",[])],CE.prototype,"truncateParagraphs",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.paragraphMaxLines"),_.n("design:type",Number),_.n("design:paramtypes",[])],CE.prototype,"paragraphMaxLines",null);
_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.N("data.background"),_.n("design:type",Object),_.n("design:paramtypes",[])],CE.prototype,"background",null);_.e([_.m({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],CE);
_.w(CE,"ytd-info-panel-content-renderer",function(){if(A_J!==void 0)return A_J;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return A_J=D},{mode:_.E_("kevlar_poly_si_batch_j076")?1:2});var qUs;var b8y;var dUJ;var jw$;var o_=function(){return _.c.apply(this,arguments)||this};
_.J(o_,_.c);o_.prototype.computeStyle=function(D){return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],o_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],o_.prototype,"style_",void 0);_.e([_.Ry({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],o_);
_.w(o_,"yt-channel-thumbnail-with-link-renderer",function(){if(jw$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;dUJ===void 0&&(dUJ=document.createElement("template"));var a=dUJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);jw$=D}D=jw$;return D},{mode:2});var FE=function(){return _.c.apply(this,arguments)||this};
_.J(FE,_.c);FE.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"}}}};
FE.prototype.computeTitleStyle=function(D){return D||null};
FE.prototype.computeAvatarStyle=function(D){return D||null};
FE.prototype.computeShowNavigationButton=function(D,v){return!(D==null||!D.navigationButton||v)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FE.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.n("design:type",String)],FE.prototype,"titleStyle",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.n("design:type",String)],FE.prototype,"avatarStyle",void 0);_.e([_.Y(),_.n("design:type",Boolean)],FE.prototype,"hideNavigationButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],FE.prototype,"isModernSd",void 0);_.e([_.m({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],FE);
_.w(FE,"ytd-rich-list-header-renderer",function(){if(b8y!==void 0)return b8y;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return b8y=D},{mode:_.E_("kevlar_poly_si_batch_j058")?1:2});var zG=function(){return _.c.apply(this,arguments)||this};
_.J(zG,_.c);zG.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]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zG.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],zG.prototype,"isSearch",void 0);_.e([_.m({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],zG);
_.w(zG,"ytd-preview-card-renderer",function(){if(qUs!==void 0)return qUs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return qUs=D},{mode:1});var sw1;var Up=function(){return _.c.apply(this,arguments)||this};
_.J(Up,_.c);Up.prototype.configureRendererStamper=function(){return{"data.menu":Ot}};
Up.prototype.dataChanged=function(){var D=this.get("colorExtractionPalette.section1Color",this.data);D=_.rT(D);_.SB(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":D})};
Up.prototype.computeCardStyle=function(D){return this.get("style.value",D)||null};
Up.prototype.dataChanged=Up.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],Up.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Up.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.n("design:type",String)],Up.prototype,"cardStyle",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Up.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Up);
_.w(Up,"ytd-compact-channel-recommendation-card-renderer",function(){if(sw1!==void 0)return sw1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return sw1=D},{mode:1});var mUF;var H8J;var LE=function(){var D=_.c.apply(this,arguments)||this;D.alignAuto=!1;D.collapsed=!0;D.isToggled=!1;D.alwaysCollapsed=!1;D.canToggle=!0;D.collapsedHeight=80;D.disableToggle=!1;D.alwaysToggleable=!1;D.reversed=!1;D.shouldUseNumberOfLines=!1;D.recomputeOnResize=!1;D.canToggleJobId=0;D.lastReversed=!1;return D};
_.J(LE,_.c);_.V=LE.prototype;_.V.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.V.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.V.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var D=_.ZW(this.hostElement),v=D.childNodes,h=document.createDocumentFragment(),a=D.childNodes.length-1;a>=0;a--)_.ZW(h).appendChild(v[a]);_.g("enable_shadydom_free_scoped_node_methods")?_.EI(this.hostElement).appendChild(h):D.appendChild(h)}};
_.V.ready=function(){var D=this;_.hD(function(){D.initChildrenObserver()},1)};
_.V.attached=function(){var D;(D=this.resizeObserver)==null||D.observe(this.content)};
_.V.detached=function(){this.detachObserver()};
_.V.toggle=function(D,v){this.canToggle&&(this.isToggled=v,_.F1(this.hostElement,"yt-refit"),D&&D.stopPropagation())};
_.V.reset=function(){this.childrenChanged()};
_.V.onIronResize=function(){this.recomputeOnResize&&!_.g("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.V.computeIsMoreVisible=function(D,v){return D&&!v};
_.V.computeShouldUseNumberOfLines=function(D){try{return!!D&&window.CSS.supports("-webkit-line-clamp","1")}catch(v){}return!1};
_.V.computeIsLessVisible=function(D,v){return D&&v};
_.V.observeCollapsedHeightAndMaxLines=function(){var D=this.collapsedHeight,v=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.SB(this.hostElement,{"--ytd-expander-max-lines":""+v,"--ytd-expander-collapsed-height":""}):_.SB(this.hostElement,{"--ytd-expander-collapsed-height":D+"px","--ytd-expander-max-lines":""})};
_.V.handleMoreTap=function(D){this.disableToggle||(_.F1(this.hostElement,"yt-expander-more-tapped"),this.toggle(D,!0))};
_.V.handleLessTap=function(D){_.F1(this.hostElement,"yt-expander-less-tapped");this.toggle(D,!1)};
_.V.initChildrenObserver=function(){var D=this;this.observer=new MutationObserver(function(){D.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.g("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.tn(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var v;(v=D.resizeThrottle)==null||v.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.V.childrenChanged=function(){var D=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){EA(function(){D.canToggleJobId=0;D.calculateCanCollapse()})}))};
_.V.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};
_.V.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.V.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("collapsed-changed",this.collapsed))};
_.V.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("is-toggled-changed",this.isToggled))};
_.V.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("can-toggle-changed",this.canToggle))};
_.GT.Object.defineProperties(LE.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
LE.prototype.canToggleChangedForBinding=LE.prototype.canToggleChangedForBinding;LE.prototype.isToggledChangedForBinding=LE.prototype.isToggledChangedForBinding;LE.prototype.collapsedChangedForBinding=LE.prototype.collapsedChangedForBinding;LE.prototype.observeCollapsedHeightAndMaxLines=LE.prototype.observeCollapsedHeightAndMaxLines;LE.prototype.onIronResize=LE.prototype.onIronResize;LE.prototype.reversedChanged=LE.prototype.reversedChanged;LE.prototype.toggledChanged=LE.prototype.toggledChanged;
LE.prototype.alwaysToggleableChanged=LE.prototype.alwaysToggleableChanged;_.e([_.l(_.iN),_.n("design:type",Object)],LE.prototype,"ironResizableBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],LE.prototype,"alignAuto",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],LE.prototype,"collapsed",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"isToggled",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"alwaysCollapsed",void 0);
_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"canToggle",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"collapsedHeight",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"disableToggle",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"alwaysToggleable",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"reversed",void 0);_.e([_.Y(),_.n("design:type",Number)],LE.prototype,"maxNumberOfLines",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.n("design:type",Object)],LE.prototype,"shouldUseNumberOfLines",void 0);_.e([_.Y(),_.n("design:type",Object)],LE.prototype,"recomputeOnResize",void 0);_.e([_.Br("#content"),_.n("design:type",HTMLDivElement)],LE.prototype,"content",void 0);_.e([_.qi("alwaysToggleable"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"alwaysToggleableChanged",null);
_.e([_.qi("isToggled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"toggledChanged",null);_.e([_.N("canToggleJobId"),_.n("design:type",Object),_.n("design:paramtypes",[])],LE.prototype,"isResetting",null);_.e([_.Ni("reversed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"reversedChanged",null);
_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"onIronResize",null);_.e([_.Ni("maxNumberOfLines","collapsedHeight"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"observeCollapsedHeightAndMaxLines",null);_.e([_.Ni("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"collapsedChangedForBinding",null);
_.e([_.Ni("isToggled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"isToggledChangedForBinding",null);_.e([_.Ni("canToggle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LE.prototype,"canToggleChangedForBinding",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-expander"})],LE);
_.w(LE,"ytd-expander",function(){if(H8J!==void 0)return H8J;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return H8J=D},{mode:1});var Zk=function(){return _.c.apply(this,arguments)||this};
_.J(Zk,_.c);Zk.prototype.computeIsCarousel=function(D){return!!D.isCarousel};
Zk.prototype.observeLightsourcePalette=function(){var D,v=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;v&&_.sA(this.hostElement,v)};
Zk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Zk.prototype.observeLightsourcePalette=Zk.prototype.observeLightsourcePalette;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Zk.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Zk.prototype,"data",void 0);_.e([_.Y({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Zk.prototype,"isCarousel",void 0);
_.e([_.Ni("data.vibrantsourceColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zk.prototype,"observeLightsourcePalette",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Zk);
_.w(Zk,"ytd-media-upsell-renderer",function(){if(mUF!==void 0)return mUF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return mUF=D},{mode:2});var y_J;var Ep=function(){var D=_.c.apply(this,arguments)||this;D.JSC$14959_playerEvents=new Map;D.listeningToPlayer=!1;D.startX=0;D.active=!1;D.shouldShowButtons=_.g("web_buttons_hidden_killswitch");D.isHighlighted=!1;D.useHighlightStyling=_.g("web_enable_deeper_metadata_highlight_styling");D.modern=_.g("kevlar_modern_sd");D.enableProblemWalkthrough=_.g("problem_walkthrough_sd");return D};
_.J(Ep,_.c);_.V=Ep.prototype;
_.V.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}}}}}};
_.V.created=function(){this.JSC$14959_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.pZ(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.pZ(this,this.onActiveUpdate))};
_.V.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.pZ(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.pZ(this,this.onActiveUpdate))};
_.V.onDataChanged=function(){this.removePlayerListeners()};
_.V.onColorPaletteChange=function(){var D={},v;if(_.sL()==="USER_INTERFACE_THEME_DARK"&&((v=this.data)==null?0:v.darkColorPalette)){var h=this.data.darkColorPalette;D["--ytd-macro-markers-list-item-background-color"]=_.uu(this.get("section2Color",h))}else{var a;_.sL()==="USER_INTERFACE_THEME_LIGHT"&&((a=this.data)==null?0:a.lightColorPalette)&&(h=this.data.lightColorPalette,D["--ytd-macro-markers-list-item-background-color"]=_.uu(this.get("section3Color",h)))}h?(D["--ytd-macro-markers-list-item-title-color"]=
_.uu(this.get("primaryTitleColor",h)),D["--ytd-macro-markers-list-item-secondary-color"]=_.uu(this.get("secondaryTitleColor",h)),D["--ytd-macro-markers-list-item-timestamp-background-color"]=_.uu(this.get("section1Color",h)),this.customButtonProperties={customColors:{color:_.uu(this.get("primaryTitleColor",h))}},this.useColorSampling=!0):(D["--ytd-macro-markers-list-item-background-color"]="initial",D["--ytd-macro-markers-list-item-title-color"]="initial",D["--ytd-macro-markers-list-item-secondary-color"]=
"initial",D["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.SB(this.hostElement,D)};
_.V.onEndpointMouseDown=function(D){this.startX=D.clientX};
_.V.onEndpointClick=function(D){var v=this,h,a,Q;return _.M(function(G){if(G.nextAddress==1){if(v.startX!==D.clientX)return D.preventDefault(),G.return();v.data&&v.ytRendererBehavior.logExplicitClick(v.data);if(!v.seekWithAnimationOnClick)return G.jumpTo(0);if(D.button!==0||D.shiftKey||D.altKey||D.metaKey||D.ctrlKey||_.Gf(_.Pr(D),v.hostElement,["BUTTON".toString()]))return G.return();D.stopPropagation();D.preventDefault();return v.data?G.yield(_.fj().getPlayerPromise(),3):G.return()}h=G.yieldResult;
Q=(a=_.k(v.data.onTap,_.hP))==null?void 0:a.startTimeSeconds;Q!==void 0&&h.seekToTimeWithAnimation(Q*1E3,_.$V(v.data.title));_.YI(G)})};
_.V.computeLayout=function(D){return D};
_.V.computeIsHighlighted=function(D){return!!D};
_.V.computeCarouselType=function(D){return D};
_.V.hideModernCarousel=function(D){return this.modern&&this.hideThumbnail(D)};
_.V.hideThumbnail=function(D){return this.enableProblemWalkthrough&&D!==null&&D==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.V.onRepeatButtonToggle=function(D){var v=this;D.detail.toggled&&_.fj().getPlayerPromise().then(function(h){v.ytPlayerListenerBehavior.listenToPlayerEvents(h,v.JSC$14959_playerEvents);v.listeningToPlayer=!0})};
_.V.onLoopRangeChange=function(D){var v=_.ZW(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(v){var h=v.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",v.polymerController.data);if(h){var a=Number(h.endTimeMs);if(Number(h.startTimeMs)!==(D==null?void 0:D.startTimeMs)||a!==(D==null?void 0:D.endTimeMs))v.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.V.removePlayerListeners=function(){var D=this;this.listeningToPlayer&&_.fj().getPlayerPromise().then(function(v){D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(v,D.JSC$14959_playerEvents);D.listeningToPlayer=!1})};
_.V.onActiveUpdate=function(D){this.active=D.detail.active};
Ep.prototype.onColorPaletteChange=Ep.prototype.onColorPaletteChange;Ep.prototype.onDataChanged=Ep.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],Ep.prototype,"ytPlayerListenerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ep.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Ep.prototype,"useCustomColors",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ep.prototype,"active",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ep.prototype,"shouldShowButtons",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.n("design:type",String)],Ep.prototype,"layout",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.n("design:type",Object)],Ep.prototype,"isHighlighted",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ep.prototype,"useHighlightStyling",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ep.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ep.prototype,"enableProblemWalkthrough",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.n("design:type",String)],Ep.prototype,"carouselType",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ep.prototype,"useColorSampling",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Ep.prototype,"seekWithAnimationOnClick",void 0);_.e([_.Y(),_.n("design:type",Object)],Ep.prototype,"customButtonProperties",void 0);
_.e([_.Br("#repeat-button"),_.n("design:type",HTMLElement)],Ep.prototype,"repeatButton",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ep.prototype,"onDataChanged",null);_.e([_.Ni("data.lightColorPalette","data.darkColorPalette"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ep.prototype,"onColorPaletteChange",null);_.e([_.m({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Ep);
_.w(Ep,"ytd-macro-markers-list-item-renderer",function(){if(y_J!==void 0)return y_J;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[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');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return y_J=D},{mode:1});var wGJ;var eL9;var I_=function(){return _.c.apply(this,arguments)||this};
_.J(I_,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],I_.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],I_);
_.w(I_,"ytd-title-and-button-list-header-renderer",function(){if(eL9!==void 0)return eL9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return eL9=D},{mode:1});var njJ;var O8M=new _.Uj("BUTTON_RENDERER_WIZ_TOKEN"),Khp=new _.Uj("BUTTON_RENDERER_TOKEN");_.gz=_.H(function(D){var v=_.xd().resolve(_.PV(O8M));if(v)return _.F(v,Object.assign({},D,{overrides:D.buttonOverrides}));var h=_.xd().resolve(Khp);return h?_.F(sic,null,function(){return _.F(QX,null,function(){var a,Q,G,x,f,C,U,L,Z,E,I,S;return void h(D.data(),{onButtonClickCallback:D.onButtonClickCallback,shouldShowIcons:(a=D.shouldShowIcons)==null?void 0:a.call(D),icon:(Q=D.icon)==null?void 0:Q.call(D),processAllEndpoints:(G=D.processAllEndpoints)==null?void 0:G.call(D),preventDefault:(x=D.preventDefault)==
null?void 0:x.call(D),stopPropagation:(f=D.stopPropagation)==null?void 0:f.call(D),disableButtonRendererClickHandling:(C=D.disableButtonRendererClickHandling)==null?void 0:C.call(D),className:(U=D.className)==null?void 0:U.call(D),buttonOverrides:(L=D.buttonOverrides)==null?void 0:L.call(D),forceModernIconButton:(Z=D.forceModernIconButton)==null?void 0:Z.call(D),isSubscribe:(E=D.isSubscribe)==null?void 0:E.call(D),alignByText:(I=D.alignByText)==null?void 0:I.call(D),forceDisabled:(S=D.forceDisabled)==
null?void 0:S.call(D)})})}):_.F(_.xf,null)},"Oa");
_.gz.idomCompat=!0;var T$y=_.H(function(D){var v=D.data,h=_.MK(D.useSquareAspectRatio,!1);return _.F("dismissed-mini-game-card-view-model",null,_.F(_.z,{cond:function(){var a,Q;return(a=v().responseText)==null?void 0:(Q=a.runs)==null?void 0:Q.length},
then:function(){var a={};return _.F("div",{class:_.S3("yt-mini-game-card-view-model__dismissed-card",(a["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!h()},a["yt-mini-game-card-view-model--dismissed-square-card"]=h,a))},_.F("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.F(_.z,{cond:function(){return v().responseText.runs[0].text},
then:function(Q){return _.F("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Q},Q)}}),_.F(_.c4,{data:function(){return v().buttons}},{buttonRenderer:_.gz,
buttonViewModel:_.s$})))}}))},"Pa");var DRm=_.H(function(D){D=_.fb(D,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var v=D.data,h=D.useFullWidth,a=D.isDesktopWeb,Q=D.addSearchResultTopMargin,G=function(){return v().layout},x=function(){return v().title},f=function(){return v().metadataText?v().metadataText:v().genre},C=function(){return v().channelName},U=function(){return v().image},L=function(){return v().colorPalette},Z=function(){return v().actionButton},E=function(){return v().overflowButton},
I=function(){return v().avatar},S=function(){var b={};
b=_.S3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(b["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return a()},b));
return _.F("div",{class:b},_.F(RL4,{imageData:U,colorPalette:L}),_.F(i8t,{onTap:function(){return v().onTap},
imageData:U,accessibilityText:function(){return v().accessibilityText},
overlayBadgeText:function(){return v().overlayBadgeText},
iconName:function(){return v().iconName},
unplayableInlinePlaybackIconName:function(){return v().unplayableInlinePlaybackIconName},
isDesktopWeb:a}),_.F(_.z,{cond:function(){return!a()},
then:function(){return _.F(_.xf,null,_.F(Whm,{layout:G,colorPalette:L,isDesktopWeb:a,overflowButton:E,avatar:I,onTap:function(){return v().onTap},
genre:f,title:x,channelName:C}),_.F(tN$,{actionButton:Z}))}}))},B=function(){var b={};
b=_.S3((b["yt-mini-game-card-view-model--search-result-desktop"]=function(){return a()},b["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!a()},b["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Q()},b));
return _.F("div",{class:b},S(),_.F(r_$,{description:function(){return v().description},
isDesktopWeb:a,title:x,genre:f,onTap:function(){return v().onTap},
actionButton:Z,overflowButton:E,avatar:I,channelName:C}))},A=function(){var b={};
b=_.S3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(b["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return a()},b["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return a()&&v().width===135},b["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return a()},b["yt-mini-game-card-view-model--big-metadata-font"]=function(){return v().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},b["yt-mini-game-card-view-model--use-full-width"]=
function(){return h()},b["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!Z()},b));
return _.F("div",{class:b},_.F(uKb,{colorPalette:L,isDesktopWeb:a,onTap:function(){return v().onTap},
accessibilityText:function(){return v().accessibilityText},
overlayBadgeText:function(){return v().overlayBadgeText},
iconName:function(){return v().iconName},
unplayableInlinePlaybackIconName:function(){return v().unplayableInlinePlaybackIconName},
actionButton:Z,imageData:U}),_.F(Whm,{layout:G,colorPalette:L,isDesktopWeb:a,overflowButton:E,avatar:I,onTap:function(){return v().onTap},
genre:f,title:x,channelName:C}))},d=function(){var b={};
b=_.S3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(b["yt-mini-game-card-view-model--square-card-desktop"]=function(){return a()},b["yt-mini-game-card-view-model--use-full-width"]=function(){return h()},b));
return _.F("div",{class:b},_.F(i8t,{onTap:function(){return v().onTap},
imageData:U,accessibilityText:function(){return v().accessibilityText},
overlayBadgeText:function(){return v().overlayBadgeText},
iconName:function(){return v().iconName},
unplayableInlinePlaybackIconName:function(){return v().unplayableInlinePlaybackIconName},
isDesktopWeb:a}),_.F(Whm,{layout:G,colorPalette:L,isDesktopWeb:a,overflowButton:E,avatar:I,onTap:function(){return v().onTap},
genre:f,title:x,channelName:C}))};
return _.F("mini-game-card-view-model",{class:D.className},_.F(_.A$,null,_.F(_.Bv,{when:function(){return G()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return A()}),_.F(_.Bv,{when:function(){return G()==="MINI_APP_LAYOUT_SQUARE"}},function(){return d()}),_.F(_.Bv,{when:function(){return G()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return B()})))},"Qa");
DRm.idomCompat=!0;var tN$=_.H(function(D){var v=_.MK(D.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.F(_.c4,{data:D.actionButton},{buttonViewModel:function(h){return _.F("div",{class:v},_.F(_.s$,{data:h.data}))}})},"Ra"),i8t=_.H(function(D){var v=D.onTap;
var h=D.imageData;var a=D.accessibilityText;var Q=D.overlayBadgeText;var G=D.iconName;var x=D.unplayableInlinePlaybackIconName;D=D.isDesktopWeb;return _.F(_.Ak,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:v},_.F(_.PX,{data:h,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(a==null?void 0:a())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.F(v0J,{overlayBadgeText:Q,iconName:G,unplayableInlinePlaybackIconName:x,isDesktopWeb:D}))},"Sa"),v0J=_.H(function(D){var v=D.overlayBadgeText;
var h=D.iconName;var a=D.unplayableInlinePlaybackIconName;var Q=D.isDesktopWeb;return _.F("div",{class:"yt-mini-game-card-view-model__badge-container"},_.F(_.z,{cond:h,then:function(G){return _.F("div",{class:"yt-mini-game-card-view-model__badge"},_.F("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.F(_.Y5,{icon:G,className:"yt-mini-game-card-view-model__icon",size:12}),_.F("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},v)))}}),_.F(_.z,{cond:function(){return!h()&&
v()},
then:function(){return _.F("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},v)}}),_.F(_.z,{cond:function(){return a()&&Q()},
then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.F(_.Y5,{icon:a,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"Ta"),RL4=_.H(function(D){var v=D.colorPalette;
var h=D.imageData;var a=function(){return v().vibrantColorPalette?v().vibrantColorPalette.section2Color:v().sectionTwoColor};
return _.F(_.xf,null,_.F("div",{class:"yt-mini-game-card-view-model__background-base",style:_.NL({"background-color":function(){return DW(a(),"1")}})}),_.F("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.NL({"background-image":function(){return"url("+h().sources[0].url+")"}})}),_.F("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.NL({background:function(){return"linear-gradient(180deg,\n    "+DW(a(),".8")+" 0%,\n    "+DW(a(),".4")+" 25%,\n    "+DW(v().vibrantColorPalette?v().vibrantColorPalette.section4Color:v().sectionFourColor,".8")+" 100%)"}})}))},"Ua"),Whm=_.H(function(D){var v=D.layout;
var h=D.colorPalette;var a=D.overflowButton;var Q=D.avatar;var G=D.onTap;var x=D.title;var f=D.channelName;var C=D.genre;var U=function(){var L;return v()!=="MINI_APP_LAYOUT_SQUARE"&&((L=h())==null?0:L.textPrimaryColor)?"color: "+DW(h().textPrimaryColor,".7"):""};
return _.F("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.F(_.z,{cond:Q,then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__avatar"},_.F(_.c4,{data:Q},{avatarViewModel:_.Q2}))}}),_.F(_.Ak,{command:G,
className:"yt-mini-game-card-view-model__metadata-details"},_.F("h3",{class:"yt-mini-game-card-view-model__title",title:x},x),_.F(_.z,{cond:Q,then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.F("span",{class:"yt-mini-game-card-view-model__genre",title:f,style:U},f),_.F("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:U},C))},
else:function(){return _.F("span",{class:"yt-mini-game-card-view-model__genre",title:C},C)}})),_.F("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.F(_.c4,{data:a},{buttonViewModel:function(L){var Z=L.data;
return _.F(_.s$,{data:function(){return Object.assign({},Z(),{customFontColor:v()==="MINI_APP_LAYOUT_SINGLETON"?Z().customFontColor:void 0})}})}})))},"Va"),uKb=_.H(function(D){var v=D.colorPalette;
var h=D.isDesktopWeb;var a=D.onTap;var Q=D.accessibilityText;var G=D.overlayBadgeText;var x=D.iconName;var f=D.unplayableInlinePlaybackIconName;var C=D.actionButton;D=D.imageData;return _.F("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.F(RL4,{imageData:D,colorPalette:v}),_.F(i8t,{onTap:a,imageData:D,accessibilityText:Q,overlayBadgeText:G,iconName:x,unplayableInlinePlaybackIconName:f,isDesktopWeb:h}),_.F(_.z,{cond:function(){return C==null?void 0:C()},
then:function(){return _.F(tN$,{actionButton:C})}}))},"Wa"),r_$=_.H(function(D){var v=D.description;
var h=D.isDesktopWeb;var a=D.title;var Q=D.genre;var G=D.onTap;var x=D.actionButton;var f=D.overflowButton;var C=D.avatar;D=D.channelName;var U={};U=_.S3("yt-mini-game-card-view-model--search-result-metadata-wrapper",(U["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=h,U["yt-mini-game-card-view-model--show-unplayable-on-hover"]=h,U["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!h()},U));
var L={};L=_.S3("yt-mini-game-card-view-model__search-result-info-row",(L["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!h()},L));
return _.F("div",{class:U},_.F("div",{class:L},_.F(_.Ak,{command:G,className:"yt-mini-game-card-view-model__metadata-details"},_.F("h3",{class:"yt-mini-game-card-view-model__title",title:a},a),_.F("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)),_.F(tN$,{actionButton:x,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.F("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.F(_.c4,{data:f},{buttonViewModel:_.s$}))),_.F("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.F("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.F("div",{class:"yt-mini-game-card-view-model__avatar"},_.F(_.c4,{data:C},{avatarViewModel:function(Z){var E=Z.data;return _.F(_.Q2,{data:function(){return Object.assign({},E(),{avatarImageSize:h()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.F(_.Ak,{command:G,
className:"yt-mini-game-card-view-model__description"},_.F("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},D)),_.F(_.Ak,{command:G,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.F("div",null)))),_.F(_.z,{cond:h,then:function(){return _.F(_.Ak,{command:G,className:"yt-mini-game-card-view-model__description"},v)}}))},"Xa");_.zh(DRm,"mini-game-card-view-model",{props:{data:_.gj,className:_.gj,useFullWidth:_.gj,isDesktopWeb:_.gj,addSearchResultTopMargin:_.gj}});_.zh(T$y,"dismissed-mini-game-card-view-model",{props:{data:_.gj,useSquareAspectRatio:_.gj}});var ku=function(){var D=_.c.apply(this,arguments)||this;D.isSearch=!1;D.isRichGrid=!1;return D};
_.J(ku,_.c);_.V=ku.prototype;_.V.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.V.dismissibleItemOnYtServiceRequestSent=function(D,v){v.actions&&this.dismissibleItemProcessActions(D,v.actions)};
_.V.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.V.dataChanged=function(){this.dismissibleItemReset()};
_.V.dismissibleItemProcessActions=function(D,v){for(var h=0;h<v.length;h++){var a=v[h];_.k(a,_.yo)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.k(a,_.yo)),D.stopPropagation())}};
_.V.dismissibleItemHandleReplaceEnclosingAction=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0};
_.GT.Object.defineProperties(ku.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var D;return!!this.data&&!((D=this.dismissedRenderer)==null?0:D.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.dismissedRenderer)==null||!D.notificationMultiActionRenderer)}}});
ku.prototype.dataChanged=ku.prototype.dataChanged;ku.prototype.dismissibleItemOnRequestSent=ku.prototype.dismissibleItemOnRequestSent;ku.prototype.dismissibleItemOnYtServiceRequestSent=ku.prototype.dismissibleItemOnYtServiceRequestSent;_.e([_.Y(),_.n("design:type",Object)],ku.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ku.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ku.prototype,"isDismissed",void 0);
_.e([_.Y(),_.n("design:type",Object)],ku.prototype,"dismissedRenderer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ku.prototype,"isRichGrid",void 0);_.e([_.N("data.layout"),_.n("design:type",Object),_.n("design:paramtypes",[])],ku.prototype,"useSquareAspectRatio",null);_.e([_.N("data","dismissedRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],ku.prototype,"showCard",null);
_.e([_.N("data","dismissedRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],ku.prototype,"showDismissed",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],ku.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ku.prototype,"dismissibleItemOnRequestSent",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ku.prototype,"dataChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],ku);
_.w(ku,"ytd-mini-game-card-view-model",function(){if(njJ!==void 0)return njJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return njJ=D},{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var hpR;var at4;var S1=function(){return _.VC.apply(this,arguments)||this};
_.J(S1,_.VC);S1.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
S1.prototype.getContinuationUrl=function(D){var v={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(v.itct=this.data.clickTrackingParams);return _.hO(D,v)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],S1.prototype,"data",void 0);_.e([_.Ry({is:"yt-reload-continuation",noInjection:!0})],S1);var $Rb;var QOs;var Jj=function(){var D=_.c.apply(this,arguments)||this;D.notificationData={};return D};
_.J(Jj,_.c);_.V=Jj.prototype;_.V.isMenuExpanded=function(D){return D&&D.length<=1?"undefined":"false"};
_.V.dataChanged_=function(){this.selected=void 0;var D=this.computeSelectedIndex_(this.data);D>=0&&(this.selected=D);D=this.data&&this.data.length>1;_.Iy(this.hostElement,"has-items",D);_.ZW(this.hostElement).querySelector("#label").tabIndex=D?0:-1};
_.V.onDropdownOpen=function(){var D=_.wd();if(this.parentTrackingParams&&this.data){var v=_.d4(this.parentTrackingParams);this.data.forEach(function(h){D&&v&&h.trackingParams&&(h=_.d4(h.trackingParams),_.tP(D,v,h),_.DU(D,[h]))})}else this.parentTrackingParams||_.yR(new _.XH("No parent tracking params passed in for yt-dropdown-menu."))};
_.V.hasNotification=function(D){var v;if(D.targetId&&((v=this.notificationData)==null?0:v.targetId)){var h;return D.targetId===((h=this.notificationData)==null?void 0:h.targetId)}};
_.V.computeSelectedIndex_=function(D){if(D)for(var v=0,h=D.length;v<h;v++)if(D[v].selected)return v;return-1};
_.V.computeLabel_=function(D){return this.data&&D!=void 0?this.data[D].title:""};
_.V.computeShowIcon_=function(D,v){return!v&&!!D};
_.V.computeVerticalOffset_=function(D){return D?36:0};
_.V.computeEndpoint_=function(D){return D.endpoint||D.navigationEndpoint};
_.V.onLabelClick_=function(D){this.data&&this.data.length<=1?D.stopPropagation():this.menuExpanded="true"};
_.V.onIronActivate_=function(D){D=D.detail.item;var v=_.ZW(this.hostElement).querySelector("#repeat").itemForElement(D);if(v&&v.trackingParams){var h=_.wd(),a=_.d4(v.trackingParams);h&&_.hA(h,a)}if(v&&v.serviceEndpoint)_.g("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(v.serviceEndpoint):_.L1(this.hostElement,[v.serviceEndpoint]),_.F1(this.hostElement,"yt-playlist-reloading");else a:{if((v=D.querySelector("yt-supported-renderers"))&&
(v=v.rendererElement)&&v.is=="yt-reload-continuation"){v.trigger();break a}(D=D.querySelector("yt-reload-continuation"))&&D.trigger()}};
_.V.onTap_=function(D){D.preventDefault()};
_.V.onItemTap_=function(D){this.ytEndpointBehavior.onEndpointTap_(D)};
_.V.onLinkFocus_=function(D){try{var v=D.target}catch(a){}if(v){var h=v.querySelector("tp-yt-paper-item");h&&_.aq(this,"focus",function(){h.focus()})}};
_.V.onMenuClose_=function(){this.menuExpanded="false"};
_.V.isLabelIconActive_=function(D){return D==="true"};
_.V.computeHasSubtitle_=function(D){return!!D};
_.V.computeHrefForItem_=function(D){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(D))};
_.V.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
_.GT.Object.defineProperties(Jj.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Jj.prototype.onMenuClose_=Jj.prototype.onMenuClose_;Jj.prototype.onTap_=Jj.prototype.onTap_;Jj.prototype.onIronActivate_=Jj.prototype.onIronActivate_;Jj.prototype.onDropdownOpen=Jj.prototype.onDropdownOpen;Jj.prototype.dataChanged_=Jj.prototype.dataChanged_;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Jj.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],Jj.prototype,"ytEndpointBehavior",void 0);
_.e([_.Y(),_.n("design:type",Array)],Jj.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Jj.prototype,"parentTrackingParams",void 0);_.e([_.Y(),_.n("design:type",Object)],Jj.prototype,"selected",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Jj.prototype,"useLabel",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Jj.prototype,"useComputedAriaLabel",void 0);_.e([_.Y(),_.n("design:type",String)],Jj.prototype,"icon",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Jj.prototype,"iconLabel",void 0);_.e([_.Y(),_.n("design:type",String)],Jj.prototype,"ariaLabel",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Jj.prototype,"disabled",void 0);_.e([_.Y({computed:"isMenuExpanded(data)"}),_.n("design:type",String)],Jj.prototype,"menuExpanded",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Jj.prototype,"closeOnActivate",void 0);
_.e([_.Y({reflectToAttribute:!0,value:_.g("web_modern_buttons")}),_.n("design:type",Boolean)],Jj.prototype,"modernButtons",void 0);_.e([_.Y(),_.n("design:type",Object)],Jj.prototype,"notificationData",void 0);_.e([_.N("ariaLabel, selected"),_.Y(),_.n("design:type",String),_.n("design:paramtypes",[])],Jj.prototype,"computedAriaLabel",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jj.prototype,"dataChanged_",null);
_.e([_.lc("paper-dropdown-open"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Jj.prototype,"onDropdownOpen",null);_.e([_.lc("iron-activate"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Jj.prototype,"onIronActivate_",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Jj.prototype,"onTap_",null);
_.e([_.lc("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Jj.prototype,"onMenuClose_",null);_.e([_.Ry({is:"yt-dropdown-menu",disableElementRegistration:!0})],Jj);
_.w(Jj,"yt-dropdown-menu",function(){if(QOs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;$Rb===void 0&&($Rb=document.createElement("template"));var a=$Rb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);QOs=D}D=QOs;return D},{mode:2});var pE=function(){var D=_.c.apply(this,arguments)||this;D.hasNotification=!1;return D};
_.J(pE,_.c);pE.prototype.computeId=function(D){return D};
pE.prototype.computeHorizontalAlign=function(D){return D?"right":"left"};
pE.prototype.computeAccessibilityLabel=function(D){var v,h;return((v=D.accessibility)==null?void 0:(h=v.accessibilityData)==null?void 0:h.label)||null};
pE.prototype.notificationDataChanged=function(){var D;this.hasNotification=!!this.notificationData&&!((D=this.data)==null?0:D.icon)};
pE.prototype.notificationDataChanged=pE.prototype.notificationDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Ce.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],pE.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pE.prototype,"data",void 0);_.e([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",String)],pE.prototype,"id",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],pE.prototype,"isRightAligned",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],pE.prototype,"disabled",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],pE.prototype,"closeOnActivate",void 0);_.e([_.Y(),_.n("design:type",Object)],pE.prototype,"notificationData",void 0);_.e([_.Y(),_.n("design:type",Object)],pE.prototype,"hasNotification",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],pE.prototype,"useComputedAriaLabel",void 0);_.e([_.Ni("notificationData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pE.prototype,"notificationDataChanged",null);_.e([_.Ry({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],pE);
_.w(pE,"yt-sort-filter-sub-menu-renderer",function(){if(at4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;hpR===void 0&&(hpR=document.createElement("template"));var a=hpR;h.call(v,a.content.cloneNode(!0),D.content.firstChild);at4=D}D=at4;return D},{mode:2});var Gx4=_.H(function(D){var v=D.data;var h=_.Jd(function(){var G=v().onTap;(G=_.k(G,_.Tz))&&_.xd().resolve(_.fx).resolveCommand(G);return!1}),a=function(){return{sources:[{url:v().thumbnailUrl,
width:120,height:90}]}},Q=function(){return v().rating&&v().ratingA11yLabel&&v().reviewsCount&&v().reviewsCountA11yLabel};
return _.F("place-data-view-model",null,_.F(_.z,{cond:function(){return v().placeName&&v().placeCategory},
then:function(){return _.F("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":h},_.F(_.PX,{data:a,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.F(_.Ak,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return v().onTap}},_.F("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return v().placeName}},function(){return v().placeName})),_.F("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.F(_.z,{cond:Q,
then:function(){return _.F("div",{class:_.S3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.F("span",{class:"score",title:function(){return v().ratingA11yLabel}},function(){return v().rating}),_.F("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.F(_.Y5,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.F("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return v().reviewsCountA11yLabel}},function(){return v().reviewsCount}))},
else:function(){return _.F("div",{class:_.S3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.F("div",{class:_.S3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.F("span",{class:"category",
title:function(){return v().placeCategory}},function(){return v().placeCategory}))))}}))},"Ya");
Gx4.idomCompat=!0;_.zh(Gx4,"place-data-view-model",{props:{data:_.gj}});var Viy=new _.Uj("INLINE_PLAYBACK_HOOK_TOKEN");var Po9=_.w1({sharedUi:_.IhR});_.W4=_.e3(Po9)(Po9.sharedUi,{animatedThumbnailEnabledSelector:function(D){return D.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(D){return D.inlinePreviewEnabled},
currentPageTypeSelector:function(D){return D.currentPageType},
currentPageSubTypeSelector:function(D){return D.currentPageSubType},
persistentPanelVisibleSelector:function(D){return D.persistentPanelVisible}});var xRR=function(D){this.setActiveSlideIndex=D;this.jobIds=[];this.isSlideshowPlaying=!1},Cob=function(D,v){D.isSlideshowPlaying||(D.isSlideshowPlaying=!0,Mi1(D),ftm(D,v,0))},Mi1=function(D){_.I3(_.HK,function(){D.setActiveSlideIndex(0)},1)},ftm=function(D,v,h){D.jobIds.push(_.I3(_.HK,function(){var a=h<v-1?h+1:0;
D.setActiveSlideIndex(a);ftm(D,v,a)},1800))};var o0b=new _.Uj("IMAGE_ON_LOAD_HANDLER_TOKEN");var FuM=_.H(function(D){return _.F("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.F(_.z,{cond:function(){var v;return(v=D.data())==null?void 0:v.thumbnail},
then:function(v){return _.F(_.PX,{data:v,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"Za");_.zpb=_.H(function(D){var v=D.data;var h=D.lockupExperiments;D={};return _.F("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.F("div",{class:_.S3("ytThumbnailOverlayButtonViewModelButton",(D.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var a;return h&&((a=h())==null?void 0:a.useLegacySizedIconButton)},D))},_.F(_.c4,{data:function(){return v().overlayButton}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
buttonOverrides:function(){var Q;return h&&((Q=h())==null?0:Q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"$a");
_.zpb.idomCompat=!0;var URm=_.H(function(D){return _.F("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Jd(function(v){v.preventDefault();return!1})},_.F(_.c4,{data:function(){return D.data().buttons}},{toggleButtonViewModel:function(v){return _.F("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.F(_.$$,{data:v.data}))}}))},"ab");
URm.idomCompat=!0;var LuJ=_.H(function(D){var v=function(){var h;return((h=_.k(D.data().rendererContext,_.BO))==null?void 0:h.label)||""};
return _.F("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.F(_.z,{cond:function(){return D.data().image},
then:function(){return _.F("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.F(_.PX,{data:function(){return D.data().image},
alt:v}))}}),_.F(_.z,{cond:function(){return D.data().text},
then:function(){return _.F("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return D.data().text})}}))},"bb");var ZF4;ZF4=_.W4.animatedThumbnailEnabledSelector;_.lF=_.H(function(D){var v=[],h=function(){var E,I;return Jzo((E=D.width)==null?void 0:E.call(D),(I=D.height)==null?void 0:I.call(D))},a=_.xd().resolve(_.PV(o0b)),Q=_.va("yt-thumbnail-view-model",function(){v.push("elRef.value set");
var E;(E=D.playbackRef)==null||E.call(D,{thumbnailElRef:Q,thumbnail:D.data().image,thumbnailOverlays:D.data().overlays,thumbnailSize:h()})});
_.jA(function(){v.push("onInit");_.dq(function(){v.push("onCleanup")})});
var G=_.Th(ZF4),x=function(){var E,I;return(I=(E=D.aspectRatio)==null?void 0:E.call(D))!=null?I:0},f=function(){return(D.data().image?_.t4i(D.data().image):x())<=1&&x()===0},C=function(){return f()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},U=function(){Q.value||_.yR(new _.XH("Thumbnail elRef.value is null",v.join("\n")));
a&&Q.value&&a(Q.value)},L=function(){var E,I;
return((E=D.hovered)==null?void 0:E.call(D))&&h()!=="large"&&((I=D.data().overlays)==null?void 0:I.some(function(S){return _.k(S,awR)}))},Z={};
return _.F("yt-thumbnail-view-model",{class:_.S3("ytThumbnailViewModelHost",D.className,function(){return $Ui(x())},function(){var E,I;
a:{var S=h(),B=(E=D.disableRounding)==null?void 0:E.call(D);E=(I=D.isClip)==null?void 0:I.call(D);if(!B&&!E)switch(S){case "large":I="ytThumbnailViewModelLarge";break a;case "small":I="ytThumbnailViewModelSmall";break a;default:I="ytThumbnailViewModelMedium";break a}I=void 0}return I},(Z.ytThumbnailViewModelCinematic=f,Z)),
style:_.NL({"background-color":function(){var E,I=f()?(E=D.data().backgroundColor)==null?void 0:E.lightTheme:void 0;return I?DW(I,"1"):void 0}}),
el:Q},_.F(_.z,{cond:f,then:function(){return _.F("div",{class:"ytThumbnailViewModelBlurredImage"},_.F(_.PX,{data:function(){return D.data().image},
alt:"",contentMode:C,targetWidth:D.width,onload:U}))}}),_.F("div",{class:"ytThumbnailViewModelImage"},_.F(_.PX,{data:function(){return D.data().image},
alt:"",contentMode:C,targetWidth:D.width,onload:U}),null),_.F(_.c4,{data:function(){return L()?void 0:D.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:kgy,thumbnailOverlayBadgeViewModel:function(E){return _.F(SU4,{data:E.data,thumbnailSize:h,isClip:D.isClip})},
thumbnailBottomOverlayViewModel:function(E){return _.F(Z8J,{data:E.data,thumbnailSize:h,isClip:D.isClip})},
thumbnailOverlayFullViewModel:LuJ,thumbnailOverlayButtonViewModel:function(E){return _.F(_.zpb,{data:E.data,lockupExperiments:D.lockupExperiments})}}),_.F(_.c4,{data:function(){var E;
return((E=D.hovered)==null?0:E.call(D))?D.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(E){return _.F($u,{data:E.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:URm}),_.F(_.c4,{data:function(){var E;return((E=D.hovered)==null?0:E.call(D))&&G()?D.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:FuM}),_.F(_.z,{cond:D.isClip,then:function(){return _.F("div",{class:"ytPinkingNsHost"},_.F("svg",{class:"ytPinkingNsPinkingLeft"},_.F("defs",null,_.F("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.F("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.F("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.F("svg",{class:"ytPinkingNsPinkingRight"},_.F("defs",null,_.F("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.F("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.F("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"cb");
_.lF.idomCompat={callbacks:{playbackRef:!0}};var E09=_.H(function(D){var v=_.P(_.Zq(-1,void 0,"RW2Ole")),h=v.next().value,a=v.next().value;_.jA(function(){var Q=new xRR(a);Cob(Q,D.data().thumbnails.length);_.dq(function(){if(Q.isSlideshowPlaying){Q.isSlideshowPlaying=!1;for(var G=Q.jobIds,x=0,f=G.length;x<f;x++)_.HK.cancelJob(G[x]);Q.jobIds.length=0}})});
return _.F("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.F(_.c4,{data:function(){return D.data().thumbnails}},{thumbnailViewModel:function(Q,G){return _.F("div",{class:function(){var x=!D.data().primaryThumbnail,f=G(),C=h(),U=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
x&&f===0&&U.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");f<=C&&U.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return U.join(" ")}},_.F(_.lF,{data:Q.data,
disableRounding:D.disableRounding}))}}))},"db");
E09.idomCompat=!0;var Qwr=new _.Uj("DWELL_DETECTOR_REGISTRY_TOKEN");var g09=_.H(function(D){var v=Ggi(D.triggeringElement),h=function(){return!!D.data().primaryThumbnail},a=function(){var G,x=(G=D.data())==null?void 0:G.maxHeight,f;
G=(f=D.maxHeight)==null?void 0:f.call(D);return x!=null&&G!=null?Math.min(x,G):G!=null?G:x},Q=function(){var G=a();
if(G){var x;if(h()&&(x=D.includeStackHeight)!=null&&x.call(D)){var f;x=((f=D.doubleStack)==null?0:f.call(D))?8:4}else x=0;G=G-x-1;if(!(G<0)){f=Math;x=f.ceil;var C,U;var L=SfO((U=(C=D.aspectRatio)==null?void 0:C.call(D))!=null?U:0);return x.call(f,G*L)}}};
return _.F("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.NL({height:function(){return a()?a()+"px":void 0},
width:function(){return Q()?Q()+"px":void 0}})},_.F(It1,{stackEnabled:h,
thumbnailSize:function(){var G,x;return Jzo((G=D.width)==null?void 0:G.call(D),(x=D.height)==null?void 0:x.call(D))},
doubleStack:D.doubleStack,stackColor:function(){return D.data().stackColor},
includeStackHeight:D.includeStackHeight},_.F(_.c4,{data:function(){return D.data().primaryThumbnail}},{thumbnailViewModel:function(G){var x={};
return _.F(_.lF,{data:G.data,width:D.width,height:D.height,aspectRatio:D.aspectRatio,disableRounding:D.disableRounding,className:_.S3((x.ytCollectionThumbnailViewModelHostHasStacks=h,x)),hovered:D.hovered,playbackRef:D.playbackRef})}}),_.F(_.z,{cond:function(){var G;
return v()&&((G=D.data().thumbnails)==null?void 0:G.length)},
then:function(){return _.F("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.F(E09,{data:D.data,disableRounding:function(){return!h()}}))}})))},"eb");
g09.idomCompat={callbacks:{playbackRef:!0}};
var It1=_.H(function(D){var v=D.children;var h=D.stackEnabled;var a=D.thumbnailSize;var Q=D.doubleStack;var G=D.stackColor;var x=D.includeStackHeight;var f,C=(f=_.xd().resolve(_.PV(_.$5)))==null?void 0:f();return _.F(_.z,{cond:h,then:function(){return _.F(RWJ,{data:function(){var U,L;return{experimentEnabled:!0,thumbnailSize:a(),doubleStack:Q==null?void 0:Q(),color:C?G==null?void 0:(U=G())==null?void 0:U.darkTheme:G==null?void 0:(L=G())==null?void 0:L.lightTheme,enableResponsiveMode:!1,includeStackHeight:x==
null?void 0:x()}}},v)},
else:function(){return v}})},"fb");var kx9=new _.Uj("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Yu;_.Nk={calledOnce:!0,state:"visible"};Yu={calledOnce:!0,state:"hidden"};_.B$=_.H(function(D){var v=D.data;var h=D.customCommandResolver;var a=D.className;var Q=D.delayedClassName;var G=D.animationEntityKey;var x=D.isCompactWidth;var f=D.isContentWidth;D=_.P(_.Zq(!1,void 0,"pC3tUb"));var C=D.next().value,U=D.next().value,L=_.MK(G,""),Z=_.l7(Egu,L),E=function(){var S2,s8;return(s8=(S2=Z())==null?void 0:S2.value)!=null?s8:!1},I=function(){_.xt(_.Xe("booleanEntity",L(),{key:L(),
value:!0}));O=void 0};
G=_.P(_.lL(E));var S=G.next().value,B=G.next().value;G=_.P(_.lL(E));var A=G.next().value,d=G.next().value;G=_.P(_.lL(function(){var S2;return E()?(S2=v().styleTransitionConfig)==null?void 0:S2.destinationStyle:void 0}));
var b=G.next().value,W=G.next().value,K=function(){var S2=Object.assign({},v(),b()&&{style:b()});var s8,Xf,dJ=S2.label,R4=(s8=S2.interaction)==null?void 0:(Xf=s8.accessibility)==null?void 0:Xf.label;s8=S2.iconImage?S2.label&&S2.label.content?S2.iconLeading?"leading":"trailing":"icon-only":void 0;S2={formattedButtonText:dJ,accessibilityLabel:R4,style:MNr(S2.style),type:fA7(S2.style),state:"active",size:xUO(S2.size),iconPosition:s8,disabled:!1,aTagConfig:Paq(S2,h)};_.g("enable_desktop_vdcbg_components")&&
(S2.focused=C());return S2},O;
G=_.Mb({visibilityCallback:function(S2){var s8,Xf=(s8=v().interaction)==null?void 0:s8.onFirstVisible;S2&&Xf&&_.r4(Xf)},
showOption:_.Nk});var R=function(){return AzI(K(),!!v().iconImage)};
D={};var vA={};a=_.S3(function(){return"ytwAdButtonViewModelHost"},function(){return v().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var S2=!!v().delayedAppearanceConfig,s8=S();
return S2?s8?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var S2=!!v().delayedAppearanceConfig,s8=A();
return S2?s8?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!v().delayedAppearanceConfig||S()?Q==null?void 0:Q():""},(D.ytwAdButtonViewModelHostCompactWidth=function(){return x==null?void 0:x()},D),(vA.ytwAdButtonViewModelHostContentWidth=function(){return f==null?void 0:f()},vA),a!=null?a:"");
var f7=function(){var S2,s8=(S2=v().delayedAppearanceConfig)==null?void 0:S2.delayedInvisibleSeconds;s8&&(O=_.b7(_.HK,function(){B(!0);xL()},s8*1E3))},xL=function(){var S2,s8=(S2=v().delayedAppearanceConfig)==null?void 0:S2.delayedVisibleSeconds;
s8&&(O=_.b7(_.HK,function(){d(!0);kL()},s8*1E3))},kL=function(){var S2,s8=(S2=v().styleTransitionConfig)==null?void 0:S2.styleTransitionSeconds,Xf,dJ=(Xf=v().styleTransitionConfig)==null?void 0:Xf.destinationStyle;
s8&&dJ?O=_.b7(_.HK,function(){W(dJ);I()},s8*1E3):I()},Z4=function(){var S2;
return(S2=v().delayedAppearanceConfig)==null?void 0:S2.transitionDurationSeconds};
_.jA(function(){f7()});
_.dq(function(){O&&_.HK.cancelJob(O)});
return _.F("ad-button-view-model",{"on:focusin":_.Jd(_.g("enable_desktop_vdcbg_components")?function(){var S2=_.xd().resolve(_.PV(_.Xw));S2&&U(S2.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Jd(_.g("enable_desktop_vdcbg_components")?function(){U(!1);return!1}:void 0),
class:a,el:_.ML(G),style:_.NL({"transition-duration":function(){return Z4()?Z4()+"s":void 0}})},_.F(_.z,{cond:K,
then:function(){return _.F(_.jd,{data:K,icon:function(){return _.F(_.z,{cond:function(){return v().iconImage},
then:function(S2){return _.F(_.PX,{data:S2,alt:"",targetWidth:R,targetHeight:R,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"hb");var Svm=_.H(function(D){var v=D.data;D=function(){return v().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var h=_.Mb({visibilityCallback:function(G){var x,f=(x=v().interaction)==null?void 0:x.onFirstVisible;G&&f&&_.r4(f)},
showOption:_.Nk}),a={},Q={};return _.F("ad-button-group-view-model",{class:_.S3("ytwAdButtonGroupViewModelHost",(a.ytwAdButtonGroupViewModelHostCompactWidth=D,a)),el:_.ML(h)},_.F("div",{class:_.S3("ytwAdButtonGroupViewModelHostSecondaryButton",(Q.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=D,Q))},_.F(_.c4,{data:function(){return v().secondaryAdButton}},{adButtonViewModel:function(G){return _.F(_.B$,{data:G.data})}})),_.F("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.F(_.c4,
{data:function(){return v().primaryAdButton}},{adButtonViewModel:function(G){return _.F(_.B$,{data:G.data})}})))},"ib");var Jim=_.H(function(D){var v=function(){var h;return((h=D.data())==null?void 0:h.answers)||[]};
return _.F("yt-survey-icons",{class:"ytSurveyIconsHost"},_.F("div",{class:"ytSurveyIconsHeader"},_.F("div",{class:"ytSurveyIconsTitle"},function(){var h;return(h=D.data())==null?void 0:h.text}),_.F("div",null,_.F(_.jd,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var h;(h=D.onDismiss)==null||h.call(D)}}},
iconName:"DISMISSAL"}))),_.F("div",null,_.F("div",{class:"ytSurveyIconsAnswers"},_.F(_.Xd,{each:function(){return v()},
keyBy:"INDEX"},function(h,a){return _.F("div",null,_.F(_.jd,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Q;(Q=D.onSelect)==null||Q.call(D,h(),a)}}},
icon:function(){return _.F(_.Y5,{icon:function(){var Q,G;return(Q=h())==null?void 0:(G=Q.icon)==null?void 0:G.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.F("div",{class:"ytSurveyIconsAnswersText"},_.F("div",null,function(){return v().length?v()[0].text:""}),_.F("div",null,function(){return v().length?v()[v().length-1].text:""}))))},"jb");var p3M=_.H(function(D){var v=_.ML(_.eb(function(){var C;return(C=D.data())==null?void 0:C.rendererContext},void 0,void 0,void 0,!0)),h=_.P(_.Zq(!1,void 0,"GW0yjf")),a=h.next().value,Q=h.next().value,G=_.l7($W4,function(){var C;
return(C=D.data().keys)==null?void 0:C.surveyEntityKey}),x=_.l7(Qxi,function(){var C;
return(C=D.data().keys)==null?void 0:C.surveyStateEntityKey});
_.DO("ytd-slimline-survey-show-action",function(){Q(!1)});
var f=function(){var C,U;var L=(C=x())==null?void 0:(U=C.questionStack)==null?void 0:U[0];if(L!==void 0){var Z,E;return(Z=G())==null?void 0:(E=Z.questions)==null?void 0:E[L]}};
h={};return _.F("yt-slimline-survey-view-model",{el:v,class:_.S3("ytSlimlineSurveyViewModelHost",(h.ytSlimlineSurveyViewModelCollapsed=function(){return a()},h))},_.F("div",{class:"ytSlimlineSurveyViewModelContainer"},_.F(_.z,{cond:function(){var C;
return((C=f())==null?void 0:C.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.F(Jim,{data:function(){return f()},
onSelect:function(C,U){var L,Z;return _.M(function(E){Q(!0);if(Z=(L=D.data())==null?void 0:L.onSelectRating)_.r4(Z),_.xt(Xjs(U));_.YI(E)})},
onDismiss:function(){Q(!0);var C;var U=(C=G())==null?void 0:C.dismissalFeedbackToken;C=U?{feedbackEndpoint:{feedbackToken:U}}:void 0;C&&_.iP(C,{form:{element:v.value}})}})}})))},"kb");var lty=_.H(function(D){return _.F("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.F(_.c4,{data:function(){var v;return(v=D.data())==null?void 0:v.attachments}},{flexibleActionsViewModel:function(v){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(_.V8,{data:v.data,
layout:function(){var h;return((h=D.lockupStyle())==null?void 0:h.arrangement)===1?0:1},
justifyContentOverride:function(){var h;return((h=D.lockupStyle())==null?void 0:h.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(v){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(p3M,{data:v.data}))},
expandableMetadataViewModel:function(v){v=v.data;var h;return _.F("div",{class:_.S3("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(h=_.xd().resolve(_.PV(kx9)))==null?void 0:h({data:v}))},
adButtonGroupViewModel:function(v){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(Svm,{data:v.data}))},
adButtonViewModel:function(v){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(_.B$,{data:v.data,isCompactWidth:!0}))}}))},"lb");var Lh7=_.oZ("rich_grid_min_item_width",310),zLA=_.oZ("rich_grid_max_item_width",500);var NFt=_.H(function(D){var v=D.data;return _.F("br-nz-badge-shape",{class:_.S3(function(){return pG4(v().brNzRatingBadgeType)}),
role:function(){return v().accessibilityText?"img":void 0},
"aria-label":function(){return v().accessibilityText}},function(){var h;
return(h=v())==null?void 0:h.text})},"mb");_.c$=_.H(function(D){var v=function(){var h=D.data(),a,Q,G;if(h){var x=!((a=D.workaroundShortsIsThumbnailBadge)==null||!a.call(D));a=(Q=D.modern)==null?void 0:Q.call(D);Q=(G=D.numBadgesInRow)==null?void 0:G.call(D);var f;a:switch(h.badgeStyle){case "BADGE_OVERLAY":G=!0;break a;default:G=!1}h={type:x?17:lA7(h.badgeStyle),brNzRatingBadgeType:N$8(h.badgeStyle),text:h.badgeText,icon:h.iconName,isOverlay:G,modern:a||_.g("web_modern_badge_view_model"),numBadgesInRow:Q,accessibilityText:h.accessibilityLabel||
((f=_.k(h.rendererContext,_.BO))==null?void 0:f.label)}}else h=void 0;return h};
return _.F("yt-badge-view-model",{class:_.S3("ytBadgeViewModelHost",D.class)},_.F(_.A$,null,_.F(_.Bv,{when:function(){var h;return!((h=v())==null||!h.brNzRatingBadgeType)}},function(){return _.F(NFt,{data:function(){return v()}})}),_.F(_.Bv,{when:function(){return!!v()&&!v().brNzRatingBadgeType}},function(){return _.F(_.fn,{data:function(){return v()}})})))},"nb");
_.c$.idomCompat=!0;var B$q,YUO;B$q=16/9;YUO=2/3;_.XE=_.H(function(D){var v=D.data;var h=D.className;var a=D.imageSizeConfig;var Q=D.notifyOnLoaded;var G=function(){return v().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},x=function(){var E;
return _.wp((E=v())==null?void 0:E.rendererContext)};
D={};D=(D.ytContentPreviewImageViewModelHost=!0,D.ytContentPreviewImageViewModelCircleImage=function(){return G()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},D.ytContentPreviewImageViewModelTappable=function(){return x()},D);
var f=function(){var E,I;return(I=(E=_.k(v().rendererContext,_.BO))==null?void 0:E.label)!=null?I:""},C=function(){return XG2(v())},U=function(){var E=c_A(G(),v().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",a==null?void 0:a(),A_c(C()),v().layoutWidth,v().layoutHeight),I=Object.assign({},E);
E.width&&(I.width=Math.round(E.width));E.height&&(I.height=Math.round(E.height));E.maxWidth&&(I.maxWidth=Math.round(E.maxWidth));E.maxHeight&&(I.maxHeight=Math.round(E.maxHeight));return I},L=_.SM(function(){return U().height},void 0,"CxFlJb"),Z=_.SM(function(){return U().width},void 0,"lb8Jhd");
return _.F("yt-content-preview-image-view-model",{el:_.ML(_.eb(function(){var E;return(E=v())==null?void 0:E.rendererContext})),
role:function(){return x()?"link":void 0},
tabindex:function(){return x()?0:void 0},
class:_.S3(h,D,function(){var E=G();var I=a==null?void 0:a();E=E==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||E==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(I==null?void 0:I.size)!=null&&I.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(I==null?void 0:I.size)!=null&&I.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return E}),
style:function(){var E=U(),I=[];E.width&&I.push("width: "+E.width+"px");E.height&&I.push("height: "+E.height+"px");E.maxWidth&&I.push("max-width: "+E.maxWidth+"px");E.maxHeight&&I.push("max-height: "+E.maxHeight+"px");E.fullWidth&&I.push("width: 100%");return I.join(";")}},_.F(_.z,{cond:C,
then:function(E){return _.F(_.PX,{data:E,alt:f,"data-disabled$":function(){return!f()},
notifyOnLoaded:Q,targetWidth:Z,targetHeight:L,preserveWidth:function(){return!!Z()},
preserveHeight:function(){return!!L()}})}}),_.F(_.c4,{data:function(){var E;
return(E=v())==null?void 0:E.overlays}},{thumbnailHoverOverlayViewModel:$u,
thumbnailOverlayButtonViewModel:_.zpb}))},"ob");
_.XE.idomCompat=!0;var BF4=_.H(function(D){var v=D.data;var h=D.className;var a=D.useSmallLayout;D=D.useMediumText;var Q={};return _.F("yt-attribution-view-model",{el:_.ML(_.eb(function(){var G;return(G=v())==null?void 0:G.rendererContext})),
class:_.S3(h,(Q.ytAttributionViewModelHost=!0,Q.ytAttributionViewModelMediumText=D,Q))},_.F(_.z,{cond:function(){return _.wp(v().rendererContext)},
then:function(){return _.F("button",{class:"ytAttributionViewModelTappable"},_.F(Yv4,{data:v,useSmallLayout:a}))},
else:function(){return _.F(Yv4,{data:v,useSmallLayout:a})}}))},"pb"),Yv4=_.H(function(D){var v=D.data;
var h=D.useSmallLayout;var a=function(){return{size:(h==null?0:h())?16:24}};
return _.F(_.xf,null,_.F(_.c4,{data:function(){return v().contentPreviewImage}},{contentPreviewImageViewModel:function(Q){return _.F(_.XE,{data:Q.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:a})}}),_.F(_.c4,{data:function(){return v().badge}},{badgeViewModel:function(Q){return _.F(_.c$,{data:Q.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.F(_.z,{cond:function(){return v().text},
then:function(){return _.F(_.IY,{text:function(){return v().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.F(_.z,{cond:function(){return v().suffix},
then:function(){return _.F(_.IY,{text:function(){return v().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"qb");
BF4.idomCompat=!0;var cit,X3R,AiJ,qv4,bF$;cit=_.H(function(D){var v=D.delimiter;var h=D.max;var a=D.index;var Q=D.isStandalone;return _.F(_.z,{cond:function(){return h()-1>a()},
then:function(){var G={};return _.F("span",{class:_.S3("yt-content-metadata-view-model__delimiter",(G["yt-content-metadata-view-model__delimiter--standalone"]=Q,G)),"aria-hidden":!0},v)}})},"rb");
X3R=_.H(function(D){var v=D.metadataPart;var h=D.maxLines;return _.F(_.IY,{text:function(){return v().text},
linkInheritColor:!0,className:function(){return qUq(h())},
userInput:!0})},"sb");
AiJ=_.H(function(D){var v=D.metadataPart;var h=D.maxLines;return _.F(_.z,{cond:function(){return v().tooltip},
then:function(a){return _.F("span",{title:a,role:"tooltip"},_.F(X3R,{metadataPart:v,maxLines:h}))},
else:function(){return _.F(X3R,{metadataPart:v,maxLines:h})}})},"tb");
qv4=_.H(function(D){var v=D.metadataPart;var h=D.isOverlay;var a=D.useMediumText;var Q=D.hideAvatar;var G=function(){return v().maxLines!==void 0?v().maxLines:1};
return _.F(_.xf,null,_.F(_.c4,{data:function(){return v().avatarStack}},{avatarStackViewModel:function(x){return _.F(_.V2,{data:x.data,
isOverlay:h,useMediumText:a,hideAvatar:Q})},
badgeViewModel:_.c$}),_.F(_.z,{cond:function(){return v().leadingIcon},
then:function(x){return _.F(_.Y5,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return x().name},
size:function(){return x().width}})}}),_.F(_.z,{cond:function(){return v().text},
then:function(){return _.F(AiJ,{metadataPart:v,maxLines:G})}}),_.F(_.z,{cond:function(){return v().icon},
then:function(x){return _.F(_.Y5,{className:"yt-content-metadata-view-model__icon",icon:function(){return x().name},
size:function(){return x().width}})}}))},"ub");
bF$=_.H(function(D){var v=D.metadataRow;var h=D.isInline;var a=D.delimiter;var Q=D.isOverlay;var G=D.useMediumText;var x=D.extensions;var f=function(){var U,L=x==null?void 0:(U=x())==null?void 0:U.lockupMetadata;U=v();var Z,E;return!!((L==null?0:(Z=L.byline)==null?0:Z.hideAvatar)&&((E=_.k(U,ie1))==null?void 0:E.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},C=function(){return v().metadataParts||[]};
D={};return _.F("div",{class:_.S3("yt-content-metadata-view-model__metadata-row",(D["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=h,D["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var U,L=x==null?void 0:(U=x())==null?void 0:U.lockupMetadata;U=v();var Z,E;return!!((L==null?0:(Z=L.byline)==null?0:Z.addPadding)&&((E=_.k(U,ie1))==null?void 0:E.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},D["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var U;
return!!(x==null?0:(U=x())==null?0:U.lockupMetadata)&&v().badges&&!v().metadataParts},D))},_.F(_.c4,{data:function(){return v().badges}},{badgeViewModel:function(U){return _.F("div",{class:"yt-content-metadata-view-model__badge"},_.F(_.c$,{data:U.data,
numBadgesInRow:function(){var L,Z;return((L=v())==null?void 0:(Z=L.badges)==null?void 0:Z.length)||0}}))}}),_.F(_.Xd,{each:C},function(U,L){return _.F(_.xf,null,_.F(qv4,{metadataPart:U,
isOverlay:Q,useMediumText:G,hideAvatar:f}),_.F(cit,{delimiter:a,max:function(){return C().length},
index:L,isStandalone:!1}))}),_.F(_.z,{cond:function(){return v().isSpacerRow&&!h()},
then:function(){return _.F("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"vb");
_.Aj=_.H(function(D){D=_.fb(D,{layout:0,isOverlay:!1});var v=D.data,h=D.layout,a=D.isOverlay,Q=D.useMediumText,G=D.extensions,x=function(){return h()===0},f=function(){var U;
return((U=v().metadataRows)==null?void 0:U.filter(function(L){var Z,E=G==null?void 0:(Z=G())==null?void 0:Z.lockupMetadata,I,S;Z=!!((E==null?0:(I=E.description)==null?0:I.hideDescription)&&((S=_.k(L,ie1))==null?void 0:S.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var B,A;return!((E==null?0:(B=E.spacer)==null?0:B.hideSpacer)&&((A=_.k(L,ie1))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||Z)}))||[]},C={};
return _.F("yt-content-metadata-view-model",{class:_.S3(D.className,"yt-content-metadata-view-model",(C["yt-content-metadata-view-model--inline"]=x,C["yt-content-metadata-view-model--tappable"]=function(){return _.wp(v().rendererContext)},C["yt-content-metadata-view-model--medium-text"]=Q,C)),
el:_.ML(_.eb(function(){return v().rendererContext}))},_.F(_.Xd,{each:f},function(U,L){return _.F(_.xf,null,_.F(bF$,{metadataRow:U,
isInline:x,delimiter:function(){return v().delimiter},
isOverlay:a,useMediumText:Q,extensions:G}),_.F(_.z,{cond:function(){return x()&&!U.isSpacerRow},
then:function(){return _.F(cit,{delimiter:function(){return v().delimiter},
max:function(){return f().length},
index:L,isStandalone:!0})}}))}))},"wb");
_.Aj.idomCompat=!0;var dR$=_.H(function(D){var v=_.xd().resolve(_.PV(_.$5)),h={};return _.F("yt-lockup-metadata-view-model",{class:_.S3("yt-lockup-metadata-view-model",function(){a:{var a=D.lockupStyle();if(a==null?0:a.isOverlay)a="yt-lockup-metadata-view-model--overlay";else switch(a==null?void 0:a.arrangement){case 1:a="yt-lockup-metadata-view-model--horizontal";break a;default:a="yt-lockup-metadata-view-model--vertical"}}return a},function(){a:{var a=D.lockupStyle();
if(a==null?0:a.isTiny)a="yt-lockup-metadata-view-model--tiny";else switch(a==null?void 0:a.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":a="yt-lockup-metadata-view-model--compact";break a;default:a="yt-lockup-metadata-view-model--standard"}}return a},(h["yt-lockup-metadata-view-model--overlay"]=function(){var a;
return(a=D.lockupStyle())==null?void 0:a.isOverlay},h["yt-lockup-metadata-view-model--card"]=function(){var a;
return(a=D.lockupStyle())==null?void 0:a.isCard},h["yt-lockup-metadata-view-model--centered"]=function(){var a;
return(a=D.lockupStyle())==null?void 0:a.isCentered},h["yt-lockup-metadata-view-model--typography-bump"]=function(){var a;
return(a=D.lockupStyle())==null?void 0:a.typographyBump},h["yt-lockup-metadata-view-model--legacy-typography"]=function(){var a;
return(a=D.lockupStyle())==null?void 0:a.useLegacyTypography},h["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var a;
return(a=D.lockupStyle())==null?void 0:a.useRichGridLegacyTypography},h))},_.F(_.c4,{data:function(){return D.data().image}},{avatarStackViewModel:function(a){return _.F("div",{class:"yt-lockup-metadata-view-model__avatar"},_.F(_.V2,{data:a.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(a){return _.F("div",{class:"yt-lockup-metadata-view-model__avatar"},_.F(_.Q2,{data:a.data}))},
decoratedAvatarViewModel:function(a){return _.F("div",{class:"yt-lockup-metadata-view-model__avatar"},_.F(_.GG,{data:a.data}))}}),_.F("div",{class:"yt-lockup-metadata-view-model__text-container"},_.F("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var a;return(a=D.data().title)==null?void 0:a.content}},_.F(_.z,{cond:function(){return D.data().title},
then:function(a){return _.F(_.Ak,{command:D.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.NL({color:function(){var Q;a:{var G=D.lockupStyle();var x=(Q=D.hovered)==null?void 0:Q.call(D);Q=!(v==null||!v());var f;if((G==null?0:(f=G.onFocusEffect)==null?0:f.textPrimaryColor)&&x&&(G=Q?G.onFocusEffect.textPrimaryColor.darkTheme:G.onFocusEffect.textPrimaryColor.lightTheme)){G=_.rT(G);break a}G=void 0}return G}}),
ariaLabel:D.lockupAccessibilityLabel},_.F(_.IY,{text:a,userInput:!0}))}})),_.F("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.NL({color:function(){var a;a:{var Q=D.lockupStyle();var G=(a=D.hovered)==null?void 0:a.call(D);a=!(v==null||!v());var x;if((Q==null?0:(x=Q.onFocusEffect)==null?0:x.textSecondaryColor)&&G&&(Q=a?Q.onFocusEffect.textSecondaryColor.darkTheme:Q.onFocusEffect.textSecondaryColor.lightTheme)){Q=_.rT(Q);break a}Q=void 0}return Q}})},_.F(_.c4,{data:function(){return D.data().metadata}},{contentMetadataViewModel:function(a){return _.F(_.Aj,{data:a.data,
layout:1,useMediumText:function(){var Q,G;return((Q=D.lockupStyle())==null?void 0:Q.typographyBump)||((G=D.lockupStyle())==null?void 0:G.useRichGridLegacyTypography)},
extensions:function(){var Q,G,x,f;return{lockupMetadata:{byline:{hideAvatar:((Q=D.lockupStyle())==null?void 0:Q.arrangement)===0,addPadding:((G=D.lockupStyle())==null?void 0:G.arrangement)===1},description:{hideDescription:!((x=D.lockupStyle())==null||!x.compactMetadata)},spacer:{hideSpacer:!((f=D.lockupStyle())==null||!f.compactMetadata)}}}}})}})),_.F(_.c4,{data:function(){return D.data().attribution}},{attributionViewModel:function(a){return _.F("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.F(BF4,{data:a.data,
useSmallLayout:!0}))}})),_.F("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.F(_.c4,{data:function(){return D.data().menuButton}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
buttonOverrides:function(){var Q;return((Q=D.lockupStyle())==null?0:Q.isOverlay)?{style:"overlay"}:void 0}})}})))},"xb");
dR$.idomCompat=!0;var jOb=_.H(function(D){var v=_.va("notification-multi-action-renderer");_.dM(function(){requestAnimationFrame(function(){_.hX(v.value)})});
var h={},a={},Q={};return _.F("notification-multi-action-renderer",{class:_.S3("ytNotificationMultiActionRendererHost",(h.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var G;return(G=D.useLegacyShelfStyle)==null?void 0:G.call(D)},h)),
el:v},_.F("span",{"aria-live":"polite",class:_.S3("ytNotificationMultiActionRendererTextContainer",(a.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var G;return(G=D.useLegacyShelfStyle)==null?void 0:G.call(D)},a))},_.F(_.IY,{text:function(){return D.data().responseText}})),_.F("div",{class:_.S3("ytNotificationMultiActionRendererButtonContainer",(Q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var G;
return(G=D.useLegacyShelfStyle)==null?void 0:G.call(D)},Q))},_.F(_.c4,{data:function(){var G;
return(G=D.data().buttons)==null?void 0:G.map(function(x){if(x=x.buttonRenderer){var f,C=Object,U=C.assign,L=(f=x.icon)==null?void 0:f.iconType;f=(f=x.command||x.serviceEndpoint||x.navigationEndpoint)?{innertubeCommand:f}:void 0;x={buttonViewModel:U.call(C,{},{iconName:L,onTap:f,trackingParams:x.trackingParams,titleFormatted:x.text?_.nb(x.text):void 0},dUc(x))}}else x=void 0;return x}).filter(function(x){return!!x})}},{buttonViewModel:function(G,x){return _.F("div",null,_.F(_.s$,{data:G.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var f;return((f=D.useModernStyles)==null?0:f.call(D))?{type:x()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"yb");var sOM=_.H(function(D){var v=_.va("notification-text-renderer");_.dM(function(){requestAnimationFrame(function(){_.hX(v.value)})});
return _.F("notification-text-renderer",{el:v,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.F(_.IY,{text:function(){return D.data().successResponseText}}))},"zb");_.qk=_.H(function(D){var v=_.l7(ln7,function(){var a;return jwO((a=D.contentId)==null?void 0:a.call(D))}),h=function(){var a;
return _.k((a=v())==null?void 0:a.command,_.yo)};
return _.F(_.z,{cond:function(){var a;if(!(a=h())){var Q;a=_.k((Q=v())==null?void 0:Q.command,UEF)}return a},
then:function(){return _.F(_.z,{cond:h,then:function(){var a={};return _.F("div",{class:_.S3("ytDismissibleItemReplacedContent",function(){var Q;return swr((Q=D.aspectRatio)==null?void 0:Q.call(D))})},_.F("div",{class:_.S3((a.ytDismissibleItemAspectRatioContainer=function(){var Q;
return((Q=D.aspectRatio)==null?void 0:Q.call(D))!==void 0},a))},_.F(_.c4,{data:function(){var Q;
return(Q=h())==null?void 0:Q.item}},{notificationMultiActionRenderer:function(Q){return _.F(jOb,{data:Q.data,
useModernStyles:D.useModernStyle,useLegacyShelfStyle:D.useLegacyShelfStyle})},
notificationTextRenderer:sOM})))}})},
else:D.children})},"Ab");_.mRJ=_.H(function(D){var v=D.data;var h=D.customCommandResolver;D=_.ML(_.Mb({visibilityCallback:function(G){var x,f=(x=v().interaction)==null?void 0:x.onFirstVisible;G&&f&&_.r4(f)},
showOption:_.Nk}));var a=function(){var G;return((G=v().interaction)==null?0:G.onTap)?function(x){var f;VNA(x,(f=v().interaction)==null?void 0:f.onTap,h)}:void 0},Q=function(){var G,x=v(),f=a(),C=(G=_.k(v().rendererContext,_.BO))==null?void 0:G.label;
a:switch(x.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":G=1;break a;default:G=0}return{size:y_c(x.size),type:G,onTap:f,accessibilityText:C}};
return _.F("ad-avatar-view-model",{class:function(){var G;return((G=v().interaction)==null?0:G.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:D},_.F(_.z,{cond:function(){return v().image},
then:function(G){return _.F(gjJ,{data:Q,image:G})}}))},"Bb");_.bF=_.H(function(D){var v=_.fb(D,{hasDot:!1,usedInMasthead:!1}),h=Object.assign({},v),a=v.data,Q=v.hasDot;D=v.customCommandResolver;var G=v.usedInMasthead,x=(delete h.data,delete h.hasDot,delete h.customCommandResolver,delete h.usedInMasthead,h);v=function(){return a().style};
v!==void 0&&v!==null||_.Wv(Error("Mh"));D=_.Tf(function(){return a().interaction},D);
return _.F("ad-badge-view-model",{class:_.S3(function(){var f;return((f=a().interaction)==null?0:f.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var f=x.adRenderingContextType(),C=G();
a();return f!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||C?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.ML(D)},_.F(_.fn,{data:function(){var f;a();return{type:2,text:(f=a().label)==null?void 0:f.content,adsIncludeDot:Q(),isOverlay:a().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Cb");var HFm;_.dz=_.H(function(D){var v=D.data;var h=D.customCommandResolver;var a=D.adRenderingContextType;return _.F("ad-details-line-view-model",{class:function(){var Q;return((Q=v().interaction)==null?0:Q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(Q){var G,x=(G=v().interaction)==null?void 0:G.onFirstVisible;Q&&x&&_.r4(x)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},h))},_.F(_.z,{cond:function(){return v().style},
then:function(Q){return _.F(_.Xd,{each:function(){var G;return((G=v())==null?void 0:G.attributes)||[]},
keyBy:"INDEX"},function(G){return _.F(HFm,{attribute:G,style:Q,adRenderingContextType:function(){return a()}})})}}))},"Db");
HFm=_.H(function(D){var v=D.attribute;var h=D.style;var a=D.adRenderingContextType;return _.F(_.z,{cond:function(){return v().text},
then:function(Q){return _.F(_.IY,{text:Q,className:function(){var G=a();h();return G==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Eb");var yi4=_.H(function(D){var v=D.data;var h=D.typographyBump;var a=function(){return v().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
D={};return _.F(_.xf,null,_.F("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.F(_.IY,{text:function(){return v().headline},
className:_.S3("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return a==null?void 0:a()},D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(h==null?void 0:h())&&!(a==null?0:a())},D)),
linkInheritColor:!0}),_.F(_.z,{cond:function(){return v().description},
then:function(Q){var G={};return _.F(_.IY,{text:Q,className:_.S3("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(G.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return a==null?void 0:a()},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(h==null?void 0:h())&&!(a==null?0:a())},G)),
linkInheritColor:!0})}}),_.F(_.z,{cond:function(){return v().secondaryDescription},
then:function(Q){var G={};return _.F(_.IY,{text:Q,className:_.S3("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(G.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return h==null?void 0:h()},G)),
linkInheritColor:!0})}}),_.F("div",{class:function(){return a()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.F(_.z,{cond:function(){return v().adAvatar},
then:function(){return _.F("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.F(_.c4,{data:function(){return v().adAvatar}},{adAvatarViewModel:_.mRJ}))}}),_.F(_.c4,{data:function(){return v().adBadge}},{adBadgeViewModel:function(Q){return _.F(_.bF,{data:Q.data,
hasDot:function(){return!!v().adDetailsLine},
adRenderingContextType:function(){return v().adRenderingContextType}})}}),_.F(_.c4,{data:function(){return v().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.F(_.dz,{data:Q.data,
adRenderingContextType:function(){return v().adRenderingContextType}})}}))),_.F("div",{class:function(){return a()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.F(_.c4,{data:function(){return v().menu}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
buttonOverrides:function(){a:switch(v().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var G="S";break a;default:G="M"}return{size:G}}})}})))},"Fb"),w31=_.H(function(D){var v=D.data;
var h=D.noBottomMargin;var a=D.useVideoLockupTopPadding;var Q=D.typographyBump;D={};D=_.S3("ytwFeedAdMetadataViewModelHostMetadata",(D.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return h==null?void 0:h()},D.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return a==null?void 0:a()},D));
var G=function(){return v().adBadge};
G!==void 0&&G!==null||_.Wv(Error("Nh"));G={};var x={};return _.F(_.xf,null,_.F(_.z,{cond:function(){return v().adAvatar},
then:function(){return _.F("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.F(_.c4,{data:function(){return v().adAvatar}},{adAvatarViewModel:function(f){return _.F(_.mRJ,{data:f.data})}}))}}),_.F("div",{class:D},_.F("div",{class:_.S3("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(G.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Q==null?void 0:Q()},G.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Q==
null?void 0:Q())&&_.g("web_enable_typography_bump_v2")},G))},_.F(_.IY,{text:function(){return v().headline},
linkInheritColor:!0})),_.F(_.z,{cond:function(){return v().description},
then:function(f){return _.F(_.IY,{text:f,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.F("div",{class:function(){return v().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.g("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.F(_.c4,{data:function(){return v().adBadge}},
{adBadgeViewModel:function(f){return _.F(_.bF,{data:f.data,
hasDot:function(){return!!v().adDetailsLine},
adRenderingContextType:function(){return v().adRenderingContextType}})}}),_.F(_.c4,{data:function(){return v().adDetailsLine}},{adDetailsLineViewModel:function(f){return _.F(_.dz,{data:f.data,
adRenderingContextType:function(){return v().adRenderingContextType}})}})),_.F(_.z,{cond:function(){return v().secondaryDescription},
then:function(f){return _.F(_.IY,{text:f,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.F("div",{class:_.S3("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(x.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return a==null?void 0:a()},x))},_.F(_.c4,{data:function(){return v().menu}},{buttonViewModel:_.s$})))},"Gb"),j1=_.H(function(D){var v=D.data;
var h=D.noBottomMargin;var a=D.listenToTapEvent;var Q=D.setTouchEndHandler;var G=D.useVideoLockupTopPadding;var x=D.typographyBump;D=_.Mb({visibilityCallback:function(Z){var E,I=(E=v().interaction)==null?void 0:E.onFirstVisible;Z&&I&&_.r4(I)},
showOption:_.Nk});var f=_.Tf(function(){return v().interaction},void 0,function(){return a==null?void 0:a()}),C=_.P(_.Zq(!1,void 0,"a2FSrb")),U=C.next().value,L=C.next().value;
C=_.Jd(function(Z){(Q==null?0:Q())&&!U()&&(Z.currentTarget.click(),L(!0),setTimeout(function(){L(!1)},100));
return!1});
return _.F("feed-ad-metadata-view-model",{class:function(){var Z;return((Z=v().interaction)==null?0:Z.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.ML(D,f),"on:touchend":C},_.F(_.A$,null,_.F(_.Bv,{when:function(){return v().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.F(yi4,{data:v,
typographyBump:x})}),_.F(_.Bv,{when:function(){return v().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.F(w31,{data:v,
noBottomMargin:h,useVideoLockupTopPadding:G,typographyBump:x})})))},"Hb");var epm,n0s;epm=_.W4.inlinePreviewEnabledSelector;_.sp=_.H(function(D){return _.F("yt-lockup-view-model",{class:_.S3(D.className)},_.F(_.qk,{contentId:function(){return D.data().contentId},
useModernStyle:!0,aspectRatio:function(){var v,h;return((v=D.containerType)==null?void 0:v.call(D))!==3?SUo(D.data().contentType,(h=D.force16By9ThumbnailAspectRatio)==null?void 0:h.call(D)):void 0}},function(){return _.F(n0s,Object.assign({},D))}))},"Ib");
n0s=_.H(function(D){D=_.fb(D,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var v=D.data,h=D.containerLayoutConfig,a=D.containerType,Q=D.sizing,G=D.protectBackground,x=D.typographyBump,f=D.force16By9ThumbnailAspectRatio,C=D.thumbnailFixedWidth,U=D.thumbnailTargetWidth,L=D.lockupExperiments,Z=D.elementsPerRow,
E=_.xd().resolve(_.PV(_.$5));D=_.ML(_.eb(function(){var Xf;return(Xf=v())==null?void 0:Xf.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 I=_.Th(epm),S=_.xd().resolve(_.PV(Viy)),B=S?{}:void 0,A=function(){var Xf,dJ,R4;return(R4=(dJ=_.k((Xf=v())==null?void 0:Xf.rendererContext,_.BO))==null?void 0:dJ.label)!=null?R4:void 0},d=function(){var Xf;
return(Xf=_.k(v().metadata,_.WZM))==null?void 0:Xf.endorsement},b=function(){var Xf=h==null?void 0:h(),dJ;
if(Xf==null?0:Xf.containerType){var R4=(dJ=v())==null?void 0:dJ.contentType;dJ=L();var sF=x(),rc=U(),I4=G();Xf=Object.assign({},J_L(IAf(Xf),Z84(Xf.responsiveSize),sF,R4,Xf.force16By9ThumbnailAspectRatio,rc,I4,dJ),{thumbnailFixedWidth:Xf.contentPreviewWidth})}else Xf=J_L(a(),Q(),x(),(R4=v())==null?void 0:R4.contentType,f(),U(),G(),L());return Xf};
S&&B&&S({enabled:function(){return I()},
itemPlaybackModel:function(){return v().itemPlayback},
thumbnailElRef:function(){return B.thumbnailElRef},
containerElRef:D,options:function(){var Xf=B.thumbnailOverlays||[],dJ=d(),R4;!dJ||((R4=L())==null?0:R4.onFocusEffect)||Xf.push(dJ);var sF,rc;return{thumbnail:B.thumbnail,thumbnailOverlays:Xf,accessibilityText:A(),thumbnailSize:B.thumbnailSize,enableRounding:b().isCollection,containPlayerWithinThumbnail:b().isCollection,mouseleaveCallback:function(){O(!1)},
trackingParams:(sF=_.k(v().rendererContext,_.Xp))==null?void 0:(rc=sF.loggingDirectives)==null?void 0:rc.trackingParams}}});
var W=0;S=_.P(_.Zq(!1,void 0,"JThLqe"));var K=S.next().value,O=S.next().value;S=_.P(_.Zq(!1,void 0,"SSE3E"));var R=S.next().value,vA=S.next().value;S=_.Jd(function(){R()?(_.HK.cancelJob(W),W=_.HK.addJob(function(){O(!0)},8,32)):O(!0);
return!0});
var f7=_.Jd(function(Xf){Xf=Xf.relatedTarget;var dJ=document.querySelector("ytd-video-preview");Xf&&dJ&&dJ.contains(Xf)||(W&&(_.HK.cancelJob(W),W=0),O(!1))});
_.dq(function(){W&&(_.HK.cancelJob(W),W=0)});
var xL=H8c(function(){vA(!0)}),kL=xL.touchFeedbackEvents,Z4=xL.touchFeedbackOnPointerUp,S2=xL.touchFeedbackOnPointerDown;
xL=xL.touchFeedbackOnPointerLeave;var s8={};return _.F(_.xf,null,_.F("div",{el:D,class:_.S3("yt-lockup-view-model",function(){a:{var Xf=b();if(Xf.isOverlay)Xf="yt-lockup-view-model--overlay";else switch(Xf.arrangement){case 1:Xf="yt-lockup-view-model--horizontal";break a;default:Xf="yt-lockup-view-model--vertical"}}return Xf},function(){a:{var Xf=b();
if(Xf.isOverlay)Xf="yt-lockup-view-model--overlay";else{switch(Xf.collectionStackNumber){case 1:Xf="yt-lockup-view-model--collection-stack-1";break a;case 2:Xf="yt-lockup-view-model--collection-stack-2";break a}Xf=void 0}}return Xf},function(){var Xf;
return _.b8u((Xf=v())==null?void 0:Xf.contentId)},(s8["yt-lockup-view-model--card"]=function(){return b().isCard},s8["yt-lockup-view-model--compact"]=function(){return b().isTiny||b().sizing!=="STANDARD"},s8["yt-lockup-view-model--protect-background"]=G,s8["yt-lockup-view-model--add-margins"]=function(){return b().addMarginForFullbleed},s8["yt-lockup-view-model--centered"]=function(){return b().isCentered},s8["yt-lockup-view-model--fullbleed"]=function(){return b().fullbleed},s8["yt-lockup-view-model--single-column-grid"]=
function(){return Z()===1&&a()===2},s8["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Xf;
return(Xf=L())==null?void 0:Xf.useRichGridLegacyMargin},s8)),
"on:mousedown":S2,"on:mouseleave":f7,"on:mouseup":Z4,"on:mouseover":S,"on:touchstart":S2,"on:touchend":Z4,"on:pointerleave":xL},_.F(_.qv,{model:function(){var Xf,dJ=Object,R4=dJ.assign,sF=(B==null?void 0:B.thumbnailSize)||"small";a:{var rc=b();if(d())rc=12;else{switch(rc.collectionStackNumber){case 1:rc=8;break a;case 2:rc=12;break a}rc=void 0}}sF={thumbnailSize:sF,triggerEvents:!0,customTopExtend:rc};var I4;rc=(Xf=L())==null?void 0:Xf.onFocusEffect;var q1=!(E==null||!E());if(rc){var jt,rr;Xf=q1?
(jt=rc.onFocusColor)==null?void 0:jt.darkTheme:(rr=rc.onFocusColor)==null?void 0:rr.lightTheme;var Zb,VO;jt=q1?(Zb=rc.keyLightColor)==null?void 0:Zb.darkTheme:(VO=rc.keyLightColor)==null?void 0:VO.lightTheme;var Pm;Zb=q1?(I4=rc.touchResponseColor)==null?void 0:I4.darkTheme:(Pm=rc.touchResponseColor)==null?void 0:Pm.lightTheme;I4={background:Xf!==void 0?_.rT(Xf):void 0,keyLight:jt!==void 0?_.rT(jt):void 0};Pm=[];rc=_.P(rc.lightingTechniques||[]);for(VO=rc.next();!VO.done;VO=rc.next())switch(VO.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Pm.push(2);
break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Pm.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Pm.push(3)}I4={hoverEffect:{palette:I4,lightingTechniques:Pm},touchEffect:{palette:{background:Zb!==void 0?_.rT(Zb):void 0}}}}else I4={};return R4.call(dJ,{},sF,I4)},
hovered:function(){return K()},
pointerDownEvent:kL.pointerDownEvent,pointerUpEvent:kL.pointerUpEvent,pointerLeaveEvent:kL.pointerLeaveEvent}),_.F(_.Ak,{command:function(){var Xf;return _.yL((Xf=v())==null?void 0:Xf.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return C()&&b().arrangement===1?"width: "+C():""}},_.F(_.c4,{data:function(){var Xf;
return(Xf=v())==null?void 0:Xf.contentImage}},{thumbnailViewModel:function(Xf){return _.F(_.lF,{data:Xf.data,
aspectRatio:function(){return b().aspectRatio},
disableRounding:function(){return b().disableRounding},
width:U,hovered:function(){return K()&&!(I()&&v().itemPlayback)},
isClip:function(){var dJ;return((dJ=v())==null?void 0:dJ.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:aA8(B),lockupExperiments:function(){return L()}})},
collectionThumbnailViewModel:function(Xf){return _.F(g09,{data:Xf.data,aspectRatio:function(){return b().aspectRatio},
disableRounding:function(){return b().disableRounding},
width:U,doubleStack:function(){return b().collectionStackNumber===2},
hovered:function(){return K()&&!(I()&&v().itemPlayback)},
playbackRef:aA8(B)})},
decoratedAvatarViewModel:_.GG})),_.F("div",{class:"yt-lockup-view-model__metadata"},_.F(_.c4,{data:function(){var Xf;return(Xf=v())==null?void 0:Xf.metadata}},{lockupMetadataViewModel:function(Xf){return _.F(dR$,{data:Xf.data,
hovered:K,lockupStyle:b,lockupCommand:function(){var dJ;return _.yL((dJ=v())==null?void 0:dJ.rendererContext)},
lockupAccessibilityLabel:function(){return A()}})},
feedAdMetadataViewModel:function(Xf){return _.F(j1,{data:Xf.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:x})}}),_.F(_.c4,{data:function(){var Xf;
return(Xf=v())==null?void 0:Xf.attachmentSlot}},{lockupAttachmentsViewModel:function(Xf){return _.F(lty,{data:Xf.data,
lockupStyle:b})}}))),_.F(_.c4,{data:function(){var Xf;
return(Xf=v())==null?void 0:Xf.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Xf){return _.F(lty,{data:Xf.data,
lockupStyle:b})}}))},"Jb");
_.sp.idomCompat=!0;_.zh(_.sp,"yt-lockup-view-model",{props:{data:_.gj,containerLayoutConfig:_.gj,containerType:_.gj,sizing:_.gj,protectBackground:_.gj,typographyBump:_.gj,thumbnailFixedWidth:_.gj,thumbnailTargetWidth:_.gj,force16By9ThumbnailAspectRatio:_.gj,className:_.gj,lockupExperiments:_.gj,elementsPerRow:_.gj}});var O8i,OF4=_.H(function(D){var v=_.fb(D,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),h=v.text,a=v.alwaysShowTruncationText;D=v.truncationText;var Q=v.onTextClick,G=v.maxLines,x=v.disableTextMask,f=v.textStyle,C=v.accessibilityLabel,U=v.textSize,L=v.alwaysTruncateAtMaxLines,Z=v.expandOnClick;v=_.P(_.Zq(!1,void 0,"EzA1q"));var E=v.next().value,I=v.next().value;v=_.Jd(function(){Z()&&I(!E());Q==null||Q()});
var S=function(){a:switch(U()){case "medium":var R=2;break a;case "large":R=2.2;break a;default:R=1.8}return R},B=RL7(h,function(){return E()?Infinity:G()},S,x,L,E),A=B.isTruncated;
h=B.displayText;L=B.contentRef;var d=B.hiddenRef,b=B.placeholderTruncationTextRef,W=B.hiddenTruncationTextRef;B=B.truncationTextRef;var K={},O={};return _.F("truncated-text",{class:_.S3((K["yt-truncated-text"]=!0,K["yt-truncated-text--overlay"]=function(){return f()==="overlay"},K["yt-truncated-text--medium-text"]=function(){return U()==="medium"},K["yt-truncated-text--large-text"]=function(){return U()==="large"},K["yt-truncated-text--primary-text"]=function(){return f()==="primary-text"},K)),
"on:click":v,style:function(){return"line-height: "+S()+"rem;"}},_.F("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:L,style:function(){return E()?"":"max-height: "+G()*S()+"rem;"}},_.F(_.IY,{text:h}),_.F("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:b,style:function(){return"line-height: "+S()+"rem;"}},_.F(_.IY,{text:D}))),_.F("truncated-text-content",{class:_.S3("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:d,style:function(){return E()?"":"max-height: "+G()*S()+"rem;"},
"aria-hidden":"true"},_.F(_.IY,{text:h}),_.F("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:W,style:function(){return"line-height: "+S()+"rem;"}},_.F(_.IY,{text:D}))),_.F("button",{"aria-label":C,
class:_.S3((O["yt-truncated-text__absolute-button"]=function(){return!x()},O["yt-truncated-text__bottom-button"]=function(){return x()},O["yt-truncated-text--hidden"]=function(){return!(!E()&&(a!=null&&a()||A()))},O)),
el:B,style:function(){return"line-height: "+S()+"rem;"}},_.F(_.IY,{text:D})))},"Lb");
OF4.idomCompat={callbacks:{onTextClick:!0}};var Rpt=_.H(function(D){var v=D.data;D=D.className;var h=_.SM(function(){return WhA(v())},void 0,"uDhDke"),a=_.F(_.xf,null,_.F(_.z,{cond:function(){return v().heroText||v().image},
then:function(){return _.F(Ku$,{data:v})}}),_.F(TFJ,{data:v,
sizeSmall:function(){return v().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.F("yt-video-attribute-view-model",{class:D},_.F("div",{class:function(){var Q=v();a:switch(Q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var G="yt-video-attribute-view-model--vertical";break a;default:G="yt-video-attribute-view-model--horizontal"}a:switch(Q.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var x="yt-video-attribute-view-model--image-small";break a;default:x="yt-video-attribute-view-model--image-large"}a:switch(Q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var f=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":f="yt-video-attribute-view-model--image-avatar";break a;default:f=""}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",G,x,
f,C,U,WhA(Q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.NL({"background-color":function(){var Q=v();if(Q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var G="";else{G=Q.lightColorPalette;Q=Q.darkColorPalette;var x,f=((x=_.xd().resolve(_.PV(_.$5)))==null?0:x())&&Q?Q:G;G=(G=f==null?void 0:f.section2Color)?_.uu(G):""}return G}})},_.F(_.z,{cond:h,
then:function(){return _.F(_.Ak,{className:"yt-video-attribute-view-model__content-container",command:h,role:"group",ariaLabel:function(){return v().title}},a)},
else:function(){return _.F("div",{class:"yt-video-attribute-view-model__content-container"},a)}})))},"Mb");
Rpt.idomCompat=!0;var Ku$=_.H(function(D){var v=D.data;var h,a=(h=_.xd().resolve(_.PV(_.$5)))==null?void 0:h(),Q=function(){return a&&v().darkThemeImage?v().darkThemeImage:v().image},G=_.SM(function(){return tNO(v())},void 0,"UDqj0b");
return _.F("div",{class:"yt-video-attribute-view-model__hero-section"},_.F(_.A$,null,_.F(_.Bv,{when:Q},function(){return _.F(_.PX,{data:function(){return Q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.F(_.Bv,{when:function(){return v().heroText}},function(){return _.F("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.F("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return v().heroText}))})),_.F(_.z,{cond:function(){return v().overflowMenuOnTap},
then:function(){return _.F("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.F(_.jd,{data:G,iconName:"MORE_VERT"}))}}))},"Nb");
Ku$.idomCompat=!0;var TFJ=_.H(function(D){var v=D.data;D=D.sizeSmall;var h=function(){return v().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},a=_.SM(function(){return tD(_.W8({innertubeCommand:WhA(v())}))?"link":WhA(v())?"button":"group"},void 0,"e2MmYe"),Q={};
return _.F("div",{class:_.S3("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=D,Q)),role:a},_.F("h1",{class:"yt-video-attribute-view-model__title"},function(){return v().title}),_.F(_.z,{cond:function(){return v().subtitle},
then:function(){return _.F("h4",{class:"yt-video-attribute-view-model__subtitle"},_.F(_.z,{cond:h,then:function(){return _.F(OF4,{text:function(){return i82(v().subtitle)},
truncationText:function(){return i82(v().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.F("span",null,function(){return v().subtitle})}}))}}),_.F(_.z,{cond:function(){return v().secondarySubtitle},
then:function(G){return _.F("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.F(_.IY,{text:function(){var x=G();if(x!=null&&x.attachmentRuns){for(var f=[],C=_.P(x.attachmentRuns),U=C.next();!U.done;U=C.next())U=U.value,U.element&&f.push(Object.assign({},U,{element:Object.assign({},U.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));x=Object.assign({},x,{attachmentRuns:f})}return x}}))}}),_.F(_.c4,
{data:function(){return v().buttonViewModel}},{buttonViewModel:function(G){return _.F(_.s$,{data:G.data,
className:"yt-video-attribute-view-model__button"})}}))},"Ob");
TFJ.idomCompat=!0;_.zh(Rpt,"yt-video-attribute-view-model",{props:{data:_.gj,className:_.gj}});var mE=function(){var D=_.c.apply(this,arguments)||this;D.useHighlightStyling=_.g("web_enable_deeper_metadata_highlight_styling");D.isSearch=!1;D.JSC$15166_lastScrollContainerWidth=NaN;D.pageLoadingFromNavigation=!1;D.currentIndex=0;D.supportComponentResize=!1;return D};
_.J(mE,_.c);_.V=mE.prototype;
_.V.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}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.pZ(this,this.onPageChange))};
_.V.detached=function(){document.removeEventListener("yt-page-type-changed",_.pZ(this,this.onPageChange))};
_.V.getItemsPath=function(){return"data.cards"};
_.V.onIronResize=function(){this.updateListStyles()};
_.V.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var D;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(D=this.data)==null?void 0:D.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.g("problem_walkthrough_sd")&&!!this.centerItems};
_.V.computeCardListStyle=function(D){return D||null};
_.V.computeEmpty=function(D){return!this.get("cards.length",D)};
_.V.computeThumbnailStyle=function(D){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",D)||null};
_.V.computeHasSubtitle=function(D){return!!this.get("header.richListHeaderRenderer.subtitle",D)};
_.V.computeInitialCountNumber=function(D){return this.hasSquareMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.V.computeUseFloorScrolling=function(D){return D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.V.computeHasGameCard=function(D){return(D=this.get("cards",D))?D.some(function(v){return v.gameCardRenderer}):!1};
_.V.computeCenterHeaderTitle=function(D){return!(D==null||!D.centerHeaderTitle)};
_.V.computeHasPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(v){return v.miniGameCardViewModel&&v.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.V.computeHasSquareMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(v){return v.miniGameCardViewModel&&v.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.V.computeHasSkinnyWidthPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(v){return v.miniGameCardViewModel&&v.miniGameCardViewModel.width===135}):!1};
_.V.computeCenterItems=function(D){return!!D};
_.V.computeHasInfoPanel=function(D){var v;return D==null?void 0:(v=D.cards)==null?void 0:v.some(function(h){return h.infoPanelContentRenderer})};
_.V.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.V.getItemByIndex=function(D){var v=this.items.children;return v&&v.length>D?v[D]:void 0};
_.V.onPageChange=function(){var D=this;this.pageLoadingFromNavigation=!0;_.HK.addJob(function(){D.pageLoadingFromNavigation=!1;_.U9(D.hostElement,"yt-terminate-video-preview-action")},8)};
_.V.updateListStyles=function(){if(_.g("problem_walkthrough_sd")&&this.JSC$15166_scrollContainer!==void 0){var D=this.JSC$15166_scrollContainer.clientWidth;D!==this.JSC$15166_lastScrollContainerWidth&&(this.JSC$15166_lastScrollContainerWidth=D,_.SB(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(D*.8,415)+"px"}),_.F1(this.hostElement,"iron-resize"))}};
_.GT.Object.defineProperties(mE.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.g("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.cards)==null?0:(h=v[0])==null?0:h.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.cards)==null?0:(h=v[0])==null?0:h.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return _.g("enable_desktop_amsterdam_info_panels")&&!!((D=this.data)==null?0:(v=D.cards)==null?0:(h=v[0])==null?0:h.infoPanelContentRenderer)}}});
mE.prototype.dataChanged=mE.prototype.dataChanged;mE.prototype.onIronResize=mE.prototype.onIronResize;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],mE.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.l(_.CC),_.n("design:type",Object)],mE.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],mE.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],mE.prototype,"useCustomColors",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],mE.prototype,"useHighlightStyling",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.n("design:type",Object)],mE.prototype,"cardListStyle",void 0);_.e([_.Y({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.n("design:type",Boolean)],mE.prototype,"empty",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.n("design:type",Boolean)],mE.prototype,"hasSubtitle",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.n("design:type",Boolean)],mE.prototype,"thumbnailStyle",void 0);_.e([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.n("design:type",Boolean)],mE.prototype,"hasGameCard",void 0);_.e([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.n("design:type",Boolean)],mE.prototype,"centerHeaderTitle",void 0);
_.e([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.n("design:type",Boolean)],mE.prototype,"hasPortraitMiniApp",void 0);_.e([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.n("design:type",Boolean)],mE.prototype,"hasSquareMiniApp",void 0);_.e([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.n("design:type",Boolean)],mE.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.e([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.n("design:type",Boolean)],mE.prototype,"hasInfoPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],mE.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],mE.prototype,"inlineStructuredDescription",void 0);_.e([_.Br("#scroll-container"),_.n("design:type",HTMLDivElement)],mE.prototype,"JSC$15166_scrollContainer",void 0);
_.e([_.Y({computed:"computeInitialCountNumber(data.style.type)"}),_.n("design:type",Number)],mE.prototype,"initialCount",void 0);_.e([_.Y({computed:"computeUseFloorScrolling(data.style.type)"}),_.n("design:type",Boolean)],mE.prototype,"useFloorScrolling",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.n("design:type",Boolean)],mE.prototype,"centerItems",void 0);_.e([_.Y(),_.n("design:type",Object)],mE.prototype,"pageLoadingFromNavigation",void 0);
_.e([_.Y(),_.n("design:type",Object)],mE.prototype,"currentIndex",void 0);_.e([_.Y(),_.n("design:type",Number)],mE.prototype,"scrollCount",void 0);_.e([_.Y(),_.n("design:type",Object)],mE.prototype,"supportComponentResize",void 0);_.e([_.Br("#items"),_.n("design:type",HTMLDivElement)],mE.prototype,"items",void 0);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mE.prototype,"onIronResize",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mE.prototype,"dataChanged",null);_.e([_.Y({reflectToAttribute:!0}),_.N("inlineStructuredDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mE.prototype,"hideNavigationButton",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mE.prototype,"modernChapters",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mE.prototype,"hasVideoAttributeViewModels",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mE.prototype,"modernInfoPanels",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],mE);
_.w(mE,"ytd-horizontal-card-list-renderer",function(){if(wGJ!==void 0)return wGJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return wGJ=D},{mode:_.E_("kevlar_poly_si_batch_j072")?1:2});var iFt=_.H(function(D){var v=D.data;var h={};return _.F("video-summary-content-view-model",{class:_.S3("videoSummaryContentViewModelHost",D.className,(h.videoSummaryContentViewModelHostIsSearch=D.isSearch,h))},_.F(_.Xd,{each:function(){var a=[],Q=v().paragraphs;if(Q==null||!Q.length)return[];for(var G=0;G<Q.length;G++){var x=_.k(Q[G],t51),f=void 0;G>0&&(f=_.k(Q[G-1],t51));f&&!!f.marker===!!x.marker?a[a.length-1].paragraphs.push(x):a.push({isList:!!x.marker,paragraphs:[x]})}return a},
keyBy:"INDEX"},function(a){return _.F(_.z,{cond:function(){return a().isList},
then:function(){return _.F("ul",{class:"videoSummaryContentViewModelList"},_.F(_.Xd,{each:function(){return a().paragraphs},
keyBy:"INDEX"},function(Q){return _.F("li",{class:"videoSummaryContentViewModelListItem"},_.F(_.IY,{text:function(){return Q().text}}))}))},
else:function(){return _.F("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.F(_.Xd,{each:function(){return a().paragraphs},
keyBy:"INDEX"},function(Q){return _.F("p",{class:"videoSummaryContentViewModelParagraph"},_.F(_.IY,{text:function(){return Q().text}}))}))}})}),_.F(_.z,{cond:function(){return!!_.k(v().likeButtonViewModel,_.hp)&&!!_.k(v().dislikeButtonViewModel,_.vi)},
then:function(){return _.F("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.F("div",{class:"videoSummaryContentViewModelLikeButton"},_.F(_.x3,{data:function(){return _.k(v().likeButtonViewModel,_.hp)},
disableIconAnimation:!0})),_.F(_.PM,{data:function(){return _.k(v().dislikeButtonViewModel,_.vi)}}))}}))},"Pb");
iFt.idomCompat=!0;_.zh(iFt,"video-summary-content-view-model",{props:{data:_.gj,isSearch:_.gj,className:_.gj}});var H$=function(){var D=_.c.apply(this,arguments)||this;var v,h;D.isExpanded=(h=(v=D.data)==null?void 0:v.isExpanded)!=null?h:!1;D.disableExpand=!1;D.showProminentLabel=!1;D.showRightSideLabel=!0;D.toggleExpandableContent=function(a){D.disableExpand||(a.stopPropagation(),_.VL(_.Pr(a),D.hostElement,["info","expanded-subtitle"])||(D.isExpanded=!D.isExpanded,D.ytRendererBehavior.logExplicitClick(D.data),D.JSC$15177_cardList&&!_.g("expandable_metadata_a11y_fix_ks")&&_.$R(D,function(){_.v1(D.hostElement)})))};
D.useSquareThumbnail=!1;D.startX=0;return D};
_.J(H$,_.c);_.V=H$.prototype;_.V.computeUseSquareThumbnail=function(){var D;return(D=this.data)==null?void 0:D.useSquareThumbnail};
_.V.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"}}}}};
_.V.dataChanged=function(){if(this.data){var D,v;this.isExpanded=(v=(D=this.data)==null?void 0:D.isExpanded)!=null?v:!1;var h,a,Q,G;if(D=this.isDarkTheme()?(h=this.data)==null?void 0:(a=h.colorData)==null?void 0:a.darkColorPalette:(Q=this.data)==null?void 0:(G=Q.colorData)==null?void 0:G.lightColorPalette){var x,f;if((x=this.data)==null?0:(f=x.colorData)==null?0:f.vibrantColorPalette)D.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.sA(this.hostElement,D)}}};
_.V.isExpandedChanged=function(){this.isExpanded&&this.JSC$15177_cardList&&_.F1(this.JSC$15177_cardList,"iron-resize")};
_.V.computeIsExpanded=function(D){return!!D.isExpanded};
_.V.computeShowProminentLabel=function(D,v){var h;return!!(D==null?0:(h=D.header)==null?0:h.showLeadingCollapsedLabel)&&!v};
_.V.computeShowRightSideLabel=function(D,v){var h;return!(D==null?0:(h=D.header)==null?0:h.showLeadingCollapsedLabel)&&!v};
_.V.captureContentClick=function(D){if(!this.disableExpand)if(_.g("expandable_metadata_fix_killswitch")){var v=D.target;_.KmJ(v,"ytd-macro-markers-list-item-renderer")||D.stopPropagation();(v==null?void 0:v.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.VL(_.Pr(D),this.hostElement,["items"])||_.Gf(_.Pr(D),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.V.timestampClick=function(D){D.stopPropagation();var v,h;(D=(v=this.data)==null?void 0:(h=v.header)==null?void 0:h.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(D)};
_.V.onDown=function(D){D.stopPropagation();this.startX=D.detail?D.detail.x:0};
_.V.onUp=function(D){this.skipKeyInteraction(D)&&D.stopPropagation()};
_.V.skipKeyInteraction=function(D){var v=D.target;if((v==null?void 0:v.id)==="scroll-container"||(v==null?void 0:v.id)==="items"||D.detail&&D.detail.x!==this.startX)return!0;D=_.Pr(D);D=_.P(D);for(v=D.next();!v.done;v=D.next()){v=v.value;if(v===this.hostElement)break;if(v.hasAttribute&&v.hasAttribute("skip-key-interaction"))return!0}return!1};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.GT.Object.defineProperties(H$.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.k((D=this.data)==null?void 0:D.expandedContent,WB$)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.k((D=this.data)==null?void 0:D.expandedContent,_.td$)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.useCustomColors)&&!((v=this.data)==null||!v.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!((D=this.data)==null?0:(v=D.header)==null?0:v.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!((D=this.data)==null?0:(v=D.header)==null?0:v.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!((D=this.data)==null?0:(v=D.header)==null?0:v.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
H$.prototype.onUp=H$.prototype.onUp;H$.prototype.onDown=H$.prototype.onDown;H$.prototype.isExpandedChanged=H$.prototype.isExpandedChanged;H$.prototype.dataChanged=H$.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],H$.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],H$.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],H$.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],H$.prototype,"isExpanded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],H$.prototype,"disableExpand",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],H$.prototype,"isSearch",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],H$.prototype,"isWatch",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.n("design:type",Object)],H$.prototype,"showProminentLabel",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.n("design:type",Object)],H$.prototype,"showRightSideLabel",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"hasVideoSummary",null);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"hasLockupViewModel",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data","isWatch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"useCustomColors",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"showInfoButton",null);_.e([_.N("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"showTimestamp",null);_.e([_.N("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"showExpandedSubtitle",null);
_.e([_.N("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],H$.prototype,"showThumbnail",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],H$.prototype,"useVppShoppingDestinationStyle",null);_.e([_.Y(),_.n("design:type",Object)],H$.prototype,"toggleExpandableContent",void 0);_.e([_.Br("ytd-horizontal-card-list-renderer"),_.n("design:type",Object)],H$.prototype,"JSC$15177_cardList",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.n("design:type",Object)],H$.prototype,"useSquareThumbnail",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],H$.prototype,"dataChanged",null);_.e([_.Ni("isExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],H$.prototype,"isExpandedChanged",null);
_.e([_.lc("down"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H$.prototype,"onDown",null);_.e([_.lc("up"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H$.prototype,"onUp",null);_.e([_.m({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],H$);
_.w(H$,"ytd-expandable-metadata-renderer",function(){if(WwJ!==void 0)return WwJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return WwJ=D},{mode:1});var Wum,tiR=function(){if(Wum!==void 0)return Wum;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <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');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Wum=D};_.zh(_.V2,"yt-avatar-stack-view-model",{props:{className:_.gj,data:_.gj,overrides:_.gj,isOverlay:_.gj,useMediumText:_.gj,decorations:_.gj,hideAvatar:_.gj}});_.HX("itemSectionRenderer","videoRenderer","ytd-video-renderer");var y2=function(){var D=_.c.apply(this,arguments)||this;D.disableExpand=!1;D.shouldShowChannelInfo=!1;D.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return D};
_.J(y2,_.c);_.V=y2.prototype;_.V.computeUseSearchUi=function(){var D,v;return this.isSearch||((D=this.data)==null?void 0:(v=D.style)==null?void 0:v.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.computeUseThreeLineTitle=function(){var D;return((D=this.data)==null?void 0:D.maxTitleLines)===3};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.g("polymer_video_renderer_defer_menu")&&!HNm?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"}}}};
_.V.attached=function(){_.Iy(this.hostElement,"blue-links",_.g("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.gx(_.ZW(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),v;D&&((v=_.k(D.commandMetadata,_.Kr))==null?0:v.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D);this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15182_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.JSC$15182_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15182_inlinePreviewHoverListener)==null||hL(D)};
_.V.onTextWrapperClick=function(D){var v,h,a=this.hideTranslation?(v=this.data)==null?void 0:v.untranslatedNavigationEndpoint:(h=this.data)==null?void 0:h.navigationEndpoint;v=_.VL(_.Pr(D),this.hostElement,["expandable-metadata"]);!a||v&&!_.g("expandable_metadata_fix_killswitch")||_.Gf(_.Pr(D),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.F1(this.hostElement,"yt-navigate",{endpoint:a})};
_.V.computeThumbnailWidth=function(D,v,h,a,Q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:a?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:h?360:v?128:D?210:246};
_.V.computeUseBiggerThumbs=function(D){return D&&_.g("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.V.computeVideoStyle=function(){if(_.g("enable_video_style")){var D,v;return(D=this.data)==null?void 0:(v=D.style)==null?void 0:v.value}};
_.V.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.handleHideItemSectionVideosByIdCommand=function(D){var v;D=(v=_.k(D,ZgM))==null?void 0:v.videoId;this.data&&this.data.videoId===D&&(this.isHidden=!0)};
_.V.getMetadataSnippetContainerClass=function(D){return D?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.V.computeTitleText=function(D,v,h){return D?h:v};
_.V.computeDescriptionSnippet=function(D,v,h){return D?h:v};
_.V.computeSnippetText=function(D,v,h){return D?h:v};
_.V.computeNavigationEndpoint=function(D,v){return D?v==null?void 0:v.untranslatedNavigationEndpoint:v==null?void 0:v.navigationEndpoint};
_.V.hideInlineTitleIcon=function(D,v){return D||!v};
_.GT.Object.defineProperties(y2.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var D;return(D=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?D:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!(this==null?0:(D=this.data)==null?0:(v=D.channelThumbnailSupportedRenderers)==null?0:(h=v.channelThumbnailWithLinkRenderer)==null?0:h.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.k((D=this.data)==null?void 0:D.avatar,rk$)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15182_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.GT.Object.defineProperties(y2,{template:{configurable:!0,enumerable:!0,get:function(){return tiR()}}});
y2.prototype.dataChanged=y2.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],y2.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.E0),_.n("design:type",Object)],y2.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],y2.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],y2.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],y2.prototype,"isBackstageVideo",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],y2.prototype,"isPostCompactVideo",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],y2.prototype,"isHistory",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],y2.prototype,"isRichGridVideoPost",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],y2.prototype,"isHidden",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],y2.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.n("design:type",Boolean)],y2.prototype,"useSearchUi",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.n("design:type",Boolean)],y2.prototype,"useThreeLineTitle",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.n("design:type",Boolean)],y2.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.n("design:type",Object)],y2.prototype,"videoStyle",void 0);_.e([_.Y({computed:"computeDisableExpand(videoStyle)"}),_.n("design:type",Object)],y2.prototype,"disableExpand",void 0);
_.e([_.Y({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.n("design:type",Object)],y2.prototype,"shouldShowChannelInfo",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],y2.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.n("design:type",String)],y2.prototype,"inlineTitleIcon",void 0);_.e([_.Y({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.n("design:type",Object)],y2.prototype,"computedNavigationEndpoint",void 0);_.e([_.Y({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(D,v){return _.gR(D.entities,"searchVideoResultEntity",v)}}),
_.n("design:type",Object)],y2.prototype,"searchVideoResultEntity",void 0);_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],y2.prototype,"thumbnail",void 0);_.e([_.Br("#dismissible"),_.n("design:type",HTMLElement)],y2.prototype,"JSC$15182_dismissibleMedia",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],y2.prototype,"dataChanged",null);
_.e([_.N("searchVideoResultEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],y2.prototype,"hideTranslation",null);_.e([_.N("searchVideoResultEntity"),_.n("design:type",Array),_.n("design:paramtypes",[])],y2.prototype,"hiddenBadgeGroups",null);_.e([_.N("data","useAvatar"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],y2.prototype,"shouldShowChannelThumbnail",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],y2.prototype,"useAvatar",null);
_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],y2.prototype,"isHovered",null);_.e([_.m({is:"ytd-video-renderer",disableElementRegistration:!0})],y2);_.w(y2,"ytd-video-renderer",function(){return tiR()},{mode:_.E_("kevlar_poly_si_batch_j047")?1:2});var wz=function(){var D=_.c.apply(this,arguments)||this;D.editDialog=null;D.roundedContainer=!0;D.isLoading=!1;D.isRichGrid=!1;D.isRichGridRepost=!1;D.reduceSidePaddings=_.g("reduce_side_paddings_in_shelf");D.JSC$15189_spinnerEl=null;return D};
_.J(wz,_.c);_.V=wz.prototype;
_.V.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"}}}};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){var D=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var v=0,h=this.data.actions&&this.data.actions.length;v<h;v++)this.openEditDialog(_.k(this.data.actions[v],Vv4));if((v=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(v=this.get("buttonRenderer.hint.hintRenderer.hintId",v))&&v.startsWith("share-post-hint")){var a=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(a){_.XQ.getInstance();var Q=AU(_.aX(_.p1("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.HK.addLowPriorityJob(function(){_.ZD(D.hostElement,Q,a)})}}}};
_.V.updatePoll=function(D){D>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15189_spinnerEl||(this.JSC$15189_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZW(this.hostElement).appendChild(this.JSC$15189_spinnerEl));this.JSC$15189_spinnerEl&&(this.JSC$15189_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(D){var v=this.get("updateCommentDialogEndpoint",D.detail.endpoint);v&&(this.openEditDialog(v),D.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(D,v){v&&this.updatePoll(v.selectedChoiceIndex)};
_.V.onYtServiceRequestSent=function(D,v){var h;v.endpoint&&(_.k(v.endpoint,PeM)||_.k(v.endpoint,VkF)&&((h=_.k(v.endpoint,VkF))==null||!h.clientActions))&&(this.isLoading=!0);if(v.actions)for(D=0;D<v.actions.length;D++)h=v.actions[D],_.k(h,nr)&&(h=this.get("updateBackstagePollAction.selectedChoiceIndex",h),h==void 0&&(h=-1),this.updatePoll(h))};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.V.computeIsPostHidden=function(D,v){return!!D||v};
_.V.computeSurfaceType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeShowWithoutToolbar=function(D){return!D.actionButtons&&!D.actionMenu};
_.V.computePostAttachment=function(D){if(D.backstageAttachment){if(_.k(D.backstageAttachment,ypy))return"poll";if(_.k(D.backstageAttachment,Jpt))return"quiz";if(_.k(D.backstageAttachment,_.xG))return"video";if(_.k(D.backstageAttachment,pim))return"uploaded-videos";if(_.k(D.backstageAttachment,AJb))return D.contentText?"image":"image-only";if(_.k(D.backstageAttachment,IEM))return"playlist"}return"none"};
_.V.computePostTabIndex=function(D){return D?0:-1};
_.V.computeButtonTooltipPosition=function(D){return this.computeUsesCompactLockup(D)?"top":"bottom"};
_.V.computeHasText=function(D){return!(D==null||!D.contentText)};
_.V.onTap=function(D){var v,h;if(((v=this.data)==null?0:v.navigationEndpoint)&&((h=this.data)==null?void 0:h.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var a;((a=this.data)==null?0:a.navigationEndpoint)&&!_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.GT.Object.defineProperties(wz.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.aX("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,ypy))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,pim))}}});
wz.prototype.onYtServiceRequestCompleted=wz.prototype.onYtServiceRequestCompleted;wz.prototype.onYtServiceRequestSent=wz.prototype.onYtServiceRequestSent;wz.prototype.onYtCommentPollRevert=wz.prototype.onYtCommentPollRevert;wz.prototype.onYtCommentboxDismiss=wz.prototype.onYtCommentboxDismiss;wz.prototype.onYtNavigate=wz.prototype.onYtNavigate;wz.prototype.isLoadingChanged=wz.prototype.isLoadingChanged;wz.prototype.dataChanged=wz.prototype.dataChanged;wz.prototype.contentTextChanged=wz.prototype.contentTextChanged;
_.e([_.l(_.CC),_.n("design:type",Object)],wz.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wz.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],wz.prototype,"editDialog",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wz.prototype,"roundedContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],wz.prototype,"isLoading",void 0);_.e([_.Y({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.n("design:type",String)],wz.prototype,"surface",void 0);
_.e([_.Y({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.n("design:type",Boolean)],wz.prototype,"usesCompactLockup",void 0);_.e([_.Y({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],wz.prototype,"showWithoutToolbar",void 0);_.e([_.Y({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.n("design:type",String)],wz.prototype,"attachment",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wz.prototype,"isRichGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wz.prototype,"isRichGridRepost",void 0);_.e([_.Y({reflectToAttribute:!0,value:_.g("use_better_post_dismissals")}),_.n("design:type",Boolean)],wz.prototype,"useBetterPostDismissals",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wz.prototype,"reduceSidePaddings",void 0);
_.e([_.Y({computed:"computeHasText(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],wz.prototype,"hasText",void 0);_.e([_.Br("#expander"),_.n("design:type",Object)],wz.prototype,"expander",void 0);_.e([_.Br("#action-buttons"),_.n("design:type",Object)],wz.prototype,"actionButtons",void 0);_.e([_.Br("#edit-dialog"),_.n("design:type",HTMLElement)],wz.prototype,"editDialogEl",void 0);
_.e([_.Ni("data.contentText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wz.prototype,"contentTextChanged",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wz.prototype,"dataChanged",null);_.e([_.Ni("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wz.prototype,"isLoadingChanged",null);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wz.prototype,"onYtNavigate",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wz.prototype,"onYtCommentboxDismiss",null);_.e([_.lc("yt-comment-poll-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],wz.prototype,"onYtCommentPollRevert",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],wz.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],wz.prototype,"onYtServiceRequestCompleted",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wz.prototype,"voteCount",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wz.prototype,"commentCount",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wz.prototype,"hasPoll",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wz.prototype,"hasUploadedVideo",null);_.e([_.m({is:"ytd-post-renderer",disableElementRegistration:!0})],wz);
_.w(wz,"ytd-post-renderer",function(){if(Lwm!==void 0)return Lwm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Lwm=D},{mode:1});var riy;var uMm;var e1=function(){return _.c.apply(this,arguments)||this};
_.J(e1,_.c);e1.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],e1.prototype,"ytdHorizontalListBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],e1.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],e1.prototype,"data",void 0);
_.e([_.Y({value:"$.items.children"}),_.n("design:type",String)],e1.prototype,"itemsPath",void 0);_.e([_.Y({value:1}),_.n("design:type",Number)],e1.prototype,"initialCount",void 0);_.e([_.Y({reflectToAttribute:!0,value:_.g("enable_community_page_on_desktop")}),_.n("design:type",Boolean)],e1.prototype,"useSmallerPostImageAttachments",void 0);_.e([_.Y(),_.n("design:type",String)],e1.prototype,"surface",void 0);_.e([_.m({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],e1);
_.w(e1,"ytd-post-multi-image-renderer",function(){if(uMm!==void 0)return uMm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return uMm=D},{mode:_.E_("kevlar_poly_si_batch_j079")?1:2});var D2m={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},nE=function(){var D=_.c.apply(this,arguments)||this;D.hasInlineCommentSection=!1;D.editDialog=null;D.isLoading=!1;D.shouldHideAuthor=!1;D.shouldShowVideoTime=!1;
D.isInEngagementPanel=!1;D.hideBorder=!1;D.usesFullLockup=!1;D.shouldShowMenuInCompactView=!1;D.JSC$15204_spinnerEl=null;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.J(nE,_.c);_.V=nE.prototype;_.V.configureRendererStamper=function(){return D2m};
_.V.computeIsPollHeaderEnabled=function(D){return(D==null?void 0:D.pollMetadataIcon)!=null};
_.V.getPublishTimeStampString=function(D,v){v=new Date((Number(v)-60*((new Date).getTimezoneOffset()-(new Date(Number(v)*1E3)).getTimezoneOffset()))*1E3);v=(new hQ(10)).format(v);if(D&&D.runs&&D.runs.length)for(var h=0;h<D.runs.length;h++)D.runs[h].text&&(D.runs[h].text=D.runs[h].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",v));return D};
_.V.created=function(){this.JSC$15204_spinnerEl=null};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var D;if((D=this.data)==null?0:D.actions){D=_.P(this.data.actions);for(var v=D.next();!v.done;v=D.next())this.openEditDialog(_.k(v.value,Vv4))}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){_.ZW(this.hostElement).querySelector("#action-buttons").reply()};
_.V.updatePoll=function(D,v){v&&this.set("data.pollMetadataVoteCountText",v);this.hasInlineCommentSection&&(D=D>=0,v=_.ZW(this.hostElement).querySelector("#action-buttons"),D?v.reply():v.hideReplyDialog())};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15204_spinnerEl||(this.JSC$15204_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZW(this.hostElement).appendChild(this.JSC$15204_spinnerEl));this.JSC$15204_spinnerEl&&(this.JSC$15204_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(D){var v=this.get("updateCommentDialogEndpoint",D.detail.endpoint);v&&(this.openEditDialog(v),D.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(D,v){v&&this.updatePoll(v.selectedChoiceIndex,v.totalVotes)};
_.V.onYtServiceRequestSent=function(D,v){D.stopPropagation();D=_.k(v.endpoint,VkF);if(_.k(v.endpoint,PeM)||D&&!D.clientActions)this.isLoading=!0;if(v.actions)for(D=0;D<v.actions.length;D++){var h=v.actions[D],a=_.k(h,nr);a&&(h=this.get("updateBackstagePollAction.selectedChoiceIndex",h),h===void 0&&(h=-1),this.updatePoll(h,a.totalVotes))}};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogElement.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.V.computeIsBodyHidden=function(D,v){return!!D||v};
_.GT.Object.defineProperties(nE.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D=this.data,v=D.showPostAuthorBackgroundHighlight,h=D.postAuthorBadgeType,a=D.authorEndpoint;if(!v&&h!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&h!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var Q,G,x;D=_.aX(((Q=D.authorText)==null?void 0:(G=Q.runs)==null?void 0:(x=G[0])==null?void 0:x.text)||"");Q=void 0;switch(h){case "POST_AUTHOR_BADGE_TYPE_ARTIST":Q={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":Q={iconType:v?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:D,authorEndpoint:a,authorCreator:v,icon:Q}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var D,v;if((D=this.data)==null?0:(v=D.pollMetadataIcon)==null?0:v.iconType)return _.SQ(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.aX("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,ypy))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,Jpt))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,pim))}}});
nE.prototype.onYtServiceRequestCompleted=nE.prototype.onYtServiceRequestCompleted;nE.prototype.onYtServiceRequestSent=nE.prototype.onYtServiceRequestSent;nE.prototype.onYtCommentPollRevert=nE.prototype.onYtCommentPollRevert;nE.prototype.onYtCommentboxDismiss=nE.prototype.onYtCommentboxDismiss;nE.prototype.onYtNavigate=nE.prototype.onYtNavigate;nE.prototype.isLoadingChanged=nE.prototype.isLoadingChanged;nE.prototype.dataChanged=nE.prototype.dataChanged;nE.prototype.contentTextChanged=nE.prototype.contentTextChanged;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],nE.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nE.prototype,"rendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nE.prototype,"rendererstamperBehavior",void 0);_.e([_.Br("#contentTextExpander"),_.n("design:type",Object)],nE.prototype,"expander",void 0);
_.e([_.Br("#edit-dialog"),_.n("design:type",Element)],nE.prototype,"editDialogElement",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"hasInlineCommentSection",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"editDialog",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"isLoading",void 0);
_.e([_.Y({computed:"computeIsPollHeaderEnabled(data)"}),_.n("design:type",Boolean)],nE.prototype,"isPollHeaderEnabled",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"shouldHideAuthor",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"shouldShowVideoTime",void 0);_.e([_.Y(),_.n("design:type",Object)],nE.prototype,"isInEngagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nE.prototype,"hideBorder",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nE.prototype,"usesFullLockup",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nE.prototype,"shouldShowMenuInCompactView",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nE.prototype,"authorCommentBadge",null);_.e([_.N("isInEngagementPanel"),_.n("design:type",Number),_.n("design:paramtypes",[])],nE.prototype,"postTextMaxLines",null);
_.e([_.N("data.icon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],nE.prototype,"pollIcon",null);_.e([_.Ni("data.contentText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nE.prototype,"contentTextChanged",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nE.prototype,"dataChanged",null);
_.e([_.Ni("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nE.prototype,"isLoadingChanged",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nE.prototype,"onYtNavigate",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nE.prototype,"onYtCommentboxDismiss",null);
_.e([_.lc("yt-comment-poll-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],nE.prototype,"onYtCommentPollRevert",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],nE.prototype,"onYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nE.prototype,"onYtServiceRequestCompleted",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nE.prototype,"voteCount",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nE.prototype,"commentCount",null);
_.e([_.N("data.backstageAttachment"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nE.prototype,"hasPoll",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nE.prototype,"hasQuiz",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nE.prototype,"hasUploadedVideo",null);_.e([_.m({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],nE);
_.w(nE,"ytd-backstage-post-renderer",function(){if(riy!==void 0)return riy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return riy=D},{mode:1});var vnM;var Op=function(){var D=_.c.apply(this,arguments)||this;D.editDialog=null;D.showExpandButton=!1;D.isRichGrid=!1;D.usesFullLockup=!1;return D};
_.J(Op,_.c);_.V=Op.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.V.computeShowExpandButton=function(D){return this.usesCompactLockup||D&&D.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.V.computeUsesCompactLockup=function(D){return!!D.condensedContent};
_.V.computeShowFullContentText=function(D){return!D};
_.V.onYtNavigate=function(D){D=this.get("updateCommentDialogEndpoint",D.detail.endpoint);this.openEditDialog(D)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.repostEditDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.V.onTap=function(D){if(this.data){var v=null;this.usesCompactLockup&&!_.Gf(_.Pr(D)||[],this.hostElement,["YT-IMG-SHADOW"])?v=this.get("navigationEndpoint",this.data):D.target===this.moreButtonEl&&(v=this.get("navigationEndpoint",D.target.data));v&&_.F1(this.hostElement,"yt-navigate",{endpoint:v})}};
Op.prototype.onYtCommentboxDismiss=Op.prototype.onYtCommentboxDismiss;Op.prototype.onYtNavigate=Op.prototype.onYtNavigate;Op.prototype.dataChanged=Op.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Op.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],Op.prototype,"editDialog",void 0);_.e([_.Y({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Op.prototype,"usesCompactLockup",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Op.prototype,"showExpandButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Op.prototype,"isRichGrid",void 0);
_.e([_.Y({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Op.prototype,"showFullContentText",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Op.prototype,"usesFullLockup",void 0);_.e([_.Br("#more"),_.n("design:type",Object)],Op.prototype,"moreButtonEl",void 0);_.e([_.Br("#repost-content-text"),_.n("design:type",HTMLElement)],Op.prototype,"repostContentTextEl",void 0);
_.e([_.Br("#repost-edit-dialog"),_.n("design:type",HTMLElement)],Op.prototype,"repostEditDialogEl",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Op.prototype,"dataChanged",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Op.prototype,"onYtNavigate",null);
_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Op.prototype,"onYtCommentboxDismiss",null);_.e([_.m({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Op);
_.w(Op,"ytd-shared-post-renderer",function(){if(vnM!==void 0)return vnM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return vnM=D},{mode:1});var h8M;var aas;var KE=function(){return _.c.apply(this,arguments)||this};
_.J(KE,_.c);KE.prototype.attached=function(){var D=this;this.networkStatusManager||(this.networkStatusManager=new _.ra,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){D.onlineHandler()}))};
KE.prototype.detached=function(){var D=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){D.onlineHandler()}),delete this.networkStatusManager)};
KE.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],KE.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KE.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],KE);
_.w(KE,"ytd-reload-page-button-renderer",function(){if(aas!==void 0)return aas;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return aas=D},{mode:1});var $2b={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"},TG=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(TG,_.c);_.V=TG.prototype;_.V.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V.computeHasBodyText=function(D){return!!D.bodyText};
_.V.computeButtons=function(D){var v=[];D.ctaButton&&v.push(D.ctaButton);D.secondaryButton&&v.push(D.secondaryButton);return v};
_.V.computeRendererStyle=function(D){return D.style?D.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():D.icon?"":"no-icon"};
_.V.getIconName=function(D,v){v=v===void 0?!1:v;if(D===void 0)return"";D=this.get("icon.iconType",D);var h;_.g("enable_hlp_client_icon_pick")?h=this.getThemedIcon(D,v):h=D;(v=$2b[h])||(v="yt-icons");return[v,h].join(":")};
_.V.getThemedIcon=function(D,v){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(D)?v?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(D)?v?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":D};
_.V.isThumbnail=function(D){return!!D.thumbnail};
_.V.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],TG.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TG.prototype,"data",void 0);
_.e([_.Y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],TG.prototype,"rendererStyle",void 0);_.e([_.Y({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.n("design:type",String)],TG.prototype,"iconName",void 0);_.e([_.Y({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],TG.prototype,"thumbnail",void 0);_.e([_.Y({computed:"computeButtons(data)"}),_.n("design:type",Array)],TG.prototype,"buttons",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],TG.prototype,"isDarkTheme",void 0);_.e([_.Y({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],TG.prototype,"hasBodyText",void 0);_.e([_.m({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],TG);
_.w(TG,"ytd-background-promo-renderer",function(){if(h8M!==void 0)return h8M;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return h8M=D},{mode:1});var QLb;var R_=function(){var D=_.c.apply(this,arguments)||this;D.collections=_.g("web_modern_collections_v2");return D};
_.J(R_,_.c);_.GT.Object.defineProperties(R_.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q,G;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(v=D.thumbnail)==null?void 0:v.sampledThumbnailColor,vibrantColorPalette:(h=this.data)==null?void 0:(a=h.thumbnail)==null?void 0:a.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(G=Q.thumbnail)==null?void 0:G.darkColorPalette,experimentEnabled:this.collections}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],R_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],R_.prototype,"collections",void 0);_.e([_.N("data","collections"),_.n("design:type",Object),_.n("design:paramtypes",[])],R_.prototype,"collectionStack",null);_.e([_.m({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],R_);
_.w(R_,"ytd-compact-station-renderer",function(){if(QLb!==void 0)return QLb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QLb=D},{mode:1});var GWy;var iF=function(){var D=_.c.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.J(iF,_.c);iF.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]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iF.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],iF.prototype,"isRichGrid",void 0);_.e([_.m({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],iF);
_.w(iF,"ytd-grid-channel-renderer",function(){if(GWy!==void 0)return GWy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return GWy=D},{mode:1});var VFR;var W$=function(){return _.c.apply(this,arguments)||this};
_.J(W$,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],W$.prototype,"data",void 0);_.e([_.m({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],W$);
_.w(W$,"ytd-grid-movie-playlist-renderer",function(){if(VFR!==void 0)return VFR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return VFR=D},{mode:1});var PZ9;var tj=function(){var D=_.c.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.modernButtons=_.g("web_modern_buttons");D.useModernCollectionsV2=_.g("web_modern_collections_v2");return D};
_.J(tj,_.c);tj.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
tj.prototype.configureRendererStamper=function(){return{"data.menu":Ot}};
tj.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
tj.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.g("woffle_playlist_renderer_killswitch")){var D,v=Ze8(this.entityInfo,this.transferState,this.downloadProgress,(D=this.data)==null?void 0:D.playlistId,this.isOnline);D=v.viewPlaylistText;var h=v.badges;v=v.thumbnailOverlays;this.isDownloads=!!D||!!h;this.set("data.viewPlaylistText",D);h&&h.length>0&&this.set("data.badges",h);v&&v.length>0&&this.set("data.thumbnailOverlays",
v)}};
_.GT.Object.defineProperties(tj.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.menu)}}});
tj.prototype.transferStateChanged=tj.prototype.transferStateChanged;tj.prototype.dataChanged=tj.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],tj.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],tj.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y({selector:_.YHr,selectorArgs:["data.playlistId"]}),_.n("design:type",Object)],tj.prototype,"downloadProgress",void 0);_.e([_.Y({selector:_.Ta,selectorArgs:["data.playlistId"]}),_.n("design:type",Object)],tj.prototype,"transferState",void 0);_.e([_.Y({selector:Nh4,selectorArgs:["data.playlistId"]}),_.n("design:type",Object)],tj.prototype,"entityInfo",void 0);_.e([_.Y({selector:_.O4}),_.n("design:type",Boolean)],tj.prototype,"isOnline",void 0);
_.e([_.Y(),_.n("design:type",Object)],tj.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],tj.prototype,"downloadRenderData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],tj.prototype,"modernButtons",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],tj.prototype,"isDownloads",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tj.prototype,"useModernCollectionsV2",void 0);
_.e([_.N("transferState"),_.Y({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],tj.prototype,"downloadState",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tj.prototype,"menuHidden",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tj.prototype,"dataChanged",null);
_.e([_.qi("transferState","downloadProgress","isOnline"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tj.prototype,"transferStateChanged",null);_.e([_.m({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],tj);
_.w(tj,"ytd-grid-playlist-renderer",function(){if(PZ9!==void 0)return PZ9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return PZ9=D},{mode:1});var x2F;var rz=function(){var D=_.c.apply(this,arguments)||this;D.collections=_.g("web_modern_collections_v2");return D};
_.J(rz,_.c);rz.prototype.configureRendererStamper=function(){return{"data.menu":Ot,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.GT.Object.defineProperties(rz.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q,G;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(v=D.thumbnail)==null?void 0:v.sampledThumbnailColor,vibrantColorPalette:(h=this.data)==null?void 0:(a=h.thumbnail)==null?void 0:a.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(G=Q.thumbnail)==null?void 0:G.darkColorPalette,experimentEnabled:this.collections}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],rz.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],rz.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rz.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],rz.prototype,"collections",void 0);_.e([_.N("data","collections"),_.n("design:type",Object),_.n("design:paramtypes",[])],rz.prototype,"collectionStack",null);_.e([_.m({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],rz);
_.w(rz,"ytd-grid-radio-renderer",function(){if(x2F!==void 0)return x2F;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return x2F=D},{mode:1});var MFs;var uF=function(){var D=_.c.apply(this,arguments)||this;D.useModernCollectionsV2=_.g("web_modern_collections_v2");return D};
_.J(uF,_.c);uF.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
uF.prototype.computeNavigationEndpoint=function(D){return gMq(D==null?void 0:D.navigationEndpoint)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],uF.prototype,"ytdLockupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uF.prototype,"data",void 0);_.e([_.Y({computed:"computeNavigationEndpoint(data)"}),_.n("design:type",Object)],uF.prototype,"computedNavigationEndpoint",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uF.prototype,"useModernCollectionsV2",void 0);_.e([_.m({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],uF);
_.w(uF,"ytd-grid-show-renderer",function(){if(MFs!==void 0)return MFs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return MFs=D},{mode:1});var fab;_.Dh=function(D){this.playerClient=D};
_.CZ9=function(D,v,h){h=h===void 0?{}:h;return D.playerClient.setOption("ad",v,h)};
_.Dh.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Dh.prototype.executeCommand=function(D,v){this.getOptions().includes("executeCommand")?_.CZ9(this,"executeCommand",{command:D,layoutId:v}):_.u7("Calling executeCommand when adModule is not loaded")};var vj=function(){return _.c.apply(this,arguments)||this};
_.J(vj,_.c);vj.prototype.getLayoutId=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
vj.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var D=_.Mq(),v=this.getLayoutId(),h=this.data.clickthroughEndpoint;D&&v&&_.g("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(a){(new _.Dh(a)).executeCommand(h,v)}):_.F1(this.hostElement,"yt-navigate",{endpoint:h})}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vj.prototype,"data",void 0);_.e([_.m({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],vj);
_.w(vj,"ytd-shopping-companion-item-renderer",function(){if(fab!==void 0)return fab;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fab=D},{mode:1});var onJ;var h6=function(){var D=_.c.apply(this,arguments)||this;D.isExpandableContent=!1;return D};
_.J(h6,_.c);_.GT.Object.defineProperties(h6.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?void 0:D.price)||((v=this.data)==null?void 0:(h=v.dealsData)==null?void 0:h.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var D,v;if((D=this.data)!=null&&D.dealsData&&((v=this.data)==null||!v.priceReplacementText)){D=this.data.dealsData;var h,a,Q;return((h=D.salesData)==null?void 0:h.originalPrice)||((a=D.priceDropData)==null?void 0:a.referencePrice)||((Q=D.promotionData)==null?void 0:Q.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var D,v;return(D=this.data)==null?void 0:(v=D.dealsData)==null?void 0:v.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],h6.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],h6.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],h6.prototype,"isExpandableContent",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"showCta",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"ctaText",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"hasPriceTopPosition",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"hasPriceBottomPosition",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"useNewStyle",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"showPriceReplacementText",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"priceValue",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"showDeal",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"showAffiliateDisclaimer",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"useSaleStyle",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"useFromBrandCtaStyle",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"useFromVendorCtaStyle",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],h6.prototype,"useShoppingCollectionCtaStyle",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],h6);
_.w(h6,"ytd-vertical-product-card-renderer",function(){if(onJ!==void 0)return onJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return onJ=D},{mode:1});var Fes;var a6=function(){return _.c.apply(this,arguments)||this};
_.J(a6,_.c);a6.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],a6.prototype,"ytdLockupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],a6.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],a6);
_.w(a6,"ytd-grid-movie-renderer",function(){if(Fes!==void 0)return Fes;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Fes=D},{mode:1});var z8p;var $b=function(){var D=_.c.apply(this,arguments)||this;D.roundedFix=_.g("web_enable_merch_item_rounding_fix");D.itemStyle="small-item";return D};
_.J($b,_.c);$b.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,v,h,a,Q=(v=_.k((D=this.data)==null?void 0:D.buttonCommand,_.HF))==null?void 0:(h=v.item)==null?void 0:(a=h.notificationTextRenderer)==null?void 0:a.successResponseText;Q&&_.r_O(this.hostElement,Q)}};
_.GT.Object.defineProperties($b.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.isProductPlaceholder)!==void 0&&((v=this.data)==null?void 0:v.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$b.prototype,"roundedFix",void 0);_.e([_.Y(),_.n("design:type",Object)],$b.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],$b.prototype,"itemStyle",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"hasPrice",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"hasPriceReplacementText",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"hasAdditionalFeesText",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"hasAffiliateDisclaimer",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"isProductPlaceholder",null);
_.e([_.Y(),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"hideOpenInNewIcon",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$b.prototype,"ariaLabel",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],$b);
_.w($b,"ytd-merch-shelf-item-renderer",function(){if(z8p!==void 0)return z8p;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return z8p=D},{mode:1});var U21=_.H(function(D){return _.F("button-card-view-model",{el:_.ML(_.eb(function(){return D.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return D.data().title},
role:"button"},_.F(_.qv,{model:{}}),_.F("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.F("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.F(_.z,{cond:function(){return D.data().image},
then:function(v){return _.F(_.PX,{data:v,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.F("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return D.data().title})))},"Qb");_.g("web_button_view_model_wcw_registration_killswitch")||_.zh(U21,"button-card-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){D=_.fb(D,{className:void 0});var v=D.data;D=D.className;var h=_.SM(function(){return v().onTapCommand},void 0,"SXkP9e");
return _.F("ytd-shopping-item-card",{class:_.S3("ytdShoppingItemCardHost",D)},_.F(_.Ak,{command:h,className:"ytdShoppingItemCardHostLink"},_.F("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.F(_.c4,{data:function(){return v().thumbnailViewModel}},{thumbnailViewModel:function(a){return _.F(_.lF,{data:a.data,
aspectRatio:3})}})),_.F("div",null,_.F("p",{class:"ytdShoppingItemCardHostItemTitle"},_.F(_.IY,{text:function(){return v().itemTitle}})),_.F("p",{class:"ytdShoppingItemCardHostPrice"},_.F(_.IY,{text:function(){return v().priceOrStatus}})))))},"Rb"),"ytd-shopping-item-card",{props:{data:_.gj,
className:_.gj}});var Let={isAdsVideo:!0},ZP$={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Enp={showPlayerControls:!1,videoPreviewDurationMs:15E3},Iap={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var vO=null,uKc={};var hpI="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(" "),QU={},at7=(QU.FEwhat_to_watch="home",QU.FEhashtag="hashtag",QU.FEtrending="trending",QU.FEhistory="history",QU.SPunlimited="premium",QU.FEmemberships_and_purchases="paid_memberships",QU.SPredeem_code="redeem",QU.SPverify_location="locate",QU.SPminor_moment="minor_moment",
QU.FEmini_app_container="mini_app",QU.FEnews_destination="news",QU.SPopen_in_app="open_in_app",QU.FEexplore="explore",QU.FEsubscriptions="subscriptions",QU.FEsfv_audio_pivot="sfv_audio_pivot",QU.FEplaylist_aggregation="playlist_aggregation",QU);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");_.E9("init");var gnm=function(){},pbM=_.H(function(D){var v=D.data;
var h=D.inlineMetadata;var a=D.aspectRatio;var Q=D.scrimStyle;var G=D.className;var x=D.useDefaultStyle;var f=D.titleStyle;var C=new gnm,U=_.g("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",L=_.SM(function(){return(x==null?0:x())?U==="SHORTS_LOCKUP_STYLE_SLIM":v().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),Z=_.SM(function(){return _.sY(h)||L()||!1},void 0,"neizSe"),E=function(){return(Q==null?void 0:Q())!==void 0?Q==null?void 0:Q():1},
I=_.SM(function(){return v().belowThumbnailMetadata||!Z()},void 0,"HdmMMe");
D=_.Mb({visibilityCallback:function(f7){var xL=v().onFirstVisible;f7&&xL&&_.r4(xL)},
showOption:{calledOnce:!0,state:"visible"}});var S=_.ML(),B={},A=_.S3(function(){return L(),"shortsLockupViewModelHostThumbnailContainer"},(B.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.sY(a)===1},B.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.sY(a)===2},B.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.g("web_shorts_2_by_3_lockups_study")&&!_.g("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
B)),d=_.SM(function(){if(_.sY(a)===1)return 1;
_.sY(a);return 2},void 0,"ZRUa3c"),b,W=function(){if(C){var f7;
(f7=b)==null||hL(f7);var xL;if(C.hostElement&&((xL=C.data)==null?0:xL.inlinePlayerData)){f7=Object.assign({},Iap);var kL,Z4;((kL=C.data)==null?void 0:(Z4=kL.inlinePlayerData)==null?void 0:Z4.maxPlaybackLengthSec)!==void 0&&(f7.videoPreviewDurationMs=C.data.inlinePlayerData.maxPlaybackLengthSec*1E3);b=On({mediaRenderer:C,lockupElement:C.hostElement,thumbnailElement:S.value,videoPreviewOpts:f7})}}};
_.bW(function(){C&&(C.data=v(),W())},"c4oj4d");
var K=_.SM(function(){return v().thumbnail},void 0,"CJHyHc");
B=_.SM(function(){return v().badge},void 0,"g31PIe");
var O=_.SM(function(){return v().onTap},void 0,"CJCUBc"),R={},vA={};
return _.F("ytm-shorts-lockup-view-model",{el:_.ML(function(f7){C&&(C.hostElement=f7)},W,D),
class:_.S3("shortsLockupViewModelHost",G)},_.F(_.xf,null,_.F(_.Ak,{command:O,className:_.S3("shortsLockupViewModelHostEndpoint",(R.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!I()},R),"reel-item-endpoint",""),
ariaHidden:function(){return!Z()},
tabIndex:function(){return Z()?0:-1}},_.F("div",{el:S,
class:_.S3("shortsLockupViewModelHostThumbnailParentContainer",(vA.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!L()},vA))},_.F(_.z,{cond:K,
then:function(){return _.F("div",{class:A},_.F(_.PX,{data:function(){var f7;return(f7=K==null?void 0:K())!=null?f7:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.F(_.c4,{data:function(){return v().thumbnailViewModel}},{thumbnailViewModel:function(f7){return _.F(_.lF,{data:f7.data,
aspectRatio:function(){return d()},
disableRounding:function(){return L()}})}}),null),_.F(_.z,{cond:Z,
then:function(){return _.F(kWJ,{data:v,scrimStyle:E,useDefaultStyle:x,titleStyle:f})}}),_.F(_.c4,{data:B},{badgeViewModel:function(f7){return _.F(_.c$,{data:f7.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.F(_.z,{cond:function(){return Z()&&v().menuOnTap},
then:function(){return _.F(Sw9,{data:v,inlineMetadata:!0})}}),_.F(_.z,{cond:I,
then:function(){return _.F(JRJ,{data:v,useDefaultStyle:x,inlineMetadata:Z})}})))},"Tb"),kWJ=_.H(function(D){var v=D.data;
var h=D.scrimStyle;var a=D.useDefaultStyle;var Q=D.titleStyle;var G=_.g("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",x=a&&_.g("web_hide_primary_text_for_pivot_panel"),f=_.SM(function(){return(a==null?0:a())?G==="SHORTS_LOCKUP_STYLE_SLIM":v().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
D={};D=_.S3("shortsLockupViewModelHostInlineMetadata",(D.shortsLockupViewModelHostMetadataRounded=function(){return!f()},D.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(h==null?void 0:h())===3&&!_.g("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(h==null?void 0:h())===3&&_.g("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(h==null?void 0:h())===2||(h==null?void 0:
h())===4},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
var C={};return _.F("div",{class:D},_.F("h3",{class:_.S3("shortsLockupViewModelHostMetadataTitle",(C.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(h==null?void 0:h())===4},C.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return v().belowThumbnailMetadata},C.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Q==null?void 0:Q())===1},C.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Q==null?void 0:Q())===2},C)),
"aria-label":function(){return v().accessibilityText}},_.F(_.z,{cond:function(){var U;
return!((U=v().overlayMetadata)==null||!U.primaryText)&&!x},
then:function(){return _.F(_.IY,{text:function(){var U;return(U=v().overlayMetadata)==null?void 0:U.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.F(_.z,{cond:function(){var U;
return(U=v().overlayMetadata)==null?void 0:U.secondaryText},
then:function(){return _.F(laR,{data:v,scrimStyle:h,className:void 0})}}))},"Ub"),JRJ=_.H(function(D){var v=D.data;
var h=D.useDefaultStyle;var a=D.inlineMetadata;var Q=_.g("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",G=_.SM(function(){return(h==null?0:h())?Q==="SHORTS_LOCKUP_STYLE_SLIM":v().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),x=_.ML(),f;
D=_.Jd(function(I){if(_.H4(_.ms(I),x.value,["AVATAR-VIEW-MODEL"]))return!1;var S;(S=f)==null||S.click();return!1});
var C=_.SM(function(){return v().belowThumbnailMetadata||v().overlayMetadata},void 0,"yJVuMb"),U=function(){return v().menuOnTap&&!a()},L=function(){var I;
return(I=C())==null?void 0:I.avatar},Z={},E={};
return _.F("div",{class:_.S3(function(){return G()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(Z.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!L()},Z.shortsLockupViewModelHostOutsideMetadataHasMenu=U,Z)),
"on:click":D,el:x,role:"presentation"},_.F(_.c4,{data:L},{avatarViewModel:function(I){return _.F("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.F(_.Q2,{data:I.data}))}}),_.F("div",null,_.F("h3",{class:_.S3("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(E.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var I,S;
return!((I=C())==null?0:(S=I.primaryText)==null?0:S.content)},E.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=a,E)),
role:"presentation"},_.F(_.Ak,{ref:function(I){return void(f=I)},
command:function(){return v().onTap},
className:_.S3("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var I,S;return(I=C())==null?void 0:(S=I.primaryText)==null?void 0:S.content},
"aria-label":function(){return v().accessibilityText}},_.F(_.z,{cond:function(){var I;
return(I=C())==null?void 0:I.primaryText},
then:function(I){return _.F(_.IY,{text:I,noEndpoints:!0,noStyleRuns:!0})}}))),_.F(_.z,{cond:function(){var I;
return(I=C())==null?void 0:I.secondaryText},
then:function(I){return _.F("div",{class:_.S3("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.F(_.IY,{text:I,noStyleRuns:!0}))}})),_.F(_.z,{cond:U,
then:function(){return _.F(Sw9,{data:v,inlineMetadata:!1})}}))},"Vb"),laR=_.H(function(D){var v=D.data;
var h=D.scrimStyle;D=D.className;var a={};return _.F("div",{class:_.S3((a.shortsLockupViewModelHostMetadataSubhead=function(){return(h==null?void 0:h())!==4},a.shortsLockupViewModelHostMetadataSubheadNew=_.g("enable_shorts_lockup_new_scrim"),a.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(h==null?void 0:h())===4},a),D),
"aria-hidden":"true"},_.F(_.IY,{text:function(){var Q;return(Q=v().overlayMetadata)==null?void 0:Q.secondaryText},
noStyleRuns:!0}))},"Wb"),Sw9=_.H(function(D){var v=D.data;
var h=D.inlineMetadata;D={};D=_.S3((D.shortsLockupViewModelHostInlineMetadataMenu=function(){return h()},D.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!h()},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
return _.F("div",{class:D},_.F(_.jd,{data:function(){return{style:h()?"overlay":"mono",accessibilityLabel:v().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(a){a.preventDefault();a.stopPropagation();var Q=_.W8({elementsCommand:v().menuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(a)}}},
iconName:"MORE_VERT"}))},"Xb");var NiR=_.H(function(D){var v=D.data;var h=D.inlineMetadata;var a=D.aspectRatio;var Q=D.scrimStyle;var G=D.className;var x=D.useDefaultStyle;D=_.SM(function(){var f=v().entityId;return f?f.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.F("ytm-shorts-lockup-view-model-v2",{class:_.S3("shortsLockupViewModelHost",G)},_.F(_.qk,{contentId:D,aspectRatio:function(){return(a==null?void 0:a())===1?1:(a==null?void 0:a())===2?2:4}},function(){return _.F(pbM,{data:v,
inlineMetadata:h,aspectRatio:a,scrimStyle:Q,className:G,useDefaultStyle:x})}))},"Yb");_.zh(NiR,"ytm-shorts-lockup-view-model-v2",{props:{data:_.C_,inlineMetadata:_.C_,aspectRatio:_.C_,scrimStyle:_.C_,className:_.C_,useDefaultStyle:_.C_,titleStyle:_.C_}});var Yw1=16/9*210,GI=function(){var D=_.c.apply(this,arguments)||this;D.isExpandableContent=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.buttonClasses=["arrow"];D.isSearch=!1;D.disableScrollEventListener=!1;D.containsLockup=!1;D.overrideArrowPositionForProductCard=!1;D.overrideArrowPositionForShoppingItemCard=!1;D.overrideArrowPositionForReelItems=!1;D.overrideArrowPositionForGridMovie=!1;D.overrideArrowPositionToCenter=!1;D.isSearchPostShelf=!1;D.overrideArrowPositionForMixedShelf=!1;D.overrideArrowPositionForMixedShelfShortsOnly=
!1;D.hasBigThumbsReelItems=!1;D.shouldUseMixedListHeight=!1;D.shouldUseShortsListHeight=!1;D.gridVideoWidth=0;D.isSearchVodShelf=!1;D.disableWheelScroll=!1;D.sizing="COMPACT";D.shortsLockupAspectRatio=0;return D};
_.J(GI,_.c);_.V=GI.prototype;
_.V.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]]"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.g("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.V.computeInitialCountNumber=function(D){if(!D)return 6;var v=D.items.some(function(G){return!!G.topicRecommendationsChipRenderer}),h=D.items.some(function(G){return!!G.displayAdRenderer}),a=this.computeShouldListItemsHaveEqualHeight(D),Q=D.items.some(function(G){return!!G.gridPlaylistRenderer});
D=D.items.some(function(G){return!!G.shoppingItemCardViewModel});
return v?9:h?8:Q||a?10:D?7:6};
_.V.computeContainsPost=function(D){return!!D&&!!D.items&&D.items.some(function(v){return!!v.postRenderer})};
_.V.computeContainsLockup=function(){if(_.g("web_horizontal_list_lockup_arrow_killswitch"))return!1;var D,v;return(D=this.data)==null?void 0:(v=D.items)==null?void 0:v.some(function(h){return!!h.lockupViewModel})};
_.V.maybeUpdateLockupAspectRatio=function(){var D,v;if(this.computeContainsLockup()&&((D=this.data)==null?0:(v=D.items)==null?0:v.length)){var h;D=SUo((h=this.data.items[0].lockupViewModel)==null?void 0:h.contentType,this.data.force16By9ThumbnailAspectRatio);h=pxr(D);h=this.computeLockupWidth()/h;_.SB(this.hostElement,{"--yt-horizontal-list-content-height":h+"px"})}};
_.V.computeOverrideArrowPositionForProductCard=function(D){if(this.isExpandableContent)return!1;var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){return!!h.verticalProductCardRenderer}))};
_.V.computeOverrideArrowPositionForShoppingItemCard=function(D){var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){return!!h.shoppingItemCardViewModel}))};
_.V.computeOverrideArrowPositionForReelItemRenderer=function(D){return this.containsReelItemRenderer(D)};
_.V.computeHasBigThumbsReelItems=function(D,v){return D&&this.containsReelItemRenderer(v)};
_.V.computeShouldListItemsHaveEqualHeight=function(D){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(D==null?void 0:D.itemSizeConstraint)};
_.V.computeShouldListItemsHaveShortsHeight=function(D){return this.computeShouldListItemsHaveEqualHeight(D)&&!this.containsGridVideoRenderer(D)};
_.V.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.V.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.V.containsReelItemRenderer=function(D){var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){return!(!h.reelItemRenderer&&!h.shortsLockupViewModel)}))};
_.V.containsGridVideoRenderer=function(D){var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){return!!h.gridVideoRenderer||!!h.lockupViewModel}))};
_.V.computeContainsGridMovieRenderer=function(D){var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){return!!h.gridMovieRenderer}))};
_.V.computeOverrideArrowPositionToCenter=function(D){return this.computeIsSearchPostShelf(D)};
_.V.computeIsSearchPostShelf=function(D){var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){var a,Q;return((Q=(a=h.postRenderer)==null?void 0:a.surface)!=null?Q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.V.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(D){var v;return!!(D==null?0:(v=D.items)==null?0:v.some(function(h){var a,Q,G;return((G=(a=h.backgroundPromoRenderer)==null?void 0:(Q=a.style)==null?void 0:Q.value)!=null?G:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.V.computeIsSearchVodShelf=function(D,v){return D&&this.containsGridVideoRenderer(v)};
_.V.computeDisableWheelScroll=function(D,v){return this.computeIsSearchVodShelf(D,v)};
_.V.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.V.computeShortsLockupAspectRatio=function(){return 1};
_.V.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.SB(this.hostElement,{"--ytd-reel-item-thumbnail-height":Yw1+"px"})};
GI.prototype.dataChanged=GI.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],GI.prototype,"ytdHorizontalListBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GI.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],GI.prototype,"isExpandableContent",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"hideShelfHeader",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"engagementPanel",void 0);_.e([_.Y(),_.n("design:type",Array)],GI.prototype,"buttonClasses",void 0);_.e([_.Y(),_.n("design:type",Object)],GI.prototype,"isSearch",void 0);
_.e([_.Y(),_.n("design:type",Object)],GI.prototype,"disableScrollEventListener",void 0);_.e([_.Y({computed:"computeInitialCountNumber(data)"}),_.n("design:type",Number)],GI.prototype,"initialCount",void 0);_.e([_.Y({computed:"computeContainsPost(data)"}),_.n("design:type",Boolean)],GI.prototype,"supportComponentResize",void 0);_.e([_.Y({computed:"computeContainsPost(data)"}),_.n("design:type",Boolean)],GI.prototype,"containsPost",void 0);
_.e([_.Y({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"containsLockup",void 0);_.e([_.Y({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],GI.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.e([_.Y({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionForProductCard",void 0);_.e([_.Y({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.e([_.Y({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionForReelItems",void 0);_.e([_.Y({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionForGridMovie",void 0);
_.e([_.Y({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionToCenter",void 0);_.e([_.Y({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"isSearchPostShelf",void 0);_.e([_.Y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.e([_.Y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.e([_.Y({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"hasBigThumbsReelItems",void 0);
_.e([_.Y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"shouldUseMixedListHeight",void 0);_.e([_.Y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"shouldUseShortsListHeight",void 0);_.e([_.Y({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"gridVideoWidth",void 0);
_.e([_.Y({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"isSearchVodShelf",void 0);_.e([_.Y({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.n("design:type",Object)],GI.prototype,"disableWheelScroll",void 0);_.e([_.Y({computed:"computeSizing(isSearch)"}),_.n("design:type",Object)],GI.prototype,"sizing",void 0);
_.e([_.Y({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.n("design:type",Object)],GI.prototype,"shortsLockupAspectRatio",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GI.prototype,"dataChanged",null);
_.w(GI,"yt-horizontal-list-renderer",function(){if(ca4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);ca4=D}D=ca4;return D},{mode:1});var BiJ=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
BiJ.prototype.subscribe=function(D,v){var h=this.subscriptions.get(D);if(!h)return function(){};
h.add(v);return function(){h.delete(v)}};
BiJ.prototype.unsubscribe=function(D,v){(D=this.subscriptions.get(D))&&D.delete(v)};
BiJ.prototype.publish=function(D,v){v=v===void 0?{}:v;(D=this.subscriptions.get(D))&&D.forEach(function(h){h(v)})};var cRy;var Xb9=[10,12,14,16,18,20,24,28,32,36],ARM=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],VU=function(){var D=_.c.apply(this,arguments)||this;D.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";D.hideOverflow=!1;D.useRoboto=!1;D.fontClass="";D.overflown=!1;D.actionMap={"yt-window-resized":"resize"};return D};
_.J(VU,_.c);_.V=VU.prototype;
_.V.attached=function(){var D=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.$R(this,function(){D.resize()});
if(!_.zw){var v,h,a;(v=document)==null||(h=v.fonts)==null||(a=h.ready)==null||a.then(function(){D.resize()})}};
_.V.dataChanged=function(){this.resize()};
_.V.guideIsExpandedChanged=function(){this.resize()};
_.V.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var D=this.getMaxNumLines(),v=this.getMinFont(),h=this.getMaxFont(),a=this.useRoboto?Xb9:ARM;for(a=a.filter(function(G){return G<=h&&G>=v});a.length>1;){var Q=Math.floor(a.length/2);
this.updateFontSize(a[Q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=D)a=a.slice(Q,a.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>D)a=a.slice(0,Q);else break}this.updateFontSize(a[a.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(D)}};
_.V.handleOverflow=function(D){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>D&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",D.toString()))};
_.V.updateFontSize=function(D){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+D;this.textNode.classList.add(this.fontClass)};
_.V.getMaxFont=function(){var D=this.useRoboto?Xb9:ARM;D=D[D.length-1];return this.maxFontSize&&this.maxFontSize<=D?this.maxFontSize:D};
_.V.getMinFont=function(){var D=(this.useRoboto?Xb9:ARM)[0];return this.minFontSize&&this.minFontSize>=D?this.minFontSize:D};
_.V.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.V.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.V.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.$V(this.text).split("\n").length-1:Infinity};
_.V.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("Oh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
VU.prototype.guideIsExpandedChanged=VU.prototype.guideIsExpandedChanged;VU.prototype.dataChanged=VU.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],VU.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],VU.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],VU.prototype,"text",void 0);
_.e([_.Y(),_.n("design:type",String)],VU.prototype,"fontFamily",void 0);_.e([_.Y(),_.n("design:type",Number)],VU.prototype,"maxWidth",void 0);_.e([_.Y(),_.n("design:type",Number)],VU.prototype,"maxHeight",void 0);_.e([_.Y(),_.n("design:type",Number)],VU.prototype,"maxFontSize",void 0);_.e([_.Y(),_.n("design:type",Number)],VU.prototype,"minFontSize",void 0);_.e([_.Y(),_.n("design:type",Number)],VU.prototype,"maxLines",void 0);_.e([_.Y(),_.n("design:type",Object)],VU.prototype,"hideOverflow",void 0);
_.e([_.Y({selector:_.zFc}),_.n("design:type",Boolean)],VU.prototype,"guideIsExpanded",void 0);_.e([_.Br("#container"),_.n("design:type",HTMLElement)],VU.prototype,"containerNode",void 0);_.e([_.Br("#text"),_.n("design:type",HTMLElement)],VU.prototype,"textNode",void 0);_.e([_.qi("text"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VU.prototype,"dataChanged",null);
_.e([_.qi("guideIsExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VU.prototype,"guideIsExpandedChanged",null);_.e([_.m({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],VU);
_.w(VU,"yt-dynamic-sizing-formatted-string",function(){if(cRy!==void 0)return cRy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return cRy=D},{mode:1});var qw4;_.bPR=function(D){_.hc.call(this,D)};
_.J(_.bPR,_.hc);var d29=function(D){_.hc.call(this,D)};
_.J(d29,_.bPR);var Pj=function(){return _.c.apply(this,arguments)||this};
_.J(Pj,_.c);Pj.prototype.onTapSuspendedChannel=function(){var D;if((D=this.data)!=null&&D.serviceEndpoint){var v,h;(D=(h=_.k((v=this.data)==null?void 0:v.serviceEndpoint,_.RB))==null?void 0:h.url)?_.ay(D,void 0,void 0,window.top):(v=new d29("Did not handle suspended account tap. No appealUrl."),_.mV(v))}else v=new d29("Did not handle suspended account tap. No serviceEndpoint."),_.mV(v)};
Pj.prototype.onTap=function(){var D=this,v=_.c8(),h,a=(h=_.B8(v,{veType:7116}))!=null?h:void 0;_.r1(v,{visualElement:a});_.vr();this.saveRoleText();var Q;if((Q=this.data)==null?0:Q.youtubeSuspended)this.onTapSuspendedChannel();else{var G=!1,x,f;(v=(f=_.k((x=this.data)==null?void 0:x.serviceEndpoint,_.FqM))==null?void 0:f.supportedTokens)&&v.forEach(function(C){if(C.accountSigninToken)if(G=!0,D.onAccountItemTap)D.onAccountItemTap(C.accountSigninToken.signinUrl);else _.ay(C.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!G){if(x=this.get("serviceEndpoint",this.data))G=!0,this.ytComponentBehavior.resolveCommand(x);G||_.H1(new d29("Did not handle account switch tap. No token."))}}};
Pj.prototype.saveRoleText=function(){if(this.data){var D=this.data,v=D.channelDelegationRole;if(v){var h,a=(h=_.k(D==null?void 0:D.serviceEndpoint,_.FqM))==null?void 0:h.supportedTokens;if(!a){var Q,G,x,f;a=(Q=_.k(D==null?void 0:D.serviceEndpoint,_.Oc))==null?void 0:(G=Q.popup)==null?void 0:(x=G.confirmDialogRenderer)==null?void 0:(f=x.confirmButton)==null?void 0:f.buttonRenderer;var C;a=(C=_.k(a==null?void 0:a.command,_.IN))==null?void 0:C.commands;if(!a)return;var U;a=(U=_.k(a[1],_.FqM))==null?
void 0:U.supportedTokens}if(a){C=void 0;U=_.P(a);for(a=U.next();!a.done;a=U.next())if(a=a.value,a.datasyncIdToken){C=a.datasyncIdToken.datasyncIdToken;break}if(C){var L;a:{if(_.KYq()&&(U=_.mDf(C+"::pom"))){U=new ue(U);break a}U=void 0}(L=U)==null||L.set("role_text",v);if((Q_4?Q_4:window.location).href.indexOf("studio")!==-1&&(L=Tu4())){U=L.src?(new URL(L.src)).origin:"*";var Z;(Z=L.contentWindow)==null||Z.postMessage({action:"save_pom_role",datasyncId:C,roleText:v},U)}}}}}};
_.GT.Object.defineProperties(Pj.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.accountPhoto)==null?void 0:v.thumbnails;return h&&h.length>0&&(h[0].height===36||h[0].height===48)?h[0].height:40}}});
Pj.prototype.onTap=Pj.prototype.onTap;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Pj.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Pj.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Function)],Pj.prototype,"onAccountItemTap",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Pj.prototype,"enableRingForActiveAccount",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],Pj.prototype,"thumbnailSize",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Pj.prototype,"onTap",null);_.e([_.m({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Pj);
_.w(Pj,"ytd-account-item-renderer",function(){if(qw4!==void 0)return qw4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return qw4=D},{mode:1});var jL$;var xb=function(){return _.c.apply(this,arguments)||this};
_.J(xb,_.c);xb.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.xd().resolve(_.fx).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xb.prototype,"data",void 0);_.e([_.m({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],xb);
_.w(xb,"ytd-identity-chip-renderer",function(){if(jL$!==void 0)return jL$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jL$=D},{mode:1});var sLy;var m21;var HPy;var yRJ;var MN=function(){var D=_.c.apply(this,arguments)||this;D.richItemMinWidth=_.oZ("wn_grid_min_item_width",310);D.isShorts=!1;D.isWatchNext=!1;D.isExploreHub=!1;return D};
_.J(MN,_.c);_.GT.Object.defineProperties(MN.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var D=[],v=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.SB(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var h;if(((h=this.data)==null?0:h.rows)&&v)for(v*=this.data.rows,h=0;h<v;h++)D.push({});return D}}});
_.e([_.l(_.Mm),_.n("design:type",Object)],MN.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],MN.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.wR,value:3}),_.n("design:type",Number)],MN.prototype,"itemsPerRow",void 0);_.e([_.Y({selector:_.Fqi,value:6}),_.n("design:type",Number)],MN.prototype,"slimItemsPerRow",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Number)],MN.prototype,"richItemMinWidth",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],MN.prototype,"miniMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MN.prototype,"isShorts",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MN.prototype,"isWatchNext",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MN.prototype,"isExploreHub",void 0);
_.e([_.N("isExploreHub"),_.Y({reflectToAttribute:!0}),_.n("design:type",Object),_.n("design:paramtypes",[])],MN.prototype,"shimmerAnimation",null);_.e([_.N("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.n("design:type",Array),_.n("design:paramtypes",[])],MN.prototype,"cardItems",null);_.e([_.m({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],MN);
_.wbR=_.Zp()(MN,"ytd-ghost-grid-renderer",function(){if(yRJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);yRJ=D}D=yRJ;return D},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.zh(_.H(function(D){var v=_.fb(D,{numberOfComments:3}).numberOfComments,h=_.fb(D,{isInitialLoad:!1}).isInitialLoad,a=_.fb(D,{engagementPanel:!1}).engagementPanel,Q=function(){return Math.min(Number(v==null?void 0:v())||20,20)};
return _.F("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.F(_.z,{cond:function(){return!(a==null?0:a())&&(h==null?void 0:h())},
then:function(){return _.F("div",{class:"ytGhostCommentsComments"},_.F("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.F("div",{class:_.S3("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.F("div",{class:_.S3("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.F("div",{class:"ytGhostCommentsGhostCard"},_.F("div",{class:"ytGhostCommentsAvatar"},_.F("div",{class:"ytGhostCommentsCircle"})),_.F("div",{class:"ytGhostCommentsComments"},_.F("div",{class:"ytGhostCommentsMeta"},
_.F("div",{class:_.S3("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.F("div",{class:_.S3("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.F("div",{class:"ytGhostCommentsComments"},_.F(_.Xd,{each:function(){return Array((Q==null?void 0:Q())||3)}},function(){return _.F("div",{class:"ytGhostCommentsGhostCard"},_.F("div",{class:"ytGhostCommentsAvatar"},_.F("div",{class:"ytGhostCommentsCircle"})),_.F("div",{class:"ytGhostCommentsHost"},_.F("div",{class:"ytGhostCommentsMeta"},
_.F("div",{class:_.S3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.F("div",{class:_.S3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:_.S3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:"ytGhostCommentsGhostLikeDislike"},_.F("div",{class:_.S3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:_.S3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Zb"),"yt-ghost-comments",{props:{numberOfComments:_.gj,
isInitialLoad:_.gj,engagementPanel:_.gj}});_.HX("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var fU=function(){var D=_.c.apply(this,arguments)||this;D.isOverridable=!1;D.spinnerActive=!1;D.showButton=!1;D.isCommentsSection=!1;D.engagementPanel=!0;D.isShortsGrid=!1;D.isShortsPage=!1;D.isWatchPage=!1;D.ghostCardExperimentEnabled=_.g("show_ghost_comments_shorts_watch")||_.g("show_ghost_comments_desktop_watch");D.originalShowButton=!1;D.endOfList=!1;return D};
_.J(fU,_.c);_.V=fU.prototype;_.V.resetIntersectionObserver=function(){var D;(D=this.observer)==null||D.disconnect();this.observer=void 0};
_.V.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var D,v;((D=this.data)==null?void 0:D.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((v=this.data)==null?0:v.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.V.initializeIntersectionObserver=function(){var D=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(v){v=_.P(v);for(var h=v.next();!h.done;h=v.next())h.value.isIntersecting&&(D.triggerContinuation(),D.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.V.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]]"}}}}}};
_.V.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var D;((D=this.data)==null?0:D.continuationEndpoint)&&(D=_.k(this.data.continuationEndpoint,_.iL))&&this.ytdReduxBehavior.dispatch(_.oG({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:D}}))};
_.V.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.V.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.V.onServiceRequestCompleted=function(D,v){if(!_.g("kevlar_hide_spinner_on_empty_continuation_killswitch")){var h;(h=v.actions)!=null&&h.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.V.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.V.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.V.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.V.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var D=3;if(this.engagementPanel){var v,h,a;D=Math.floor(((((v=this.hostElement)==null?void 0:(h=v.parentElement)==null?void 0:(a=h.parentElement)==null?void 0:a.scrollHeight)||108)-108)/108);D=this.isInitialLoad?Math.max(D,3):3}v=[].concat(_.j_(this.hostElement.querySelectorAll("yt-ghost-comments")));v=_.P(v);for(h=v.next();!h.done;h=v.next())h=h.value,h.numberOfComments=D,h.isInitialLoad=this.isInitialLoad,h.engagementPanel=
this.engagementPanel}};
_.V.detached=function(){this.resetIntersectionObserver()};
_.GT.Object.defineProperties(fU.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.g("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.g("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
fU.prototype.numberOfGhostCommentsChanged=fU.prototype.numberOfGhostCommentsChanged;fU.prototype.continuationTriggerOffsetChanged=fU.prototype.continuationTriggerOffsetChanged;fU.prototype.showButtonChanged=fU.prototype.showButtonChanged;fU.prototype.onYtServiceRequestCompletedForButtonRenderer=fU.prototype.onYtServiceRequestCompletedForButtonRenderer;fU.prototype.onServiceRequestCompleted=fU.prototype.onServiceRequestCompleted;fU.prototype.onYtServiceRequestSentForButtonRenderer=fU.prototype.onYtServiceRequestSentForButtonRenderer;
fU.prototype.observeData=fU.prototype.observeData;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.U$.YtVisibilityBehavior),_.n("design:type",Object)],fU.prototype,"ytVisibilityBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],fU.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],fU.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"isOverridable",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"spinnerActive",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"showButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fU.prototype,"isCommentsSection",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fU.prototype,"engagementPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"isShortsGrid",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.Zh7}),_.n("design:type",Object)],fU.prototype,"isShortsPage",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.Lqo}),_.n("design:type",Object)],fU.prototype,"isWatchPage",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fU.prototype,"ghostCardExperimentEnabled",void 0);
_.e([_.Y(),_.n("design:type",Number)],fU.prototype,"continuationTriggerOffset",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"endOfList",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],fU.prototype,"isInitialLoad",void 0);_.e([_.Br("ytd-button-renderer"),_.n("design:type",_.Y$)],fU.prototype,"buttonRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],fU.prototype,"buttonOverrides",void 0);
_.e([_.Y(),_.N("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.n("design:type",Object),_.n("design:paramtypes",[])],fU.prototype,"isShortsCommentsSection",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fU.prototype,"observeData",null);
_.e([_.lc("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fU.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],fU.prototype,"onServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-completed-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fU.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.e([_.qi("showButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fU.prototype,"showButtonChanged",null);
_.e([_.qi("continuationTriggerOffset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fU.prototype,"continuationTriggerOffsetChanged",null);_.e([_.Ni("isInitialLoad","engagementPanel"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fU.prototype,"numberOfGhostCommentsChanged",null);_.e([_.m({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],fU);
_.w(fU,"ytd-continuation-item-renderer",function(){if(HPy!==void 0)return HPy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return HPy=D},{mode:1});var e8F;var CU=function(){var D=_.c.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;D.downloadedVideoPlaybackPosition=0;return D};
_.J(CU,_.c);CU.prototype.dataChanged=function(){var D;this.videoData=_.k((D=this.data)==null?void 0:D.renderer,Kj1);this.transferStateChanged()};
CU.prototype.downloadProgressChanged=function(){if(this.entityInfo){var D=Object.assign({},this.videoData),v=Ek7(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),h=v.publishedTimeText,a=v.badges;D.shortViewCountText=v.shortViewCountText;D.publishedTimeText=h;D.badges=a;this.set("videoData",D)}};
CU.prototype.transferStateChanged=function(){if(this.entityInfo){var D=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",v=_.cf(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Bf(this.entityInfo.policyEntity),h=Object.assign({},this.videoData),a=Ek7(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=a.publishedTimeText,G=a.badges;h.shortViewCountText=
a.shortViewCountText;h.publishedTimeText=Q;h.badges=G;h.isDisabled=v;h.isWatched=this.downloadedVideoPlaybackPosition>0;h.navigationEndpoint=v?void 0:EMi(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var x;D&&((x=this.videoData)==null?0:x.videoId)&&!_.g("dl_resume_click_killswitch")&&(h.isDisabled=!1,h.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});h.thumbnailOverlays=LZu(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",h)}};
CU.prototype.transferStateChanged=CU.prototype.transferStateChanged;CU.prototype.downloadProgressChanged=CU.prototype.downloadProgressChanged;CU.prototype.dataChanged=CU.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],CU.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],CU.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],CU.prototype,"videoData",void 0);_.e([_.Y({selector:RG,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"downloadProgress",void 0);_.e([_.Y(),_.n("design:type",Number)],CU.prototype,"relativeDateReference",void 0);_.e([_.Y({selector:_.KG,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"transferState",void 0);
_.e([_.Y({selector:myi,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"downloadState",void 0);_.e([_.Y({selector:SHr,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"offlinePolicyAction",void 0);_.e([_.Y({selector:JUi,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.e([_.Y({selector:i0,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"downloadedVideoPlaybackPosition",void 0);_.e([_.Y({selector:lLf,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],CU.prototype,"entityInfo",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],CU.prototype,"isDownloading",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CU.prototype,"dataChanged",null);
_.e([_.qi("downloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CU.prototype,"downloadProgressChanged",null);_.e([_.qi("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CU.prototype,"transferStateChanged",null);
_.e([_.m({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],CU);
_.w(CU,"ytd-downloaded-video-grid-video-renderer",function(){if(e8F!==void 0)return e8F;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return e8F=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var nnJ;var o6=function(){};
o6.prototype.resolve=function(D,v){var h=this;return _.M(function(a){return a.yield(h.resolveCommand(D,v),0)})};var OPp,FN;OPp=oSf(function(D){return D.targetId},{shouldPersist:!1});
FN=OPp.updateData;_.Ke4=OPp.useUpdatableData;var Tip,R84;Tip=oSf(function(D){return D.targetId});
R84=Tip.updateData;_.iPR=Tip.useUpdatableData;var WeJ=Viu.bind(null,FN),tFs=Viu.bind(null,R84);(function(D,v,h){var a=_.k(h==null?void 0:h.updatedRenderer,_.gGJ);return a?D({targetId:v},function(){return a}):!1}).bind(null,FN);var zI=function(){};
_.J(zI,o6);zI.prototype.resolveCommand=function(D){var v;return _.M(function(h){v=_.k(D,_.E8u);if(!v)return h.return();WeJ(v.targetId,v);_.YI(h)})};var UC=function(){var D=_.XS.apply(this,arguments)||this;D.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return D};
_.J(UC,_.XS);_.V=UC.prototype;_.V.configureContinuationPathMap=function(){return{}};
_.V.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.V.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.V.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.V.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.V.handleAppendContinuationItemsAction=function(D){var v=_.k(D,_.kqM);if(this.data&&this.data.targetId&&v&&this.continuationPathMap&&v.targetId===this.data.targetId){var h=h6q(D),a=h&&this.continuationPathMap[h];if(a&&h)if(D=this.get(a,this.data)){a:{for(h=0;h<D.length;h++){var Q=D[h],G=void 0,x=!!_.k((G=_.k(Q,xwp))==null?void 0:G.content,_.wip);if(_.k(Q,_.aQ)||x)break a}h=D.length}a="data."+a;v.continuationItems?h===D.length-1?(this.pop(a),this.push.apply(this,[a].concat(_.j_(v.continuationItems)))):
h===D.length?this.push.apply(this,[a].concat(_.j_(v.continuationItems))):this.splice.apply(this,[a,h,1].concat(_.j_(v.continuationItems))):this.splice(a,h,1);(_.g("web_enable_voting_animation")||_.g("enable_music_web_cairo_voting_animation"))&&_.F1(this.hostElement,"yt-append-continuation-items-action-finished");_.F1(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.yR(new _.XH("append continuation items does not exist",h));else _.yR(new _.XH("append continuation path does not exist",
h))}};
_.V.handleReloadContinuationItemsCommand=function(D){var v=_.k(D,_.E8u);if(this.data&&v){if(_.g("web_client_explore_hub")||_.g("web_explore_hub_on_hover")||_.g("web_client_explore_hub_on_hover"))try{_.xd().resolve(zI).resolveCommand(D)}catch(G){}if(this.data.targetId&&this.continuationPathMap&&v.targetId===this.data.targetId&&(!_.g("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||v.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var h,a=(h=v.slot)==null?void 0:
h.replace("RELOAD_CONTINUATION_SLOT_","");h=(D=h6q(D)+"-"+(a==null?void 0:a.toLowerCase()))&&this.continuationPathMap[D];if(!h||!D||!a)_.yR(new _.XH("reload continuation path does not exist",D));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(v)){if(v.replaceWithFirstItem){var Q;this.set("data."+h,((Q=v.continuationItems)==null?0:Q.length)?v.continuationItems[0]:{})}else this.set("data."+h,v.continuationItems?v.continuationItems:[]);this.continuationIsReloading=
!1;_.F1(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.V.handleShowReloadUiCommand=function(D){D=_.k(D,svp);var v;((v=this.data)==null?0:v.targetId)&&(D==null?0:D.targetId)&&D.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
UC.prototype.observeData=UC.prototype.observeData;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],UC.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],UC.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],UC.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],UC.prototype,"continuationIsReloading",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UC.prototype,"observeData",null);_.e([_.AV()],UC);_.LU=[_.oY.YtComponentBehavior,_.ed.YtActionHandlerBehavior,UC.prototype];_.Zh={};_.Zh.YtNextContinuationBehavior=[_.lt.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",_.pZ(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.pZ(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(D,v){D.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,v,{}):(D={locationRetrieved:function(h){this.makeNextContinuationRequest_(h,v,{})}.bind(this)},_.F1(this.hostElement,"yt-retrieve-location",D))},
makeNextContinuationRequest_:function(D,v,h){_.n1("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();D=v(D);var a;this.canUseContextualNetworkManager_()&&(a=this.getNetworkManager());a||(a=_.xd().resolve(_.Tb));v=_.uL.instance;if(_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&v){a=_.xV([D.startsWith("/")?D.substr(1):D]);var Q,G;h=_.My(v,{},a,h==null?void 0:(Q=h.context)==null?void 0:(G=Q.clickTracking)==null?void 0:G.clickTrackingParams).then(function(x){return{response:x}})}else h=
this.nextContinuation.usePost?a.postData(D,h):a.fetchData(D);
h.then(this.updateNextContinuationData_.bind(this,D));this.pendingContinuationRequest_=h;this.startListeningForNavigate_()},
updateNextContinuationData_:function(D,v){var h=this;_.n1("ncl");this.pendingContinuationRequest_=void 0;if(v){var a={};this.nextContinuation&&(a=this.nextContinuation);if(v.response&&v.response.continuationContents&&v.response.continuationContents[a.continuationType]){D=v.response.continuationContents[a.continuationType];var Q=a.header||"data.header",G=D[a.responseHeaderKey||"header"];G&&this.set(Q,G);Q=a.contentsArray||"data.contents";G=this.getContents_(D,a.responseContentsKey||"contents")||[];
this.pathExists_(Q)?(G.unshift(Q),this.push.apply(this,G)):this.set(Q,G);G&&(Pof(_.c8(),v.response,this.hostElement,function(x){_.zU(h.hostElement,"yt-store-grafted-ve-action",[x])}),_.F1(this.hostElement,"yt-next-continuation-data-updated",{continuationData:v,
page:this,contentsArray:Q}));this.set(a.continuationsArray||"data.continuations",D[a.responseContinuationsKey||"continuations"]||[])}else v.reload?_.yR(new _.XH("Reloading from continuation is unsupported")):v.responseContext&&v.responseContext.errors||(delete v.xsrf_token,delete v.timing,delete v.endpoint,delete v.csn,v.responseContext&&delete v.responseContext.serviceTrackingParams,Q={request:_.vV(D,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(v).sort()},v.response&&(Q.responseContentKeys=
Object.keys(v.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Q.continuationType=this.nextContinuation.continuationType.substr(0,256)),v=new _.XH("Malformed continuation",Q),D.indexOf("/comment_service_ajax")==0?_.yR(v):_.mV(v)),this.set(a.continuationsArray||"data.continuations",[])}else _.H1(new _.XH("Missing continuation response",D))},
getContents_:function(D,v){v=v.split(".");return _.sV.getValueByKeys(D,v)},
pathExists_:function(D){var v=this;D=D.toString().split(".");for(var h=0;h<D.length;h++)if(v=v[D[h]],v===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var rRb;var ujs;var EC=function(){var D=_.c.apply(this,arguments)||this;D.triggered_=!1;return D};
_.J(EC,_.c);_.V=EC.prototype;_.V.attached=function(){this.maybeTriggerAutoload()};
_.V.detached=function(){this.hasBeenTriggered_=!1};
_.V.onPrescanVisible=function(){this.onShow()};
_.V.onShow=function(){this.showButton||this.trigger()};
_.V.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.F1(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.V.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.V.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.V.computeLabel_=function(D,v){return D===void 0?null:D.label||!v?D.label:this.showMoreText_};
_.V.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.V.getContinuationUrl=function(D){var v={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(v.itct=this.data.clickTrackingParams);return _.hO(D,v)};
_.V.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
EC.prototype.showButtonChanged_=EC.prototype.showButtonChanged_;EC.prototype.observeData_=EC.prototype.observeData_;_.e([_.l(_.U$.YtVisibilityBehavior),_.n("design:type",Object)],EC.prototype,"ytVisibilityBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],EC.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],EC.prototype,"showButton",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],EC.prototype,"showIcon",void 0);_.e([_.Y({computed:"computeLabel_(data, showButton)"}),_.n("design:type",Object)],EC.prototype,"label",void 0);_.e([_.Y({value:_.aX(_.p1("SHOW_MORE",void 0,"Show More"))}),_.n("design:type",Object)],EC.prototype,"showMoreText_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],EC.prototype,"spinnerActive_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],EC.prototype,"hasBeenTriggered_",void 0);
_.e([_.Y({value:void 0}),_.n("design:type",String)],EC.prototype,"observeVisibleOption",void 0);_.e([_.Y({value:void 0}),_.n("design:type",String)],EC.prototype,"observeHiddenOption",void 0);_.e([_.Y({value:"observe_once"}),_.n("design:type",Object)],EC.prototype,"observePrescanOption",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EC.prototype,"observeData_",null);
_.e([_.Ni("showButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EC.prototype,"showButtonChanged_",null);_.e([_.Ry({is:"yt-next-continuation",disableElementRegistration:!0})],EC);
_.w(EC,"yt-next-continuation",function(){if(ujs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;rRb===void 0&&(rRb=document.createElement("template"));var a=rRb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);ujs=D}D=ujs;return D},{mode:2});var D$J;var vwM;var I6=function(){return _.c.apply(this,arguments)||this};
_.J(I6,_.c);I6.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],I6.prototype,"data",void 0);_.e([_.Ry({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],I6);
_.w(I6,"yt-music-pass-small-feature-info-renderer",function(){if(vwM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;D$J===void 0&&(D$J=document.createElement("template"));var a=D$J;h.call(v,a.content.cloneNode(!0),D.content.firstChild);vwM=D}D=vwM;return D},{mode:2});_.HX("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var g6=function(){var D=_.c.apply(this,arguments)||this;D.isCollapsible=!1;D.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return D};
_.J(g6,_.c);_.V=g6.prototype;_.V.computeIsCollapsible=function(D){return!!(((D==null?0:D.showMoreText)||(D==null?0:D.visibleRowCount))&&(D==null?0:D.isCollapsible))};
_.V.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"}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.V.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.V.onIronResize=function(){var D=this;_.aq(this,"updateGridInitItems",function(){D.maybeUpdateInitialItemsDisplayed()})};
_.V.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var D=this.getVisibleWidth();D!==0&&(D=Math.floor(D/214)*(this.data.visibleRowCount||2),D!==this.initialCount&&(this.initialCount=D,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.V.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.V.computeExpandVisible=function(D,v,h,a){return D&&v&&h&&!!a&&!!a.showMoreText};
_.V.computeShowMoreButton=function(D){return{text:D,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.V.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.V.initCollapsed=function(){var D=this;this.ytLazyListBehavior.canShowMore=!1;var v;(this.collapsed=!((v=this.data)==null||!v.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.$R(this,function(){_.U9(D.hostElement,"yt-refit-popups-action")})};
_.V.fillRestIfNotCollapsible=function(){var D=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!D||this.ytLazyListBehavior.fillRemainingListItems()};
_.V.computeViewAllHidden=function(D,v){return D||!v.viewAllEndpoint};
g6.prototype.fillRestIfNotCollapsible=g6.prototype.fillRestIfNotCollapsible;g6.prototype.initCollapsed=g6.prototype.initCollapsed;g6.prototype.onIronResize=g6.prototype.onIronResize;g6.prototype.persistentGuideChanged=g6.prototype.persistentGuideChanged;_.e([_.l(_.iN),_.n("design:type",Object)],g6.prototype,"ironResizableBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],g6.prototype,"ytLazyListBehavior",void 0);_.e([_.l(_.Zh.YtNextContinuationBehavior),_.n("design:type",Object)],g6.prototype,"ytNextContinuationBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],g6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.l(_.LU),_.n("design:type",Object)],g6.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],g6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],g6.prototype,"collapsed",void 0);_.e([_.Y(),_.n("design:type",Number)],g6.prototype,"initialCount",void 0);_.e([_.Y({computed:"computeShowMoreButton(data.showMoreText)"}),_.n("design:type",Object)],g6.prototype,"showMoreButton",void 0);
_.e([_.Y({computed:"computeIsCollapsible(data)"}),_.n("design:type",Object)],g6.prototype,"isCollapsible",void 0);_.e([_.Br("#items"),_.n("design:type",HTMLElement)],g6.prototype,"items",void 0);_.e([_.qi("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g6.prototype,"persistentGuideChanged",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g6.prototype,"onIronResize",null);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g6.prototype,"initCollapsed",null);_.e([_.qi("canShowMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g6.prototype,"fillRestIfNotCollapsible",null);_.e([_.m({is:"ytd-grid-renderer",disableElementRegistration:!0})],g6);
_.w(g6,"ytd-grid-renderer",function(){if(nnJ!==void 0)return nnJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nnJ=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var kb=function(){return _.c.apply(this,arguments)||this};
_.J(kb,_.c);
kb.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"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kb.prototype,"data",void 0);_.e([_.m({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],kb);
_.w(kb,"ytd-carousel-ad-renderer",function(){if(m21!==void 0)return m21;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return m21=D},{mode:1});var h4$;var Sl=function(){return _.c.apply(this,arguments)||this};
_.J(Sl,_.c);_.V=Sl.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Sl.JSC$15386_CLICK_LOCATION_ID_MAP))};
_.V.onSitelinkTap=function(D){D.stopPropagation();var v,h,a=D==null?void 0:(v=D.model)==null?void 0:(h=v.item)==null?void 0:h.onTap;a&&this.ytSparklesClickLocationBehavior.handleClick(a,D,!1)};
_.V.onTap=function(D){var v=this.data&&this.data.content&&this.data.content.navigationEndpoint;v&&this.ytSparklesClickLocationBehavior.handleClick(v,D,!1)};
_.V.sendImpression=function(){if(this.data&&this.data.content)for(var D=_.P(this.data.content.impressionEndpoints||[]),v=D.next();!v.done;v=D.next()){v=_.P(v.value.loggingUrls||[]);for(var h=v.next();!h.done;h=v.next())h=h.value,h.baseUrl&&t2(h.baseUrl,h.attributionSrcMode)}};
Sl.prototype.onTap=Sl.prototype.onTap;Sl.prototype.dataChanged=Sl.prototype.dataChanged;Sl.JSC$15386_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"]]);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],Sl.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Sl.prototype,"data",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sl.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Sl.prototype,"onTap",null);_.e([_.m({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Sl);
_.w(Sl,"ytd-promoted-sparkles-text-search-renderer",function(){if(h4$!==void 0)return h4$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return h4$=D},{mode:1});var agp;var J6=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.J(J6,_.c);_.V=J6.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.g("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]]"}}}}}};
_.V.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.V.computeHasAdBadge=function(D){return!(D==null||!D.adBadge)};
_.V.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",J6.JSC$15395_DEFAULT_AD_BADGE_RENDERER),_.Iy(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,J6.JSC$15395_CLICK_LOCATION_ID_MAP))};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var D;(((D=this.data)==null?void 0:D.impressionCommands)||[]).forEach(function(v){v=_.P(v.loggingUrls||[]);for(var h=v.next();!h.done;h=v.next())h=h.value,h.baseUrl&&t2(h.baseUrl,h.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.V.onTap=function(D){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint,a;(v=(a=this.data)==null?void 0:a.thumbnailNavigationEndpoint)&&_.VL(_.Pr(D),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(v,D,!1):h&&this.ytSparklesClickLocationBehavior.handleClick(h,D,!1)};
_.V.handleMuteAd=function(){this.collapsed=!0};
_.V.attached=function(){var D=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.GT.Object.defineProperties(J6.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
J6.prototype.dataChanged=J6.prototype.dataChanged;
J6.JSC$15395_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"]]);
J6.JSC$15395_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p1("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.e([_.l(xi),_.n("design:type",Object)],J6.prototype,"ytdActiveViewBehavior",void 0);
_.e([_.l([_.ed.YtActionHandlerBehavior]),_.n("design:type",Object)],J6.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],J6.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],J6.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],J6.prototype,"collapsed",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],J6.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],J6.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.n("design:type",Boolean)],J6.prototype,"fixAlignmentSmallScreens",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs_square")}}),
_.n("design:type",Boolean)],J6.prototype,"useBiggerThumbsSquare",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.mediaHoverOverlay"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"hideHoverOverlay",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.promotedSparklesWebStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"webSearchLayout",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"webSearchLayoutLandscape",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"webSearchLayoutSquare",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.promotedSparklesWebStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"sparklesCtaNoBackground",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.actionButton"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"hideActionButton",null);_.e([_.Y({computed:"computeButtonOverride(uiUpdate)"}),_.n("design:type",Object)],J6.prototype,"buttonOverride",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.n("design:type",Boolean)],J6.prototype,"hasNewAdBadge",void 0);_.e([_.N("data.promotedSparklesWebStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J6.prototype,"useRoundedBadge",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],J6.prototype,"dataChanged",null);_.e([_.m({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],J6);
_.w(J6,"ytd-promoted-sparkles-web-renderer",function(){if(agp!==void 0)return agp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return agp=D},{mode:1});var $$p;var pU=function(){var D=_.c.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.enableMonoStyle=_.g("enable_default_mono_cta_migration_web_client");return D};
_.J(pU,_.c);_.V=pU.prototype;_.V.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]]"}}}}}};
_.V.computeShowCta=function(D){return!(D==null||!D.ctaRenderer)};
_.V.onCtaClick=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.ctaRenderer)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.command;a&&this.ytComponentBehavior.resolveCommand(a)};
_.V.onWatchButtonClick=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.watchButtonRenderer)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.command;a&&this.ytComponentBehavior.resolveCommand(a)};
_.V.onTap=function(){};
_.V.dataChanged=function(){if(this.data){var D;_.g("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",pU.JSC$15399_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",pU.JSC$15399_DEFAULT_CLICK_LOCATION_BEHAVIOR,pU.JSC$15399_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var v;if(((v=this.data)==null?0:v.forceImpAutoplay)&&_.g("enable_force_imp_autoplay_on_desktop_search")){var h;(h=this.JSC$15400_inlinePreviewHoverListener)==null||yMI(h)}}};
_.V.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var D=_.P(this.data.impressionUrls),v=D.next();!v.done;v=D.next())v=v.value,HbI(v,w8o(v));this.data.impressionsFired=!0}};
_.V.maybeComputeHref=function(){return null};
_.V.computeIsShortDR=function(D){return!(D==null||!D.watchButtonRenderer)&&!(D==null||!D.ctaRenderer)&&!!this.enableShortDR};
_.V.computeIsNewUiOrShortDr=function(D){return!!this.enableUiUpdate||this.computeIsShortDR(D)};
_.V.computeIsNewUiAndNotShortDr=function(D){return!!this.enableUiUpdate&&!this.computeIsShortDR(D)};
_.V.computeHideAvatar=function(D){return!((D==null?0:D.channelThumbnail)&&this.computeIsNewUiOrShortDr(D))};
_.V.onClick=function(D){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint;if(this.enableShortDR&&h&&(_.k(h,_.hP)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(h,D,!!_.k(h,_.hP)),D.stopPropagation();else if(h&&_.k(h,_.hP))this.ytSparklesClickLocationBehavior.handleClick(h,D,!0),D.stopPropagation();else if(h){var a,Q;((a=this.data)==null?0:a.navigationEndpoint)&&((Q=this.data)==null?0:Q.adPlaybackContextParams)&&(v=this.data.navigationEndpoint,D=this.data.adPlaybackContextParams,
v.commandMetadata&&_.k(v.commandMetadata,_.Sa)&&_.k(v.commandMetadata,_.Sa).url&&(v=_.DX(_.k(v.commandMetadata,_.Sa).url).adurl)&&_.wUi(v)&&_.Vp(_.tB(v),{encoded_ad_playback_context:D}));this.ytComponentBehavior.resolveCommand(h)}};
_.V.computeButtonOverride=function(D){if(this.computeIsNewUiOrShortDr(D))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.V.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.V.onThumbnailContainerClick=function(D){this.onClick(D)};
_.V.computeThumbnailWidth=function(D,v){return D?v==="MASSIVE"?600:v==="BIG"?500:v==="MEDIUM"?450:420:360};
_.V.attached=function(){var D=this,v;_.g("enable_inline_muted_playback_on_web_search")&&((v=this.data)==null?0:v.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){var D;_.g("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15400_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Let})};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15400_inlinePreviewHoverListener)==null||hL(D)};
pU.prototype.dataChanged=pU.prototype.dataChanged;pU.prototype.onTap=pU.prototype.onTap;pU.JSC$15399_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p1("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};pU.JSC$15399_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
pU.JSC$15399_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"}];_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.e([_.l(xi),_.n("design:type",Object)],pU.prototype,"ytdActiveViewBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],pU.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],pU.prototype,"ytSparklesClickLocationBehavior",void 0);
_.e([_.Br("#main-container"),_.n("design:type",HTMLElement)],pU.prototype,"mainContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],pU.prototype,"isInlinePreviewTriggered",void 0);_.e([_.Y(),_.n("design:type",Object)],pU.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],pU.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_video_display_compact_button_group_for_desktop_search")}}),
_.n("design:type",Boolean)],pU.prototype,"enableShortDR",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_vac_ui_update_for_desktop_search")}}),
_.n("design:type",Boolean)],pU.prototype,"enableUiUpdate",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],pU.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.n("design:type",Boolean)],pU.prototype,"showCta",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.n("design:type",Boolean)],pU.prototype,"isShortDr",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.n("design:type",Boolean)],pU.prototype,"isShortDrOrNewUi",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.n("design:type",Boolean)],pU.prototype,"isNewUiAndNotShortDr",void 0);_.e([_.Y({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],pU.prototype,"buttonOverride",void 0);_.e([_.Y({computed:"computeSecondaryButtonOverride(data)"}),_.n("design:type",Object)],pU.prototype,"secondaryButtonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pU.prototype,"enableMonoStyle",void 0);
_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],pU.prototype,"thumbnail",void 0);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pU.prototype,"onTap",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pU.prototype,"dataChanged",null);_.e([_.m({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],pU);
_.w(pU,"ytd-promoted-video-renderer",function(){if($$p!==void 0)return $$p;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return $$p=D},{mode:1});var QV9;var lv=function(){var D=_.c.apply(this,arguments)||this;D.useRoundedBadge=!0;D.sitelinkIds=[];return D};
_.J(lv,_.c);_.V=lv.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.g("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]]"}}}}}};
_.V.dataChanged=function(){var D;(D=this.data)!=null&&D.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,lv.JSC$15405_CLICK_LOCATION_ID_MAP)};
_.V.onTap=function(D){var v,h=(v=this.data)==null?void 0:v.navigationCommand;h&&!_.VL(_.Pr(D),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(h,D,!1)};
_.V.onSitelinkTap=function(D){var v,h,a=D==null?void 0:(v=D.model)==null?void 0:(h=v.item)==null?void 0:h.onTap;a&&this.ytSparklesClickLocationBehavior.handleClick(a,D,!1)};
_.V.configureSitelinkClickTargets=function(){var D=this,v,h,a=(v=this.data)==null?void 0:(h=v.clickLocationTargets)==null?void 0:h.find(function(Q){return Q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
a&&_.ZW(this.hostElement).querySelectorAll(".sitelink").forEach(function(Q){_.Iy(Q,"yt-simple-endpoint",!0);D.sitelinkIds.push(Q.id);var G,x;(G=D.ytSparklesClickLocationBehavior)==null||(x=G.clickTargetMap)==null||x.set(Q.id,a)})};
_.V.sendImpression=function(){var D,v,h=((D=this.data)==null?void 0:(v=D.impressionCommand)==null?void 0:v.loggingUrls)||[];D=_.P(h);for(v=D.next();!v.done;v=D.next())v=v.value,v.baseUrl&&t2(v.baseUrl,v.attributionSrcMode)};
_.V.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.GT.Object.defineProperties(lv.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
lv.prototype.onTap=lv.prototype.onTap;lv.prototype.dataChanged=lv.prototype.dataChanged;lv.JSC$15405_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"]]);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],lv.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lv.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lv.prototype,"showFavicon",null);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],lv.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],lv.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.n("design:type",Boolean)],lv.prototype,"enableThumbnailScalingFix",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lv.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],lv.prototype,"onTap",null);_.e([_.m({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],lv);
_.w(lv,"ytd-text-image-no-button-layout-renderer",function(){if(QV9!==void 0)return QV9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QV9=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var GOy;var NN=function(){var D=_.c.apply(this,arguments)||this;D.isInlinePlaybackState=!1;D.uiUpdate=_.g("web_modern_buttons");D.hideCta=_.g("hide_cta_for_home_web_video_ads");D.noBottomMargin=!1;D.animateInTimeStamp=_.oZ("hide_cta_for_home_web_video_ads_animate_in_time");D.animateInCta=!1;D.isHovered=!1;D.enableMonoStyle=_.g("enable_default_mono_cta_migration_web_client");D.player=null;D.JSC$15412_playerEvents=new Map;D.JSC$15412_preventProgressSaveTimer=null;D.delayedCtaJobId=null;return D};
_.J(NN,_.c);_.V=NN.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){this.JSC$15412_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15412_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.g("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.V.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15412_playerEvents)};
_.V.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",NN.JSC$15411_DEFAULT_CLICK_LOCATION_BEHAVIOR,NN.JSC$15411_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.V.hoverChanged=function(){var D=this;this.delayedCtaJobId&&(_.HK.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.g("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.b7(_.HK,function(){D.buttonContainer.classList.add("show-delayed-buttons")},_.oZ("delayed_cta_on_web_delay_milliseconds")))};
_.V.setPlayer=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return(v=_.U9(D.hostElement,"yt-get-inline-preview-player-action"))&&v[0]?h.yield(v[0].getPlayerPromise(),3):h.jumpTo(0);D.player=h.yieldResult;D.ytPlayerListenerBehavior.listenToPlayerEvents(D.player,D.JSC$15412_playerEvents);_.YI(h)})};
_.V.onPlaybackStart=function(){var D=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15412_preventProgressSaveTimer=_.I3(_.HK,function(){D.JSC$15412_preventProgressSaveTimer=null},1E4))};
_.V.onVideoProgress=function(D){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&D>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.V.resetPreventProgressSaveTimer=function(){_.HK.cancelJob(this.JSC$15412_preventProgressSaveTimer);this.JSC$15412_preventProgressSaveTimer=null};
_.V.getSimpleString=function(D){return _.$V(D)};
_.V.onClick=function(D){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint,a;v=(a=this.data)==null?void 0:a.channelEndpoint;var Q,G;((G=_.k((Q=this.data)==null?void 0:Q.adCtaButton,_.Vi))==null?0:G.command)&&_.VL(_.Pr(D),this.hostElement,["call-to-action"])||(v&&_.VL(_.Pr(D),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(v,D,!1):!_.VL(_.Pr(D),this.hostElement,
["secondary-button"])&&h&&(_.g("enable_short_dr_for_desktop_launchable")?(a=!!_.k(h,_.hP),this.isInlinePlaybackState&&a&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(h,D,a)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(h,D,!0))))}};
_.V.updateWatchEndpointStartTime=function(){var D,v;this.player&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&((v=this.data)==null?0:v.navigationEndpoint)&&!this.JSC$15412_preventProgressSaveTimer&&(D=Math.floor(this.player.getCurrentTime()),_.k(this.data.navigationEndpoint,_.hP).startTimeSeconds=D,_.k(this.data.inlinePlaybackEndpoint,_.hP).startTimeSeconds=D)};
_.V.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.V.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.GT.Object.defineProperties(NN.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.g("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.watchButton)&&!((v=this.data)==null||!v.adCtaButton)}}});
NN.prototype.hoverChanged=NN.prototype.hoverChanged;NN.prototype.dataChanged=NN.prototype.dataChanged;
NN.JSC$15411_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"]]);
NN.JSC$15411_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"}];
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],NN.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],NN.prototype,"ytSparklesClickLocationBehavior",void 0);
_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],NN.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],NN.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"isInlinePlaybackState",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],NN.prototype,"miniMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"uiUpdate",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"hideCta",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"noBottomMargin",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"animateInCta",void 0);_.e([_.Y({computed:"computeButtonOverride(uiUpdate)"}),_.n("design:type",Object)],NN.prototype,"buttonOverride",void 0);
_.e([_.Y({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.n("design:type",Object)],NN.prototype,"secondaryButtonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"isHovered",void 0);_.e([_.Br("#button-container"),_.n("design:type",HTMLElement)],NN.prototype,"buttonContainer",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],NN.prototype,"typographyBump",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("typographyBump"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],NN.prototype,"typographyBumpV2",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NN.prototype,"enableMonoStyle",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NN.prototype,"dataChanged",null);
_.e([_.Ni("isHovered"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NN.prototype,"hoverChanged",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],NN.prototype,"isButtonGroup",null);_.e([_.m({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],NN);
_.w(NN,"ytd-ad-inline-playback-meta-block",function(){if(GOy!==void 0)return GOy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return GOy=D},{mode:_.E_("kevlar_poly_si_batch_j065")?1:2});var VYs;var Yb=function(){var D=_.c.apply(this,arguments)||this;D.noBottomMargin=!1;D.isInlinePreviewTriggered=!1;D.JSC$15417_activeViewMeasurementDataResolver=_.hn();return D};
_.J(Yb,_.c);_.V=Yb.prototype;_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15417_activeViewMeasurementDataResolver.promise.then(function(v){D.ytdActiveViewBehavior.enableActiveViewMeasurement(v,15)});
_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners();_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15417_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.JSC$15417_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Let})};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15417_inlinePreviewHoverListener)==null||hL(D)};
_.V.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15417_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Yb.JSC$15416_DEFAULT_CLICK_LOCATION_BEHAVIOR,Yb.JSC$15416_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var v;if((v=this.data)==
null?0:v.forceImpAutoplay){var h;(h=this.JSC$15417_inlinePreviewHoverListener)==null||yMI(h)}};
_.V.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.V.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(h,D,!!_.k(h,_.hP));D.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var v,h,a=(h=_.k((v=this.data)==null?void 0:v.onImpression,_.IN))==null?void 0:h.commands;a&&(a.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;D.ytComponentBehavior.resolveCommand(Q)}),this.data.impressionsFired=!0)}};
_.GT.Object.defineProperties(Yb.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15417_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Yb.prototype.onTypographyBumpChanged=Yb.prototype.onTypographyBumpChanged;Yb.prototype.onDataChanged=Yb.prototype.onDataChanged;Yb.JSC$15416_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Yb.JSC$15416_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"}];
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Yb.prototype,"ytComponentBehavior",void 0);_.e([_.l(xi),_.n("design:type",Object)],Yb.prototype,"ytdActiveViewBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],Yb.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.E0),_.n("design:type",Object)],Yb.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Yb.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],Yb.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Yb.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Yb.prototype,"noBottomMargin",void 0);
_.e([_.Y(),_.n("design:type",Object)],Yb.prototype,"isInlinePreviewTriggered",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],Yb.prototype,"miniMode",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Yb.prototype,"typographyBump",void 0);_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],Yb.prototype,"thumbnail",void 0);_.e([_.Br("#dismissible"),_.n("design:type",HTMLElement)],Yb.prototype,"JSC$15417_dismissibleMedia",void 0);
_.e([_.Br("ytd-ad-inline-playback-meta-block"),_.n("design:type",HTMLElement)],Yb.prototype,"adInlinePlaybackMetaBlock",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yb.prototype,"onDataChanged",null);_.e([_.qi("typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yb.prototype,"onTypographyBumpChanged",null);
_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Yb.prototype,"isHovered",null);_.e([_.m({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Yb);
_.w(Yb,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(VYs!==void 0)return VYs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return VYs=D},{mode:1});var PiJ;var Bj=function(){var D=_.c.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.JSC$15420_activeViewMeasurementDataResolver=_.hn();return D};
_.J(Bj,_.c);_.V=Bj.prototype;_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15420_activeViewMeasurementDataResolver.promise.then(function(v){D.ytdActiveViewBehavior.enableActiveViewMeasurement(v,15)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15420_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.JSC$15420_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Let})};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15420_inlinePreviewHoverListener)==null||hL(D)};
_.V.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15420_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Bj.JSC$15419_DEFAULT_CLICK_LOCATION_BEHAVIOR,Bj.JSC$15419_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"))};
_.V.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(h,D,!0);D.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var v,h,a=(h=_.k((v=this.data)==null?void 0:v.onImpression,_.IN))==null?void 0:h.commands;a&&(a.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.xd().resolve(_.fx).resolveCommand(Q,{form:{element:D.hostElement}})}),this.data.impressionsFired=!0)}};
_.GT.Object.defineProperties(Bj.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15420_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Bj.prototype.onDataChanged=Bj.prototype.onDataChanged;Bj.JSC$15419_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Bj.JSC$15419_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"}];_.e([_.l(xi),_.n("design:type",Object)],Bj.prototype,"ytdActiveViewBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],Bj.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],Bj.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);
_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],Bj.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Bj.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Bj.prototype,"isInlinePreviewTriggered",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],Bj.prototype,"miniMode",void 0);_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],Bj.prototype,"thumbnail",void 0);
_.e([_.Br("#dismissible"),_.n("design:type",HTMLElement)],Bj.prototype,"JSC$15420_dismissibleMedia",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bj.prototype,"onDataChanged",null);_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bj.prototype,"isHovered",null);_.e([_.m({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Bj);
_.w(Bj,"ytd-video-display-full-buttoned-renderer",function(){if(PiJ!==void 0)return PiJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return PiJ=D},{mode:1});var PO=function(D,v,h,a){a=a===void 0?!1:a;_.hc.call(this,D);this.adsClientErrorMessage=h;this.aggressivelySample=a;this.args=[];v&&this.args.push(v)};
_.J(PO,_.hc);var GN=function(D,v,h,a){a=a===void 0?!1:a;_.hc.call(this,D);this.adsClientErrorMessage=h;this.aggressivelySample=a;this.args=[];v&&this.args.push(v)};
_.J(GN,_.hc);var x$m=function(D){_.AN.call(this);var v=this;this.initializationFunction=D;this.instance=null;this.addOnDisposeCallback(function(){_.V5(v.instance);v.instance=null})};
_.J(x$m,_.AN);x$m.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.u7("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var URA=function(){var D=new Map;[].forEach(function(v){D.set(v.JSC$30500_getType(),v)});
this.getters=D};new Promise(function(){});var ftA=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"]]),xRI=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"}]]),MYM=function(D){this.experimentApiProvider=D;D=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=D<.1};var cj=function(D,v,h,a){_.AN.call(this);this.adsControlFlowEventListeners=v;this.adEventLogger=h;this.experimentApiProvider=a;this.adsControlFlowManagerHelper=D(this,this,this,this,this);_.Ia(this,this.adsControlFlowManagerHelper);D=_.P(v);for(v=D.next();!v.done;v=D.next())_.Ia(this,v.value)};
_.J(cj,_.AN);var fgm=function(D,v,h,a){XN(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",v,h,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a);D=_.P(D.adsControlFlowEventListeners);for(a=D.next();!a.done;a=D.next())fgm(a.value,v,h)};
_.V=cj.prototype;_.V.onOpportunityProcessedExternallyManaged=function(D,v,h,a){XN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",D,h,v,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)};
_.V.onSlotReceivedExternallyManaged=function(D,v){A6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",D,v)};
_.V.onSlotEntered=function(D){if(qN(this.adsControlFlowManagerHelper,D)!=null){A6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);this.adsControlFlowManagerHelper.onSlotEntered(D);for(var v=_.P(this.adsControlFlowEventListeners),h=v.next();!h.done;h=v.next())h.value.onSlotEntered(D);if(qN(this.adsControlFlowManagerHelper,D)!=null&&qN(this.adsControlFlowManagerHelper,D).isOccupyingSlotType()&&bv(this.adsControlFlowManagerHelper,D)&&!Ciy(this.adsControlFlowManagerHelper,D)){var a;d6(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",D,(a=bv(this.adsControlFlowManagerHelper,D))!=null?a:void 0);D=qN(this.adsControlFlowManagerHelper,D);D.slotLifecycleStage!=="entered"&&jl(D.slot,D.slotLifecycleStage,"enterLayoutForSlot");D.slotLifecycleStage="rendering";D.registeredLayoutRenderingAdapter.startRendering(D.layout)}}};
_.V.onSlotExited=function(D){if(qN(this.adsControlFlowManagerHelper,D)!=null){A6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);this.adsControlFlowManagerHelper.onSlotExited(D);for(var v=_.P(this.adsControlFlowEventListeners),h=v.next();!h.done;h=v.next())h.value.onSlotExited(D);qN(this.adsControlFlowManagerHelper,D)!=null&&qN(this.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests&&ow$(this,D)}};
_.V.onLayoutReceivedExternallyManaged=function(D,v,h){D.managerLayer!=="core"&&d6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",D,v,h)};
var FxJ=function(D,v,h){if(qN(D.adsControlFlowManagerHelper,v)!=null){d6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",v,h);D=_.P(D.adsControlFlowEventListeners);for(var a=D.next();!a.done;a=D.next())FxJ(a.value,v,h)}};
cj.prototype.onLayoutExited=function(D,v,h){if(qN(this.adsControlFlowManagerHelper,D)!=null){d6(this.adEventLogger,Mir(h),D,v);this.adsControlFlowManagerHelper.onLayoutExited(D,v);for(var a=_.P(this.adsControlFlowEventListeners),Q=a.next();!Q.done;Q=a.next())Q.value.onLayoutExited(D,v,h);(h=bv(this.adsControlFlowManagerHelper,D))&&v.layoutId===h.layoutId&&z4F(this,D)}};
cj.prototype.disposeInternal=function(){var D=U$t(this.adsControlFlowManagerHelper);D=_.P(D);for(var v=D.next();!v.done;v=D.next())ow$(this,v.value);_.AN.prototype.disposeInternal.call(this)};
var ow$=function(D,v){if(qN(D.adsControlFlowManagerHelper,v)!=null)if(qN(D.adsControlFlowManagerHelper,v).JSC$30530_isSlotExitRequested()||qN(D.adsControlFlowManagerHelper,v).JSC$30530_isLayoutExitRequested())qN(D.adsControlFlowManagerHelper,v).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(qN(D.adsControlFlowManagerHelper,v).isOccupyingSlotType())qN(D.adsControlFlowManagerHelper,v).markedForUnscheduleAfterOutboundAdapterRequests=!0,z4F(D,v);else if(qN(D.adsControlFlowManagerHelper,v).JSC$30530_isSlotFillRequested())qN(D.adsControlFlowManagerHelper,
v).markedForUnscheduleAfterOutboundAdapterRequests=!0,qN(D.adsControlFlowManagerHelper,v)!=null&&(A6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",v),v=qN(D.adsControlFlowManagerHelper,v),v.fulfillmentLifecycleStage="fill_cancel_requested",v.registeredFulfillmentAdapter.cancelSlotFilling());else{var h=bv(D.adsControlFlowManagerHelper,v),a;D.experimentApiProvider.get();(a=_.g("h5_enable_layout_unscheduling_events"))&&(h?Lx1(D,v,h):_.u7(Error("Qh"),v,h,void 0,!1));A6(D.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",v);var Q=qN(D.adsControlFlowManagerHelper,v),G=v.slotEntryTrigger,x=Q.registeredSlotEntryTriggerAdapters.get(G.triggerId);x&&(x.unregisterTrigger(G),Q.registeredSlotEntryTriggerAdapters.delete(G.triggerId));G=_.P(v.slotFulfillmentTriggers);for(x=G.next();!x.done;x=G.next()){x=x.value;var f=Q.registeredFulfillmentTriggerAdapters.get(x.triggerId);f&&(f.unregisterTrigger(x),Q.registeredFulfillmentTriggerAdapters.delete(x.triggerId))}G=_.P(v.slotExpirationTriggers);
for(x=G.next();!x.done;x=G.next())if(x=x.value,f=Q.registeredExpirationTriggerAdapters.get(x.triggerId))f.unregisterTrigger(x),Q.registeredExpirationTriggerAdapters.delete(x.triggerId);Q.hasLayout()&&(G=Q.layout,sC(Q,G.layoutExitNormalTriggers),sC(Q,G.layoutExitSkipTriggers),sC(Q,G.layoutExitMuteTriggers),sC(Q,G.layoutExitUserInputSubmittedTriggers),sC(Q,G.layoutExitUserCancelledTriggers));Q.registeredFulfillmentAdapter=void 0;Q.registeredSlotAdapter!=null&&(Q.registeredSlotAdapter.release(),Q.registeredSlotAdapter=
void 0);Q.registeredLayoutRenderingAdapter!=null&&(Q.registeredLayoutRenderingAdapter.release(),Q.registeredLayoutRenderingAdapter=void 0);Q=D.adsControlFlowManagerHelper;qN(Q,v)&&(Q=Zo9(Q,v.slotType+"_"+v.slotPhysicalPosition))&&Q.delete(v.slotId);A6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",v);D=_.P(D.adsControlFlowEventListeners);for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,Q.onSlotUnscheduled(v),h&&!a&&Lx1(Q,v,h)}},Lx1=function(D,v,h){d6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
v,h);
d6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",v,h);D=_.P(D.adsControlFlowEventListeners);for(var a=D.next();!a.done;a=D.next())a=a.value,h&&Lx1(a,v,h)},z4F=function(D,v){if(qN(D.adsControlFlowManagerHelper,v)!=null&&qN(D.adsControlFlowManagerHelper,v).isOccupyingSlotType()){var h=bv(D.adsControlFlowManagerHelper,v);
if(h&&Ciy(D.adsControlFlowManagerHelper,v)){if(qN(D.adsControlFlowManagerHelper,v)!=null){var a=D.adEventLogger,Q;var G=((Q=xRI.get("abandoned"))==null?void 0:Q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";d6(a,G,v,h);D=qN(D.adsControlFlowManagerHelper,v);D.slotLifecycleStage!=="rendering"&&jl(D.slot,D.slotLifecycleStage,"exitLayout");D.slotLifecycleStage="rendering_stop_requested";D.registeredLayoutRenderingAdapter.stopRendering(h,"abandoned")}}else{A6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
v);try{a=qN(D.adsControlFlowManagerHelper,v);if(!a)throw new GN("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");a.slotLifecycleStage!=="enter_requested"&&a.slotLifecycleStage!=="entered"&&a.slotLifecycleStage!=="rendering"&&jl(a.slot,a.slotLifecycleStage,"exitSlot");a.slotLifecycleStage="exit_requested";if(a.registeredSlotAdapter===void 0)throw a.slotLifecycleStage="scheduled",new GN("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
a.registeredSlotAdapter.exit()}catch(x){x instanceof GN&&x.adsClientErrorMessage?(Ewy(D.adEventLogger,x.adsClientErrorMessage,v),_.u7(x,v,void 0,void 0,x.aggressivelySample)):(Ewy(D.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",v),_.u7(x,v))}}}};var mi=function(D,v,h,a,Q,G){_.AN.call(this);this.registry=D;this.experimentApiProvider=G;this.slotMap=new Map};
_.J(mi,_.AN);var Zo9=function(D,v){return(D=D.slotMap.get(v))?D:new Map},qN=function(D,v){return Zo9(D,v.slotType+"_"+v.slotPhysicalPosition).get(v.slotId)},U$t=function(D){var v=[];
D.slotMap.forEach(function(h){h=_.P(h.values());for(var a=h.next();!a.done;a=h.next())v.push(a.value.slot)});
return v};
mi.prototype.onSlotEntered=function(D){D=qN(this,D);D.slotLifecycleStage!=="enter_requested"&&jl(D.slot,D.slotLifecycleStage,"onSlotEntered");D.slotLifecycleStage="entered"};
var Ciy=function(D,v){D=qN(D,v);return D.hasLayout()&&D.isRendering()},bv=function(D,v){(D=qN(D,v))?D.hasLayout()&&!D.layout&&_.u7("Unexpected empty layout",v):_.u7("Unexpected undefined slotState",v);
return(D==null?void 0:D.layout)||null};
mi.prototype.onSlotExited=function(D){D=qN(this,D);D.slotLifecycleStage!=="exit_requested"&&jl(D.slot,D.slotLifecycleStage,"onSlotExited");D.slotLifecycleStage="scheduled"};
mi.prototype.onLayoutExited=function(D,v){D=qN(this,D);D.isPrimaryLayout(v)&&(D.slotLifecycleStage!=="rendering_stop_requested"&&jl(D.slot,D.slotLifecycleStage,"onLayoutExited"),D.slotLifecycleStage="entered")};
var sC=function(D,v){v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=D.registeredLayoutExitTriggerAdapters.get(h.triggerId);a&&(a.unregisterTrigger(h),D.registeredLayoutExitTriggerAdapters.delete(h.triggerId))}},jl=function(D,v,h){_.u7("Slot stage was "+v+" when calling method "+h,D)};var gwt=function(D){_.AN.call(this);this.deps=D;this.JSC$15470_adsControlFlowManager=IgJ(this)};
_.J(gwt,_.AN);var IgJ=function(D){var v=new cj(function(h,a,Q,G){return new mi(D.deps.registry,h,a,Q,G,D.deps.experimentApiProvider)},new Set(zpc(D.deps.registry).concat(D.deps.listeners)),D.deps.adEventLogger,D.deps.experimentApiProvider);
_.Ia(D,v);return v};var TK8=function(){};var kO1=function(D,v){_.AN.call(this);this.experimentApiProvider=D;this.eventLoggingSettingsProvider=v;this.eventCount=0;this.premiumAdSeenEventLogger=Ryc()()};
_.J(kO1,_.AN);kO1.prototype.logEvent=function(D){XN(this,D)};
var A6=function(D,v,h,a){XN(D,v,void 0,void 0,void 0,h,void 0,void 0,void 0,h.adSlotLoggingData,void 0,void 0,a)},d6=function(D,v,h,a,Q){XN(D,v,void 0,void 0,void 0,h,a?a:void 0,void 0,void 0,h.adSlotLoggingData,a?a.adLayoutLoggingData:void 0,void 0,Q);
h=_.xd().resolve(_.PV(XB))==null?void 0:AX();v=h==null?void 0:h.adsSeenHotConfig;h=h==null?void 0:h.adsHotConfig;(v==null?0:v.logOnAdsSeen)&&(h==null?0:h.webEnablePremiumAdsSeenLogging)&&SK4(D,a?a:void 0,Q)},Ewy=function(D,v,h){XN(D,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,h,void 0,void 0,void 0,h.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:v})},XN=function(D,v,h,a,Q,G,x,f,C,U,L,Z,E){E=E===void 0?0:E;
JIy(D.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+v,"slot:",G,"layout:",x,"ping:",f,"Opportunity:",{opportunityType:h,associatedSlotId:a,slotsFromOpportunity:Q,triggerBundle:C,adSlotLoggingData:U,adLayoutLoggingData:L});try{var I=function(){D.experimentApiProvider.get();if(v!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){v||_.u7("Empty PACF event type",G,x);var S=D.eventLoggingSettingsProvider.get();var B;(B=S.alwaysIncludeDebugData)||(S.experimentApiProvider.get(),B=
!1);S=B;B={eventType:v,eventOrder:++D.eventCount};var A={};G&&(A.slotData=o0c(S,G));if(x){var d={type:x.layoutType,controlFlowManagerLayer:ftA.get(x.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};S&&(d.debugData={layoutId:x.layoutId});A.layoutData=d}f&&(A.pingData={pingDispatchStatus:f.dispatchStatus,serializedAdPingMetadata:f.ping.serializedAdPingMetadata,pingIndex:f.index});C&&(A.triggerData=Coc(C.trigger,C.category));h&&(A.opportunityData=Fui(S,h,a,Q));B.adClientData=A;U&&(B.serializedSlotAdServingData=
U.serializedSlotAdServingDataEntry);L&&(B.serializedAdServingData=L.serializedAdServingDataEntry);Z&&(B.errorInfo=Z);_.jj("adsClientStateChange",{adsClientEvent:B})}};
E&&E>0?_.c1(_.c7(),function(){return I()},E):I()}catch(S){JIy(D.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.c1(_.c7(),function(){_.u7(S instanceof Error?S:String(S),G,x,{pacf_message:"exception during pacf logging"})})}},SK4=function(D,v,h){if(v){var a=v.adLayoutLoggingData;
_.c1(_.c7(),function(){D.premiumAdSeenEventLogger!=null&&a&&_.jj("adsSeenClientLogging",{serializedAdServingDataEntry:a.serializedAdServingDataEntry})},h!=null?h:0)}};var pYm=function(D,v){kO1.call(this,D,v)};
_.J(pYm,kO1);var lgy=function(){},JIy=function(D,v){return _.g(v)};var YK$=function(){var D=new NQb;this.JSC$15495_adsControlFlowManager=(new gwt(D)).JSC$15470_adsControlFlowManager},NQb=function(){_.AN.call(this);
var D=this;this.experimentApiProvider=new x$m(function(){return new lgy});
var v=new x$m(function(){return new MYM(D.experimentApiProvider)});
this.adEventLogger=new pYm(this.experimentApiProvider,v);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.J(NQb,_.AN);var BQF=function(){},cI$,Hj=function(){cI$||(cI$=new BQF);
return cI$},yU=function(D){if(!D.JSC$15506_externallyManagedSlotAdapterCallback){var v=(new YK$).JSC$15495_adsControlFlowManager;
D.JSC$15506_externallyManagedSlotAdapterCallback=v}return D.JSC$15506_externallyManagedSlotAdapterCallback},XY9=function(D,v,h){var a=v.opportunityType,Q=Error("Rh");
if(a!==void 0){var G=yU(D);fgm(G,a,void 0,h)}else _.u7(Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});G=[];if(v.adSlotAndLayoutMetadata!==void 0){v=_.P(v.adSlotAndLayoutMetadata);for(var x=v.next();!x.done;x=v.next()){var f=x.value;if(x=f.adSlotMetadata)if(G.push(x),D.onSlotReceivedExternallyManaged(x,h),f.adLayoutMetadata){f=_.P(f.adLayoutMetadata);for(var C=f.next();!C.done;C=f.next())D.onLayoutReceivedExternallyManaged(x,C.value,h)}else h>0&&_.u7("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
a,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else h>0&&_.u7("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+a,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else h>0&&_.u7("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+a,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(a!==void 0)D.onOpportunityProcessedExternallyManaged(a,G,void 0,h);else _.u7(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
BQF.prototype.onSlotReceivedExternallyManaged=function(D,v){D=VV(D);if(D instanceof GN)_.u7(D,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else yU(this).onSlotReceivedExternallyManaged(D,v)};
BQF.prototype.onLayoutReceivedExternallyManaged=function(D,v,h){D=VV(D);v=Lu4(v);if(D instanceof GN)_.u7(D,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(v instanceof PO)_.u7(v,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else yU(this).onLayoutReceivedExternallyManaged(D,v,h)};
BQF.prototype.onOpportunityProcessedExternallyManaged=function(D,v,h,a){var Q=[];v=_.P(v);for(var G=v.next();!G.done;G=v.next())G=VV(G.value),G instanceof GN?_.u7(G,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Q.push(G);yU(this).onOpportunityProcessedExternallyManaged(D,Q,h,a)};
var AIM=function(D,v){v=VV(v);if(v instanceof GN)_.u7(v,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var h=yU(D);A6(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",v);h=_.P(h.adsControlFlowEventListeners);for(var a=h.next();!a.done;a=h.next())a=qN(a.value,v),a.slotLifecycleStage!=="not_scheduled"&&jl(a.slot,a.slotLifecycleStage,"onSlotScheduled"),a.slotLifecycleStage="scheduled";D=yU(D);A6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",v);D=_.P(D.adsControlFlowEventListeners);
for(h=D.next();!h.done;h=D.next())h.value.onSlotEntered(v)}},qKF=function(D,v){v=VV(v);
if(v instanceof GN)_.u7(v,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var h=yU(D);A6(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",v);h=_.P(h.adsControlFlowEventListeners);for(var a=h.next();!a.done;a=h.next())a.value.onSlotExited(v);D=yU(D);A6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",v);D=_.P(D.adsControlFlowEventListeners);for(h=D.next();!h.done;h=D.next())h.value.onSlotUnscheduled(v)}},bo9=function(D,v,h){v=VV(v);
h=Lu4(h);if(v instanceof GN)_.u7(v,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(h instanceof PO)_.u7(h,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var a=yU(D);d6(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",v,h);a=_.P(a.adsControlFlowEventListeners);for(var Q=a.next();!Q.done;Q=a.next())Q.value.onLayoutScheduled(v,h);D=yU(D);d6(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",v,h);D=_.P(D.adsControlFlowEventListeners);
for(a=D.next();!a.done;a=D.next())FxJ(a.value,v,h)}},w6=function(D,v,h){v=VV(v);
h=Lu4(h);if(v instanceof GN)_.u7(v,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(h instanceof PO)_.u7(h,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var a=yU(D);d6(a.adEventLogger,Mir("normal"),v,h);a=_.P(a.adsControlFlowEventListeners);for(var Q=a.next();!Q.done;Q=a.next())Q.value.onLayoutExited(v,h,"normal");D=yU(D);D=_.P(D.adsControlFlowEventListeners);for(a=D.next();!a.done;a=D.next())Lx1(a.value,v,h)}};_.el=_.H(function(D){var v=_.fb(D,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});D=Object.assign({},v);var h=v.data;v=v.customCommandResolver;var a=(delete D.data,delete D.customCommandResolver,D);D=_.Mb({visibilityCallback:function(f,C){var U,L=(U=h().interaction)==null?void 0:U.onFirstVisible;f&&(L&&_.r4(L),a.setOnErrorHandler()&&ZF7(C))},
showOption:_.Nk});v=_.Tf(function(){return h().interaction},v,function(){var f;
return(f=a.listenToTapEvent)==null?void 0:f.call(a)});
var Q=_.P(_.Zq(!1,void 0,"wAC0Lc")),G=Q.next().value,x=Q.next().value;Q=_.Jd(function(f){var C;((C=a.setTouchEndHandler)==null?0:C.call(a))&&!G()&&(f.currentTarget.click(),x(!0),setTimeout(function(){x(!1)},100));
return!1});
return _.F("ad-image-view-model",{class:function(){var f,C=[((f=h().interaction)==null?0:f.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],U;((U=a.isGridViewEnabled)==null?0:U.call(a))&&C.push("ytwAdImageViewModelHostInGridView");return C.join(" ")},
el:_.ML(D,v),"on:touchend":Q},_.F("div",{class:"ytwAdImageViewModelHostImageContainer"},_.F(_.PX,{data:function(){var f;return{sources:h().imageSources,contentMode:(f=h().imageProperties)==null?void 0:f.contentMode}},
alt:function(){var f,C;return((f=h().interaction)==null?void 0:(C=f.accessibility)==null?void 0:C.label)||""},
targetHeight:a.targetHeight,targetWidth:a.targetWidth,preserveHeight:a.preserveHeight,preserveWidth:a.preserveWidth,useWidth:a.useWidth,style:function(){var f,C;return"vertical-align: bottom;"+(((f=h().background)==null?0:f.color)?"background-color:"+_.rT((C=h().background)==null?void 0:C.color)+";":"")},
className:function(){return a.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var f,C;return(C=(f=a.setDraggable)==null?void 0:f.call(a))!=null?C:void 0}})))},"$b");var d$R=_.H(function(D){var v=D.data,h=D.listenToTapEvent,a=function(){};
return _.F("ad-button-hover-overlay-view-model",{"on:click":_.Jd(function(Q){if(_.g("enable_web_home_top_landscape_image_layout_legacy_click_command")){var G,x=(G=v().interaction)==null?void 0:G.onTap;x&&_.F1(Q.currentTarget,"yt-navigate",{endpoint:_.Rq(x)})}}),
class:function(){var Q;return((Q=v().interaction)==null?0:Q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(Q){var G,x=(G=v().interaction)==null?void 0:G.onFirstVisible;Q&&x&&_.r4(x)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},void 0,function(){return!_.g("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(h==null?void 0:h())}))},function(){return _.g("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.F(_.c4,{data:function(){return v().button}},{adButtonViewModel:function(Q){return _.F(_.B$,{data:Q.data,
customCommandResolver:a})}}):_.F(_.c4,{data:function(){return v().button}},{adButtonViewModel:_.B$})}())},"ac");var x2;_.zh(_.H(function(D){var v=D.data;D=_.Mb({visibilityCallback:function(f,C){if(f){var U;(f=(U=v().interaction)==null?void 0:U.onFirstVisible)&&_.r4(f);var L;if(U=(L=v().adLayoutData)==null?void 0:L.activeViewData)MO(C,U),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&fS(C)})}else _.g("stop_av_measurement_on_detach")&&fS(C)},
showOption:_.Nk,hideOption:Yu});var h=_.Tf(function(){return v().interaction},void 0,function(){return!0}),a=_.P(_.Zq(!1,void 0,"VNDDT")),Q=a.next().value,G=a.next().value;
a=_.Jd(function(){G(!0)});
var x=_.Jd(function(){G(!1)});
return _.F("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.ML(D,p3i,h),"on:mouseenter":a,"on:mouseleave":x},_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.NL({"max-width":function(){return _.g("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.F("div",{class:function(){var f;
a:{var C;switch((f=_.k(v().thumbnailImage,YPM))==null?void 0:(C=f.imageProperties)==null?void 0:C.renderingAspect){case "RENDERING_ASPECT_SQUARE":f="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":f="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}f=void 0}return f}},_.F(_.c4,{data:function(){return v().thumbnailImage}},{adImageViewModel:function(f){return _.F(_.el,
{data:f.data,
listenToTapEvent:!0,setTouchEndHandler:_.g("enable_top_landscape_image_experiment_dom_id_web")})}})),_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.F(_.z,{cond:function(){var f,C,U;
return(f=_.k(v().thumbnailImage,YPM))==null?void 0:(C=f.imageProperties)==null?void 0:(U=C.overlayIcon)==null?void 0:U.iconImage},
then:function(f){return _.F(_.PX,{data:f,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.F("div",{class:function(){return Q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.F(_.c4,{data:function(){return v().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(f){return _.F(d$R,
{data:f.data,
listenToTapEvent:!0})}}))),_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.F(_.c4,{data:function(){return v().feedAdMetadata}},{feedAdMetadataViewModel:function(f){return _.F(j1,{data:f.data,
listenToTapEvent:!0,setTouchEndHandler:_.g("enable_top_landscape_image_experiment_dom_id_web")})}})))},"bc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;D=_.Mb({visibilityCallback:function(f,C){if(f){var U;(f=(U=v().interaction)==null?void 0:U.onFirstVisible)&&_.r4(f);var L;if(U=(L=v().adLayoutData)==null?void 0:L.activeViewData)MO(C,U),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&fS(C)})}else _.g("stop_av_measurement_on_detach")&&fS(C)},
showOption:_.Nk,hideOption:Yu});var h=_.Th(_.K_),a=_.Tf(function(){return v().interaction}),Q={},G={},x={};
return _.F("square-image-layout-view-model",{class:_.S3("ytwSquareImageLayoutViewModelHost",(Q.ytwSquareImageLayoutViewModelHostColumn=h,Q)),el:_.ML(D,ltu,a)},_.F("div",{class:_.S3("ytwSquareImageLayoutViewModelHostImage",(G.ytwSquareImageLayoutViewModelHostColumnImage=h,G))},function(){return _.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(f){return _.F(_.el,{data:f.data,
isGridViewEnabled:h,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.F("div",{class:_.S3("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(x.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=h,x))},_.F(_.c4,{data:function(){return v().feedAdMetadata}},{feedAdMetadataViewModel:j1}),function(){return _.F(_.c4,{data:function(){return v().adButton}},{adButtonViewModel:function(f){var C={};
return _.F(_.B$,{data:f.data,className:_.S3((C.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=h,C))})}})}()))},"cc"),"square-image-layout-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=D.noBottomMargin;var a=D.typographyBump;D=_.Mb({visibilityCallback:function(Z,E){if(Z){var I;(Z=(I=v().interaction)==null?void 0:I.onFirstVisible)&&_.r4(Z);var S;if(I=(S=v().adLayoutData)==null?void 0:S.activeViewData)MO(E,I),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&fS(E)})}else _.g("stop_av_measurement_on_detach")&&fS(E)},
showOption:_.Nk,hideOption:Yu});var Q=_.Tf(function(){return v().interaction},void 0,function(){return _.g("enable_web_home_top_landscape_image_layout_level_click")}),G=function(){return v().interaction};
G!==void 0&&G!==null||_.Wv(Error("Sh"));var x=function(){var Z,E,I;return(Z=_.k(v().thumbnailImage,YPM))==null?void 0:(E=Z.background)==null?void 0:(I=E.backgroundImageSource)==null?void 0:I.imageSources};
G=_.P(_.Zq(!1,void 0,"NFjwje"));var f=G.next().value,C=G.next().value;G=_.Jd(function(){C(!0)});
var U=_.Jd(function(){C(!1)}),L=function(){return f()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.F("top-landscape-image-layout-view-model",{class:function(){var Z;return((Z=v().interaction)==null?0:Z.onTap)&&_.g("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.ML(D,NF2,Q),"on:mouseenter":G,"on:mouseleave":U},_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.F(_.z,{cond:function(){return x()&&x().length>0},
then:function(){return _.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.NL({top:"0","background-image":function(){return"url("+String(x()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.F(_.z,{cond:function(){return!!v().adButtonHoverOverlay},
then:function(){return _.F("div",{class:L},_.F(_.c4,{data:function(){return v().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:d$R}))}}),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.F(_.c4,{data:function(){return v().thumbnailImage}},{adImageViewModel:function(Z){return _.F(_.el,{data:Z.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.g("enable_web_home_top_landscape_image_layout_level_click")})}})),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.F(_.PX,{data:{sources:[{clientResource:{imageName:_.g("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.F(_.c4,{data:function(){return v().feedAdMetadata}},{feedAdMetadataViewModel:function(Z){return _.F(j1,{data:Z.data,
noBottomMargin:function(){return h==null?void 0:h()},
listenToTapEvent:function(){return _.g("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return a==null?void 0:a()}})}})))},"dc"),"top-landscape-image-layout-view-model",{props:{data:_.gj,
noBottomMargin:_.gj,typographyBump:_.gj}});var jVJ=_.H(function(D){var v=D.data,h=_.Mb({visibilityCallback:function(Q){var G,x=(G=v().interaction)==null?void 0:G.onFirstVisible;Q&&x&&_.r4(x)},
showOption:_.Nk});D=_.Tf(function(){return v().interaction},D.customCommandResolver);
var a={};return _.F("ad-text-image-view-model",{class:_.S3("ytwAdTextImageViewModelHost",(a.ytwAdTextImageViewModelHostDarkBackground=function(){return v().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},a)),
el:_.ML(h,D),"aria-label":function(){var Q,G;return(Q=v().interaction)==null?void 0:(G=Q.accessibility)==null?void 0:G.label}},_.F("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.F(_.IY,{text:function(){return v().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.F(_.z,{cond:function(){return v().overlayIcon},
then:function(Q){return _.F("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.F(_.PX,{data:Q,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"ec");var sVm=_.H(function(D){var v=D.data;return _.F("feed-ad-sitelink-view-model",{class:function(){var h;return((h=v().interaction)==null?0:h.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.ML(_.Tf(function(){return v().interaction},D.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var h,a;return(h=v().interaction)==null?void 0:(a=h.accessibility)==null?void 0:a.label},
role:"link",tabindex:0},_.F(_.IY,{text:function(){return v().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"fc");var m$R=_.H(function(D){var v=D.data;D={};return _.F("feed-ad-sitelinks-carousel-view-model",{el:_.ML(_.Mb({visibilityCallback:function(h){var a,Q=(a=v().interaction)==null?void 0:a.onFirstVisible;h&&Q&&_.r4(Q)},
showOption:_.Nk})),class:_.S3("ytwFeedAdSitelinksCarouselViewModelHost",(D.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return v().style==="FEED_AD_SITELINKS_STYLE_NONE"},D))},_.F(_.c4,{data:function(){return v().sitelinks}},{feedAdSitelinkViewModel:sVm}))},"gc");_.zh(_.H(function(D){var v=D.data;D=_.Mb({visibilityCallback:function(x,f){if(x){var C;(x=(C=v().interaction)==null?void 0:C.onFirstVisible)&&_.r4(x);var U;(C=(U=v().adLayoutData)==null?void 0:U.activeViewData)&&MO(f,C)}},
showOption:_.Nk});var h=_.P(_.Zq(!1,void 0,"BzPhl")),a=h.next().value,Q=h.next().value;h=_.Jd(function(){Q(!0)});
var G=_.Jd(function(){Q(!1)});
return _.F("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.ML(D),"on:mouseenter":h,"on:mouseleave":G},_.F("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.F("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.F(_.c4,{data:function(){return v().textImage}},{adTextImageViewModel:jVJ})),_.F("div",{class:function(){return a()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.F(_.c4,{data:function(){return v().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(x){return _.F(d$R,{data:x.data,
listenToTapEvent:!0})}}))),_.F("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.F(_.c4,{data:function(){return v().feedAdMetadata}},{feedAdMetadataViewModel:function(x){return _.F(j1,{data:x.data,
listenToTapEvent:!0})}}),_.F(_.c4,{data:function(){return v().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:m$R})))},"hc"),"text-image-no-button-layout-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=D.typographyBump;return _.F("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.ML(_.Mb({visibilityCallback:function(a,Q){if(a){var G;(a=(G=v().interaction)==null?void 0:G.onFirstVisible)&&_.r4(a);var x;(G=(x=v().adLayoutData)==null?void 0:x.activeViewData)&&MO(Q,G)}},
showOption:_.Nk,hideOption:Yu}))},_.F("div",null,_.F(_.c4,{data:function(){return v().videoLockup}},{lockupViewModel:function(a){return _.F(_.sp,{data:a.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:h})}})))},"ic"),"video-display-button-group-layout-view-model",{props:{data:_.gj,
noBottomMargin:_.gj,typographyBump:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=D.className;var a=D.typographyBump;return _.F("video-display-compact-button-group-layout-view-model",{el:_.ML(_.Mb({visibilityCallback:function(Q,G){if(Q){var x;(Q=(x=v().interaction)==null?void 0:x.onFirstVisible)&&_.r4(Q);var f;(x=(f=v().adLayoutData)==null?void 0:f.activeViewData)&&MO(G,x)}},
showOption:_.Nk})),class:_.S3("videoDisplayCompactButtonGroupLayoutViewModelHost",h)},_.F(_.c4,{data:function(){return v().videoLockup}},{lockupViewModel:function(Q){return _.F(_.sp,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:a})}}))},"jc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.gj,
className:_.gj,typographyBump:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=D.className;var a=D.typographyBump;return _.F("video-display-compact-buttoned-layout-view-model",{el:_.ML(_.Mb({visibilityCallback:function(Q,G){if(Q){var x;(Q=(x=v().interaction)==null?void 0:x.onFirstVisible)&&_.r4(Q);var f;(x=(f=v().adLayoutData)==null?void 0:f.activeViewData)&&MO(G,x)}},
showOption:_.Nk})),class:_.S3("videoDisplayCompactButtonedLayoutViewModelHost",h)},_.F(_.c4,{data:function(){return v().videoLockup}},{lockupViewModel:function(Q){return _.F(_.sp,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:a})}}))},"kc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.gj,
className:_.gj,typographyBump:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=D.className;var a=D.typographyBump;var Q=function(){return v().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},G=_.Th(_.K_);
D=_.Mb({visibilityCallback:function(U,L){if(U){var Z=v();U=Z.adLayoutData;var E;(Z=(E=Z.interaction)==null?void 0:E.onFirstVisible)&&_.r4(Z);(E=U==null?void 0:U.activeViewData)&&MO(L,E)}},
showOption:_.Nk});var x=_.SM(function(){return{containerType:Q()&&G()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),f=_.SM(function(){return Q()&&G()?"":Q()?"168px":"50%"},void 0,"qNDzkb"),C=_.SM(function(){return Q()&&G()?9999:void 0},void 0,"Ikn8Kb");
return _.F("video-display-compact-layout-view-model",{el:_.ML(D),class:_.S3("videoDisplayCompactLayoutViewModelHost",h)},_.F(_.c4,{data:function(){return v().videoLockup}},{lockupViewModel:function(U){return _.F(_.sp,{data:U.data,
containerLayoutConfig:x,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:f,thumbnailTargetWidth:C,typographyBump:a})}}))},"lc"),"video-display-compact-layout-view-model",{props:{data:_.gj,
className:_.gj,typographyBump:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=D.typographyBump;return _.F("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.ML(_.Mb({visibilityCallback:function(a,Q){if(a){var G;(a=(G=v().interaction)==null?void 0:G.onFirstVisible)&&_.r4(a);var x;(G=(x=v().adLayoutData)==null?void 0:x.activeViewData)&&MO(Q,G)}},
showOption:_.Nk,hideOption:Yu}))},_.F("div",null,_.F(_.c4,{data:function(){return v().videoLockup}},{lockupViewModel:function(a){return _.F(_.sp,{data:a.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:h})}})))},"mc"),"video-display-full-layout-view-model",{props:{data:_.gj,
noBottomMargin:_.gj,typographyBump:_.gj}});_.HoR=_.H(function(D){var v=D.data;D=_.va("ad-card-badge-view-model");return _.F("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:D},_.F(_.z,{cond:function(){return v().imageBadge},
then:function(h){return _.F(_.PX,{data:h,alt:""})}}))},"nc");var yIJ=_.H(function(D){var v=D.data;var h=D.customCommandResolver;return _.F("carousel-ad-card-image-view-model",{class:function(){var a;return((a=v().interaction)==null?0:a.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},h)),
"aria-label":function(){var a,Q;return(a=v().interaction)==null?void 0:(Q=a.accessibility)==null?void 0:Q.label}},_.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(a){return _.F(_.el,{data:a.data,
customCommandResolver:h})}}),_.F("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.F(_.c4,{data:function(){return v().badge}},{adCardBadgeViewModel:_.HoR})),_.F(_.qv,{model:{color:4}}))},"oc");var wYm=_.H(function(D){var v=_.P(_.Zq(0,void 0,"JJ0QQc")),h=v.next().value;v.next();var a=v.next().value,Q=_.P(_.Zq(!1,void 0,"f6YICe"));v=Q.next().value;var G=Q.next().value,x;_.dq(function(){clearTimeout(x)});
Q=_.Jd(function(){var U;((U=D.animate)==null?0:U.call(D))?(G(!0),x=setTimeout(function(){G(!1);f()},200)):f();
return!1});
var f=function(){a(function(U){return(U+D.numShownItems())%D.data().length})},C={};
return _.F("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.F("div",{class:_.S3("ytwHorizontalCarouselCarouselWrapper")},_.F("div",{class:_.S3("ytwHorizontalCarouselCarouselInnerWrapper",(C.ytwHorizontalCarouselAnimating=v,C))},_.F(_.Xd,{each:D.data,keyBy:"INDEX"},function(U,L){return _.F("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.NL({"flex-basis":function(){return"calc((100% - (8px * "+(D.numShownItems()-1)+")) / "+D.numShownItems()+")"},
order:function(){var Z=L-h();Z<0&&(Z+=D.data().length);return Z}})},D.children(U,L))}))),_.F("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Q},D.nextButton()))},"pc");var e4F=_.H(function(D){var v=D.data;var h=D.customCommandResolver;var a=D.expansive;return _.F("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.ML(_.Mb({visibilityCallback:function(Q){var G,x=(G=v().interaction)==null?void 0:G.onFirstVisible;Q&&x&&_.r4(x)},
showOption:_.Nk}))},_.F(wYm,{data:function(){var Q;return((Q=v())==null?void 0:Q.carouselAdCards)||[]},
nextButton:function(){return _.F(_.c4,{data:function(){return v().nextButton}},{buttonViewModel:function(Q){var G=Q.data;
return _.F(_.s$,{data:function(){return(a==null?0:a())?Object.assign({},G(),{style:"mono"}):G()},
className:_.g("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Q){return _.F(_.c4,{data:Q},{carouselAdCardImageViewModel:function(G){return _.F(yIJ,{data:G.data,customCommandResolver:h})}})}))},"qc");var nwJ=_.H(function(D){var v=D.data;var h=D.customCommandResolver;var a=D.className;var Q=D.buttonClassName;var G=D.animationEntityKey;var x=D.expansive;return _.F("carousel-button-view-model",{class:_.S3("ytwCarouselButtonViewModelHost",a)},_.F(_.c4,{data:function(){return v().carousel}},{carouselAdCardCollectionViewModel:function(f){return _.F(e4F,{data:f.data,
customCommandResolver:h,expansive:x})}}),_.F(_.c4,{data:function(){return v().button}},{adButtonViewModel:function(f){var C=f.data;
return _.F(_.B$,{data:function(){return(x==null?0:x())?Object.assign({},C(),{style:"AD_BUTTON_STYLE_TONAL"}):C()},
className:Q,customCommandResolver:h,animationEntityKey:G})}}))},"rc");_.Oo4=_.H(function(D){var v=D.data;D=D.className;var h=_.va("pivot-button-view-model");_.jA(function(){var a;((a=v())==null?0:a.backgroundColor)&&h.value.setAttribute("data-background-color",String(v().backgroundColor))});
return _.F("pivot-button-view-model",{el:h,class:_.S3("ytwPivotButtonViewModelHost",D)},_.F(_.Ak,{command:function(){var a=v();a=a.onClickCommand?_.Rq(a.onClickCommand):a.contentDescription?_.fq(a.contentDescription):void 0;return a},
ariaLabel:function(){return v().contentDescription}},_.F(_.z,{cond:function(){return v().thumbnail},
then:function(a){return _.F(_.PX,{data:a,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.F(_.z,{cond:function(){return v().icon},
then:function(a){return _.F(_.Y5,{icon:function(){return a().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"sc");_.Kxt=_.H(function(D){var v=D.data;var h=D.buttonShapeOverrideables;return _.F("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.F(_.c4,{data:function(){return v().buttonViewModels}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
buttonOverrides:h})},
likeButtonViewModel:function(a){return _.F(_.x3,{data:a.data,buttonShapeOverrideables:h})},
dislikeButtonViewModel:function(a){return _.F(_.PM,{data:a.data,buttonShapeOverrideables:h})},
toggleButtonViewModel:function(a){return _.F(_.$$,{data:a.data,buttonShapeOverrides:h})}}))},"tc");var TQM=_.H(function(D){var v=D.avatar;var h=D.headline;var a=D.badge;var Q=D.description;var G=D.expansive;D={};return _.F("yt-ad-metadata-shape",{class:_.S3("ytAdMetadataShapeHost",(D.ytAdMetadataShapeHostLarge=G,D))},_.F("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.F(_.z,{cond:v,then:function(x){return _.F(_.mRJ,{data:function(){return(G==null?0:G())?Object.assign({},x(),{size:"AD_AVATAR_SIZE_M"}):x()}})}}),_.F("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.F(_.IY,{text:h,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.F(_.z,{cond:a,then:function(x){return _.F(_.bF,{data:function(){return(G==null?0:G())?Object.assign({},x(),{style:"AD_BADGE_STYLE_STARK"}):x()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.F("h2",{class:"ytAdMetadataShapeHostDescription"},_.F(_.IY,{text:Q,
linkInheritColor:!0,isHeadline:function(){return G==null?void 0:G()}})))},"uc");var R41=_.H(function(D){var v=D.data;var h=D.onShow;var a=D.expansive;D=_.Tf(function(){return v().interaction});
_.jA(function(){var G,x=(G=v().animatedRenderingConfig)==null?void 0:G.delayedSecondsToVisible;if(x){var f=setTimeout(h,x*1E3);_.dq(function(){clearTimeout(f)})}});
var Q={};return _.F("reels-ad-card-buttoned-view-model",{class:_.S3(function(){var G;return((G=v().interaction)==null?0:G.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Q.ytwReelsAdCardButtonedViewModelHostExpansive=a,Q)),
el:_.ML(D)},_.F(TQM,{avatar:function(){return _.k(v().avatar,pZF)},
headline:function(){return v().headline},
badge:function(){return _.k(v().adBadge,lBJ)},
description:function(){return v().description},
expansive:a}),_.F(_.c4,{data:function(){return v().ctaButton}},{adButtonViewModel:function(G){var x=G.data;
return _.F(_.B$,{data:function(){return(a==null?0:a())?Object.assign({},x(),{style:"AD_BUTTON_STYLE_FILLED"}):x()}})}}))},"vc");var ioM=_.H(function(D){var v=D.data;D=D.expansive;var h=_.g("web_ad_metadata_clickable")?_.Tf(function(){return v().interaction},void 0,function(){return _.g("web_ad_metadata_clickable")}):void 0,a={};
a=_.sn("ytwReelsAdMetadataViewModelHost",(a.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.g("web_ad_metadata_clickable"),a));return _.F("reels-ad-metadata-view-model",{class:a,el:_.ML(h)},_.F(TQM,{avatar:function(){return _.k(v().avatar,pZF)},
headline:function(){return v().headline},
badge:function(){return _.k(v().adBadge,lBJ)},
description:function(){return v().description},
expansive:D}))},"wc");var Wx9={iconPosition:"icon-with-label",size:"L"},tYb=_.H(function(D){var v=D.data;var h=D.overlayDensity;var a=D.extractOverlay;var Q=D.extractActionBar;D=_.va("reels-player-overlay-layout-view-model");var G=_.MK(h,0),x=function(){var I;return(I=v().reelsAdCardButtonedEntityKey)!=null?I:""},f=function(){return x()+"/ad_button"},C=_.l7(Egu,x),U=function(){var I,S;
return(S=(I=C())==null?void 0:I.value)!=null?S:!1},L=_.Th(Yv7),Z=function(){var I;
return Object.assign({},Wx9,(L()||!((I=Q==null?void 0:Q())!=null&&I))&&{style:"overlay-dark"})};
h={};var E={};return _.F("reels-player-overlay-layout-view-model",{class:_.S3("ytwReelsPlayerOverlayLayoutViewModelHost",(h.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!v().extension},h.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},h.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return G()===1&&!(a==null?0:a())},h.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var I;
return(I=a==null?void 0:a())!=null?I:!1},h.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var I;
return(I=Q==null?void 0:Q())!=null?I:!1},h)),
"overlay-density":function(){return String(G())},
el:D},_.F("div",{class:_.S3("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(E.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},E))},_.F("div",{"aria-hidden":function(){return U()},
class:_.S3("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return U()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.NL({"transition-duration":function(){return Aic(v())}})},_.F(_.c4,{data:function(){return v().adMetadata}},{reelsAdMetadataViewModel:function(I){return _.F(ioM,{data:I.data,
expansive:function(){return G()===1}})}}),_.F(_.z,{cond:function(){return v().extension},
then:function(I){return _.F("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.F(_.c4,{data:I},{adButtonViewModel:function(S){return _.F(_.B$,{data:S.data,animationEntityKey:f,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(S){return _.F(nwJ,{data:S.data,animationEntityKey:f,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return G()===1}})}}))}})),_.F("div",{"aria-hidden":function(){return!U()},
class:_.S3("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return U()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.NL({"transition-duration":function(){return Aic(v())}})},_.F(_.c4,{data:function(){return v().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(I){return _.F(R41,{data:I.data,
onShow:function(){_.xt(_.Xe("booleanEntity",x(),{key:x(),value:!0}))},
expansive:function(){return G()===1}})}}))),_.F("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.F(_.c4,{data:function(){return v().actions}},{reelActionBarViewModel:function(I){return _.F(_.Kxt,{data:I.data,
buttonShapeOverrideables:Z})}}),_.F(_.c4,{data:function(){return v().menu}},{buttonViewModel:function(I){return _.F(_.s$,{data:I.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},Z(),{type:"tonal"})}})}}),_.F(_.c4,{data:function(){return v().pivotButton}},{pivotButtonViewModel:function(I){return _.F(_.Oo4,{data:I.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"xc");_.zh(tYb,"reels-player-overlay-layout-view-model",{props:{data:_.gj,overlayDensity:_.gj,extractOverlay:_.gj,extractActionBar:_.gj}});var nU=function(){var D=_.c.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;return D};
_.J(nU,_.c);_.V=nU.prototype;
_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.g("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.V.ready=function(){var D=this;R0r(function(){D.isAttached&&$2(D.JSC$15551_storedAdSlotMetadata,D.JSC$15551_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&w6(Hj(),D.JSC$15551_storedAdSlotMetadata,D.JSC$15551_storedAdLayoutMetadata)})};
_.V.attached=function(){$2(this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&bo9(Hj(),this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata)};
_.V.detached=function(){$2(this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&w6(Hj(),this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata)};
_.V.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15551_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15551_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15551_storedAdLayoutMetadata!==void 0&&this.JSC$15551_storedAdSlotMetadata!==void 0&&w6(Hj(),this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata),bo9(Hj(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15551_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15551_storedAdSlotMetadata=this.adSlotMetadata)};
_.GT.Object.defineProperties(nU.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
nU.prototype.onAdMetadataChanged=nU.prototype.onAdMetadataChanged;nU.prototype.onTypographyBumpChanged=nU.prototype.onTypographyBumpChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nU.prototype,"rendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],nU.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],nU.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],nU.prototype,"noBottomMargin",void 0);_.e([_.Y(),_.n("design:type",Object)],nU.prototype,"overlayDensity",void 0);_.e([_.Y(),_.n("design:type",Object)],nU.prototype,"extractOverlay",void 0);_.e([_.Y(),_.n("design:type",Object)],nU.prototype,"extractActionBar",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],nU.prototype,"typographyBump",void 0);
_.e([_.N("data.adLayoutMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],nU.prototype,"adLayoutMetadata",null);_.e([_.Y(),_.n("design:type",Object)],nU.prototype,"adSlotMetadata",void 0);_.e([_.Br("ytd-video-display-full-buttoned-and-button-group-renderer"),_.n("design:type",HTMLElement)],nU.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.e([_.Ni("typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nU.prototype,"onTypographyBumpChanged",null);_.e([_.Ni("adLayoutMetadata","adSlotMetadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nU.prototype,"onAdMetadataChanged",null);_.e([_.m({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],nU);
_.w(nU,"ytd-in-feed-ad-layout-renderer",function(){if(sLy!==void 0)return sLy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return sLy=D},
{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var rIJ;var usR;_.zh(_.bF,"ad-badge-view-model",{props:{data:_.gj,hasDot:_.gj,customCommandResolver:_.C_,adRenderingContextType:_.C_,usedInMasthead:_.C_}});_.zh(_.B$,"ad-button-view-model",{props:{data:_.gj,customCommandResolver:_.C_,className:_.C_,delayedClassName:_.C_,animationEntityKey:_.C_,isCompactWidth:_.C_,isContentWidth:_.C_}});var OC=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return D};
_.J(OC,_.c);_.V=OC.prototype;_.V.computeHasLiveDescription=function(D){return!(D==null||!D.liveDescription)};
_.V.computeHasByline=function(D){return!(D==null||!D.byline)};
_.V.computeUsesAdButtonViewModel=function(D){return!!_.k(D==null?void 0:D.cta,N94)};
_.V.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.V.onYtToggleButton=function(D){var v,h=(v=this.data)==null?void 0:v.videoReminderEntityKey;h&&this.ytdReduxBehavior.dispatch(_.Xe("upcomingEventReminderStateEntity",h,{key:h,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.V.attached=function(){this.updateChannelBanner()};
_.V.dataChanged=function(){this.updateChannelBanner()};
_.V.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.k((D=this.data)==null?void 0:D.cta,_.Pi)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.V.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var D=_.UA(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);D&&(D.startsWith("//")&&(D="https:"+D),this.hostElement.classList.add("channel-banner"),_.SB(this.hostElement,{"--ytvmh-channel-banner":"url("+D+")"}))}else _.g("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.V.onPlayerReady=function(){this.onIronResize()};
_.V.maybeFlushDebouncer=function(){_.g("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(D){var v;D=(v=D.getElementsByTagName("yt-attributed-string"))==null?void 0:v[0];F0i(D==null?void 0:D.polymerController)})};
_.V.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var D=_.ZW(this.hostElement).querySelector("#live-description"),v;D&&((v=this.data)==null?0:v.shortLiveDescription)&&D.clientWidth<D.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
OC.prototype.onIronResize=OC.prototype.onIronResize;OC.prototype.videoReminderStateChanged=OC.prototype.videoReminderStateChanged;OC.prototype.dataChanged=OC.prototype.dataChanged;OC.prototype.onYtToggleButton=OC.prototype.onYtToggleButton;_.e([_.l(_.iN),_.n("design:type",Object)],OC.prototype,"ironResizableBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],OC.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],OC.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],OC.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.videoReminderEntityKey"],selector:gK7}),_.n("design:type",Object)],OC.prototype,"videoReminderState",void 0);
_.e([_.Y({reflectToAttribute:!0,value:_.g("web_modern_buttons")}),_.n("design:type",Boolean)],OC.prototype,"rounded",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.n("design:type",Boolean)],OC.prototype,"hasLiveDescription",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.n("design:type",Boolean)],OC.prototype,"hasByline",void 0);
_.e([_.Y({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.n("design:type",String)],OC.prototype,"adRenderingContextType",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],OC.prototype,"isMasthead",void 0);_.e([_.Y({computed:"computeUsesAdButtonViewModel(data)"}),_.n("design:type",Boolean)],OC.prototype,"usesAdButtonViewModel",void 0);
_.e([_.Y({reflectToAttribute:!0,value:_.g("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.n("design:type",Boolean)],OC.prototype,"resizableAdBannerSafariFix",void 0);_.e([_.cr("yt-formatted-string"),_.n("design:type",Array)],OC.prototype,"formattedStrings",void 0);_.e([_.Br("#cta-button"),_.n("design:type",HTMLElement)],OC.prototype,"ctaButton",void 0);
_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],OC.prototype,"onYtToggleButton",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OC.prototype,"dataChanged",null);_.e([_.Ni("videoReminderState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OC.prototype,"videoReminderStateChanged",null);
_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OC.prototype,"onIronResize",null);_.e([_.m({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],OC);
_.w(OC,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(usR!==void 0)return usR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return usR=D},{mode:1});var DGR;var KU=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.isLocked=!1;return D};
_.J(KU,_.c);_.V=KU.prototype;_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded&&_.U9(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(D){D!==this&&(this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(D){this.isLocked=!0;D!==this&&(this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
KU.prototype.onTap=KU.prototype.onTap;KU.prototype.onMouseOver=KU.prototype.onMouseOver;KU.prototype.onExpandedChanged=KU.prototype.onExpandedChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],KU.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KU.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],KU.prototype,"expanded",void 0);_.e([_.qi("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],KU.prototype,"onExpandedChanged",null);_.e([_.lc("mouseover"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],KU.prototype,"onMouseOver",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],KU.prototype,"onTap",null);
_.e([_.m({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],KU);
_.w(KU,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(DGR!==void 0)return DGR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DGR=D},{mode:1});var v6R;var TI=function(){var D=_.c.apply(this,arguments)||this;D.buttonOverrides={style:"overlay"};D.useYtdPlayer=_.g("use_ytd_player_for_desktop_masthead");D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.playbackFinished=!1;D.JSC$15565_playerManager=null;D.JSC$15565_mastheadCounter=new zr9;return D};
_.J(TI,_.c);_.V=TI.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$15565_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15565_playerManager=new Dz)};
_.V.ready=function(){var D=this;this.JSC$15565_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var v=_.ZW(this.hostElement).querySelector("#player");this.useYtdPlayer?v.style.display="none":(this.ytdPlayer.style.display="none",u$J(this.JSC$15565_playerManager,v,function(){D.onPlaybackEnded()}),_.ZW(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var h;
((h=D.data)==null?0:h.navigationEndpoint)&&_.F1(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})}))};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15565_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.V.attached=function(){var D=this;_.hD(function(){D.maybePlayVideo()})};
_.V.maybePlayVideo=function(){var D=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15565_playerManager.playVideo(),this.getPlayerPromise().then(function(){D.JSC$15565_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.V.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15565_playerManager.stopVideo()};
_.V.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var D,v={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((D=this.data.playbackStartMs)!=null?D:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(v);this.setupYtdPlayer()}else vQ4(this.JSC$15565_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(D5t(this.JSC$15565_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.V.getPlayerPromise=function(){return this.JSC$15565_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15565_playerManager.mute():this.JSC$15565_playerManager.unMute()};
_.V.onYtNavigate=function(D){var v=V12(D.detail.endpoint),h=PFf(this.data.clickthroughReportingData);v&&h&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=h:_.Vp(v,h,30))};
_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded?(_.U9(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(D){D!==this&&(this.stopVideo(),this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(D){D!==this&&(this.isLocked=!0,this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
_.V.lockAndCollapseExpandableTiles=function(){_.zU(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.V.unlockExpandableTiles=function(){_.zU(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.V.setupYtdPlayer=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D.ytdPlayer.getPlayerPromise(),2);v=h.yieldResult;v.addEventListener("onStateChange",function(a){D.onPlayerStateChange(a)});
v.addEventListener("onCueRangeExit",function(a){D.onCueRangeExit(a)});
_.YI(h)})};
_.V.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var v=D.getCurrentTime(),h,a,Q=v+((a=(h=this.data)==null?void 0:h.playbackDurationMs)!=null?a:0)/1E3;D.addCueRange("playback",v,Q);this.JSC$15565_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.V.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.ytdPlayer.getPlayerPromise(),2);h=a.yieldResult;D?h.mute():h.unMute();_.YI(a)})};
TI.prototype.onTap=TI.prototype.onTap;TI.prototype.onMouseOver=TI.prototype.onMouseOver;TI.prototype.onExpandedChanged=TI.prototype.onExpandedChanged;TI.prototype.onYtNavigate=TI.prototype.onYtNavigate;TI.prototype.onYtToggleButton=TI.prototype.onYtToggleButton;TI.prototype.dataChanged=TI.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],TI.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],TI.prototype,"expanded",void 0);_.e([_.Y(),_.n("design:type",Object)],TI.prototype,"buttonOverrides",void 0);
_.e([_.Y(),_.n("design:type",Object)],TI.prototype,"useYtdPlayer",void 0);_.e([_.Br("#ytd-player"),_.n("design:type",Object)],TI.prototype,"ytdPlayer",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TI.prototype,"dataChanged",null);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],TI.prototype,"onYtToggleButton",null);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],TI.prototype,"onYtNavigate",null);_.e([_.qi("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TI.prototype,"onExpandedChanged",null);_.e([_.lc("mouseover"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TI.prototype,"onMouseOver",null);
_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TI.prototype,"onTap",null);_.e([_.m({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],TI);
_.w(TI,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(v6R!==void 0)return v6R;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return v6R=D},{mode:1});var hQs;var R6=function(){return _.c.apply(this,arguments)||this};
_.J(R6,_.c);R6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
R6.prototype.onShow=function(){var D=_.ZW(this.hostElement).querySelector("#live-description"),v;D&&((v=this.data)==null?0:v.shortLiveDescription)&&D.clientWidth<D.scrollWidth&&this.hostElement.classList.add("short-live-description")};
R6.prototype.onYtToggleButton=function(D){var v,h=(v=this.data)==null?void 0:v.videoReminderEntityKey;h&&this.ytdReduxBehavior.dispatch(_.Xe("upcomingEventReminderStateEntity",h,{key:h,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
R6.prototype.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.k((D=this.data)==null?void 0:D.cta,_.Pi)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
R6.prototype.videoReminderStateChanged=R6.prototype.videoReminderStateChanged;R6.prototype.onYtToggleButton=R6.prototype.onYtToggleButton;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],R6.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],R6.prototype,"data",void 0);
_.e([_.Y({selectorArgs:["data.videoReminderEntityKey"],selector:gK7}),_.n("design:type",Object)],R6.prototype,"videoReminderState",void 0);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],R6.prototype,"onYtToggleButton",null);_.e([_.Ni("videoReminderState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R6.prototype,"videoReminderStateChanged",null);
_.e([_.m({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],R6);
_.w(R6,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(hQs!==void 0)return hQs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return hQs=D},{mode:_.E_("kevlar_poly_si_batch_j065")?1:2});var amJ;var iv=function(){var D=_.c.apply(this,arguments)||this;D.useYtdPlayer=_.g("use_ytd_player_for_desktop_masthead");D.buttonOverrides={style:"overlay"};D.JSC$15573_playerManager=null;D.JSC$15573_mastheadCounter=new zr9;D.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return D};
_.J(iv,_.c);_.V=iv.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$15573_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15573_playerManager=new Dz)};
_.V.ready=function(){var D=this;this.JSC$15573_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var v;(v=this.embeddedPlayer)==null||v.remove()}else{var h;(h=this.ytdPlayer)==null||h.remove();u$J(this.JSC$15573_playerManager,this.embeddedPlayer,function(){D.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){D.data&&D.data.navigationEndpoint&&_.F1(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})})}};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15573_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.V.dataChanged=function(){var D=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var v=!this.data.disableAutoPlayback,h,a={autoplay:v,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((h=this.data.playbackStartMs)!=null?h:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(v?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(a);this.setupYtdPlayer()}else vQ4(this.JSC$15573_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(D5t(this.JSC$15573_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15573_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.zU(D.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");D.JSC$15573_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.V.getPlayerPromise=function(){return this.JSC$15573_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15573_playerManager.mute():this.JSC$15573_playerManager.unMute()};
_.V.onYtNavigate=function(D){var v=V12(D.detail.endpoint),h=PFf(this.data.clickthroughReportingData);v&&h&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=h:_.Vp(v,h,30))};
_.V.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15573_playerManager.stopVideo()};
_.V.setupYtdPlayer=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D.ytdPlayer.getPlayerPromise(),2);v=h.yieldResult;v.addEventListener("onStateChange",function(a){D.onPlayerStateChange(a)});
v.addEventListener("onCueRangeExit",function(a){D.onCueRangeExit(a)});
_.YI(h)})};
_.V.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var v=D.getCurrentTime(),h,a,Q=v+((a=(h=this.data)==null?void 0:h.playbackDurationMs)!=null?a:0)/1E3;D.addCueRange("playback",v,Q);_.zU(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15573_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.V.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.ytdPlayer.getPlayerPromise(),2);h=a.yieldResult;D?h.mute():h.unMute();_.YI(a)})};
_.GT.Object.defineProperties(iv.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D,v;if(!((D=this.data)==null?0:(v=D.accessibilityData)==null?0:v.label))return"Ad primary link";var h,a;return _.p1("AD_TITLE",{title:(h=this.data)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label})}}});
iv.prototype.onYtMastheadHidden=iv.prototype.onYtMastheadHidden;iv.prototype.onYtNavigate=iv.prototype.onYtNavigate;iv.prototype.onYtToggleButton=iv.prototype.onYtToggleButton;iv.prototype.dataChanged=iv.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],iv.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iv.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],iv.prototype,"useYtdPlayer",void 0);_.e([_.Br("ytd-toggle-button-renderer"),_.n("design:type",Object)],iv.prototype,"muteButton",void 0);_.e([_.Y(),_.n("design:type",Object)],iv.prototype,"buttonOverrides",void 0);
_.e([_.N("data.accessibilityData.label"),_.n("design:type",String),_.n("design:paramtypes",[])],iv.prototype,"titleAriaLabel",null);_.e([_.Br("#replay-button"),_.n("design:type",Object)],iv.prototype,"replayButton",void 0);_.e([_.Br("#player-container"),_.n("design:type",Object)],iv.prototype,"playerContainer",void 0);_.e([_.Br("#player"),_.n("design:type",Object)],iv.prototype,"embeddedPlayer",void 0);_.e([_.Br("#ytd-player"),_.n("design:type",Object)],iv.prototype,"ytdPlayer",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iv.prototype,"dataChanged",null);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],iv.prototype,"onYtToggleButton",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],iv.prototype,"onYtNavigate",null);
_.e([_.lc("yt-masthead-hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iv.prototype,"onYtMastheadHidden",null);_.e([_.m({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],iv);
_.w(iv,"ytd-video-masthead-ad-primary-video-renderer",function(){if(amJ!==void 0)return amJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return amJ=D},{mode:2});var $GJ;var Wj=function(){var D=_.c.apply(this,arguments)||this;D.collapsed=!1;D.impressionResolver=_.hn();D.JSC$15577_activeViewMeasurementDataResolver=_.hn();D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.J(Wj,_.c);_.V=Wj.prototype;_.V.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"}}}};
_.V.ready=function(){var D=this;_.ZW(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){D.expandAd()});
this.hostElement.addEventListener("yt-action",function(v){if(v.detail.actionName==="yt-service-request"){var h=v.detail.args[1];h.videoMastheadAdMuteCommand&&(D.collapseAd(h.videoMastheadAdMuteCommand.encryptedMastheadId),v.stopPropagation())}})};
_.V.attached=function(){var D=this;_.hD(function(){D.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(v){if(!D.collapsed){v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,t2(h.baseUrl,h.attributionSrcMode);D.data.impressionCommand=void 0}});
this.JSC$15577_activeViewMeasurementDataResolver.promise.then(function(v){D.ytdActiveViewBehavior.enableActiveViewMeasurement(v,15)});
_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.dataChanged=function(){var D;((D=this.data.impressionCommand)==null?0:D.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var v;((v=this.data)==null?0:v.activeView)&&this.JSC$15577_activeViewMeasurementDataResolver.resolve(this.data.activeView);(D=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(D.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.V.computeWidescreen=function(D){var v;return!!(D&&((v=_.k(D,IB1))==null?0:v.isWidescreen))};
_.V.computeExpandable=function(D){return!!(D&&D.length>0)};
_.V.onIronResize=function(){if(this.expandable){var D=_.ZW(this.hostElement).querySelector("#expandable-tile-container :first-child");D&&!D.expanded&&(D.expanded=!0)}};
_.V.handleMuteAd=function(){this.collapseAd(null)};
_.V.restoreCollapsedState=function(D){this.collapsed=_.YE().get("HIDDEN_MASTHEAD_ID")===D};
_.V.collapseAd=function(D){if(D){var v=_.YE();v.set("HIDDEN_MASTHEAD_ID",D);v.save()}(D=_.ZW(this.hostElement).querySelector("#video"))&&_.F1(D,"yt-masthead-hidden");this.collapsed=!0};
_.V.expandAd=function(){var D=_.YE();D.set("HIDDEN_MASTHEAD_ID",!1);D.save();location.reload()};
_.V.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Wj.prototype.onIronResize=Wj.prototype.onIronResize;Wj.prototype.dataChanged=Wj.prototype.dataChanged;_.e([_.l(_.iN),_.n("design:type",Object)],Wj.prototype,"ironResizableBehavior",void 0);_.e([_.l(xi),_.n("design:type",Object)],Wj.prototype,"ytdActiveViewBehavior",void 0);_.e([_.l(_.Fg),_.n("design:type",Object)],Wj.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Wj.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Wj.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.n("design:type",Boolean)],Wj.prototype,"widescreen",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.n("design:type",Boolean)],Wj.prototype,"expandable",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Wj.prototype,"collapsed",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wj.prototype,"dataChanged",null);
_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wj.prototype,"onIronResize",null);_.e([_.m({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Wj);
_.w(Wj,"ytd-video-masthead-ad-v3-renderer",function(){if($GJ!==void 0)return $GJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return $GJ=D},{mode:2});var t6=function(){return _.c.apply(this,arguments)||this};
_.J(t6,_.c);_.V=t6.prototype;_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.V.ready=function(){var D=this;R0r(function(){D.isAttached&&$2(D.JSC$15582_storedAdSlotMetadata,D.JSC$15582_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&w6(Hj(),D.JSC$15582_storedAdSlotMetadata,D.JSC$15582_storedAdLayoutMetadata)})};
_.V.attached=function(){$2(this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&bo9(Hj(),this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata)};
_.V.detached=function(){$2(this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&w6(Hj(),this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15582_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15582_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15582_storedAdLayoutMetadata!==void 0&&this.JSC$15582_storedAdSlotMetadata!==void 0&&w6(Hj(),this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata),bo9(Hj(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15582_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15582_storedAdSlotMetadata=this.adSlotMetadata)};
_.GT.Object.defineProperties(t6.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
t6.prototype.onAdMetadataChanged=t6.prototype.onAdMetadataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],t6.prototype,"data",void 0);_.e([_.N("data.adLayoutMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],t6.prototype,"adLayoutMetadata",null);
_.e([_.Y(),_.n("design:type",Object)],t6.prototype,"adSlotMetadata",void 0);_.e([_.Ni("adLayoutMetadata","adSlotMetadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t6.prototype,"onAdMetadataChanged",null);_.e([_.m({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],t6);
_.w(t6,"ytd-page-top-ad-layout-renderer",function(){if(rIJ!==void 0)return rIJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return rIJ=
D},{mode:_.E_("kevlar_poly_si_batch_j070")?1:2});var QKs;var r6=function(){var D=_.c.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.typographyBump=!1;D.extractOverlay=!1;D.extractActionBar=!1;return D};
_.J(r6,_.c);_.V=r6.prototype;
_.V.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.V.ready=function(){var D=this;R0r(function(){D.isAttached&&D.adSlotMetadata&&qKF(Hj(),D.adSlotMetadata)})};
_.V.attached=function(){if(this.adSlotMetadata){var D;if(this.adSlotMetadata===((D=this.data)==null?void 0:D.adSlotMetadata))AIM(Hj(),this.adSlotMetadata);else{var v;_.yR(Error("Th`"+this.adSlotMetadata+"`"+((v=this.data)==null?void 0:v.adSlotMetadata)))}}};
_.V.detached=function(){this.adSlotMetadata&&qKF(Hj(),this.adSlotMetadata)};
_.V.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.V.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&qKF(Hj(),this.adSlotMetadata),AIM(Hj(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.GT.Object.defineProperties(r6.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var D,v,h=_.k((D=this.data)==null?void 0:(v=D.fulfillmentContent)==null?void 0:v.fulfilledLayout,_.krm),a;return(D=(a=_.k(h==null?void 0:h.renderingContent,gyJ))==null?void 0:a.layout)?D.toLowerCase().replace(/_/g,"-"):""}}});
r6.prototype.onAdSlotMetadataChanged=r6.prototype.onAdSlotMetadataChanged;r6.prototype.onTypographyBumpChanged=r6.prototype.onTypographyBumpChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],r6.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],r6.prototype,"rendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],r6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],r6.prototype,"noBottomMargin",void 0);_.e([_.Y(),_.n("design:type",Object)],r6.prototype,"overlayDensity",void 0);_.e([_.Y(),_.n("design:type",Object)],r6.prototype,"typographyBump",void 0);_.e([_.Y(),_.n("design:type",Object)],r6.prototype,"extractOverlay",void 0);_.e([_.Y(),_.n("design:type",Object)],r6.prototype,"extractActionBar",void 0);
_.e([_.Br("ytd-in-feed-ad-layout-renderer"),_.n("design:type",HTMLElement)],r6.prototype,"inFeedAdLayoutRenderer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],r6.prototype,"layout",null);_.e([_.Ni("typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r6.prototype,"onTypographyBumpChanged",null);
_.e([_.Ni("data.adSlotMetadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r6.prototype,"onAdSlotMetadataChanged",null);_.e([_.m({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],r6);
_.w(r6,"ytd-ad-slot-renderer",function(){if(QKs!==void 0)return QKs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QKs=D},{mode:_.E_("kevlar_poly_si_batch_j077")?
1:2});var Gl4;var uv=function(){return _.c.apply(this,arguments)||this};
_.J(uv,_.c);_.V=uv.prototype;_.V.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"}}}};
_.V.maybeComputeHref=function(){return null};
_.V.onTap=function(){};
_.V.onThumbnailContainerClick=function(D){this.onClick(D)};
_.V.onClick=function(D){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint;h&&_.k(h,_.hP)&&(this.ytSparklesClickLocationBehavior.handleClick(h,D,!1),D.stopPropagation())};
_.V.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var D=_.P(this.data.impressionUrls),v=D.next();!v.done;v=D.next())v=v.value,HbI(v,w8o(v));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",uv.JSC$15590_DEFAULT_CLICK_LOCATION_BEHAVIOR,uv.JSC$15590_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&
D.removeAttribute("href"))}};
_.V.attached=function(){var D=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.GT.Object.defineProperties(uv.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
uv.prototype.dataChanged=uv.prototype.dataChanged;uv.prototype.onTap=uv.prototype.onTap;uv.JSC$15590_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
uv.JSC$15590_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"}];_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.e([_.l(xi),_.n("design:type",Object)],uv.prototype,"ytdActiveViewBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],uv.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],uv.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],uv.prototype,"ytSparklesClickLocationBehavior",void 0);
_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],uv.prototype,"isGridViewEnabled",void 0);_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],uv.prototype,"watchFeedBigThumbs",null);_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],uv.prototype,"thumbnailWidth",null);_.e([_.Y(),_.n("design:type",Object)],uv.prototype,"data",void 0);
_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],uv.prototype,"thumbnail",void 0);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uv.prototype,"onTap",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uv.prototype,"dataChanged",null);_.e([_.m({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],uv);
_.w(uv,"ytd-compact-promoted-video-renderer",function(){if(Gl4!==void 0)return Gl4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Gl4=D},{mode:1});var Vp4;_.HX("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var QZ=function(){return _.c.apply(this,arguments)||this};
_.J(QZ,_.c);QZ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],QZ.prototype,"data",void 0);_.e([_.m({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],QZ);
_.w(QZ,"ytd-search-pyv-renderer",function(){if(Vp4!==void 0)return Vp4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Vp4=D},{mode:1});var Pfp;_.HX("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Gj=function(){var D=_.c.apply(this,arguments)||this;D.roundedContainer=!0;D.JSC$15598_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.J(Gj,_.c);_.V=Gj.prototype;
_.V.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}}};
_.V.onStampFinished=function(){this.JSC$15598_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.ZW(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");D?D.openDialog():this.JSC$15598_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.V.computeHideBorder=function(){return this.isInEngagementPanel};
_.V.computeIsCompact=function(){return this.isInEngagementPanel};
_.V.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeUsesFullLockup=function(){var D,v=(D=this.data)==null?void 0:D.post,h;D=(h=_.k(v,qP1))==null?void 0:h.surface;var a;h=(a=_.k(v,jI$))==null?void 0:a.originalPost;var Q;if(a=D||((Q=_.k(h,qP1))==null?void 0:Q.surface))return!this.computeUsesCompactLockup(a)&&this.useUpdatedRepostUi;var G;return((G=_.k(v,jI$))==null?void 0:G.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.GT.Object.defineProperties(Gj.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var D,v;return((v=_.k((D=this.data)==null?void 0:D.post,qP1))==null?void 0:v.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useUpdatedRepostUi}}});
Gj.prototype.onYtCommentModerationPanelEmpty=Gj.prototype.onYtCommentModerationPanelEmpty;Gj.prototype.onStampFinished=Gj.prototype.onStampFinished;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Gj.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Gj.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gj.prototype,"roundedContainer",void 0);_.e([_.Y({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Gj.prototype,"hideBorder",void 0);_.e([_.Y({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Gj.prototype,"isCompact",void 0);
_.e([_.Y({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Gj.prototype,"usesFullLockup",void 0);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gj.prototype,"onStampFinished",null);
_.e([_.lc("ytd-comment-moderation-panel-empty"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Gj.prototype,"onYtCommentModerationPanelEmpty",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Gj.prototype,"isInEngagementPanel",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Gj.prototype,"useUpdatedRepostUi",null);
_.e([_.m({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Gj);
_.w(Gj,"ytd-backstage-post-thread-renderer",function(){if(Pfp!==void 0)return Pfp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Pfp=D},{mode:1});var xG$;var VZ=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(VZ,_.c);VZ.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
VZ.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var D=this.data.thumbnail.thumbnails;this.isDarkTheme&&(D=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(D=_.UA(D,24,void 0,"height"))?D:void 0}};
VZ.prototype.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
VZ.prototype.computeHasText=function(){var D;return!((D=this.data)==null||!D.text)};
_.GT.Object.defineProperties(VZ.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.nz(this.bannerImageUrl))+'");'}}});
VZ.prototype.computeHasText=VZ.prototype.computeHasText;VZ.prototype.computeBannerImageUrl=VZ.prototype.computeBannerImageUrl;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],VZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],VZ.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],VZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],VZ.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",String)],VZ.prototype,"bannerImageUrl",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.n("design:type",Boolean)],VZ.prototype,"hasText",void 0);_.e([_.Ni("data","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VZ.prototype,"computeBannerImageUrl",null);
_.e([_.Ni("data.text"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VZ.prototype,"computeHasText",null);_.e([_.N("bannerImageUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],VZ.prototype,"bannerStyle",null);_.e([_.m({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],VZ);
_.w(VZ,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(xG$!==void 0)return xG$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return xG$=D},{mode:1});var Mp4;var P_=function(){return _.c.apply(this,arguments)||this};
_.J(P_,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],P_.prototype,"data",void 0);_.e([_.m({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],P_);
_.w(P_,"ytd-backstage-zero-state-renderer",function(){if(Mp4!==void 0)return Mp4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Mp4=D},{mode:1});var fms;var xv=function(){return _.c.apply(this,arguments)||this};
_.J(xv,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xv.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],xv.prototype,"icon",void 0);_.e([_.m({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],xv);
_.w(xv,"ytd-post-filter-zero-state-renderer",function(){if(fms!==void 0)return fms;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fms=D},{mode:1});var CfJ;var o6F={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},M0=function(){return _.c.apply(this,arguments)||this};
_.J(M0,_.c);M0.prototype.configureRendererStamper=function(){return o6F};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],M0.prototype,"rendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],M0.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],M0.prototype,"icon",void 0);_.e([_.m({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],M0);
_.w(M0,"ytd-post-scheduling-zero-state-renderer",function(){if(CfJ!==void 0)return CfJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return CfJ=D},{mode:1});var FAF;var fI=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return D};
_.J(fI,_.c);fI.prototype.onTabsActivate=function(D){this.data&&this.data.tabs&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[D.detail.selected].navigationEndpoint})};
fI.prototype.shouldShowTotalCount=function(D){return D&&D.totalCount!==void 0};
fI.prototype.handleUpdatePostsTotalCountAction=function(D){var v=this.get(["data.tabs",1,"totalCount"]),h=this.get("updatePostsTotalCountAction.updateType",D);D=this.get("updatePostsTotalCountAction.number",D);v!==void 0&&h!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&D&&(h==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(v)+D):h==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(v)-D))};
_.GT.Object.defineProperties(fI.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var D=0,v=this.data.tabs.length;D<v;D++)if(this.data.tabs[D].selected)return D;return 0}}});
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],fI.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fI.prototype,"rendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fI.prototype,"data",void 0);_.e([_.N("data.tabs"),_.n("design:type",Number),_.n("design:paramtypes",[])],fI.prototype,"selected",null);_.e([_.m({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],fI);
_.w(fI,"ytd-post-stream-filter-renderer",function(){if(FAF!==void 0)return FAF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return FAF=D},{mode:1});var zQR;var CI=function(){return _.c.apply(this,arguments)||this};
_.J(CI,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],CI.prototype,"kevlarBehaviors",void 0);_.e([_.Y(),_.n("design:type",Object)],CI.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],CI);
_.w(CI,"ytd-channel-age-gate-renderer",function(){if(zQR!==void 0)return zQR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return zQR=D},{mode:1});var UG4;_.HX("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ob=function(){var D=_.c.apply(this,arguments)||this;D.data=null;return D};
_.J(ob,_.c);ob.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.GT.Object.defineProperties(ob.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?0:(v=D.title)==null?0:(h=v.runs)==null?0:h.length)?147:160}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ob.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],ob.prototype,"imageSizePx",null);_.e([_.m({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ob);
_.w(ob,"ytd-channel-owner-empty-state-renderer",function(){if(UG4!==void 0)return UG4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return UG4=D},{mode:1});var LAm;var Z$b;var FR=function(){var D=_.c.apply(this,arguments)||this;D.boundSubmitSearch=function(){D.submitSearch()};
D.boundClearSearch=function(){D.clearSearch()};
return D};
_.J(FR,_.c);_.V=FR.prototype;_.V.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]]"}}}}}};
_.V.toggleClearButton=function(){this.hideClearButton=uGu||!this.input.value};
_.V.submitOnEnterKeyUp=function(D){D.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.V.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.V.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.V.submit=function(){_.F1(this.hostElement,"search-query-changed",this.input.value)};
FR.prototype.toggleClearButton=FR.prototype.toggleClearButton;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FR.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],FR.prototype,"hideClearButton",void 0);_.e([_.Y(),_.n("design:type",Object)],FR.prototype,"boundSubmitSearch",void 0);_.e([_.Y(),_.n("design:type",Object)],FR.prototype,"boundClearSearch",void 0);_.e([_.Br("#input"),_.n("design:type",Object)],FR.prototype,"input",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],FR.prototype,"toggleClearButton",null);
_.e([_.m({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],FR);
_.w(FR,"ytd-channel-switcher-search-box-renderer",function(){if(Z$b!==void 0)return Z$b;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Z$b=D},{mode:1});var E6b;var zj=function(){var D=_.c.apply(this,arguments)||this;D.boundSubmit=function(){D.submit()};
return D};
_.J(zj,_.c);_.V=zj.prototype;_.V.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"}}}}};
_.V.ready=function(){var D=this;this.form.addEventListener("submit",function(v){return D.onSubmit(v)})};
_.V.onSubmit=function(D){D.preventDefault();return!1};
_.V.toggleClearButton=function(){this.hideClearButton=uGu||!this.input.value};
_.V.submitOnEnterKeyUp=function(D){D.keyCode===13&&this.submit()};
_.V.submit=function(){var D=this.data.endpoint,v=(0,_.sV.unsafeClone)(D);_.k(v,_.YV)?_.k(v,_.YV).query=this.input.value:_.k(v,_.BR)&&(_.k(v,_.BR).query=this.input.value);var h=_.k(v.commandMetadata,_.Sa);(h==null?0:h.url)?(h.url=_.np(h.url,"query",this.input.value),_.F1(this.hostElement,"yt-navigate",{endpoint:v})):_.k(v,zDm)?(_.k(v,zDm).channelSwitcherQuery=this.input.value,_.xd().resolve(_.fx).resolveCommand(v,{form:{element:this.hostElement}})):(D=Error("Uh`"+JSON.stringify(D)),_.mV(D))};
_.V.getUrl=function(D){return this.get("commandMetadata.webCommandMetadata.url",D)};
zj.prototype.toggleClearButton=zj.prototype.toggleClearButton;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zj.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],zj.prototype,"hideClearButton",void 0);
_.e([_.Y(),_.n("design:type",Object)],zj.prototype,"boundSubmit",void 0);_.e([_.Br("#form"),_.n("design:type",HTMLFormElement)],zj.prototype,"form",void 0);_.e([_.Br("#input"),_.n("design:type",Object)],zj.prototype,"input",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zj.prototype,"toggleClearButton",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],zj);
_.w(zj,"ytd-search-box-renderer",function(){if(E6b!==void 0)return E6b;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return E6b=D},{mode:2});var UD=function(){var D=_.c.apply(this,arguments)||this;D.showSearchBox=!0;return D};
_.J(UD,_.c);UD.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],UD.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],UD.prototype,"showSearchBox",void 0);_.e([_.m({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],UD);
_.w(UD,"ytd-channel-switcher-header-renderer",function(){if(LAm!==void 0)return LAm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return LAm=D},{mode:1});var Im1;var g6t;var LI=function(){var D=_.c.apply(this,arguments)||this;D.isDisplayed=!0;return D};
_.J(LI,_.c);_.V=LI.prototype;_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.isDisplayed=!0};
_.V.computeType=function(D){return D||"UNKNOWN"};
_.V.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isDisplayed=!1};
_.V.onClose=function(){this.isDisplayed=!1};
LI.prototype.onYtServiceRequestCompleted=LI.prototype.onYtServiceRequestCompleted;LI.prototype.dataChanged=LI.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],LI.prototype,"data",void 0);
_.e([_.Y({computed:"computeType(data.type)",reflectToAttribute:!0}),_.n("design:type",String)],LI.prototype,"type",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],LI.prototype,"isDisplayed",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LI.prototype,"dataChanged",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],LI.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],LI);
_.w(LI,"ytd-alert-with-button-renderer",function(){if(g6t!==void 0)return g6t;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return g6t=D},{mode:1});var ZR=function(){var D=_.c.apply(this,arguments)||this;D.noResult=!1;D.enableAlertBanner=!1;D.dismissedAlertBanner=!1;D.hideCreateChannelButton=!1;D.boundDismissAlertBanner=function(){D.dismissAlertBanner()};
D.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return D};
_.J(ZR,_.c);_.V=ZR.prototype;_.V.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.V.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.V.updateChannelSwitcherAction=function(D){var v;D=(v=_.k(D,PYt))==null?void 0:v.page;_.k(D,Vn1)!==void 0&&(this.data=_.k(D,Vn1))};
_.V.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]]"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.searchQueryChanged=function(D,v){if(this.data&&this.data.contents&&this.data.contents.length){D=[];var h=[];this.hideCreateChannelButton=this.noResult=!1;for(var a=document.querySelectorAll("ytd-account-item-renderer"),Q=_.P(a),G=Q.next();!G.done;G=Q.next())G=G.value,h.push(G),G.style.display="block";this.resetRightBorder(h);if(v){this.hideCreateChannelButton=!0;for(h=1;h<this.data.contents.length;h++)if(G=this.data.contents[h],_.k(G,Cn1)){var x=void 0,f=void 0;Q=(x=_.k(G,Cn1))==null?void 0:(f=
x.accountName)==null?void 0:f.simpleText;f=x=void 0;G=(x=_.k(G,Cn1))==null?void 0:(f=x.channelHandle)==null?void 0:f.simpleText;(x=a[h-1])&&Q&&_.Ff(Q,v)?D.push(x):_.g("enable_handle_search_on_channel_switcher")&&x&&G&&_.Ff(G.toString(),v.toString())?D.push(x):x.style.display="none"}D.length===0&&(this.noResult=!0);this.resetRightBorder(D)}}};
_.V.resetRightBorder=function(D){for(var v=0;v<D.length;v++)D[v].style.borderRight=!this.hideCreateChannelButton&&(v+2)%3===0||this.hideCreateChannelButton&&(v+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.V.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.V.setShowSearchBox=function(D){if(D&&D.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var v=0;v<D.contents.length;v++)_.k(D.contents[v],_.aQ)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.V.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.GT.Object.defineProperties(ZR.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.contents)}}});
ZR.prototype.onContinuationItemsUpdated=ZR.prototype.onContinuationItemsUpdated;ZR.prototype.searchQueryChanged=ZR.prototype.searchQueryChanged;ZR.prototype.onDataChanged=ZR.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],ZR.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],ZR.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ZR.prototype,"data",void 0);_.e([_.Br("ytd-channel-switcher-header-renderer"),_.n("design:type",Object)],ZR.prototype,"channelSwitcherHeaderRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],ZR.prototype,"noResult",void 0);
_.e([_.Y(),_.n("design:type",Object)],ZR.prototype,"enableAlertBanner",void 0);_.e([_.Y(),_.n("design:type",Object)],ZR.prototype,"dismissedAlertBanner",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ZR.prototype,"hideCreateChannelButton",void 0);_.e([_.N("data.contents"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ZR.prototype,"isLoading",null);_.e([_.Y(),_.n("design:type",Object)],ZR.prototype,"boundDismissAlertBanner",void 0);
_.e([_.Y({computed:"computeButtonOverride()"}),_.n("design:type",Object)],ZR.prototype,"buttonOverride",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZR.prototype,"onDataChanged",null);_.e([_.lc("search-query-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,String]),_.n("design:returntype")],ZR.prototype,"searchQueryChanged",null);
_.e([_.lc("yt-next-continuation-data-updated"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ZR.prototype,"onContinuationItemsUpdated",null);_.e([_.m({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],ZR);
_.w(ZR,"ytd-channel-switcher-page-renderer",function(){if(Im1!==void 0)return Im1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Im1=D},{mode:1});var kly;var S6t;var ED=function(){var D=_.c.apply(this,arguments)||this;D.images=[];D.selectedImageIndex=0;return D};
_.J(ED,_.c);_.V=ED.prototype;
_.V.ready=function(){_.s_(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.s_(this.JSC$15643_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.s_(this.JSC$15643_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.s_(this.JSC$15643_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.V.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.V.updateImageThumbnails=function(D){D=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:D.event_.detail});this.images.splice(this.selectedImageIndex,1,D);this.images=[].concat(_.j_(this.images))};
_.V.cancelImageRepositions=function(){this.selectedImageIndex=0;_.F1(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.V.saveImageRepositions=function(){this.selectedImageIndex=0;_.F1(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.GT.Object.defineProperties(ED.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var D=this;return(this.images||[]).map(function(v,h){return{image:v,selected:h===D.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("ytd-backstage-image-preview-renderer"),_.n("design:type",Object)],ED.prototype,"JSC$15643_imagePreviewContainer",void 0);_.e([_.Br(".thumbnail-images-container"),_.n("design:type",HTMLElement)],ED.prototype,"thumbnailImagesContainer",void 0);_.e([_.Y(),_.n("design:type",Array)],ED.prototype,"images",void 0);
_.e([_.Y(),_.n("design:type",Object)],ED.prototype,"repositionInstructions",void 0);_.e([_.Y(),_.n("design:type",Object)],ED.prototype,"selectedImageIndex",void 0);_.e([_.N("images","selectedImageIndex"),_.n("design:type",Array),_.n("design:paramtypes",[])],ED.prototype,"thumbnailRendererDatas",null);_.e([_.N("images","selectedImageIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],ED.prototype,"selectedImageData",null);
_.e([_.m({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],ED);
_.w(ED,"ytd-backstage-multi-image-reposition-renderer",function(){if(S6t!==void 0)return S6t;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return S6t=D},{mode:1});var Ib=function(D,v){_.jZ.call(this);this.uploadUrl=D;this.channelId=v;this.imagesUploadData=[]};
_.J(Ib,_.jZ);Ib.prototype.getAllUploadStatuses=function(){var D=this,v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(Jt$(D),2);v=Q.yieldResult;h=v.get("succeed");a=v.get("failed");return Q.return(h.concat(a))})};
var lmt=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(Jt$(D),2);v=a.yieldResult;h=v.get("failed");h.length>0&&ph4(D,h);return a.return(D.getAllUploadStatuses())})},Jt$=function(D){var v,h,a,Q,G,x,f;
return _.M(function(C){if(C.nextAddress==1)return v=new Map,C.yield(Promise.allSettled(D.imagesUploadData.map(function(U){return U.uploadPromise})),2);
h=C.yieldResult;a=[];Q=_.P(h);for(G=Q.next();!G.done;G=Q.next())x=G.value,x.status==="fulfilled"&&a.push(x.value);f=D.imagesUploadData.map(function(U){return U.image}).filter(function(U){return a.every(function(L){return L.id!==U.id})});
v.set("succeed",a);v.set("failed",f);return C.return(v)})},ph4=function(D,v){v=_.P(v);
for(var h=v.next();!h.done;h=v.next()){var a=D;h=h.value;NUt(a,h.id)>=0&&a.cancel(h.id);var Q=new Y6p(h),G=_.DEs(a.uploadUrl,{"X-YouTube-ChannelId":a.channelId},h.imageBlob);Q.transfer=G;Q.uploadPromise=BUJ(G,h);a.imagesUploadData.push(Q);G.run()}};
Ib.prototype.cancel=function(D){var v=NUt(this,D);v!==-1&&((v=this.imagesUploadData[v].transfer)&&v.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(h){return h.image.id!==D}))};
var NUt=function(D,v){return D.imagesUploadData.findIndex(function(h){return h.image.id===v})},BUJ=function(D,v){return new Promise(function(h,a){D.listen("l",function(){var Q=D.getResponseText();
Q?(Q=JSON.parse(Q).encryptedBlobId,v.encryptedBlobId=Q,h(v)):a("upload failed")});
D.listen("n",function(){a("upload failed")})})},Y6p=function(D){this.image=D};var qvo=function(D,v,h,a,Q){this.id=D;this.imageBlob=v;this.localImageSrc=h;this.naturalWidth=a;this.naturalHeight=Q;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 ctm=[".jpeg",".jpg",".png"],gS=function(){var D=_.c.apply(this,arguments)||this;D.showImagesPreview=!1;D.pollOptions=[];D.errorMessage="";D.optionPlaceholderText="";D.optionDefaultText="";D.JSC$15654_imageId=0;D.maxFileSizeMb=0;D.maxAspectRatio=0;D.invalidFileSizeError="";D.invalidAspectRatioError="";D.invalidFileTypeError="";D.imageSelector=new Xi(null,"single_file",ctm);return D};
_.J(gS,_.c);_.V=gS.prototype;_.V.ready=function(){_.s_(this.imageSelector,"j",this.onImageSelect,!1,this);_.s_(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.s_(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.V.dataChanged=function(){var D,v,h=_.k((D=this.data)==null?void 0:(v=D.cellTemplate)==null?void 0:v.onEmptyCellTap,brM);if(h&&h.uploadUrl&&h.channelId){var a;this.maxFileSizeMb=((a=h.imageValidationInfo)==null?void 0:a.maxFileSizeMb)||0;var Q;this.maxAspectRatio=((Q=h.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0;var G;this.invalidFileSizeError=this.getSimpleString((G=this.data)==null?void 0:G.invalidFileSizeError);var x;this.invalidAspectRatioError=this.getSimpleString((x=this.data)==
null?void 0:x.invalidAspectRatioError);var f;this.invalidFileTypeError=this.getSimpleString((f=this.data)==null?void 0:f.invalidFileTypeError);this.uploadManager=new Ib(h.uploadUrl,h.channelId)}};
_.V.onEditorInfoChange=function(){this.optionPlaceholderText=_.$V(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.$V(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.V.observeAddImageError=function(){this.errorMessage!==""&&_.F1(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.V.onPollOptionsChange=function(){for(var D=!1,v=[],h=0;h<this.pollOptions.length;h++){var a=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(h+1);this.pollOptions[h].placeholderText!==a?(D=!0,v.push(Object.assign({},this.pollOptions[h],{placeholderText:a}))):v.push(this.pollOptions[h])}D&&(this.pollOptions=v);this.isValid()?_.F1(this.hostElement,"yt-commentbox-post-enable"):_.F1(this.hostElement,"yt-commentbox-post-disable")};
_.V.createPollOptions=function(D){var v=[],h;D=(h=D==null?void 0:D.minPollOptions)!=null?h:0;for(h=0;h<D;h++)v.push(this.createPollOption());return v};
_.V.onImageSelect=function(D){var v=this,h,a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1){if(v.selectedImageIndex===void 0)return C.jumpTo(0);h=D.files[0];v.errorMessage="";a=v.validateImage(h);if(a!=="")return v.errorMessage=a,C.return();Q=new Ee(v.maxAspectRatio,!1,!0);return C.yield(Q.transform(h),3)}if(C.nextAddress!=4)return G=C.yieldResult,G.transformedData?G.invalidAspectRatio?(v.errorMessage=v.invalidAspectRatioError,C.return()):C.yield(bFO(v.JSC$15654_imageId,D.files[0],G.transformedData),
4):(v.errorMessage=v.invalidFileTypeError,C.return());x=C.yieldResult;v.JSC$15654_imageId++;ph4(v.uploadManager,[x]);f=Object.assign({},v.pollOptions[v.selectedImageIndex],{image:x});v.pollOptions.splice(v.selectedImageIndex,1,f);v.refreshPollOptions();_.F1(v.hostElement,"yt-backstage-poll-image-select");_.YI(C)})};
_.V.validateImage=function(D){return D.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.V.refreshPollOptions=function(){this.pollOptions=[].concat(_.j_(this.pollOptions))};
_.V.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.j_(this.pollOptions),[this.createPollOption()]))};
_.V.onRemovePollOption=function(D){var v=this.pollOptions[D.model.index];v&&v.image&&this.uploadManager.cancel(v.image.id);this.pollOptions.splice(D.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.F1(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.V.onTextInput=function(){this.refreshPollOptions()};
_.V.onImageButtonClick=function(D){this.selectedImageIndex=D.model.index;this.imageSelector.click()};
_.V.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.V.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.V.saveImageRepositions=function(D){D=D.event_.detail;for(var v=0,h=[],a=_.P(this.pollOptions),Q=a.next();!Q.done;Q=a.next())Q=Q.value,Q.image!==void 0?(Q=Object.assign({},Q,{image:D[v]}),h.push(Q),v++):h.push(Q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.j_(h))};
_.V.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var D=0,v=_.P(this.pollOptions),h=v.next();!h.done;h=v.next())if(h=h.value,h.optionText.trim()!==""||h.image!==void 0){if(!h.image||this.hasCustomOptionText&&h.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;D++}return D>=Number(this.editorInfo.minPollOptions)};
_.V.getAllUploadStatuses=function(){var D=this,v,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return G.yield(D.uploadManager.getAllUploadStatuses(),2);v=G.yieldResult;h=_.P(v);for(a=h.next();!a.done;a=h.next())if(Q=a.value,Q.encryptedBlobId===void 0)return G.return(lmt(D.uploadManager));return G.return(v)})};
_.V.getPostCreateOptions=function(){for(var D=[],v=_.P(this.pollOptions),h=v.next();!h.done;h=v.next())h=h.value,h.image!==void 0&&D.push({text:this.hasCustomOptionText?h.optionText:h.placeholderText,image:h.image});return D};
_.V.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.V.createButtonRenderer=function(D,v){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleString(D)}},isDisabled:v}};
_.V.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.V.computeThumbnailRendererData=function(D){return D?{image:D,selected:!1}:void 0};
_.V.getSimpleString=function(D){return _.$V(D)};
_.V.updateOptionTextFromBinding=function(D){if(D.target){var v=Array.from(_.ZW(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(D.target);if(v>=0){var h;this.pollOptions[v].optionText=(h=D.detail.value)!=null?h:""}}};
_.GT.Object.defineProperties(gS.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,v;return this.pollOptions.length<((v=(D=this.editorInfo)==null?void 0:D.maxPollOptions)!=null?v:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(D){return D.image}).map(function(D){return D.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.data)==null?void 0:D.addOptionButtonText;return v?this.createButtonRenderer(v,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.data)==null?void 0:D.repositionImagesButtonLabel;return v?this.createButtonRenderer(v,!this.hasImages):void 0}}});
gS.prototype.onPollOptionsChange=gS.prototype.onPollOptionsChange;gS.prototype.observeAddImageError=gS.prototype.observeAddImageError;gS.prototype.onEditorInfoChange=gS.prototype.onEditorInfoChange;gS.prototype.dataChanged=gS.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("ytd-backstage-multi-image-reposition-renderer"),_.n("design:type",Object)],gS.prototype,"imageRepositionContainer",void 0);
_.e([_.Y(),_.n("design:type",Object)],gS.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],gS.prototype,"editorInfo",void 0);_.e([_.Y(),_.n("design:type",Ib)],gS.prototype,"uploadManager",void 0);_.e([_.Y(),_.n("design:type",Object)],gS.prototype,"showImagesPreview",void 0);_.e([_.Y(),_.n("design:type",Array)],gS.prototype,"pollOptions",void 0);_.e([_.Y(),_.n("design:type",Object)],gS.prototype,"errorMessage",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gS.prototype,"dataChanged",null);_.e([_.qi("editorInfo"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gS.prototype,"onEditorInfoChange",null);_.e([_.Ni("errorMessage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gS.prototype,"observeAddImageError",null);
_.e([_.qi("pollOptions"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gS.prototype,"onPollOptionsChange",null);_.e([_.N("pollOptions","editorInfo"),_.n("design:type",Object),_.n("design:paramtypes",[])],gS.prototype,"isAllowedToAddOption",null);_.e([_.N("pollOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],gS.prototype,"hasImages",null);
_.e([_.N("pollOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],gS.prototype,"imagesToReposition",null);_.e([_.N("pollOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],gS.prototype,"hasCustomOptionText",null);_.e([_.N("data","isAllowedToAddOption"),_.n("design:type",Object),_.n("design:paramtypes",[])],gS.prototype,"addOptionButton",null);_.e([_.N("data","hasImages"),_.n("design:type",Object),_.n("design:paramtypes",[])],gS.prototype,"repositionImagesButton",null);
_.e([_.m({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],gS);
_.w(gS,"ytd-backstage-image-poll-editor-renderer",function(){if(kly!==void 0)return kly;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kly=D},{mode:2});var XhR={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 AtM;var kv=function(){var D=_.c.apply(this,arguments)||this;D.a11yConfig=XhR;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.showPreviewContainer=!0;D.startPicker=!1;D.repositionOptional=!1;D.editOnlyMode=!1;D.savedImageDisplayOffsetTop=0;D.savedImageDisplayOffsetLeft=0;return D};
_.J(kv,_.c);_.V=kv.prototype;_.V.created=function(){_.$M.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(D){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var v=0,h=0,a="";switch(D.detail.keyboardEvent.key){case "ArrowUp":dRO(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?a=this.a11yConfig.reachBottomOfImage:v=this.imageHeight*.05*-1;break;case "ArrowDown":dRO(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?a=this.a11yConfig.reachTopOfImage:
v=this.imageHeight*.05;break;case "ArrowLeft":dRO(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?a=this.a11yConfig.reachRightOfImage:h=this.imageWidth*.05*-1;break;case "ArrowRight":dRO(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?a=this.a11yConfig.reachLeftOfImage:h=this.imageWidth*.05}a&&_.p1(a)&&_.F1(this.hostElement,"iron-announce",{text:_.p1(a)});if(h||v)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+v)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.p1(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+h)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.p1(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.F1(this.hostElement,"iron-announce",{text:D})}};
_.V.getPreviewPosition=function(D,v,h,a){return Math.round(100*(D+v*.5-h)/a)};
_.V.calculateDisplayPosition=function(){var D=this.imageData.naturalWidth,v=this.imageData.naturalHeight;this.displayScale=Math.max(200/D,200/v);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var h=D*this.displayScale*this.imageData.previewCoordinates.left,a=v*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=v>D?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-h;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=D>v?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-a;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=D*this.displayScale;this.imageHeight=v*this.displayScale};
_.V.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.V.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.V.getSignedPosition=function(D,v,h){return v==="X"&&_.eA("HTML_DIR")==="rtl"?h==="-"?D+"px":D*-1+"px":h==="-"?D*-1+"px":D+"px"};
_.V.pickerMove=function(D){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var v=this.pickerOffsetX-D.clientX,h=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
h)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-v))}};
_.V.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var D=this.generateCropPreview();D&&_.F1(this.hostElement,"ytd-backstage-image-preview-coordinates-update",D)};
_.V.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.F1(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.V.deleteImage=function(){_.F1(this.hostElement,"ytd-backstage-image-preview-delete")};
_.V.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.V.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var D=this.generateCropPreview();D&&_.F1(this.hostElement,"ytd-backstage-image-preview-coordinates-save",D)};
_.V.getPreviewOffset=function(D,v,h){return v&&D?(h==="X"&&_.eA("HTML_DIR")==="rtl"?300/v*D:300/v*D*-1)+"px":"0px"};
_.V.getSimpleText=function(D){return D?_.$V(D):""};
_.V.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}};
_.GT.Object.defineProperties(kv.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.p1(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.p1(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.p1(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.p1(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.instruction)==null?void 0:(v=D.previewInstruction)==null?void 0:v.editButtonLabel;return h?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:h,accessibilityData:{accessibilityData:{label:this.getSimpleText(h)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q=this.editOnlyMode?(D=this.instruction)==null?void 0:(v=D.editInstruction)==null?void 0:v.saveImagesButtonLabel:(h=this.instruction)==null?void 0:(a=h.editInstruction)==null?void 0:a.saveButtonLabel;return Q?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.instruction)==null?void 0:(v=D.previewInstruction)==null?void 0:v.deleteButtonLabel;return h?{size:"SIZE_SMALL",text:h,accessibilityData:{accessibilityData:{label:this.getSimpleText(h)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.instruction)==null?void 0:(v=D.editInstruction)==null?void 0:v.cancelButtonLabel;D=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return h?{style:D,size:"SIZE_SMALL",text:h,accessibilityData:{accessibilityData:{label:this.getSimpleText(h)}}}: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"}}});
kv.prototype.onEditOnlyModeUpdate=kv.prototype.onEditOnlyModeUpdate;kv.prototype.onImageChange=kv.prototype.onImageChange;_.e([_.Y(),_.n("design:type",qvo)],kv.prototype,"imageData",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"instruction",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"a11yConfig",void 0);_.e([_.Y(),_.n("design:type",Number)],kv.prototype,"imageWidth",void 0);_.e([_.Y(),_.n("design:type",Number)],kv.prototype,"imageHeight",void 0);
_.e([_.Y(),_.n("design:type",Number)],kv.prototype,"displayScale",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"imageDisplayOffsetTop",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"imageDisplayOffsetLeft",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"pickerDisplayOffsetTop",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"pickerDisplayOffsetLeft",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"showPreviewContainer",void 0);
_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"startPicker",void 0);_.e([_.Y(),_.n("design:type",Number)],kv.prototype,"pickerOffsetX",void 0);_.e([_.Y(),_.n("design:type",Number)],kv.prototype,"pickerOffsetY",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"repositionOptional",void 0);_.e([_.Y(),_.n("design:type",Object)],kv.prototype,"editOnlyMode",void 0);_.e([_.Br("#picker-container"),_.n("design:type",HTMLElement)],kv.prototype,"JSC$15667_pickerContainer",void 0);
_.e([_.Br("#picker"),_.n("design:type",HTMLElement)],kv.prototype,"picker",void 0);_.e([_.Br("#preview-clipper"),_.n("design:type",HTMLElement)],kv.prototype,"previewClipper",void 0);_.e([_.Br("#image-in-picker-background"),_.n("design:type",HTMLImageElement)],kv.prototype,"JSC$15667_imageInBackground",void 0);_.e([_.Br("#image-in-picker"),_.n("design:type",HTMLImageElement)],kv.prototype,"JSC$15667_imageInPicker",void 0);
_.e([_.Br("#image-in-preview-clipper"),_.n("design:type",HTMLImageElement)],kv.prototype,"JSC$15667_imageInPreviewClipper",void 0);_.e([_.N("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],kv.prototype,"altLabelForImage",null);_.e([_.N("imageHeight","imageWidth"),_.n("design:type",Number),_.n("design:paramtypes",[])],kv.prototype,"pickerSize",null);
_.e([_.N("imageHeight","imageWidth"),_.n("design:type",Object),_.n("design:paramtypes",[])],kv.prototype,"imageOrientationStyle",null);_.e([_.N("instruction"),_.n("design:type",Object),_.n("design:paramtypes",[])],kv.prototype,"editButton",null);_.e([_.N("instruction","editOnlyMode"),_.n("design:type",Object),_.n("design:paramtypes",[])],kv.prototype,"saveButton",null);_.e([_.N("instruction"),_.n("design:type",Object),_.n("design:paramtypes",[])],kv.prototype,"deleteButton",null);
_.e([_.N("instruction","editOnlyMode"),_.n("design:type",Object),_.n("design:paramtypes",[])],kv.prototype,"cancelButton",null);_.e([_.N("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.n("design:type",Number),_.n("design:paramtypes",[])],kv.prototype,"cropOffsetTop",null);_.e([_.N("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.n("design:type",Number),_.n("design:paramtypes",[])],kv.prototype,"cropOffsetLeft",null);
_.e([_.N("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],kv.prototype,"pickerBackgroundStyle",null);_.e([_.N("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],kv.prototype,"pickerDisplayStyle",null);_.e([_.N("cropOffsetLeft","cropOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],kv.prototype,"imageInPickerStyle",null);
_.e([_.N("cropOffsetLeft","cropOffsetTop","pickerSize"),_.n("design:type",String),_.n("design:paramtypes",[])],kv.prototype,"previewClipperStyle",null);_.e([_.qi("imageData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kv.prototype,"onImageChange",null);_.e([_.qi("editOnlyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kv.prototype,"onEditOnlyModeUpdate",null);
_.e([_.N("showPreviewContainer"),_.n("design:type",String),_.n("design:paramtypes",[])],kv.prototype,"pickerModeStyle",null);_.e([_.m({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],kv);
_.w(kv,"ytd-backstage-image-preview-renderer",function(){if(AtM!==void 0)return AtM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return AtM=D},{mode:1});var q6s;var b$4={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 dG4;var jKJ;var SK=function(){var D=_.c.apply(this,arguments)||this;D.a11yConfig=b$4;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.cropCoordinatesSaved=!1;D.previewSize=0;D.startPicker=!1;D.repositionOptional=!1;return D};
_.J(SK,_.c);_.V=SK.prototype;_.V.created=function(){_.$M.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(D){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var v=0,h=0,a="";switch(D.detail.keyboardEvent.key){case "ArrowUp":jOc(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?a=this.a11yConfig.reachBottomOfImage:v=this.imageHeight*.05*-1;break;case "ArrowDown":jOc(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?a=this.a11yConfig.reachTopOfImage:
v=this.imageHeight*.05;break;case "ArrowLeft":jOc(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?a=this.a11yConfig.reachRightOfImage:h=this.imageWidth*.05*-1;break;case "ArrowRight":jOc(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?a=this.a11yConfig.reachLeftOfImage:h=this.imageWidth*.05}a&&_.p1(a)&&_.F1(this.hostElement,"iron-announce",{text:_.p1(a)});if(h||v)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+v)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.p1(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+h)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.p1(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.F1(this.hostElement,"iron-announce",{text:D})}};
_.V.getPreviewPosition=function(D,v,h,a){return Math.round(100*(D+v*.5-h)/a)};
_.V.displayImage=function(){var D=this.JSC$15678_pickerContainer.getBoundingClientRect().width,v=this.JSC$15678_pickerContainer.getBoundingClientRect().height,h=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),a=this.JSC$15678_imageInBackground.naturalWidth,Q=this.JSC$15678_imageInBackground.naturalHeight;this.displayScale=Math.max(h/a,h/Q);this.imageWidth=a*this.displayScale;this.imageHeight=Q*this.displayScale;this.pickerDisplayOffsetLeft=(D-h)/2;this.pickerDisplayOffsetTop=
(v-h)/2;this.imageDisplayOffsetLeft=Q>a?this.pickerDisplayOffsetLeft:(D-this.imageWidth)/2;this.imageDisplayOffsetTop=a>Q?this.pickerDisplayOffsetTop:(v-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.V.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15678_imageInBackground.src=this.imageData.toString(),this.JSC$15678_imageInPicker.src=this.imageData.toString(),this.JSC$15678_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.V.getSignedPosition=function(D,v,h){return v==="X"&&_.eA("HTML_DIR")==="rtl"?h==="-"?D+"px":D*-1+"px":h==="-"?D*-1+"px":D+"px"};
_.V.pickerMove=function(D){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var v=this.pickerOffsetX-D.clientX,h=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
h)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-v))}};
_.V.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.V.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.F1(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.V.getPreviewOffset=function(D,v,h,a){return v&&D&&h?(a==="X"&&_.eA("HTML_DIR")==="rtl"?h/v*D:h/v*D*-1)+"px":"0px"};
_.V.getSimpleText=function(D){return D?_.$V(D):""};
_.V.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var D=this.cropOffsetTop/this.imageHeight,v=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,h=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,a=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ZW(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.F1(this.hostElement,"yt-img-crop-coordinates-update",{top:D,right:v,bottom:h,left:a})}};
_.GT.Object.defineProperties(SK.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.p1(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.p1(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.p1(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.p1(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var D,v=(D=this.learnMore.runs[0])==null?void 0:D.navigationEndpoint,h;return((h=_.k(v,_.RB))==null?void 0:h.url)||void 0}}}});
SK.prototype.onImageDataChange=SK.prototype.onImageDataChange;_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"imageData",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"instruction",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"a11yConfig",void 0);_.e([_.Y(),_.n("design:type",Number)],SK.prototype,"imageWidth",void 0);_.e([_.Y(),_.n("design:type",Number)],SK.prototype,"imageHeight",void 0);_.e([_.Y(),_.n("design:type",Number)],SK.prototype,"displayScale",void 0);
_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"imageDisplayOffsetTop",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"imageDisplayOffsetLeft",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"pickerDisplayOffsetTop",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"pickerDisplayOffsetLeft",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"cropCoordinatesSaved",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"previewSize",void 0);
_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"startPicker",void 0);_.e([_.Y(),_.n("design:type",Number)],SK.prototype,"pickerOffsetX",void 0);_.e([_.Y(),_.n("design:type",Number)],SK.prototype,"pickerOffsetY",void 0);_.e([_.Y(),_.n("design:type",Object)],SK.prototype,"repositionOptional",void 0);_.e([_.Br("#picker-container"),_.n("design:type",HTMLElement)],SK.prototype,"JSC$15678_pickerContainer",void 0);_.e([_.Br("#picker"),_.n("design:type",HTMLElement)],SK.prototype,"picker",void 0);
_.e([_.Br("#image-in-picker-background"),_.n("design:type",HTMLImageElement)],SK.prototype,"JSC$15678_imageInBackground",void 0);_.e([_.Br("#image-in-picker"),_.n("design:type",HTMLImageElement)],SK.prototype,"JSC$15678_imageInPicker",void 0);_.e([_.Br("#image-in-preview-clipper"),_.n("design:type",HTMLImageElement)],SK.prototype,"JSC$15678_imageInPreviewClipper",void 0);_.e([_.Br("#full-image-as-preview"),_.n("design:type",HTMLImageElement)],SK.prototype,"imageAsPreview",void 0);
_.e([_.N("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],SK.prototype,"altLabelForImage",null);_.e([_.N("imageHeight","imageWidth"),_.n("design:type",Number),_.n("design:paramtypes",[])],SK.prototype,"pickerSize",null);_.e([_.N("imageHeight","imageWidth"),_.n("design:type",Object),_.n("design:paramtypes",[])],SK.prototype,"imageOrientationStyle",null);
_.e([_.N("instruction.previewInstruction.editButtonLabel"),_.n("design:type",Object),_.n("design:paramtypes",[])],SK.prototype,"editButton",null);_.e([_.N("instruction.editInstruction.saveButtonLabel"),_.n("design:type",Object),_.n("design:paramtypes",[])],SK.prototype,"saveButton",null);_.e([_.N("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.n("design:type",Number),_.n("design:paramtypes",[])],SK.prototype,"cropOffsetTop",null);
_.e([_.N("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.n("design:type",Number),_.n("design:paramtypes",[])],SK.prototype,"cropOffsetLeft",null);_.e([_.N("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],SK.prototype,"pickerBackgroundStyle",null);_.e([_.N("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],SK.prototype,"pickerDisplayStyle",null);
_.e([_.N("cropOffsetLeft","cropOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],SK.prototype,"imageInPickerStyle",null);_.e([_.N("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.n("design:type",String),_.n("design:paramtypes",[])],SK.prototype,"previewClipperStyle",null);_.e([_.Ni("imageData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SK.prototype,"onImageDataChange",null);
_.e([_.N("cropCoordinatesSaved"),_.n("design:type",String),_.n("design:paramtypes",[])],SK.prototype,"pickerModeStyle",null);_.e([_.N("instruction.editInstruction.learnMore"),_.n("design:type",Object),_.n("design:paramtypes",[])],SK.prototype,"learnMore",null);_.e([_.N("learnMore"),_.n("design:type",Object),_.n("design:paramtypes",[])],SK.prototype,"learnMoreUrl",null);_.e([_.Ry({is:"yt-img-crop-picker",disableElementRegistration:!0})],SK);
_.w(SK,"yt-img-crop-picker",function(){if(jKJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;dG4===void 0&&(dG4=document.createElement("template"));var a=dG4;h.call(v,a.content.cloneNode(!0),D.content.firstChild);jKJ=D}D=jKJ;return D},{mode:2});var Jf=function(){var D=_.c.apply(this,arguments)||this;D.errorMessage="";D.hasPreview=!1;D.isBackstagePost=!1;D.dismissButtonOverrides={size:"XS"};return D};
_.J(Jf,_.c);_.V=Jf.prototype;_.V.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"}}}};
_.V.detached=function(){this.removeOverlay()};
_.V.setPreview=function(D){_.ZW(this.hostElement).querySelector("#preview-picker").imageData=D;this.hasPreview=!0;_.F1(this.hostElement,"yt-backstage-image-select-preview")};
_.V.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var D=_.ZW(this.hostElement).querySelector("#dropzone");D.classList.remove("dragover");D.classList.remove("error");_.F1(this.hostElement,"yt-backstage-image-select-cancel")};
_.V.setupOverlay=function(){var D=this.imageUploadEndpoint;this.removeOverlay();if(D&&D.imageValidationInfo){var v=_.ZW(this.hostElement).querySelector("#dropzone"),h=_.ZW(this.hostElement).querySelector("#select");this.overlay=new ge(D.uploadUrl,D.channelId,D.imageValidationInfo.maxFileSizeMb,D.imageValidationInfo.allowedMaxAspectRatio,v,h,!0);_.s_(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.s_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.s_(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.s_(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.s_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.V.removeOverlay=function(){this.overlay&&(_.d9(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.d9(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.d9(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.d9(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.d9(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.V.onDragOver=function(D){var v=_.ZW(this.hostElement).querySelector("#dropzone");_.Iy(v,"dragover",D.value)};
_.V.onPreview=function(D){this.setPreview(D.value)};
_.V.onImageError=function(D){if(D.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var v;D=(v=this.data)==null?void 0:v.fileSizeError}else if(D.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var h;D=(h=this.data)==null?void 0:h.invalidError}else if(D.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var a;D=(a=this.data)==null?void 0:a.invalidAspectRatioError}else return;this.errorMessage=_.$V(D);_.ZW(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.V.onImageAlert=function(D){this.onImageError(D)};
_.V.uploadPromise=function(){var D=this,v=this.overlay&&this.overlay.uploadPromise();if(v)return v.catch(function(){throw Error(D.data?_.$V(D.data.uploadFailureError):"");})};
_.GT.Object.defineProperties(Jf.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var D,v;if((D=this.data)==null?0:(v=D.icon)==null?0:v.iconType)return _.SQ(this.data.icon.iconType)}}});
Jf.prototype.setupOverlay=Jf.prototype.setupOverlay;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Jf.prototype,"rendererStamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Jf.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Jf.prototype,"imageUploadEndpoint",void 0);_.e([_.Y(),_.n("design:type",Object)],Jf.prototype,"errorMessage",void 0);
_.e([_.Y(),_.n("design:type",ge)],Jf.prototype,"overlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Jf.prototype,"hasPreview",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Jf.prototype,"isBackstagePost",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Jf.prototype,"selectionCancel",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Jf.prototype,"previewCancel",null);
_.e([_.N("data.icon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],Jf.prototype,"icon",null);_.e([_.Y(),_.n("design:type",Object)],Jf.prototype,"dismissButtonOverrides",void 0);_.e([_.Ni("imageUploadEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jf.prototype,"setupOverlay",null);_.e([_.m({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Jf);
_.w(Jf,"ytd-backstage-image-select-renderer",function(){if(q6s!==void 0)return q6s;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return q6s=D},{mode:1});var sKb;var mGm;var pI=function(){var D=_.c.apply(this,arguments)||this;D.selected=!1;return D};
_.J(pI,_.c);_.V=pI.prototype;_.V.computeSelected=function(D){return D==null?void 0:D.selected};
_.V.computeTransform=function(D,v,h){var a,Q,G=(Q=(a=this.imageContainer)==null?void 0:a.getBoundingClientRect())!=null?Q:{width:0,height:0};a=Math.max(G.width/v,G.height/h);h=h*a*D.top;return"translateX("+this.getSignedPosition(v*a*D.left,"X","-")+") translateY("+this.getSignedPosition(h,"Y","-")+")"};
_.V.getSignedPosition=function(D,v,h){return v==="X"&&_.eA("HTML_DIR")==="rtl"?h==="-"?D+"px":D*-1+"px":h==="-"?D*-1+"px":D+"px"};
_.V.onClick=function(){var D;_.F1(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(D=this.data)==null?void 0:D.image)};
_.V.onKeyPress=function(D){if(D.keyCode===13)this.onClick()};
_.GT.Object.defineProperties(pI.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.image)==null?void 0:v.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.image){var v;D=(v=this.data)==null?void 0:v.image;return D.previewCoordinates.top!==0||D.previewCoordinates.left!==0?(v=this.computeTransform(D.previewCoordinates,D.naturalWidth,D.naturalHeight),D.naturalHeight>=D.naturalWidth?"width:inherit;transform:"+v+";":"height:inherit;transform:"+v+";"):D.naturalHeight>=D.naturalWidth?"width:inherit;":"height:inherit;"}}}});
pI.prototype.onKeyPress=pI.prototype.onKeyPress;_.e([_.Br(".image-container"),_.n("design:type",HTMLElement)],pI.prototype,"imageContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],pI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.n("design:type",Object)],pI.prototype,"selected",void 0);_.e([_.N("data.image"),_.n("design:type",Object),_.n("design:paramtypes",[])],pI.prototype,"thumbnailUrl",null);
_.e([_.N("data.image","data.image.previewCoordinates"),_.n("design:type",Object),_.n("design:paramtypes",[])],pI.prototype,"thumbnailStyle",null);_.e([_.lc("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],pI.prototype,"onKeyPress",null);_.e([_.m({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],pI);
_.w(pI,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(mGm!==void 0)return mGm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return mGm=D},{mode:2});var lR=function(D,v,h){h=h===void 0?!1:h;_.jZ.call(this);var a=this;this.dropZoneOverlay=new cF(D);this.selectOverlay=h?new Xi(v,"multiple_file",["image/*"]):new Xi(v,"single_file",["image/*"]);this.handler=new _.or(this);_.Ia(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(v,"click",function(){a.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.J(lR,_.jZ);lR.prototype.onChange=function(D){var v;(v=D.files)!=null&&v.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:D.files}))};var N0=function(){var D=_.c.apply(this,arguments)||this;D.addImageErrorMessage="";D.errorMessage="";D.images=[];D.selectedImageIndex=0;D.modern=_.g("web_modern_buttons");D.maxNumImagesPerPost=_.oZ("max_num_images_per_post_web_ui");D.JSC$15693_imageId=0;return D};
_.J(N0,_.c);_.V=N0.prototype;_.V.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.F1(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.V.observeDragToReorder=function(){var D=this;if(this.showImagesPreview){var v,h=OI$(_.XQ.getInstance(),(v=this.data)==null?void 0:v.dragToReorderTooltip);_.HK.addLowPriorityJob(function(){_.ZD(D.hostElement,h,D.thumbnailDragDropArea)})}};
_.V.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}}};
_.V.computeThumbnail=function(D){return(D==null?void 0:D.localImageSrc)||void 0};
_.V.onRendererstamperFinished=function(){_.AW9(this.ytReorderableBehavior,_.ZW(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ZW(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.V.handleDrop=function(D){var v=D.currDragItem;if(v!=null&&v.data){D=this.images[this.selectedImageIndex];var h=v.data.image,a=this.images.indexOf(h)||0;v=_.yO(v.parentNode.children,v);this.images.splice(a,1);this.images.splice(v,0,h);this.images=[].concat(_.j_(this.images));this.selectedImageIndex=this.images.indexOf(D)}};
_.V.setUpImagePicker=function(){var D=this.imageUploadEndpoint;D&&D.imageValidationInfo&&(this.uploadManager=new Ib(D.uploadUrl,D.channelId),this.initialPicker||(this.initialPicker=new lR(this.dropzone,this.selectLink,!0),_.s_(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new lR(this.addImageButtonContainer,this.addImageSelectButton),_.s_(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.s_(this.JSC$15693_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.s_(this.JSC$15693_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.s_(_.ZW(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.V.detached=function(){this.initialPicker&&(_.d9(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.d9(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.V.onInitialSelectImages=function(D){var v=this;return _.M(function(h){return h.yield(v.onSelectImages(D,!1),0)})};
_.V.onAddImage=function(D){var v=this;return _.M(function(h){return h.yield(v.onSelectImages(D,!0),0)})};
_.V.onSelectImages=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R;return _.M(function(vA){switch(vA.nextAddress){case 1:v?h.addImageErrorMessage="":(h.images=[],h.errorMessage="");a=D.detail;Q=h.validateImages([].concat(_.j_(a)));if(Q!=="")return v?h.addImageErrorMessage=Q:h.errorMessage=Q,vA.return();G=[].concat(_.j_(a)).map(function(f7){return(new Ee(h.maxAspectRatio,!1,!0)).transform(f7)});
return vA.yield(Promise.allSettled(G),2);case 2:x=vA.yieldResult,f=_.P(x.entries()),C=f.next();case 3:if(C.done){vA.jumpTo(5);break}U=C.value;L=_.P(U);Z=L.next().value;E=L.next().value;I=Z;S=E;if(S.status!=="fulfilled"){d=A=B=void 0;v?h.addImageErrorMessage=_.$V((B=h.data)==null?void 0:B.invalidError):h.errorMessage=h.errorMessage===""?_.$V((A=h.data)==null?void 0:A.invalidError):_.$V((d=h.data)==null?void 0:d.multiFileError);vA.jumpTo(4);break}b=S.value;b.cropped&&_.F1(h.hostElement,"yt-backstage-multi-image-cropped");
if(b.invalidAspectRatio){O=K=W=void 0;v?h.addImageErrorMessage=_.$V((W=h.data)==null?void 0:W.invalidAspectRatioError):h.errorMessage=h.errorMessage===""?_.$V((K=h.data)==null?void 0:K.invalidAspectRatioError):_.$V((O=h.data)==null?void 0:O.multiFileError);vA.jumpTo(4);break}return vA.yield(bFO(h.JSC$15693_imageId,D.detail[I],b.transformedData),8);case 8:R=vA.yieldResult,h.images.push(R),h.JSC$15693_imageId++;case 4:C=f.next();vA.jumpTo(3);break;case 5:if(h.errorMessage!==""||h.addImageErrorMessage!==
"")return vA.return();v?ph4(h.uploadManager,[h.images[h.images.length-1]]):ph4(h.uploadManager,h.images);h.images=[].concat(_.j_(h.images));h.selectedImageIndex=v?Math.max(h.images.length-1,0):0;_.F1(h.hostElement,"yt-backstage-multi-image-select");_.YI(vA)}})};
_.V.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.V.validateImages=function(D){if(D.length>this.maxNumImagesPerPost){var v;return _.$V((v=this.data)==null?void 0:v.multiImageExceedMaxImageCountError)}var h=1048576*this.maxFileSizeMb;D=D.filter(function(G){return G.size>h}).length;
if(D===0)return"";var a,Q;D=D>1?(a=this.data)==null?void 0:a.multiFileError:(Q=this.data)==null?void 0:Q.fileSizeError;return _.$V(D)};
_.V.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.j_(this.images));this.selectedImageIndex=0};
_.V.repositionImage=function(D){this.images[this.selectedImageIndex].previewCoordinates=D.event_.detail;this.images=[].concat(_.j_(this.images))};
_.V.getAllUploadStatuses=function(){var D=this,v,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return G.yield(D.uploadManager.getAllUploadStatuses(),2);v=G.yieldResult;h=_.P(v);for(a=h.next();!a.done;a=h.next())if(Q=a.value,Q.encryptedBlobId===void 0)return G.return(lmt(D.uploadManager));return G.return(v)})};
_.V.hasImages=function(){return this.images.length>0};
_.V.cancel=function(){for(var D=this.uploadManager,v=_.P(D.imagesUploadData),h=v.next();!h.done;h=v.next())D.cancel(h.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.F1(this.hostElement,"yt-backstage-multi-image-cancel")};
_.GT.Object.defineProperties(N0.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.imageUploadEndpoint)==null?void 0:(v=D.imageValidationInfo)==null?void 0:v.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.imageUploadEndpoint)==null?void 0:(v=D.imageValidationInfo)==null?void 0:v.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var D,v;if((D=this.data)==null?0:(v=D.icon)==null?0:v.iconType)return _.SQ(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var D=this;return(this.images||[]).map(function(v,h){return{renderer:{image:v,selected:h===D.selectedImageIndex}}})}}});
N0.prototype.setUpImagePicker=N0.prototype.setUpImagePicker;N0.prototype.onRendererstamperFinished=N0.prototype.onRendererstamperFinished;N0.prototype.observeDragToReorder=N0.prototype.observeDragToReorder;N0.prototype.observeAddImageError=N0.prototype.observeAddImageError;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],N0.prototype,"rendererStamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.qx9),_.n("design:type",Object)],N0.prototype,"ytReorderableBehavior",void 0);_.e([_.Br("#dropzone"),_.n("design:type",HTMLElement)],N0.prototype,"dropzone",void 0);_.e([_.Br("#select-link"),_.n("design:type",HTMLElement)],N0.prototype,"selectLink",void 0);_.e([_.Br("#thumbnail-drag-drop-area"),_.n("design:type",HTMLElement)],N0.prototype,"thumbnailDragDropArea",void 0);_.e([_.Br("#add-image-button-container"),_.n("design:type",HTMLElement)],N0.prototype,"addImageButtonContainer",void 0);
_.e([_.Br("#add-image-button"),_.n("design:type",HTMLElement)],N0.prototype,"addImageSelectButton",void 0);_.e([_.Br("#image-preview-container"),_.n("design:type",Object)],N0.prototype,"JSC$15693_imagePreviewContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],N0.prototype,"addImageErrorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],N0.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],N0.prototype,"errorMessage",void 0);
_.e([_.Y(),_.n("design:type",Object)],N0.prototype,"imageUploadEndpoint",void 0);_.e([_.Y(),_.n("design:type",Array)],N0.prototype,"images",void 0);_.e([_.Y(),_.n("design:type",lR)],N0.prototype,"initialPicker",void 0);_.e([_.Y(),_.n("design:type",lR)],N0.prototype,"addImagePicker",void 0);_.e([_.Y(),_.n("design:type",Ib)],N0.prototype,"uploadManager",void 0);_.e([_.Y(),_.n("design:type",Object)],N0.prototype,"selectedImageIndex",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N0.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N0.prototype,"maxNumImagesPerPost",void 0);_.e([_.N("imageUploadEndpoint"),_.n("design:type",Number),_.n("design:paramtypes",[])],N0.prototype,"maxAspectRatio",null);_.e([_.N("imageUploadEndpoint"),_.n("design:type",Number),_.n("design:paramtypes",[])],N0.prototype,"maxFileSizeMb",null);
_.e([_.N("data.icon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],N0.prototype,"dropIcon",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N0.prototype,"selectionCancel",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N0.prototype,"previewCancel",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N0.prototype,"dataForAddImageButton",null);
_.e([_.N("errorMessage"),_.n("design:type",String),_.n("design:paramtypes",[])],N0.prototype,"dropzoneClass",null);_.e([_.N("images"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N0.prototype,"showImagesPreview",null);_.e([_.N("images"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N0.prototype,"containMaxImages",null);_.e([_.Ni("addImageErrorMessage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"observeAddImageError",null);
_.e([_.Ni("showImagesPreview"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"observeDragToReorder",null);_.e([_.N("images","selectedImageIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],N0.prototype,"selectedImageData",null);_.e([_.N("images","selectedImageIndex"),_.n("design:type",Array),_.n("design:paramtypes",[])],N0.prototype,"thumbnailRenderers",null);
_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"onRendererstamperFinished",null);_.e([_.Ni("imageUploadEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"setUpImagePicker",null);_.e([_.m({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],N0);
_.w(N0,"ytd-backstage-multi-image-select-renderer",function(){if(sKb!==void 0)return sKb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return sKb=D},{mode:1});var H$9;var yt9;var wht;var Yv=function(){var D=_.c.apply(this,arguments)||this;D.boundCaptureFocus=function(v){D.onCaptureFocus(v)};
return D};
_.J(Yv,_.c);_.V=Yv.prototype;_.V.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.V.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.V.onCaptureFocus=function(D){_.Pr(D).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.V.getIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.V.onSelect=function(){var D;if((D=this.data)==null?0:D.onSelectCommand)if(_.g("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var v;((v=_.k(this.data.onSelectCommand.commandMetadata,_.Sa))==null?0:v.url)?_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.xd().resolve(_.fx).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.GT.Object.defineProperties(Yv.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.$V(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}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Yv.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Yv.prototype,"data",void 0);_.e([_.Br("#item"),_.n("design:type",HTMLElement)],Yv.prototype,"item",void 0);_.e([_.N("data.label"),_.n("design:type",String),_.n("design:paramtypes",[])],Yv.prototype,"label",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Yv.prototype,"value",null);_.e([_.m({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Yv);
_.w(Yv,"ytd-privacy-dropdown-item-renderer",function(){if(wht!==void 0)return wht;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wht=D},{mode:1});var B_=function(){var D=_.c.apply(this,arguments)||this;D.value="";D.label="";D.disabled=!1;return D};
_.J(B_,_.c);_.V=B_.prototype;_.V.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"}}}};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.V.dataChanged=function(){this.reset()};
_.V.valueChanged=function(){var D;if(this.value&&(D=this.data)!=null&&D.entries){D=_.P(this.data.entries);for(var v=D.next();!v.done;v=D.next())if((v=this.getRendererForEntry(v.value))&&this.getItemRendererValue(v)===this.value){this.label=this.ytComponentBehavior.getSimpleString(v.label);break}}};
_.V.setInitialLabel=function(){if(this.data&&this.data.entries)for(var D=_.P(this.data.entries),v=D.next();!v.done;v=D.next())if(v=this.getRendererForEntry(v.value)){if(v.isSelected){this.label=this.ytComponentBehavior.getSimpleString(v.label);break}this.data.label&&(this.label=this.data.label)}};
_.V.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var D=_.P(this.data.entries),v=D.next();!v.done;v=D.next()){v=this.getRendererForEntry(v.value);var h=void 0;if((h=v)==null?0:h.isSelected)return this.getItemRendererValue(v)||-1}return-1};
_.V.getItemRendererValue=function(D){return"stringValue"in D||"int32Value"in D?D.stringValue||D.int32Value||null:null};
_.V.getRendererForEntry=function(D){return D.dropdownItemRenderer||D.privacyDropdownItemRenderer||D.navigationDropdownItemRenderer||null};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("value-changed",this.value))};
_.V.updateValueFromBinding=function(D){this.value=D.detail.value};
B_.prototype.valueChangedForBinding=B_.prototype.valueChangedForBinding;B_.prototype.valueChanged=B_.prototype.valueChanged;B_.prototype.dataChanged=B_.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],B_.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],B_.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],B_.prototype,"value",void 0);_.e([_.Y(),_.n("design:type",Object)],B_.prototype,"label",void 0);_.e([_.Br("#entries"),_.n("design:type",Object)],B_.prototype,"entries",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B_.prototype,"disabled",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B_.prototype,"dataChanged",null);
_.e([_.qi("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B_.prototype,"valueChanged",null);_.e([_.Ni("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B_.prototype,"valueChangedForBinding",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],B_);
_.w(B_,"ytd-flat-dropdown-renderer",function(){if(yt9!==void 0)return yt9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yt9=D},{mode:1});var eQ$;var c_=function(){var D=_.c.apply(this,arguments)||this;D.quizOptions=[];D.explanationPlaceholderText="";D.optionPlaceholderText="";D.correctAnswerIndex=-1;D.isMarkAnswerTooltipShown=!1;D.timer=0;return D};
_.J(c_,_.c);_.V=c_.prototype;_.V.dataChanged=function(){this.optionPlaceholderText=_.$V(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.$V(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.V.onMarkCorrectAnswer=function(D){var v,h=((v=this.quizOptions[this.correctAnswerIndex])==null?void 0:v.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[D.model.index]=Object.assign({},this.quizOptions[D.model.index],{explanationText:h,isCorrect:!0});this.correctAnswerIndex=D.model.index;this.quizOptions=[].concat(_.j_(this.quizOptions))};
_.V.updatePlaceholderTexts=function(){for(var D=!1,v=[],h=0;h<this.quizOptions.length;h++){var a=this.optionPlaceholderText+" "+(h+1),Q=void 0;((Q=this.quizOptions[h])==null?void 0:Q.placeholderText)!==a?(D=!0,v.push(Object.assign({},this.quizOptions[h],{placeholderText:a}))):v.push(this.quizOptions[h])}D&&(this.quizOptions=v);this.isValid()?_.F1(this.hostElement,"yt-commentbox-post-enable"):_.F1(this.hostElement,"yt-commentbox-post-disable")};
_.V.getSimpleString=function(D){return _.$V(D)};
_.V.createQuizOptions=function(D){var v=[],h;D=(h=D==null?void 0:D.minQuizOptions)!=null?h:0;for(h=0;h<D;h++)v.push(this.createQuizOption());return v};
_.V.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.j_(this.quizOptions),[this.createQuizOption()]))};
_.V.onInput=function(){this.quizOptions=[].concat(_.j_(this.quizOptions))};
_.V.onExplanationInput=function(){_.F1(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.V.onRemoveQuizOption=function(D){this.quizOptions.splice(D.model.index,1);D.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:D.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.j_(this.quizOptions));this.quizOptions.length===0&&_.F1(this.hostElement,"yt-quiz-attachment-dismiss")};
_.V.updateHintRenderer=function(){var D=this;clearTimeout(this.timer);this.timer=setTimeout(function(){D.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.V.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var D=0,v=0,h=_.P(this.quizOptions),a=h.next();!a.done;a=h.next()){a=a.value;var Q=void 0;if(((Q=a.optionText)==null?void 0:Q.trim())!==""||a.isCorrect){a.isCorrect&&v++;Q=void 0;if(this.hasCustomOptionText&&((Q=a.optionText)==null?void 0:Q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;D++}}return D>=
Number(this.editorInfo.minQuizOptions)&&v===1};
_.V.getPostCreateOptions=function(){for(var D=[],v=_.P(this.quizOptions),h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0;((a=h.optionText)==null?void 0:a.trim())!==""&&D.push({pollOption:{text:h.optionText,explanation:h.explanationText},isCorrect:h.isCorrect})}return D};
_.V.getExplanationText=function(){var D;return((D=this.quizOptions[this.correctAnswerIndex])==null?void 0:D.explanationText)||""};
_.V.maybeDisplayMarkAnswerEduToolTip=function(){var D,v,h,a,Q,G,x;this.shouldShowMarkAnswerTooltip()&&((D=this.editorInfo)==null?0:(v=D.markAnswerButton)==null?0:(h=v.buttonRenderer)==null?0:(a=h.hint)==null?0:(Q=a.hintRenderer)==null?0:(G=Q.content)==null?0:(x=G.bubbleHintRenderer)==null?0:x.text)&&(_.XQ.getInstance(),D=AU(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(D==null?void 0:D.length)>0&&this.optionSelectors&&_.lP(D[0],this.optionSelectors[0]))};
_.V.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var D=0,v=_.P(this.quizOptions),h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0;((a=h.optionText)==null?void 0:a.trim())!==""&&D++;if(h.isCorrect)return!1}return D<2?!1:!0};
_.V.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.V.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.V.updateOptionTextFromBinding=function(D){if(D.target){var v=Array.from(_.ZW(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(D.target);if(v>=0){var h;this.quizOptions[v].optionText=(h=D.detail.value)!=null?h:""}}};
_.GT.Object.defineProperties(c_.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.editorInfo)==null?void 0:(v=D.addOptionButton)==null?void 0:v.buttonRenderer;h&&(h.style="STYLE_SUGGESTIVE",h.size="SIZE_SMALL",h.isDisabled=!this.isAllowedToAddOption);return(h==null?0:h.text)?h:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,v;return this.quizOptions.length<((v=(D=this.editorInfo)==null?void 0:D.maxQuizOptions)!=null?v:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(D){var v;return(v=D.optionText)==null?void 0:v.trim()})}}});
c_.prototype.updatePlaceholderTexts=c_.prototype.updatePlaceholderTexts;c_.prototype.dataChanged=c_.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],c_.prototype,"editorInfo",void 0);_.e([_.Y(),_.n("design:type",Array)],c_.prototype,"quizOptions",void 0);_.e([_.Y(),_.n("design:type",Object)],c_.prototype,"explanationPlaceholderText",void 0);_.e([_.cr(".option-selector-button"),_.n("design:type",Array)],c_.prototype,"optionSelectors",void 0);
_.e([_.qi("editorInfo"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c_.prototype,"dataChanged",null);_.e([_.N("editorInfo","isAllowedToAddOption","quizOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],c_.prototype,"addAnswerButton",null);_.e([_.N("editorInfo","quizOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],c_.prototype,"isAllowedToAddOption",null);
_.e([_.qi("quizOptions"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c_.prototype,"updatePlaceholderTexts",null);_.e([_.N("quizOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],c_.prototype,"hasCustomOptionText",null);_.e([_.m({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],c_);
_.w(c_,"ytd-backstage-quiz-editor-renderer",function(){if(eQ$!==void 0)return eQ$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return eQ$=D},{mode:2});var n69;var O$1=(k2.FIRSTDAYOFWEEK+1)%7;var KA1;var TUt=[],RQt=0,i$R=0;RQt=0;i$R=24;if(.25*(i$R-RQt)<0)KA1=[];else{for(var WAy=RQt;WAy<i$R;WAy+=.25)TUt.push(WAy);KA1=TUt}var tpy=KA1.map(function(D){D=D*60*60;return{secondsSinceMidnight:D,text:(new hQ(7)).format(new Date(0,0,0,0,0,D))}});var rtt;var Af=function(){var D=_.c.apply(this,arguments)||this;D.skipNextOpenDialog=!1;D.errorMessage="";D.previousMonthLabel=_.p1("PREVIOUS_MONTH_LABEL");D.nextMonthLabel=_.p1("NEXT_MONTH_LABEL");return D};
_.J(Af,_.c);_.V=Af.prototype;_.V.attached=function(){var D=this,v=new MutationObserver(function(){D.JSC$15735_calendarMain.scrollHeight>0&&(v.disconnect(),D.calendarConfig&&D.calendarConfig.selectedDate&&D.scrollToDate())});
v.observe(this.JSC$15735_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){v.disconnect()},1E3)};
_.V.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.V.onDateTextChange=function(){if(this.calendarConfig){var D=this.validateDateText();D.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(D.details)):this.textbox.setAttribute("invalid","")}};
_.V.handleDayClick=function(D){D.model.day.date&&(this.commitDate(D.model.day.date),this.dialog.close())};
_.V.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var D=KuO(this.calendarConfig.selectedDate,this.renderData);D!==void 0&&this.JSC$15735_calendarMain.scrollToIndex(D)}};
_.V.scrollToNextMonth=function(){this.JSC$15735_calendarMain.scrollToIndex(this.JSC$15735_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$15735_calendarMain.firstVisibleIndex===0&&this.JSC$15735_calendarMain.scrollTo(0,0);this.JSC$15735_calendarMain.scrollToIndex(this.JSC$15735_calendarMain.firstVisibleIndex-1)};
_.V.onFormSubmit=function(D){D.preventDefault();this.calendarConfig&&(D=this.validateDateText(),D.isValid&&(this.commitDate(D.details),this.dialog.close()))};
_.V.onEscOrClickingOutside=function(D){D=D.detail.path&&!!D.detail.path.length&&D.detail.path[0];if(D.classList.contains("ytd-calendar-date-picker")){D===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var v=0;v<this.dropdownButton.children.length;v++)this.dropdownButton.children[v]===D&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}D=this.textbox.value!==this.dateText;v=this.validateDateText();D&&v.isValid&&this.commitDate(v.details);this.dialog.close();this.textbox.value=
this.dateText};
_.V.commitDate=function(D){this.calendarConfig&&(this.set("calendarConfig.selectedDate",D),_.F1(this.hostElement,"ytd-calendar-date-selected",D))};
_.V.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var D=this.textbox.value;var v=new Date;D=(new fac(2)).parse(D,v,{validate:!0})===D.length?n0q(v):void 0;if(!D)return this.errorMessage=_.p1("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};v=this.calendarConfig.start;var h=this.calendarConfig.end;if(mRc(D,v))return this.errorMessage=_.p1("ENTER_DATE_OR_LATER",{allowed_date:epA(v)}),{isValid:!1,details:void 0};if(mRc(h,D))return this.errorMessage=
_.p1("ENTER_DATE_OR_EARLIER",{allowed_date:epA(h)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:D}};
_.GT.Object.defineProperties(Af.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?epA(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var D=this.calendarConfig,v=[],h=0;h<7;h++)v.push(k2.NARROWWEEKDAYS[(h+O$1)%7]);h=[];for(var a=new Date(D.start.year,D.start.month);a.getFullYear()<D.end.year||a.getFullYear()===D.end.year&&a.getMonth()<=D.end.month;){var Q=h,G=Q.push,x=a.getFullYear(),f=a.getMonth(),C=D,U=void 0,L=[],Z=Object.freeze({extraCssClass:"invisible",debugClass:""}),E=new Date(x,f),I=n0q(E);E=E.getDay();for(var S=n0q(new Date);I.month===
f;){E!==O$1&&U||(U=Array.from({length:7}).fill(Z),L.push(U));var B={date:{year:x,month:f,day:I.day},extraCssClass:"",debugClass:""};C.selectedDate&&B.date&&sOi(B.date,C.selectedDate)&&(B.extraCssClass+=" selected");if(mRc(I,C.start)||mRc(C.end,I))B.extraCssClass+=" disabled";sOi(I,S)&&(B.extraCssClass+=" today");B.extraCssClass=B.extraCssClass.trim();U[(E-O$1+7)%7]=B;I=yi7(I);E=(E+1)%7}G.call(Q,{weeks:L,monthLabel:k2.SHORTMONTHS[f]+" "+x,year:x,month:f,monthLabelExtraCssClass:L[0][2]===Z?"shift-down-label":
""});a.setMonth(a.getMonth()+1)}return{months:h,daysOfWeekLabel:v}}}}});
Af.prototype.onEscOrClickingOutside=Af.prototype.onEscOrClickingOutside;Af.prototype.scrollToDate=Af.prototype.scrollToDate;_.e([_.Y(),_.n("design:type",Object)],Af.prototype,"calendarConfig",void 0);_.e([_.Y(),_.n("design:type",Object)],Af.prototype,"skipNextOpenDialog",void 0);_.e([_.Y(),_.n("design:type",Object)],Af.prototype,"errorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],Af.prototype,"previousMonthLabel",void 0);
_.e([_.Y(),_.n("design:type",Object)],Af.prototype,"nextMonthLabel",void 0);_.e([_.Br("#textbox"),_.n("design:type",HTMLInputElement)],Af.prototype,"textbox",void 0);_.e([_.Br("#calendar-dialog"),_.n("design:type",Object)],Af.prototype,"dialog",void 0);_.e([_.Br("#calendar-main"),_.n("design:type",Object)],Af.prototype,"JSC$15735_calendarMain",void 0);_.e([_.Br("#date-picker"),_.n("design:type",HTMLElement)],Af.prototype,"dropdownButton",void 0);
_.e([_.N("calendarConfig.selectedDate"),_.n("design:type",String),_.n("design:paramtypes",[])],Af.prototype,"dateText",null);_.e([_.N("calendarConfig","calendarConfig.selectedDate"),_.n("design:type",Object),_.n("design:paramtypes",[])],Af.prototype,"renderData",null);_.e([_.Ni("renderData","calendarConfig.selectedDate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Af.prototype,"scrollToDate",null);
_.e([_.lc("iron-overlay-canceled"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Af.prototype,"onEscOrClickingOutside",null);_.e([_.Ry({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Af);
_.w(Af,"ytd-calendar-date-picker",function(){if(rtt!==void 0)return rtt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rtt=D},{mode:2});var ur$=_.p1("UTC_OFFSET_FORMAT",{utc_offset:(new hQ("Z")).format(new Date)}),Dg4=(new Date).getTimezoneOffset()*-60,vOp=new Date,hXF,aC$=vR(vOp.getTimezoneOffset());hXF=vt4(aps(aC$,vOp));var $g4=_.p1("LOCAL_TIME_GMT_LABEL",{gmt_text:hXF.replace("+0","+").replace("-0","-").replace(":00","")}),q0=function(){var D=_.c.apply(this,arguments)||this;D.selectedTimeIndex=0;D.selectedTimezoneIndex=0;D.timeOfDayOptions=tpy;return D};
_.J(q0,_.c);_.V=q0.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var D=w3r();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=D,this.selectedTimeIndex=0;else{var v=OFo(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},D,{selectedDate:v.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(h){return h.secondsSinceMidnight===v.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.V.onDatePicked=function(D){this.selectedDate=D.detail};
_.V.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.F1(this.hostElement,"ytd-date-time-selection-cancelled")};
_.V.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var D=this.selectedDate;D=new Date(D.year,D.month,D.day);_.F1(this.hostElement,"ytd-date-time-selection-update",Math.floor(D.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+D.getTimezoneOffset()*60))}};
_.V.getTimezoneFormat=function(D){return D.localizedDisplayText?D.localizedDisplayText:_.p1("TIMEZONE_FORMAT",{utc_offset_text:""+D.localizedUtcOffset,city_name:""+D.localizedName})};
_.V.updateSelectedTimeIndexFromBinding=function(D){this.selectedTimeIndex=D.detail.value};
_.V.updateSelectedTimezoneIndexFromBinding=function(D){this.selectedTimezoneIndex=D.detail.value};
_.GT.Object.defineProperties(q0.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data.timezoneOptions;var v={name:"Etc/Unknown",localizedName:_.p1("LOCAL_TIME_LABEL"),localizedUtcOffset:ur$,utcOffsetSec:""+Dg4,localizedDisplayText:$g4};D?D.length&&D[0].name!==v.name&&(D[0].localizedDisplayText||(v.localizedDisplayText=""),D.unshift(v)):D=[v];return D}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
q0.prototype.onDateTimeTimezoneChange=q0.prototype.onDateTimeTimezoneChange;q0.prototype.onDatePicked=q0.prototype.onDatePicked;q0.prototype.updateDefaultSelectedValue=q0.prototype.updateDefaultSelectedValue;_.e([_.Y(),_.n("design:type",Object)],q0.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],q0.prototype,"calendarConfig",void 0);_.e([_.Y(),_.n("design:type",Object)],q0.prototype,"selectedDate",void 0);_.e([_.Y(),_.n("design:type",Object)],q0.prototype,"selectedTimeIndex",void 0);
_.e([_.Y(),_.n("design:type",Object)],q0.prototype,"selectedTimezoneIndex",void 0);_.e([_.Br("#time-listbox"),_.n("design:type",Object)],q0.prototype,"timeListBox",void 0);_.e([_.Br("#timezone-listbox"),_.n("design:type",Object)],q0.prototype,"timezoneListBox",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],q0.prototype,"rendererStamperBehavior",void 0);_.e([_.N("data.timezoneOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],q0.prototype,"timeZones",null);
_.e([_.qi("data","timeZones"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q0.prototype,"updateDefaultSelectedValue",null);_.e([_.N("selectedTimezoneIndex","timeZones"),_.n("design:type",Object),_.n("design:paramtypes",[])],q0.prototype,"selectedTimezone",null);_.e([_.N("selectedTimeIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],q0.prototype,"selectedTime",null);
_.e([_.lc("ytd-calendar-date-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],q0.prototype,"onDatePicked",null);_.e([_.Ni("selectedTimezone","selectedTime","selectedDate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q0.prototype,"onDateTimeTimezoneChange",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],q0);
_.w(q0,"ytd-date-time-picker-renderer",function(){if(n69!==void 0)return n69;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return n69=D},{mode:1});var QzJ;var bR=function(){var D=_.c.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.dismissTapHandler()};
D.dismissButtonOverrides={size:"XS"};return D};
_.J(bR,_.c);bR.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}}}}}};
bR.prototype.dismissTapHandler=function(){_.F1(this.hostElement,"yt-backstage-attachment-dismissed")};
bR.prototype.computeAttachmentType=function(D){return D?D.backstageImageRenderer?"image":D.videoRenderer?"video":"none":"none"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bR.prototype,"attachmentPreview",void 0);_.e([_.Y(),_.n("design:type",Object)],bR.prototype,"dismissButton",void 0);_.e([_.Y(),_.n("design:type",Object)],bR.prototype,"boundOnTapDismissButton",void 0);
_.e([_.Y(),_.n("design:type",Object)],bR.prototype,"dismissButtonOverrides",void 0);_.e([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.n("design:type",String)],bR.prototype,"attachmentType",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],bR);
_.w(bR,"ytd-backstage-dismissable-attachment",function(){if(QzJ!==void 0)return QzJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return QzJ=D},{mode:1});var GBy;var dS=function(){var D=_.c.apply(this,arguments)||this;D.selectedVideoId=void 0;D.picker=void 0;D.dismissButtonOverrides={size:"XS"};D.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return D};
_.J(dS,_.c);_.V=dS.prototype;_.V.onServiceRequestCompleted=function(D){D.stopPropagation()};
_.V.handleAddVideoPreviewAction=function(D){D=this.get("addVideoPreviewAction",D);this.onGetVideoPreviewSuccess(D)};
_.V.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}}}}}};
_.V.onLaunchVideoPicker=function(D){var v=this,h=_.$V(this.get("addVideoLinkAction.title",D)),a=this.get("addVideoLinkAction.onePickHostId",D);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",D);a&&(this.picker||(h=_.Rx$(_.feu(a).setTitle(h).addView(ndM()).addView(exs()),function(Q){v.onPickVideo(Q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",D)||h.addView("youtube"),this.picker=h.build()),this.picker.setVisible(!0))};
_.V.onPickVideo=function(D){if(D)if(D.action==="cancel")_.F1(this.hostElement,"yt-video-link-button-cancel");else if(D.action==="picked"){D=D.docs;if(!D||D.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(D=(D==null?0:D.length)?D[0]:void 0)?D.id:void 0;this.setVideoPreview()}};
_.V.setVideoPreview=function(){var D=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){D.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.V.onGetVideoPreviewSuccess=function(D){if(D&&D.videoPreview&&D.cancelButton)this.videoPreview=D.videoPreview,this.cancelButton=D.cancelButton,_.F1(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.V.onGetVideoPreviewError=function(){this.cancel()};
_.V.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.F1(this.hostElement,"yt-video-link-cancel")};
_.V.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
dS.prototype.onServiceRequestCompleted=dS.prototype.onServiceRequestCompleted;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],dS.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],dS.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dS.prototype,"videoPreview",void 0);_.e([_.Y(),_.n("design:type",Object)],dS.prototype,"cancelButton",void 0);_.e([_.Y(),_.n("design:type",Object)],dS.prototype,"getVideoPreviewCommand",void 0);_.e([_.Y(),_.n("design:type",Object)],dS.prototype,"dismissButtonOverrides",void 0);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],dS.prototype,"onServiceRequestCompleted",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],dS);
_.w(dS,"ytd-backstage-video-link-attachment",function(){if(GBy!==void 0)return GBy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return GBy=D},{mode:1});var Vxy;var Pgs;var xgm;var jK=function(){return _.c.apply(this,arguments)||this};
_.J(jK,_.c);jK.prototype.dataChanged=function(){this.active=!1};
jK.prototype.onTap=function(){_.F1(this.hostElement,"yt-select-emoji-suggestion",this.data)};
jK.prototype.identity=function(D){return D};
_.GT.Object.defineProperties(jK.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;if((D=this.data)==null?0:(v=D.image)==null?0:(h=v.thumbnails)==null?0:(a=h[0])==null?0:a.url)return D=this.data.image.thumbnails[0].url,D.startsWith("data:image/svg+xml")?jR(D):_.nz(D)}}});
jK.prototype.dataChanged=jK.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],jK.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],jK.prototype,"active",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jK.prototype,"dataChanged",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],jK.prototype,"imageSrc",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],jK);
_.w(jK,"ytd-emoji-suggestion",function(){if(xgm!==void 0)return xgm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xgm=D},{mode:1});var MxR=/.*([:@#].*?)$/,sD=function(){var D=_.c.apply(this,arguments)||this;D.suggestions=[];D.suggestionIndex=-1;D.JSC$15763_lastSuggestionRange=null;return D};
_.J(sD,_.c);_.V=sD.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.V.getSuggestions=function(D){var v=[],h=bv$(this.emojiManager,D.substr(0,3));if(h)for(var a in h)if(a.toLocaleLowerCase().indexOf(D)===0){var Q=h[a];if(Q&&Q.emojiId){Q=zP(this.emojiManager,Q.emojiId);var G=void 0,x=void 0,f=void 0,C=void 0,U=((G=Q)==null?0:G.isCustomEmoji)?(x=Q)==null?void 0:(f=x.shortcuts)==null?void 0:f[0]:(C=Q)==null?void 0:C.emojiId;G=void 0;v.push({suggestion:{image:(G=Q)==null?void 0:G.image,alt:U,text:a}});if(v.length>=64)break}}return v?v.sort(function(L,Z){return Z.suggestion.text<
L.suggestion.text?-1:Z.suggestion.text===L.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(D){_.F1(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15763_lastSuggestionRange,text:D.alt});this.dropdown.opened=!1};
_.V.updateSuggestionsAtCaret=function(D){this.updateSuggestions(D,this.retrieveTextBeforeRange(D))};
_.V.offsetStartOfRangeBy=function(D,v){D.startOffset>=v&&D.setStart(D.startContainer,D.startOffset-v)};
_.V.updateSuggestions=function(D,v){var h=this;this.JSC$15763_lastSuggestionRange&&(this.JSC$15763_lastSuggestionRange.detach(),this.JSC$15763_lastSuggestionRange=null);if((v=MxR.exec(v))&&v.length&&(v=v[v.length-1].toLocaleLowerCase(),v.length>2||v===":_")&&(this.offsetStartOfRangeBy(D,v.length),this.JSC$15763_lastSuggestionRange=D,(D=this.getSuggestions(v))&&D.length)){this.suggestions=D;_.$R(this,function(){h.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.V.onKeyDown=function(D){if(this.dropdown.opened)switch(D.key){case "Escape":this.dropdown.opened=!1;D.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);D.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.V.onKeyUp=function(D,v){switch(D.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(v);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(v)}};
_.V.onKeyPress=function(D){D.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),D.preventDefault())};
_.V.changeSuggestionIndex=function(D){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(D+this.suggestions.length)%this.suggestions.length,D=this.dropdownContent.children[this.suggestionIndex],D.active=!0,this.dropdownContent.scrollTop=D.offsetTop)};
_.V.retrieveTextBeforeRange=function(D){var v=D.startContainer;return v&&v.nodeType===Node.TEXT_NODE?v.textContent.substr(0,D.startOffset):""};
sD.prototype.onKeyPress=sD.prototype.onKeyPress;sD.prototype.onKeyUp=sD.prototype.onKeyUp;sD.prototype.onKeyDown=sD.prototype.onKeyDown;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Array)],sD.prototype,"suggestions",void 0);_.e([_.Y(),_.n("design:type",_.oS)],sD.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",Number)],sD.prototype,"verticalSuggestionsOffset",void 0);
_.e([_.Br("#dropdown"),_.n("design:type",Object)],sD.prototype,"dropdown",void 0);_.e([_.Br("#dropdown-content"),_.n("design:type",HTMLDivElement)],sD.prototype,"dropdownContent",void 0);_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],sD.prototype,"onKeyDown",null);_.e([_.lc("keyup"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent,Range]),_.n("design:returntype")],sD.prototype,"onKeyUp",null);
_.e([_.lc("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],sD.prototype,"onKeyPress",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-emoji-input"})],sD);
_.w(sD,"ytd-emoji-input",function(){if(Pgs!==void 0)return Pgs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Pgs=D},{mode:2});var fCF;var m8=function(){var D=_.c.apply(this,arguments)||this;D.hasMaxOptions=!1;return D};
_.J(m8,_.c);_.V=m8.prototype;_.V.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.V.setPrefilledChoices=function(D){var v=this;this.set("pollOptions",[]);var h;for(h=0;h<Math.min(D.length,this.data.maxPollOptions);h++)this.push("pollOptions",D[h].substring(0,this.data.maxPollOptionChars));for(;h<this.data.minPollOptions;h++)this.push("pollOptions","");this.hasMaxOptions=h>=this.data.maxPollOptions;_.$R(this,function(){for(var a=v.pollOptions,Q=_.ZW(v.hostElement).querySelectorAll(".poll-option-input"),G=0;G<Q.length;G++)Q[G].value=a[G]})};
_.V.focusChanged=function(){_.SB(this.hostElement)};
_.V.onInput=function(){var D=this;_.aq(this,"onInput",function(){D.isValid()?_.F1(D.hostElement,"yt-commentbox-post-enable"):_.F1(D.hostElement,"yt-commentbox-post-disable")},300)};
_.V.setPollOptions=function(){var D=[],v,h=((v=this.data)==null?0:v.minPollOptions)?this.data.minPollOptions:0;for(v=0;v<h;v++)D.push("");return D};
_.V.addPollOption=function(){var D=this;_.F1(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.HK.addLowPriorityJob(function(){var v;(v=_.ZW(D.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||v.focus()})};
_.V.onRemovePollOption=function(D){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.F1(this.hostElement,"yt-poll-attachment-dismiss")):(D=this.repeat.indexForElement(D.target.parentNode),D!==null&&(this.splice("pollOptions",D,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.F1(this.hostElement,"yt-commentbox-post-enable"))))};
_.V.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.V.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var D=0,v=this.pollOptions.length;D<v;D++)if(this.pollOptions[D].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.V.getPollOptions=function(){return this.pollOptions};
_.V.setPollOptionsFromInputs=function(){for(var D=_.ZW(this.hostElement).querySelectorAll(".poll-option-input"),v=0;v<D.length;v++)this.pollOptions[v]=D[v].value.trim()};
_.V.clearPollOptions=function(){var D=_.ZW(this.hostElement).querySelectorAll(".poll-option-input");D=_.P(D);for(var v=D.next();!v.done;v=D.next())v.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.V.getSimpleString=function(D){return _.$V(D)};
_.V.updateValueFromBinding=function(D){if(D.target&&this.pollOptions){var v=Array.from(_.ZW(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(D.target);if(v>=0){var h;this.pollOptions[v]=(h=D.detail.value)!=null?h:"";this.notifyPath("pollOptions."+v)}}};
m8.prototype.dataChanged=m8.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],m8.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Array)],m8.prototype,"pollOptions",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],m8.prototype,"hasMaxOptions",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],m8.prototype,"enableCreationBox",void 0);
_.e([_.Br("#repeat"),_.n("design:type",nZ)],m8.prototype,"repeat",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m8.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-poll-attachment"})],m8);
_.w(m8,"ytd-poll-attachment",function(){if(fCF!==void 0)return fCF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fCF=D},{mode:2});var Cg4;var oOs;var FU$;var zX9;var H_=function(){return _.c.apply(this,arguments)||this};
_.J(H_,_.c);_.GT.Object.defineProperties(H_.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],H_.prototype,"rendererBehaviors",void 0);_.e([_.Y(),_.n("design:type",Object)],H_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],H_.prototype,"focused",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("focused"),_.n("design:type",Object),_.n("design:paramtypes",[])],H_.prototype,"ariaSelected",null);_.e([_.Ry({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],H_);
_.w(H_,"yt-user-mention-suggestion-renderer",function(){if(zX9===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;FU$===void 0&&(FU$=document.createElement("template"));var a=FU$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);zX9=D}D=zX9;return D},{mode:2});var Ugp;var LUJ;var yZ=function(){var D=_.c.apply(this,arguments)||this;D.focusedSuggestionIndex=-1;return D};
_.J(yZ,_.c);_.V=yZ.prototype;_.V.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.V.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.V.setFocusedSuggestionIndex=function(D){!this.data||!this.data.suggestions||D<0||D>=this.data.suggestions.length||(this.focusedSuggestionIndex=D,D=this.getSuggestionId(D),this._setFocusedSuggestionId(D))};
_.V.advanceSuggestion=function(D){this.focusedSuggestionIndex===-1||D!==-1&&D!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+D),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.V.ensureSuggestionVisible=function(D){D=this.getSuggestionId(D);D=_.ZW(this.hostElement).querySelector("[id="+D+"]");D!=null&&(D.offsetTop<this.hostElement.scrollTop?D.scrollIntoView(!0):D.offsetTop+D.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&D.scrollIntoView(!1))};
_.V.getSuggestionId=function(D){return"user-mention-suggestion-"+D};
_.V.onSuggestionTap=function(D){var v=_.k(D.model.item,lL9);this.ytRendererBehavior.logExplicitClick(v);_.F1(this.hostElement,"yt-user-mention-suggestion-selected",{data:v,index:D.model.index})};
_.V.onSuggestionMouseMove=function(D){D.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(D.model.index)};
_.V.isSuggestionFocused=function(D,v){return D===v};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("focused-suggestion-id-changed",this.focusedSuggestionId))};
yZ.prototype.focusedSuggestionIdChangedForBinding=yZ.prototype.focusedSuggestionIdChangedForBinding;yZ.prototype.onDomChange=yZ.prototype.onDomChange;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],yZ.prototype,"focusedSuggestionIndex",void 0);_.e([_.Y({readOnly:!0}),_.n("design:type",String)],yZ.prototype,"focusedSuggestionId",void 0);
_.e([_.lc("dom-change"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],yZ.prototype,"onDomChange",null);_.e([_.Ni("focusedSuggestionId"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yZ.prototype,"focusedSuggestionIdChangedForBinding",null);_.e([_.Ry({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],yZ);
_.w(yZ,"yt-user-mention-suggestions-dropdown",function(){if(LUJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;Ugp===void 0&&(Ugp=document.createElement("template"));var a=Ugp;h.call(v,a.content.cloneNode(!0),D.content.firstChild);LUJ=D}D=LUJ;return D},{mode:2});var wS=function(){var D=_.c.apply(this,arguments)||this;D.suggestionsResponse=null;D.activeMention=null;D.selectionChangeListener=D.onSelectionChange.bind(D);D.handlesEnabled=_.g("enable_handles_in_mention_suggest_posts");D.handlesInMentionSuggestionsEnabled=_.g("handles_in_mention_suggest_posts");D.zeroPrefixMentionSuggestionEnabled=_.g("enable_zero_prefix_mention_suggestion_web");D.pendingQuery=null;D.flowNonce=null;return D};
_.J(wS,_.c);_.V=wS.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.V.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.V.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.V.hasSuggestions=function(D){return!!(D&&D.suggestions&&D.suggestions.length>0)};
_.V.onInput=function(){var D=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var v=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),h=this.activeMention.JSC$11351_getText().slice(-1)===" ",a=this.activeMention.JSC$11351_getText().slice(-2,-1)===" ",Q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11351_getText().slice(-2,
-1))>=0;Q=this.zeroPrefixMentionSuggestionEnabled&&Q;if(this.activeMention.isCollapsed()||(v||a||Q)&&h)this.cancelActiveMention();else{var G=this.activeMention.JSC$11351_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.aq(this,"requestSuggestions",function(){D.requestSuggestions(G)},100)}}}};
_.V.onServiceRequestSent=function(D){D.stopPropagation()};
_.V.onServiceRequestCompleted=function(D){D.stopPropagation();D=D.detail.data;D.query&&(!this.pendingQuery||this.pendingQuery!==D.query)||!this.zeroPrefixMentionSuggestionEnabled&&D.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=D,this.hasSuggestions(D)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.V.onServiceRequestError=function(D){D.stopPropagation()};
_.V.onUserMentionSuggestionSelected=function(D){this.selectSuggestion(D.detail.data,D.detail.index)};
_.V.onSelectionChange=function(){if(this.activeMention){var D=_.LS(),v=this.activeMention.JSC$11351_containsRange(D);D=D&&this.containsHelper(this.dropdown,D.getContainer());v||D||this.cancelActiveMention()}};
_.V.containsHelper=function(D,v){var h;if(((h=window.ShadyDOM)==null?void 0:h.noPatch)===!0)return D.contains(v);for(;v;){if(v===D)return!0;v=v instanceof ShadowRoot?v.host:v.parentNode}return!1};
_.V.maybeStartSuggest=function(){var D=_.LS();if(D&&D.isCollapsed()){var v=D.JSC$11351_getStartNode(),h=D.JSC$11351_getStartOffset();if(v instanceof Text&&!(h<1)){var a=v.textContent;!(a=a&&a.charAt(h-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(a)<0||(this.activeMention=_.vq(v,h-1,D.JSC$11351_getEndNode(),D.JSC$11351_getEndOffset()),this.flowNonce=m3(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.V.updateActiveMention=function(){if(this.activeMention){var D=_.LS();D&&D.isCollapsed()&&(this.activeMention=_.vq(this.activeMention.JSC$11351_getStartNode(),this.activeMention.JSC$11351_getStartOffset(),D.JSC$11351_getEndNode(),D.JSC$11351_getEndOffset()))}};
_.V.requestSuggestions=function(D){if(this.activeMention){var v={suggestions_query:D};this.pendingQuery=D;_.L1(this.hostElement,[this.suggestionsEndpoint,v])}};
_.V.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()};
_.V.focusPreviousSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),D.preventDefault())};
_.V.focusNextSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),D.preventDefault())};
_.V.selectFocusedSuggestion=function(D){if(this.hasSuggestions(this.suggestionsResponse)){var v=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.k(v,lL9)&&(this.selectSuggestion(_.k(v,lL9),this.dropdown.focusedSuggestionIndex),D.preventDefault())}};
_.V.selectSuggestion=function(D,v){if(D){var h=this.activeMention;if(h){var a=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&D.handle?_.RH(a,"\u00a0\u2068@"+D.handle+"\u2069\u00a0"):this.handlesEnabled?_.RH(a,"\u00a0"+D.displayName+"\u00a0"):_.RH(a,"\u00a0@"+D.displayName+"\u00a0");Rm(a,"/channel/"+D.channelId);a.classList.add("yt-formatted-string","yt-simple-endpoint");a.setAttribute("spellcheck","false");h.isCollapsed()||h.JSC$11351_removeContents();h.insertNode(a,!0);D=document.createTextNode(" ");
a.parentNode.insertBefore(D,a.nextSibling);window.getSelection().collapse(D,1);v={suggestionSelected:{suggestionIndex:v}};if(this.zeroPrefixMentionSuggestionEnabled){var Q;v.suggestionSelected.isZeroPrefix=((Q=this.suggestionsResponse)==null?void 0:Q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",v);this.cancelActiveMention();_.F1(this.hostElement,"yt-mention-inserted")}}};
_.V.getPositionTarget=function(D){return D&&D.getBrowserRangeObject()};
_.V.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.V.onFocusedSuggestionIdChanged=function(D){var v=_.FiO(this.hostElement)[0];v&&(D.detail.value?v.setAttribute("aria-activedescendant",D.detail.value):v.removeAttribute("aria-activedescendant"))};
_.V.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.V.logGELEvent=function(D,v){D={eventType:D,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};v&&(D=Object.assign(D,v));_.jj("userMentionAutoCompleteBoxEvent",D)};
wS.prototype.onDomChange=wS.prototype.onDomChange;wS.prototype.onUserMentionSuggestionSelected=wS.prototype.onUserMentionSuggestionSelected;wS.prototype.onServiceRequestError=wS.prototype.onServiceRequestError;wS.prototype.onServiceRequestCompleted=wS.prototype.onServiceRequestCompleted;wS.prototype.onServiceRequestSent=wS.prototype.onServiceRequestSent;wS.prototype.onInput=wS.prototype.onInput;_.e([_.l(_.Hq),_.n("design:type",Object)],wS.prototype,"ironA11yKeysBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],wS.prototype,"suggestionsEndpoint",void 0);_.e([_.Y(),_.n("design:type",Object)],wS.prototype,"suggestionsResponse",void 0);_.e([_.Y(),_.n("design:type",Object)],wS.prototype,"activeMention",void 0);_.e([_.Br("#dropdown"),_.n("design:type",Object)],wS.prototype,"dropdown",void 0);_.e([_.Br("#iron-dropdown"),_.n("design:type",Object)],wS.prototype,"ironDropdown",void 0);
_.e([_.lc("input"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wS.prototype,"onInput",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wS.prototype,"onServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wS.prototype,"onServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wS.prototype,"onServiceRequestError",null);_.e([_.lc("yt-user-mention-suggestion-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wS.prototype,"onUserMentionSuggestionSelected",null);
_.e([_.lc("dom-change"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],wS.prototype,"onDomChange",null);_.e([_.Ry({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],wS);
_.w(wS,"yt-user-mention-autosuggest-input",function(){if(oOs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Cg4===void 0&&(Cg4=document.createElement("template"));var a=Cg4;h.call(v,a.content.cloneNode(!0),D.content.firstChild);oOs=D}D=oOs;return D},{mode:2});var eK=null;
_.yT({is:"ytd-commentbox",_template:function(){if(Vxy!==void 0)return Vxy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Vxy=D},
behaviors:[_.KiO.YtHostElementBehavior,_.Hq,_.ed.YtActionHandlerBehavior,_.oY.YtComponentBehavior,_.ct.YtRendererstamperBehavior,_.DnM.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(D,v){return _.gR(D.entities,"aadcGuidelinesStateEntityPayload",v)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(D,v){return _.gR(D.entities,"commentboxStateEntity",v)},
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 _.Ua}},
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:_.g("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.g("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",_.pZ(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(D){this.fire(D?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(D){this.set("submitButtonDisabled",void 0);this.clear();D&&this.computeIsEmojiButtonDisplayed_(D)&&(D=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&D.updateEmojiCategories()},
observePrefilledImage_:function(D,v,h){this.isValidPrefilledImage_(D,v,h)&&(this.prefilledAttachment_="image",this.prefilledImageData_=v,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(D,v){this.isValidPrefilledVideo_(D,v)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(D){D&&D.pollData&&D.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(D.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.cN();this.focus()},
detached:function(){document.removeEventListener("tap",_.pZ(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var v=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(v,D);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var D=_.LS();if(D){D=D.getBrowserRangeObject();for(var v=D.commonAncestorContainer;v;){if(v===this.getEditableTextArea_())return D;v=v.parentNode}}D=this.getEditableTextArea_();D=_.DV(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,v,h){(v=this.emojiManager.createDocumentFragment(v,!0,!1,h===void 0?!0:h))&&v.childNodes.length!==0&&(D.collapsed||D.deleteContents(),h=v.lastChild,D.insertNode(v),_.kHJ(h).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var D=_.LS();if(D){var v=D.JSC$11351_getStartNode(),h=D.JSC$11351_getEndNode();if(TFc(v)&&TFc(h)){var a=D.JSC$11351_getStartOffset(),Q;if(_.E1&&v.nodeType===Node.ELEMENT_NODE&&(Q=_.kdt(v)))_.DV(Q,0).select();else{Q=Fv(v)?v:_.OV(v,Fv);var G=Fv(h)?h:_.OV(h,Fv);if(Q||G)if(D.isCollapsed()){if(v.nodeType===Node.TEXT_NODE){D=!0;a===v.length&&(D=!1);if(eK==="end"||eK==="right")D=!1;v=v.parentNode;D=[].concat(_.j_(v.parentNode.childNodes)).indexOf(v)+(D?0:1);_.DV(v.parentNode,
D).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.vq(h,D.JSC$11351_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(v=document.createTextNode("\u200b"),Q.parentNode.insertBefore(v,Q),_.vq(h,D.JSC$11351_getEndOffset(),v,0).select()):G&&(G.nextSibling&&G.nextSibling.length>0?_.vq(v,D.JSC$11351_getStartOffset(),G.nextSibling,1).select():(h=document.createTextNode("\u200b"),G.parentNode.insertBefore(h,G.nextSibling),_.vq(v,D.JSC$11351_getStartOffset(),h,h.length).select()));
eK=null}}else eK=null}else eK=null},
leftKeyPressed_:function(){eK="left"},
rightKeyPressed_:function(){eK="right"},
endKeyPressed_:function(){eK="end"},
maybeDeleteChip_:function(){var D=uMA(!0);if(D){var v=_.LS(),h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();_.ir(h,v,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=uMA(!1);if(D){var v=_.LS(),h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();_.ir(h,v,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var v=_.LS();if(v.isCollapsed()){var h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();var a=D2A(h,v,!0);a&&(_.ir(h,v,a,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var v=_.LS();if(v.isCollapsed()){var h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();var a=D2A(h,v,!1);a&&(_.ir(h,v,a,a.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onTap_:function(D){if(!D.defaultPrevented&&(D.currentTarget.tagName==="YTD-COMMENTBOX"&&Fv(D.target)&&D.preventDefault(),this.isEmojiPickerDisplayed)){var v=this.$$("#emojis"),h=this.$$("#emoji-button"),a=this.getEditableTextArea_();if((D=D.path?D.path:D.composedPath&&D.composedPath())&&!D.includes(v)&&!D.includes(a)&&!D.includes(h))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(D,v,h){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&v!==void 0&&v.encryptedBlobId!==null&&v.sourceExternalVideoId!==null&&h!==void 0&&h.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(D,v){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!v&&!!v.videoRenderer&&!!v.videoRenderer.videoId},
isValidPrefilledAttachment_:function(D,v,h){return this.isValidPrefilledImage_(D,v,h)||this.isValidPrefilledVideo_(D,h)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.g("enable_multi_image_post_creation")){var D=this.$$("ytd-backstage-multi-image-select-renderer");D&&D.hasImages()&&D.cancel()}else(D=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&D.cancel();(D=this.$["poll-attachment"])&&this.hasPoll_&&D.clearPollOptions();(D=this.$["image-poll-attachment"])&&this.hasImagePoll_&&D.resetPollOptions();(D=this.$["quiz-attachment"])&&this.hasQuiz_&&D.resetQuizOptions();
(D=this.$["video-link-attachment"])&&this.hasVideo_&&D.cancel();(D=this.$["access-restrictions-selector"].firstElementChild)&&D.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.ZW(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ZW(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(D,v){D=iF2(D,this.emojiManager,v).cloneNode(!0);for(v=D.firstChild;v;)if(v.nodeType!==1)v=v.nextSibling;else switch(v.tagName){case "BR":var h=_.ws();_.cr9(h,v);v=h.nextSibling;break;case "DIV":(h=v.lastChild)&&v.nextSibling&&_.KW(_.ws(),h);v.previousSibling&&(v.previousSibling.nodeType===1||v.previousSibling.nodeType===3&&!v.previousSibling.textContent.endsWith("\n"))&&_.OO(_.ws(),v);h&&h.nodeName==="BR"&&_.Np(h);h=v;v.hasChildNodes()?(v=v.firstChild,
_.Xs1(h)):(v=v.nextSibling,_.Np(h));break;default:v=v.nextSibling}return vni(D)},
onAddImageError_:function(D){D.stopPropagation();this.errorMessage_=_.aX(D.detail)},
setTextAreaValue_:function(D){D||(D="");var v=this.getEditableFormattedString_();v.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});v.text=D},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();eK=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.DV(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.eA("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),v=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",v)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var D;return eg4((D=this.$["quiz-attachment"])==null?void 0:D.getExplanationText())||eg4(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var v=this.getInputRange_();v&&(D=this.emojiInput.retrieveTextBeforeRange(v))}this.insertText_(D,!0);this.updateCharCount_();this.setSubmitButton_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(D){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(D)},
onPasteEmoji_:function(D){D.preventDefault();D.stopImmediatePropagation();D=D.clipboardData.getData("text/plain");this.insertText_(D,!1,!1)},
insertText_:function(D,v,h){v=v===void 0?!1:v;h=h===void 0?!0:h;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var a=this.getInputRange_().cloneRange();this.emojiManager&&a&&(v&&this.emojiInput.offsetStartOfRangeBy(a,D.length),this.insertTextWithEmojis_(a,D,h),Rp2(this.getEditableTextArea_().lastChild)||(a=this.getInputRange_().cloneRange()),a&&(this.emojiInput.updateSuggestions(a,D),this.updateSuggestionOffset_(a)))}},
setSubmitButton_:function(){if(this.data){var D=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",v=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(D||v){var h=this.getTextAreaValue().trim();v=h===this.previousText_;h=!h||this.aboveCharLimit_;D&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(h=this.aboveCharLimit_);this.submitButtonDisabled=
v||h||!this.getTextLength();D&&_.g("enable_post_scheduling")&&(this.submitButtonDisabled=v&&!this.scheduledPublishTimeSec_||h)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.$V,computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computeFooterMessageClass_:function(D,v){return v?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(D,v){return v?v:D},
computeFooterMessageHidden_:function(D,v){return!v&&!D},
computePlaceholderText_:function(D,v,h){return(h==="video"||h==="image")&&(D==null?0:D.prefilledPlaceholderText)?D==null?void 0:D.prefilledPlaceholderText:v==="poll"||v==="image-poll"?D==null?void 0:D.pollPostPlaceholderText:v==="quiz"?D==null?void 0:D.quizPostPlaceholderText:v==="image"?D==null?void 0:D.imagePostPlaceholderText:D==null?void 0:D.placeholderText},
computeHideAttachmentButtons_:function(D,v,h,a){return D===void 0?!1:a&&this.getSimpleString(a)===this.getSimpleString(D.rateLimitErrorMessage)?!0:v!=="none"||h!=="none"||!D.videoLinkButton&&!D.pollButton&&!D.imagePollButton&&!D.quizButton&&!D.imageButton},
computeHideDismissableAttachment_:function(D){return D!=="image"&&D!=="video"},
computeHasVideo_:function(D){return D==="video"},
computeHasImage_:function(D){return D==="image"},
computeHasPoll_:function(D){return D==="poll"},
computeHasImagePoll_:function(D){return D==="image-poll"},
computeHasQuiz_:function(D){return D==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(D){return D&&D.backstageAttachment?D.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!D.backstageAttachment.quizRenderer&&!D.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(D){if(this.isValidPrefilledAttachment_(D.purpose,D.prefilledImageData,D.backstageAttachment))return D.backstageAttachment},
computeEditAttachment_:function(D){if(this.computePrefilledContent_(D)===void 0)return D.backstageAttachment},
computeAuthorThumbnailDimension_:function(D,v){return D&&!v?24:40},
computeImageUploadEndpoint_:function(D){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",D)},
computeRateLimitErrorCommands_:function(D){var v,h;return D==null?void 0:(v=D.advancedTierFeatures)==null?void 0:(h=v.rateLimit)==null?void 0:h.rateLimitCommands},
computeIsBackstageComment_:function(D){return!(!D||D!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)||this.get("replyButton.buttonRenderer.serviceEndpoint",D)||this.get("postButton.buttonRenderer.serviceEndpoint",D)},
computeSubmitButtonOverride:function(){if(_.g("web_modern_buttons")){var D,v;return{segmentedPosition:this.dropdownSchedulePanel_||!((D=this.data)==null?0:(v=D.postOptionsMenu)==null?0:v.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.g("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(D,v){D=this.get("submitButton.buttonRenderer",D)||this.get("replyButton.buttonRenderer",D)||this.get("postButton.buttonRenderer",D);v&&(D=v);D&&(D=Object.assign({},D),D.serviceEndpoint=void 0,D.isDisabled=this.submitButtonDisabled);return D},
computeHasExternalLinksAccess_:function(D){if(_.g("enable_rfa_external_links")){var v,h,a;return(a=D==null?void 0:(v=D.advancedTierFeatures)==null?void 0:(h=v.externalLinks)==null?void 0:h.allowExternalLinks)!=null?a:!0}return!0},
computeIsEmojiButtonDisplayed_:function(D){return D.emojiButton&&D.emojiPicker&&D.emojiPicker.emojiPickerRenderer&&D.emojiPicker.emojiPickerRenderer.categories?D.emojiPicker.emojiPickerRenderer.categories.find(function(v){return v.emojiPickerCategoryRenderer?v.emojiPickerCategoryRenderer.emojiIds&&v.emojiPickerCategoryRenderer.emojiIds.length>0:v.emojiPickerUpsellCategoryRenderer?v.emojiPickerUpsellCategoryRenderer.emojis&&v.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(D){return D.charLimit?D.charLimit:null},
computeDropdownSchedulingPanel_:function(D,v){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&v)return v},
computeInlineSchedulingPanel_:function(D,v){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&v)return v},
computeHideAuthorThumbnail_:function(D,v){return D||this.computeUseIdentityChip_(v)},
computeHideIdentityChipRenderer_:function(D,v){return D||!this.computeUseIdentityChip_(v)},
computeUseIdentityChip_:function(D){return!!D&&!!D.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(D){var v,h,a,Q;(D==null?0:(v=D.detail)==null?0:(h=v.endpoint)==null?0:h.ypcGetOffersEndpoint)||(D==null?0:(a=D.detail)==null?0:(Q=a.endpoint)==null?0:Q.ypcOffersEndpoint)?(D.stopPropagation(),_.L1(this,[D.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(D.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(D){this.addedAttachment="video";this.selectedVideoId_=D.detail.videoId},
commentboxStateEntityChanged_:function(D){var v=this;(D==null?void 0:D.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(D==null?void 0:D.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){v.focus()})},
onYtServiceRequestSent_:function(D,v){if(v.actions)for(D=_.P(v.actions),v=D.next();!v.done;v=D.next())v.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(D){this.isLoading=!1;var v=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",D),h,a,Q,G=D==null?void 0:(h=D.detail)==null?void 0:(a=h.data)==null?void 0:(Q=a.actionResult)==null?void 0:Q.commentboxStateEntityKey;if(v)this.errorMessage_=v;else if(G){var x;this.dismissData_=D==null?void 0:(x=D.detail)==null?void 0:x.data;this.commentboxStateKey_=G}else{this.clear();var f;this.fire("yt-commentbox-dismiss",D==null?void 0:(f=D.detail)==
null?void 0:f.data)}},
onYtServiceRequestError_:function(D){D.stopPropagation();this.isLoading=!1;var v,h;if(((v=this.data)==null?void 0:v.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((h=this.data)==null?void 0:h.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(v=this.get("detail.error.args",D)||[],v.length>1&&v[1].message){this.handlePostsServiceRequestError_(v[1].message);return}(D=this.get("detail.error.message",D))?this.errorMessage_=this.data.errorMessage||_.aX(D):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(D){if(_.g("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var v=_.P(this.rateLimitErrorCommands),h=v.next();!h.done;h=v.next())if(h=h.value,h.errorLabel===D){_.lP(h.command,this.hostElement);return}this.errorMessage_=_.aX(D)},
submitIfNotBackstagePost_:function(D){if(!this.isBackstagePost)this.onSubmit_(D)},
onSubmit_:function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A;return _.M(function(d){switch(d.nextAddress){case 1:D.stopPropagation();if(!v.serviceEndpoint||!v.isValidInput_())return d.return();if(v.shouldShowPostAadcNotice_())return v.showPostAadcNotice_(),d.return();if(v.shouldShowCommentAadcNotice_())return v.showCommentAadcNotice_(),d.return();if(!(v.$$("ytd-backstage-multi-image-select-renderer")&&v.hasImage_&&_.g("enable_multi_image_post_creation"))){d.jumpTo(2);break}h=v.$$("ytd-backstage-multi-image-select-renderer");
return d.yield(h.getAllUploadStatuses(),3);case 3:a=d.yieldResult;if(!a)return d.return();Q=_.P(a);for(G=Q.next();!G.done;G=Q.next())if(x=G.value,x.encryptedBlobId===void 0)return v.isLoading=!1,C=f=void 0,v.errorMessage_=(C=(f=v.imageUploadEndpoint_)==null?void 0:f.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?C:null,d.return();return d.return(v.submitForm_(void 0,void 0,void 0,void 0,h.images,v.taggedVideoId_));case 2:if(!v.hasImagePoll_||!v.$["image-poll-attachment"]){d.jumpTo(4);
break}return d.yield(v.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:U=d.yieldResult;if(!U)return d.return();L=_.P(U);for(Z=L.next();!Z.done;Z=L.next())if(E=Z.value,!E.encryptedBlobId)return v.isLoading=!1,I=void 0,v.errorMessage_=(I=v.data.errorMessage)!=null?I:null,d.return();case 4:B=(S=v.$$("ytd-backstage-image-select-renderer"))&&S.uploadPromise(),A=v.getSharedPostId_(),B?B.then(function(){v.submitForm_.apply(v,_.j_(_.Kz.apply(0,arguments)))}).catch(function(b){v.isLoading=!1;
v.errorMessage_=_.aX(b.message)}):v.selectedVideoId_?v.submitForm_(void 0,v.selectedVideoId_):v.prefilledAttachment_==="image"?v.submitForm_(v.prefilledImageData_.encryptedBlobId,void 0,void 0,v.prefilledImageData_.sourceExternalVideoId,void 0,v.taggedVideoId_):v.prefilledAttachment_==="video"?v.submitForm_(void 0,v.data.backstageAttachment.videoRenderer.videoId):A?v.submitForm_(void 0,void 0,A):v.taggedVideoId_!==void 0?v.submitForm_(void 0,void 0,void 0,void 0,void 0,v.taggedVideoId_):v.submitForm_(),
_.YI(d)}})},
openSchedulingPanel:function(D){D&&D.scheduleButton&&D.scheduleButton.buttonRenderer&&(this.scheduleButton_=D.scheduleButton.buttonRenderer);D&&D.dateTimePicker&&this.set("data.schedulingDateTimePicker",D.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(D){D.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(D){D.stopPropagation();D.detail.alertMessage&&(this.alertMessage_=D.detail.alertMessage)},
onImageSelected_:function(D){D.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(D){D.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(D.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(D){var v=this.$["video-link-attachment"];v&&v.onLaunchVideoPicker(D)},
onAttachmentDismiss_:function(D){D.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.g("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.g("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var D;if(this.addedAttachment==="image-poll"&&((D=this.$["image-poll-attachment"])==null||!D.isValid()))return!1;var v;if(this.addedAttachment==="quiz"&&((v=this.$["quiz-attachment"])==null||!v.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;D=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")D=!0;return D||!!this.getTextAreaValue().trim()},
submitForm_:function(D,v,h,a,Q,G){var x=this.getTextAreaValue().trim(),f={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&x===this.previousText_&&(x=void 0);x!==void 0&&(f.comment_text=x);this.isLoading=!0;G!=void 0&&(f.tagged_video_id=G);D?(f.image_blob_id=D,this.imagePreviewCoordinates_&&(f.image_preview_coordinates=this.imagePreviewCoordinates_)):v?f.attached_video_id=v:h?f.shared_post_id=h:Q&&Q.length>0&&(f.images_data=Q.map(function(C){return{encryptedBlobId:C.encryptedBlobId,
previewCoordinates:C.previewCoordinates}}));
a&&(f.source_video_id=a);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(f.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(f.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(f.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.g("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(f.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.g("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(f.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.L1(this,[this.serviceEndpoint,f])},
onIsInputFocusChanged_:function(D,v){D?this.fire("yt-autonav-pause-focus"):v!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var v=this.getEditableTextArea_();[].concat(_.j_(D.dataTransfer.items)).forEach(function(h){h.kind==="string"&&h.type.match("^text/plain")&&h.getAsString(function(a){v.appendChild(document.createTextNode(a))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
computeSubmitButtonClass_:function(D,v){return!v||D?"":"with-options"},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.ZW(this.emojiInput).querySelector("#dropdown")){var v=this.getEditableTextArea_().getBoundingClientRect().bottom,h=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(v-h)+5;v=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-v;_.ZW(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(D){if(_.g("enable_post_scheduling")&&this.data&&this.data.purpose){D=D.detail;if(Math.floor(Date.now()/1E3)>=D)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var v=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(v)||v!==D?this.scheduledPublishTimeSec_=D:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=D;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var D=["image-button","image-poll-button","poll-button"];_.g("enable_quiz_creation")&&D.push("quiz-button");_.g("auto_convert_posts_video_tag")||D.push("video-link-button");return D},
getButtonRenderer:function(D,v){if(D)switch(v){case "video-link-button":var h;return((h=D.videoLinkButton)==null?void 0:h.buttonRenderer)||void 0;case "image-button":var a;return((a=D.imageButton)==null?void 0:a.buttonRenderer)||void 0;case "poll-button":var Q;return((Q=D.pollButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-poll-button":var G;return((G=D.imagePollButton)==null?void 0:G.buttonRenderer)||void 0;case "quiz-button":var x;return((x=D.quizButton)==null?void 0:x.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var D;return(D=this.data)==null||!D.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var D,v;return!((D=this.data)==null||!D.openAadcDialog)&&!((v=this.aadcGuidelinesState_)==null||!v.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.eA("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var D;((D=this.data)==null?0:D.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.OW("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(D){D.clickTrackingParams&&_.c8().clickCommand(D);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.zU(this,"yt-close-popup-action")},
onHideIdentityChip:function(D){var v;this.set("data.placeholderText",(v=D.hideIdentityChipAction)==null?void 0:v.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var nI=function(){var D=_.c.apply(this,arguments)||this;D.isOpen=!1;D.modern=_.g("web_modern_buttons");D.roundedContainer=!0;D.dropdownButtonOverride=_.g("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;D.inPopupContainer=!1;D.isCommentboxLoading=!1;var v=["image-button","image-poll-button","poll-button"];_.g("enable_quiz_creation")&&v.push("quiz-button");_.g("auto_convert_posts_video_tag")||v.push("video-link-button");D.attachmentButtonIds=v;D.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return D};
_.J(nI,_.c);_.V=nI.prototype;_.V.computeButtonOverride=function(){var D;return((D=this.data)==null?0:D.postOptionsMenu)&&_.g("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.V.configureRendererStamper=function(){var D={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.g("auto_convert_posts_video_tag")||(D["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return D};
_.V.ready=function(){var D=this,v=_.ZW(this.hostElement).querySelector("#placeholder-area"),h=function(a){D.onOpen(a)};
v.addEventListener("tap",h);v.addEventListener("keypress",h)};
_.V.showButtonEduTooltip=function(){var D,v,h,a,Q,G,x;if(_.g("enable_quiz_creation")&&((D=this.data)==null?0:(v=D.quizButton)==null?0:(h=v.buttonRenderer)==null?0:(a=h.hint)==null?0:(Q=a.hintRenderer)==null?0:(G=Q.content)==null?0:(x=G.bubbleHintRenderer)==null?0:x.text)&&(_.XQ.getInstance(),D=AU(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(D==null?void 0:
D.length)>0)){this.ytComponentBehavior.resolveCommand(D[0],{form:{element:this.quizButton}});return}var f;if((f=this.data)==null?0:f.imagePollButtonTooltip)if(_.XQ.getInstance(),f=AU(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(f==null?void 0:f.length)>0){this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.imagePollButton}});return}var C;_.g("enable_multi_image_post_creation")&&
((C=this.data)==null?0:C.multiImageButtonTooltip)&&(_.XQ.getInstance(),C=AU(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(C==null?void 0:C.length)>0&&this.ytComponentBehavior.resolveCommand(C[0],{form:{element:this.imageButton}}))};
_.V.onCreatePollAction=function(D){_.k(D,Qvb)&&(this.JSC$15818_commentbox.addedAttachment="poll",this.openDialog())};
_.V.onAddVideoLinkAction=function(D){if(_.k(D,vN4))this.JSC$15818_commentbox.onAddVideoLink(D)};
_.V.onShowSchedulingPanelCommand=function(D){(D=_.k(D,cJm))&&this.openSchedulingPanel(D)};
_.V.onCreateImagePollCommand=function(D){_.k(D,kFF)&&(this.JSC$15818_commentbox.openImagePollComponent(),this.openDialog())};
_.V.onCreateQuizCommand=function(D){_.k(D,SeJ)&&(this.JSC$15818_commentbox.openQuizComponent(),this.openDialog())};
_.V.openSchedulingPanel=function(D){_.g("enable_post_scheduling")&&(this.openDialog(),this.JSC$15818_commentbox.openSchedulingPanel(D))};
_.V.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.JSC$15818_commentbox.clear(),this.closeDialog())};
_.V.onOpen=function(D){D instanceof KeyboardEvent&&D.type==="keypress"&&D.keyCode!==13&&D.keyCode!==32||(this.data.prepareAccountEndpoint?_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.closeDialog()};
_.V.onYtCommentboxLoadingStart=function(D){D.stopPropagation();this.isCommentboxLoading=!0};
_.V.onYtCommentboxLoadingEnd=function(D){D.stopPropagation();this.isCommentboxLoading=!1};
_.V.onYtVideoLinkButtonCancel=function(D){D.stopPropagation();this.onOpen(D)};
_.V.onYtVideoLinkSelected=function(D){D.stopPropagation();this.onOpen(D)};
_.V.onIronSelect=function(D){D.stopPropagation();D.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=D.detail.item.value&&(this.accessRestriction?(this.accessRestriction=D.detail.item.value,this.onOpen(D)):this.accessRestriction=D.detail.item.value)};
_.V.onYtNavigate=function(D){this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(this.JSC$15818_commentbox.addedAttachment="image",this.JSC$15818_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.V.onRequestSent=function(D){if(_.g("web_button_rework"))for(var v=_.P(D.detail),h=v.next();!h.done;h=v.next())_.k(h.value,brM)&&(this.JSC$15818_commentbox.addedAttachment="image",this.JSC$15818_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.V.openDialog=function(){var D;(D=this.data)!=null&&D.isIneligibleForCommunityPagePostCreation||(this.JSC$15818_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15818_commentbox.focus())};
_.V.onPopupClosed=function(){_.XQ.getInstance()};
_.V.computeCreationDisabled=function(D){return!!D};
_.V.computeIsCreationDialog=function(D){return!!D&&D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.V.computeDisabledPostButton=function(D){if(!D)return null;D.isDisabled=!0;return D};
_.V.computeIsCreationDialogWithHeader=function(D){return!this.inPopupContainer&&!!D&&!!D.authorText&&D.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.V.computeIsHeaderHidden=function(D,v){return!D||v};
_.V.computeDropdownRendererClasses=function(D){return D?["text-secondary-style"]:[]};
_.V.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var D=_.ZW(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;D&&D.reset()};
nI.prototype.onPopupClosed=nI.prototype.onPopupClosed;nI.prototype.onRequestSent=nI.prototype.onRequestSent;nI.prototype.onYtNavigate=nI.prototype.onYtNavigate;nI.prototype.onIronSelect=nI.prototype.onIronSelect;nI.prototype.onYtVideoLinkSelected=nI.prototype.onYtVideoLinkSelected;nI.prototype.onYtVideoLinkButtonCancel=nI.prototype.onYtVideoLinkButtonCancel;nI.prototype.onYtCommentboxLoadingEnd=nI.prototype.onYtCommentboxLoadingEnd;nI.prototype.onYtCommentboxLoadingStart=nI.prototype.onYtCommentboxLoadingStart;
nI.prototype.onYtCommentboxDismiss=nI.prototype.onYtCommentboxDismiss;nI.prototype.showButtonEduTooltip=nI.prototype.showButtonEduTooltip;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],nI.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],nI.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"isOpen",void 0);_.e([_.Y({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],nI.prototype,"buttonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"modern",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"roundedContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],nI.prototype,"dropdownButtonOverride",void 0);_.e([_.Y({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.n("design:type",Boolean)],nI.prototype,"creationDisabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],nI.prototype,"enableCreationBox",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.n("design:type",Boolean)],nI.prototype,"isCreationDialog",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"inPopupContainer",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.n("design:type",Boolean)],nI.prototype,"isCreationDialogWithHeader",void 0);_.e([_.Y(),_.n("design:type",Object)],nI.prototype,"accessRestriction",void 0);
_.e([_.Y({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.n("design:type",Array)],nI.prototype,"dropdownRendererClasses",void 0);_.e([_.Y(),_.n("design:type",Object)],nI.prototype,"isCommentboxLoading",void 0);_.e([_.Y(),_.n("design:type",Array)],nI.prototype,"attachmentButtonIds",void 0);_.e([_.Br("#image-button"),_.n("design:type",HTMLElement)],nI.prototype,"imageButton",void 0);
_.e([_.Br("#image-poll-button"),_.n("design:type",HTMLElement)],nI.prototype,"imagePollButton",void 0);_.e([_.Br("#quiz-button"),_.n("design:type",HTMLElement)],nI.prototype,"quizButton",void 0);_.e([_.Br("#commentbox"),_.n("design:type",Object)],nI.prototype,"JSC$15818_commentbox",void 0);_.e([_.Ni("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"showButtonEduTooltip",null);
_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onYtCommentboxDismiss",null);_.e([_.lc("yt-commentbox-loading-start"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onYtCommentboxLoadingStart",null);
_.e([_.lc("yt-commentbox-loading-end"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onYtCommentboxLoadingEnd",null);_.e([_.lc("yt-video-link-button-cancel"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onYtVideoLinkButtonCancel",null);
_.e([_.lc("yt-video-link-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onYtVideoLinkSelected",null);_.e([_.lc("iron-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onIronSelect",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onYtNavigate",null);
_.e([_.lc("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onRequestSent",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"onPopupClosed",null);_.e([_.m({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],nI);
_.w(nI,"ytd-backstage-post-dialog-renderer",function(){if(H$9!==void 0)return H$9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return H$9=D},{mode:1});var ZsJ;var EO9;var OD=function(){return _.c.apply(this,arguments)||this};
_.J(OD,_.c);_.V=OD.prototype;_.V.computeHeartButtonStyle=function(D){return(D==null?0:D.styleType)?D.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onYtButtonTap=function(){if(this.data.isEnabled){var D=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(D=this.getEndpoint(D))&&_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})}else(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(D)};
_.V.toggle=function(D){this.set("data.isHearted",D!==void 0?D:!this.data.isHearted)};
_.V.getEndpoint=function(D){var v,h=(v=this.data)==null?void 0:v.heartEndpoint,a;v=(a=this.data)==null?void 0:a.unheartEndpoint;if(h&&v)return D?v:h};
_.V.computeButtonAccessibility=function(D,v){var h,a,Q=D==null?void 0:(h=D.heartedAccessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label,G,x;D=D==null?void 0:(G=D.unheartedAccessibility)==null?void 0:(x=G.accessibilityData)==null?void 0:x.label;return v?Q:D};
_.GT.Object.defineProperties(OD.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var D;return _.g("kevlar_system_icons")&&!((D=this.data)==null||!D.isHearted)}}});
OD.prototype.onYtButtonTap=OD.prototype.onYtButtonTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],OD.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],OD.prototype,"data",void 0);_.e([_.N("data.isHearted"),_.n("design:type",Object),_.n("design:paramtypes",[])],OD.prototype,"heartTooltip",null);
_.e([_.N("data.isHearted"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OD.prototype,"iconFilled",null);_.e([_.Y({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.n("design:type",String)],OD.prototype,"buttonAccessibility",void 0);_.e([_.Y({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],OD.prototype,"heartButtonStyle",void 0);
_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OD.prototype,"onYtButtonTap",null);_.e([_.m({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],OD);
_.w(OD,"ytd-creator-heart-renderer",function(){if(EO9!==void 0)return EO9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return EO9=D},{mode:1});var KI=function(){var D=_.c.apply(this,arguments)||this;D.hasCreatorReply=!1;D.buttonOverrides={size:"S",iconPosition:"icon-only"};D.replyButtonOverrides={size:"S",type:"text"};D.forceIconButton=!_.g("web_modern_buttons");D.modern=_.g("web_modern_buttons");D.buttonTooltipPosition="bottom";D.systemIcons=_.g("kevlar_system_icons");D.replyDialog=null;return D};
_.J(KI,_.c);_.V=KI.prototype;
_.V.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]]"}}}}}};
_.V.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.V.dataChange=function(){this.replyDialog&&_.ZW(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var D,v,h;this.isLiked=this.systemIcons&&!!((D=this.data)==null?0:(v=D.likeButton)==null?0:(h=v.toggleButtonRenderer)==null?0:h.isToggled)};
_.V.computeShowVoteCountBeginning=function(D,v){return D===void 0||v===void 0?!0:D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!v&&this.ytRendererBehavior.getSimpleString(v)!=="0"};
_.V.computeShowVoteCountEnd=function(D,v){return D===void 0||v===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!v&&this.ytRendererBehavior.getSimpleString(v)!=="0"};
_.V.computeShowCommentCount=function(D,v){return D===void 0||v===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!v&&this.ytRendererBehavior.getSimpleString(v)!=="0"};
_.V.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.V.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.V.showReplyDialog=function(D){D&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ZW(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=D,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.V.onRequestSent=function(D){if(_.g("web_button_rework")){D=_.P(D.detail);for(var v=D.next();!v.done;v=D.next())(v=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",v.value))&&this.showReplyDialog(v)}};
_.V.onYtNavigate=function(D){var v,h;(D=(v=_.k(D.detail.endpoint,_.jds))==null?void 0:(h=v.dialog)==null?void 0:h.commentReplyDialogRenderer)&&this.showReplyDialog(D)};
_.V.onYtServiceRequestSent=function(D,v){D.stopPropagation();if(v.actions)for(D=0;D<v.actions.length;D++){var h=_.k(v.actions[D],f5s);h&&this.handleUpdateCommentVoteAction(h)}};
_.V.handleUpdateCommentVoteAction=function(D){this.voteCount=D.voteCount||_.aX("0");D.voteStatus==="LIKE"?this.JSC$15830_ytdDislikeToggleButtonRenderer.toggle(!1):D.voteStatus==="DISLIKE"?this.JSC$15830_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15830_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15830_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.V.computeReplyButtonHidden=function(D){return D};
_.V.computeReplyButtonBeginning=function(D){return(D==null?0:D.replyButton)&&D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.V.computeReplyButtonEnd=function(D){return(D==null?0:D.replyButton)&&D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.V.computeActionButtonStyle=function(D){return(D==null?0:D.style)?D.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.V.onYtToggleButton=function(D){var v,h;this.isLiked=this.systemIcons&&!!((v=D.detail)==null?0:(h=v.actions)==null?0:h.like)};
KI.prototype.onYtToggleButton=KI.prototype.onYtToggleButton;KI.prototype.onButtonTooltipPositionChanged=KI.prototype.onButtonTooltipPositionChanged;KI.prototype.onYtServiceRequestSent=KI.prototype.onYtServiceRequestSent;KI.prototype.onYtNavigate=KI.prototype.onYtNavigate;KI.prototype.onRequestSent=KI.prototype.onRequestSent;KI.prototype.onYtCommentboxDismiss=KI.prototype.onYtCommentboxDismiss;KI.prototype.dataChange=KI.prototype.dataChange;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"voteCount",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"commentCount",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"replyThumbnail",void 0);
_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"hasCreatorReply",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],KI.prototype,"enableCreationBox",void 0);_.e([_.Y({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],KI.prototype,"actionButtonsStyle",void 0);_.e([_.Y({computed:"computeReplyButtonBeginning(data)"}),_.n("design:type",Object)],KI.prototype,"replyButtonBeginning",void 0);
_.e([_.Y({computed:"computeReplyButtonEnd(data)"}),_.n("design:type",Object)],KI.prototype,"replyButtonEnd",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"buttonOverrides",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"replyButtonOverrides",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"forceIconButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],KI.prototype,"useCommentIcon",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],KI.prototype,"modern",void 0);_.e([_.Y(),_.n("design:type",Object)],KI.prototype,"buttonTooltipPosition",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],KI.prototype,"systemIcons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],KI.prototype,"isLiked",void 0);_.e([_.Br("ytd-button-renderer"),_.n("design:type",Object)],KI.prototype,"ytdReplyButtonRenderer",void 0);
_.e([_.Br("#like-button"),_.n("design:type",Object)],KI.prototype,"JSC$15830_ytdLikeToggleButtonRenderer",void 0);_.e([_.Br("#dislike-button"),_.n("design:type",Object)],KI.prototype,"JSC$15830_ytdDislikeToggleButtonRenderer",void 0);_.e([_.Br("#reply-dialog"),_.n("design:type",HTMLElement)],KI.prototype,"replyDialogElement",void 0);_.e([_.Br("#reply-button"),_.n("design:type",HTMLElement)],KI.prototype,"replyButtonElement",void 0);
_.e([_.Br("#reply-button-end"),_.n("design:type",HTMLElement)],KI.prototype,"replyButtonEndElement",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],KI.prototype,"dataChange",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],KI.prototype,"onYtCommentboxDismiss",null);
_.e([_.lc("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],KI.prototype,"onRequestSent",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],KI.prototype,"onYtNavigate",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],KI.prototype,"onYtServiceRequestSent",null);_.e([_.Ni("buttonTooltipPosition"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],KI.prototype,"onButtonTooltipPositionChanged",null);
_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],KI.prototype,"onYtToggleButton",null);_.e([_.m({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],KI);
_.w(KI,"ytd-comment-action-buttons-renderer",function(){if(ZsJ!==void 0)return ZsJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ZsJ=D},{mode:1});var IC9;var Tj=function(){return _.c.apply(this,arguments)||this};
_.J(Tj,_.c);Tj.prototype.focus=function(){_.ZW(this.hostElement).querySelector("#commentbox").focus()};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Tj.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Tj.prototype,"zeroStepChannelCreationRenderer",void 0);_.e([_.m({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Tj);
_.w(Tj,"ytd-comment-dialog-renderer",function(){if(IC9!==void 0)return IC9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return IC9=D},{mode:1});var gO4;var Rb=function(){var D=_.c.apply(this,arguments)||this;D.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.g("enable_web_delhi_icons")};D.replyButtonOverrides={size:"S",type:"text"};return D};
_.J(Rb,_.c);_.V=Rb.prototype;_.V.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.V.detached=function(){this.replyBox&&this.replyBox.remove()};
_.V.showReplyDialog=function(D){if(D){var v=this.replyBox;v||(v=document.createElement("ytd-comment-reply-dialog-renderer"),v.id="replybox",_.ZW(this.replyDialogDiv).appendChild(v));v.data=D;this.replyDialogDiv.hidden=!1;v.openDialog()}};
_.V.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.V.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var D,v=_.k((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand,_.Tz);v&&_.F1(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:v})}};
_.V.onYtServiceRequestSent=function(D,v){D.stopPropagation();if(v.actions)for(var h=0;h<v.actions.length;h++){var a=_.k(v.actions[h],f5s);a?this.handleUpdateCommentVoteAction(a):D.target===this.heartButton&&this.toggleHeartState()}};
_.V.handleUpdateCommentVoteAction=function(D){var v;(v=this.toolbarState)!=null&&v.key&&this.ytdReduxBehavior.dispatch(_.sy("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:D.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":D.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.V.toggleHeartState=function(){var D;(D=this.toolbarState)!=null&&D.key&&this.ytdReduxBehavior.dispatch(_.sy("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.GT.Object.defineProperties(Rb.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return(((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(v=this.toolbarData)==null?void 0:v.likeCountLiked:(h=this.toolbarData)==null?void 0:h.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand)!==void 0&&!_.g("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v=_.k((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.Tz),h,a,Q,G,x,f,C,U,L;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((h=this.toolbarSharedData)==null||!h.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:v!=null?v:_.k((Q=this.toolbarSurface)==null?void 0:Q.likeCommand,_.Tz),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:v!=null?v:_.k((G=this.toolbarSurface)==null?void 0:G.unlikeCommand,_.Tz),defaultCommand:this.isVisiblyDisabled?_.k((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,_.Tz):void 0,defaultTooltip:(f=this.toolbarData)==null?void 0:f.likeInactiveTooltip,toggledTooltip:(C=this.toolbarData)==null?void 0:C.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(U=this.toolbarData)==null?void 0:U.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v=_.k((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.Tz),h,a,Q,G,x,f,C,U,L,Z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((h=this.toolbarSharedData)==null||!h.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:v!=null?v:_.k((Q=this.toolbarSurface)==null?void 0:Q.dislikeCommand,_.Tz),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:v!=null?v:_.k((G=this.toolbarSurface)==null?void 0:G.undislikeCommand,_.Tz),defaultCommand:this.isVisiblyDisabled?_.k((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,_.Tz):void 0,defaultTooltip:(f=this.toolbarData)==null?void 0:f.dislikeInactiveTooltip,toggledTooltip:(C=this.toolbarData)==null?void 0:
C.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(U=this.toolbarSharedData)==null?void 0:U.dislikeReplyButtonA11y:(L=this.toolbarSharedData)==null?void 0:L.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v,h;if(((D=this.toolbarState)==null?void 0:D.heartState)!==void 0&&((v=this.toolbarState)==null?void 0:v.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((h=this.toolbarState)==null?void 0:h.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var a,Q,G,x,f,C,U,L,Z,E,I,S,B,A;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(a=this.toolbarData)==null?void 0:a.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((f=this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.k((C=this.toolbarSurface)==null?void 0:C.heartCommand,
_.Tz),unheartEndpoint:this.isVisiblyDisabled?void 0:_.k((U=this.toolbarSurface)==null?void 0:U.unheartCommand,_.Tz),disabledEndpoint:this.isVisiblyDisabled?_.k((L=this.toolbarSurface)==null?void 0:L.commentDisabledActionCommand,_.Tz):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(Z=this.toolbarData)==null?void 0:Z.heartActiveTooltip,unheartedTooltip:(E=this.toolbarData)==null?void 0:E.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((I=
this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(S=this.toolbarSharedData)==null?void 0:S.unheartButtonA11y:(B=this.toolbarSharedData)==null?void 0:B.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.toolbarSurface)==null||!D.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(D=this.commentStrings)==null?void 0:D.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.k((v=this.toolbarSurface)==null?void 0:v.replyCommand,_.Tz),command:this.isVisiblyDisabled?_.k((h=this.toolbarSurface)==null?
void 0:h.commentDisabledActionCommand,_.Tz):this.isSubsOnlyCommentsIneligibleUser?_.k((a=this.toolbarSurface)==null?void 0:a.subscribersOnlySnackbarCommand,_.Tz):void 0}}}});
Rb.prototype.onYtServiceRequestSent=Rb.prototype.onYtServiceRequestSent;Rb.prototype.hideReplyDialogDiv=Rb.prototype.hideReplyDialogDiv;_.e([_.Y(),_.n("design:type",Object)],Rb.prototype,"commentStrings",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Rb.prototype,"isReply",void 0);_.e([_.Y(),_.n("design:type",Object)],Rb.prototype,"toolbarData",void 0);_.e([_.Y(),_.n("design:type",Object)],Rb.prototype,"toolbarSharedData",void 0);
_.e([_.Y(),_.n("design:type",String)],Rb.prototype,"toolbarStateKey",void 0);_.e([_.Y(),_.n("design:type",String)],Rb.prototype,"toolbarSurfaceKey",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Rb.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Rb.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.lK),_.n("design:type",Object)],Rb.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.Br("#reply-dialog"),_.n("design:type",HTMLElement)],Rb.prototype,"replyDialogDiv",void 0);_.e([_.Br("#replybox"),_.n("design:type",Object)],Rb.prototype,"replyBox",void 0);_.e([_.Br("ytd-creator-heart-renderer"),_.n("design:type",Object)],Rb.prototype,"heartButton",void 0);_.e([_.Y({selector:function(D,v){return _.gR(D.entities,"engagementToolbarStateEntityPayload",v)},
selectorArgs:["toolbarStateKey"]}),_.n("design:type",Object)],Rb.prototype,"toolbarState",void 0);_.e([_.Y({selector:kDr,selectorArgs:["toolbarSurfaceKey"]}),_.n("design:type",Object)],Rb.prototype,"toolbarSurface",void 0);_.e([_.Y(),_.n("design:type",Object)],Rb.prototype,"buttonOverrides",void 0);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rb.prototype,"hideReplyDialogDiv",null);
_.e([_.N("toolbarData","toolbarState"),_.n("design:type",String),_.n("design:paramtypes",[])],Rb.prototype,"likeCount",null);_.e([_.N("likeCount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rb.prototype,"showLikeCount",null);_.e([_.N("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rb.prototype,"isVisiblyDisabled",null);_.e([_.N("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rb.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.e([_.N("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rb.prototype,"isSubsOnlyCommentsEligibleUser",null);_.e([_.N("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rb.prototype,"hasPrepareAccountCommand",null);_.e([_.N("toolbarData","toolbarState","toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rb.prototype,"likeToggleButtonRenderer",null);
_.e([_.N("isReply","toolbarData","toolbarState","toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rb.prototype,"dislikeToggleButtonRenderer",null);_.e([_.N("toolbarData","toolbarState","toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rb.prototype,"creatorHeartSupportedRenderer",null);_.e([_.N("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rb.prototype,"hasReplyCommand",null);
_.e([_.N("toolbarSurface","commentStrings","isVisiblyDisabled"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rb.prototype,"replyButtonRenderer",null);_.e([_.Y(),_.n("design:type",Object)],Rb.prototype,"replyButtonOverrides",void 0);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Rb.prototype,"onYtServiceRequestSent",null);_.e([_.m({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Rb);
_.w(Rb,"ytd-comment-engagement-bar",function(){if(gO4!==void 0)return gO4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return gO4=D},{mode:1});var kB9;var iR=function(){return _.c.apply(this,arguments)||this};
_.J(iR,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iR.prototype,"data",void 0);_.e([_.m({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],iR);
_.w(iR,"ytd-comment-inline-thumbnail-renderer",function(){if(kB9!==void 0)return kB9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kB9=D},{mode:1});var SqM;var W_=function(){return _.c.apply(this,arguments)||this};
_.J(W_,_.c);W_.prototype.onMessageTap=function(){if(this.onTapCommand){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);D&&this.ytdOpenPopupBehavior.openPopup(D)}};
_.GT.Object.defineProperties(W_.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return(D=this.data)==null?void 0:(v=D.button)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.command}}});
_.e([_.l(_.lK),_.n("design:type",Object)],W_.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],W_.prototype,"data",void 0);_.e([_.N("data.button.buttonRenderer.command"),_.n("design:type",Object),_.n("design:paramtypes",[])],W_.prototype,"onTapCommand",null);_.e([_.m({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],W_);
_.w(W_,"ytd-comment-pause-composer-renderer",function(){if(SqM!==void 0)return SqM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return SqM=D},{mode:1});var JMp;var pJy;var tf=function(){var D=_.c.apply(this,arguments)||this;D.isOpen=!1;return D};
_.J(tf,_.c);_.V=tf.prototype;_.V.dataChanged=function(){this.isOpen=!1};
_.V.onTap=function(){this.data&&(this.data.navigationEndpoint?_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.V.focus=function(){this.JSC$15860_commentbox.focus()};
_.V.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.V.openDialog=function(){this.isOpen=!0;this.JSC$15860_commentbox.focus();this.JSC$15860_commentbox.maybeHeightChanged()};
tf.prototype.onYtCommentboxDismiss=tf.prototype.onYtCommentboxDismiss;tf.prototype.dataChanged=tf.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],tf.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],tf.prototype,"isOpen",void 0);_.e([_.Br("#commentbox"),_.n("design:type",Object)],tf.prototype,"JSC$15860_commentbox",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tf.prototype,"dataChanged",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],tf.prototype,"onYtCommentboxDismiss",null);_.e([_.m({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],tf);
_.w(tf,"ytd-comment-reply-dialog-renderer",function(){if(pJy!==void 0)return pJy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return pJy=D},{mode:1});var lCt;var rS=function(){return _.c.apply(this,arguments)||this};
_.J(rS,_.c);_.GT.Object.defineProperties(rS.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.icon)==null?void 0:v.iconType;return h?"yt-icons:"+h.toLowerCase():null}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rS.prototype,"data",void 0);_.e([_.Y(),_.N("data.icon"),_.n("design:type",Object),_.n("design:paramtypes",[])],rS.prototype,"icon",null);_.e([_.m({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],rS);
_.w(rS,"ytd-pinned-comment-badge-renderer",function(){if(lCt!==void 0)return lCt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return lCt=D},{mode:1});var Nw$;var Yq$={},Bw4={input:!0,meta:!0,br:!0,link:!0,img:!0},uR=null;Yq$.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(){uR==null&&(uR=document.createElement("tp-yt-paper-tooltip"),uR.offset=8,uR.fitToVisibleBounds=!0)},
onMouseOver_:function(D){if(D=_.OV(D.target,function(Q){return Q==this||Q.getAttribute&&Q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var v=D.getAttribute("shared-tooltip-text");
if(v){var h=this,a=null;D!=this&&(D.tagName.toLowerCase()in Bw4?h=D.parentElement:h=D,D.id&&(a=D.id));this.polymerController.createTooltipIfRequired_();if(uR.parentElement!=h||uR.for!=a)(0,_.kU)(uR).textContent=v,_.ZW(h).appendChild(uR),uR.for=a,uR.animationDelay=this.polymerController.sharedTooltipAnimationDelay,uR.position=this.polymerController.sharedTooltipPosition}}}};var Dd=function(){return _.c.apply(this,arguments)||this};
_.J(Dd,_.c);Dd.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]]"}}}}}};
Dd.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Dd.prototype.colorChanged=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.color)==null?void 0:(h=v.basicColorPaletteData)==null?void 0:h.foregroundBodyColor;a&&(this.rgbBadgeColor=_.rT(a));_.ZW(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Dd.prototype.tooltipChanged=function(){var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Dd.prototype.tooltipChanged=Dd.prototype.tooltipChanged;Dd.prototype.colorChanged=Dd.prototype.colorChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(Yq$.YtSharedTooltipBehavior),_.n("design:type",Object)],Dd.prototype,"ytSharedTooltipBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Dd.prototype,"data",void 0);
_.e([_.Y({value:"#4285F4"}),_.n("design:type",String)],Dd.prototype,"rgbBadgeColor",void 0);_.e([_.Ni("data.color"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dd.prototype,"colorChanged",null);_.e([_.Ni("data.tooltip"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dd.prototype,"tooltipChanged",null);_.e([_.m({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Dd);
_.w(Dd,"ytd-sponsor-comment-badge-renderer",function(){if(Nw$!==void 0)return Nw$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Nw$=D},{mode:1});var cMJ;var XJb;var vH=function(){return _.c.apply(this,arguments)||this};
_.J(vH,_.c);vH.prototype.computeState=function(D){switch(D==null?void 0:D.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
vH.prototype.updateStateIdentifier=function(D){if(this.viewModel.triStateKey){var v=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.sy("triStateButtonStateEntityPayload",v,{key:v,stateIdentifier:D}))}};
vH.prototype.onClick=function(){var D=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.GT.Object.defineProperties(vH.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.buttonText)||""}}});
_.e([_.Y(),_.n("design:type",Object)],vH.prototype,"viewModel",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],vH.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],vH.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.e([_.Y({selector:Sxr,selectorArgs:["viewModel.triStateKey"]}),_.n("design:type",Object)],vH.prototype,"triStateButtonStateEntity",void 0);
_.e([_.Y({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.n("design:type",String)],vH.prototype,"state",void 0);_.e([_.N("viewModel","state"),_.n("design:type",Object),_.n("design:paramtypes",[])],vH.prototype,"data",null);_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],vH.prototype,"buttonText",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],vH);
_.w(vH,"ytd-tri-state-button-view-model",function(){if(XJb!==void 0)return XJb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return XJb=D},{mode:1});var AMs;var qqm;var h0=function(){var D=_.c.apply(this,arguments)||this;D.defaultIconToFilled=!_.g("kevlar_fill_comment_chip_icon_killswitch");return D};
_.J(h0,_.c);h0.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
h0.prototype.dataChanged=function(){if(this.data){var D,v;((D=this.data.chipColorPalette)==null?0:D.backgroundColor)&&((v=this.data.chipColorPalette)==null?0:v.foregroundTitleColor)&&_.SB(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.uu(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.uu(this.data.chipColorPalette.foregroundTitleColor)});var h;((h=this.data)==null?0:h.command)?(_.SB(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.SB(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}};
h0.prototype.onTap=function(){var D;if(this.data&&(D=this.data)!=null&&D.command){var v;this.ytComponentBehavior.resolveCommand((v=this.data)==null?void 0:v.command)}};
h0.prototype.getIconSize=function(){return _.g("kevlar_fill_comment_chip_icon_killswitch")?24:12};
h0.prototype.onTap=h0.prototype.onTap;h0.prototype.dataChanged=h0.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],h0.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Hq),_.n("design:type",Object)],h0.prototype,"ironA11yKeysBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],h0.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],h0.prototype,"basePriceText",void 0);_.e([_.Y(),_.n("design:type",Object)],h0.prototype,"chipIcon",void 0);_.e([_.Y(),_.n("design:type",Object)],h0.prototype,"defaultIconToFilled",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h0.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h0.prototype,"onTap",null);
_.e([_.Ry({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],h0);
_.w(h0,"yt-pdg-comment-chip-renderer",function(){if(qqm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;AMs===void 0&&(AMs=document.createElement("template"));var a=AMs;h.call(v,a.content.cloneNode(!0),D.content.firstChild);qqm=D}D=qqm;return D},{mode:2});var aj=function(){var D=_.c.apply(this,arguments)||this;D.useSmallAvatars=_.g("small_avatars_for_comments");D.webWatchCompactComments=_.g("web_watch_compact_comments");D.editDialog=null;return D};
_.J(aj,_.c);_.V=aj.prototype;_.V.onShow=function(){_.n1("cmv",void 0,"wn_comments")};
_.V.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"}}}};
_.V.detached=function(){this.editDialog=null;this.expander.reset()};
_.V.updateBackgroundColor=function(){if(this.backgroundColor){var D={"--ytd-comment-paid-background-color":_.uu(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.SB(this.hostElement,D)}else _.SB(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.V.resetExpander=function(){var D;(D=this.expander)==null||D.reset()};
_.V.openEditDialog=function(D){D.dialog&&(this.editDialog=D.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.V.onYtNavigate=function(D){var v=D.detail.endpoint;if(v=_.k(v,_.sdb)||_.k(v,_.mBy))D.stopPropagation(),this.openEditDialog(v)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null;_.SB(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.V.onAuthorThumbnailClicked=function(){_.g("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.V.onYtCommentboxResize=function(D){var v;(D==null?0:(v=D.detail)==null?0:v.height)&&_.SB(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":D.detail.height+"px"})};
_.GT.Object.defineProperties(aj.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.commentEntity)==null?void 0:D.author;return v&&(v.isCreator||v.isVerified||v.isArtist)?{renderer:{authorEndpoint:v.channelPageEndpoint?_.k(v.channelPageEndpoint,_.Tz):_.k(v.channelCommand,_.Tz),authorText:{runs:[{text:v.displayName}]},color:v.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:v.isArtist?{iconType:"AUDIO_BADGE"}:
v.isVerified?{iconType:v.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:v.isArtist||v.isVerified?v.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.commentEntity)==null?void 0:D.author;return v!=null&&v.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:v.sponsorBadgeUrl}]},tooltip:v.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return _.k((D=this.commentSurfaceEntity)==null?void 0:D.pdgCommentChip,_.oGF)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&((D=this.voiceReplyContainerViewModel)==null?void 0:D.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return _.k((D=this.commentSurfaceEntity)==null?void 0:D.voiceReplyContainerViewModel,I5p)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&(D=this.voiceReplyContainerViewModel)!=null&&D.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.commentSurfaceEntity)==null?void 0:D.commentBackgroundColor)!=null?v:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.g("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var D,v;return(((D=this.commentEntity)==null?void 0:(v=D.properties)==null?void 0:v.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,v;if(_.g("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(v=D.author)==null?0:v.profileCardEndpoint)&&this.viewModel.allowProfileCard){var h,a;return _.k((h=this.commentEntity)==null?void 0:(a=h.author)==null?void 0:a.profileCardEndpoint,_.Tz)}var Q,G;return _.k((Q=this.commentEntity)==null?void 0:(G=Q.avatar)==null?void 0:G.endpoint,_.Tz)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,v;if(_.g("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(v=D.author)==null?0:v.channelPageEndpoint)){var h,a;return _.k((h=this.commentEntity)==null?void 0:(a=h.author)==null?void 0:a.channelPageEndpoint,_.Tz)}var Q,G;return _.k((Q=this.commentEntity)==null?void 0:(G=Q.avatar)==null?void 0:G.endpoint,_.Tz)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q=(D=this.commentEntity)==null?void 0:(v=D.avatar)==null?void 0:(h=v.image)==null?void 0:(a=h.sources)==null?void 0:a[0];return Q?{thumbnails:[{url:Q.url,width:Q.width,height:Q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.commentEntity)==null?0:(v=D.author)==null?0:v.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.commentEntity)==null?void 0:(v=D.author)==null?void 0:v.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.commentEntity)==null?void 0:(v=D.properties)==null?void 0:v.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.k((D=this.commentSurfaceEntity)==null?void 0:D.publishedTimeCommand,_.Tz)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var D,v;if(((D=this.commentEntity)==null?0:D.translatedContent)&&((v=this.translateButtonState)==null?void 0:v.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var h;if((h=this.voiceReplyContainerViewModel)==null?0:h.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var a,Q;return((a=this.commentEntity)==null?void 0:(Q=a.properties)==null?void 0:Q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.commentSharedEntity)==null?void 0:(v=D.strings)==null?void 0:v.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.commentSharedEntity)==null?void 0:(v=D.strings)==null?void 0:v.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentEntity)==null||!D.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var D,v,h=(v=_.k((D=this.viewModel)==null?void 0:D.translateButton,ENs))!=null?v:{},a,Q,G,x,f,C,U,L,Z,E,I;return Object.assign({},h,{untoggledStateData:Object.assign({},h.untoggledStateData,{buttonText:(a=this.commentEntity)==null?void 0:(Q=a.translateData)==null?void 0:Q.text}),togglingStateData:Object.assign({},h.togglingStateData,{buttonText:(G=this.commentSharedEntity)==null?
void 0:(x=G.strings)==null?void 0:x.translatingText}),toggledStateData:Object.assign({},h.toggledStateData,{buttonText:(f=this.commentSharedEntity)==null?void 0:(C=f.strings)==null?void 0:C.seeOriginalText}),transitionCommand:((U=this.commentEntity)==null?0:U.translatedContent)?void 0:_.k((L=this.commentEntity)==null?void 0:(Z=L.translateData)==null?void 0:Z.translateComment,_.Tz),triStateKey:(E=this.commentEntity)==null?void 0:(I=E.properties)==null?void 0:I.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((v=_.k(_.k((D=this.toolbarSurface)==null?void 0:D.menuCommand,_.Tz),Hr$))==null?void 0:(h=v.menu)==null?void 0:h.menuRenderer)||null}}});
aj.prototype.onYtCommentboxResize=aj.prototype.onYtCommentboxResize;aj.prototype.onYtCommentboxDismiss=aj.prototype.onYtCommentboxDismiss;aj.prototype.onYtNavigate=aj.prototype.onYtNavigate;aj.prototype.resetExpander=aj.prototype.resetExpander;aj.prototype.updateBackgroundColor=aj.prototype.updateBackgroundColor;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],aj.prototype,"ytdReduxBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#author-thumbnail > button"),_.n("design:type",HTMLElement)],aj.prototype,"authorThumbnailAnchor",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("viewModel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aj.prototype,"linked",null);
_.e([_.N("viewModel","linked"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"linkedCommentBadge",null);_.e([_.Y({reflectToAttribute:!0}),_.N("viewModel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aj.prototype,"pinned",null);_.e([_.N("viewModel","pinned"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"pinnedCommentBadge",null);
_.e([_.N("commentEntity","commentSharedEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"authorCommentBadge",null);_.e([_.Y({reflectToAttribute:!0}),_.N("authorCommentBadge"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"hasAuthorBadge",null);_.e([_.N("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"sponsorCommentBadge",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("sponsorCommentBadge"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"hasSponsorBadge",null);_.e([_.N("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"pdgCommentChipRenderer",null);_.e([_.Y({reflectToAttribute:!0}),_.N("voiceReplyContainerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"hasVoiceReply",null);
_.e([_.N("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"voiceReplyContainerViewModel",null);_.e([_.N("voiceReplyContainerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"voiceReplyUnavailableText",null);_.e([_.Y(),_.n("design:type",Object)],aj.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"viewModel",null);
_.e([_.Y({selector:function(D,v){return _.gR(D.entities,"commentSharedEntityPayload",v)},
selectorArgs:["viewModel.sharedKey"]}),_.n("design:type",Object)],aj.prototype,"commentSharedEntity",void 0);_.e([_.Y({selector:function(D,v){return _.gR(D.entities,"commentEntityPayload",v)},
selectorArgs:["viewModel.commentKey"]}),_.n("design:type",Object)],aj.prototype,"commentEntity",void 0);_.e([_.Y({selector:function(D,v){return _.gR(D.entities,"commentSurfaceEntityPayload",v)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.n("design:type",Object)],aj.prototype,"commentSurfaceEntity",void 0);_.e([_.Y({selector:kDr,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.n("design:type",Object)],aj.prototype,"toolbarSurface",void 0);_.e([_.Y({selector:Sxr,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.n("design:type",Object)],aj.prototype,"translateButtonState",void 0);
_.e([_.N("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"backgroundColor",null);_.e([_.Y({reflectToAttribute:!0}),_.N("viewModel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aj.prototype,"optimalReadingWidthComments",null);_.e([_.Br("ytd-expander"),_.n("design:type",Object)],aj.prototype,"expander",void 0);
_.e([_.Ni("backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aj.prototype,"updateBackgroundColor",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],aj.prototype,"useSmallAvatars",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],aj.prototype,"webWatchCompactComments",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"isReply",null);
_.e([_.N("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"authorThumbnailEndpoint",null);_.e([_.N("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"authorNameEndpoint",null);_.e([_.N("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"authorThumbnail",null);_.e([_.N("commentEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],aj.prototype,"authorTextClass",null);
_.e([_.N("commentEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],aj.prototype,"authorChannelName",null);_.e([_.N("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"publishedTime",null);_.e([_.N("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"publishedTimeCommand",null);
_.e([_.N("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"contentText",null);_.e([_.Ni("contentText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aj.prototype,"resetExpander",null);_.e([_.N("commentEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aj.prototype,"shouldShowReadMoreInitially",null);
_.e([_.N("commentSharedEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],aj.prototype,"expandText",null);_.e([_.N("commentSharedEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],aj.prototype,"collapseText",null);_.e([_.N("commentEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aj.prototype,"shouldShowTranslateButton",null);
_.e([_.N("commentEntity","commentSharedEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"translateButton",null);_.e([_.N("toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],aj.prototype,"overflowMenuRenderer",null);_.e([_.Y(),_.n("design:type",Object)],aj.prototype,"editDialog",void 0);_.e([_.Br("ytd-comment-dialog-renderer"),_.n("design:type",Object)],aj.prototype,"editCommentDialogContainer",void 0);
_.e([_.Br("ytd-comment-reply-dialog-renderer"),_.n("design:type",Object)],aj.prototype,"editReplyDialogContainer",void 0);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aj.prototype,"onYtNavigate",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aj.prototype,"onYtCommentboxDismiss",null);
_.e([_.lc("yt-commentbox-resize"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aj.prototype,"onYtCommentboxResize",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-comment-view-model"})],aj);
_.w(aj,"ytd-comment-view-model",function(){if(cMJ!==void 0)return cMJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return cMJ=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});_.zh(_.H(function(D){var v={};return _.F("yt-sub-thread",{class:_.S3("ytSubThreadHost",(v.ytSubThreadHasButton=D.isButton,v))},_.F("div",{class:"ytSubThreadThreadline"},_.F("div",{class:"ytSubThreadConnection"}),_.F("div",{class:"ytSubThreadContinuation"}),_.F("div",{class:"ytSubThreadShadow"})),_.F("div",{class:"ytSubThreadSubThreadContent"},D.children))},"yc"),"yt-sub-thread",{props:{isButton:_.gj}});var $x=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_modern_buttons");D.commentThreadingEnabled=_.g("web_delhi_comment_threads");D.isWatchGrid=_.g("kevlar_watch_grid");D.buttonOverrides=D.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};D.JSC$15906_spinnerEl=null;return D};
_.J($x,_.c);_.V=$x.prototype;_.V.configureContinuationPathMap=function(){return _.g("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.shouldShowExpandedThreads=function(D,v){return this.commentThreadingEnabled&&v&&(D==null?void 0:D.length)>0};
_.V.shouldShowCollapsedThreads=function(D,v){return this.commentThreadingEnabled&&!v&&D};
_.V.computeThreadRenderer=function(D){return _.k(D,CEM)};
_.V.computeIsContinuationItem=function(D){return!!this.computeContinuationItemRenderer(D)};
_.V.computeButtonRenderer=function(D){return _.k(D,_.Vi)};
_.V.computeContinuationItemRenderer=function(D){return _.k(D,_.aQ)};
_.V.computeShowButton=function(D){var v;return!((v=this.computeContinuationItemRenderer(D))==null||!v.button)};
_.V.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]]"}}}}}};
_.V.attached=function(){this.isShowRepliesVisible=!0};
_.V.dataChanged=function(){var D=this.expanderContents;D&&(D.hidden=!0);this.isLoading=!1};
_.V.endsInContinuation=function(D){return!!D&&D.length>0&&!!this.computeContinuationItemRenderer(D[D.length-1])};
_.V.computeShouldShowHideRepliesButton=function(D,v){return!D&&v};
_.V.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.V.isLoadingChanged=function(){this.isLoading&&!this.JSC$15906_spinnerEl&&(this.JSC$15906_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZW(this.expanderContents).appendChild(this.JSC$15906_spinnerEl));this.JSC$15906_spinnerEl&&(this.JSC$15906_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var D;(D=this.contents)==null||D.classList.remove("reloading")}};
_.V.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var D=_.k(this.data.viewReplies,_.Vi);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.V.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var D=_.k(this.data.hideReplies,_.Vi);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.V.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var D=_.ZW(this.hostElement).querySelector("#expander-contents");D&&(D.hidden=this.isShowRepliesVisible)}};
_.V.computeAlign=function(){if(this.modern){var D;return!((D=this.data)==null?0:D.viewRepliesCreatorThumbnail)}};
_.GT.Object.defineProperties($x.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var D,v;return this.endsInContinuation((D=this.data)==null?void 0:D.contents)||this.commentThreadingEnabled&&this.endsInContinuation((v=this.data)==null?void 0:v.subThreads)}}});
$x.prototype.isShowMoreChanged=$x.prototype.isShowMoreChanged;$x.prototype.isLoadingChanged=$x.prototype.isLoadingChanged;$x.prototype.triggerFirstContinuation=$x.prototype.triggerFirstContinuation;$x.prototype.dataChanged=$x.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.LU),_.n("design:type",Object)],$x.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$x.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$x.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$x.prototype,"commentThreadingEnabled",void 0);_.e([_.Y(),_.n("design:type",Boolean)],$x.prototype,"expanded",void 0);
_.e([_.Y(),_.n("design:type",Function)],$x.prototype,"toggleExpanded",void 0);_.e([_.Y(),_.n("design:type",Array)],$x.prototype,"teasers",void 0);_.e([_.Y(),_.n("design:type",Boolean)],$x.prototype,"isLoading",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],$x.prototype,"isShowRepliesVisible",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],$x.prototype,"useNewFormatting",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$x.prototype,"isWatchGrid",void 0);
_.e([_.Y(),_.n("design:type",Object)],$x.prototype,"buttonOverrides",void 0);_.e([_.Br("#expander-contents"),_.n("design:type",HTMLElement)],$x.prototype,"expanderContents",void 0);_.e([_.Br("ytd-continuation-item-renderer"),_.n("design:type",Object)],$x.prototype,"continuationItemRenderer",void 0);_.e([_.Br("#contents"),_.n("design:type",HTMLElement)],$x.prototype,"contents",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$x.prototype,"dataChanged",null);_.e([_.N("data.contents","data.subThreads.*"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$x.prototype,"hasContinuation",null);_.e([_.lc("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$x.prototype,"triggerFirstContinuation",null);
_.e([_.Ni("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$x.prototype,"isLoadingChanged",null);_.e([_.Ni("isShowRepliesVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$x.prototype,"isShowMoreChanged",null);_.e([_.m({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],$x);
_.w($x,"ytd-comment-replies-renderer",function(){if(JMp!==void 0)return JMp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content 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      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="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    </yt-sub-thread>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return JMp=D},{mode:1});var bs4;var QI=function(){var D=_.c.apply(this,arguments)||this;D.isOpen=!1;D.commentDialog=null;D.useSmallAvatars=_.g("small_avatars_for_comments");D.useSmallAvatarsEngagementPanelOnly=_.g("small_avatars_for_comments_ep");D.placeholderFocusListener=null;D.hasOpenedDialog=!1;D.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return D};
_.J(QI,_.c);_.V=QI.prototype;_.V.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]]"}}}}}};
_.V.ready=function(){var D=this,v=_.ZW(this.hostElement).querySelector("#placeholder-area"),h=_.ZW(this.hostElement).querySelector("#simplebox-placeholder"),a=function(Q){Q.stopPropagation();Q instanceof KeyboardEvent&&Q.type==="keypress"&&Q.keyCode!==13&&Q.keyCode!==32||D.openDialog()};
this.placeholderFocusListener=a;h.addEventListener("focus",this.placeholderFocusListener);v.addEventListener("tap",a);v.addEventListener("keypress",a)};
_.V.maybeRemoveFocusEventListener=function(){var D;(D=this.data)!=null&&D.prepareAccountEndpoint&&!_.g("web_comments_simplebox_modal_focus_on_tap_ks")&&(D=_.ZW(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(D.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.V.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.V.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.g("web_comment_simplebox_resolve_polymer_command_ks")?_.pb.instance.resolveCommand(this.data.prepareAccountEndpoint):_.lP(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);D&&this.ytdOpenPopupBehavior.openPopup(D);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.ZW(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.V.onYtCommentboxDismiss=function(D){D.stopPropagation();this.isOpen=!1};
_.V.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.isOpen=!1)};
_.V.computeCommentDialog=function(D){return{placeholderText:D.placeholderText,authorThumbnail:D.authorThumbnail,submitButton:D.submitButton,imageButton:D.imageButton,cancelButton:D.cancelButton,emojiButton:D.emojiButton,emojis:D.emojis,emojiPicker:D.emojiPicker,aadcGuidelinesStateEntityKey:D.aadcGuidelinesStateEntityKey,openAadcDialog:D.openAadcDialog,unicodeEmojisUrl:D.unicodeEmojisUrl}};
_.V.onHideIdentityChip=function(D){_.k(D,GqM)&&this.set("data.placeholderText",_.k(D,GqM).placeholderText)};
QI.prototype.onYtCommentboxDismiss=QI.prototype.onYtCommentboxDismiss;QI.prototype.dataChanged=QI.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],QI.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],QI.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],QI.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],QI.prototype,"isOpen",void 0);_.e([_.Y(),_.n("design:type",Object)],QI.prototype,"commentDialog",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],QI.prototype,"engagementPanel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],QI.prototype,"useSmallAvatars",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],QI.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],QI.prototype,"enableCreationBox",void 0);_.e([_.Y(),_.n("design:type",Boolean)],QI.prototype,"showCreateDialog",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QI.prototype,"dataChanged",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],QI.prototype,"onYtCommentboxDismiss",null);_.e([_.m({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],QI);
_.w(QI,"ytd-comment-simplebox-renderer",function(){if(bs4!==void 0)return bs4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return bs4=D},{mode:1});var dgF;_.HX("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var GZ=function(){var D=_.c.apply(this,arguments)||this;D.addHoverEffect=_.g("swatcheroo_comments_hover_effect");D.useSmallAvatars=_.g("small_avatars_for_comments");D.scrollingEnabled=_.g("web_comment_threading_scroll_on_collapse");D.threadHovered=!1;D.expanded=!1;D.removed=!1;D.teasers=[];D.actionMap=D.configureActionMap();D.toggleExpanded=function(){D.expanded=!D.expanded;!D.expanded&&D.scrollingEnabled&&_.zU(D.hostElement,"yt-scroll-to-comment-element",[D.commentElement])};
return D};
_.J(GZ,_.c);_.V=GZ.prototype;_.V.configureActionMap=function(){return _.g("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.V.createCommentReplyAction=function(D){D=_.k(D,$Cb);if(D!=null&&D.contents){var v=D.replyToCommentId,h=D.parentCommentId,a,Q=(a=this.commentViewModel)==null?void 0:a.commentId;(Q===v||Q===h&&!v)&&this.attachReply(D.contents)}};
_.V.attachReply=function(D){var v;((v=this.data)==null?0:v.replies)?(v=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+v+".continuationItemRenderer")?v===0?this.push("teasers",D):this.splice("data.replies.commentRepliesRenderer.subThreads",v,0,D):this.push("data.replies.commentRepliesRenderer.subThreads",D)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[D],viewReplies:{buttonRenderer:{text:_.MD(_.p1("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.V.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.j_(this.teasers))),this.set("teasers",[]))};
_.V.removeCommentAction=function(D){D=_.k(D,xCs);var v=D==null?void 0:D.commentId,h;v&&((h=this.commentViewModel)==null?void 0:h.commentId)===v&&this.maybeRemoveComment(D.actionResult)};
_.V.banAuthorAction=function(D){D=_.k(D,hwF);var v=D==null?void 0:D.commentId,h;v&&((h=this.commentViewModel)==null?void 0:h.commentId)===v&&this.maybeRemoveComment(D.actionResult)};
_.V.hideReportedCommentAction=function(D){D=_.k(D,JFm);var v=D==null?void 0:D.commentId,h;v&&((h=this.commentViewModel)==null?void 0:h.commentId)===v&&this.maybeRemoveComment(D.actionResult)};
_.V.maybeRemoveComment=function(D){D&&D.status==="STATUS_SUCCEEDED"&&(this.feedbackText=D.feedbackText||_.MD("Reply removed"),this.removed=!0)};
_.V.onTap=function(D){if(this.addHoverEffect&&!this.engagementPanel&&!_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var v;((v=window.getSelection())==null?0:v.toString().length)||_.lP({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.V.attached=function(){var D=this;this.isSubThread&&(this.expanded=!0);var v;(v=this.commentThreadHitbox)==null||v.addEventListener("mouseover",function(){D.threadHovered=!0});
var h;(h=this.commentThreadHitbox)==null||h.addEventListener("mouseout",function(){D.threadHovered=!1});
var a;(a=this.commentThreadHitbox)==null||a.addEventListener("click",function(){D.maybeToggleExpanded()})};
_.V.maybeToggleExpanded=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.replies)==null?void 0:(h=v.commentRepliesRenderer)==null?void 0:h.subThreads,Q;(a==null?void 0:a.length)===1&&((Q=_.k(a[0],_.aQ))==null?0:Q.button)&&this.expanded||this.toggleExpanded()};
_.GT.Object.defineProperties(GZ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.commentViewModel)return _.k(this.data.commentViewModel,ZX9)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return _.g("web_delhi_comment_threads")&&!!((D=this.data)==null?0:(v=D.replies)==null?0:(h=v.commentRepliesRenderer)==null?0:h.subThreads)}}});
GZ.prototype.onTap=GZ.prototype.onTap;GZ.prototype.onAppendContinuationItemsActionFinished=GZ.prototype.onAppendContinuationItemsActionFinished;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],GZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GZ.prototype,"addHoverEffect",void 0);_.e([_.Y(),_.n("design:type",Object)],GZ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GZ.prototype,"useSmallAvatars",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GZ.prototype,"scrollingEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],GZ.prototype,"isSubThread",void 0);
_.e([_.Br(".thread-hitbox"),_.n("design:type",HTMLElement)],GZ.prototype,"commentThreadHitbox",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GZ.prototype,"threadHovered",void 0);_.e([_.Br("#comment"),_.n("design:type",HTMLElement)],GZ.prototype,"commentElement",void 0);_.e([_.Y(),_.n("design:type",Object)],GZ.prototype,"expanded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GZ.prototype,"removed",void 0);
_.e([_.Y(),_.n("design:type",Object)],GZ.prototype,"feedbackText",void 0);_.e([_.Y(),_.n("design:type",Array)],GZ.prototype,"teasers",void 0);_.e([_.lc("yt-append-continuation-items-action-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GZ.prototype,"onAppendContinuationItemsActionFinished",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],GZ.prototype,"commentViewModel",null);
_.e([_.N("data.replies"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],GZ.prototype,"hasSubThreading",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],GZ.prototype,"engagementPanel",void 0);_.e([_.lc("tap"),_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],GZ.prototype,"onTap",null);_.e([_.m({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],GZ);
_.w(GZ,"ytd-comment-thread-renderer",function(){if(dgF!==void 0)return dgF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return dgF=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var jzm;var VI=function(){var D=_.c.apply(this,arguments)||this;D.compactHeader=_.g("web_watch_compact_comments_header");D.hidePanelButton=!1;D.isPostSchedulingEnabled=_.g("enable_post_scheduling");D.hasFinishedStamping=!1;D.JSC$15929_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.J(VI,_.c);_.V=VI.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.V.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15929_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.onYtServiceRequestSent=function(D,v){if(!_.g("kevlar_command_handler")&&v.actions)for(D=0;D<v.actions.length;D++){var h=v.actions[D];_.k(h,cJm)&&_.ZW(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.k(h,cJm))}};
_.V.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var D;if(this.getPrefilledBackstagePostDialog((D=this.data)==null?void 0:D.actions)){_.ZW(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var v=_.ZW(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;v&&_.$R(this,function(){v.focus();v.openDialog&&v.openDialog()})}}else this.hasActionsChange=!0};
_.V.computeIsBackstage=function(D){return D};
_.V.onYtCommentboxDismiss=function(){_.ZW(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.V.removePrefilledDialog=function(D){if(D==null?0:D.actions){for(var v=D.actions.length-1;v>=0;v--){var h=void 0;((h=_.k(D.actions[v],dB9))==null?0:h.dialog)&&delete D.actions[v]}this.set("data",void 0);this.set("data",D)}};
_.V.getPrefilledBackstagePostDialog=function(D){if(D)for(var v=0;v<D.length;v++){var h=D[v],a=void 0;if((a=_.k(h,dB9))==null?0:a.dialog)return _.k(h,dB9).dialog}return null};
_.V.computeBackstagePostDialog=function(D){return D&&(this.getPrefilledBackstagePostDialog(D.actions)||D.createRenderer)};
_.V.dataChanged=function(){if(this.data){var D=this.data.customEmojis,v=this.data.unicodeEmojisUrl;_.Ua.clear();v&&_.B81(_.Ua,v);D&&_.Ua.load(D)}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.ZW(this.hostElement).querySelector("ytd-comment-simplebox-renderer");D?D.openDialog():this.JSC$15929_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onPostHeaderTap=function(){var D;((D=this.data)==null?0:D.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.GT.Object.defineProperties(VI.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.g("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q,G,x;return!this.hidePanelButton&&_.g("kevlar_watch_comments_panel_button")&&((x=_.k((D=this.data)==null?void 0:(v=D.sortMenu)==null?void 0:(h=v.sortFilterSubMenuRenderer)==null?void 0:(a=h.subMenuItems)==null?void 0:(Q=a[0])==null?void 0:(G=Q.serviceEndpoint)==null?void 0:G.commandMetadata,_.Sa))==null?void 0:x.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.p1("MINIPLAYER_EXPAND_LABEL"),text:_.aX(_.p1("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
VI.prototype.dataChanged=VI.prototype.dataChanged;VI.prototype.onYtCommentboxDismiss=VI.prototype.onYtCommentboxDismiss;VI.prototype.observePrefilledBackstagePostDialog=VI.prototype.observePrefilledBackstagePostDialog;VI.prototype.onYtServiceRequestSent=VI.prototype.onYtServiceRequestSent;VI.prototype.onStampFinished=VI.prototype.onStampFinished;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],VI.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],VI.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],VI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],VI.prototype,"compactHeader",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],VI.prototype,"engagementPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],VI.prototype,"hidePanelButton",void 0);_.e([_.Y({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.n("design:type",Boolean)],VI.prototype,"isBackstage",void 0);_.e([_.Y({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.n("design:type",Object)],VI.prototype,"backstagePostDialog",void 0);
_.e([_.Y(),_.n("design:type",Object)],VI.prototype,"isPostSchedulingEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data","showCommentsPanelButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],VI.prototype,"useSpaceBetween",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data","hidePanelButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],VI.prototype,"showCommentsPanelButton",null);
_.e([_.N("data","showCommentsPanelButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],VI.prototype,"commentsPanelButtonData",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VI.prototype,"onStampFinished",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],VI.prototype,"onYtServiceRequestSent",null);
_.e([_.Ni("data.actions"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VI.prototype,"observePrefilledBackstagePostDialog",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],VI.prototype,"onYtCommentboxDismiss",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VI.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],VI);
_.w(VI,"ytd-comments-header-renderer",function(){if(jzm!==void 0)return jzm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jzm=D},{mode:1});var szR;var PH=function(){return _.c.apply(this,arguments)||this};
_.J(PH,_.c);_.e([_.Y(),_.n("design:type",Object)],PH.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.e([_.m({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],PH);
_.w(PH,"ytd-destination-button-renderer",function(){if(szR!==void 0)return szR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return szR=D},{mode:1});var mg9;var xx=function(){var D=_.c.apply(this,arguments)||this;D.isRichGrid=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return D};
_.J(xx,_.c);_.V=xx.prototype;_.V.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.V.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.V.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var D;if((D=this.data)==null||!D.isExpanded){D=this.hostElement.clientWidth;var v;if(D&&(v=this.data)!=null&&v.destinationButtons){v=Math.floor((D+4)/214);D=this.data.destinationButtons.length;var h=Math.ceil(D/v);this.fullyVisibleRows=D%v===1&&h===2?1:Math.min(h,2);this.isShowMoreVisible=this.fullyVisibleRows<h}}}};
_.V.updateRichGridDestinationButtonsVisibility=function(){var D,v;if(this.isRichGrid&&((D=this.data)==null||!D.isExpanded)&&(v=this.data)!=null&&v.destinationButtons){D=this.richGridItemsPerRow+1;v=this.data.destinationButtons.length;var h=Math.ceil(v/D);this.fullyVisibleRows=v%D===1&&h===2?1:Math.min(h,2);this.isShowMoreVisible=this.fullyVisibleRows<h}};
_.V.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
xx.prototype.updateRichGridDestinationButtonsVisibility=xx.prototype.updateRichGridDestinationButtonsVisibility;_.e([_.Y(),_.n("design:type",Object)],xx.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Number)],xx.prototype,"fullyVisibleRows",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],xx.prototype,"isShowMoreVisible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xx.prototype,"isRichGrid",void 0);
_.e([_.Y({selector:_.wR,value:0}),_.n("design:type",Number)],xx.prototype,"richGridItemsPerRow",void 0);_.e([_.Y(),_.n("design:type",Object)],xx.prototype,"gridStateActionMap",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],xx.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],xx.prototype,"ytdReduxBehavior",void 0);_.e([_.Ni("data","richGridItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xx.prototype,"updateRichGridDestinationButtonsVisibility",null);_.e([_.m({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],xx);
_.w(xx,"ytd-destination-shelf-renderer",function(){if(mg9!==void 0)return mg9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return mg9=D},{mode:1});var Hs9;var Mz=function(){return _.c.apply(this,arguments)||this};
_.J(Mz,_.c);Mz.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Mz.prototype,"data",void 0);_.e([_.m({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Mz);
_.w(Mz,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Hs9!==void 0)return Hs9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Hs9=D},{mode:1});var yMR;var fN=function(){var D=_.c.apply(this,arguments)||this;D.disableAnimation=!1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;return D};
_.J(fN,_.c);fN.prototype.onTap=function(D){D.preventDefault();this.data&&_.F1(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.GT.Object.defineProperties(fN.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q;return((D=this.data)==null?0:D.checked)?(v=this.data)==null?void 0:(h=v.onStateIcon)==null?void 0:h.iconType:(a=this.data)==null?void 0:(Q=a.defaultStateIcon)==null?void 0:Q.iconType}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],fN.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fN.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],fN.prototype,"disableAnimation",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fN.prototype,"isSlimlineSurvey",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fN.prototype,"isSlimlineSurveyFollowUp",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fN.prototype,"isShortsStyle",void 0);_.e([_.N("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fN.prototype,"isAnimatedIcon",null);
_.e([_.N("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.n("design:type",Number),_.n("design:paramtypes",[])],fN.prototype,"iconSize",null);_.e([_.N("isShortsStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fN.prototype,"isDarkTheme",null);_.e([_.N("data.checked"),_.n("design:type",Object),_.n("design:paramtypes",[])],fN.prototype,"icon",null);_.e([_.m({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],fN);
_.w(fN,"ytd-rating-survey-option-renderer",function(){if(yMR!==void 0)return yMR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return yMR=D},{mode:2});var wJs;var CN=function(){var D=_.c.apply(this,arguments)||this;D.firstResponseText=null;D.lastResponseText=null;D.selectedNonStarOption=null;D.hideOptions=!1;D.hideUndoButton=!0;D.disableAnimation=!1;D.showResponseRangeText=!1;D.selectedRatingIndex=-1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.slimlineSurveyRatingSelectedIndex=-1;return D};
_.J(CN,_.c);_.V=CN.prototype;_.V.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.V.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.V.onOptionChange=function(D,v){var h=this;D=v.onStateIcon&&v.defaultStateIcon&&v.onStateIcon.iconType===v.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(x,f){x.responseText===v.responseText?h.isSlimlineSurvey?(h.selectedRatingIndex=f,h.ytdReduxBehavior.dispatch(Xjs(f))):(h.setSurveyOptionValue(f,!0,"checked"),h.setSurveyOptionValue(f,!0,"selected")):(h.setSurveyOptionValue(f,!1,"checked"),h.setSurveyOptionValue(f,
!1,"selected"))});
else if(D)this.selectedNonStarOption=v,this.hideOptions=!0;else{var a=this.ytRendererBehavior.getSimpleString(v.responseText),Q=!0;this.getOptionRenderers().forEach(function(x,f){h.setSurveyOptionValue(f,Q,"checked");h.setSurveyOptionValue(f,!1,"selected");h.ytRendererBehavior.getSimpleString(x.responseText)===a&&(Q=!1,h.setSurveyOptionValue(f,!0,"selected"))})}D=v.responseEndpoint;
var G;v.followUpCommand&&(G=_.k(v.followUpCommand,bym));this.isSlimlineSurvey?(this.resetComponent(),_.zU(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.zU(this.hostElement,"ytd-inline-survey-rating-select-action",[D,G])};
_.V.showSelectedOption=function(){var D=this;_.HK.addJob(function(){var v=D.getOptionRenderers()[D.slimlineSurveyRatingSelectedIndex];D.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),v)},8,100)};
_.V.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(D){var v;return(v=_.k(D,jWR))!=null?v:{}}):[]};
_.V.onUndoClick=function(){this.resetComponent();_.zU(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.V.setSurveyOptionValue=function(D,v,h){this.notifyPath("data.ratings."+D+".ratingSurveyOptionRenderer."+h);this.set("data.ratings."+D+".ratingSurveyOptionRenderer."+h,v)};
_.V.resetComponent=function(){var D=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var v=this.getOptionRenderers(),h,a;this.firstResponseText=(a=(h=v[0])==null?void 0:h.responseText)!=null?a:null;var Q,G;this.lastResponseText=(G=(Q=v[v.length-1])==null?void 0:Q.responseText)!=null?G:null;v.forEach(function(x,f){D.setSurveyOptionValue(f,!1,"checked");D.setSurveyOptionValue(f,!1,"selected")})};
_.GT.Object.defineProperties(CN.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
CN.prototype.onOptionChange=CN.prototype.onOptionChange;CN.prototype.dataChanged=CN.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],CN.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"firstResponseText",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"lastResponseText",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"selectedNonStarOption",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"hideOptions",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"hideUndoButton",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"disableAnimation",void 0);
_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"showResponseRangeText",void 0);_.e([_.Y(),_.n("design:type",Object)],CN.prototype,"selectedRatingIndex",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CN.prototype,"isSlimlineSurvey",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CN.prototype,"isSlimlineSurveyFollowUp",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CN.prototype,"isShortsStyle",void 0);_.e([_.Y({selector:function(D){return D.ui.slimlineSurveyRatingSelectedIndex}}),
_.n("design:type",Object)],CN.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.e([_.N("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],CN.prototype,"isSingleSelect",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CN.prototype,"dataChanged",null);
_.e([_.lc("ytd-rating-survey-option-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],CN.prototype,"onOptionChange",null);_.e([_.m({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],CN);
_.w(CN,"ytd-rating-survey-renderer",function(){if(wJs!==void 0)return wJs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wJs=D},{mode:1});var eXm;var nOM;var Osb;var PZf=(k2.FIRSTDAYOFWEEK+1)%7,KU4=function(D,v,h,a){var Q="";if(a.selection&&$2c(a.selection))Ey(D,a.selection)&&(Q+=" selected");else if(a.selection&&QLc(a.selection)){var G=a.selection.selectionState||"START_DATE";Ey(D,a.selection.start)&&(Q+=" period-start ",G==="START_DATE"&&(Q+="selected"));Ey(D,a.selection.end)&&(Q+=" period-end ",G==="END_DATE"&&(Q+="selected"));Ii(D,a.selection.start)||Ii(a.selection.end,D)||(Q+=" highlighted")}if(Ii(v,a.start)||Ii(a.end,v))Q+=" disabled";a.circleToday&&
Ey(v,h)&&(Q+=" today");return Q};var oj=function(){return _.c.apply(this,arguments)||this};
_.J(oj,_.c);_.V=oj.prototype;_.V.attached=function(){var D=this;_.$R(this,function(){D.JSC$15963_calendarMain.scrollHeight>0&&(D.calendarConfig.selection?D.scrollToDate(GWu(D.calendarConfig.selection)):D.scrollToDate(D.calendarConfig.end))})};
_.V.updateSelection=function(D){D=x28(Object.assign({},this.calendarConfig,{selection:D}),KU4);this.splice.apply(this,["renderData.months",0,D.length].concat(_.j_(D)))};
_.V.scrollToDate=function(D){this.renderData&&(D=MFq(D,this.renderData),D!==void 0&&this.JSC$15963_calendarMain.scrollToIndex(D))};
_.V.scrollToNextMonth=function(){this.JSC$15963_calendarMain.scrollToIndex(this.JSC$15963_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$15963_calendarMain.firstVisibleIndex===0&&this.JSC$15963_calendarMain.scrollTo(0,0);this.JSC$15963_calendarMain.scrollToIndex(this.JSC$15963_calendarMain.firstVisibleIndex-1)};
_.V.handleDayClick=function(D){_.zU(this.hostElement,"ytd-calendar-date-clicked",[D.model.day.date])};
_.V.handleDayMouseDown=function(D){D.preventDefault();_.zU(this.hostElement,"ytd-calendar-date-mousedown",[D.model.day.date])};
_.V.handleDayMouseUp=function(D){_.zU(this.hostElement,"ytd-calendar-date-mouseup",[D.model.day.date])};
_.V.handleDayMouseEnter=function(D){D.preventDefault();_.zU(this.hostElement,"ytd-calendar-date-mouseenter",[D.model.day.date])};
_.V.handleDayMouseLeave=function(D){_.zU(this.hostElement,"ytd-calendar-date-mouseleave",[D.model.day.date])};
_.GT.Object.defineProperties(oj.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var D=this.calendarConfig,v=KU4;v=v===void 0?KU4:v;for(var h=[],a=0;a<7;a++)h.push(k2.NARROWWEEKDAYS[(a+PZf)%7]);return{months:x28(D,v),daysOfWeekLabel:h}}}});
_.e([_.Y(),_.n("design:type",Object)],oj.prototype,"calendarConfig",void 0);_.e([_.Br("#calendar-main"),_.n("design:type",Object)],oj.prototype,"JSC$15963_calendarMain",void 0);_.e([_.N("calendarConfig"),_.n("design:type",Object),_.n("design:paramtypes",[])],oj.prototype,"renderData",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],oj);
_.w(oj,"ytd-scrollable-calendar",function(){if(Osb!==void 0)return Osb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Osb=D},{mode:2});var Tw1;var RXJ;var F$=function(){var D=_.c.apply(this,arguments)||this;D.hideCharCounter=!1;D.hideLabel=!1;D.noLabelFloat=!1;D.autoValidate=!0;D.invalid=!1;D.disabled=!1;D.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return D};
_.J(F$,_.c);_.V=F$.prototype;_.V.reset=function(D){this.value=D&&this.data?this.data.value=D:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.V.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.V.focusTextInput=function(){this.input.focus()};
_.V.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()};
_.V.valueChanged=function(){var D,v;if(((D=this.data)==null?0:D.value)||((v=this.data)==null?void 0:v.value)==="")this.value=this.data.value;else{var h;((h=this.data)==null?void 0:h.value)!==void 0||this.value||(this.value="")}};
_.V.computeLabel=function(D,v){return v?"":_.$V(D)};
_.V.computeAriaLabel=function(D,v){return v?_.$V(D):""};
_.V.computeErrorMessage=function(D,v,h,a){!D&&v?D=h||this.strings.REQUIRED_LABEL:(D=_.$V(a),D=_.oo(D,"&")?"document"in _.$L?U11(D):LRp(D):D);return D};
_.V.computeType=function(D){return D==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.V.onTextValueChanged=function(D){this.value=D.detail.value;var v;(v=this.onValueChanged)==null||v.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.V.handleUpdateTextInputFormFieldRendererCommand=function(D){(D=_.k(D,als))&&this.data&&this.data.id===D.id&&(D.invalid!==void 0&&(this.invalid=D.invalid),D.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",D.invalidValueErrorMessage))};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("value-changed",this.value))};
_.V.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.GT.Object.defineProperties(F$.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var D;return!((D=this.data)==null||!D.isMultiline)}}});
F$.prototype.valueChangedForBinding=F$.prototype.valueChangedForBinding;F$.prototype.valueChanged=F$.prototype.valueChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],F$.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],F$.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],F$.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],F$.prototype,"value",void 0);_.e([_.Y(),_.n("design:type",String)],F$.prototype,"pattern",void 0);_.e([_.Y(),_.n("design:type",String)],F$.prototype,"errorMessage",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],F$.prototype,"componentStyle",void 0);_.e([_.Y(),_.n("design:type",Object)],F$.prototype,"hideCharCounter",void 0);
_.e([_.Y(),_.n("design:type",Object)],F$.prototype,"hideLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],F$.prototype,"noLabelFloat",void 0);_.e([_.Y(),_.n("design:type",Function)],F$.prototype,"onValueChanged",void 0);_.e([_.Y(),_.n("design:type",Boolean)],F$.prototype,"isMultilineOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],F$.prototype,"autoValidate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F$.prototype,"invalid",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F$.prototype,"disabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],F$.prototype,"enableOverlayTheme",void 0);_.e([_.Y({value:{REQUIRED_LABEL:_.p1("REQUIRED_LABEL",void 0,"Required")}}),_.n("design:type",Object)],F$.prototype,"strings",void 0);_.e([_.Br("#input"),_.n("design:type",Object)],F$.prototype,"input",void 0);
_.e([_.N("data","isMultilineOverride"),_.n("design:type",Object),_.n("design:paramtypes",[])],F$.prototype,"isMultiline",null);_.e([_.qi("data.value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F$.prototype,"valueChanged",null);_.e([_.Ni("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F$.prototype,"valueChangedForBinding",null);_.e([_.Ry({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],F$);
_.w(F$,"yt-text-input-form-field-renderer",function(){if(RXJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;Tw1===void 0&&(Tw1=document.createElement("template"));var a=Tw1;h.call(v,a.content.cloneNode(!0),D.content.firstChild);RXJ=D}D=RXJ;return D},{mode:2});var zZ=function(){var D=_.c.apply(this,arguments)||this;D.data=void 0;D.selectionState="START_DATE";D.isStartDateInvalid=!1;D.isEndDateInvalid=!1;D.autoapply=!1;D.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return D};
_.J(zZ,_.c);_.V=zZ.prototype;_.V.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"}}}}};
_.V.focus=function(){this.startDateInput.focus()};
_.V.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:gv(this.data.selection.start),end:gv(this.data.selection.end)})};
_.V.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.K4(this.selectionState)}};
_.V.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.V.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.V.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,v=D.end;D=CZf({start:D.start,end:this.endDate||v},this.startDateInput.value||"");this.isStartDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection=this.endDate?{start:D,end:this.endDate}:D,this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.V.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,v=D.start;D=CZf({start:this.startDate||v,end:D.end},this.endDateInput.value||"");this.isEndDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection={start:this.startDate,end:D},this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.V.handleCalendarDateClicked=function(D){var v=this.selection&&GWu(this.selection),h=this.selection&&VFI(this.selection);v&&!Ii(D,v)&&this.selectionState==="END_DATE"?(this.selection={start:v,end:D},this.selectionState="START_DATE"):(h&&!Ii(h,D)?this.selection={start:D,end:h}:this.selection=D,this.selectionState="END_DATE")};
_.V.handleCalendarDateMouseDown=function(D){this.selection&&!$2c(this.selection)&&(this.dragPivot=Ey(D,this.selection.start)?this.selection.end:Ey(D,this.selection.end)?this.selection.start:D)};
_.V.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.V.handleCalendarDateMouseEnter=function(D){this.dragPivot&&(this.selection={start:function(v,h){return Ii(v,h)?v:h}(this.dragPivot,D),
end:function(v,h){return Ii(v,h)?h:v}(this.dragPivot,D)},this.dragPivot||(this.selectionState="START_DATE"))};
_.V.handleCalendarDateMouseLeave=function(){};
_.V.handleCalendarSubmitDateRange=function(){this.selection&&!$2c(this.selection)&&_.zU(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.V.updateInvalidState=function(){var D=function(v,h){h?v.setAttribute("invalid",""):v.removeAttribute("invalid")};
D(this.startDateInput,this.isStartDateInvalid);D(this.endDateInput,this.isEndDateInvalid)};
_.V.updateDateStrings=function(){this.selection&&($2c(this.selection)?aaq(this.selection):(aaq(this.selection.start),aaq(this.selection.end)))};
_.V.updateCalendarSelection=function(D){this.calendar.updateSelection(Object.assign({},D,{selectionState:this.selectionState}))};
_.V.updateIsStartDateInvalidFromBinding=function(D){this.isStartDateInvalid=D.detail.value};
_.V.updateIsEndDateInvalidFromBinding=function(D){this.isEndDateInvalid=D.detail.value};
_.V.updateStartDateStringFromBinding=function(){};
_.V.updateEndDateStringFromBinding=function(){};
_.GT.Object.defineProperties(zZ.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:gv(this.data.dateRangeStart),end:gv(this.data.dateRangeEnd),selection:{start:gv(this.data.selection.start),end:gv(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&GWu(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&VFI(this.selection)}}});
zZ.prototype.resetTextboxes=zZ.prototype.resetTextboxes;zZ.prototype.observeSelection=zZ.prototype.observeSelection;zZ.prototype.dataChanged=zZ.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],zZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#calendar"),_.n("design:type",Object)],zZ.prototype,"calendar",void 0);
_.e([_.Br("#start-date"),_.n("design:type",Object)],zZ.prototype,"startDateInput",void 0);_.e([_.Br("#end-date"),_.n("design:type",Object)],zZ.prototype,"endDateInput",void 0);_.e([_.Y(),_.n("design:type",Object)],zZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],zZ.prototype,"selection",void 0);_.e([_.Y(),_.n("design:type",String)],zZ.prototype,"selectionState",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],zZ.prototype,"calendarConfig",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],zZ.prototype,"errorMessage",null);_.e([_.N("selection"),_.n("design:type",Object),_.n("design:paramtypes",[])],zZ.prototype,"startDate",null);_.e([_.N("selection"),_.n("design:type",Object),_.n("design:paramtypes",[])],zZ.prototype,"endDate",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zZ.prototype,"dataChanged",null);
_.e([_.Ni("selection","selectionState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zZ.prototype,"observeSelection",null);_.e([_.Ni("selectionState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zZ.prototype,"resetTextboxes",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],zZ);
_.w(zZ,"ytd-date-period-picker-renderer",function(){if(nOM!==void 0)return nOM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return nOM=D},{mode:1});var UT=function(){var D=_.c.apply(this,arguments)||this;var v={};D.actionMap=(v["ytd-date-period-picker-apply"]="handleDateRangeUpdated",v);return D};
_.J(UT,_.c);UT.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
UT.prototype.handleDateRangeUpdated=function(){};
_.e([_.Y(),_.n("design:type",Object)],UT.prototype,"data",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],UT.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],UT.prototype,"rendererstamperBehavior",void 0);_.e([_.m({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],UT);
_.w(UT,"ytd-report-history-section-header-renderer",function(){if(eXm!==void 0)return eXm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return eXm=D},{mode:1});var ism;var WUm;var tx$;var LN=function(){return _.c.apply(this,arguments)||this};
_.J(LN,_.c);_.GT.Object.defineProperties(LN.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?0:(v=D.icon)==null?0:v.iconType)?_.SQ(this.data.icon.iconType):""}}});
_.e([_.Y(),_.n("design:type",Object)],LN.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],LN.prototype,"icon",null);_.e([_.m({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],LN);
_.w(LN,"ytd-report-history-table-text-cell-renderer",function(){if(tx$!==void 0)return tx$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return tx$=D},{mode:1});var Zd=function(){return _.c.apply(this,arguments)||this};
_.J(Zd,_.c);Zd.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Zd.prototype,"data",void 0);_.e([_.m({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Zd);
_.w(Zd,"ytd-report-history-table-reason-cell-renderer",function(){if(WUm!==void 0)return WUm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return WUm=D},{mode:1});var ET=function(){return _.c.apply(this,arguments)||this};
_.J(ET,_.c);ET.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"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ET.prototype,"rendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ET.prototype,"data",void 0);_.e([_.m({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],ET);
_.w(ET,"ytd-report-history-table-cell-renderer",function(){if(ism!==void 0)return ism;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return ism=D},{mode:1});var rMJ;var Ij=function(){var D=_.c.apply(this,arguments)||this;D.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return D};
_.J(Ij,_.c);Ij.prototype.onDataChanged=function(){var D;if((D=this.data)==null?0:D.style)this.componentStyle=this.getStyleName(this.data.style)};
Ij.prototype.getCellForColumn=function(D){return this.cells.find(function(v){var h;return((h=_.k(v==null?void 0:v.cell,Hyt)||_.k(v==null?void 0:v.cell,mwJ))==null?void 0:h.columnId)===D.type})};
Ij.prototype.getClassForColumn=function(D){switch(D){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Ij.prototype.getStyleName=function(D){switch(D){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.GT.Object.defineProperties(Ij.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.cells)||[]).map(function(v){return _.k(v,sWy)})}}});
Ij.prototype.onDataChanged=Ij.prototype.onDataChanged;_.e([_.Y(),_.n("design:type",Object)],Ij.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Array)],Ij.prototype,"columnRenderData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Ij.prototype,"componentStyle",void 0);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Ij.prototype,"cells",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ij.prototype,"onDataChanged",null);_.e([_.m({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Ij);
_.w(Ij,"ytd-report-history-table-row-renderer",function(){if(rMJ!==void 0)return rMJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rMJ=D},{mode:1});var uat;var Ds$;var onc={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Feq={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var gN=function(){return _.c.apply(this,arguments)||this};
_.J(gN,_.c);gN.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"}}}}}};
gN.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.GT.Object.defineProperties(gN.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.columns)?EnL(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Le2(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var D=this.tableSpec,v=onc;v=v===void 0?Feq:v;v=ZPO(D.columnDimensions,D.columnsToShow||[],v);D=0;v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,D+=h.minWidth+h.paddingLeft+h.paddingRight;return D}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.e([_.l(_.LU),_.n("design:type",Object)],gN.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gN.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],gN.prototype,"tableSpec",null);_.e([_.N("tableSpec"),_.n("design:type",Array),_.n("design:paramtypes",[])],gN.prototype,"columnRenderData",null);
_.e([_.N("tableSpec"),_.n("design:type",Number),_.n("design:paramtypes",[])],gN.prototype,"totalMinWidth",null);_.e([_.N("totalMinWidth"),_.n("design:type",String),_.n("design:paramtypes",[])],gN.prototype,"tableWidthStyle",null);_.e([_.m({is:"ytd-table-renderer",disableElementRegistration:!0})],gN);
_.w(gN,"ytd-table-renderer",function(){if(Ds$!==void 0)return Ds$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Ds$=D},{mode:1});var kx=function(){return _.c.apply(this,arguments)||this};
_.J(kx,_.c);kx.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}}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kx.prototype,"data",void 0);_.e([_.m({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],kx);
_.w(kx,"ytd-report-reason-history-modal-renderer",function(){if(uat!==void 0)return uat;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uat=D},{mode:1});var vcR;var hnt;var asm;var Ss=function(){return _.c.apply(this,arguments)||this};
_.J(Ss,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ss.prototype,"data",void 0);_.e([_.m({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ss);
_.w(Ss,"ytd-profile-column-stats-entry-renderer",function(){if(asm!==void 0)return asm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return asm=D},{mode:1});var $s4;var J0=function(){return _.c.apply(this,arguments)||this};
_.J(J0,_.c);J0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],J0.prototype,"data",void 0);_.e([_.m({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],J0);
_.w(J0,"ytd-profile-column-stats-renderer",function(){if($s4!==void 0)return $s4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return $s4=D},{mode:1});var Qn9;var pN=function(){return _.c.apply(this,arguments)||this};
_.J(pN,_.c);_.GT.Object.defineProperties(pN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var v,h;D=(v=this.data)==null?void 0:(h=v.thumbnail)==null?void 0:h.thumbnails;var a;return D&&((a=D[0])==null?void 0:a.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var v,h;D=(v=this.data)==null?void 0:(h=v.thumbnail)==null?void 0:h.thumbnails;var a;return D&&((a=D[0])==null?void 0:a.height)||80}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pN.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],pN.prototype,"componentStyle",void 0);_.e([_.N("data.useThumbnailSize"),_.n("design:type",Object),_.n("design:paramtypes",[])],pN.prototype,"thumbnailWidth",null);
_.e([_.N("data.useThumbnailSize"),_.n("design:type",Object),_.n("design:paramtypes",[])],pN.prototype,"thumbnailHeight",null);_.e([_.m({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],pN);
_.w(pN,"ytd-profile-column-user-info-renderer",function(){if(Qn9!==void 0)return Qn9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Qn9=D},{mode:1});var lI=function(){return _.c.apply(this,arguments)||this};
_.J(lI,_.c);lI.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]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],lI.prototype,"componentStyle",void 0);_.e([_.m({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],lI);
_.w(lI,"ytd-profile-column-renderer",function(){if(hnt!==void 0)return hnt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return hnt=D},{mode:1});var Nz=function(){var D=_.c.apply(this,arguments)||this;D.componentStyle="NON_CENTERED_PROFILE";return D};
_.J(Nz,_.c);Nz.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Nz.prototype.getIcon=function(D){return D?"settings:"+D.toLowerCase():null};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Nz.prototype,"data",void 0);_.e([_.m({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Nz);
_.w(Nz,"ytd-page-introduction-renderer",function(){if(vcR!==void 0)return vcR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return vcR=D},{mode:1});var Gst;var Yx=function(){return _.c.apply(this,arguments)||this};
_.J(Yx,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Yx.prototype,"data",void 0);_.e([_.m({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Yx);
_.w(Yx,"ytd-report-description-renderer",function(){if(Gst!==void 0)return Gst;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Gst=D},{mode:1});var V7R;var PQJ;var BH=function(){return _.c.apply(this,arguments)||this};
_.J(BH,_.c);BH.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],BH.prototype,"data",void 0);_.e([_.m({is:"ytd-video-report-renderer",disableElementRegistration:!0})],BH);
_.w(BH,"ytd-video-report-renderer",function(){if(PQJ!==void 0)return PQJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return PQJ=D},{mode:1});var xs9;_.HX("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.HX("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var cH=function(){return _.c.apply(this,arguments)||this};
_.J(cH,_.c);cH.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]]"}}}}}};
cH.prototype.computeMessageStyle=function(D){return D};
cH.prototype.computeButtonOverride=function(D){var v;if((D==null?0:(v=D.style)==null?0:v.value)&&D.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cH.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],cH.prototype,"shelf",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],cH.prototype,"panel",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.n("design:type",Boolean)],cH.prototype,"componentStyle",void 0);_.e([_.Y({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],cH.prototype,"buttonOverride",void 0);_.e([_.m({is:"ytd-message-renderer",disableElementRegistration:!0})],cH);
_.w(cH,"ytd-message-renderer",function(){if(xs9!==void 0)return xs9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xs9=D},{mode:1});var X$=function(){return _.c.apply(this,arguments)||this};
_.J(X$,_.c);X$.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"}}}};
X$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
X$.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.GT.Object.defineProperties(X$.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!(((D=this.data)==null?0:D.header)&&((v=this.data)==null?0:v.table))}}});
X$.prototype.onRequestError=X$.prototype.onRequestError;_.e([_.l(_.LU),_.n("design:type",Object)],X$.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],X$.prototype,"data",void 0);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],X$.prototype,"isUnifiedReportHistory",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X$.prototype,"onRequestError",null);_.e([_.m({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],X$);
_.w(X$,"ytd-report-history-section-renderer",function(){if(V7R!==void 0)return V7R;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return V7R=D},{mode:1});var M74;var A0=function(){var D=_.c.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.J(A0,_.c);A0.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],A0.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],A0.prototype,"answerExpanded",void 0);_.e([_.m({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],A0);
_.w(A0,"ytd-handles-claiming-faq-renderer",function(){if(M74!==void 0)return M74;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return M74=D},{mode:1});var fsF;var CQ4=function(){return _.c.apply(this,arguments)||this};
_.J(CQ4,_.c);_.e([_.Y(),_.n("design:type",Object)],CQ4.prototype,"data",void 0);_.e([_.m({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],CQ4);
_.w(CQ4,"ytd-handles-claiming-faq-section-renderer",function(){if(fsF!==void 0)return fsF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fsF=D},{mode:1});var oct;var qz=function(){var D=_.c.apply(this,arguments)||this;D.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";D.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";D.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";D.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";D.leftSquiggly=D.leftSquigglyLight;D.rightSquiggly=D.rightSquigglyLight;
D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return D};
_.J(qz,_.c);_.V=qz.prototype;_.V.updateLeftSquigglyStyle=function(){_.SB(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.V.updateRightSquigglyStyle=function(){_.SB(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.V.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),D?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
qz.prototype.updateRightSquigglyStyle=qz.prototype.updateRightSquigglyStyle;qz.prototype.updateLeftSquigglyStyle=qz.prototype.updateLeftSquigglyStyle;_.e([_.Y(),_.n("design:type",Object)],qz.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],qz.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",String)],qz.prototype,"leftSquiggly",void 0);_.e([_.Y(),_.n("design:type",String)],qz.prototype,"rightSquiggly",void 0);
_.e([_.Ni("leftSquiggly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qz.prototype,"updateLeftSquigglyStyle",null);_.e([_.Ni("rightSquiggly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qz.prototype,"updateRightSquigglyStyle",null);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],qz.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qz.prototype,"actionButtonOverride",void 0);_.e([_.m({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],qz);
_.w(qz,"ytd-handles-claiming-header-renderer",function(){if(oct!==void 0)return oct;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return oct=D},{mode:1});var Fy9;var bI=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";D.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";D.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";D.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
D.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";D.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";D.image0SquigglyBackground=D.image0LightSquigglyBackground;D.image1SquigglyBackground=D.image1LightSquigglyBackground;D.image3SquigglyBackground=D.image3LightSquigglyBackground;return D};
_.J(bI,_.c);_.V=bI.prototype;_.V.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.V.onDataChanged=function(){this.updateTitleAndImages()};
_.V.onThemeChanged=function(){this.updateTitleAndImages()};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.V.updateImage0SquigglyBackground=function(){_.SB(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.V.updateImage1SquigglyBackground=function(){_.SB(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.V.updateImage3SquigglyBackground=function(){_.SB(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.V.updateTitleAndImages=function(){var D,v;((D=this.data)==null?void 0:(v=D.titleImages)==null?void 0:v.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))};
bI.prototype.updateImage3SquigglyBackground=bI.prototype.updateImage3SquigglyBackground;bI.prototype.updateImage1SquigglyBackground=bI.prototype.updateImage1SquigglyBackground;bI.prototype.updateImage0SquigglyBackground=bI.prototype.updateImage0SquigglyBackground;bI.prototype.onThemeChanged=bI.prototype.onThemeChanged;bI.prototype.onDataChanged=bI.prototype.onDataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],bI.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],bI.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"title0",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"title1",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"title2",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"title3",void 0);
_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"title4",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"image0",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"image1",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"image2",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"image3",void 0);_.e([_.Y(),_.n("design:type",Object)],bI.prototype,"image4",void 0);_.e([_.Y(),_.n("design:type",String)],bI.prototype,"image0SquigglyBackground",void 0);
_.e([_.Y(),_.n("design:type",String)],bI.prototype,"image1SquigglyBackground",void 0);_.e([_.Y(),_.n("design:type",String)],bI.prototype,"image3SquigglyBackground",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bI.prototype,"onDataChanged",null);_.e([_.Ni("isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bI.prototype,"onThemeChanged",null);
_.e([_.Ni("image0SquigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bI.prototype,"updateImage0SquigglyBackground",null);_.e([_.Ni("image1SquigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bI.prototype,"updateImage1SquigglyBackground",null);
_.e([_.Ni("image3SquigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bI.prototype,"updateImage3SquigglyBackground",null);_.e([_.m({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],bI);
_.w(bI,"ytd-handles-claiming-title-images-section-renderer",function(){if(Fy9!==void 0)return Fy9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Fy9=D},{mode:1});var zn4;var dN=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(dN,_.c);dN.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
dN.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
dN.prototype.onCopyButtonClick=function(){var D=this,v,h,a;return _.M(function(Q){return(v=D.data)!=null&&v.primaryChannelUrl?Q.yield(navigator.clipboard.writeText(((h=D.data)==null?0:h.encodedChannelUrl)?D.data.encodedChannelUrl:"https://"+_.$V((a=D.data)==null?void 0:a.primaryChannelUrl)),0):Q.jumpTo(0)})};
_.e([_.Y(),_.n("design:type",Object)],dN.prototype,"data",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],dN.prototype,"ytComponentBehavior",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],dN.prototype,"isDarkTheme",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],dN.prototype,"ytActionHandlerBehavior",void 0);_.e([_.m({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],dN);
_.w(dN,"ytd-handles-claiming-update-social-renderer",function(){if(zn4!==void 0)return zn4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return zn4=D},{mode:1});var UsR;var js=function(){var D=_.c.apply(this,arguments)||this;D.JSC$16057_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";D.JSC$16057_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.squigglyBackground=D.JSC$16057_squigglyBackgroundLight;return D};
_.J(js,_.c);js.prototype.updateSquigglyBackgroundStyle=function(){_.SB(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
js.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.squigglyBackground=D?this.JSC$16057_squigglyBackgroundDark:this.JSC$16057_squigglyBackgroundLight};
js.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$16057_squigglyBackgroundDark:this.JSC$16057_squigglyBackgroundLight)};
js.prototype.updateSquigglyBackgroundStyle=js.prototype.updateSquigglyBackgroundStyle;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],js.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],js.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],js.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",String)],js.prototype,"squigglyBackground",void 0);_.e([_.Ni("squigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],js.prototype,"updateSquigglyBackgroundStyle",null);_.e([_.m({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],js);
_.w(js,"ytd-handles-claiming-vanity-info-renderer",function(){if(UsR!==void 0)return UsR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return UsR=D},{mode:1});var Lyb;var sT=function(){var D=_.c.apply(this,arguments)||this;D.JSC$16060_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";D.JSC$16060_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";D.squigglyBackground=D.JSC$16060_squigglyBackgroundLight;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(sT,_.c);_.V=sT.prototype;_.V.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$16060_squigglyBackgroundDark:this.JSC$16060_squigglyBackgroundLight)};
_.V.updateSquigglyBackgroundStyle=function(){_.SB(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.V.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.V.detached=function(){this.stop()};
_.V.stop=function(){this.playerElement.stop()};
_.V.setupVideoPlayer=function(){var D=this,v,h;return _.M(function(a){v=D.data.videoId;h="http://i1.ytimg.com/vi/"+v+"/maxresdefault.jpg";D.playerElement.loadVideoWithPlayerVars({video_id:v,iurlhq:h});_.YI(a)})};
sT.prototype.onDataChanged=sT.prototype.onDataChanged;sT.prototype.updateSquigglyBackgroundStyle=sT.prototype.updateSquigglyBackgroundStyle;_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sT.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",String)],sT.prototype,"squigglyBackground",void 0);_.e([_.Br("#player"),_.n("design:type",Object)],sT.prototype,"playerElement",void 0);_.e([_.Y(),_.n("design:type",Object)],sT.prototype,"data",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],sT.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Ni("squigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sT.prototype,"updateSquigglyBackgroundStyle",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sT.prototype,"onDataChanged",null);
_.e([_.m({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],sT);
_.w(sT,"ytd-handles-claiming-video-item-renderer",function(){if(Lyb!==void 0)return Lyb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Lyb=D},{mode:1});var Zwy;var HH=function(){var D=_.XS.apply(this,arguments)||this;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.containerWidthDiff=0;D.boundPrevClick=function(){D.set("offset",m0(D,D.offset-(D.scrollDistance||320)))};
D.boundNextClick=function(){D.set("offset",m0(D,D.offset+(D.scrollDistance||320)))};
D.boundScrollContainerMouseDown=function(v){D.dragMouseStart=v.clientX;D.dragOffsetStart=D.offset;D.dragging=!0};
D.boundScrollContainerDrag=function(v){D.dragging&&D.set("offset",m0(D,D.dragOffsetStart-(v.clientX-D.dragMouseStart)))};
D.boundMouseUp=function(){D.onMouseUp()};
D.boundWheelScroll=function(v){var h=0;Math.abs(v.deltaX)>=Math.abs(v.deltaY)?h=v.deltaX:v.shiftKey&&(h=v.deltaY);h!==0&&(D.offset+=h,v.stopPropagation(),v.preventDefault())};
D.boundChipCloudChipScrollIntoView=function(v){(v=v.detail)&&D.scrollChipIntoView(v)};
return D};
_.J(HH,_.XS);HH.prototype.attached=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container");D.addEventListener("wheel",this.boundWheelScroll);D.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.style.touchAction="pan-y";D.addEventListener("pointerdown",this.boundScrollContainerMouseDown);D.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
HH.prototype.detached=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.boundWheelScroll);D.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);D.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
HH.prototype.reset=function(){this.set("offset",0);_.$R(this,this.setContainerWidthDiff);_.$R(this,this.setButtonsState)};
var m0=function(D,v){return Math.min(Math.max(v,0),D.containerWidthDiff)};
_.V=HH.prototype;_.V.onMouseUp=function(){this.dragging=!1};
_.V.transformContainer=function(){this.offset=m0(this,this.offset);var D=_.eA("HTML_DIR")==="rtl"?"":"-";_.ZW(this.hostElement).querySelector("#chips").style.transform="translateX("+D+this.offset+"px)";_.$R(this,this.setButtonsState)};
_.V.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=m0(this,this.offset));this.atStart=this.offset<=0};
_.V.setContainerWidthDiff=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container"),v=_.ZW(this.hostElement).querySelector("#chips");D&&v&&(this.containerWidthDiff=v.clientWidth-D.clientWidth)};
_.V.scrollChipIntoView=function(D){var v=_.ZW(this.hostElement).querySelector("#scroll-container");if(v){var h=this.atStart?0:106,a=this.atEnd?0:106;D.offsetLeft<this.offset+h?this.offset=m0(this,D.offsetLeft-h):D.offsetLeft+D.clientWidth>this.offset+v.clientWidth-a&&(this.offset=m0(this,D.offsetLeft+D.clientWidth+a-v.clientWidth))}};
HH.prototype.transformContainer=HH.prototype.transformContainer;_.e([_.Y({value:0}),_.n("design:type",Number)],HH.prototype,"offset",void 0);_.e([_.Y({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],HH.prototype,"atStart",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],HH.prototype,"atEnd",void 0);_.e([_.Y(),_.n("design:type",Number)],HH.prototype,"scrollDistance",void 0);
_.e([_.Ni("offset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HH.prototype,"transformContainer",null);_.e([_.AV()],HH);var EcM;var IsJ;var S7$=_.H(function(D){var v=D.data;D=_.P(_.Zq(!1,void 0,"icHmSe"));var h=D.next().value,a=D.next().value;D={};D=_.S3("ytChipShapeChip",function(){a:switch(v==null?void 0:v().state){case 0:var G="ytChipShapeActive";break a;case 1:G="ytChipShapeDisabled";break a;default:G="ytChipShapeInactive"}return G},function(){var G=v().type===1||v().type===2,x=v();
return G||x!=null&&x.startIcon?x==null||!x.startIcon||x!=null&&x.text?G?"ytChipShapeEndIconPadding":(x==null?0:x.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(D.ytChipShapeFocused=function(){var G;
return h()&&((G=v())==null?void 0:G.state)!==1},D));
var Q=function(G){if((v==null?void 0:v().state)!==1){var x,f;(f=(x=v()).onTap)==null||f.call(x,G)}};
return _.F("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Jd(function(){var G=_.xd().resolve(_.PV(_.Xw));if(G){a(G.isKeyBoardInUse());var x,f;(f=(x=v()).onFocusIn)==null||f.call(x)}return!1}),
"on:focusout":_.Jd(function(){a(!1);return!1})},_.F(gc4,{shouldWrapInButton:function(){return v().type!==2},
selected:function(){return v().state===0},
onClick:Q,isDropdown:function(){return v().type===1},
accessibilityLabel:function(){return v().type===1?void 0:v().accessibilityLabel}},_.F("div",{class:D},_.F(_.z,{cond:function(){return v().startIcon},
then:function(){return _.F(_.Y5,{icon:function(){var G;return(G=v())==null?void 0:G.startIcon},
className:function(){return v().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return v().text},_.F(ks1,{shape:v,
onClick:Q}),_.F(_.qv,{model:{borderRadius:"8px"}}))))},"zc");
S7$.idomCompat=!0;var gc4=_.H(function(D){var v=_.Jd(function(h){D.onClick(h);return!1});
return _.F(_.z,{cond:D.shouldWrapInButton,then:function(){return _.F("button",{class:"ytChipShapeButtonReset","on:click":v,role:function(){return D.isDropdown()?"combobox":"tab"},
"aria-label":D.accessibilityLabel,"aria-selected":D.selected},D.children)},
else:function(){return D.children}})},"Ac"),ks1=_.H(function(D){var v=D.shape;
var h=D.onClick;var a=_.Jd(function(Q){h(Q);return!1});
return _.F(_.A$,null,_.F(_.Bv,{when:function(){return v().type===1}},function(){return _.F(_.Y5,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.F(_.Bv,{when:function(){return v().type===2}},function(){return _.F("button",{class:"ytChipShapeButtonReset",
"on:click":a},_.F(_.Y5,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.F(_.Bv,{when:function(){return v().type===0}},function(){return _.F(_.xf,null)}))},"Bc");_.zh(S7$,"chip-shape",{props:{data:_.gj}});var yI=function(){var D=_.c.apply(this,arguments)||this;D.disableDeselectEvent=!1;D.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return D};
_.J(yI,_.c);_.V=yI.prototype;_.V.onSelectChipCommand=function(D){if(!this.selected&&this.data&&(D=_.k(D,TI9),D.targetId&&D.targetId===this.data.targetId))this.onTap()};
_.V.onFilterChipTransformCommand=function(D){if(!this.selected&&this.data){var v;(D=(v=_.k(D,yJR))==null?void 0:v.chipUniqueId)&&D===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.V.dataChanged=function(){var D=this;_.$R(this,function(){D.data&&D.data.isSelected&&!D.selected&&(D.scrollChipIntoView(),D.onTap())})};
_.V.computeChipStyle=function(D){return D!=null?D:"STYLE_DEFAULT"};
_.V.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.zU(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.zU(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.V.onFocus=function(){var D=_.xd().resolve(_.PV(_.Xw));D&&D.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.V.scrollChipIntoView=function(){_.F1(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.GT.Object.defineProperties(yI.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return pbi({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
yI.prototype.onFocus=yI.prototype.onFocus;yI.prototype.onTap=yI.prototype.onTap;yI.prototype.dataChanged=yI.prototype.dataChanged;_.e([_.l(_.e5),_.n("design:type",Object)],yI.prototype,"ironButtonState",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],yI.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],yI.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Hq),_.n("design:type",Object)],yI.prototype,"ironA11yKeysBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yI.prototype,"disableDeselectEvent",void 0);_.e([_.Y(),_.n("design:type",Object)],yI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.icon"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],yI.prototype,"hasIcon",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.uniqueId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],yI.prototype,"isGnomeChip",null);_.e([_.Y({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.n("design:type",String)],yI.prototype,"chipStyle",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],yI.prototype,"selected",void 0);
_.e([_.N("data","selected"),_.n("design:type",Object),_.n("design:paramtypes",[])],yI.prototype,"chipShapeData",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yI.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yI.prototype,"onTap",null);
_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yI.prototype,"onFocus",null);_.e([_.Ry({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],yI);
_.w(yI,"yt-chip-cloud-chip-renderer",function(){if(IsJ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;EcM===void 0&&(EcM=document.createElement("template"));var a=EcM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);IsJ=D}D=IsJ;return D},{mode:2});var JYy=_.W4.persistentPanelVisibleSelector,wN=function(){var D=_.c.apply(this,arguments)||this;D.isDarkTheme=!1;D.notSticky=!1;D.transparentBackground=!1;D.shouldHide=!1;D.disableSticky=!1;D.fluidWidth=!1;D.isClipList=!1;D.defaultChipIndex=0;D.isPlaylist=!1;D.playlistVotingAnimationEnabled=_.g("web_enable_voting_animation");D.toolbarHeight=0;D.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return D};
_.J(wN,_.c);_.V=wN.prototype;
_.V.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}}}}}};
_.V.attached=function(){var D=this;document.addEventListener("scroll",_.pZ(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var v;this.toolbarHeight=((v=document.querySelector("ytd-masthead"))==null?void 0:v.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(h){D.handleIntersect(h)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){var D;(D=this.intersectionObserver)==null||D.disconnect();var v;(v=this.resizeObserver)==null||v.disconnect();document.removeEventListener("scroll",_.pZ(this,this.updateChipBarWidthAndTop))};
_.V.dataChanged=function(){var D=this,v,h,a;((a=_.k((v=this.data)==null?void 0:(h=v.contents)==null?void 0:h[0],nGR))==null?void 0:a.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Q=this.findSelectedChipIndex();this.selectedIndex!==Q&&(this.selectedIndex=-1);_.$R(this,function(){D.selectedIndex=Q;D.updating=!1;D.ytScrollableChipCloudBehavior.reset()})};
_.V.findSelectedChipIndex=function(){var D;if((D=this.data)==null||!D.contents)return 0;D=this.data.contents;for(var v=0;v<D.length;v++){var h=void 0;if((h=_.k(D[v],nGR))==null?0:h.isSelected)return v}return 0};
_.V.computeStyle=function(D){return D};
_.V.handleChipCloudChipSelectAction=function(D){D=this.JSC$16081_chipsSelector.indexOf(D);D>-1&&this.JSC$16081_chipsSelector.selectIndex(D)};
_.V.handleChipCloudChipDeselectAction=function(){if(_.g("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],nGR))==null?void 0:h.navigationEndpoint;a&&_.zU(this.hostElement,"yt-browse-section-list-reload-endpoint",[a]);this.JSC$16081_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.V.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.V.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.V.onResize=function(){this.updateLayout()};
_.V.updateLayout=function(){var D=this.ytScrollableChipCloudBehavior;_.$R(D,D.setContainerWidthDiff);D=this.ytScrollableChipCloudBehavior;_.$R(D,D.setButtonsState)};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.V.handleIntersect=function(D){this.notSticky=this.isChannelPageGrid||this.disableSticky||D[0].intersectionRatio===1};
_.V.updateDimensions=function(){var D=this.ytRendererBehavior.parentComponent;if(D){var v,h=(v=D.headerElement)!=null?v:D;_.SB(this.hostElement,{"--ytd-rich-grid-chips-bar-width":h.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.V.updateSelectedIndexFromBinding=function(D){this.selectedIndex=D.detail.value};
_.V.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var D;(D=this.sortFilterHeaderRendererElement)==null||D.setAttribute("is-playlist-page-with-filters","")}};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(bUt(!this.notSticky))};
_.GT.Object.defineProperties(wN.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.contents)==null?void 0:v.find(function(a){return _.k(a,iHb)});
return{sortFilterHeaderRenderer:_.k(h,iHb)}}}});
wN.prototype.dispatchChipBarIsSticky=wN.prototype.dispatchChipBarIsSticky;wN.prototype.isPlaylistPageChanged=wN.prototype.isPlaylistPageChanged;wN.prototype.updateChipBarWidthAndTop=wN.prototype.updateChipBarWidthAndTop;wN.prototype.onResize=wN.prototype.onResize;wN.prototype.onPersistentPanelVisibleChanged=wN.prototype.onPersistentPanelVisibleChanged;wN.prototype.onGuideIsExpandedChanged=wN.prototype.onGuideIsExpandedChanged;wN.prototype.dataChanged=wN.prototype.dataChanged;
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],wN.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],wN.prototype,"ironResizableBehavior",void 0);_.e([_.l(),_.n("design:type",HH)],wN.prototype,"ytScrollableChipCloudBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],wN.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wN.prototype,"data",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],wN.prototype,"selectedIndex",void 0);_.e([_.Y({value:320}),_.n("design:type",Number)],wN.prototype,"scrollDistance",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"isDarkTheme",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"notSticky",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"transparentBackground",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.n("design:type",String)],wN.prototype,"componentStyle",void 0);_.e([_.Y({selector:_.zFc}),_.n("design:type",Boolean)],wN.prototype,"guideIsExpanded",void 0);
_.e([_.Y({selector:JYy}),_.n("design:type",Boolean)],wN.prototype,"persistentPanelVisible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"shouldHide",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"disableSticky",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"fluidWidth",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"isClipList",void 0);
_.e([_.Y(),_.n("design:type",Object)],wN.prototype,"defaultChipIndex",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wN.prototype,"isPlaylist",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],wN.prototype,"playlistVotingAnimationEnabled",void 0);_.e([_.Br("#chips"),_.n("design:type",Object)],wN.prototype,"JSC$16081_chipsSelector",void 0);
_.e([_.Br("ytd-sort-filter-header-renderer"),_.n("design:type",HTMLElement)],wN.prototype,"sortFilterHeaderRendererElement",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],wN.prototype,"updating",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"dataChanged",null);
_.e([_.Ni("guideIsExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"onGuideIsExpandedChanged",null);_.e([_.Ni("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"onPersistentPanelVisibleChanged",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"onResize",null);
_.e([_.qi("isChannelPageGrid","disableSticky","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"updateChipBarWidthAndTop",null);_.e([_.N("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wN.prototype,"isChannelPageGrid",null);_.e([_.N("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wN.prototype,"isHashtagLandingPage",null);
_.e([_.Ni("isPlaylistPage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"isPlaylistPageChanged",null);_.e([_.N("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wN.prototype,"isPlaylistPage",null);_.e([_.N("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wN.prototype,"isDisableDeselectEvent",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wN.prototype,"sortFilterHeaderRendererData",null);_.e([_.Y({reflectToAttribute:!0,selector:_.k4L}),_.n("design:type",String)],wN.prototype,"frostedGlassMode",void 0);_.e([_.Ni("notSticky"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wN.prototype,"dispatchChipBarIsSticky",null);_.e([_.m({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],wN);
_.w(wN,"ytd-feed-filter-chip-bar-renderer",function(){if(Zwy!==void 0)return Zwy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Zwy=D},{mode:1});var pcJ;var ls4=_.H(function(D){var v=D.data;var h=D.buttonIndex;var a=D.selectedIndex;var Q=D.onSelect;var G=function(){return h()===a()},x=function(){var f,C;
return(C=(f=v().text)==null?void 0:f.content)!=null?C:""};
D=_.SsA();return _.F("yt-toggleable-image-button-view-model",{class:function(){var f={};f=(f.toggleableImageButtonViewModelHost=!0,f[""]=!0,f.toggleableImageButtonViewModelSemiTransparent=a()!==-1&&!G(),f);return _.sn(f)},
tabindex:0,"aria-label":x,"aria-pressed":G,role:"button","on:keydown":D,"on:click":_.Jd(function(){Q(v().onSubmitCommand);return!1})},_.F(_.z,{cond:function(){return v().logo},
then:function(f){return _.F(_.PX,{data:f,className:function(){var C={};C=(C.toggleableImageButtonViewModelImage=!0,C.toggleableImageButtonViewModelCircularRadius=!(!v().backgroundColor||!v().backgroundColorDarkMode),C.toggleableImageButtonViewModelGradientRing=!!(G()&&v().backgroundColor&&v().backgroundColorDarkMode),C);return _.sn(C)},
alt:x,useWidth:!1,style:function(){if(G()&&v().backgroundColor&&v().backgroundColorDarkMode){var C=DW(Number(v().backgroundColorDarkMode),"1");var U=DW(Number(v().backgroundColor),"1");C="background: linear-gradient(180deg,"+C+","+U+") border-box;"}else C="";return C}})}}),_.F(_.qv,{model:{borderRadius:"16px"}}),_.F("p",{class:function(){var f={};
f=(f.toggleableImageButtonViewModelLabel=!0,f.toggleableImageButtonViewModelBoldText=G(),f);return _.sn(f)}},_.F(_.IY,{text:function(){return v().text}})))},"Cc");
ls4.idomCompat=!0;var Y71=_.H(function(D){var v=D.data;D=_.P(_.Zq({index:-1,command:{}},void 0,"GM3umb"));var h=D.next().value,a=D.next().value;return _.F("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.F("div",{class:"nudgeFormViewModelFormOptions"},_.F(_.c4,{data:function(){return v().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Q,G){return _.F(ls4,{data:Q.data,buttonIndex:G,selectedIndex:function(){return h().index},
onSelect:function(x){a({index:G(),command:x})}})}})),_.F(_.IY,{text:function(){return v().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.F("div",{class:"nudgeFormViewModelSubmit"},_.F(_.c4,{data:function(){return v().submitButton}},{buttonViewModel:function(Q){return _.F(NL4,{data:Q.data,
isDisabled:function(){return h().index===-1},
onClick:function(){_.r4(h().command)}})}})))},"Dc");
Y71.idomCompat=!0;var NL4=_.H(function(D){var v=_.SM(function(){return Object.assign({},D.data(),{state:D.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.F(_.s$,{data:v,onClick:D.onClick})},"Ec");_.zh(Y71,"yt-nudge-form-view-model",{props:{data:_.gj}});var es=function(){var D=_.c.apply(this,arguments)||this;D.roundedContainer=!0;D.buttonUpdate=_.g("web_modern_buttons");D.isDarkMode=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.J(es,_.c);_.V=es.prototype;_.V.computeNudgeStyle=function(D){return D?"modernized-nudge":""};
_.V.handleDarkModeToggledAction=function(D){this.isDarkMode=D};
_.V.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.V.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"}}}};
_.V.computeIsHorizontalButtons=function(D){return D?!!D.applyModernizedStyle&&!!D.enableHorizontalButtons&&!!D.secondaryButton:!1};
_.GT.Object.defineProperties(es.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.data)==null?void 0:D.backgroundStyle)!=null?v:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.data)==null?void 0:D.contentsLocation)!=null?v:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.lightIconImage)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],es.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],es.prototype,"actionHandlerBehavior",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("isHideEnclosingAction"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],es.prototype,"isHidden",null);_.e([_.Y(),_.n("design:type",Object)],es.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],es.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],es.prototype,"buttonUpdate",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.n("design:type",String)],es.prototype,"nudgeStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.trimStyle"),_.n("design:type",String),_.n("design:paramtypes",[])],es.prototype,"trimStyle",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.backgroundStyle"),_.n("design:type",String),_.n("design:paramtypes",[])],es.prototype,"backgroundStyle",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.contentsLocation"),_.n("design:type",String),_.n("design:paramtypes",[])],es.prototype,"contentsLocation",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.disableDropShadow"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],es.prototype,"noShadow",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.lightIconImage"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],es.prototype,"noIcon",null);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.n("design:type",Boolean)],es.prototype,"isHorizontalButtons",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Object)],es.prototype,"isDarkMode",void 0);_.e([_.m({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],es);
_.w(es,"ytd-feed-nudge-renderer",function(){if(pcJ!==void 0)return pcJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return pcJ=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var BLm;var cY1;var nN=function(){var D=_.c.apply(this,arguments)||this;D.collapsed=!1;D.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return D};
_.J(nN,_.c);nN.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"}}}};
nN.prototype.handleRatingSelect=function(){var D;((D=this.data)==null?0:D.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
nN.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],nN.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.CC),_.n("design:type",Object)],nN.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nN.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],nN.prototype,"collapsed",void 0);_.e([_.m({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],nN);
_.w(nN,"ytd-slimline-survey-renderer",function(){if(cY1!==void 0)return cY1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return cY1=D},{mode:1});var XcM;var OT=function(){return _.c.apply(this,arguments)||this};
_.J(OT,_.c);OT.prototype.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
OT.prototype.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D&&(D==null?0:D.secondaryTitleColor)&&this.maybeGetBackgroundColor(D)?(this.hostElement.style.backgroundColor=_.rT(this.maybeGetBackgroundColor(D)),this.hostElement.style.color=_.rT(D.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
OT.prototype.colorPaletteChanged=OT.prototype.colorPaletteChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],OT.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],OT.prototype,"data",void 0);_.e([_.Y({selector:function(D){return D.ui.darkModeIsEnabled}}),
_.n("design:type",Boolean)],OT.prototype,"isDarkMode",void 0);_.e([_.Y(),_.n("design:type",Object)],OT.prototype,"lightColorPalette",void 0);_.e([_.Y(),_.n("design:type",Object)],OT.prototype,"darkColorPalette",void 0);_.e([_.Ni("darkColorPalette","lightColorPalette","data","isDarkMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OT.prototype,"colorPaletteChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],OT);
_.w(OT,"ytd-endorsement-header-renderer",function(){if(XcM!==void 0)return XcM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return XcM=D},{mode:1});_.zh(_.GG,"yt-decorated-avatar-view-model",{props:{data:_.gj,className:_.gj}});_.KN=new _.Uj("VIEW_TRANSITION_MANAGER_TOKEN");var TZ=function(){var D=_.c.apply(this,arguments)||this;D.fullHeight=_.g("web_rich_grid_media_full_height");D.showChannelAvatar=!0;D.hasPlaylistThumbnail=!1;D.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};D.registerThumbnailForPageTransition=function(){_.g("web_thumbnail_to_watch_transition")&&_.AYs(_.xd().resolve(_.KN),D.thumbnail)};
return D};
_.J(TZ,_.c);_.V=TZ.prototype;
_.V.configureRendererStamper=function(){return{lazyLoadMenu:Ot,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"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.shouldLazyLoadMenu=function(){var D=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.g("kevlar_modern_downloads_page")||!D};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16106_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.JSC$16106_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.V.getVideoPreviewOpts=function(){var D={},v;if((v=this.data)==null?0:v.multipleInlinePlaybackEndpoint)D=Enp;this.isRadio&&(D=ZP$);return D};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16106_inlinePreviewHoverListener)==null||hL(D)};
_.V.getOwner=function(){var D,v,h;return((D=this.data)==null?void 0:(v=D.channelThumbnailSupportedRenderers)==null?void 0:v.channelThumbnailWithLinkRenderer)||_.k((h=this.data)==null?void 0:h.showProviderChannelThumbnail,tZM)};
_.V.updateLockupSize=function(){var D;((D=this.getOwner())==null?0:D.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.V.getFeedbackEndpoint=function(D){if(_.k(D,_.bp))return D;var v,h;D=(h=(v=_.k(D,_.IN))==null?void 0:v.commands)!=null?h:[];v=_.P(D);for(h=v.next();!h.done;h=v.next())if(h=this.getFeedbackEndpoint(h.value))return h;return null};
_.V.computeNavigationEndpoint=function(D){return gMq(D==null?void 0:D.navigationEndpoint)};
_.V.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var D=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(D)!==JSON.stringify(this.data)&&this.set("data",D)}};
_.V.onDataChanged=function(){var D=this,v=this.getOwner();if(v){this.set("data.owner",v);var h,a,Q,G,x,f=((h=this.data)==null?void 0:(a=h.shortBylineText)==null?void 0:(Q=a.runs)==null?void 0:(G=Q[0])==null?void 0:G.text)||((x=v.name)==null?void 0:x.simpleText);this.set("data.owner.title",f)}var C,U,L,Z,E,I;v=((C=this.data)==null?void 0:(U=C.thumbnailRenderer)==null?void 0:U.playlistVideoThumbnailRenderer)||((L=this.data)==null?void 0:(Z=L.thumbnailRenderer)==null?void 0:Z.playlistCustomThumbnailRenderer)||
((E=this.data)==null?void 0:(I=E.thumbnailRenderer)==null?void 0:I.showCustomThumbnailRenderer);var S;((S=this.data)==null?0:S.thumbnail)||!v||this.set("data.thumbnail",v.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){D.updateLockupSize()});
var B;if(C=((B=this.data)==null?void 0:B.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(C);var A;((A=this.dismissActionToReplayEntity)==null?0:A.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.V.onHiddenChanged=function(){this.updateLockupSize()};
_.V.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.zU(this.hostElement,"yt-terminate-video-preview-action");else{var D;(D=this.videoTitleLink)==null||D.focus()}};
_.V.metadataColorChanged=function(){var D;if(this.metadataColor&&((D=this.videoTitle)==null?0:D.style))this.videoTitle.style.color=_.rT(this.metadataColor);else{var v,h;!this.metadataColor&&((v=this.videoTitle)==null?0:(h=v.style)==null?0:h.color)&&(this.videoTitle.style.color="")}};
_.V.onDetailsClick=function(D){var v=this.computedNavigationEndpoint;v&&(_.Gf(_.Pr(D),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.F1(this.hostElement,"yt-navigate",{endpoint:v}))};
_.V.onRendererTap=function(){this.registerThumbnailForPageTransition();var D,v,h=((D=this.data)==null?void 0:D.serviceEndpoint)||this.getFeedbackEndpoint((v=this.data)==null?void 0:v.navigationEndpoint);h&&_.k(h,_.bp)&&this.ytComponentBehavior.resolveCommand(h)};
_.V.onMouseDown=function(D){var v=D.target,h=this.computedNavigationEndpoint,a;D=v.href||((a=_.k(h==null?void 0:h.commandMetadata,_.Sa))==null?void 0:a.url);a=v.data||h;D&&a&&CBI(D,a)};
_.V.computeVideoTitleText=function(){var D;if((D=this.data)==null?0:D.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.V.computeHasPlaylistThumbnail=function(D){var v,h,a,Q,G;if((((v=D.thumbnailRenderer)==null?0:v.playlistVideoThumbnailRenderer)||((h=D.thumbnailRenderer)==null?0:h.playlistCustomThumbnailRenderer)||((a=D.thumbnailRenderer)==null?0:a.showCustomThumbnailRenderer)||((Q=D.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((G=D.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(v=0;v<D.thumbnailOverlays.length;v++)if(h=void 0,(h=D.thumbnailOverlays[v])==
null?0:h.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.GT.Object.defineProperties(TZ.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.g("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16106_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.K_L(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.videoId)||((v=this.data)==null?void 0:v.playlistId)||""}}});
TZ.prototype.onMouseDown=TZ.prototype.onMouseDown;TZ.prototype.metadataColorChanged=TZ.prototype.metadataColorChanged;TZ.prototype.onIsDismissedChanged=TZ.prototype.onIsDismissedChanged;TZ.prototype.onHiddenChanged=TZ.prototype.onHiddenChanged;TZ.prototype.onDataChanged=TZ.prototype.onDataChanged;TZ.prototype.handleReloadDownloadsInfo=TZ.prototype.handleReloadDownloadsInfo;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],TZ.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],TZ.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],TZ.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],TZ.prototype,"ytdReduxBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],TZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],TZ.prototype,"entitySelectorType",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TZ.prototype,"noEndpoints",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],TZ.prototype,"isRadio",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],TZ.prototype,"miniMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],TZ.prototype,"fullHeight",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],TZ.prototype,"showDarkVideoMetadata",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TZ.prototype,"showLightVideoMetadata",void 0);_.e([_.Y(),_.n("design:type",Number)],TZ.prototype,"metadataColor",void 0);_.e([_.Y(),_.n("design:type",Object)],TZ.prototype,"showChannelAvatar",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TZ.prototype,"hidden",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],TZ.prototype,"showYtInteraction",void 0);
_.e([_.Y(),_.n("design:type",String)],TZ.prototype,"dismissedContentId",void 0);_.e([_.Y({selectorArgs:["dismissedContentId"],selector:ln7}),_.n("design:type",Object)],TZ.prototype,"dismissActionToReplayEntity",void 0);
_.e([_.Y({selectorArgs:["entitySelectorType","mediaId"],selector:function(D,v,h){if(_.g("kevlar_modern_downloads_page")&&h&&v&&v!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(v){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var a=lLf(D,h);if(a){v=_.KG(D,h);var Q=RG(D,h),G=myi(D,h);D=i0(D,h);var x=Ek7(a,v,Q,G);Q=x.shortViewCountText;var f=x.publishedTimeText;x=x.badges;var C=D>0;G=LZu(a,v,G,D);a=_.cf(v)||v==="TRANSFER_STATE_FAILED"||v==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Bf(a.policyEntity)?
void 0:EMi(h,D,a.videoEntity.lengthSeconds);v==="TRANSFER_STATE_PAUSED_BY_USER"&&h&&!_.g("dl_resume_click_killswitch")&&(a={offlineVideoEndpoint:{videoId:h,action:"ACTION_RESUME"}});h={shortViewCountText:Q,publishedTimeText:f,badges:x,isWatched:C,navigationEndpoint:a,thumbnailOverlays:G}}else h=void 0;return h;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(v=Nh4(D,h))if(a=_.Ta(D,h),G=_.YHr(D,h),a!=="TRANSFER_STATE_UNKNOWN"){h=Ze8(v,a,G,h,_.O4(D));break a}h=void 0}return h;default:_.yR(new _.XH("Error: entitySelectorType defined but not matched in selector.",
D,v))}}}),
_.n("design:type",Object)],TZ.prototype,"entityDrivenState",void 0);_.e([_.Y({computed:"computeVideoTitleText(data)"}),_.n("design:type",Object)],TZ.prototype,"videoTitleText",void 0);_.e([_.Y({computed:"computeHasPlaylistThumbnail(data)"}),_.n("design:type",Object)],TZ.prototype,"hasPlaylistThumbnail",void 0);_.e([_.Y({computed:"computeNavigationEndpoint(data)"}),_.n("design:type",Object)],TZ.prototype,"computedNavigationEndpoint",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],TZ.prototype,"typographyBump",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("typographyBump"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],TZ.prototype,"typographyBumpV2",null);_.e([_.Br("#video-title"),_.n("design:type",HTMLElement)],TZ.prototype,"videoTitle",void 0);_.e([_.Br("#video-title-link"),_.n("design:type",HTMLElement)],TZ.prototype,"videoTitleLink",void 0);
_.e([_.Br("#thumbnail"),_.n("design:type",HTMLElement)],TZ.prototype,"thumbnail",void 0);_.e([_.Br("#dismissible"),_.n("design:type",HTMLElement)],TZ.prototype,"JSC$16106_dismissibleMedia",void 0);_.e([_.N("data.menu"),_.n("design:type",Object),_.n("design:paramtypes",[])],TZ.prototype,"lazyLoadMenu",null);_.e([_.N("data.menu"),_.n("design:type",Object),_.n("design:paramtypes",[])],TZ.prototype,"immediateLoadMenu",null);
_.e([_.qi("entityDrivenState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TZ.prototype,"handleReloadDownloadsInfo",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TZ.prototype,"onDataChanged",null);_.e([_.qi("hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TZ.prototype,"onHiddenChanged",null);
_.e([_.Ni("isDismissed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TZ.prototype,"onIsDismissedChanged",null);_.e([_.Ni("metadataColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TZ.prototype,"metadataColorChanged",null);_.e([_.lc("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],TZ.prototype,"onMouseDown",null);
_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],TZ.prototype,"isHovered",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],TZ.prototype,"useAvatar",null);_.e([_.N("data","entitySelectorType"),_.n("design:type",String),_.n("design:paramtypes",[])],TZ.prototype,"mediaId",null);_.e([_.m({is:"ytd-rich-grid-media",disableElementRegistration:!0})],TZ);
var q7y=_.Zp()(TZ,"ytd-rich-grid-media",function(){if(BLm!==void 0)return BLm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return BLm=D},{mode:_.E_("kevlar_poly_si_batch_j072")?1:2});var bw4;var Rj=function(){var D=_.c.apply(this,arguments)||this;D.removeMaxWidth=!0;D.insetMetadata=!1;return D};
_.J(Rj,_.c);_.V=Rj.prototype;_.V.configureRendererStamper=function(){return{innerMenu:Ot,outerMenu:Object.assign({},Ot,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onDataChanged=function(){var D,v=((D=this.data)==null?void 0:D.trackingParams)||"";v&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(v));var h;((h=this.dismissActionToReplayEntity)==null?0:h.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16111_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.JSC$16111_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Iap})};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16111_inlinePreviewHoverListener)==null||hL(D)};
_.V.onRendererTap=function(){var D,v,h=(D=this.data)==null?void 0:(v=D.serviceEndpoints)==null?void 0:v[0];_.k(h,_.bp)&&this.componentBehavior.resolveCommand(h)};
_.V.onDetailsClick=function(D){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint;h&&(_.Gf(_.Pr(D),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(h))};
_.V.onShow=function(){var D=this.data;D.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(D.onFirstVisibleCommand),delete D.onFirstVisibleCommand)};
_.GT.Object.defineProperties(Rj.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?void 0:(D=this.data)==null?void 0:D.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?(D=this.data)==null?void 0:D.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var D=this.data;if(D!=null&&D.badge&&(D=_.k(D.badge,jAR))){var v,h,a;return[{metadataBadgeRenderer:{label:((v=D.label)==null?void 0:(h=v.runs)==null?void 0:h[0].text)||((a=D.label)==null?void 0:a.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var D=this.data;return Object.assign({},D.headline,{accessibility:D.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return this.isSlimShort?(D=this.computedTitle)==null?void 0:(v=D.accessibility)==null?void 0:(h=v.accessibilityData)==null?void 0:h.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.g("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16111_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Rj.prototype.onDataChanged=Rj.prototype.onDataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Rj.prototype,"componentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],Rj.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.CC),_.n("design:type",Object)],Rj.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Rj.prototype,"ytdReduxBehavior",void 0);_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],Rj.prototype,"thumbnail",void 0);_.e([_.Br("#dismissible"),_.n("design:type",HTMLElement)],Rj.prototype,"JSC$16111_dismissibleMedia",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Rj.prototype,"removeMaxWidth",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Rj.prototype,"insetMetadata",void 0);_.e([_.Y(),_.n("design:type",String)],Rj.prototype,"dismissedContentId",void 0);_.e([_.Y({selectorArgs:["dismissedContentId"],selector:ln7}),_.n("design:type",Object)],Rj.prototype,"dismissActionToReplayEntity",void 0);_.e([_.N("insetMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rj.prototype,"thumbnailObjectFit",null);
_.e([_.N("data","insetMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rj.prototype,"innerMenu",null);_.e([_.N("data","insetMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rj.prototype,"outerMenu",null);_.e([_.Y(),_.n("design:type",Object)],Rj.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],Rj.prototype,"miniMode",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rj.prototype,"onDataChanged",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rj.prototype,"shortsBadges",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rj.prototype,"isShort",null);
_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rj.prototype,"isSlimShort",null);_.e([_.N("data","isShort"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rj.prototype,"computedTitle",null);_.e([_.N("isSlimShort","computedTitle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rj.prototype,"computedAccessibilityLabel",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rj.prototype,"shouldForce2By3",null);_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rj.prototype,"isHovered",null);_.e([_.m({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Rj);
_.w(Rj,"ytd-rich-grid-slim-media",function(){if(bw4!==void 0)return bw4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return bw4=D},{mode:_.E_("kevlar_poly_si_batch_j063")?1:2});var ds$;var jnJ;var iI=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(iI,_.c);iI.prototype.computeIcon=function(D){return D&&D.iconType?"yt-sys-icons:"+D.iconType.toLowerCase():""};
iI.prototype.onMouseEnter=function(){this.isHovered=!0};
iI.prototype.onMouseLeave=function(){this.isHovered=!1};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],iI.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iI.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],iI.prototype,"isHovered",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],iI.prototype,"darkerDarkTheme",void 0);_.e([_.m({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],iI);
_.w(iI,"ytd-expand-on-hover-card-renderer",function(){if(jnJ!==void 0)return jnJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jnJ=D},{mode:1});var sn4,msm=function(){if(sn4!==void 0)return sn4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return sn4=D};_.HX("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var WH=function(){var D=_.c.apply(this,arguments)||this;D.compactStyle=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(WH,_.c);_.V=WH.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.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"}}}};
_.V.computeHideDot=function(D){return!(D&&D.subscriberCountText&&D.videoCountText)||this.compactStyle};
_.V.hasDualButtons=function(D){return D&&D.purchaseButton&&D.subscribeButton};
_.V.backgroundColorChanged=function(){if(this.data!==void 0){var D=this.data.backgroundColor;this.isDarkTheme&&(D=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=D!=null?_.rT(D):"transparent"}};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.onTap=function(D){var v,h,a=((v=this.data)==null?void 0:v.navigationEndpoint)||((h=this.data)==null?void 0:h.serviceEndpoint);_.k(a,_.ai)&&(a&&_.xd().resolve(_.fx).resolveCommand(a,{form:{element:this.hostElement}}),D.preventDefault())};
_.V.computeChannelEndpoint=function(D){return _.k(D,_.ai)?null:D};
_.V.computeHrefEndpoint=function(D){return _.k(D,_.ai)?null:this.componentBehavior.computeHref_(D)};
_.V.computeChannelRendererStyle=function(D){return D};
_.V.computeIconSize=function(D){return D?108:136};
_.GT.Object.defineProperties(WH,{template:{configurable:!0,enumerable:!0,get:function(){return msm()}}});
WH.prototype.backgroundColorChanged=WH.prototype.backgroundColorChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],WH.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],WH.prototype,"componentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],WH.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],WH.prototype,"isDarkTheme",void 0);_.e([_.Y({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.n("design:type",String)],WH.prototype,"channelRendererStyle",void 0);_.e([_.Y({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],WH.prototype,"dualButtons",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],WH.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],WH.prototype,"biggerThumbStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],WH.prototype,"compactStyle",void 0);_.e([_.Ni("data","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WH.prototype,"backgroundColorChanged",null);_.e([_.m({is:"ytd-channel-renderer",disableElementRegistration:!0})],WH);_.w(WH,"ytd-channel-renderer",function(){return msm()},{mode:1});var Hwy;var yYJ;_.HX("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var t0=function(){var D=_.c.apply(this,arguments)||this;D.displayItemCount=2;D.collections=_.g("web_modern_collections_v2");D.hasPlaylistThumbnail=!1;D.stackThumbnailSize="large";return D};
_.J(t0,_.c);_.V=t0.prototype;_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.computeFirstVideos=function(D,v){return D&&v?D.slice(0,v):[]};
_.V.computeThumbnailWidth=function(D,v){return D?v==="BIG"?500:v==="MASSIVE"?600:v==="MEDIUM"?450:420:360};
_.V.computeThumbnailHeight=function(D,v){return D?v==="BIG"?280:v==="MASSIVE"?337:234:202};
_.V.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16124_inlinePreviewHoverListener)==null||hL(D)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16124_inlinePreviewHoverListener=On({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Enp,thumbnailElement:this.thumbnail})};
_.V.computeHasPlaylistThumbnail=function(D){var v,h;if((((v=D.thumbnailRenderer)==null?0:v.playlistVideoThumbnailRenderer)||((h=D.thumbnailRenderer)==null?0:h.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(v=0;v<D.thumbnailOverlays.length;v++)if(h=void 0,(h=D.thumbnailOverlays[v])==null?0:h.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.GT.Object.defineProperties(t0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16124_inlinePreviewHoverListener)==null?0:Mk(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
t0.prototype.dataChanged=t0.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],t0.prototype,"ytdLockupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],t0.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],t0.prototype,"displayItemCount",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],t0.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],t0.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],t0.prototype,"collections",void 0);_.e([_.Y({computed:"computeHasPlaylistThumbnail(data)"}),_.n("design:type",Object)],t0.prototype,"hasPlaylistThumbnail",void 0);_.e([_.Y(),_.n("design:type",String)],t0.prototype,"stackThumbnailSize",void 0);_.e([_.Br("ytd-thumbnail"),_.n("design:type",HTMLElement)],t0.prototype,"thumbnail",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t0.prototype,"dataChanged",null);_.e([_.N("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],t0.prototype,"isHovered",null);_.e([_.m({is:"ytd-radio-renderer",disableElementRegistration:!0})],t0);
_.w(t0,"ytd-radio-renderer",function(){if(yYJ!==void 0)return yYJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yYJ=D},{mode:_.E_("kevlar_poly_si_batch_j058")?1:2});var wc4;_.HX("itemSectionRenderer","showRenderer","ytd-show-renderer");var rN=function(){return _.c.apply(this,arguments)||this};
_.J(rN,_.c);rN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
rN.prototype.computeThumbnailWidth=function(D){return D?360:246};
rN.prototype.computeUseProminentThumbs=function(D){return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rN.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],rN.prototype,"isSearch",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.n("design:type",Boolean)],rN.prototype,"useProminentThumbs",void 0);_.e([_.m({is:"ytd-show-renderer",disableElementRegistration:!0})],rN);
_.w(rN,"ytd-show-renderer",function(){if(wc4!==void 0)return wc4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wc4=D},{mode:1});_.HX("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var uI=function(){var D=_.c.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.J(uI,_.c);uI.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"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uI.prototype,"isRichGrid",void 0);_.e([_.m({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],uI);
_.w(uI,"ytd-feed-entry-renderer",function(){if(Hwy!==void 0)return Hwy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Hwy=D},{mode:1});var enb;var DI=function(){return _.c.apply(this,arguments)||this};
_.J(DI,_.c);DI.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.e([_.l(_.Mm),_.n("design:type",Object)],DI.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],DI.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],DI.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.wR,value:3}),_.n("design:type",Number)],DI.prototype,"itemsPerRow",void 0);
_.e([_.m({is:"ytd-link-card-renderer",disableElementRegistration:!0})],DI);
_.w(DI,"ytd-link-card-renderer",function(){if(enb!==void 0)return enb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return enb=D},{mode:1});var nc$;var vS=function(){return _.c.apply(this,arguments)||this};
_.J(vS,_.c);_.V=vS.prototype;_.V.configureRendererStamper=function(){return{"data.menu":Ot,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onRendererTap=function(D){if(!this.ytdDismissibleItemBehavior.isDismissed){var v,h=(v=this.data)==null?void 0:v.navigationEndpoint;h&&!_.Gf(_.Pr(D),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(h)?_.Gf(_.Pr(D),this.hostElement,["A"])||_.F1(this.hostElement,"yt-navigate",{endpoint:h}):this.ytComponentBehavior.resolveCommand(h,{}))}};
_.V.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.V.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
_.V.isNavigationCommand=function(D){return D?_.k(D,_.YV)||_.k(D,_.hP)||_.k(D,_.RB)?!0:!1:!1};
vS.prototype.onRendererTap=vS.prototype.onRendererTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],vS.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],vS.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],vS.prototype,"data",void 0);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],vS.prototype,"onRendererTap",null);_.e([_.m({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],vS);
_.w(vS,"ytd-lumiere-promo-item-image-renderer",function(){if(nc$!==void 0)return nc$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nc$=D},{mode:1});var OwJ;var hg=function(){return _.c.apply(this,arguments)||this};
_.J(hg,_.c);hg.prototype.computeLandscapeThumbnail=function(){var D;return((D=this.data)==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],hg.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hg.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],hg.prototype,"miniMode",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.wR}),_.n("design:type",Number)],hg.prototype,"itemsPerRow",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.n("design:type",Boolean)],hg.prototype,"landscapeThumbnail",void 0);_.e([_.m({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],hg);
_.w(hg,"ytd-lumiere-shelf-details-renderer",function(){if(OwJ!==void 0)return OwJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return OwJ=D},{mode:_.E_("kevlar_poly_si_batch_j076")?1:2});var KyJ;var aC=function(){return _.c.apply(this,arguments)||this};
_.J(aC,_.c);aC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],aC.prototype,"data",void 0);_.e([_.m({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],aC);
_.w(aC,"ytd-primetime-promo-details-renderer",function(){if(KyJ!==void 0)return KyJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return KyJ=D},{mode:1});var TLF;var $Q=function(){return _.c.apply(this,arguments)||this};
_.J($Q,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$Q.prototype,"data",void 0);_.e([_.m({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],$Q);
_.w($Q,"ytd-panel-show-style-metadata-renderer",function(){if(TLF!==void 0)return TLF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return TLF=D},{mode:1});var Rnb;var QY=function(){return _.c.apply(this,arguments)||this};
_.J(QY,_.c);_.V=QY.prototype;_.V.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.V.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.V.computeThumbnail=function(D){if(D)return D.smallFormFactorBackgroundThumbnail||D.largeFormFactorBackgroundThumbnail};
_.V.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.V.isNavigationCommand=function(D){return D?_.k(D,_.YV)||_.k(D,_.hP)||_.k(D,_.RB)?!0:!1:!1};
_.V.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
QY.prototype.onPanelTap=QY.prototype.onPanelTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],QY.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],QY.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],QY.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0,value:_.g("web_modern_buttons")}),_.n("design:type",Boolean)],QY.prototype,"modernButtons",void 0);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QY.prototype,"onPanelTap",null);_.e([_.m({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],QY);
_.w(QY,"ytd-primetime-promo-panel-renderer",function(){if(Rnb!==void 0)return Rnb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Rnb=D},{mode:1});_.zh(_.H(function(D){D=_.fb(D,{data:{},useFullWidth:!1});var v=D.data,h=D.useFullWidth;D={};return _.F("teaser-card-view-model",{class:_.S3("ytTeaserCardViewModelHost",(D.ytTeaserCardViewModelUseFullWidth=function(){return h()},D))},_.F(_.z,{cond:function(){return v().onTap},
then:function(a){return _.F(_.Ak,{className:"ytTeaserCardViewModelLink",command:a},_.F("div",{class:"ytTeaserCardViewModelImageContainer"},_.F(_.z,{cond:function(){return v().image},
then:function(Q){return _.F(_.PX,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.F("p",{class:"ytTeaserCardViewModelCaption"},function(){return v().caption}))}}))},"Fc"),"teaser-card-view-model",{props:{data:_.gj,
useFullWidth:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=function(){var a;return _.i7((a=v())==null?void 0:a.iconThemedImage)};
return _.F("yt-edu-card-view-model",null,_.F(_.qk,{contentId:function(){return v().nudgeId}},function(){return _.F("div",{class:_.S3("ytEduCardViewModelHost",function(){return v().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.F("div",{class:"ytEduCardViewModelTopCornerButton"},_.F(_.c4,{data:function(){return v().dismissButton}},{buttonViewModel:_.s$})),_.F("div",{class:"ytEduCardViewModelContentWrapper"},_.F("div",{class:"ytEduCardViewModelHeaderImage"},_.F(_.z,
{cond:h,
then:function(a){return _.F(_.PX,{data:a,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.F("div",{class:"ytEduCardViewModelTextContainer"},_.F("div",{class:"ytEduCardViewModelTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:"ytEduCardViewModelSubtitle"},_.F(_.IY,{text:function(){return v().subtitle}}))),_.F("div",{class:"ytEduCardViewModelContent"},_.F(_.c4,{data:function(){return v().form}},{nudgeFormViewModel:Y71}))),_.F("div",{class:_.S3("ytEduCardViewModelButtonWrapper",
function(){return v().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.F(_.c4,{data:function(){return v().primaryButton}},{buttonViewModel:function(a){return _.F("div",{class:"ytEduCardViewModelPrimaryButton"},_.F(_.s$,{data:a.data}))}}),_.F(_.c4,{data:function(){return v().secondaryButton}},{buttonViewModel:function(a){return _.F("div",{class:"ytEduCardViewModelSecondaryButton"},_.F(_.s$,{data:a.data}))}})))}))},"Gc"),"yt-edu-card-view-model",{props:{data:_.gj}});var iwR=new _.Uj("RICH_GRID_VIDEO_RENDERER_TOKEN");_.zh(_.H(function(D){var v=D.data;var h=D.showYtInteractionInContent;var a=function(){return!!v().selectableFeedback};
D=_.P(_.Zq(!1,void 0,"qxtgaf"));var Q=D.next().value,G=D.next().value;_.jA(function(){var E=_.k(v().primaryButton,_.oA);(E==null?0:E.isToggled)&&G(E.isToggled)});
D=_.Jd(function(E){if(!a())return!1;if(Q()){var I;var S=(I=v().selectableFeedback)==null?void 0:I.onDeselect}else{var B;S=(B=v().selectableFeedback)==null?void 0:B.onSelect}S&&_.r4(S,{form:{element:E.target}});G(!Q());if(E=_.k(v().primaryButton,_.oA))E.isToggled=Q();return!1});
var x=function(){if(!a()){var E,I=(E=v().loggingDirectives)==null?void 0:E.trackingParams;I&&_.mj(_.xd().resolve(_.aS),I)}},f=_.JCf(),C=function(){var E;
return a()?(E=v().selectableFeedback)==null?void 0:E.a11yLabel:void 0},U=function(){return a()?{toggled:Q()}:{}},L=_.xd().resolve(_.PV(iwR)),Z={};
return _.F("yt-feedback-item-renderer",{class:_.S3("ytFeedbackItemRendererHost",(Z.ytFeedbackItemRendererSelectableFeedback=a,Z)),"on:click":D,"on:keydown":f,title:C,"aria-label":C,"aria-pressed":function(){return a()?Q():void 0},
tabindex:function(){return a()?0:void 0},
role:function(){return a()?"button":void 0}},_.F("div",{class:"ytFeedbackItemRendererContentContainer"},_.F(_.c4,{data:function(){return v().content}},{videoRenderer:function(E){return _.F(L,{data:E.data,
showYtInteraction:h})},
lockupViewModel:function(E){return _.F(_.sp,{data:E.data,containerType:2})}})),_.F("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.F(_.c4,{data:function(){return v().primaryButton}},{toggleButtonViewModel:function(E){return _.F(_.$$,{data:E.data,
buttonShapeOverrides:U,disableExplicitClickLogging:!0,onToggle:x})}})))},"Hc"),"yt-feedback-item-renderer",{props:{data:_.gj,
showYtInteractionInContent:_.gj}});var Gt=function(){var D=_.c.apply(this,arguments)||this;D.isShortsGrid=!1;D.isCompactGrid=!1;D.isShortsPanelGrid=!1;D.renderedFromRichGrid=!1;D.isInFirstColumn=!1;D.noGutterMargins=!1;D.noBottomMargin=!1;D.halfBottomMargin=!1;D.isInlineGroupItem=!1;D.insetMetadata=!1;D.noBottomMarginInAds=!0;D.force16By9ThumbnailAspectRatio=!1;D.useCompactList=!1;D.containerType=2;D.thumbnailTargetWidth=9999;D.isResponsiveGrid=!1;D.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};D.hoverListener=
D.hover.bind(D);D.leaveListener=D.leave.bind(D);D.highlighted=!1;D.JSC$16160_unsubscribeFromInlinePreviewIsActive=function(){};
return D};
_.J(Gt,_.c);_.V=Gt.prototype;_.V.computeContainerType=function(){return this.useCompactList?3:2};
_.V.itemWidthChanged=function(){var D;this.thumbnailTargetWidth=(D=this.itemWidth)!=null?D:9999};
_.V.updateIsInFirstColumn=function(){var D;this.isInFirstColumn=((D=this.data)==null?void 0:D.colIndex)===0};
_.V.observerContainerType=function(){if(this.lockup){var D=this.lockup;D.containerType=this.containerType;D.sizing=this.sizing;D.typographyBump=this.typographyBump;D.itemWidth=this.itemWidth}this.richGridMedia&&_.g("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.g("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.V.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.V.leave=function(D){D=D.relatedTarget;var v=document.querySelector("ytd-video-preview");D&&v&&_.EI(v).contains(D)||this.removeAndCleanupHighlight()};
_.V.hover=function(){var D;!this.highlighted&&(D=this.data)!=null&&D.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(D=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:D,boxShadow:"0 0 0 10px "+D})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.V.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};
_.V.registerHoverHighlightListeners=function(){var D=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16160_unsubscribeFromInlinePreviewIsActive=_.Oe(_.Gb(),_.Emq,function(v){D.highlighted&&!v&&D.removeAndCleanupHighlight()})};
_.V.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16160_unsubscribeFromInlinePreviewIsActive()};
_.V.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.V.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.V.getBackgroundColor=function(){var D,v,h=(D=this.data)==null?void 0:(v=D.onFocusEffect)==null?void 0:v.onFocusColor;if(h){if(document.documentElement.hasAttribute("dark")&&(h==null?0:h.darkTheme))return _.rT(h==null?void 0:h.darkTheme);if(h==null?0:h.lightTheme)return _.rT(h==null?void 0:h.lightTheme)}};
_.V.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var D=_.wd(),v,h,a;D&&((v=this.data)==null?0:v.trackingParams)&&((h=this.data)==null?void 0:h.colIndex)!=null&&((a=this.data)==null?void 0:a.rowIndex)!=null&&_.$Z(D,_.d4(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.V.isSlimMediaRenderer=function(D){return!!_.k(D==null?void 0:D.content,_.oM9)||!!_.k(D==null?void 0:D.content,Cb4)||!!_.k(D==null?void 0:D.content,_.GF)||!!_.k(D==null?void 0:D.content,qe1)};
_.V.isPostRenderer=function(){var D,v;return!!_.k((D=this.data)==null?void 0:D.content,dEp)||!!_.k((v=this.data)==null?void 0:v.content,jI$)};
_.V.computeIsGameCardShelf=function(){var D;return!!_.k((D=this.data)==null?void 0:D.content,KJs)};
_.V.computeIsMiniGameCardShelf=function(){var D,v;return!!_.k((D=this.data)==null?void 0:D.content,Gc4)||!!_.k((v=this.data)==null?void 0:v.content,Vyt)};
_.V.computeIsTeaserCard=function(){var D;return!!_.k((D=this.data)==null?void 0:D.content,Vyt)};
_.V.computeIsSelectableFeedbackItem=function(){var D,v;return!((v=_.k((D=this.data)==null?void 0:D.content,x_4))==null||!v.selectableFeedback)};
_.V.computeContainsLumierePosters=function(){var D,v;return((v=_.k((D=this.data)==null?void 0:D.content,KFJ))==null?void 0:v.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.computeIsExpandOnHoverCardShelf=function(){var D;return!!_.k((D=this.data)==null?void 0:D.content,ODs)};
_.V.computeIsLinkCardShelf=function(){var D;return!!_.k((D=this.data)==null?void 0:D.content,T2J)};
_.V.computeIsReelItemStyleAvatarCircle=function(D){var v;return((v=_.k(D==null?void 0:D.content,_.GF))==null?void 0:v.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.V.computeIsLinkCardFullWidth=function(D,v){var h;return((h=_.k(D==null?void 0:D.content,T2J))==null?void 0:h.useFullWidth)||v<=2};
_.GT.Object.defineProperties(Gt.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var D;return _.g("web_hover_effect_refactor")&&_.k((D=this.data)==null?void 0:D.content,_.td$)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.g("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var D;if(_.g("web_hover_effect_refactor")&&_.k((D=this.data)==null?void 0:D.content,_.td$))return!1;var v;return!((v=this.data)==null||!v.onFocusEffect)||_.g("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var D;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.g("web_hover_effect_refactor")?(D=this.data)==null?void 0:D.onFocusEffect:void 0}}}});
Gt.prototype.richGridHoverHighlightChanged=Gt.prototype.richGridHoverHighlightChanged;Gt.prototype.observerContainerType=Gt.prototype.observerContainerType;Gt.prototype.updateIsInFirstColumn=Gt.prototype.updateIsInFirstColumn;Gt.prototype.itemWidthChanged=Gt.prototype.itemWidthChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],Gt.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Gt.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],Gt.prototype,"ytdLockupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Gt.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isPost",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.n("design:type",Boolean)],Gt.prototype,"containsLumierePosters",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isSlimMedia",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isGameCardShelf",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isMiniGameCardShelf",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isTeaserCard",void 0);_.e([_.Y({computed:"computeIsSelectableFeedbackItem(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isSelectableFeedbackItem",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"isShortsGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gt.prototype,"isSlimGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"isCompactGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"isShortsPanelGrid",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isExpandOnHoverCardShelf",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isLinkCardShelf",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.wR,value:3}),_.n("design:type",Number)],Gt.prototype,"itemsPerRow",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"renderedFromRichGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"isInFirstColumn",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"noGutterMargins",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"noBottomMargin",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"halfBottomMargin",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"isInlineGroupItem",void 0);_.e([_.Y(),_.n("design:type",Object)],Gt.prototype,"insetMetadata",void 0);_.e([_.Y(),_.n("design:type",Object)],Gt.prototype,"noBottomMarginInAds",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gt.prototype,"isShelfItem",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.n("design:type",Boolean)],Gt.prototype,"isReelItemStyleAvatarCircle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.n("design:type",Boolean)],Gt.prototype,"isLinkCardFullWidth",void 0);_.e([_.Y(),_.n("design:type",Object)],Gt.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"useCompactList",void 0);_.e([_.Y(),_.n("design:type",String)],Gt.prototype,"sizing",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Gt.prototype,"typographyBump",void 0);_.e([_.Y(),_.n("design:type",Number)],Gt.prototype,"itemWidth",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Gt.prototype,"isHomeShelf",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Gt.prototype,"isHomeGrid",void 0);
_.e([_.Br("yt-lockup-view-model"),_.n("design:type",HTMLElement)],Gt.prototype,"lockup",void 0);_.e([_.Br("ytd-rich-grid-media"),_.n("design:type",HTMLElement)],Gt.prototype,"richGridMedia",void 0);_.e([_.Br("ytd-ad-slot-renderer"),_.n("design:type",HTMLElement)],Gt.prototype,"adSlotRenderer",void 0);_.e([_.Y({computed:"computeContainerType(useCompactList)"}),_.n("design:type",Object)],Gt.prototype,"containerType",void 0);_.e([_.Y(),_.n("design:type",Object)],Gt.prototype,"thumbnailTargetWidth",void 0);
_.e([_.N("showYtInteractionOnRichItem"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Gt.prototype,"showYtInteractionOnRichGridMedia",null);_.e([_.N("isSelectableFeedbackItem","richGridHoverHighlight"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Gt.prototype,"showYtInteractionOnRichItem",null);_.e([_.N("typographyBump","isHomeGrid"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Gt.prototype,"richTypographyBump",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data","isShortsGrid","isCompactGrid"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Gt.prototype,"richGridHoverHighlight",null);_.e([_.N("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.n("design:type",Number),_.n("design:paramtypes",[])],Gt.prototype,"shortsLockupViewModelAspectRatio",null);_.e([_.N("isInlineGroupItem"),_.n("design:type",Number),_.n("design:paramtypes",[])],Gt.prototype,"shortsLockupViewModelScrimStyle",null);
_.e([_.Ni("itemWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gt.prototype,"itemWidthChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gt.prototype,"updateIsInFirstColumn",null);_.e([_.Ni("containerType","sizing","typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gt.prototype,"observerContainerType",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gt.prototype,"isResponsiveGrid",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Gt.prototype,"lockupExperiments",null);_.e([_.Ni("richGridHoverHighlight"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gt.prototype,"richGridHoverHighlightChanged",null);_.e([_.m({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Gt);
_.Wy$=_.Zp()(Gt,"ytd-rich-item-renderer",function(){if(ds$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);ds$=D}D=ds$;return D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var qw7={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var TiL=_.aX(_.p1("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var d2f={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},sLu={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},m2r={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var t7R;var VY=function(){var D=_.c.apply(this,arguments)||this;D.useResponsiveGrid=!1;D.hidden=!1;D.isShowMoreHidden=!1;D.isShowLessHidden=!0;D.hasExpansionButton=!1;D.isInnerShelf=!1;D.allVideosCount=0;D.allPlaylistCount=0;D.haveSmartDownloadsCompleted=!1;D.restrictContentsOverflow=!1;D.firstShownIndex=0;D.horizontalOffset=0;D.atEnd=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
D.nextClick=function(){var v;(v=D.data)!=null&&v.contents&&(D.firstShownIndex+=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
D.previousClick=function(){var v;(v=D.data)!=null&&v.contents&&(D.firstShownIndex-=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
return D};
_.J(VY,_.c);_.V=VY.prototype;
_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.eA("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.V.attached=function(){this.requestElementsPerRow()};
_.V.refreshGridLayoutNew=function(){var D;if((D=this.data)!=null&&D.contents&&this.containerWidth){var v;((v=this.data.responsiveContainerConfiguration)==null?0:v.responsiveSize)?(D=_.We4(this.data.responsiveContainerConfiguration,this.containerWidth),D=_.Rg(Object.assign({},D,{standardUnitMinWidth:this.standardUnitMinWidth}))):D=_.Rg({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=D.typographyBump;if(this.elementsPerRow!==
D.numItems||this.gutter!==D.gutter)this.elementsPerRow=D.numItems,this.gutter=D.gutter,this.itemWidth=D.itemWidth,_.SB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":D.gutter+"px"})}};
_.V.computeSizing=function(){if(!this.isLumiere){var D=_.EjA(this.data);return D?D:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.V.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.V.computeButton=function(D){var v=_.k(D,_.Vi);D=Object.assign({},_.k(D,_.Vi));return v?(D.text||(D.text={simpleText:D.tooltip}),D.style="STYLE_MONO_OUTLINE",D.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",D):v};
_.V.onRowIndexChange=function(){var D=_.wd(),v,h;((v=this.data)==null?0:v.trackingParams)&&((h=this.data)==null?void 0:h.rowIndex)!=null&&D&&_.$Z(D,_.d4(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.V.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var D,v=((D=this.getRichItemRenderers()[0])==null?void 0:D.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*v;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
_.V.onUpdateElementsPerRowAction=function(D,v,h,a,Q,G){if(this.containerWidth!==G&&(this.containerWidth=G,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&D&&v&&h&&a&&Q&&(this.elementsPerRow!==D||this.postsPerRow!==v||this.slimItemsPerRow!==h||this.gameCardsPerRow!==a||this.miniGameCardsPerRow!==Q)&&(this.elementsPerRow=D,this.postsPerRow=v,this.slimItemsPerRow=h,this.gameCardsPerRow=a,this.miniGameCardsPerRow=Q,this.updateItemVisibility())};
_.V.isExpandedChanged=function(){var D=this.getRichItemRenderers(),v=this.isExpanded;D.forEach(function(h){h.halfBottomMargin=v})};
_.V.isCollapsedChanged=function(){var D=this.getRichItemRenderers(),v=this.isCollapsed;D.forEach(function(h){h.noBottomMargin=v})};
_.V.getRichItemRenderers=function(){return _.ZW(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.V.updateItemVisibility=function(){var D=this;if(this.data&&this.data.contents){var v=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(a,Q){var G;((G=D.data)==null?0:G.isExpanded)?(a.hidden=Q>v-1,a.ytRendererBehavior.markDirty()):a.hidden=Q>D.currentElementsPerRow-1||Q>v-1});
var h=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||h||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||h||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.V.setHeightToSingleRow=function(){var D=this.getRichItemRenderers(),v=Number.parseInt(getComputedStyle(D[0]).marginBottom,10)||0;D=D.slice(0,this.currentElementsPerRow).reduce(function(h,a){return Math.max(h,a.getBoundingClientRect().height+v)},0);
this.contents.style.height=D+"px"};
_.V.focusNextExpandedItem=function(){var D;((D=this.data)==null?0:D.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.V.focusItem=function(D,v){var h=this.getRichItemRenderers();if(h[D]&&(D=h[D].querySelector(".focus-on-expand"))){if(v){var a;(a=h[this.currentElementsPerRow])==null||a.scrollIntoView({behavior:"smooth",block:"center"})}D.focus({preventScroll:!0})}};
_.V.onDataChange=function(){var D=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var v;if((v=this.data)==null?0:v.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.$R(this,function(){D.updateItemVisibility()});
var h;if((h=this.data)==null?0:h.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.SB(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),v=0;v<this.data.contents.length;v++)h=_.k(this.data.contents[v],_.TX)||{},h.colIndex=v,h.rowIndex=this.data.rowIndex};
_.V.handleRerenderDownloadsData=function(){_.g("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())};
_.V.blockInlinePreview=function(D){var v=this,h;return _.M(function(a){(h=v.inlinePreviewIsEnabled)&&v.ytdReduxBehavior.dispatch(_.qCJ(!1));return a.return(new Promise(function(Q){D(function(){h&&v.ytdReduxBehavior.dispatch(_.qCJ(!0));Q()})}))})};
_.V.expandShelf=function(){var D=this;if(this.data){var v,h=(v=_.k(this.data.showMoreButton,_.Vi))==null?void 0:v.trackingParams;h&&_.mj(_.c8(),h);this.set("data.isExpanded",!0);this.blockInlinePreview(function(a){D.setHeightToSingleRow();D.updateItemVisibility();D.contents.style.height=D.contents.scrollHeight+"px";_.HK.addJob(function(){D.contents.style.height="auto";D.focusNextExpandedItem();a()},2,200)})}};
_.V.collapseShelf=function(){var D=this;return _.M(function(v){if(v.nextAddress==1){if(!D.data)return v.return();D.set("data.isExpanded",!1);return v.yield(D.blockInlinePreview(function(h){D.contents.style.height=D.contents.scrollHeight+"px";D.setHeightToSingleRow();_.HK.addJob(function(){D.updateItemVisibility();D.contents.style.height="auto";h()},2,200)}),2)}_.F1(D.hostElement,"yt-rich-shelf-renderer-collapse",D.data.trackingParams);
D.focusItem(0,!1);_.YI(v)})};
_.V.updateArrowButtonStatus=function(){var D=this.getRichItemRenderers().length;if(!_.g("web_rich_shelf_renderer_use_data_contents_killswitch")){var v,h;D=((v=this.data)==null?void 0:(h=v.contents)==null?void 0:h.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=D};
_.V.onChildElementFocus=function(D){this.hasChevronButtons&&(D=D.target.closest("#contents > *"),this.contents.contains(D)&&(D.offsetLeft<this.horizontalOffset?this.previousClick():D.offsetLeft+D.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.V.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.eA("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.V.updateHorizontalOffset=function(){var D=this.getRichItemRenderers(),v=D.length;if(!_.g("web_rich_shelf_renderer_use_data_contents_killswitch")){var h,a;v=((h=this.data)==null?void 0:(a=h.contents)==null?void 0:a.length)||0}var Q;D=((Q=D[0])==null?void 0:Q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>v?this.firstShownIndex=v-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*D};
_.V.isSlimMediaShelfRenderer=function(){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX))==null?void 0:h.content;return!!(_.k(a,_.oM9)||_.k(a,Cb4)||_.k(a,_.GF)||_.k(a,qe1))};
_.V.isGameCardShelf=function(){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX))==null?void 0:h.content;return!!_.k(a,KJs)};
_.V.isMiniGameCardShelf=function(){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX))==null?void 0:h.content;return!!_.k(a,Gc4)||!!_.k(a,Vyt)};
_.V.hasGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.V.hasRoundedGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.V.isShortsShelf=function(){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX))==null?void 0:h.content;return!!_.k(a,_.GF)||!!_.k(a,qe1)};
_.V.isPostShelfRenderer=function(){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX))==null?void 0:h.content;return!(!_.k(a,dEp)&&!_.k(a,jI$))};
_.V.isLumiereShelf=function(){var D,v,h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX);return!!_.k(h==null?void 0:h.content,KFJ)};
_.V.isLumiereShelfWithPosters=function(){var D,v,h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX),a;return((a=_.k(h==null?void 0:h.content,KFJ))==null?void 0:a.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.isExpandOnHoverCardShelf=function(){var D,v,h,a=(h=_.k((D=this.data)==null?void 0:(v=D.contents)==null?void 0:v[0],_.TX))==null?void 0:h.content;return!!_.k(a,ODs)};
_.V.computeHasFeaturedBadge=function(){var D,v,h=_.k((D=this.data)==null?void 0:(v=D.badges)==null?void 0:v[0],_.fl$);return h?h.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHasPaygatedFeaturedBadge=function(){var D,v,h=_.k((D=this.data)==null?void 0:(v=D.badges)==null?void 0:v[0],_.fl$);return h?(h==null?void 0:h.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHeaderHidden=function(){var D,v,h,a,Q,G;return!((D=this.data)==null?0:D.icon)&&!((v=this.data)==null?0:v.title)&&!((h=this.data)==null?0:h.subtitle)&&!((a=this.data)==null?0:a.thumbnail)&&!((Q=this.data)==null?0:Q.badges)&&!((G=this.data)==null?0:G.menu)};
_.V.showCtaButton=function(){var D;return!((D=this.data)==null||!D.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.V.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.V.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.V.computeForce16By9ThumbnailAspectRatio=function(){var D,v;return((D=this.data)==null?void 0:(v=D.responsiveContainerConfiguration)==null?void 0:v.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.V.onSectionReactiveDismissal=function(D,v,h){var a,Q;var G=(a=this.data)==null?void 0:(Q=a.targetingContext)==null?void 0:Q.targetGroupId;this&&G&&v.targetGroupId&&G.includes(v.targetGroupId)?(a=this.rowIndex,D=a===void 0?!1:!(v.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&a<=D)):D=!1;D&&(this.hidden=h)};
_.GT.Object.defineProperties(VY.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var D=this.elementsPerRow;this.isPostShelfRenderer()?D=this.postsPerRow:this.isSlimMediaShelfRenderer()?D=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?D=this.slimItemsPerRow-1:this.isGameCardShelf()?D=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(D=this.miniGameCardsPerRow);return D}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.g("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.previousButton)&&!((v=this.data)==null||!v.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.xd().resolve(_.P4).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return!((D=this.data)==null?0:(v=D.thumbnail)==null?0:(h=v.accessibility)==null?0:(a=h.accessibilityData)==null?0:a.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
VY.prototype.onChildElementFocus=VY.prototype.onChildElementFocus;VY.prototype.handleRerenderDownloadsData=VY.prototype.handleRerenderDownloadsData;VY.prototype.onDataChange=VY.prototype.onDataChange;VY.prototype.isCollapsedChanged=VY.prototype.isCollapsedChanged;VY.prototype.isExpandedChanged=VY.prototype.isExpandedChanged;VY.prototype.onRowIndexChange=VY.prototype.onRowIndexChange;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],VY.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],VY.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],VY.prototype,"ytdReduxBehavior",void 0);
_.e([_.Y({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.n("design:type",Object)],VY.prototype,"useResponsiveGrid",void 0);_.e([_.Y(),_.n("design:type",Object)],VY.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],VY.prototype,"standardUnitMinWidth",void 0);_.e([_.Y({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],VY.prototype,"elementsPerRow",void 0);_.e([_.Y({value:3}),_.n("design:type",Number)],VY.prototype,"postsPerRow",void 0);
_.e([_.Y({value:6}),_.n("design:type",Number)],VY.prototype,"slimItemsPerRow",void 0);_.e([_.Y({value:6}),_.n("design:type",Number)],VY.prototype,"gameCardsPerRow",void 0);_.e([_.Y({value:6}),_.n("design:type",Number)],VY.prototype,"miniGameCardsPerRow",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],VY.prototype,"hidden",void 0);_.e([_.Y(),_.n("design:type",Object)],VY.prototype,"isShowMoreHidden",void 0);
_.e([_.Y(),_.n("design:type",Object)],VY.prototype,"isShowLessHidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],VY.prototype,"hasExpansionButton",void 0);_.e([_.N("data.isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VY.prototype,"isExpanded",null);_.e([_.N("data.isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VY.prototype,"isCollapsed",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],VY.prototype,"isInnerShelf",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.n("design:type",Boolean)],VY.prototype,"isShorts",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.n("design:type",Boolean)],VY.prototype,"isLumiere",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.n("design:type",Boolean)],VY.prototype,"hasBoxArtThumbnailStyle",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.n("design:type",Boolean)],VY.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.n("design:type",Boolean)],VY.prototype,"hasFeaturedBadge",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.n("design:type",Boolean)],VY.prototype,"hasPaygatedFeaturedBadge",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.n("design:type",Boolean)],VY.prototype,"isHeaderHidden",void 0);_.e([_.Y({selector:_.pCu}),_.n("design:type",Object)],VY.prototype,"allVideosCount",void 0);_.e([_.Y({selector:iPI}),_.n("design:type",Object)],VY.prototype,"allPlaylistCount",void 0);_.e([_.Y({selector:dyr}),_.n("design:type",Object)],VY.prototype,"haveSmartDownloadsCompleted",void 0);
_.e([_.Y({selectorArgs:["entitySelectorType"],selector:function(D,v){if(_.g("kevlar_modern_downloads_page")&&v&&v!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var h=D.entities;switch(v){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":v=_.s4(h);D=Jm(v);var a=_.Xh(v);h=_.Hf(h);h=_.MD(yR4(a,h,v.length));return{contents:D,subtitle:h};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return h=_.s4(h),{contents:Jm(h)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return h=
_.m6(h),{contents:Jm(h)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return h=_.hFO(h),{contents:Jm(h)};default:_.yR(new _.XH("Error: entitySelectorType defined but not matched in selector.",D,v))}}}}),
_.n("design:type",Object)],VY.prototype,"entityDrivenRichShelfData",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.n("design:type",Boolean)],VY.prototype,"hasTopCtaButton",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.n("design:type",Boolean)],VY.prototype,"hasBottomCtaButton",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.n("design:type",Boolean)],VY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],VY.prototype,"restrictContentsOverflow",void 0);_.e([_.Y({selector:_.ILr}),_.n("design:type",Boolean)],VY.prototype,"inlinePreviewIsEnabled",void 0);_.e([_.Y({computed:"computeSizing(data)"}),_.n("design:type",String)],VY.prototype,"sizing",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],VY.prototype,"typographyBump",void 0);_.e([_.Y(),_.n("design:type",Number)],VY.prototype,"itemWidth",void 0);_.e([_.Y(),_.n("design:type",Object)],VY.prototype,"firstShownIndex",void 0);_.e([_.Y(),_.n("design:type",Object)],VY.prototype,"horizontalOffset",void 0);_.e([_.Y(),_.n("design:type",Object)],VY.prototype,"atEnd",void 0);_.e([_.Br("#contents"),_.n("design:type",HTMLElement)],VY.prototype,"contents",void 0);
_.e([_.Ni("data.rowIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VY.prototype,"onRowIndexChange",null);_.e([_.Ni("isExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VY.prototype,"isExpandedChanged",null);_.e([_.Ni("isCollapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VY.prototype,"isCollapsedChanged",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VY.prototype,"onDataChange",null);_.e([_.Ni("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VY.prototype,"handleRerenderDownloadsData",null);_.e([_.lc("focusin"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],VY.prototype,"onChildElementFocus",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data","isHomePage"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VY.prototype,"isTruncated",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VY.prototype,"showBottomDivider",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],VY.prototype,"hasChevronButtons",null);
_.e([_.N("firstShownIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],VY.prototype,"previousButtonOverride",null);_.e([_.N("atEnd"),_.n("design:type",Object),_.n("design:paramtypes",[])],VY.prototype,"nextButtonOverride",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VY.prototype,"isHomePage",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VY.prototype,"thumbnailAriaHidden",null);
_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],VY.prototype,"entitySelectorType",null);_.e([_.m({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],VY);
_.rYJ=_.Zp()(VY,"ytd-rich-shelf-renderer",function(){if(t7R===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);t7R=D}D=t7R;return D},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var uzs;_.zh(_.c$,"yt-badge-view-model",{props:{data:_.gj,class:_.gj,workaroundShortsIsThumbnailBadge:_.gj,modern:_.gj,numBadgesInRow:_.gj}});_.zh(p3M,"yt-slimline-survey-view-model",{props:{data:_.gj}});var PS=function(){var D=_.c.apply(this,arguments)||this;D.tileLottieAnimationRef={};D.backgroundLottieAnimationRef={};D.isOnHoverBehaviorForLottieEnabled=!0;D.useBiggerShowcaseImage=_.g("enable_desktop_search_bigger_thumbs");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return D};
_.J(PS,_.c);_.V=PS.prototype;_.V.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.V.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.V.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var D=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);D!==this.hasTile&&this.set("hasTile",D);D=this.hasLogo(this.data)||!!this.data.badgeText;D!==this.hasMetadata&&this.set("hasMetadata",D);D=this.data.overflowButton?!1:D;D!==this.showLogoImage&&this.set("showLogoImage",D);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.V.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.V.currentColorChanged=function(){this.updateButtonPalette()};
_.V.computeBackgroundStyle=function(D){if(D&&this.data){var v=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var h=_.L_((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);h&&v.push('background-image: url("'+h+'");')}var a;((a=D.basicColorData)==null?void 0:a.backgroundColor)!==void 0&&v.push("background-color: "+_.uu(D.basicColorData.backgroundColor)+";");return v.join("")}};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
_.V.getCurrentLogo=function(D,v){if(D)return v?D.darkLogoImage:D.lightLogoImage};
_.V.getCurrentStaticTileImage=function(D,v){if(this.hasStaticTile(D))return D.darkTileImage?v?D.darkTileImage:D.tileImage:D.tileImage};
_.V.computeTitleStyle=function(D){if(this.data&&this.data.title&&D&&D.basicColorData&&D.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.rT(D.basicColorData.foregroundTitleColor)+";"};
_.V.computeSubtitleStyle=function(D){if(this.data&&this.data.subtitle&&D&&D.basicColorData&&D.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.rT(D.basicColorData.foregroundBodyColor)+";"};
_.V.computeSupplementalStyle=function(D){if(this.data&&this.data.supplementalText&&D&&D.supplementalTextColor!==void 0)return D=_.rT(D.supplementalTextColor),"color:"+D+";--yt-endpoint-color:"+D+";--yt-endpoint-hover-color:"+D+";--yt-endpoint-visited-color:"+D+";--yt-formatted-string-bold-font-weight:700;"};
_.V.computeDismissIconStyle=function(D){var v,h;if((D==null?0:(v=D.dismissButtonColorData)==null?0:v.foregroundTitleColor)&&(D==null?0:(h=D.dismissButtonColorData)==null?0:h.backgroundColor))return"--yt-button-color:"+_.uu(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.uu(D.dismissButtonColorData.backgroundColor)+";"};
_.V.computeOverflowIconStyle=function(D){var v,h;if((D==null?0:(v=D.dismissButtonColorData)==null?0:v.foregroundTitleColor)&&(D==null?0:(h=D.dismissButtonColorData)==null?0:h.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.uu(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.uu(D.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.uu(D.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBannerStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeLocation=function(D){switch(D==null?void 0:D.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.V.shouldShowTileSection=function(D,v,h){return!this.shouldExpandLogo(D,v,h)&&v};
_.V.shouldShowExpandedLogoSection=function(D,v,h){return this.shouldExpandLogo(D,v,h)&&D!==void 0&&this.hasLogo(D)};
_.V.shouldExpandLogo=function(D,v,h){return D&&v?!1:h>=2};
_.V.hasStaticTile=function(D){return!(D==null||!D.tileImage)};
_.V.hasTileLottie=function(D){var v;return!!(D==null?0:(v=D.tileLottie)==null?0:v.url)};
_.V.hasLogo=function(D){return this.getCurrentLogo(D,this.isDarkTheme)!==void 0};
_.V.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.V.getExpandedLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.V.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.V.getMaxTitleFontSize=function(D){return D.overrideTitleMaxFontSize?String(D.overrideTitleMaxFontSize):"36"};
_.V.hasBackgroundLottie=function(D){var v;return!!(D==null?0:(v=D.backgroundLottie)==null?0:v.url)};
_.V.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,v;(D=this.tileLottieAnimationRef)==null||(v=D.lottieEl)==null||v.play();var h,a;(h=this.backgroundLottieAnimationRef)==null||(a=h.lottieEl)==null||a.play()}};
_.V.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,v;(D=this.tileLottieAnimationRef)==null||(v=D.lottieEl)==null||v.pause();var h,a;(h=this.backgroundLottieAnimationRef)==null||(a=h.lottieEl)==null||a.pause()}};
_.V.pauseLottie=function(){var D,v;(D=this.tileLottieAnimationRef)==null||(v=D.lottieEl)==null||v.pause();var h,a;(h=this.backgroundLottieAnimationRef)==null||(a=h.lottieEl)==null||a.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.V.performPrimaryButtonAction=function(){var D,v,h;((D=this.data)==null?0:(v=D.primaryButton)==null?0:(h=v.buttonRenderer)==null?0:h.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
_.V.updateButtonPalette=function(){if(this.data&&this.currentColorData){var D;((D=this.data.dismissButton)==null?0:D.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var v;if((v=this.data.primaryButton)==null?0:v.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 h;if((h=this.data.secondaryButton)==
null?0:h.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 a;((a=this.data.primaryButton)==null?0:a.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Q;((Q=this.data.secondaryButton)==null?0:Q.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var G;((G=this.data.primaryButton)==null?0:G.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.V.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var D=this.getTileLottieDataBasedOnTheme(),v,h;if(D.url!==((v=this.tileLottiePlayerProps)==null?void 0:(h=v.animationConfig)==null?void 0:h.path)){var a,Q;(a=this.tileLottieAnimationRef)==null||(Q=a.lottieEl)==null||Q.destroy();var G;this.isOnHoverBehaviorForLottieEnabled=!((G=D.settings)==null?0:G.autoplay);var x,f;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(f=(x=D.settings)==null?void 0:x.autoplay)!=null?f:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.tileLottiePlayerProps.animationConfig.path=D.url:this.tileLottiePlayerProps.animationConfig.animationData=D.url}}};
_.V.getOverflowButton=function(D){return _.k(D.overflowButton,m84)};
_.V.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var D=this.getBackgroundLottieDataBasedOnTheme(),v,h;if(D.url!==((v=this.backgroundLottiePlayerProps)==null?void 0:(h=v.animationConfig)==null?void 0:h.path)){var a,Q;(a=this.backgroundLottieAnimationRef)==null||(Q=a.lottieEl)==null||Q.destroy();var G;this.isOnHoverBehaviorForLottieEnabled=!((G=D.settings)==null?0:G.autoplay);var x,f;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(f=(x=D.settings)==null?void 0:x.autoplay)!=null?f:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=D.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
D.url}}};
_.V.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var D;((D=this.tileLottieAnimationRef)==null?void 0:D.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var v;((v=this.backgroundLottieAnimationRef)==null?void 0:v.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.V.getTileLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeTileLottie))return this.data.darkThemeTileLottie;var v;return((v=this.data)==null?0:v.tileLottie)?this.data.tileLottie:{}};
_.V.getBackgroundLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var v;return((v=this.data)==null?0:v.backgroundLottie)?this.data.backgroundLottie:{}};
_.V.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.V.getLottieLoopValue=function(D){return D?D.loop!==void 0?D.loop:D.loopCount?D.loopCount-1:!0:!0};
_.V.logoWithPadding=function(D){var v,h,a;return(D=(v=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(h=v.thumbnails)==null?void 0:(a=h[0])==null?void 0:a.height)&&D%31===0?!0:!1};
PS.prototype.currentColorChanged=PS.prototype.currentColorChanged;PS.prototype.themeChanged=PS.prototype.themeChanged;PS.prototype.dataChanged=PS.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],PS.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],PS.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"primaryButton",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"secondaryButton",void 0);
_.e([_.Y({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],PS.prototype,"elementsPerRow",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],PS.prototype,"isDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],PS.prototype,"hasTile",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],PS.prototype,"hasMetadata",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],PS.prototype,"showLogoImage",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"currentColorData",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.n("design:type",String)],PS.prototype,"bannerStyle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.n("design:type",String)],PS.prototype,"location",void 0);
_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"tileLottiePlayerProps",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"tileLottieAnimationRef",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"backgroundLottiePlayerProps",void 0);_.e([_.Y(),_.n("design:type",Object)],PS.prototype,"backgroundLottieAnimationRef",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],PS.prototype,"useBiggerShowcaseImage",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],PS.prototype,"isHideEnclosingAction",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PS.prototype,"dataChanged",null);_.e([_.qi("isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PS.prototype,"themeChanged",null);
_.e([_.qi("currentColorData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PS.prototype,"currentColorChanged",null);_.e([_.m({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],PS);
_.w(PS,"ytd-statement-banner-renderer",function(){if(uzs!==void 0)return uzs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uzs=D},{mode:1});var DQM;var xQ=function(){var D=_.c.apply(this,arguments)||this;D.isSearch=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.disableMouseScroll=!0;D.useFloorScrolling=!0;return D};
_.J(xQ,_.c);xQ.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.p1("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.p1("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
xQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
xQ.prototype.onDataChanged=xQ.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xQ.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xQ.prototype,"hideShelfHeader",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xQ.prototype,"engagementPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],xQ.prototype,"disableMouseScroll",void 0);_.e([_.Y(),_.n("design:type",Object)],xQ.prototype,"useFloorScrolling",void 0);_.e([_.Y(),_.n("design:type",Object)],xQ.prototype,"data",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xQ.prototype,"onDataChanged",null);
_.e([_.m({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],xQ);
_.w(xQ,"ytd-reel-shelf-renderer",function(){if(DQM!==void 0)return DQM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="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    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DQM=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var vlJ;var hGF;hGF=_.DK(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.aym=_.UV(hGF);var $Qs=_.H(function(D){var v=D.data;D=D.useSmallFont;var h={},a={};return _.F("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.F(_.z,{cond:function(){return v().favicon},
then:function(Q){return _.F(_.PX,{data:Q,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.F("div",{class:"ytChannelExternalLinkViewModelContainer"},_.F(_.IY,{text:function(){return v().title},
className:_.S3("ytChannelExternalLinkViewModelTitle",(h.ytChannelExternalLinkViewModelTitleSmallFont=D,h)),ellipsisTruncate:!0,userInput:!0}),_.F(_.IY,{text:function(){return v().link},
className:_.S3("ytChannelExternalLinkViewModelLink",(a.ytChannelExternalLinkViewModelLinkSmallFont=D,a)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Ic");
$Qs.idomCompat=!0;_.zh($Qs,"yt-channel-external-link-view-model",{props:{data:_.gj,useSmallFont:_.gj}});_.HX("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var M5=function(){var D=_.c.apply(this,arguments)||this;D.revealButtonClass="button";D.businessEmailDisplayState="HIDE_SECTION";return D};
_.J(M5,_.c);_.V=M5.prototype;_.V.refit=function(){var D=this;_.hD(function(){_.U9(D.hostElement,"yt-refit-popups-action")});
_.$R(this,function(){_.U9(D.hostElement,"yt-refit-popups-action")})};
_.V.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.i4(_.aym),this.businessEmailDisplayState="CAPTCHA")};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.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"}}}};
_.V.computeEmailHref=function(D){return"mailto:"+D};
_.V.computeSafeUrl=function(D){if(D)return _.nz(D)};
_.V.linkEndpoint=function(D){return _.k(D.onTap,_.Tz)};
_.V.linkEndpointToHref=function(D){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(D))};
_.V.onYtServiceRequestCompleted=function(D){var v;if((v=D.detail.data)==null?0:v.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var h;if((h=D.detail.data)==null?0:h.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var D=this.JSC$16274_captchaTextarea.value;if(D){D={recaptcha_response_token:D,channel_id:this.metadata.channelId};var v=_.k(this.metadata.onBusinessEmailRevealClickCommand,_.Tz);v&&this.ytComponentBehavior.resolveCommand(v,{form:D})}}};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.GT.Object.defineProperties(M5.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var D;return _.k((D=this.data)==null?void 0:D.metadata,WFR)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.businessEmailRevealButton,_.fH)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var D=new URL(this.metadata.canonicalChannelUrl);return D.host+D.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.learnMoreOnTap,_.Tz)}}});
M5.prototype.onYtServiceRequestCompleted=M5.prototype.onYtServiceRequestCompleted;M5.prototype.businessEmailMetadataChanged=M5.prototype.businessEmailMetadataChanged;M5.prototype.refit=M5.prototype.refit;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#g-recaptcha-response"),_.n("design:type",HTMLTextAreaElement)],M5.prototype,"JSC$16274_captchaTextarea",void 0);_.e([_.Y(),_.n("design:type",Object)],M5.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],M5.prototype,"revealButtonClass",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],M5.prototype,"metadata",null);
_.e([_.N("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],M5.prototype,"revealButton",null);_.e([_.N("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],M5.prototype,"channelDisplayUrl",null);_.e([_.qi("metadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M5.prototype,"refit",null);_.e([_.N("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],M5.prototype,"formattedDescription",null);
_.e([_.N("metadata","learnMoreCommand"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],M5.prototype,"shouldRendereVerifiedPhoneStatus",null);_.e([_.N("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],M5.prototype,"learnMoreCommand",null);_.e([_.Y(),_.n("design:type",String)],M5.prototype,"businessEmailDisplayState",void 0);_.e([_.Y(),_.n("design:type",String)],M5.prototype,"businessEmail",void 0);
_.e([_.Y(),_.n("design:type",String)],M5.prototype,"businessEmailErrorMessage",void 0);_.e([_.qi("metadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M5.prototype,"businessEmailMetadataChanged",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],M5.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],M5);
_.w(M5,"ytd-about-channel-renderer",function(){if(vlJ!==void 0)return vlJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return vlJ=D},{mode:1});var QhF;var f2=function(){return _.c.apply(this,arguments)||this};
_.J(f2,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],f2.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],f2);
_.w(f2,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(QhF!==void 0)return QhF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return QhF=D},{mode:1});var Gvt;var C2=function(){return _.c.apply(this,arguments)||this};
_.J(C2,_.c);C2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],C2.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],C2.prototype,"aligment",void 0);_.e([_.m({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],C2);
_.w(C2,"ytd-channel-list-sub-menu-renderer",function(){if(Gvt!==void 0)return Gvt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Gvt=
D},{mode:1});var VwM;var oC=function(){return _.c.apply(this,arguments)||this};
_.J(oC,_.c);oC.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],oC.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],oC);
_.w(oC,"ytd-channel-sub-menu-renderer",function(){if(VwM!==void 0)return VwM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return VwM=D},{mode:1});var Pmt;var xQF;var FP=function(){var D=_.c.apply(this,arguments)||this;D.isCompact=!1;return D};
_.J(FP,_.c);_.GT.Object.defineProperties(FP.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var D,v;return((v=_.k((D=this.data)==null?void 0:D.endpoint,_.RB))==null?void 0:v.target)==="TARGET_NEW_WINDOW"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],FP.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FP.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],FP.prototype,"isCompact",void 0);_.e([_.N("isCompact"),_.n("design:type",Number),_.n("design:paramtypes",[])],FP.prototype,"thumbnailWidth",null);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],FP.prototype,"openNewWindow",null);_.e([_.m({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],FP);
_.w(FP,"ytd-media-lockup-renderer",function(){if(xQF!==void 0)return xQF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xQF=D},{mode:1});var Mw9;var zt=function(){return _.c.apply(this,arguments)||this};
_.J(zt,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],zt.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zt.prototype,"data",void 0);_.e([_.m({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],zt);
_.w(zt,"ytd-structured-description-channel-lockup-renderer",function(){if(Mw9!==void 0)return Mw9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Mw9=D},{mode:1});var fyt;var Ur=function(){var D=_.c.apply(this,arguments)||this;D.isCompact=!1;D.collections=_.g("web_modern_collections_v2");D.collectionsStackColor=_.g("modernize_structured_description_playlist_lockups_v2");return D};
_.J(Ur,_.c);Ur.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:_.g("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.GT.Object.defineProperties(Ur.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q,G;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(D=this.data)==null?void 0:(v=D.thumbnail)==null?void 0:v.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(h=this.data)==null?void 0:(a=h.thumbnail)==null?void 0:a.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(G=Q.thumbnail)==
null?void 0:G.vibrantColorPalette:void 0}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ur.prototype,"componentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ur.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ur.prototype,"showSidePanelThumbnailOverlay",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ur.prototype,"isCompact",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ur.prototype,"collections",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ur.prototype,"collectionsStackColor",void 0);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ur.prototype,"twoLineTitle",null);
_.e([_.N("data","collections","collectionsStackColor"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ur.prototype,"collectionStack",null);_.e([_.m({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ur);
_.w(Ur,"ytd-structured-description-playlist-lockup-renderer",function(){if(fyt!==void 0)return fyt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fyt=D},{mode:1});var Cm1;var L2=function(){return _.c.apply(this,arguments)||this};
_.J(L2,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],L2.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],L2.prototype,"data",void 0);_.e([_.m({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],L2);
_.w(L2,"ytd-structured-description-video-lockup-renderer",function(){if(Cm1!==void 0)return Cm1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Cm1=D},{mode:2});var ZI=function(){return _.c.apply(this,arguments)||this};
_.J(ZI,_.c);
ZI.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ZI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ZI.prototype,"data",void 0);_.e([_.m({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ZI);
_.w(ZI,"ytd-compact-infocard-renderer",function(){if(Pmt!==void 0)return Pmt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Pmt=D},{mode:1});var olF;var Er=function(){var D=_.c.apply(this,arguments)||this;D.useModernCollectionsV2=_.g("web_modern_collections_v2");return D};
_.J(Er,_.c);Er.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.GT.Object.defineProperties(Er.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],Er.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Er.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],Er.prototype,"isGridViewEnabled",void 0);
_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Er.prototype,"watchFeedBigThumbs",null);_.e([_.N("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0,value:"168"}),_.n("design:type",String),_.n("design:paramtypes",[])],Er.prototype,"thumbnailWidth",null);_.e([_.N("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0,value:"94"}),_.n("design:type",String),_.n("design:paramtypes",[])],Er.prototype,"customThumbnailSize",null);
_.e([_.Y(),_.n("design:type",Object)],Er.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Er.prototype,"useModernCollectionsV2",void 0);_.e([_.m({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Er);
_.w(Er,"ytd-compact-playlist-renderer",function(){if(olF!==void 0)return olF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return olF=D},{mode:1});var FLt;var IC=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.roundedContainer=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.J(IC,_.c);_.V=IC.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.V.computeViewStyle=function(D){return D.style?D.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.V.onUpdateElementsPerRowAction=function(D){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&D===1};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
IC.prototype.dataChanged=IC.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],IC.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],IC.prototype,"actionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],IC.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],IC.prototype,"hideThumbnail",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.n("design:type",String)],IC.prototype,"viewStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],IC.prototype,"darkerDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],IC.prototype,"roundedContainer",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IC.prototype,"dataChanged",null);_.e([_.m({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],IC);
_.w(IC,"ytd-compact-promoted-item-renderer",function(){if(FLt!==void 0)return FLt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return FLt=D},{mode:1});var zGm;var gX=function(){var D=_.c.apply(this,arguments)||this;D.collections=_.g("web_modern_collections_v2");return D};
_.J(gX,_.c);gX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
gX.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
gX.prototype.onYtNavigate=function(D,v){var h=this;if(v.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",v)){var a=this.get("watchEndpoint.videoId",v.endpoint),Q=_.U9(this.hostElement,"yt-get-current-video-id-action")[0];_.g("kevlar_mix_handle_first_endpoint_different")&&a&&Q&&a!==Q||(D.stopPropagation(),_.fj().getPlayerPromise().then(function(G){if(G.getPlayerState()===0&&h.data.secondaryNavigationEndpoint)var x=h.data.secondaryNavigationEndpoint;else{x=
Object.assign({},v.endpoint);var f=_.k(x.commandMetadata,_.Sa);f&&(G=Math.floor(G.getCurrentTime()),f.url=_.hO(f.url,{t:G}),!_.g("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(f=_.k(x,_.hP)))&&(f.startTimeSeconds=G)}_.F1(h.hostElement,"yt-navigate",{endpoint:x})}))}};
_.GT.Object.defineProperties(gX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q,G;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(v=D.thumbnail)==null?void 0:v.sampledThumbnailColor,vibrantColorPalette:(h=this.data)==null?void 0:(a=h.thumbnail)==null?void 0:a.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(G=Q.thumbnail)==null?void 0:G.darkColorPalette,experimentEnabled:this.collections}}}});
gX.prototype.onYtNavigate=gX.prototype.onYtNavigate;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],gX.prototype,"ytEndpointBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],gX.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.E0),_.n("design:type",Object)],gX.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],gX.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],gX.prototype,"isGridViewEnabled",void 0);_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gX.prototype,"watchFeedBigThumbs",null);
_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],gX.prototype,"thumbnailWidth",null);_.e([_.Y(),_.n("design:type",Object)],gX.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],gX.prototype,"collections",void 0);_.e([_.N("data","collections"),_.n("design:type",Object),_.n("design:paramtypes",[])],gX.prototype,"collectionStack",null);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],gX.prototype,"onYtNavigate",null);_.e([_.m({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],gX);
_.w(gX,"ytd-compact-radio-renderer",function(){if(zGm!==void 0)return zGm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return zGm=D},{mode:1});var UQ1;var kQ=function(){return _.c.apply(this,arguments)||this};
_.J(kQ,_.c);kQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
kQ.prototype.computeRendererStyle=function(D){return D.style?D.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.e([_.Y(),_.n("design:type",Object)],kQ.prototype,"data",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kQ.prototype,"rendererBehavior",void 0);_.e([_.Y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],kQ.prototype,"rendererStyle",void 0);_.e([_.m({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],kQ);
_.w(kQ,"ytd-compact-text-promo-renderer",function(){if(UQ1!==void 0)return UQ1;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return UQ1=D},{mode:1});var LLp;var Sc=function(){var D=_.c.apply(this,arguments)||this;D.isShortsStyle=!1;return D};
_.J(Sc,_.c);_.V=Sc.prototype;_.V.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"}}}};
_.V.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.F1(this.hostElement,"yt-disable-lockup-interaction"):_.F1(this.hostElement,"yt-enable-lockup-interaction"))};
_.V.isMetaBlockEmpty=function(D){return!D||!D.longBylineText&&!D.shortBylineText&&!D.shortViewCountText&&!D.viewCountText};
_.V.computeHasOneLineTitle=function(D){return this.forceOneLineTitle||!(D==null||!D.buttons)};
_.V.computeDisableInteraction=function(){var D;return!((D=this.data)==null?0:D.navigationEndpoint)};
_.V.hasSingularTopStandaloneBadge=function(){var D;return!((D=this.data)==null||!D.topStandaloneBadge)};
_.GT.Object.defineProperties(Sc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var D;return this.hasSingularTopStandaloneBadge()?[(D=this.data)==null?void 0:D.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var D;return this.shouldShowTopBadges?((D=this.data)==null?void 0:D.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Sc.prototype.disableInteractionChanged=Sc.prototype.disableInteractionChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],Sc.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],Sc.prototype,"ytdLockupBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],Sc.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.n("design:type",Boolean)],Sc.prototype,"metaBlockEmpty",void 0);_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],Sc.prototype,"isGridViewEnabled",void 0);_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Sc.prototype,"watchFeedBigThumbs",null);
_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],Sc.prototype,"thumbnailWidth",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Sc.prototype,"isShortsStyle",void 0);_.e([_.Y(),_.n("design:type",Object)],Sc.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.n("design:type",Boolean)],Sc.prototype,"hasOneLineTitle",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],Sc.prototype,"hideThumbnail",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Sc.prototype,"forceOneLineTitle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.n("design:type",Boolean)],Sc.prototype,"disableInteraction",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Sc.prototype,"musicMetadataVideoLockup",void 0);
_.e([_.Ni("disableInteraction"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sc.prototype,"disableInteractionChanged",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Sc.prototype,"shouldShowTopBadges",null);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Sc.prototype,"topBadges",null);
_.e([_.N("shouldShowTopBadges","data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Sc.prototype,"inlineMetadataBadges",null);_.e([_.N("shouldShowTopBadges"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Sc.prototype,"shouldShowBadgesBelowMetadata",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Sc.prototype,"compactTitleClass",null);_.e([_.m({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Sc);
_.w(Sc,"ytd-compact-video-renderer",function(){if(LLp!==void 0)return LLp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return LLp=D},{mode:_.E_("kevlar_poly_si_batch_j067")?1:2});var ZcJ;_.HX("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Jg=function(){return _.c.apply(this,arguments)||this};
_.J(Jg,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Jg.prototype,"data",void 0);_.e([_.m({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Jg);
_.w(Jg,"ytd-counterfactual-renderer",function(){if(ZcJ!==void 0)return ZcJ;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return ZcJ=D},{mode:1});var Elb;var p2=function(){var D=_.c.apply(this,arguments)||this;D.hidden=!1;return D};
_.J(p2,_.c);p2.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.xd().resolve(_.fx).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
p2.prototype.computeHidden=function(D){return!!D};
_.GT.Object.defineProperties(p2.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}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],p2.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.n("design:type",Object)],p2.prototype,"hidden",void 0);_.e([_.N("data.label"),_.n("design:type",String),_.n("design:paramtypes",[])],p2.prototype,"label",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],p2.prototype,"value",null);
_.e([_.m({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],p2);
_.w(p2,"ytd-dropdown-item-renderer",function(){if(Elb!==void 0)return Elb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Elb=D},{mode:1});var IyF;var gl9;var lw=function(){return _.c.apply(this,arguments)||this};
_.J(lw,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lw.prototype,"data",void 0);_.e([_.Y({computed:"getSimpleString(data.label)"}),_.n("design:type",String)],lw.prototype,"label",void 0);_.e([_.m({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],lw);
_.w(lw,"ytd-navigation-dropdown-item-renderer",function(){if(gl9!==void 0)return gl9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return gl9=D},{mode:1});var N5=function(){var D=_.c.apply(this,arguments)||this;D.disabled=!1;D.value="";D.noLabelFloat=!1;D.noUnderline=!1;D.usePrimaryColor=!1;D.hasBackground=!1;D.verticalAlign="top";D.autosize=!1;D.minAutosizeWidth=100;D.autosizeFont="14px Roboto";return D};
_.J(N5,_.c);_.V=N5.prototype;_.V.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"}}}};
_.V.open=function(){this.inputEl.open()};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.V.dataChanged=function(){this.reset()};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("value-changed",this.value))};
_.V.stopPropagation=function(D){D.stopPropagation()};
_.V.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var D=this.canvas.getContext("2d");D&&(D.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(D.measureText(this.inputEl.value).width)+24)+"px")}};
_.V.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var D=0,v=this.data.entries.length;D<v;D++){var h=this.data.entries[D],a;for(a in h)if(h.hasOwnProperty(a)){var Q=h[a];if("isSelected"in Q&&Q.isSelected)return"stringValue"in Q?Q.stringValue||"":"int32Value"in Q?Q.int32Value||0:0}}return null};
_.V.updateValueFromBinding=function(D){this.value=D.detail.value};
_.GT.Object.defineProperties(N5.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var D=0,v=this.data.entries.length;D<v;D++){var h=this.data.entries[D],a;for(a in h)if(h.hasOwnProperty(a)){var Q=h[a];if("isSelected"in Q&&Q.isSelected&&"label"in Q)return this.ytRendererBehavior.getSimpleString(Q.label)}}return null}}});
N5.prototype.autoSizeLabel=N5.prototype.autoSizeLabel;N5.prototype.stopPropagation=N5.prototype.stopPropagation;N5.prototype.valueChangedForBinding=N5.prototype.valueChangedForBinding;N5.prototype.dataChanged=N5.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],N5.prototype,"ytRendererStamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N5.prototype,"disabled",void 0);_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"value",void 0);_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"noLabelFloat",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N5.prototype,"noUnderline",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],N5.prototype,"theme",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N5.prototype,"usePrimaryColor",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N5.prototype,"hasBackground",void 0);_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"verticalAlign",void 0);_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"autosize",void 0);_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"minAutosizeWidth",void 0);_.e([_.Y(),_.n("design:type",Object)],N5.prototype,"autosizeFont",void 0);
_.e([_.Br("#entries"),_.n("design:type",Object)],N5.prototype,"entries",void 0);_.e([_.Br("#input"),_.n("design:type",Object)],N5.prototype,"inputEl",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N5.prototype,"dataChanged",null);_.e([_.qi("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N5.prototype,"valueChangedForBinding",null);
_.e([_.lc("iron-overlay-opened"),_.lc("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],N5.prototype,"stopPropagation",null);_.e([_.lc("iron-select"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N5.prototype,"autoSizeLabel",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N5.prototype,"label",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],N5);
_.w(N5,"ytd-dropdown-renderer",function(){if(IyF!==void 0)return IyF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return IyF=D},{mode:1});var kvM;var YQ=function(){var D=_.c.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.J(YQ,_.c);YQ.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"}}}};
YQ.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
YQ.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
YQ.prototype.computeViewAllHidden=function(D,v){return D||!v.viewAllEndpoint};
YQ.prototype.fillRestIfNoShowMore=YQ.prototype.fillRestIfNoShowMore;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],YQ.prototype,"ytLazyListBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],YQ.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YQ.prototype,"isConstrainedList",void 0);_.e([_.qi("data","canShowMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YQ.prototype,"fillRestIfNoShowMore",null);_.e([_.m({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],YQ);
_.w(YQ,"ytd-expanded-shelf-contents-renderer",function(){if(kvM!==void 0)return kvM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kvM=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var SdJ;var BS=function(){return _.c.apply(this,arguments)||this};
_.J(BS,_.c);BS.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],BS.prototype,"data",void 0);_.e([_.m({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],BS);
_.w(BS,"ytd-feed-channel-filter-header-renderer",function(){if(SdJ!==void 0)return SdJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return SdJ=D},{mode:1});var JK$;var pL$;var lyp;var cS=function(){return _.c.apply(this,arguments)||this};
_.J(cS,_.c);_.V=cS.prototype;_.V.onClick=function(D){var v,h=(v=this.data)==null?void 0:v.sectionEndpoint;!_.Gf(_.Pr(D),this.hostElement,["A".toString()])&&h&&_.F1(this.hostElement,"yt-navigate",{endpoint:h})};
_.V.computeHasSectionEndpoint=function(D){return(D==null?void 0:D.sectionEndpoint)!==void 0};
_.V.computeShowHeaderAsLink=function(D){return(D==null?void 0:D.header)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0};
_.V.computeShowSubheaderAsLink=function(D){return(D==null?void 0:D.subheader)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0&&(D==null?void 0:D.header)===void 0};
_.V.getHeaderAsLinkClass=function(D){var v=[],h;(D==null?0:(h=D.headerIcon)==null?0:h.iconType)&&v.push("header-link-active");return v.join(" ")};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],cS.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cS.prototype,"data",void 0);
_.e([_.Y({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],cS.prototype,"hasSectionEndpoint",void 0);_.e([_.Y({computed:"computeShowHeaderAsLink(data)"}),_.n("design:type",Boolean)],cS.prototype,"showHeaderAsLink",void 0);_.e([_.Y({computed:"computeShowSubheaderAsLink(data)"}),_.n("design:type",Boolean)],cS.prototype,"showSubheaderAsLink",void 0);_.e([_.m({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],cS);
_.w(cS,"ytd-medical-panel-section-renderer",function(){if(lyp!==void 0)return lyp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return lyp=D},{mode:1});var XP=function(){var D=_.c.apply(this,arguments)||this;D.isExpanded=!1;D.roundedContainer=!0;D.skipRoundingTop=!1;D.toggleExpandableSection=function(){D.isExpanded=!D.isExpanded};
return D};
_.J(XP,_.c);
XP.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]]"}}}}}};
XP.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
XP.prototype.dataChanged=XP.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XP.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],XP.prototype,"isExpanded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"roundedContainer",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"skipRoundingTop",void 0);_.e([_.Y(),_.n("design:type",Object)],XP.prototype,"toggleExpandableSection",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XP.prototype,"dataChanged",null);_.e([_.m({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],XP);
_.w(XP,"ytd-medical-panel-content-renderer",function(){if(pL$!==void 0)return pL$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return pL$=D},{mode:1});_.HX("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Ag=function(){var D=_.c.apply(this,arguments)||this;D.roundedContainer=!0;D.extractOverlay=!1;D.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");D.hasTitle=!1;D.linkIcon="OPEN_IN_NEW";D.isDismissed=!1;return D};
_.J(Ag,_.c);Ag.prototype.onOverlayConditionsChange=function(){var D=_.ZW(this.hostElement).querySelector("ytd-info-panel-content-renderer");D&&(D.set("extractOverlay",this.extractOverlay),D.set("roundedContainer",this.roundedContainer))};
Ag.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Ag.prototype.computeHasTitle=function(D){return!(D==null||!D.title)};
Ag.prototype.onClick=function(D){var v,h=(v=this.data)==null?void 0:v.headerEndpoint;!_.Gf(_.Pr(D),this.hostElement,["BUTTON".toString()])&&h&&this.ytComponentBehavior.resolveCommand(h)};
_.GT.Object.defineProperties(Ag.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.disableBottomDivider)||!((v=this.data)==null?0:v.title)}}});
Ag.prototype.onOverlayConditionsChange=Ag.prototype.onOverlayConditionsChange;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ag.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Ag.prototype,"ytdReduxBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ag.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ag.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ag.prototype,"extractOverlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ag.prototype,"amsterdamEnabled",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.n("design:type",Object)],Ag.prototype,"hasTitle",void 0);
_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.N("data.background"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ag.prototype,"background",null);_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.N("data.titleStyle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ag.prototype,"titleStyle",null);
_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.N("data.titleStyle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ag.prototype,"showLinkIcon",null);_.e([_.Y(),_.n("design:type",String)],Ag.prototype,"linkIcon",void 0);_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ag.prototype,"hideDivider",null);
_.e([_.Y({selectorArgs:["data.dismissStateEntityKey"],selector:function(D,v){D=_.gR(D.entities,"dismissState",v);return(D==null?void 0:D.isDismissed)||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.n("design:type",Object)],Ag.prototype,"isDismissed",void 0);_.e([_.Ni("roundedContainer","extractOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ag.prototype,"onOverlayConditionsChange",null);_.e([_.m({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Ag);
_.w(Ag,"ytd-info-panel-container-renderer",function(){if(JK$!==void 0)return JK$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return JK$=D},{mode:1});var NZb;_.HX("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var q5=function(){return _.c.apply(this,arguments)||this};
_.J(q5,_.c);q5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
q5.prototype.computeStyle=function(D){return D?D:""};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],q5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.n("design:type",String)],q5.prototype,"titleStyle",void 0);
_.e([_.m({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],q5);
_.Zp()(q5,"ytd-item-section-header-renderer",function(){if(NZb===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);NZb=D}D=NZb;return D},{allowedProps:["data"],
mode:1});var YdF;var BZ9,cKM=function(){return BZ9!==void 0?BZ9:BZ9=document.createElement("template")};
document.head.appendChild(cKM().content);var XLR;_.bw=new _.Uj("VOTING_ANIMATION_CONTROLLER_TOKEN");var qd4=_.H(function(D){var v=D.data;var h=_.va("div"),a=_.va("div");D=_.P(_.Zq("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Q=D.next().value,G=D.next().value,x=_.l7(tFq,function(){var E;return(E=v())==null?void 0:E.entityKey}),f=_.g("web_enable_voting_animation")||_.g("enable_music_web_cairo_voting_animation");
_.jA(function(){var E;((E=v().initialState)==null?0:E.status)&&G(v().initialState.status)});
var C=function(){var E,I,S=(I=(E=v().initialState)==null?void 0:E.votes)!=null?I:0,B;E=(B=v().initialState)==null?void 0:B.status;return E==="VOTE_STATUS_UPVOTED"?S-1:E==="VOTE_STATUS_DOWNVOTED"?S+1:S},U=function(){return Q()==="VOTE_STATUS_UPVOTED"?C()+1:Q()==="VOTE_STATUS_DOWNVOTED"?C()-1:C()},L=function(E){var I=E?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
G(I);var S=U(),B=_.xd().resolve(_.PV(_.bw)),A=x();A&&(E&&(A==null?0:A.upvoteDefaultButtonOnTap)?_.r4(A.upvoteDefaultButtonOnTap,{form:{element:h.value},disableClickTracking:!0}):(A==null?0:A.upvoteToggledButtonOnTap)&&_.r4(A.upvoteToggledButtonOnTap,{form:{element:h.value},disableClickTracking:!0}));var d;E=(d=A==null?void 0:A.enableOptimisticReordering)!=null?d:v().enableOptimisticReordering;f&&B&&v().itemId&&E&&AKJ(B,v().itemId,S,I)},Z=function(E){var I=E?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
G(I);var S=U(),B=_.xd().resolve(_.PV(_.bw)),A=x();A&&(E&&(A==null?0:A.downvoteDefaultButtonOnTap)?_.r4(A.downvoteDefaultButtonOnTap,{form:{element:a.value},disableClickTracking:!0}):(A==null?0:A.downvoteToggledButtonOnTap)&&_.r4(A.downvoteToggledButtonOnTap,{form:{element:a.value},disableClickTracking:!0}));var d;E=(d=A==null?void 0:A.enableOptimisticReordering)!=null?d:v().enableOptimisticReordering;f&&B&&v().itemId&&E&&AKJ(B,v().itemId,S,I)};
D={};D=_.S3("ytVotingViewModelVoteCount",(D.ytVotingViewModelVoteCountDisabled=function(){return v().isDisabled},D));
return _.F("voting-view-model",{class:"ytVotingViewModelHost"},_.F("div",{el:h},_.F(_.c4,{data:function(){var E=_.k(v().upvoteButton,_.oA);return{toggleButtonViewModel:Object.assign({},E,{isToggled:Q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(E){return _.F(_.$$,{data:E.data,
onToggle:L})}})),_.F("div",{class:D},function(){var E,I,S;
return Q()==="VOTE_STATUS_UPVOTED"?(E=v().initialState)==null?void 0:E.compactVotesUpvoted:Q()==="VOTE_STATUS_DOWNVOTED"?(I=v().initialState)==null?void 0:I.compactVotesDownvoted:(S=v().initialState)==null?void 0:S.compactVotes}),_.F("div",{el:a},_.F(_.c4,{data:function(){var E=_.k(v().downvoteButton,_.oA);
return{toggleButtonViewModel:Object.assign({},E,{isToggled:Q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(E){return _.F(_.$$,{data:E.data,
onToggle:Z})}})))},"Jc");_.zh(_.H(function(D){var v=D.data;return _.F("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.F("div",{class:_.S3("ytEngagementBarViewModelEngagementBarWrapper",D.className)},_.F(_.c4,{data:function(){return v().actions}},{votingViewModel:qd4})))},"Kc"),"engagement-bar-view-model",{props:{data:_.gj,
className:_.gj}});var dX=function(){var D=_.c.apply(this,arguments)||this;D.playlistVotingAnimationEnabled=_.g("web_enable_voting_animation");D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;return D};
_.J(dX,_.c);_.V=dX.prototype;_.V.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"}}}};
_.V.canReorderChanged=function(){this.persistentDragHandle=_.g("kevlar_playlist_drag_handles")&&this.canReorder};
_.V.onDrag=function(){if(this.thumbnail){var D=_.ZW(this.thumbnail).querySelector("yt-image");D&&(D.shouldRenderLazy=!1)}};
_.V.onMenuOverlayChanged=function(D,v){this.menuOpened=v};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.V.onContentsTap=function(D){var v,h=(v=this.data)==null?void 0:v.serviceEndpoints;if(h&&h.length===1&&_.k(h[0],$Rc)&&!_.Gf(_.Pr(D),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(h[0]);else{var a;(v=(a=this.data)==null?void 0:a.navigationEndpoint)&&_.g("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?bcR(_.xd().resolve(_.Ok),v):(_.eh().playlistSuggestionsShelfActivation=
!0,_.dQm(_.xd().resolve(_.Ok),v)):v&&!_.Gf(_.Pr(D),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.g("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.F1(this.hostElement,"yt-navigate",{endpoint:v}):this.ytComponentBehavior.resolveCommand(v))}};
_.V.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(D){return D==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.V.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=Ek7(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))}};
_.V.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.dataChanged=function(){if(this.data){var D,v,h,a=((D=this.downloadRenderData)==null?void 0:D.badges)&&((v=this.downloadRenderData)==null?void 0:v.badges)!==((h=this.data)==null?void 0:h.badges),Q,G,x;D=((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)&&((G=this.downloadRenderData)==null?void 0:G.thumbnailOverlays)!==((x=this.data)==null?void 0:x.thumbnailOverlays);(!this.downloadRenderData||a||D)&&this.downloadStateChanged()}};
_.V.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var D,v,h=(D=this.data.menu)==null?void 0:(v=D.menuRenderer)==null?void 0:v.items;if(h)for(D=_.P(h),v=D.next();!v.done;v=D.next())if(v=v.value,h=void 0,_.k((h=v.menuServiceItemRenderer)==null?void 0:h.serviceEndpoint,_.$G)){var a=h=void 0,Q=void 0;v=(h=v)==null?void 0:(a=h.menuServiceItemRenderer)==null?void 0:(Q=a.serviceEndpoint)==null?void 0:Q.playlistEditEndpoint;Q=a=void 0;if(h=(a=v)==null?void 0:(Q=a.actions)==null?void 0:
Q[0])a=void 0,h.setVideoId=(a=this.data)==null?void 0:a.setVideoId;Q=a=h=void 0;if(v=(h=v)==null?void 0:(a=h.clientActions)==null?void 0:(Q=a[0])==null?void 0:Q.playlistRemoveVideosAction)h=void 0,v.setVideoIds=[(h=this.data)==null?void 0:h.setVideoId]}}};
_.GT.Object.defineProperties(dX.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
dX.prototype.setVideoIdChanged=dX.prototype.setVideoIdChanged;dX.prototype.dataChanged=dX.prototype.dataChanged;dX.prototype.downloadStateChanged=dX.prototype.downloadStateChanged;dX.prototype.onMenuOverlayChanged=dX.prototype.onMenuOverlayChanged;dX.prototype.canReorderChanged=dX.prototype.canReorderChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],dX.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],dX.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],dX.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dX.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],dX.prototype,"canReorder",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],dX.prototype,"menuOpened",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],dX.prototype,"handleIsHovered",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],dX.prototype,"persistentDragHandle",void 0);_.e([_.Y(),_.n("design:type",Object)],dX.prototype,"downloadRenderData",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],dX.prototype,"styleType",void 0);_.e([_.Y({computed:"computeThumbnailWidth(data.style)"}),_.n("design:type",Number)],dX.prototype,"thumbnailWidth",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],dX.prototype,"isDownloads",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],dX.prototype,"playlistVotingAnimationEnabled",void 0);
_.e([_.Y({selector:RG,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],dX.prototype,"downloadProgress",void 0);_.e([_.Y(),_.n("design:type",Number)],dX.prototype,"relativeDateReference",void 0);_.e([_.Y({selector:_.KG,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],dX.prototype,"transferState",void 0);_.e([_.Y({selector:myi,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],dX.prototype,"downloadState",void 0);
_.e([_.Y({selector:SHr,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],dX.prototype,"offlinePolicyAction",void 0);_.e([_.Y({selector:JUi,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],dX.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.e([_.Y({selector:lLf,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],dX.prototype,"entityInfo",void 0);_.e([_.Y({selector:_.eq}),_.n("design:type",Boolean)],dX.prototype,"miniplayerIsActive",void 0);
_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],dX.prototype,"playlistVideoId",null);_.e([_.Br("#thumbnail"),_.n("design:type",Object)],dX.prototype,"thumbnail",void 0);_.e([_.qi("canReorder"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dX.prototype,"canReorderChanged",null);
_.e([_.lc("yt-menu-overlay-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Boolean]),_.n("design:returntype")],dX.prototype,"onMenuOverlayChanged",null);_.e([_.qi("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dX.prototype,"downloadStateChanged",null);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dX.prototype,"dataChanged",null);_.e([_.qi("data.setVideoId"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dX.prototype,"setVideoIdChanged",null);_.e([_.m({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],dX);
_.w(dX,"ytd-playlist-video-renderer",function(){if(XLR!==void 0)return XLR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);D.content.insertBefore(cKM().content.cloneNode(!0),D.content.firstChild);return XLR=D},{mode:1});var jhM;var jc=function(){return _.c.apply(this,arguments)||this};
_.J(jc,_.c);_.e([_.Y(),_.n("design:type",Object)],jc.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jc.prototype,"rendererBehavior",void 0);_.e([_.m({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],jc);
_.w(jc,"ytd-premium-browse-footer-renderer",function(){if(jhM!==void 0)return jhM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jhM=D},{mode:1});var shm;var sr=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.J(sr,_.c);_.V=sr.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.handleDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.computeHeaderLogoThumbnail=function(D,v){if(D)return v?D.darkLogo:D.lightLogo};
_.V.computeHeaderLogoHeight=function(D,v){var h,a,Q;return(D=(h=this.computeHeaderLogoThumbnail(D,v))==null?void 0:(a=h.thumbnails)==null?void 0:(Q=a[0])==null?void 0:Q.height)&&D%31===0?"31":"24"};
_.V.computeHeaderLogoMarginBottom=function(D,v){return this.computeHeaderLogoHeight(D,v)==="24"?"0":"-7"};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],sr.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],sr.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],sr.prototype,"isDarkTheme",void 0);_.e([_.Y({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.n("design:type",Object)],sr.prototype,"themeLogo",void 0);
_.e([_.Y({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.n("design:type",String)],sr.prototype,"logoHeight",void 0);_.e([_.Y({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.n("design:type",String)],sr.prototype,"logoMarginBottom",void 0);_.e([_.m({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],sr);
_.w(sr,"ytd-primetime-promo-header-renderer",function(){if(shm!==void 0)return shm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return shm=D},{mode:1});var mQR;_.mo=_.H(function(D){var v=D.className;var h=D.data;var a=D.isOverlay;var Q=D.maxLinesOverride;var G=D.useMediumText;var x=function(){return h().alwaysShowTruncationText},f=function(){return h().truncationText},C=function(){return G!==void 0&&G()?"medium":"small"},U=function(){return a!==void 0&&a()?"overlay":"default"},L=function(){var S,B;
return(B=(S=_.k(h().rendererContext,_.BO))==null?void 0:S.label)!=null?B:""};
D=_.P(_.Zq(!1,void 0,"OKr1o"));var Z=D.next().value,E=D.next().value;D=_.Jd(function(){h().expandOnTap&&E(!Z());return!1});
var I={};return _.F("yt-description-preview-view-model",{el:_.ML(_.eb(function(){return h().rendererContext})),
class:_.S3("ytDescriptionPreviewViewModelHost",v,(I.ytDescriptionPreviewViewModelClickable=function(){var S;return!((S=_.k(h().rendererContext,btI))==null||!S.onTap)},I.ytDescriptionPreviewViewModelIsOverlay=a,I)),
"on:click":D},_.F(_.z,{cond:function(){return h().description},
then:function(S){return _.F(_.z,{cond:Z,then:function(){var B={};return _.F("div",{class:_.S3("ytDescriptionPreviewViewModelDescription",(B.ytDescriptionPreviewViewModelDescriptionMediumText=G,B))},_.F(_.IY,{text:S}))},
else:function(){return _.F(OF4,{text:S,alwaysShowTruncationText:x,truncationText:f,maxLines:function(){var B;return(B=Q==null?void 0:Q())!=null?B:h().maxLines},
textStyle:U,accessibilityLabel:L,textSize:C})}})}}))},"Lc");
_.mo.idomCompat=!0;var yK4=_.H(function(D){var v=_.Jd(function(Q){var G;(G=D.onClick)==null||G.call(D,Q)}),h={},a={};
return _.F("yt-shelf-header-layout",{class:_.S3("yt-shelf-header-layout",(h["yt-shelf-header-layout--disable-horizontal-padding"]=D.disableHorizontalPadding,h["yt-shelf-header-layout--disable-vertical-padding"]=D.disableVerticalPadding,h["yt-shelf-header-layout--responsive"]=D.useResponsiveLayout,h["yt-shelf-header-layout--narrow"]=function(){var Q,G;return((Q=D.useResponsiveLayout)==null?void 0:Q.call(D))&&((G=D.forceSmallLayout)==null?void 0:G.call(D))},h["yt-shelf-header-layout--is-overlay"]=D.isOverlay,
h["yt-shelf-header-layout--tappable"]=D.isInteractive,h)),
"on:click":v,tabindex:function(){var Q;return((Q=D.isInteractive)==null?0:Q.call(D))?0:void 0}},_.F("div",{class:"yt-shelf-header-layout__header-row"},_.F(_.z,{cond:D.leadingIcon,
then:function(Q){return _.F("div",{class:"yt-shelf-header-layout__leading-icon"},_.F(_.Y5,{icon:Q}))},
else:function(){return _.F(_.z,{cond:D.hasLeadingImage,then:function(){var Q,G={};return _.F("div",{class:_.S3("yt-shelf-header-layout__leading-image",(G["yt-shelf-header-layout__leading-image--circular-image"]=D.circularImage,G))},(Q=D.leadingImage)==null?void 0:Q.call(D))}})}}),_.F("div",{class:"yt-shelf-header-layout__label-container"},_.F(_.z,{cond:D.hasSuperlabel,
then:function(){var Q;return _.F("div",{class:"yt-shelf-header-layout__superlabel"},(Q=D.superlabel)==null?void 0:Q.call(D))}}),_.F("div",{class:"yt-shelf-header-layout__title-row"},_.F(Hc4,{text:D.title,
className:_.S3("yt-shelf-header-layout__title",(a["yt-shelf-header-layout__title--small-title"]=D.forceSmallLayout,a)),tagLevel:D.tagLevel}),_.F(_.z,{cond:D.hasDetail,then:function(){var Q;return _.F("div",{class:"yt-shelf-header-layout__detail"},(Q=D.detail)==null?void 0:Q.call(D))}})),_.F(_.z,{cond:D.hasSublabel,
then:function(){var Q;return _.F("div",{class:"yt-shelf-header-layout__sublabel"},(Q=D.sublabel)==null?void 0:Q.call(D))}})),_.F(_.z,{cond:D.hasTrailingActions,
then:function(){var Q;return _.F("div",{class:"yt-shelf-header-layout__trailing-actions"},(Q=D.trailingActions)==null?void 0:Q.call(D))}})),_.F(_.z,{cond:D.hasBottomAccessory,
then:function(){var Q;return(Q=D.bottomAccessory)==null?void 0:Q.call(D)}}))},"Mc");
yK4.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var Hc4=_.H(function(D){var v=D.text;var h=D.className;var a=D.tagLevel;return _.F(_.A$,null,_.F(_.Bv,{when:function(){return(a==null?void 0:a())===0}},function(){return _.F("h2",{class:h},v())}),_.F(_.Bv,{when:function(){return(a==null?void 0:a())===1}},function(){return _.F("h3",{class:h},v())}),_.F(_.Bv,{when:function(){return(a==null?void 0:a())===2}},function(){return _.F("h4",{class:h},v())}),_.F(_.cv,null,function(){return _.F("h2",{class:h},v())}))},"Nc");var nlJ,wLt,eGs;_.HS=_.H(function(D){var v=D.className;var h=D.data;var a=D.disableHorizontalPadding;var Q=D.disableVerticalPadding;var G=D.forceSmallLayout;var x=D.useResponsiveLayout;D=D.isOverlay;return _.F("yt-section-header-view-model",{class:_.S3("ytSectionHeaderViewModelHost",v),style:_.NL({"background-color":function(){return pS(h().backgroundColor)?_.uu(pS(h().backgroundColor)):void 0}})},_.F(yK4,{hasDetail:!1,
title:function(){return _.F(_.IY,{text:function(){return h().headline}})},
hasTitle:!0,sublabel:function(){return _.F(wLt,{data:h})},
hasSublabel:function(){return!!h().sublabel||!!h().bottomBadge},
superlabel:function(){return _.F(eGs,{data:h})},
hasSuperlabel:function(){return!!h().superlabel||!!h().topBadge},
leadingImage:function(){return _.F(nlJ,{leadingAccessory:function(){return h().leadingAccessory}})},
hasLeadingImage:function(){return!!h().leadingAccessory},
trailingActions:function(){return _.F(_.c4,{data:function(){return h().trailingActions}},{flexibleActionsViewModel:_.V8})},
hasTrailingActions:function(){return!!h().trailingActions},
disableHorizontalPadding:a,disableVerticalPadding:Q,forceSmallLayout:G,useResponsiveLayout:x,isOverlay:D,isInteractive:function(){return!!_.yL(h().rendererContext)},
onClick:function(f){if(_.wp(h().rendererContext)){var C=_.yL(h().rendererContext);C&&_.iP(C,{form:{element:f.target,event:f}})}},
bottomAccessory:function(){return _.F(_.c4,{data:function(){return h().bottomAccessory}},{descriptionPreviewViewModel:_.mo})},
hasBottomAccessory:function(){return!!h().bottomAccessory}}))},"Oc");
nlJ=_.H(function(D){var v=D.leadingAccessory;return _.F(_.xf,null,_.F(_.z,{cond:function(){var h;return(h=v().image)!=null?h:_.i7(v().themedImage)},
then:function(h){return _.F(_.PX,{data:h,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.F(_.z,{cond:function(){return _.k(v().avatar,_.nj)},
then:function(h){return _.F(_.Q2,{data:h})}}))},"Pc");
wLt=_.H(function(D){var v=D.data;return _.F(_.xf,null,_.F(_.z,{cond:function(){return _.k(v().bottomBadge,Oe1)},
then:function(h){var a={};return _.F(_.c$,{data:h,class:_.S3((a.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!h()&&!!v().sublabel},a))})}}),_.F(_.z,{cond:function(){return v().sublabel},
then:function(h){return _.F(_.IY,{text:h})}}))},"Qc");
eGs=_.H(function(D){var v=D.data;return _.F(_.xf,null,_.F(_.z,{cond:function(){return _.k(v().topBadge,Oe1)},
then:function(h){var a={};return _.F(_.c$,{data:h,class:_.S3((a.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!h()&&!!v().superlabel},a))})}}),_.F(_.z,{cond:function(){return v().superlabel},
then:function(h){return _.F(_.IY,{text:h})}}))},"Rc");_.zh(_.HS,"yt-section-header-view-model",{props:{data:_.gj,className:_.gj,disableHorizontalPadding:_.gj,disableVerticalPadding:_.gj,forceSmallLayout:_.gj,useResponsiveLayout:_.gj,isOverlay:_.gj}});_.HX("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var yY=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.J(yY,_.c);_.V=yY.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.onDataChange=function(){var D=this;_.$R(this,function(){D.updateItemVisibility()})};
_.V.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D,this.updateItemVisibility())};
_.V.updateItemVisibility=function(){var D=this;this.data&&this.data.panels&&_.ZW(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(v,h){v.hidden=h>D.elementsPerRow-1})};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
yY.prototype.onDataChange=yY.prototype.onDataChange;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],yY.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],yY.prototype,"actionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],yY.prototype,"data",void 0);_.e([_.Y({value:3}),_.n("design:type",Number)],yY.prototype,"elementsPerRow",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yY.prototype,"onDataChange",null);_.e([_.m({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],yY);
_.w(yY,"ytd-primetime-promo-renderer",function(){if(mQR!==void 0)return mQR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return mQR=D},{mode:1});var Ocy;var wX=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return D};
_.J(wX,_.c);wX.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
wX.prototype.handleButtonRefreshAction=function(D){if(D=_.k(D,LF1))this.set("data.button",D.membershipButton),this.notifyPath("data.button")};
_.GT.Object.defineProperties(wX.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.avatars)==null?void 0:v.slice(0,8))||[]}}});
_.e([_.Y(),_.n("design:type",Object)],wX.prototype,"data",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],wX.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wX.prototype,"rendererBehavior",void 0);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],wX.prototype,"avatars",null);
_.e([_.m({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],wX);
_.w(wX,"ytd-recognition-shelf-renderer",function(){if(Ocy!==void 0)return Ocy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Ocy=D},{mode:1});var KLm;var TZ$;var ec=function(){var D=_.c.apply(this,arguments)||this;D.modernButtons=_.g("web_modern_buttons");return D};
_.J(ec,_.c);_.V=ec.prototype;
_.V.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]]"}}}}}};
_.V.dataChanged=function(){this.collapsed=!0};
_.V.computeVisibleItems=function(D,v){return D!==void 0&&D.items?v?D.items.slice(0,this.data.collapsedItemCount):D.items:[]};
_.V.computeHideShowMore=function(D,v,h){return D>=v||!h};
_.V.computeHideShowAll=function(D,v,h){return!(D&&v)||h};
_.V.onMoreClick=function(){this.collapsed=!1};
_.GT.Object.defineProperties(ec.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.g("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.FH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.g("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
ec.prototype.dataChanged=ec.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ec.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],ec.prototype,"isSearch",void 0);
_.e([_.Y({computed:"computeVisibleItems(data,collapsed)"}),_.n("design:type",Array)],ec.prototype,"visibleItems",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],ec.prototype,"collapsed",void 0);_.e([_.Y({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.n("design:type",Boolean)],ec.prototype,"hideShowMore",void 0);
_.e([_.Y({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.n("design:type",Boolean)],ec.prototype,"hideShowAll",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ec.prototype,"modernButtons",void 0);_.e([_.N("isSearch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ec.prototype,"typographyBump",null);
_.e([_.N("isSearch"),_.n("design:type",Object),_.n("design:paramtypes",[])],ec.prototype,"lockupExperiments",null);_.e([_.N("isSearch"),_.n("design:type",String),_.n("design:paramtypes",[])],ec.prototype,"thumbnailWidth",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ec.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],ec);
_.w(ec,"ytd-vertical-list-renderer",function(){if(TZ$!==void 0)return TZ$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return TZ$=D},{mode:1});var RGt=_.DK(["#"]);_.HX("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var n2=function(){var D=_.c.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.J(n2,_.c);_.V=n2.prototype;
_.V.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"}}}};
_.V.computeThumbnailStyle=function(D){return D||""};
_.V.computePlaceAnnotationUnderTitle=function(){var D;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((D=this.data)==null?void 0:D.thumbnailStyle)||"")};
_.V.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.GeL(RGt)};
_.V.computeIsPromoShelf=function(D){var v;return(D=D==null?void 0:(v=D[0])==null?void 0:v.metadataBadgeRenderer)?D.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.V.computePlaceBadgeBesideTitle=function(D){var v;return(D==null?0:(v=D[0])==null?0:v.metadataBadgeRenderer)?!this.computeIsPromoShelf(D):!1};
_.V.computeMenuIcon=function(D){return this.computeIsPromoShelf(D)?"yt-icons:more_vert":"yt-icons:more"};
_.V.onDataChange=function(){var D,v;((D=this.data)==null?0:(v=D.content)==null?0:v.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.V.onLockupRequested=function(D){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&D.detail&&D.detail.videoIds){for(var v=this.data.content.gridRenderer.items,h=new Set,a=_.P(D.detail.videoIds),Q=a.next();!Q.done;Q=a.next())h.add(Q.value);D.detail.returnValue=v.filter(function(G){return G.gridVideoRenderer&&G.gridVideoRenderer.videoId&&h.has(G.gridVideoRenderer.videoId)}).map(function(G){return G.gridVideoRenderer})}};
_.V.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
n2.prototype.onLockupRequested=n2.prototype.onLockupRequested;n2.prototype.onDataChange=n2.prototype.onDataChange;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],n2.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],n2.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],n2.prototype,"ironResizableBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],n2.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],n2.prototype,"isSearch",void 0);_.e([_.Y(),_.n("design:type",Object)],n2.prototype,"isConstrainedList",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("kevlar_fluid_dismiss")}}),
_.n("design:type",Boolean)],n2.prototype,"enableFluidDismiss",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.n("design:type",String)],n2.prototype,"thumbnailStyle",void 0);_.e([_.Y({computed:"computeMenuIcon(data.badges)"}),_.n("design:type",String)],n2.prototype,"menuIcon",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n2.prototype,"onDataChange",null);
_.e([_.lc("yt-lockup-requested"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],n2.prototype,"onLockupRequested",null);_.e([_.m({is:"ytd-shelf-renderer",disableElementRegistration:!0})],n2);
_.w(n2,"ytd-shelf-renderer",function(){if(KLm!==void 0)return KLm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return KLm=D},{mode:1});var icJ;var Or=function(){return _.c.apply(this,arguments)||this};
_.J(Or,_.c);Or.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.GT.Object.defineProperties(Or.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Or.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Or.prototype,"isPlaylist",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Or.prototype,"isClipList",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Or.prototype,"isPlaylistPageWithFilters",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Or.prototype,"hasTitle",null);_.e([_.Y(),_.N("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.n("design:type",Object),_.n("design:paramtypes",[])],Or.prototype,"isRightAligned",null);
_.e([_.m({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Or);
_.w(Or,"ytd-sort-filter-header-renderer",function(){if(icJ!==void 0)return icJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return icJ=D},{mode:1});var WLJ;var K2=function(){var D=_.c.apply(this,arguments)||this;D.enableRightArrowHidden=_.g("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return D};
_.J(K2,_.c);K2.prototype.attached=function(){var D=this;this.enableRightArrowHidden&&(this.JSC$16403_throttledOnResize=new _.tn(function(){var v;(v=D.ytdHorizontalListBehavior)==null||v.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var v;
(v=D.JSC$16403_throttledOnResize)==null||v.fire()}),this.resizeObserver.observe(this.hostElement))};
K2.prototype.detached=function(){if(this.enableRightArrowHidden){var D;(D=this.resizeObserver)==null||D.disconnect();var v;(v=this.JSC$16403_throttledOnResize)==null||v.dispose()}};
K2.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]]"}}}}}};
K2.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.GT.Object.defineProperties(K2.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.g("enable_creator_details_shelf_m2")){var D=[],v;((v=this.data)==null?0:v.creatorVideosButton)&&D.push(this.data.creatorVideosButton);var h;((h=this.data)==null?0:h.creatorAboutButton)&&D.push(this.data.creatorAboutButton);v=_.P(this.data.creatorCustomUrlButtons||[]);for(h=v.next();!h.done;h=v.next())D.push(h.value);return D}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.g("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],K2.prototype,"ytdHorizontalListBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],K2.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],K2.prototype,"engagementPanel",void 0);
_.e([_.Y(),_.n("design:type",Object)],K2.prototype,"enableRightArrowHidden",void 0);_.e([_.N("enableRightArrowHidden","atEnd"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],K2.prototype,"hideRightArrow",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],K2.prototype,"creatorCustomUrlButtons",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data","creatorCustomUrlButtons"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],K2.prototype,"showCreatorCustomUrlButtons",null);_.e([_.N("showCreatorCustomUrlButtons"),_.n("design:type",Number),_.n("design:paramtypes",[])],K2.prototype,"channelAvatarSize",null);_.e([_.m({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],K2);
_.w(K2,"ytd-video-description-infocards-section-renderer",function(){if(WLJ!==void 0)return WLJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return WLJ=D},{mode:_.E_("kevlar_poly_si_batch_j067")?1:2});var twM;var Tt=function(){return _.c.apply(this,arguments)||this};
_.J(Tt,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Tt.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Tt.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.infoIcon)"}),_.n("design:type",Object)],Tt.prototype,"infoIcon",void 0);_.e([_.m({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Tt);
_.w(Tt,"ytd-eom-settings-disclaimer-renderer",function(){if(twM!==void 0)return twM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return twM=D},{mode:1});var rKJ;var RC=function(){return _.c.apply(this,arguments)||this};
_.J(RC,_.c);_.GT.Object.defineProperties(RC.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.suppressPaddingDisclaimer)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],RC.prototype,"componentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],RC.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],RC.prototype,"suppressPaddingDisclaimer",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],RC);
_.w(RC,"ytd-product-list-header-renderer",function(){if(rKJ!==void 0)return rKJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rKJ=D},{mode:1});var uuy;var iw=function(){return _.c.apply(this,arguments)||this};
_.J(iw,_.c);iw.prototype.computeThumbnailStyle=function(D){if(D&&(D=_.rT(D)))return"background-color:"+D+";"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iw.prototype,"rendererBehaviors",void 0);_.e([_.Y(),_.n("design:type",Object)],iw.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],iw);
_.w(iw,"ytd-hashtag-tile-renderer",function(){if(uuy!==void 0)return uuy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uuy=D},{mode:1});var DXp;var WS=function(){return _.c.apply(this,arguments)||this};
_.J(WS,_.c);WS.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],WS.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],WS);
_.w(WS,"ytd-sponsorships-alert-renderer",function(){if(DXp!==void 0)return DXp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DXp=D},{mode:1});var vP$;var tg=function(){return _.c.apply(this,arguments)||this};
_.J(tg,_.c);tg.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.GT.Object.defineProperties(tg.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.e([_.l(_.CC),_.n("design:type",Object)],tg.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],tg.prototype,"ytdLockupBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],tg.prototype,"isGridViewEnabled",void 0);
_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tg.prototype,"watchFeedBigThumbs",null);_.e([_.N("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],tg.prototype,"thumbnailWidth",null);_.e([_.Y(),_.n("design:type",Object)],tg.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],tg);
_.w(tg,"ytd-compact-movie-renderer",function(){if(vP$!==void 0)return vP$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return vP$=D},{mode:1});var hoy;var a74;var $XJ=_.eA("HTML_DIR")==="rtl",rX=function(){var D=_.c.apply(this,arguments)||this;D.engagementPanel=!1;D.maxLines=2;D.expandButtonOffset=0;D.showExpandButton=!1;D.isTruncated=!1;D.isExpanded=!1;D.currentSnippetType=2;D.alwaysShowExpandButton=!1;D.JSC$16420_lastWidth=NaN;D.observer=null;D.left=0;D.right=0;D.mid=0;D.longestSnippetLength=0;D.isFinalSnippet=!1;D.isFirstMutation=!1;D.isResetMutation=!1;D.OVERFLOW_THRESHOLD=5;return D};
_.J(rX,_.c);_.V=rX.prototype;_.V.onClick=function(D){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var v;if((v=window.getSelection())==null||!v.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.V.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.V.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.V.updateTextOnSnippetTypeChange=function(){_.g("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.V.setUpBinarySearch=function(D){D=D*this.maxLines/8;this.left=0;var v,h;this.right=Math.min(D*2,(h=(v=this.simpleText)==null?void 0:v.length)!=null?h:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.V.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.V.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.yR(new _.XH("AttributedSnippet is empty when the description is not empty",this.text))};
_.V.mutationCallback=function(){if(this.observer!=null){var D=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var v=Math.floor(D*this.maxLines/8);this.setSnippetText(this.text,v);v!==0||this.attributedTextIsEmpty()||_.yR(new _.XH("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;D=D*this.maxLines/8;this.left=0;var h;this.right=Math.min(D*2,(h=(v=this.simpleText)==null?void 0:v.length)!=null?h: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)}}};
_.V.mutationObserve=function(D){var v=this;this.observer||(this.observer=new MutationObserver(function(){v.mutationCallback()}));
this.observer.observe(D,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.V.attached=function(){var D=this;_.$R(this,function(){D.resize()})};
_.V.isExpandedChanged=function(){_.F1(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.V.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)};
_.V.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var D="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+(($XJ?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",D);this.snippetContainer.style.setProperty("mask-image",
D)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty($XJ?"right":"left",this.expandButtonOffset+"px")};
_.V.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.V.setSnippetText=function(D,v){D||(D={});if(_.Q0(D)){var h=a3(D,v);h.attachmentRuns||h.commandRuns||h.decorationRuns||h.styleRuns||h.alignment||h.lineBreakMode?this.attributedSnippetTextEl?(_.g("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=a3(D,v),this.attributedSnippetTextEl.headerRuns=Nnc(v,this.headerRuns)):this.attributedSnippetText={data:a3(D,v),headerRuns:Nnc(v,this.headerRuns)},this.currentSnippetType=0):_.yR(new _.XH("Tried to set snippet text when HTML element was null",
D)):(this.plainSnippetText.textContent=vX(D.content||"",v),this.currentSnippetType=2)}else{a:{h=rRc(D,v);if(h.runs){h=_.P(h.runs);for(var a=h.next();!a.done;a=h.next())if(a=a.value,a.bold||a.deemphasize||a.italics||a.strikethrough||a.textColor||a.navigationEndpoint||_.k(a,O_)){h=!0;break a}}h=!1}h?this.formattedSnippetText?(this.formattedSnippetText.text=rRc(D,v),this.currentSnippetType=1):_.yR(new _.XH("Tried to set snippet text when HTML element was null",D)):(this.plainSnippetText.textContent=
vX(_.$V(D),v),this.currentSnippetType=2)}};
_.V.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.V.attributedTextIsEmpty=function(){var D=this.text;if(!_.Q0(D))return!0;var v;return((v=D.content)==null?void 0:v.length)===0?!0:!1};
_.V.resize=function(D){if(this.snippetText){if(D===void 0?0:D)this.JSC$16420_lastWidth=NaN;var v=this.hostElement.offsetWidth;if(v!==this.JSC$16420_lastWidth&&!this.isExpanded)if(this.JSC$16420_lastWidth=v,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;D=0;var h,a;v=Math.min(v*this.maxLines/8*2,(a=(h=this.simpleText)==null?void 0:h.length)!=null?a:0)-1;for(h=0;D<=v;)a=Math.floor(D+(v-D)/2),this.setSnippetText(this.text,a),this.isOverflowing()?v=a-1:(D=a+1,h=a);this.setSnippetText(this.text,h);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.V.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.V.onExpandClick=function(){var D=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.g("inline_expander_reset_focus_killswitch")||_.$R(this,function(){var v;((v=_.xd().resolve(_.PV(_.Xw)))==null?0:v.isKeyBoardInUse())&&_.v1(D.hostElement)});
_.F1(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.V.onCollapseClick=function(){this.collapse();_.F1(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.V.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.V.computeExpandButtonOffset=function(){var D=this.expandSizer;return D?$XJ?D.offsetParent?D.offsetParent.offsetWidth-D.offsetWidth-D.offsetLeft:0:D.offsetLeft:0};
_.GT.Object.defineProperties(rX.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Q0(this.text)?this.text.content||"":_.$V(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 _.Q0(this.text)?!0:this.text&&_.g("web_replace_formatted_with_attributed_string")&&uA7(this.text)?(this.text=_.nb(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}}});
rX.prototype.onTextChanged=rX.prototype.onTextChanged;rX.prototype.updateMaskAndExpandButtonOffset=rX.prototype.updateMaskAndExpandButtonOffset;rX.prototype.updateSnippetContainerMaxHeight=rX.prototype.updateSnippetContainerMaxHeight;rX.prototype.isExpandedChanged=rX.prototype.isExpandedChanged;rX.prototype.updateTextOnSnippetTypeChange=rX.prototype.updateTextOnSnippetTypeChange;rX.prototype.updateIsFormattedExpanded=rX.prototype.updateIsFormattedExpanded;rX.prototype.updateIsAttributedExpanded=rX.prototype.updateIsAttributedExpanded;
rX.prototype.onClick=rX.prototype.onClick;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],rX.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"text",void 0);_.e([_.Y(),_.n("design:type",Array)],rX.prototype,"headerRuns",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rX.prototype,"engagementPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"maxLines",void 0);
_.e([_.Y(),_.n("design:type",String)],rX.prototype,"expandLabel",void 0);_.e([_.Y(),_.n("design:type",String)],rX.prototype,"collapseLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"expandCommand",void 0);_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"expandButtonOffset",void 0);_.e([_.N("text"),_.n("design:type",String),_.n("design:paramtypes",[])],rX.prototype,"simpleText",null);
_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],rX.prototype,"onClick",null);_.e([_.N("text","isExpanded"),_.n("design:type",Object),_.n("design:paramtypes",[])],rX.prototype,"expandedText",null);_.e([_.N("headerRuns","isExpanded"),_.n("design:type",Object),_.n("design:paramtypes",[])],rX.prototype,"expandedHeaderRuns",null);
_.e([_.N("text"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rX.prototype,"hasAttributedStringText",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rX.prototype,"showExpandButton",void 0);_.e([_.N("collapseLabel","isExpanded"),_.n("design:type",Object),_.n("design:paramtypes",[])],rX.prototype,"showCollapseButton",null);_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"isTruncated",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rX.prototype,"isExpanded",void 0);_.e([_.Y(),_.n("design:type",Boolean)],rX.prototype,"isAttributedExpanded",void 0);_.e([_.Ni("isExpanded","hasAttributedStringText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"updateIsAttributedExpanded",null);_.e([_.Y(),_.n("design:type",Boolean)],rX.prototype,"isFormattedExpanded",void 0);
_.e([_.Ni("isExpanded","hasAttributedStringText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"updateIsFormattedExpanded",null);_.e([_.Y(),_.n("design:type",Number)],rX.prototype,"currentSnippetType",void 0);_.e([_.N("currentSnippetType"),_.n("design:type",Object),_.n("design:paramtypes",[])],rX.prototype,"useAttributedSnippet",null);
_.e([_.N("currentSnippetType"),_.n("design:type",Object),_.n("design:paramtypes",[])],rX.prototype,"useFormattedSnippet",null);_.e([_.N("currentSnippetType"),_.n("design:type",Object),_.n("design:paramtypes",[])],rX.prototype,"usePlainSnippet",null);_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"alwaysShowExpandButton",void 0);_.e([_.Ni("currentSnippetType"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"updateTextOnSnippetTypeChange",null);
_.e([_.Y(),_.n("design:type",Object)],rX.prototype,"attributedSnippetText",void 0);_.e([_.Br("#snippet"),_.n("design:type",HTMLElement)],rX.prototype,"snippetContainer",void 0);_.e([_.Br("#snippet-text"),_.n("design:type",HTMLElement)],rX.prototype,"snippetText",void 0);_.e([_.Br("#plain-snippet-text"),_.n("design:type",HTMLElement)],rX.prototype,"plainSnippetText",void 0);_.e([_.Br("#formatted-snippet-text"),_.n("design:type",Object)],rX.prototype,"formattedSnippetText",void 0);
_.e([_.Br("#attributed-snippet-text"),_.n("design:type",Object)],rX.prototype,"attributedSnippetTextEl",void 0);_.e([_.Br("#expand"),_.n("design:type",HTMLElement)],rX.prototype,"expandButton",void 0);_.e([_.Br("#expand-sizer"),_.n("design:type",HTMLElement)],rX.prototype,"expandSizer",void 0);_.e([_.qi("isExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"isExpandedChanged",null);
_.e([_.Ni("isExpanded","maxLines"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"updateSnippetContainerMaxHeight",null);_.e([_.Ni("isTruncated","showExpandButton","expandButtonOffset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"updateMaskAndExpandButtonOffset",null);
_.e([_.qi("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rX.prototype,"onTextChanged",null);_.e([_.m({is:"ytd-text-inline-expander",disableElementRegistration:!0})],rX);
_.w(rX,"ytd-text-inline-expander",function(){if(a74===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);a74=D}D=a74;return D},{mode:2});var uw=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return D};
_.J(uw,_.c);uw.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
uw.prototype.handleUpdateDescriptionAction=function(D){if(D=_.k(D,_.Lp$))if(D.attributedDescription)this.set("data.attributedDescriptionBodyText",D.attributedDescription);else if(D.description){var v;((v=this.data)==null?0:v.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.nb(D.description)):this.set("data.descriptionBodyText",D.description)}};
_.GT.Object.defineProperties(uw.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.attributedDescriptionBodyText)||!((v=this.data)==null||!v.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.collapsedLineCount){var v;return(v=this.data)==null?void 0:v.collapsedLineCount}D=_.oZ("web_watch_description_collapsed_default_lines",12);if(_.g("ww_desc_line_page_size_ks"))return D;v=Math.round(_.XT().height*_.oZ("web_watch_description_screen_height_percentage",.5)/20);return Math.max(v,D)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return(h=(D=this.data)==null?void 0:D.descriptionBodyText)!=null?h:(v=this.data)==null?void 0:v.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.sourceAttributions}}});
uw.prototype.panelContentVisibleChanged=uw.prototype.panelContentVisibleChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],uw.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],uw.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uw.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],uw.prototype,"panelContentVisible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],uw.prototype,"engagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],uw.prototype,"shortsPanel",void 0);_.e([_.Br("#inline-expander"),_.n("design:type",Object)],uw.prototype,"inlineExpander",void 0);
_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uw.prototype,"panelContentVisibleChanged",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],uw.prototype,"hasDescriptionText",null);_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],uw.prototype,"collapsedLines",null);
_.e([_.N("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.n("design:type",Object),_.n("design:paramtypes",[])],uw.prototype,"descriptionText",null);_.e([_.N("data","data.headerRuns"),_.n("design:type",Object),_.n("design:paramtypes",[])],uw.prototype,"headerRuns",null);_.e([_.N("data","data.sourceAttributions"),_.n("design:type",Object),_.n("design:paramtypes",[])],uw.prototype,"sourceAttributions",null);
_.e([_.m({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],uw);
_.w(uw,"ytd-expandable-video-description-body-renderer",function(){if(hoy!==void 0)return hoy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return hoy=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var Q7p;var G1R=_.H(function(D){var v=D.data;return _.F("factoid-renderer",{class:"ytwFactoidRendererHost"},_.F("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return v().accessibilityText}},_.F("span",{class:"ytwFactoidRendererValue"},_.F(_.IY,{text:function(){return v().value}})),_.F("span",{class:"ytwFactoidRendererLabel"},_.F(_.IY,{text:function(){return v().label}}))))},"Sc");_.zh(G1R,"factoid-renderer",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;return _.F("upload-time-factoid-renderer",null,_.F(_.c4,{data:function(){return v().factoid}},{factoidRenderer:G1R}))},"Tc"),"upload-time-factoid-renderer",{props:{data:_.C_}});_.zh(_.H(function(D){var v=D.data;return _.F("view-count-factoid-renderer",null,_.F(_.c4,{data:function(){return v().factoid}},{factoidRenderer:G1R}))},"Uc"),"view-count-factoid-renderer",{props:{data:_.C_}});var D_=function(){var D=_.c.apply(this,arguments)||this;D.shortsPanel=!1;D.engagementPanel=!1;D.watchWhileSdp=_.g("shorts_desktop_watch_while_sdp");return D};
_.J(D_,_.c);D_.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"}}}}};
_.GT.Object.defineProperties(D_.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var D;return(D=this.data)==null?void 0:D.channel}}});
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],D_.prototype,"componentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],D_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D_.prototype,"shortsPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D_.prototype,"engagementPanel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D_.prototype,"watchWhileSdp",void 0);_.e([_.N("shortsPanel","engagementPanel","data.channel"),_.n("design:type",Object),_.n("design:paramtypes",[])],D_.prototype,"showChannelInfo",null);_.e([_.m({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],D_);
_.w(D_,"ytd-video-description-header-renderer",function(){if(Q7p!==void 0)return Q7p;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Q7p=D},{mode:1});var VHs;var ve=function(){return _.c.apply(this,arguments)||this};
_.J(ve,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ve.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ve.prototype,"noPadding",void 0);_.e([_.Y(),_.n("design:type",Object)],ve.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],ve);
_.w(ve,"ytd-list-item-view-model",function(){if(VHs!==void 0)return VHs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return VHs=D},{mode:1});var PCp;var xX4;var MHm;var f7s;var hv=function(){var D=_.c.apply(this,arguments)||this;D.adaptiveFullWidth=!1;D.modernButtons=_.g("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return D};
_.J(hv,_.c);hv.prototype.handleSetTimestamp_=function(D){this.data&&this.data.shortUrl&&(_.ZW(this.hostElement).querySelector("#share-url").value=D.isSet?_.hJ(this.data.shortUrl,"t",D.timestamp):this.data.shortUrl)};
hv.prototype.handleSignalActionCopyShareUrl_=function(D,v){(_.g("killswitch_copy_link_target_check")||_.ZW(this.hostElement).querySelector("#copy-button")===v)&&this.copyUrlToClipboard()};
hv.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ZW(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
hv.prototype.computeStyle_=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],hv.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hv.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.n("design:type",String)],hv.prototype,"rendererStyle",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],hv.prototype,"adaptiveFullWidth",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],hv.prototype,"modernButtons",void 0);_.e([_.Y(),_.n("design:type",Object)],hv.prototype,"buttonOverrides",void 0);_.e([_.Ry({is:"yt-copy-link-renderer",disableElementRegistration:!0})],hv);
_.w(hv,"yt-copy-link-renderer",function(){if(f7s===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;MHm===void 0&&(MHm=document.createElement("template"));var a=MHm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);f7s=D}D=f7s;return D},{mode:2});_.HX("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var aD=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return D};
_.J(aD,_.c);_.V=aD.prototype;_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var D=_.xd().resolve(_.PV(_.Xw));D&&(this.keyboardFocused=D.isKeyBoardInUse())}};
_.V.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.V.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}};
_.V.onChange_=function(){if(this.data){var D=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;D&&this.ytComponentBehavior.resolveCommand(D);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.V.handleUpdateToggleAction_=function(D){(D=_.k(D,w9$))&&this.data&&D.targetId==this.data.targetId&&this.set("data.toggled",D.toggled)};
_.V.toBoolean_=function(D){return!!D};
_.V.reset=function(){};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("data-changed",this.data))};
_.V.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
aD.prototype.dataChangedForBinding=aD.prototype.dataChangedForBinding;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],aD.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],aD.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],aD.prototype,"data",void 0);_.e([_.Y({computed:"computeDescription_(data.*)"}),_.n("design:type",Object)],aD.prototype,"description_",void 0);_.e([_.Y({value:function(){return!!_.xd().resolve(_.PV(_.Xw))&&_.g("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.n("design:type",Boolean)],aD.prototype,"useKeyboardFocused",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],aD.prototype,"keyboardFocused",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aD.prototype,"dataChangedForBinding",null);_.e([_.Ry({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],aD);
_.w(aD,"yt-toggle-form-field-renderer",function(){if(xX4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;PCp===void 0&&(PCp=document.createElement("template"));var a=PCp;h.call(v,a.content.cloneNode(!0),D.content.firstChild);xX4=D}D=xX4;return D},{mode:2});var CCM;var oP$;var $D=function(){var D=_.c.apply(this,arguments)||this;D.isDarkTheme=!1;D.isSearch=!1;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.noTopMargin=_.g("kevlar_watch_no_top_margin");D.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J($D,_.c);_.V=$D.prototype;_.V.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}}}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.V.dataChanged=function(){var D=this.getSelectedIndex();if(D>0)this.selected=D;else{this.selected=0;var v,h;(v=this.ytScrollableChipCloudBehavior)==null||(h=v.reset)==null||h.call(v)}};
_.V.getSelectedIndex=function(){var D;if((D=this.data)==null||!D.chips)return-1;D=-1;for(var v,h=0;h<((v=this.data)==null?void 0:v.chips.length);h++){var a=void 0,Q=void 0;if((a=this.data)==null?0:(Q=a.chips[h].chipCloudChipRenderer)==null?0:Q.isSelected){D=h;break}}return D};
_.V.onResize=function(){var D=this.ytScrollableChipCloudBehavior;_.$R(D,D.setContainerWidthDiff);D=this.ytScrollableChipCloudBehavior;_.$R(D,D.setButtonsState)};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.handleRelatedChipCommand=function(D,v){D=this.JSC$16447_chipsSelector.indexOf(v);D!==-1&&this.JSC$16447_chipsSelector.selectIndex(D)};
_.V.handleChipCloudChipSelectAction=function(D){D=this.JSC$16447_chipsSelector.indexOf(D);D>-1&&this.JSC$16447_chipsSelector.selectIndex(D)};
_.V.handleChipCloudChipDeselectAction=function(){var D=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16447_chipsSelector&&((D==null?0:D.continuationCommand)?_.L1(this.hostElement,[D]):(D==null?0:D.searchEndpoint)?this.ytComponentBehavior.resolveCommand(D):D&&_.ZD(this.hostElement,[D],this.hostElement),this.JSC$16447_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.V.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
$D.prototype.onResize=$D.prototype.onResize;$D.prototype.dataChanged=$D.prototype.dataChanged;$D.prototype.isSearchChanged=$D.prototype.isSearchChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],$D.prototype,"actionHandlerBehavior",void 0);
_.e([_.l(_.iN),_.n("design:type",Object)],$D.prototype,"ironResizableBehavior",void 0);_.e([_.l(),_.n("design:type",HH)],$D.prototype,"ytScrollableChipCloudBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],$D.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$D.prototype,"data",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],$D.prototype,"selected",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$D.prototype,"isDarkTheme",void 0);_.e([_.Y({value:160}),_.n("design:type",Number)],$D.prototype,"scrollDistance",void 0);_.e([_.Y(),_.n("design:type",Object)],$D.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$D.prototype,"darkerDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$D.prototype,"noTopMargin",void 0);
_.e([_.Br("#chips"),_.n("design:type",Object)],$D.prototype,"JSC$16447_chipsSelector",void 0);_.e([_.Ni("isSearch"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$D.prototype,"isSearchChanged",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$D.prototype,"dataChanged",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$D.prototype,"onResize",null);
_.e([_.Ry({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],$D);
_.w($D,"yt-chip-cloud-renderer",function(){if(oP$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;CCM===void 0&&(CCM=document.createElement("template"));var a=CCM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);oP$=D}D=oP$;return D},{mode:2});var FXp,zot=function(){return FXp!==void 0?FXp:FXp=document.createElement("template")};
document.head.appendChild(zot().content);var UXm;var LXJ=document.head,ZQ4=LXJ.appendChild,EP4;if(UXm===void 0){var I7p=document.createElement("template");_.p(I7p,"");I7p.content.insertBefore(zot().content.cloneNode(!0),I7p.content.firstChild);UXm=I7p}EP4=UXm;ZQ4.call(LXJ,EP4.content);var gPs=_.H(function(D){var v=D.data;return _.F("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.F("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.F("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.F(_.z,{cond:function(){return _.i7(v().image)},
then:function(h){return _.F("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.F(_.PX,{data:h,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.F("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.F(_.IY,{text:function(){return v().subtitle}})))),_.F(_.z,{cond:function(){var h;
return(h=v())==null?void 0:h.hasBottomDivider},
then:function(){return _.F("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Vc");var k1b=_.H(function(D){var v=D.data;return _.F("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.F(_.c4,{data:function(){var h;return(h=v().offerPlanDetailsItem)!=null?h:[]}},{offerPlanDetailsItemViewModel:function(h){return _.F("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.F(gPs,{data:h.data}))}})),_.F("div",null,_.F(_.z,{cond:function(){return v().hasBottomDivider},
then:function(){return _.F("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.F("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.F("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Wc");var SbJ=_.H(function(D){var v=D.data;D=_.P(_.Zq(!1,void 0,"MrXxy"));var h=D.next().value,a=D.next().value,Q=_.Jd(function(){a(!h());return!1}),G=function(){var x;
return(x=v().offerPlanDetailsContainer)!=null?x:[]};
return _.F("lp-complex-offer-card-details-view-model",null,_.F("div",null,_.F(_.z,{cond:function(){return h()},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.F("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Q,"aria-expanded":h},_.F(_.IY,{text:function(){return v().expandedTitle}})),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.F(_.c4,{data:G},{offerPlanDetailsContainerViewModel:function(x){return _.F("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.F(k1b,{data:x.data}))}})),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.F(_.IY,{text:function(){return v().legalText}})))},
else:function(){return _.F("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Q,"aria-expanded":h},_.F(_.IY,{text:function(){return v().collapsedTitle}}),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.F(_.Y5,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Xc");var J4J=_.H(function(D){var v=D.data;return _.F("lp-complex-offer-card-option-view-model",null,_.F("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.F(_.z,{cond:function(){return v().topDividerText},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.F(_.IY,{text:function(){return v().topDividerText}}))))}}),_.F(_.z,{cond:function(){return v().description},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.F(_.IY,{text:function(){return v().description}}))}}),_.F(_.z,{cond:function(){return v().planPricingPrimary},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.F(_.IY,{text:function(){return v().planPricingPrimary}}))}}),_.F(_.z,{cond:function(){return v().planPricingSecondary},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.F(_.IY,{text:function(){return v().planPricingSecondary}}))}}),_.F(_.z,{cond:function(){return v().primaryButton},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.F(_.c4,{data:function(){return v().primaryButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Yc");var pP$=_.H(function(D){var v=D.data;var h=function(){var G;return((G=v())==null?void 0:G.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var a={},Q={};return _.F("ytm-lp-complex-offer-card-view-model",null,_.F("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.F("div",{class:_.S3((D.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=h,D),"ytmLpComplexOfferCardViewModelCardContainer")},_.F(_.z,{cond:function(){var G;return(G=v())==null?void 0:G.bannerText},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.F("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.F(_.IY,{text:function(){return v().bannerText}})))}}),_.F(_.z,{cond:function(){return _.i7(v().logo)},
then:function(G){var x={};return _.F("div",{class:_.S3((x.ytmLpComplexOfferCardViewModelLogoAlignLeft=h,x),"ytmLpComplexOfferCardViewModelLogo")},_.F(_.PX,{data:G,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.F("div",{class:_.S3((a.ytmLpComplexOfferCardViewModelTitleAlignLeft=h,a),"ytmLpComplexOfferCardViewModelTitle")},_.F(_.IY,{text:function(){return v().title}})),_.F(_.z,{cond:function(){var G;
return(G=v())==null?void 0:G.subtitle},
then:function(){var G={};return _.F("div",{class:_.S3((G.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=h,G),"ytmLpComplexOfferCardViewModelSubtitle")},_.F(_.IY,{text:function(){return v().subtitle}}))}}),_.F(_.z,{cond:function(){return v().planPricingPrimary},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.F(_.IY,{text:function(){return v().planPricingPrimary}}))}}),_.F(_.z,{cond:function(){return v().planPricingSecondary},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.F(_.IY,{text:function(){return v().planPricingSecondary}}))}}),_.F(_.z,{cond:function(){return v().purchaseButton},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.F(_.c4,{data:function(){return v().purchaseButton}},{buttonViewModel:function(G){return _.F(_.s$,{data:G.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.F(_.z,{cond:function(){var G;
return(G=v())==null?void 0:G.offerOptions},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.F(_.c4,{data:function(){return v().offerOptions}},{lpComplexOfferCardOptionViewModel:J4J}))}}),_.F("div",{class:_.S3((Q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=h,Q),"ytmLpComplexOfferCardViewModelLegalText")},_.F(_.IY,{text:function(){return v().legalText}})),_.F(_.z,{cond:function(){var G;
return(G=v())==null?void 0:G.offerCardDetails},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.F(_.c4,{data:function(){return v().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:SbJ}))}}))))},"Zc");var l7J=_.H(function(D){var v=D.data;var h=function(){var x;return((x=v())==null?void 0:x.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var a={},Q={},G={};return _.F("ytm-lp-complex-offer-card-section-view-model",null,_.F("div",{class:_.S3("ytmLpComplexOfferCardSectionViewModelHost")},_.F("div",{class:_.S3((D.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=h,D),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.F("div",{class:_.S3((a.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=h,a),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.F("h2",{class:_.S3((Q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
h,Q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.F(_.IY,{text:function(){return v().title}}))),_.F(_.z,{cond:function(){var x;
return(x=v())==null?void 0:x.subtitle},
then:function(){var x={},f={};return _.F("div",{class:_.S3((x.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=h,x),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.F("div",{class:_.S3((f.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=h,f),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.F(_.IY,{text:function(){return v().subtitle}})))}}),_.F("div",{class:_.S3((G.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=h,G),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.F(_.c4,{data:function(){var x;
return(x=v().offerPlans)!=null?x:[]}},{lpComplexOfferCardViewModel:function(x){return _.F("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.F(pP$,{data:x.data}))}})))))},"$c");var N54=_.H(function(D){return _.F("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.F("div",{class:"ytLpCouponBannerViewModelIcon"},_.F(_.Y5,{icon:function(){return"price_tag"}})),_.F("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.F("div",{class:"ytLpCouponBannerViewModelContent"},_.F("div",{class:"ytLpCouponBannerViewModelHeading"},_.F(_.IY,{text:function(){var v;
return(v=D.data())==null?void 0:v.title}})),_.F("div",{class:"ytLpCouponBannerViewModelBody"},_.F(_.IY,{text:function(){var v;
return(v=D.data())==null?void 0:v.subtitle}})))))},"ad");
N54.idomCompat=!0;_.QP=jes.getInstance();var Ybp;Ybp=_.H(function(D){return _.F("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":D.shouldAriaHideContent},_.F("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:D.questionId},_.F(_.IY,{text:D.question})))},"bd");
_.B5R=_.H(function(D){var v=D.data;var h=D.themeOverride;D=_.P(_.Zq(!1,void 0,"pNli2b"));var a=D.next().value,Q=D.next().value;D=_.Jd(function(){Q(!a());return!1});
var G=function(){return a()?"EXPAND_LESS":"EXPAND_MORE"},x=("faq-container"+_.iE(_.QP)).toString(),f="faq-question-and-answers-section-question"+_.iE(_.QP),C={},U={};
return _.F("faq-entry-view-model",null,_.F("div",{class:_.S3("ytLpFaqEntryViewModelHost",(C.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return h==null?void 0:h().useDarkTheme},C))},_.F("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":D,role:"button","aria-expanded":a,"aria-labelledby":f.toString(),"tab-index":"0"},_.F(Ybp,{question:function(){return v().question},
questionId:f,shouldAriaHideContent:!0}),_.F(_.z,{cond:function(){return a()!==void 0},
then:function(){return _.F("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.F(_.Y5,{icon:G,ariaHidden:!0}),_.F("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.F("div",{class:_.S3("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(U.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!a()},U))},_.F("div",{id:x},_.F(_.Xd,{each:function(){return v().answers||[]}},function(L){return _.F("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.F(_.IY,
{text:L}))})))))},"cd");
_.B5R.idomCompat=!0;var c4t=_.H(function(D){var v=D.data;var h=D.themeOverride;D={};return _.F("lp-faq-section-view-model",null,_.F("div",{class:_.S3("yt-lp-faq-section-view-model",(D["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return v().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(h==null||!h().useDarkTheme)},D))},_.F("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.F(_.z,{cond:function(){return v().header},
then:function(a){return _.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.F(_.IY,{text:a}))}}),_.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.F(_.c4,{data:function(){return v().faqs}},{faqEntryViewModel:function(a){return _.F(_.B5R,{data:a.data,
themeOverride:h})}})),_.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.F(_.Xd,{each:function(){return v().footers||[]}},function(a){return _.F(_.IY,{text:a})})),_.F(_.z,{cond:function(){return v().legal},
then:function(a){return _.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.F(_.IY,{text:a}))}}))))},"dd");
c4t.idomCompat=!0;var XPb=_.H(function(D){var v=D.data;var h=D.themeOverride;_.jA(function(){var x=v().gtmId;x&&_.vt(x,_.eA("GL",""))});
var a={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var x,f,C;return(C=(x=v().logo)==null?void 0:(f=x.accessibilityData)==null?void 0:f.label)!=null?C:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Q=_.xd().resolve(_.PV(_.$5)),G=function(){return Q&&Q()||(h==null?void 0:h().useDarkTheme)};
return _.F("lp-header-section-view-model",null,_.F("div",{class:function(){var x=v().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",f=v().marginType==="LP_SECTION_MARGIN_TYPE_TOP",C=h==null?void 0:h().useDarkTheme,U=["lp-header-section-view-model"];x&&U.push("lp-header-section-view-model--ptc-layout-type");f&&U.push("lp-header-section-view-model__lp-header-section-margin");C&&U.push("lp-header-section-view-model--premium-force-dark-mode");return U.join(" ")}},_.F(_.z,{cond:function(){return v().logo},
then:function(){return _.F("div",null,_.F(_.z,{cond:G,then:function(){return _.F(_.z,{cond:function(){var x;return(x=v().logo)==null?void 0:x.imageDark},
then:function(x){return _.F(_.PX,Object.assign({},{data:x},a))}})},
else:function(){return _.F(_.z,{cond:function(){var x;return(x=v().logo)==null?void 0:x.imageLight},
then:function(x){return _.F(_.PX,Object.assign({},{data:x},a))}})}}))}}),_.F(_.z,{cond:function(){return v().title},
then:function(x){return _.F("div",{class:"lp-header-section-view-model__lp-header-title"},_.F(_.IY,{text:x}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.F(_.z,{cond:function(){return v().subtitles},
then:function(x){return _.F(_.Xd,{each:x},function(f){return _.F("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.F(_.IY,{text:f}))})}})),_.F(_.z,{cond:function(){return v().additionalInfo},
then:function(x){return _.F("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.F(_.IY,{text:x}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.F(_.z,{cond:function(){return v().primaryButton},
then:function(x){return _.F("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.F(_.c4,{data:x},{buttonViewModel:_.s$}))}}),_.F(_.z,{cond:function(){return v().secondaryButton},
then:function(x){return _.F("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.F(_.c4,{data:x},{buttonViewModel:_.s$}))}})),_.F(_.z,{cond:function(){return v().otherOffersInfo},
then:function(x){return _.F("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.F(_.IY,{text:x}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.F(_.z,{cond:function(){return v().billingInfo},
then:function(x){return _.F(_.Xd,{each:x},function(f){return _.F("div",null,_.F(_.IY,{text:f}))})}}))))},"ed");
XPb.idomCompat=!0;var A4s=_.H(function(D){var v=D.data;var h=_.MK(D.themeOverride,{useDarkTheme:!1});D={};D=_.S3("ytmLpHeadlineSectionViewModelHost",(D.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return h().useDarkTheme},D));
return _.F("lp-headline-section-view-model",null,_.F("div",{class:D},_.F(_.z,{cond:function(){return v().title},
then:function(a){return _.F("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.F(_.IY,{text:a}))}}),_.F(_.z,{cond:function(){return v().subtitle},
then:function(a){return _.F("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.F(_.IY,{text:a}))}})))},"fd");var qb4=_.H(function(D){var v=D.data;var h=D.themeOverride;var a=_.xd().resolve(_.PV(_.$5)),Q=function(){return a&&a()||(h==null?void 0:h().useDarkTheme)},G=function(){var U,L;
var Z=Q()?(U=v().textBackgroundImage)==null?void 0:U.imageDark:(L=v().textBackgroundImage)==null?void 0:L.imageLight;return Wzu((Z==null?void 0:Z.sources)||[])},x=function(){var U,L;
return Q()?(U=v().featureImage)==null?void 0:U.imageDark:(L=v().featureImage)==null?void 0:L.imageLight},f=function(){return v().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},C=function(){var U,L;
return Q()?(U=v().logo)==null?void 0:U.imageDark:(L=v().logo)==null?void 0:L.imageLight};
return _.F("ytm-lp-large-feature-section-view-model",null,_.F("div",{class:function(){var U=v().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",L=v().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",Z=(v().index||0)%2===1,E=h==null?void 0:h().useDarkTheme,I=["yt-lp-large-feature-section-view-model"];U?I.push("yt-lp-large-feature-section-view-model--music-feature-type"):L?I.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):Z||I.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
E&&I.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.F(_.z,{cond:x,
then:function(){return _.F(_.PX,{data:function(){return x()},
alt:function(){var U,L,Z;return(Z=(U=v().featureImage)==null?void 0:(L=U.accessibilityData)==null?void 0:L.label)!=null?Z:""},
contentMode:f})}})),_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var U;return((U=G())==null?0:U.url)?"background-image: url("+_.nz(G().url)+");":""}},_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.F(_.z,{cond:C,
then:function(){return _.F(_.PX,{data:function(){return C()},
alt:function(){var U,L,Z;return(Z=(U=v().logo)==null?void 0:(L=U.accessibilityData)==null?void 0:L.label)!=null?Z:""},
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"})}}),_.F(_.z,{cond:function(){return v().eyebrowText},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.F(_.IY,{text:function(){return v().eyebrowText}}))}}),_.F(_.z,{cond:function(){return v().title},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.F(_.IY,{text:function(){return v().title}}))}}),_.F(_.z,{cond:function(){return v().subtitles},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.F(_.Xd,{each:function(){return v().subtitles||[]}},function(U){return _.F(_.IY,{text:U})}))}})))))},"gd");
qb4.idomCompat=!0;var bQ1=_.H(function(D){return _.F("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.F("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.F(_.Y5,{icon:function(){var v;return(v=D.data())==null?void 0:v.iconType},
className:function(){var v;switch((v=D.data())==null?void 0:v.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 v;return((v=D.data())==null?void 0:v.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.F("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.F(_.IY,{text:function(){var v;
return(v=D.data())==null?void 0:v.text},
className:function(){var v;return((v=D.data())==null?void 0:v.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"hd");var dXM=_.H(function(D){D=_.fb(D,{config:void 0,themeOverride:void 0});var v=D.data,h=D.config,a=D.themeOverride;D={};D=_.S3("ytmLpOfferCardOptionViewModelHost",(D.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var f;return(f=a())==null?void 0:f.useDarkTheme},D));
var Q=_.Jd(function(){var f,C;(f=h())==null||(C=f.handleRadioButtonClick)==null||C.call(f,v());return!1}),G=function(){var f;
return(f=h())==null?void 0:f.shouldDisplayRadioButton},x=function(){var f;
return(f=v().featureListItems)!=null?f:[]};
return _.F("ytm-lp-offer-card-option-view-model",null,_.F("div",{class:D,"on:click":_.Jd(function(){if(G()){var f,C;(f=h())==null||(C=f.handleRadioButtonClick)==null||C.call(f,v())}return!1})},_.F(_.z,{cond:G,
then:function(){return _.F("div",null,_.F("input",{type:"radio","on:click":Q,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var f;return!((f=h())==null||!f.isOptionSelected)}}))}}),_.F("div",null,_.F("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.F(_.IY,{text:function(){return v().eyebrowText}})),_.F("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.F(_.IY,
{text:function(){return v().subtitle}})),_.F(_.z,{cond:function(){return x().length>0},
then:function(){return _.F("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.F(_.c4,{data:x},{lpFeatureListItemViewModel:bQ1}))}}),_.F("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.F(_.IY,{text:function(){return v().description}})))))},"id");
dXM.idomCompat=!0;var j7$=_.H(function(D){var v=D.data;var h=D.themeOverride;D=_.P(_.lL(function(){var G,x=(G=v().offerOptions)==null?void 0:G[0];return _.k(x,Nep)||{}}));
var a=D.next().value,Q=D.next().value;D={};return _.F("ytm-lp-offer-card-view-model",null,_.F("div",{class:_.S3("ytmLpOfferCardViewModelHost",(D.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(h==null||!h().useDarkTheme)},D))},_.F("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.F(_.z,{cond:function(){return v().titleIconType},
then:function(){return _.F("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.F(_.Y5,{icon:function(){var G;return((G=v().titleIconType)==null?void 0:G.toString())||""}}))}}),_.F("div",{class:"ytmLpOfferCardViewModelTitleText"},_.F(_.IY,{text:function(){return v().title}})),_.F(_.c4,{data:function(){return v().titleBadge}},{badgeViewModel:function(G){return _.F("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.F(_.c$,{data:G.data}))}})),_.F("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.F(_.c4,{data:function(){return v().offerOptions}},{lpOfferCardOptionViewModel:function(G){var x=G.data;
return _.F(_.xf,null,_.F("div",{class:"ytmLpOfferCardViewModelDivider"}),_.F(dXM,{data:x,config:function(){var f;return{shouldDisplayRadioButton:(v().offerOptions||[]).length>1,isOptionSelected:x().id===((f=a())==null?void 0:f.id),handleRadioButtonClick:function(C){return void Q(C)}}},
themeOverride:h}))}})),_.F("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.F(_.c4,{data:function(){var G;
return(G=a())==null?void 0:G.purchaseButtonOverride}},{buttonViewModel:_.s$}))))},"jd");
j7$.idomCompat=!0;var s7J=_.H(function(D){var v=D.data;var h=D.themeOverride;D={};D=_.S3("ytmLpOfferCardSectionViewModelHost",(D.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var a;return h==null?void 0:(a=h())==null?void 0:a.useDarkTheme},D));
return _.F("ytm-lp-offer-card-section-view-model",null,_.F("div",{class:D},_.F(_.z,{cond:function(){return v().title!==void 0},
then:function(){return _.F("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.F("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.F(_.IY,{text:function(){return v().title}})),_.F(_.z,{cond:function(){return v().subtitle},
then:function(){return _.F("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.F(_.IY,{text:function(){return v().subtitle}}))}}))}}),_.F("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.F(_.c4,{data:function(){return v().offerCards}},{lpOfferCardViewModel:function(a){return _.F("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.F(j7$,{data:a.data,
themeOverride:h}))}})),_.F(_.z,{cond:function(){return v().footer},
then:function(){return _.F("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.F(_.IY,{text:function(){return v().footer}}))}})))},"kd");var mXy=_.H(function(D){var v=D.data;return _.F("lp-offer-table-cell-content-view-model",null,_.F("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.F(_.A$,null,_.F(_.Bv,{when:function(){return v().title}},function(){return _.F(_.IY,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return v().title}})}),_.F(_.Bv,{when:function(){return v().subTitle}},function(){return _.F(_.IY,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return v().subTitle}})}),_.F(_.Bv,{when:function(){return v().featureDescription}},function(){return _.F(_.IY,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return v().featureDescription}})}),_.F(_.Bv,{when:function(){return v().description}},function(){return _.F(_.IY,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return v().description}})}),_.F(_.Bv,{when:function(){return v().iconType}},function(){return _.F("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.F(_.Y5,{icon:function(){return v().iconType.toString()}}))}),_.F(_.Bv,{when:function(){return v().purchaseButton}},function(){return _.F(_.c4,{data:function(){return v().purchaseButton}},{buttonViewModel:function(h){return _.F("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.F(_.s$,
{data:h.data}))}})}),_.F(_.Bv,{when:function(){return v().note}},function(){return _.F(_.IY,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return v().note}})}),_.F(_.Bv,{when:function(){return v().featureDetail}},function(){return _.F(_.IY,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return v().featureDetail}})}),_.F(_.Bv,{when:function(){return v().badge}},function(){return _.F(_.c4,{data:function(){return v().badge}},{badgeViewModel:_.c$})}))))},"ld");
mXy.idomCompat=!0;var HQF=_.H(function(D){var v=D.data;return _.F("lp-offer-table-cell-view-model",null,_.F("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(v().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;"}}},_.F(_.c4,{data:function(){return v().contents}},{lpOfferTableCellContentViewModel:mXy})))},
"md");
HQF.idomCompat=!0;var y4p=_.H(function(D){var v=D.data;var h=D.lpTableIsFirstRow;var a=D.lpTableIsLastRow;var Q=function(){return(h==null?0:h())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},G=function(){return(h==null?0:h())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(a==null?0:a())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.F("ytm-lp-offer-table-row-view-model",null,_.F("div",{class:"ytLpOfferTableRowViewModelHost"},_.F(_.c4,{data:function(){return v().rowHeaderCell}},{lpOfferTableCellViewModel:function(x){return _.F("div",{class:Q},_.F(HQF,{data:x.data}))}}),_.F(_.c4,{data:function(){return v().contentCells}},{lpOfferTableCellViewModel:function(x){return _.F("div",{class:G},_.F(HQF,{data:x.data}))}})))},"nd");
y4p.idomCompat=!0;var wPJ=_.H(function(D){var v=D.data;var h=D.themeOverride;var a=_.xd().resolve(_.PV(_.$5)),Q=function(){return _.k(v().logo,iOJ)||{}};
D={};return _.F("ytm-lp-offer-table-section-view-model",null,_.F("div",{class:"ytLpOfferTableViewModelHost"},_.F(_.z,{cond:function(){var G,x;return a&&a()||(h==null?0:h().useDarkTheme)?(G=Q())==null?void 0:G.imageDark:(x=Q())==null?void 0:x.imageLight},
then:function(G){return _.F(_.PX,{data:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var x,f,C;return(C=(x=Q())==null?void 0:(f=x.accessibilityData)==null?void 0:f.label)!=null?C:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.F(_.IY,{text:function(){return v().subtitle}})),_.F(_.z,{cond:function(){return v().disclaimers},
then:function(G){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.F(_.Xd,{each:G},function(x){return _.F("div",null,_.F(_.IY,{text:x}))}))}}),_.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.F(_.c4,{data:function(){return v().rows}},{lpOfferTableRowViewModel:function(G,x){return _.F(y4p,{data:G.data,
lpTableIsFirstRow:function(){return x()===0},
lpTableIsLastRow:function(){return x()===v().rows.length-1}})}})),_.F("div",{class:_.S3((D.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return v().hasFooterBackground},D))},_.F(_.z,{cond:function(){return v().footer},
then:function(){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.F(_.IY,{text:function(){return v().footer}}))}}),_.F(_.z,{cond:function(){return v().footerTitle},
then:function(){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.F(_.IY,{text:function(){return v().footerTitle}}))}}),_.F(_.z,{cond:function(){return v().footerDescription},
then:function(){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.F(_.IY,{text:function(){return v().footerDescription}}))}}),_.F(_.z,{cond:function(){return v().footerDescriptions},
then:function(G){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.F(_.Xd,{each:G},function(x){return _.F("div",null,_.F(_.IY,{text:x}))}))}}))))},"od");
wPJ.idomCompat=!0;var eoJ=_.H(function(D){var v=D.data;var h=D.themeOverride;var a=_.xd().resolve(_.PV(_.$5)),Q=function(){var f;return h==null?void 0:(f=h())==null?void 0:f.useDarkTheme},G=function(){var f,C;
return a&&a()||Q()?(f=v().image)==null?void 0:f.imageDark:(C=v().image)==null?void 0:C.imageLight};
D={};D=_.S3("ytmLpSmallFeatureSectionViewModelHost",(D.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Q,D));var x=function(){var f,C,U;return(U=(f=v().image)==null?void 0:(C=f.accessibilityData)==null?void 0:C.label)!=null?U:""};
return _.F("ytm-lp-small-feature-section-view-model",{class:D},_.F(_.z,{cond:function(){return G()&&!nj4},
then:function(){return _.F("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.F(_.PX,{data:function(){return G()},
alt:x,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.F("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.F("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.F(_.z,{cond:function(){return v().title},
then:function(f){return _.F(_.IY,{text:f})}})),_.F("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.F(_.IY,{text:function(){return v().description}}))))},"pd");
eoJ.idomCompat=!0;var nPt=_.H(function(D){var v=D.data;var h=D.themeOverride;D={};return _.F("ytm-lp-small-feature-section-group-view-model",null,_.F("div",{class:_.S3("ytmLpSmallFeatureSectionGroupViewModelHost",(D.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(h==null||!h().useDarkTheme)},D))},_.F("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.F(_.c4,{data:function(){return v().smallFeatures}},{lpSmallFeatureSectionViewModel:function(a){return _.F("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.F(eoJ,{data:a.data,
themeOverride:h}))}}))))},"qd");
nPt.idomCompat=!0;_.zh(_.H(function(D){var v=D.data;var h=function(){return v().forcedTheme==="USER_INTERFACE_THEME_DARK"},a=function(){return v().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Q=function(){var x="",f,C;
var U=_.xd().resolve(_.PV(_.$5));U=h()||(U==null?0:U())?(f=v().themedImageViewModel)==null?void 0:f.imageDark:(C=v().themedImageViewModel)==null?void 0:C.imageLight;(f=Wzu((U==null?void 0:U.sources)||[]))&&f.url&&(x=a()?"background-image: linear-gradient(to bottom, transparent, "+(v().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.nz(f.url)+");":"background-image: url("+_.nz(f.url)+");");return x},G=function(){return{useDarkTheme:h()}};
D={};return _.F("yt-section-group-view-model",null,_.F("div",{class:_.S3("yt-lp-section-group-view-model",(D["yt-lp-section-group-view-model--premium-force-dark-mode"]=h,D["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return v().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D))},_.F(_.z,{cond:function(){return Q().length},
then:function(){var x={};return _.F("div",{class:_.S3("yt-lp-section-group-view-model__bg-image",(x["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=a,x)),style:Q})}}),_.F("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.F(_.c4,{data:function(){return v().sections}},{lpFaqSectionViewModel:function(x){return _.F(c4t,{data:x.data,
themeOverride:G})},
lpHeaderSectionViewModel:function(x){return _.F(XPb,{data:x.data,themeOverride:G})},
lpHeadlineSectionViewModel:function(x){return _.F(A4s,{data:x.data,themeOverride:G})},
lpLargeFeatureSectionViewModel:function(x){return _.F(qb4,{data:x.data,themeOverride:G})},
lpOfferCardSectionViewModel:function(x){return _.F(s7J,{data:x.data,themeOverride:G})},
lpComplexOfferCardSectionViewModel:function(x){return _.F(l7J,{data:x.data})},
lpOfferTableSectionViewModel:function(x){return _.F(wPJ,{data:x.data,themeOverride:G})},
lpSmallFeatureSectionGroupViewModel:function(x){return _.F(nPt,{data:x.data,themeOverride:G})},
lpCouponBannerViewModel:function(x){return _.F(N54,{data:x.data})}}))))},"rd"),"yt-section-group-view-model",{props:{data:_.gj}});var vwi=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.OQ4=_.H(function(D){function v(){if(vwi.has(D.data().displayType)){var U=!a(),L;if((L=D.disableDeselection)==null||!L.call(D)||U){D.data().selected=U;L=Object.assign({},x(),{selected:U});f(L);var Z;(Z=D.callback)==null||Z.call(D,L,U)}}}
var h=_.va("chip-view-model"),a=function(){var U,L;return!!(((U=D.selected)==null?void 0:U.call(D))!==void 0?(L=D.selected)==null?0:L.call(D):x().selected)},Q=_.P(_.lL(D.data)),G=Q.next().value;
Q=Q.next().value;var x=G,f=Q,C=_.l7(D$c,function(){return D.data().chipEntityKey||""});
return _.F("chip-view-model",{class:"ytChipViewModelHost",el:h},_.F(S7$,{data:function(){var U,L=Object.assign({},x(),{selected:a()}),Z=C(),E=(U=D.disableDeselection)==null?void 0:U.call(D);a:switch(L.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":U=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":U=3;break a;default:U=0}return{text:(Z==null?void 0:Z.text)||L.text,state:L.disabled?1:L.selected?0:2,type:U,onTap:h4O(L,h,v,E),
accessibilityLabel:L.accessibilityLabel||L.text}}}))},"sd");
_.OQ4.idomCompat={callbacks:{callback:!0}};_.KXm=_.H(function(D){var v=_.l7(ujq,function(){var x;return(x=D.data())==null?void 0:x.chipBarStateEntityKey}),h=function(){return D.data().disableDeselection},a=_.P(_.lL(function(){var x;
if(((x=v())==null?void 0:x.selectedIndex)!=void 0)return v().selectedIndex;var f,C;x=_.P(((f=D.data())==null?void 0:(C=f.chips)==null?void 0:C.entries())||[]);for(f=x.next();!f.done;f=x.next()){f=_.P(f.value);C=f.next().value;f=f.next().value;var U=void 0;if((U=_.k(f,_.CH))==null?0:U.selected)return C}return-1})),Q=a.next().value,G=a.next().value;
return _.F("chip-bar-view-model",{class:_.S3("ytChipBarViewModelHost",D.className),role:"tablist"},_.F(_.c4,{data:function(){return D.data().chips}},{chipViewModel:function(x,f){return _.F("div",{class:"ytChipBarViewModelChipWrapper"},_.F(_.OQ4,{data:x.data,
selected:function(){return f()===Q()},
callback:function(C,U){C=!!U;U=f();G(C?U:-1);var L,Z=(L=D.data())==null?void 0:L.chipBarStateEntityKey;Z&&C&&_.xt(_.Xe("chipBarStateEntity",Z,{key:Z,selectedIndex:U}))},
disableDeselection:D.disableDeselection||h}))}}))},"td");_.zh(_.KXm,"chip-bar-view-model",{props:{data:_.C_,className:_.C_,disableDeselection:_.C_}});_.T5$=_.H(function(D){var v=D.data;D={};return _.F("divider-view-model",{class:_.S3("dividerViewModelHost",(D.dividerViewModelInsetThinPadding=function(){return v().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},D))},_.F("div",{class:_.S3("dividerViewModelBaseDivider",function(){return agL(v().dividerStyle)}),
style:_.NL({"background-color":function(){return v().backgroundColor?_.rT(v().backgroundColor):void 0}})}))},"ud");
_.T5$.idomCompat=!0;_.zh(_.T5$,"divider-view-model",{props:{data:_.gj}});var NO=new Map,lj=new Map,GOu=0,Y2;var owO=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],U$2={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var RoR,iQp;RoR=function(D){return function(v){return function(){return(v==null?void 0:v())!==void 0?String(v())+D:void 0}}};
_.Gp=RoR("px");iQp=RoR("s");var WX9=oSf(function(D){return D.targetGroupId}).useUpdatableData;_.r4p=_.H(function(D){function v(vA){return function(){var f7=B().numItemsPerGridRow,xL=vA()*f7;f7=xL+f7;var kL,Z4;return(Z4=(kL=a().contents)==null?void 0:kL.slice(xL,f7))!=null?Z4:[]}}
var h=_.fb(D,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),a=h.data,Q=h.layoutContainerWidth,G=h.shouldUseOwnContainerSize,x=h.marginSettings,f=wxA(),C=_.P(WX9(function(){var vA,f7;return{targetGroupId:(vA=a().targetingContext)==null?void 0:(f7=vA.targetGroupId)==null?void 0:f7[0]}})).next().value;
h=_.P(_.Zq(!0,void 0,"f25nob"));var U=h.next().value,L=h.next().value,Z=function(){var vA,f7=(vA=_.k(a().showMoreButton,_.fH))==null?void 0:vA.trackingParams;f7&&_.mj(_.c8(),f7);L(!1)},E=function(){var vA,f7=(vA=_.k(a().showLessButton,_.fH))==null?void 0:vA.trackingParams;
f7&&_.mj(_.c8(),f7);L(!0)};
h=_.va("grid-shelf-view-model");var I=_.Zof(h,{canHaveZeroSize:!1}),S=function(){var vA;return(vA=a().contentAspectRatio)!=null?vA:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},B=_.SM(function(){var vA=_.Rg({containerWidth:G()&&I.width()>0?I.width()||Q():Q(),
sizing:"EXTRA_COMPACT",marginSettings:x(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:vA.maxContainerWidth,numItemsPerGridRow:vA.numItems,contentPadding:G()?vA.margin:vA.contentMargin,itemWidth:vA.itemWidth,itemMargin:vA.gutter/2}},void 0,"b3gcJf"),A=function(){if(a().enableVerticalExpansion){if(U())return d();
var vA,f7,xL=(f7=(vA=a().contents)==null?void 0:vA.length)!=null?f7:0;return Math.ceil(xL/B().numItemsPerGridRow)}return B().numItemsPerGridRow<=2?2:1},d=function(){var vA;
return Math.ceil(((vA=a().minCollapsedItemCount)!=null?vA:1)/B().numItemsPerGridRow)},b=function(){return a().enableVerticalExpansion&&a().showLessButton&&!U()&&A()>d()},W=function(){var vA,f7;
return a().enableVerticalExpansion&&a().showMoreButton&&U()&&((f7=(vA=a().contents)==null?void 0:vA.length)!=null?f7:0)>B().numItemsPerGridRow*d()},K=function(){return!b()},O=function(){return!W()},R={};
return _.F("grid-shelf-view-model",{class:_.S3("ytGridShelfViewModelHost",D.className,(R.ytGridShelfViewModelHostHasBottomButton=function(){return b()||W()},R.ytGridShelfViewModelHostIsDismissed=function(){var vA,f7=(vA=C())!=null?vA:{};
vA=f7.behavior;var xL=f7.isDismissed,kL=f7.stamperContextTargetId;f7=f7.stamperIndex;if(!(_.g("mweb_see_fewer_shorts_group_dismissal")&&xL&&vA&&kL))return!1;var Z4;xL=f;for(var S2,s8,Xf=((S2=xL)==null?0:S2.targetId)?_.sY((s8=xL)==null?void 0:s8.targetId):void 0;((Z4=xL)==null?0:Z4.parent)&&Xf!==kL;)xL=xL.parent,s8=S2=void 0,Xf=((S2=xL)==null?0:S2.targetId)?_.sY((s8=xL)==null?void 0:s8.targetId):void 0;Z4=Xf===kL?xL:void 0;if(!Z4)return!1;var dJ;kL=Z4==null?void 0:(dJ=Z4.stamperIndex)==null?void 0:
dJ.call(Z4);return vA==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||vA==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&kL!=null&&f7!=null&&kL>f7},R)),
el:h,style:_.NL({"margin-left":(0,_.Gp)(function(){return B().contentPadding}),
"margin-right":(0,_.Gp)(function(){return B().contentPadding})})},_.F(_.z,{cond:function(){return _.k(a().header,QSs)},
then:function(vA){return _.F(_.HS,{data:vA,disableHorizontalPadding:!0})}}),_.F("div",null,_.F(_.Xd,{each:function(){return Array(A())}},function(vA,f7){return _.F(tH9,{className:D.className,
items:v(f7),responsiveGridShelfLayout:B,contentAspectRatio:S})})),_.F("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.F(_.c4,{data:function(){return a().showMoreButton}},{buttonViewModel:function(vA){return _.F("div",{hidden:O},_.F(_.s$,{data:vA.data,
onClick:Z}))}}),_.F(_.c4,{data:function(){return a().showLessButton}},{buttonViewModel:function(vA){return _.F("div",{hidden:K},_.F(_.s$,{data:vA.data,
onClick:E}))}})))},"wd");
_.r4p.idomCompat=!0;var tH9=_.H(function(D){var v=D.items;var h=D.responsiveGridShelfLayout;var a=D.contentAspectRatio;D=D.className;var Q=_.va("div");QVf(Q,function(){a:{var x=Q.value;for(var f=v(),C=[],U=0;U<f.length;U++){var L=_.k(f[U],qe1);if(!L||L==null||!L.inlinePlayerData){x=null;break a}var Z=x.children.item(U);if(!Z){x=null;break a}C.push({thumbnailElement:Z,videoData:L})}x={gridVideoPreviewData:{gridItems:C}}}return x});
var G=(0,_.Gp)(function(){return-h().itemMargin});
return _.F("div",{el:Q,class:_.S3("ytGridShelfViewModelGridShelfRow",D),style:_.NL({"margin-left":G,"margin-right":G})},_.F(_.c4,{data:v,replacementWrapper:function(x){return _.F(uFp,{responsiveGridShelfLayout:h},x)}},{shortsLockupViewModel:function(x){return _.F(uFp,{responsiveGridShelfLayout:h},_.F(NiR,{data:x.data,
aspectRatio:function(){return a()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.g("mweb_enable_one_line_title_on_shorts")?1:_.g("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(x){return _.F(uFp,{responsiveGridShelfLayout:h},_.F(_.sp,{data:x.data}))}}))},"xd"),uFp=_.H(function(D){return _.F("div",{style:_.NL({width:(0,_.Gp)(function(){return D.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+D.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},D.children)},"yd");
_.r4p.idomCompat=!0;_.zh(_.r4p,"grid-shelf-view-model",{props:{data:_.gj,layoutContainerWidth:_.gj,shouldUseOwnContainerSize:_.gj,marginSettings:_.gj,className:_.gj}});_.Dlt=_.H(function(D){var v=_.P(_.Zq(!1,void 0,"FVl30c")),h=v.next().value,a=v.next().value;v={};return _.F("yt-alert-banner-view-model",{class:_.S3("ytAlertBannerViewModelHost",D.className,function(){var Q;a:switch((Q=D.data())==null?void 0:Q.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Q="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Q="ytAlertBannerViewModelWarning";break a;default:Q="ytAlertBannerViewModelInformational"}return Q},(v.ytAlertBannerViewModelDismissed=
h,v.ytAlertBannerViewModelFullbleed=D.fullbleed,v.ytAlertBannerViewModelNarrow=D.narrow,v.ytAlertBannerViewModelIsInRichGrid=D.isInRichGrid,v))},_.F(_.z,{cond:function(){var Q;
return!((Q=D.data())==null?0:Q.hideIcon)},
then:function(){return _.F("div",{class:"ytAlertBannerViewModelIcon"},_.F(_.Y5,{icon:function(){return"info_circle"}}))}}),_.F("div",{class:"ytAlertBannerViewModelOuterContainer"},_.F("div",{class:"ytAlertBannerViewModelContainer"},_.F("div",{class:"ytAlertBannerViewModelContent"},_.F("div",{class:"ytAlertBannerViewModelHeading"},_.F(_.IY,{text:function(){var Q;
return(Q=D.data())==null?void 0:Q.heading}})),_.F("div",{class:"ytAlertBannerViewModelBody"},_.F(_.IY,{text:function(){var Q;
return(Q=D.data())==null?void 0:Q.body}})))),_.F(_.c4,{data:function(){var Q;
return(Q=D.data())==null?void 0:Q.actionButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.F(_.c4,{data:function(){var Q;
return(Q=D.data())==null?void 0:Q.dismissButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var G;((G=D.data())==null?0:G.disableLocalDismissBehavior)||a(!0)}})}}))},"zd");_.zh(_.Dlt,"yt-alert-banner-view-model",{props:{data:_.gj,fullbleed:_.gj,narrow:_.gj,isInRichGrid:_.gj,className:_.gj}});var vTm;_.hKJ=_.H(function(D){return _.F("basic-content-view-model",{class:_.S3("ytBasicContentViewModelHost",_.MK(D.className))},_.F(_.z,{cond:function(){return D.data().headline},
then:function(v){return _.F("div",{class:"ytBasicContentViewModelHeadline"},_.F(_.IY,{text:v}))}}),_.F(_.Xd,{each:function(){return D.data().paragraphs||[]},
keyBy:"INDEX"},function(v){return _.F("div",{class:"ytBasicContentViewModelParagraph"},_.F(_.z,{cond:function(){var h=v();return!!(h.header||h.customHeader||h.headline)},
then:function(){return _.F(vTm,{paragraph:v})}}),_.F(_.z,{cond:function(){return v().asset||v().text},
then:function(){return _.F("div",{class:"ytBasicContentViewModelParagraphContent"},_.F(_.z,{cond:function(){return v().asset},
then:function(h){return _.F("div",{class:"ytBasicContentViewModelParagraphAsset"},_.F(_.c4,{data:h},{contentPreviewImageViewModel:_.XE}))}}),_.F(_.z,{cond:function(){return v().text},
then:function(h){return _.F("div",{class:"ytBasicContentViewModelParagraphText"},_.F(_.IY,{text:h}))}}))}}))}))},"Ad");
vTm=_.H(function(D){var v=D.paragraph;return _.F(_.xf,null,_.F(_.z,{cond:function(){return v().headline},
then:function(h){return _.F(_.IY,{text:h,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.F(_.c4,{data:function(){return v().header||v().customHeader}},{sectionHeaderViewModel:function(h){return _.F(_.HS,{data:h.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Bd");_.aut=_.H(function(D){var v=function(){return D.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.F("yt-linear-layout-view-model",{class:_.S3("ytLinearLayoutViewModelHost",function(){a:switch(D.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var h="ytLinearLayoutViewModelHorizontal";break a;default:h="ytLinearLayoutViewModelVertical"}return h})},_.F(_.c4,{data:function(){return D.data().items}},{lockupViewModel:function(h){return _.F("div",{style:_.NL({"margin-bottom":function(){return v()?void 0:"8px"},
"margin-right":function(){return v()?"8px":void 0}})},_.F(_.sp,{data:h.data,
containerType:function(){return v()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return v()?void 0:"33%"}}))},
basicContentViewModel:function(h){return _.F("div",{style:_.NL({"margin-bottom":function(){return v()?void 0:"8px"},
"margin-right":function(){return v()?"8px":void 0}})},_.F(_.hKJ,{data:h.data}))}}))},"Cd");_.zh(_.aut,"yt-linear-layout-view-model",{props:{data:_.gj}});_.VP=_.H(function(D){var v=D.data;var h=D.callback;var a=D.selectionBehavior;var Q=D.disableChipsScrollAnimation;var G=_.$X("div");D=_.P(_.Zq(!0,void 0,"aUEsOc"));var x=D.next().value,f=D.next().value;D=_.P(_.Zq(!1,void 0,"V0aKld"));var C=D.next().value,U=D.next().value,L=!1,Z=0;_.dM(function(){f(S());U(B())});
D=_.P(_.lL(function(){var vA={};return v().autoselectedChipIndex!=null?(vA[v().autoselectedChipIndex]=!0,vA):{}}));
var E=D.next().value,I=D.next().value,S=function(){var vA=G.value;return vA==null||vA.scrollLeft-1<=0},B=function(){var vA=G.value;
return vA==null?!1:vA.scrollLeft+1>=(vA==null?NaN:vA.scrollWidth)-(vA==null?NaN:vA.clientWidth)},A=function(){return v().isHorizontallyScrollable},d=function(vA){G.value!=null&&(_.eA("HTML_DIR")==="rtl"&&(vA=-vA),G.value.scrollBy({left:vA,
behavior:(Q==null?0:Q())?"instant":"smooth"}))},b=function(){d(-320)},W=function(){d(320)},K=_.Jd(function(vA){L=!0;
Z=vA.clientX}),O=_.Jd(function(vA){if(L){vA=vA.clientX;
var f7=vA-Z;Z=vA;var xL;(xL=G.value)==null||xL.scrollBy({left:-f7})}}),R=_.Jd(function(){var vA=S(),f7=B();
vA!==x()&&f(vA);f7!==C()&&U(f7)});
_.Pa("pointerup",function(){L&&(L=!1)});
return _.F("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.F(_.qk,{contentId:function(){return v().contentId},
useModernStyle:!0},function(){var vA={},f7={};return _.F("div",null,_.F(_.z,{cond:function(){return v().title},
then:function(){return _.F("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.F("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return v().title}),_.F(_.c4,{data:function(){return v().overflowButton}},{buttonViewModel:_.s$}))}}),_.F("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.F(_.z,{cond:function(){return v().previousButton},
then:function(){var xL={};return _.F("div",{class:_.S3("ytChipsShelfViewModelLeftArrowContainer",(xL.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return x()},xL))},_.F(_.c4,{data:function(){return v().previousButton}},{buttonViewModel:function(kL){return _.F(_.s$,{data:kL.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:b})}}))}}),_.F("div",{el:G,
"on:pointerdown":K,"on:pointermove":O,"on:scroll":R,class:_.S3("ytChipsShelfViewModelChipsScrollContainer",(vA.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=A,vA))},_.F("div",{class:_.S3("ytChipsShelfViewModelChipsContainer",(f7.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=A,f7.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,f7)),role:"tablist"},_.F(_.c4,{data:function(){return v().contents}},{chipViewModel:function(xL,kL){return _.F("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.F(_.OQ4,{data:xL.data,
callback:function(Z4,S2){var s8=kL(),Xf,dJ=(Xf=a==null?void 0:a())!=null?Xf:0;dJ===1||dJ===2?(Xf={},I((Xf[s8]=S2,Xf))):(Xf={},I(Object.assign({},E(),(Xf[s8]=S2,Xf))));h==null||h(Z4,S2,s8)},
disableDeselection:function(){return(a==null?void 0:a())===1},
selected:function(){return!!E()[kL()]}}))}}))),_.F(_.z,{cond:function(){return v().nextButton},
then:function(){var xL={};return _.F("div",{class:_.S3("ytChipsShelfViewModelRightArrowContainer",(xL.ytChipsShelfViewModelRightArrowContainerIsHidden=C,xL))},_.F(_.c4,{data:function(){return v().nextButton}},{buttonViewModel:function(kL){return _.F(_.s$,{data:kL.data,
className:"ytChipsShelfViewModelRightArrow",onClick:W})}}))}})))}))},"Dd");
_.VP.idomCompat={callbacks:{callback:!0}};_.zh(_.VP,"chips-shelf-view-model",{props:{data:_.gj,callback:_.C_,selectionBehavior:_.gj,disableChipsScrollAnimation:_.gj}});_.zh(_.H(function(D){return _.F("yt-comment-filter-context-view-model",{class:_.S3("ytCommentFilterContextHost",D.className)},_.F(_.IY,{text:function(){return D.data().text}}))},"Ed"),"yt-comment-filter-context-view-model",{props:{data:_.gj,
className:_.C_}});var $l$=_.H(function(D){D=_.fb(D,{disabled:!1});var v=D.active,h=D.disabled;D={};D=_.S3("ytSwitchShapeTrack",(D.ytSwitchShapeTrackActive=function(){return v()},D.ytSwitchShapeTrackDisabled=function(){return h()},D));
var a={};a=_.S3("ytSwitchShapeKnob",(a.ytSwitchShapeKnobActive=function(){return v()},a));
return _.F("switch-shape",{class:"ytSwitchShapeHost"},_.F("div",{class:D}),_.F("div",{class:a}))},"Fd");var QT9=_.H(function(D){var v=_.fb(D,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),h=v.data;D=v.className;var a=v.handleOnTapEventInParent,Q=v.parentActive,G=v.onTap;v=_.P(_.lL(function(){var E;return(E=Q())!=null?E:h().switchedOnByDefault||!1}));
var x=v.next().value,f=v.next().value,C=function(){return h().isDisabled},U=_.va("button");
v=_.Jd(function(E){return E.key==="Enter"?(E.preventDefault(),U.value.click(),!1):!0});
var L=_.Jd(function(E){if(h().handleOnTapEventInParent||a())return!0;if(C())return!1;if(G)return G(E),!0;Ig4(h(),x(),E);f(!x());return!1}),Z={};
Z=_.S3("ytSwitchButtonViewModelButton",(Z.ytSwitchButtonViewModelTappable=function(){return!C()},Z));
return _.F("switch-button-view-model",{class:_.S3("ytSwitchButtonViewModelHost",D)},_.F("button",{el:U,class:Z,"on:click":L,"on:keydown":v,"aria-label":function(){return x()?h().a11yLabelSwitchedOn:h().a11yLabelSwitchedOff},
"aria-checked":x,"aria-disabled":C,role:"switch"},_.F($l$,{active:x,disabled:C})))},"Gd");var G_J=_.H(function(D){var v=D.data;var h=D.isLeading;var a=D.hideSelectionTextChevron;var Q=D.isToggled;var G=function(){return h()?v().leadingImage:v().trailingImage},x=function(){a:switch(v().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var L="expand_more";
break a;default:L="chevron_right"}return L};
D={};var f=_.S3("yt-list-item-view-model__image-container",(D["yt-list-item-view-model__leading"]=h,D["yt-list-item-view-model__trailing"]=function(){return!h()},D)),C=_.S3("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
D={};var U=_.S3("yt-list-item-view-model__accessory",(D["yt-list-item-view-model__leading"]=h,D["yt-list-item-view-model__trailing"]=function(){return!h()},D));
return _.F(_.z,{cond:function(){var L=v(),Z=h();return!!(Z&&(L.leadingImage||L.leadingAccessory)||!Z&&(L.trailingImage||L.trailingButton||L.trailingButtons||L.selectionText))},
then:function(){return _.F(_.xf,null,_.F(_.z,{cond:G,then:function(L){return _.F("div",{class:f,"aria-hidden":"true"},_.F(_.PX,{data:L,alt:"",preserveWidth:!0,preserveHeight:!0,className:C,isToggled:Q}))}}),_.F(_.z,{cond:function(){return h()&&v().leadingAccessory},
then:function(){return _.F("div",{class:f},_.F(_.c4,{data:function(){return v().leadingAccessory}},{avatarViewModel:function(L){return _.F(_.Q2,{data:L.data,
avatarButtonCustomClassName:C})},
collectionThumbnailViewModel:function(L){return _.F(g09,{data:L.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.F(_.z,{cond:function(){return!h()&&v().trailingButton},
then:function(){return _.F("div",{class:"yt-list-item-view-model__button-container"},_.F(_.c4,{data:function(){return v().trailingButton}},{buttonViewModel:function(L){return _.F(_.s$,{data:L.data,
className:U})}}))}}),_.F(_.z,{cond:function(){var L;
return!h()&&((L=v().trailingButtons)==null?void 0:L.buttons)},
then:function(){return _.F("div",{class:"yt-list-item-view-model__button-container"},_.F(_.c4,{data:function(){var L;return(L=v().trailingButtons)==null?void 0:L.buttons}},{buttonViewModel:function(L){return _.F(_.s$,{data:L.data,
className:U})},
accountLinkButtonViewModel:function(L){return _.F(f84,{data:L.data,className:U})},
switchButtonViewModel:function(L){return _.F(QT9,{data:L.data,className:U})},
subscribeButtonViewModel:function(L){return _.F(_.Q8,{data:L.data,isOverlay:!1,animateWidth:!1,className:U})},
toggleButtonViewModel:function(L){return _.F(_.$$,{data:L.data,className:U})}}))}}),_.F(_.z,{cond:function(){return!h()&&!!v().selectionText},
then:function(){return _.F(_.xf,null,_.F(_.IY,{text:function(){return v().selectionText},
className:_.S3("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.F(_.z,{cond:function(){return!(a==null?0:a())},
then:function(){return _.F(_.Y5,{icon:x,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Hd");var Vm4=_.H(function(D){function v(){var I,S;C((S=(I=Q)==null?void 0:I.isKeyBoardInUse())!=null?S:!1)}
function h(){C(!1)}
function a(){var I;return f()?(I=D.focusedClassName)==null?void 0:I.call(D):""}
var Q=_.xd().resolve(_.PV(_.Xw)),G=_.P(_.Zq(!1,void 0,"zbdw0d")),x=G.next().value;G=G.next().value;var f=x,C=G,U=function(){var I,S;return((I=D.toggleable)==null?0:I.call(D))?(S=D.toggled)==null?void 0:S.call(D):void 0},L=_.Jd(function(I){var S,B=(S=D.command)==null?void 0:S.call(D);
B&&_.xd().resolve(_.fx).resolveCommand(B);var A;(A=D.onClick)==null||A.call(D,I)}),Z=_.Jd(v),E=_.Jd(h);
return _.F(_.z,{cond:function(){var I;if(I=D.command){I=D.command();I=V4r(I);var S=I.href;I=!(!I.navigatingCommand||!S)}return I},
then:function(){return _.F(_.Ak,Object.assign({},{command:D.command,style:D.style,ariaDescribedby:D.ariaDescribedby,ariaHidden:D.ariaHidden,ariaLabel:D.ariaLabel,ariaLabelledby:D.ariaLabelledby,ariaSelected:D.ariaSelected,disabled:D.disabled,dir:D.dir,tabIndex:D.tabIndex,target:D.target,title:D.title,onClick:D.onClick},{className:_.S3("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",D.className,function(){return a()}),
onFocusin:v,onFocusout:h,ariaCurrent:function(){var I,S;return(S=(I=D.ariaCurrent)==null?void 0:I.call(D))!=null?S:U()}}),D.children)},
else:function(){return _.F("button",{"on:click":L,"on:focusin":Z,"on:focusout":E,class:_.S3("ytButtonOrAnchorHost","ytButtonOrAnchorButton",D.className,function(){return a()}),
style:D.style,"aria-describedby":D.ariaDescribedby,"aria-hidden":D.ariaHidden,"aria-label":D.ariaLabel,"aria-labelledby":D.ariaLabelledby,"aria-pressed":U,dir:D.dir,disabled:D.disabled,tabindex:D.tabIndex,title:D.title},D.children)}})},"Id");var Ph$=_.H(function(D){var v=D.data;var h=D.useButtonOrAnchor;var a=D.onTap;var Q=D.isTappableWithoutSelect;var G=D.isToggled;return _.F(_.z,{cond:function(){return v().title||v().subtitle},
then:function(){return _.F("div",{class:"yt-list-item-view-model__text-wrapper"},_.F(_.z,{cond:function(){return v().title},
then:function(x){return _.F("div",{class:"yt-list-item-view-model__title-wrapper"},_.F(_.z,{cond:function(){return(h==null?void 0:h())&&(Q==null?void 0:Q())},
then:function(){return _.F(Vm4,{command:function(){return _.yL(v().rendererContext)},
onClick:a,className:"yt-list-item-view-model__button-or-anchor",toggleable:G!==void 0,toggled:G},_.F(_.IY,{text:x,className:"yt-list-item-view-model__title"}))},
else:function(){return _.F(_.IY,{text:x,className:"yt-list-item-view-model__title"})}}))}}),_.F(_.z,{cond:function(){return v().subtitle},
then:function(x){return _.F(_.IY,{text:x,className:"yt-list-item-view-model__subtitle"})}}))}})},"Jd");var xlM=_.H(function(D){var v=D.data;var h=D.hideSelectionTextChevron;var a=D.TrailingAccessory;var Q=D.isToggled;var G=D.disabled;var x=D.isSelectItem;var f=D.isCompact;var C=D.inPopup;var U=D.disableHorizontalPadding;var L=D.isTappableWithoutSelect;var Z=D.useButtonOrAnchor;D=D.onTap;var E={};return _.F("div",{class:_.S3("yt-list-item-view-model__label",(E["yt-list-item-view-model__container"]=function(){return!(x==null?0:x())},E["yt-list-item-view-model__container--disabled"]=function(){return!!v().isDisabled||
!(G==null||!G())},E["yt-list-item-view-model__container--has-subtitle"]=function(){return!!v().subtitle},E["yt-list-item-view-model__container--compact"]=f,E["yt-list-item-view-model__container--tappable"]=L,E["yt-list-item-view-model__container--in-popup"]=C,E["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(U==null?void 0:U())&&!(x==null?0:x())},E))},_.F(G_J,{data:v,
isLeading:!0,hideSelectionTextChevron:h,isToggled:Q}),_.F(Ph$,{data:v,onTap:D,useButtonOrAnchor:Z,isTappableWithoutSelect:L,isToggled:Q}),_.F(_.z,{cond:function(){return!!a},
then:function(){return _.F("div",{class:"yt-list-item-view-model__trailing"},a&&_.F(a,null))},
else:function(){return _.F(G_J,{data:v,isLeading:!1,hideSelectionTextChevron:h,isToggled:Q})}}))},"Kd");var fup=_.H(function(D){var v=_.fb(D,{checked:!1});D=v.name;var h=v.onChange,a=v.onClick,Q=v.checked,G=v.labelRenderable,x=v.hasLeadingLabel,f=v.labelClass,C=v.isCompact,U=v.selectElementClass;v=v.disableHorizontalPadding;var L="checkbox"+_.iE(_.QP),Z=_.Jd(function(S){a==null||a(S);return!1}),E=_.Jd(function(S){h==null||h(S);
return!1}),I={};
return _.F("checkbox-shape",null,_.F("label",{class:_.S3("ytCheckboxShapeHost",f,(I.ytCheckboxShapeHostCompact=C,I.ytCheckboxShapeDisableHorizontalPadding=v,I))},_.F("input",{class:"ytCheckboxShapeInput",id:L,checked:Q,name:D,type:"checkbox","prop:checked":Q,"on:change":E,"on:click":Z}),_.F(_.z,{cond:function(){return!(x==null?0:x())},
then:function(){return _.F(Mm4,{isLeading:!0,selectElementClass:U})}}),_.F(_.z,{cond:function(){return!!G},
then:function(){return _.F("div",{class:"ytCheckboxShapeLabel"},G==null?void 0:G())}}),_.F(_.z,{cond:x,
then:function(){return _.F(Mm4,{isLeading:!1,selectElementClass:U})}})))},"Ld");
fup.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Mm4=_.H(function(D){var v=D.selectElementClass;D={};return _.F("div",{class:_.S3("ytCheckboxShapeCheckbox",v,(D.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(v==null?0:v())},D)),
"aria-hidden":"true"},_.F(_.Y5,{icon:_.g("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.F(_.Y5,{icon:_.g("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Md");_.Pe=_.H(function(D){var v=D.name;var h=D.onChange;var a=D.onClick;var Q=D.checked;var G=D.labelRenderable;var x=D.useCheckIcon;var f=D.hasLeadingLabel;var C=D.labelClass;var U=D.isCompact;var L=D.selectElementClass;var Z=D.ariaLabel;D=D.className;var E="radio"+_.iE(_.QP),I=_.va("input"),S=_.Jd(function(R){I.value.checked=!(Q==null||!Q());h==null||h(R);return!1}),B=_.Jd(function(R){a==null||a(R);
return!1}),A=_.Jd(function(R){_.g("enable_ios_webview_radio_button_responsiveness")&&(R.preventDefault(),I.value.click())}),d=_.P(_.Zq(!1,void 0,"TcCZlf")),b=d.next().value,W=d.next().value;
d=_.Jd(function(){var R;((R=_.xd().resolve(_.PV(_.Xw)))==null?0:R.isKeyBoardInUse())&&W(!0)});
var K=_.Jd(function(){W(!1)}),O={};
return _.F("radio-shape",{class:_.S3("yt-radio-shape",D)},_.F("input",{el:I,class:"yt-radio-shape__input",id:E,"prop:checked":Q,name:v,type:"radio","on:change":S,"on:click":B,"aria-label":Z,"on:focusin":d,"on:focusout":K}),_.F("label",{class:_.S3("yt-radio-shape__label-container",C,(O["yt-radio-shape--compact"]=U,O["yt-radio-shape__label-container--keyboard-focused"]=b,O)),for:E,"on:click":A},_.F(_.z,{cond:function(){return!(f==null?0:f())},
then:function(){return _.F(ChJ,{checked:Q,useCheckIcon:x,isLeading:!0,selectElementClass:L})}}),_.F(_.z,{cond:function(){return!!G},
then:function(){return _.F("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(Z==null?0:Z())?"true":"false"}},G==null?void 0:G())}}),_.F(_.z,{cond:f,
then:function(){return _.F(ChJ,{checked:Q,useCheckIcon:x,isLeading:!1,selectElementClass:L})}})))},"Nd");
_.Pe.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var ChJ=_.H(function(D){var v=D.useCheckIcon;var h=D.selectElementClass;D=function(){return(v==null?0:v())?"CHECK":_.g("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var a={};return _.F("div",{class:_.S3("yt-radio-shape__radio",h,(a["yt-radio-shape__radio--check-icon"]=v,a["yt-radio-shape__radio--radio-default-style"]=function(){return!(h==null?0:h())},a)),
"aria-hidden":"true"},_.F(_.Y5,{icon:D}),_.F(_.Y5,{icon:D,active:function(){return!(v==null?0:v())}}))},"Od");_.xD=_.H(function(D){var v=D.data;var h=D.isMenuItem;var a=D.isCompact;var Q=D.onTap;var G=D.trailingAccessory;var x=D.hideSelectionTextChevron;var f=D.disabled;var C=D.inPopup;var U=D.disableHorizontalPadding;var L=D.isOverlay;var Z=D.isToggled;var E=D.ariaLabel;D=D.ariaPressed;var I=!_.g("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),S=function(){return _.g("enable_web_shorts_captions_language_command")||_.g("web_shorts_audio_track_picker")?Object.assign({},v(),SKo(v())):v()},B=_.pYA(function(){return S().rendererContext}),
A=function(){return!(S().isSelected===void 0||!S().selectionStyle||S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},d=function(){return(_.wp(S().rendererContext)||Q)&&!A()},b={},W=_.S3("yt-list-item-view-model__container",(b["yt-list-item-view-model__container--tappable"]=function(){return _.wp(S().rendererContext)||A()},b["yt-list-item-view-model__container--compact"]=a,b["yt-list-item-view-model__container--in-popup"]=C,b["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(U==null?void 0:U())&&A()},b)),K=function(){return S().leadingImage||S().leadingAccessory},O=_.S3("yt-list-item-view-model__image-container",function(){return K()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
b=_.Jd(function(S2){var s8;if(s8=I)s8=S().selectionStyle,s8=s8==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||s8==="LIST_ITEM_SELECTION_STYLE_RADIO"||s8==="LIST_ITEM_SELECTION_STYLE_DEFAULT";s8||Z4||Q==null||Q(S2)});
var R=_.SsA(),vA=_.P(_.Zq(!1,void 0,"YQ5CU")),f7=vA.next().value,xL=vA.next().value,kL=function(){return _.F(xlM,{data:S,hideSelectionTextChevron:x,TrailingAccessory:G,isToggled:Z,disabled:f,isSelectItem:A,isCompact:a,inPopup:C,disableHorizontalPadding:U,isTappableWithoutSelect:d,useButtonOrAnchor:Z4,onTap:Q})},Z4=_.g("web_button_or_anchor_list_item");
vA={};return _.F("yt-list-item-view-model",{el:_.ML(_.eb(function(){return S().rendererContext},void 0,void 0,Z4?["A".toString(),
"BUTTON".toString()]:[]),Z4&&Q?JIu(Q):void 0,sxc(function(){return d==null?void 0:d()},{focusin:function(){var S2;
((S2=_.xd().resolve(_.PV(_.Xw)))==null?0:S2.isKeyBoardInUse())&&xL(!0)},
focusout:function(){xL(!1)}})),
class:_.S3("yt-list-item-view-model",(vA["yt-list-item-view-model--is-overlay"]=L,vA["yt-list-item-view-model--keyboard-focused"]=f7,vA)),role:function(){return(h==null?0:h())?"menuitem":"listitem"},
tabindex:function(){var S2=d();S2=Z4?void 0:Q||S2?0:void 0;return S2},
"on:keydown":R,"on:click":b,"aria-label":function(){var S2;return(E==null?void 0:E())||((S2=B())==null?void 0:S2.label)},
"aria-pressed":D},_.F(_.z,{cond:A,then:function(){return _.F(_.A$,null,_.F(_.Bv,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.F(fup,{labelRenderable:kL,
isCompact:a,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!K()},
labelClass:W,selectElementClass:O,disableHorizontalPadding:U,onClick:I?Q:void 0})}),_.F(_.Bv,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.F(_.Pe,{labelRenderable:kL,
isCompact:a,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!K()},
labelClass:W,selectElementClass:O,onClick:I?Q:void 0})}),_.F(_.Bv,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.F(_.Pe,{labelRenderable:kL,
isCompact:a,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!K()},
labelClass:W,selectElementClass:O,useCheckIcon:!0,onClick:I?Q:void 0})}),_.F(_.cv,null,kL))},
else:kL}))},"Pd");
_.xD.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.oT$=_.H(function(D){var v=D.data;var h=D.onTap;var a=D.onSwitch;var Q=D.overrideDisabled;D=D.disableHorizontalPadding;var G=_.P(_.lL(function(){var I;return((I=kOr(Z()))==null?void 0:I.switchedOnByDefault)||!1})),x=G.next().value,f=G.next().value;
G=_.P(_.Zq(!1,void 0,"ZHBkbb"));var C=G.next().value,U=G.next().value,L=_.g("web_button_or_anchor_list_item"),Z=function(){var I;if(!(I=v().switchButton)){var S=v();I=Q==null?void 0:Q();S={switchOnCommand:S.switchOnCommand,switchOffCommand:S.switchOffCommand,switchedOnByDefault:S.switchedOnByDefault,isDisabled:S.isDisabled,handleOnTapEventInParent:!L,a11yLabelSwitchedOn:S.a11yLabelSwitchedOn,a11yLabelSwitchedOff:S.a11yLabelSwitchedOff};I!==void 0&&(S.isDisabled=I);I={switchButtonViewModel:S}}return I},
E=function(I){var S=kOr(Z());
!S||S.isDisabled||v().ignoreTapUntilCommandCompletes&&C()||(h==null||h(I),Ig4(S,x(),I,v().ignoreTapUntilCommandCompletes,U),f(!x()),a==null||a(x()))};
return _.F("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.F(_.xD,{data:function(){return{title:v().title,subtitle:v().attributedSubtitle,leadingImage:v().leadingImage,leadingAccessory:v().leadingAccessory,isDisabled:v().isDisabled}},
onTap:E,isToggled:L?x:void 0,trailingAccessory:function(){return _.F(_.c4,{data:Z},{switchButtonViewModel:function(I){return _.F(QT9,{data:I.data,parentActive:x,handleOnTapEventInParent:!!h&&!L,onTap:L?E:void 0})}})},
disableHorizontalPadding:D}))},"Qd");var F71=_.H(function(D){var v=_.P(_.lL(function(){var Q,G;return!!((Q=D.data())==null?0:(G=Q.initialState)==null?0:G.isToggled)})),h=v.next().value,a=v.next().value;
v=_.Jd(function(){a(!h())});
return _.F("toggleable-list-item-view-model",{el:_.ML(_.eb(function(){return D.data().rendererContext})),
class:_.S3("toggleableListItemViewModelHost",D.className),"on:click":v},_.F(_.z,{cond:function(){if(h()){var Q=D.data().toggledListItem;Q=_.k(Q,_.qq)}else Q=D.data().defaultListItem,Q=_.k(Q,_.qq);return Q},
then:function(Q){return _.F(_.xD,{data:Q,isToggled:h,ariaLabel:function(){var G=h()?D.data().toggledListItem:D.data().defaultListItem,x;G=(x=_.k(G,_.qq))==null?void 0:x.rendererContext;var f;return(f=_.k(G,_.BO))==null?void 0:f.label},
ariaPressed:function(){return h()}})}}))},"Rd");var zKy=_.p1("DOWNLOAD",{},"Download"),Ul4=_.p1("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),L7b=_.p1("RETRY",{},"Retry"),Zlb=_.p1("PAUSE_DOWNLOADING",{},"Pause downloading"),ET$=_.p1("RESUME_DOWNLOAD",{},"Resume download"),lgu={text:zKy,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},cO={text:Ul4,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},BQ8={text:L7b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
NQc={text:Zlb,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},YKO={text:ET$,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Iu4=_.H(function(D){var v=function(){var f=D.data();f=_.yL(f.rendererContext);var C;return(C=_.k(f,_.Jn))==null?void 0:C.videoId},h=_.Th(function(f){var C=v(),U=AIi(D.data());
return C?_.KG(f,C):U?_.Ta(f,U):"TRANSFER_STATE_UNKNOWN"}),a=_.l7(_.slL,v),Q=_.Th(function(f){return _.cUu(f,v(),AIi(D.data()))}),G=function(){return XYf(h(),a(),_.yL(D.data().rendererContext),!!AIi(D.data()))},x=function(){return Q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.F("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:x},_.F(_.z,{cond:function(){return!x()},
then:function(){return _.F(_.z,{cond:G,then:function(f){return _.F(_.Xd,{each:f},function(C){return _.F(_.xD,{data:C,isCompact:D.isCompact,isMenuItem:D.isMenuItem,inPopup:D.inPopup,disableHorizontalPadding:D.disableHorizontalPadding})})}})}}))},"Sd");
Iu4.idomCompat=!0;_.gT4=_.H(function(D){var v=D.data;var h=D.isCompact;var a=D.hideSelectionTextChevron;var Q=D.inPopup;var G=D.isOverlay;var x=D.disableHorizontalPadding;var f=function(){return qK8(v())&&(Q==null?void 0:Q())};
D=_.Jd(function(U){if(Q!=null&&Q()&&_.g("web_enable_arrow_key_navigation_in_dropdown")){var L=_.V2q(U.currentTarget),Z=L.length;if(Z!==0){var E=Array.prototype.indexOf.call(L,document.activeElement);switch(U.key){case "ArrowDown":U.preventDefault();var I;(I=L[(E+1)%Z])==null||I.focus();break;case "ArrowUp":U.preventDefault();var S;(S=L[E===-1?Z-1:(E-1+Z)%Z])==null||S.focus()}}}});
var C={};return _.F("yt-list-view-model",{class:_.S3("ytListViewModelHost",(C.ytListViewModelHostKaiosSpatNav=nj4&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",C.ytListViewModelCollectionThumbnailClass=function(){return jV4(v())},C)),
role:function(){return f()?"menu":"list"},
style:_.NL({"max-height":function(){var U,L=(U=v())==null?void 0:U.visibleElementCount;if(L)return jV4(v())?(L+.5)*48+"px":(L+.5)*40+"px"}}),
"on:keydown":D},_.F(_.c4,{data:function(){return v().listItems}},{listItemViewModel:function(U){return _.F(_.xD,{data:U.data,
isMenuItem:f,isCompact:h,hideSelectionTextChevron:a,inPopup:Q,isOverlay:G,disableHorizontalPadding:x})},
toggleableListItemViewModel:function(U){return _.F(F71,{data:U.data})},
downloadListItemViewModel:function(U){return _.F(Iu4,{data:U.data,isMenuItem:f,isCompact:h,inPopup:Q,disableHorizontalPadding:x})},
switchListItemViewModel:function(U){return _.F(_.oT$,{data:U.data,disableHorizontalPadding:x})}}))},"Td");
_.gT4.idomCompat=!0;var k_b=_.H(function(D){var v=D.data;var h=D.isOverlay;D={};return _.F("yt-course-perks-view-model",{class:_.S3("ytwCoursePerksViewModelHost",(D.ytwCoursePerksViewModelHostOverlay=h,D))},_.F("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("div",null,_.F(_.z,{cond:function(){return v().perks},
then:function(a){return _.F(_.gT4,{data:function(){return{listItems:a()}},
isCompact:!0,isOverlay:h})}})))},"Ud");_.zh(k_b,"yt-course-perks-view-model",{props:{data:_.C_,isOverlay:_.C_}});_.zh(_.H(function(D){var v=D.data;return _.F("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.F("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.F(_.IY,{text:function(){return v().progressSummary}})),_.F("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.F("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.NL({width:function(){return v().progressPercentage*100+"%"}})})))},"Vd"),"yt-course-progress-view-model",{props:{data:_.gj}});var SS9=_.H(function(D){var v={};return _.F("yt-progress-view-model",{class:_.S3("ytwProgressViewModelHost",(v.ytwProgressViewModelHostOverlay=_.MK(D.isOverlay,!1),v))},_.F(_.z,{cond:function(){return D.data().progressSummary},
then:function(h){return _.F("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.F(_.IY,{text:h}))}}),_.F("div",{class:"ytwProgressViewModelHostProgressContainer"},_.F(_.z,{cond:function(){return D.data().leadingLabel},
then:function(h){return _.F("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.F(_.IY,{text:h}))}}),_.F("div",{class:"ytwProgressViewModelHostProgressBar"},_.F("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(D.data().progressPercentage||0)*100+"%"}}))))},"Wd");var Mo=_.H(function(D){var v=D.starNumber;var h=D.data;var a=function(){var Q;return((Q=h())==null?void 0:Q.rating)||0};
return _.F(_.z,{cond:function(){return v()},
then:function(Q){return _.F(_.A$,null,_.F(_.Bv,{when:function(){return a()>=Q()-.25}},function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.Y5,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.F(_.Bv,{when:function(){return a()>=Q()-.75}},function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.Y5,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.F(_.cv,null,function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.Y5,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"Xd"),J71=_.H(function(D){D=D.data;
return _.F("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.F(Mo,{starNumber:1,data:D}),_.F(Mo,{starNumber:2,data:D}),_.F(Mo,{starNumber:3,data:D}),_.F(Mo,{starNumber:4,data:D}),_.F(Mo,{starNumber:5,data:D}))},"Yd");_.zh(_.H(function(D){var v=_.fb(D,{}).data;return _.F("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.F("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.F(_.IY,{text:function(){var h;return(h=v())==null?void 0:h.title}})),_.F("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.F(_.z,{cond:function(){return v().starProgressViewModels},
then:function(h){return _.F("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.F(_.c4,{data:h},{progressViewModel:SS9}))}}),_.F("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.F("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.F(_.IY,{text:function(){var h;
return(h=v())==null?void 0:h.averageRatingLabel}})),_.F(_.z,{cond:function(){return v().zeroStateText},
then:function(h){return _.F("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.F(_.IY,{text:h}))}}),_.F(_.z,{cond:function(){return v().starRatingViewModel},
then:function(h){return _.F("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.F(_.c4,{data:h},{starRatingViewModel:J71}))}}),_.F("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.F(_.IY,{text:function(){var h;
return(h=v())==null?void 0:h.totalRatingsCountLabel}})))))},"Zd"),"yt-course-ratings-view-model",{props:{data:_.C_}});var pz9;pz9={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"}};_.luJ=_.H(function(D){var v=_.va("yt-learning-journey-loader-view-model"),h=_.ke();_.dM(function(){requestAnimationFrame(function(){var Q;(Q=h.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var G;(G=D.onLottieLoaded)==null||G.call(D)})});
var a=D.data().browseEndpoint;a&&_.r4(a)});
return _.F("yt-learning-journey-loader-view-model",{class:_.S3("learningJourneyLoaderViewModelHost",D.className),"data-target-id":function(){var a;return((a=D.data)==null?void 0:a.call(D).targetId)||""},
el:v},_.F(_.ne,{className:_.S3("learningJourneyLoaderViewModelLoader",D.className),animationName:function(){return pz9.animationConfig.name},
data:pz9,animationRef:h}))},"$d");_.zh(_.luJ,"yt-learning-journey-loader-view-model",{props:{data:_.gj,className:_.C_,onLottieLoaded:_.C_}});var m$I=new Set,sVA=null;var YSy=_.H(function(D){var v=void 0,h=function(){return D.data()},a=function(){var I=h();
var S=_.xd().resolve(_.PV(_.$5));I=S!=null&&S()?I.darkThemeColorPalette:I.lightThemeColorPalette;return{primaryTextColor:Am(I,0),secondaryTextColor:Am(I,1),optionColor:Am(I,2),backgroundColor:Am(I,3),videoBackgroundColor:Am(I,4)}},Q=function(){return!!a().optionColor},G=_.P(_.Zq(-1,void 0,"FNv5Ne")),x=G.next().value,f=G.next().value,C=function(I){return h().correctAnswerIndex===I},U=function(){return x()!==-1};
G=_.P(_.Zq("",void 0,"LFzaYe"));var L=G.next().value,Z=G.next().value,E=function(I){return x()===h().correctAnswerIndex&&C(I)};
return _.F("learning-journey-quiz-view-model",{class:_.S3("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",D.className),style:_.NL({background:function(){return a().backgroundColor}})},_.F("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},L),_.F(_.z,{cond:function(){return!!h().video},
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.NL({background:function(){return a().videoBackgroundColor}})},_.F(_.c4,{data:function(){return h().video}},{lockupViewModel:function(I){return _.F(_.sp,{data:I.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.F("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.F("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.F("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.F(_.z,{cond:function(){return!!h().aiGeneratedQuizLabel},
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.F(_.IY,{text:function(){return h().aiGeneratedQuizLabel}}))}}),_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.NL({"align-items":function(){return h().overflowMenu?"start":"center"}})},_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.NL({"min-height":function(){return h().overflowMenu?"48px":"26px"}})},_.F("div",{class:"learningJourneyQuizYoututorText",
style:_.NL({color:function(){return a().primaryTextColor}})},_.F(_.IY,{text:function(){return h().questionHeaderText}})))),_.F("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.NL({color:function(){return a().secondaryTextColor}})},_.F(_.IY,{text:function(){var I=h();
return U()?I.explanationText:I.questionSubheaderText}}))),_.F("div",{role:"group",
class:_.S3("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.F(_.Xd,{each:function(){return h().optionsData||[]}},function(I,S){var B={};
return _.F("button",{class:_.S3("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(B.learningJourneyQuizViewModelHostQuizHover=function(){return!U()},B.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Q,B.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return U()&&C(S())},B.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var A;
if(A=x()!==h().correctAnswerIndex)A=S(),A=x()===A;return A},B)),
"on:click":_.Jd(function(){if(U())return!1;f(S());var A,d;Z(C(S())?((A=h().successTitle)==null?void 0:A.content)||"":((d=h().failureTitle)==null?void 0:d.content)||"");return!1}),
style:_.NL({background:"transparent"}),"aria-description":function(){var A,d;return U()?C(S())?(A=h().successTitle)==null?void 0:A.content:(d=h().failureTitle)==null?void 0:d.content:""},
"aria-disabled":U,el:_.ML(function(A){_.Xv(271905,A,v,function(d){v=d})}),
"client-ve-type":271905},_.F("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.F(_.IY,{text:I.optionText}),_.F(_.z,{cond:function(){var A=S(),d;if(d=U())d=x()===A||C(A);return d},
then:function(){return _.F(NOp,{isOptionCorrect:C,optionIndex:S,isOptionSelectedAndCorrect:E,colors:a})}})))}),_.F(_.z,{cond:U,
then:function(){return _.F("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.F("div",{class:"learningJourneyQuizYoututorExplanationText"},_.F(_.IY,{text:function(){return h().explanationHeaderText}})),_.F(_.IY,{text:function(){return h().optionsData[x()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ae"),NOp=_.H(function(D){var v={};
return _.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.S3("learningJourneyQuizYoututorOptionIconTrailing",(v.learningJourneyQuizViewModelHostQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},v.learningJourneyQuizYoututorIconIncorrectFill=function(){return!D.isOptionSelectedAndCorrect(D.optionIndex())&&!D.isOptionCorrect(D.optionIndex())},v.learningJourneyQuizYoututorIconCorrectFill=function(){return D.isOptionCorrect(D.optionIndex())},
v))},_.F("path",{d:function(){var h=D.optionIndex();
return D.isOptionCorrect(h)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"be");
YSy.idomCompat=!0;var BOJ;_.c7J=_.H(function(D){var v=null,h=null,a=null,Q=function(){return D.data()},G=function(){var K=Q();
var O=_.xd().resolve(_.PV(_.$5));K=O!=null&&O()?K.darkThemeColorPalette:K.lightThemeColorPalette;return{primaryTextColor:qO(K,0),secondaryTextColor:qO(K,1),optionColor:qO(K,2),backgroundColor:qO(K,3),videoBackgroundColor:qO(K,4)}},x=function(){return!!G().optionColor},f=_.P(_.Zq(-1,void 0,"QDu8Oe")),C=f.next().value,U=f.next().value,L=function(K){return C()===K},Z=function(K){return Q().correctAnswerIndex===K},E=function(){return C()!==-1},I=function(){return C()===Q().correctAnswerIndex},S=function(){var K=
Q(),O=E(),R=I();
return O?R?K.successTitle:K.failureTitle:K.questionHeaderText},B=function(){var K=E(),O=I();
return K?O?264685:264684:264683},A=function(){var K=Q();
return E()?K.explanationText:K.questionSubheaderText},d=function(){return!!Q().video},b=function(K){return I()&&Z(K)},W=_.Jd(function(){U(-1);
return!1});
return _.F(_.z,{cond:function(){return Q().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.F(YSy,{data:function(){return Q()}})},
else:function(){return _.F("learning-journey-quiz-view-model",{class:_.S3("learningJourneyQuizViewModelHost",D.className),style:_.NL({background:function(){return G().backgroundColor}})},_.F(_.z,{cond:d,
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.NL({background:function(){return G().videoBackgroundColor}})},_.F(_.c4,{data:function(){return Q().video}},{lockupViewModel:function(K){return _.F(_.sp,{data:K.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.F("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.F("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.F("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.F(_.z,{cond:function(){return!!Q().aiGeneratedQuizLabel},
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.F(_.IY,{text:function(){return Q().aiGeneratedQuizLabel}}))}}),_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.NL({"align-items":function(){return Q().overflowMenu?"start":"center"}})},_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.NL({"min-height":function(){return Q().overflowMenu?"48px":"26px"}})},_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.ML(function(K){_.Xv(B(),K,v,function(O){v=O})}),
style:_.NL({color:function(){return G().primaryTextColor}}),
"client-ve-type":B},_.F(_.IY,{text:S}))),_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.F(_.z,{cond:E,then:function(){return _.F("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.ML(function(K){_.Xv(264687,K,h,function(O){h=O})}),
"on:click":W,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.NL({fill:function(){return G().primaryTextColor}})},_.F("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"})))}}),
_.F(_.c4,{data:function(){return Q().overflowMenu}},{buttonViewModel:function(K){return _.F(_.s$,{data:K.data})}}))),_.F("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.ML(function(K){_.Xv(264688,K,a,function(O){a=O})}),
style:_.NL({color:function(){return G().secondaryTextColor}}),
"client-ve-type":264688},_.F(_.IY,{text:A}))),_.F("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.F(_.Xd,{each:function(){return Q().optionsData||[]}},function(K,O){var R={};
return _.F("button",{class:_.S3("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(R.learningJourneyQuizViewModelHostQuizHover=function(){return!E()},R.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=x,R.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return b(O())},R.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!I()&&L(O())},R.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return E()&&
!L(O())},R)),
"on:click":_.Jd(function(){if(E())return!1;U(O());return!1}),
style:_.NL({background:function(){var vA=O();return E()&&L(vA)?"":x()?G().optionColor:"transparent"}}),
"aria-disabled":E,"client-ve-type":264686},_.F("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.F(_.z,{cond:E,then:function(){return _.F(BOJ,{isOptionCorrect:Z,optionIndex:O,isOptionSelectedAndCorrect:b,colors:G})}}),_.F(_.IY,{text:K.optionText})))})))))}})},"ce");
BOJ=_.H(function(D){var v={};return _.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var h=D.optionIndex();return D.isOptionCorrect(h)?"0 0 24 24":"0 -960 960 960"},
class:_.S3("learningJourneyQuizViewModelHostQuizOptionIconLeading",(v.learningJourneyQuizViewModelHostQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},v)),
style:_.NL({fill:function(){return D.colors().primaryTextColor}})},_.F("path",{d:function(){var h=D.optionIndex();
return D.isOptionCorrect(h)?"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"}}))},"de");
_.c7J.idomCompat=!0;_.zh(_.c7J,"learning-journey-quiz-view-model",{props:{data:_.gj,className:_.gj}});var Xz9=_.H(function(D){var v=_.P((0,_.Ke4)(function(){var x;return{targetId:(x=D.data().config)==null?void 0:x.suspenseKey,contents:[D.data()]}})).next().value,h=_.xd().resolve(_.fx),a=function(){var x=v().contents.length>0?v().contents[0]:void 0;
return x==null?void 0:x.config},Q=function(){var x;
return(x=a())==null?void 0:x.entityTriggerConfig},G=_.l7(tG7,function(){var x,f;
return(f=(x=Q())==null?void 0:x.entityKey)!=null?f:""});
_.bW(function(){var x,f,C,U=(C=Number((x=Q())==null?void 0:(f=x.invalidationTimestamp)==null?void 0:f.seconds))!=null?C:0,L,Z,E;if(((E=Number((L=G())==null?void 0:(Z=L.lastUpdated)==null?void 0:Z.seconds))!=null?E:0)>U){var I;(x=(I=a())==null?void 0:I.continuationCommand)&&h.resolveCommand(x)}},"FaC8z");
return _.F("yt-suspense-view-model",{class:_.S3("ytSuspenseViewModelHost")},_.F(_.c4,{data:function(){var x;return(x=a())==null?void 0:x.contents}},{lockupViewModel:_.sp}))},"fe");var A7s=_.H(function(D){var v=_.fb(D,{palette:void 0,isLastItem:!1}),h=v.palette,a=v.isLastItem,Q=function(){return D.data().isHighlighted},G=function(){var C;
return yIc((C=h())==null?void 0:C.iconDisabledColor)},x=function(){var C;
return yIc((C=h())==null?void 0:C.primaryTitleColor)},f=function(){var C;
return yIc((C=h())==null?void 0:C.secondaryTitleColor)};
v={};return _.F("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.ML(_.eb(function(){return D.data().rendererContext}))},_.F(_.c4,{data:function(){return D.data().thumbnail}},{thumbnailViewModel:_.lF}),_.F("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.F("div",{class:_.S3("ytMacroMarkerListItemViewModelTimeDescription",(v.ytMacroMarkerListItemViewModelHighlighted=Q,v)),
style:_.NL({"background-color":function(){return Q()?x():G()},
color:function(){return Q()?"":f()}})},_.F(_.IY,{text:function(){return D.data().timestamp}})),_.F("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.NL({"background-color":function(){return a()?"transparent":G()}})}),_.F("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Q()?x():f())}},_.F(_.IY,{text:function(){return D.data().title}}))))},"ge");_.fd=_.H(function(D){function v(VO){b("transform:translateX("+(_.eA("HTML_DIR")==="rtl"?"":"-")+VO+"px)")}
function h(VO){return Math.min(Math.max(VO,0),d()-vA())}
function a(){var VO=O()+Z4();return Q()?(Math.round(vA()/VO)||1)*VO:0}
var Q=function(){return D.data().items||[]},G=function(){return D.data().previousButton},x=function(){return D.data().nextButton},f=function(){var VO,Pm;
return(Pm=(VO=D.disableArrows)==null?void 0:VO.call(D))!=null?Pm:!1},C=function(){var VO;
return!((VO=D.forceNarrowLayout)==null||!VO.call(D))},U=_.SM(function(){var VO;
return!((VO=D.centerAlignItems)==null||!VO.call(D))&&d()<=vA()},void 0,"Uto0kc"),L=_.va("horizontal-shelf-view-model"),Z=_.va("div"),E=_.P(_.Zq(0,void 0,"G0xZB")),I=E.next().value,S=E.next().value;
E=_.P(_.Zq(0,void 0,"kqCYFf"));var B=E.next().value,A=E.next().value,d=B;B=_.P(_.Zq("",void 0,"Hh6Uye"));E=B.next().value;var b=B.next().value;B=_.P(_.Zq(0,void 0,"yMGBKb"));var W=B.next().value,K=B.next().value,O=W;B=_.P(_.Zq(0,void 0,"VChthd"));W=B.next().value;var R=B.next().value,vA=W;B=_.P(_.Zq(!1,void 0,"qJlhhe"));var f7=B.next().value,xL=B.next().value;B=_.P(_.Zq(0,void 0,"x7H94"));W=B.next().value;var kL=B.next().value,Z4=W;B=_.P(_.Zq(0,void 0,"ksuUee"));var S2=B.next().value,s8=B.next().value;
B=_.P(_.Zq("50%",void 0,"uxCxde"));var Xf=B.next().value,dJ=B.next().value,R4=function(){var VO,Pm=(VO=D.data())==null?void 0:VO.responsiveContainerConfiguration,Yp,C3;return Pm?Z84(Pm==null?void 0:Pm.responsiveSize):(C3=(Yp=D.sizing)==null?void 0:Yp.call(D))!=null?C3:"STANDARD"};
B=_.SM(function(){return!f()&&I()>0},void 0,"XK60w");
W=_.SM(function(){return!f()&&I()<d()-vA()},void 0,"D22LVd");
var sF=function(){S(h(I()-a()));v(I())},rc=function(){S(h(I()+a()));
v(I())},I4=function(){L.value!==null&&jt()},q1;
_.jA(function(){jt();window.ResizeObserver?(q1=new ResizeObserver(_.b2(I4,0)),q1.observe(L.value)):window.addEventListener("resize",I4)});
_.dq(function(){if(window.ResizeObserver){var VO;(VO=q1)==null||VO.disconnect()}else window.removeEventListener("resize",I4)});
var jt=function(){var VO=L.value.clientWidth,Pm=D.includeMargin!==void 0?D.includeMargin():!1,Yp;var C3=D.hasPeek!==void 0?D.hasPeek():!((Yp=D.data())==null||!Yp.hasPeek);VO=_.Rg({containerWidth:VO,hasPeek:C3,sizing:R4(),marginSettings:Pm?C()?4:1:0});kL(VO.gutter);s8(VO.margin);K(VO.itemWidth);xL(VO.maxContainerWidth<528||C());R(VO.maxContainerWidth);Q()&&A((VO.itemWidth+VO.gutter)*Q().length-VO.gutter);if(Q()){var ZJ;if(((ZJ=D.thumbnailAspectRatio)==null?void 0:ZJ.call(D))!==void 0){var VK;dJ(O()/
SfO((VK=D.thumbnailAspectRatio)==null?void 0:VK.call(D))/2+"px")}else dJ("50%")}},rr={},Zb={};
return _.F("horizontal-shelf-view-model",{class:_.S3("ytwHorizontalShelfViewModelHost",D.className),el:L},_.F(_.z,{cond:function(){var VO;return D.data().header&&!((VO=D.horizontalShelfExperiments)==null?0:VO.call(D).hideHeader)},
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.NL({width:function(){return vA()+"px"},
padding:function(){return"0 "+S2()+"px"}})},_.F(_.c4,{data:function(){return D.data().header}},{sectionHeaderViewModel:function(VO){return _.F(_.HS,{data:VO.data,
disableHorizontalPadding:!0,forceSmallLayout:f7,useResponsiveLayout:!0})}}))}}),_.F("div",{class:_.S3("ytwHorizontalShelfViewModelOuterContainer",(rr.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return U()},rr)),
style:_.NL({"margin-top":function(){var VO,Pm=D.data().header&&!((VO=D.horizontalShelfExperiments)==null?0:VO.call(D).hideHeader),Yp;return(((Yp=D.ensureMarginTop)==null?0:Yp.call(D))&&!Pm?12:0)+"px"}})},_.F("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.NL({width:function(){return vA()+"px"},
padding:function(){return"0 "+S2()+"px"},
overflow:function(){return f()?"auto":"hidden"}})},_.F("div",{class:_.S3("ytwHorizontalShelfViewModelItems",(Zb.ytwHorizontalShelfViewModelCenterAlignItems=function(){return U()},Zb)),
el:Z,style:E},_.F(_.c4,{data:Q},{macroMarkerListItemViewModel:function(VO,Pm){return _.F("div",{style:_.NL({width:function(){return O()+"px"},
"margin-right":function(){return(Pm()===Q().length-1?0:Z4())+"px"}})},_.F(A7s,{data:VO.data,
palette:_.MK(D.palette),isLastItem:function(){return Pm()===Q().length-1}}))},
lockupViewModel:function(VO,Pm){var Yp=VO.data;return _.F("div",{style:_.NL({width:function(){return O()+"px"},
"margin-right":function(){return(Pm()===Q().length-1?0:Z4())+"px"}})},_.F(_.sp,{data:Yp,
containerType:4,sizing:R4,protectBackground:D.protectBackground,thumbnailFixedWidth:function(){return wYA(Yp())+"px"},
thumbnailTargetWidth:function(){return wYA(Yp())}}))},
suspenseViewModel:function(VO,Pm){return _.F("div",{style:_.NL({width:function(){return O()+"px"},
"margin-right":function(){return(Pm()===Q().length-1?0:Z4())+"px"}})},_.F(Xz9,{data:VO.data}))}}))),_.F(_.z,{cond:B,
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.NL({top:function(){return Xf()}})},_.F(_.c4,{data:G},{buttonViewModel:function(VO){return _.F(_.s$,{data:VO.data,
onClick:sF})}}))}}),_.F(_.z,{cond:W,
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.NL({top:function(){return Xf()}})},_.F(_.c4,{data:x},{buttonViewModel:function(VO){return _.F(_.s$,{data:VO.data,
onClick:rc})}}))}})))},"he");
_.fd.idomCompat=!0;var qSF=_.H(function(D){var v=function(){return D.data().targetId||""},h=function(){var B;
return((B=D.data())==null?void 0:B.expansionEntityKey)||""},a=_.l7(_.W54,h),Q=!0,G=function(){var B;
return((B=a())==null?void 0:B.value)===v()},x=function(B){_.xt(_.Xe("stringEntity",h(),{key:h(),
value:B?v():""}))};
_.dM(function(){Q=!1;D.data().isExpanded&&x(!0)});
var f=function(){if(G()){var B=!0;D.onCollapse!==void 0&&(B=D.onCollapse());B&&x(!1)}else x(!0)},C=_.Jd(f),U=function(){var B;
return(((B=D.accordionStyle)==null?void 0:B.call(D))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.va("div"),Z=function(){var B,A;
return(A=(B=_.k(D.data().rendererContext,_.BO))==null?void 0:B.label)!=null?A:""},E=function(){var B,A;
return{disabled:(B=D.hideIfNotExpanded)==null?void 0:B.call(D),ariaHidden:(A=D.hideIfNotExpanded)==null?void 0:A.call(D)}},I={},S={};
return _.F("yt-accordion-item-view-model",{class:_.S3("ytAccordionItemViewModelHost",D.className,(I.ytAccordionItemViewModelExpanded=function(){return G()},I.ytAccordionItemViewModelHidden=function(){var B;
return(B=D.hideIfNotExpanded)==null?void 0:B.call(D)},I.ytAccordionItemViewModelMini=U,I)),
"data-target-id":v},_.F("div",{class:"ytAccordionItemViewModelContainer"},_.F("div",{class:"ytAccordionItemViewModelLeftSection","on:click":C,title:Z,"aria-hidden":function(){var B;return(B=D.hideIfNotExpanded)==null?void 0:B.call(D)}},_.F(_.IY,{text:function(){return D.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:Z})),_.F("div",{class:"ytAccordionItemViewModelRightSection"},_.F(_.c4,{data:function(){return G()?D.data().expandButton:D.data().collapseButton}},{buttonViewModel:function(B){return _.F(_.s$,{data:B.data,
className:"ytAccordionItemViewModelToggleButton",onClick:f,buttonOverrides:E})}}))),_.F("div",{class:"ytAccordionItemViewModelContainer"},_.F("div",{class:_.S3("ytAccordionItemViewModelContent",(S.ytAccordionItemViewModelExpandedSubtitle=function(){return G()},S)),
el:L,style:_.NL({"max-height":function(){return Q?"auto":G()?L.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!G()}},_.F(_.z,{cond:function(){return!U()},
then:function(){return _.F(_.IY,{text:function(){return D.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.F(_.c4,{data:function(){return D.data().content}},{horizontalShelfViewModel:function(B){return _.F(_.fd,{data:B.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ie");_.blm=_.H(function(D){var v=_.P((0,_.Ke4)(D.data)).next().value,h=function(){return D.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},a=function(){return h()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.P(_.Zq(!0,void 0,"AbejLb")),G=Q.next().value,x=Q.next().value,f=function(){return a()&&G()},C=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){x(!G())}}},U=_.Jd(function(){v().onTitleTap&&_.r4(v().onTitleTap||{})});
Q={};return _.F("yt-accordion-view-model",{class:_.S3("ytAccordionViewModelHost",(Q.ytAccordionViewModelMinimized=function(){return f()},Q)),
"data-target-id":function(){return D.data().targetId||""}},_.F(_.z,{cond:function(){return a()||!!v().title},
then:function(){return _.F("div",{class:"ytAccordionViewModelHeader"},_.F("div",{class:"ytAccordionViewModelTitleSection"},_.F("div",{class:"ytAccordionViewModelTitleWrapper"},_.F(_.z,{cond:function(){return!!D.data().headerIcon},
then:function(){return _.F(_.Y5,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var L;return(L=D.data().headerIcon)==null?void 0:L.iconType}})}}),_.F("div",{class:"ytAccordionViewModelTitle",
"on:click":U},_.F(_.IY,{className:"ytAccordionViewModelTitleText",text:function(){return v().title}})))),_.F("div",{class:"ytAccordionViewModelButtonSection"},_.F(_.z,{cond:a,
then:function(){return _.F(_.jd,{data:C,iconName:function(){return f()?"chevron_down":"chevron_collapse"}})}})))}}),_.F("div",{class:"ytAccordionViewModelContent"},_.F(_.c4,{data:function(){return v().contents}},{accordionItemViewModel:function(L){return _.F(qSF,{data:L.data,
className:"ytAccordionViewModelRow",accordionStyle:h,hideIfNotExpanded:f,onCollapse:function(){return a()?(x(!0),!1):!0}})}})),_.F("div",null,_.F(_.z,{cond:function(){return!a()&&(!!v().disclaimerFooter||!!v().footer)},
then:function(){return _.F("div",{class:"ytAccordionViewModelFooter"},_.F(_.IY,{text:function(){return v().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.F(_.c4,{data:function(){return D.data().footer}},{flexibleActionsViewModel:function(L){return _.F(_.V8,{data:L.data,
layout:0})}}))}})))},"je");_.zh(_.blm,"yt-accordion-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=null,h=null,a,Q=(a=_.xd().resolve(_.PV(_.$5)))==null?void 0:a(),G=_.P(_.Zq(!1,void 0,"h3atzd"));a=G.next().value;var x=G.next().value;G=_.P(_.Zq(!0,void 0,"UTh8db"));var f=G.next().value,C=G.next().value,U=_.va("textarea",function(A){_.Xv(264503,A,v,function(d){v=d})}),L=function(A){x(!0);
A={learningJourneyFormData:{query:A}};_.r4(D.data().searchEndpoint||{},{form:{formData:A}});return!1},Z=_.Jd(function(A){A.target.closest("button-view-model")&&x(!0)});
G=_.Jd(function(){C(U.value.value.length===0)});
var E=_.Jd(function(A){if(A.key==="Enter"&&!A.shiftKey&&!f()){var d=A.target;A.preventDefault();L(d.value)}}),I={},S={},B={};
return _.F("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.F("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.F(_.PX,{data:function(){return D.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.F("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.F("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.F("div",{class:_.S3("ytLearningJourneyZeroStateSearchBar",(I.ytLearningJourneyZeroStateSearchBarDark=Q,I))},_.F("textarea",{class:_.S3("ytLearningJourneyZeroStateTextInput",(S.ytLearningJourneyZeroStateTextInputDark=Q,S)),el:U,"on:keyup":G,"on:keydown":E,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.F("div",{class:_.S3("ytLearningJourneyZeroStateSearchButtonContainer",(B.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,B))},_.F(_.s$,{data:function(){return _.k(D.data().searchButton,_.fH)},
className:"search-button",onClick:function(){return L(U.value.value)},
buttonOverrides:function(){return{disabled:f(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.F(_.z,{cond:function(){return!!D.data().errorBanner},
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.ML(function(A){_.Xv(264617,A,h,function(d){h=d})})},_.F(_.c4,{data:function(){return D.data().errorBanner}},{alertBannerViewModel:function(A){return _.F(_.Dlt,{data:A.data,
"client-ve-type":264617})}}))}})),_.F(_.z,{cond:a,
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.F(_.c4,{data:function(){return D.data().loader}},{learningJourneyLoaderViewModel:function(A){return _.F(_.luJ,{data:A.data})}}))},
else:function(){return _.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.F(_.z,{cond:function(){return!!D.data().learningJourneyShelf},
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.F("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().learningJourneySectionTitle}),_.F(_.c4,{data:function(){return D.data().learningJourneyShelf}},{horizontalShelfViewModel:function(A){return _.F(_.fd,{data:A.data,
centerAlignItems:!0})}}))}}),_.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.F("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().suggestedJourneySectionTitle}),_.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":Z},_.F(_.c4,{data:function(){return D.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(A){return _.F(_.V8,{data:A.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ke"),"yt-learning-journey-zero-state",{props:{data:_.gj}});var dlm=_.H(function(D){var v=D.data;return _.F("ytvl-live-leaderboard-item-action-content-view-model",{class:_.S3("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.F(_.IY,{text:function(){var h;return(h=v())==null?void 0:h.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.F(_.c4,{data:function(){return v().actionButton}},{buttonViewModel:function(h){return _.F(_.s$,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:h.data})}}))},"le");var jTR=_.H(function(D){var v=D.data;return _.F("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.S3("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.F(_.IY,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var h;return(h=v())==null?void 0:h.displayName},
ellipsisTruncate:!0}),_.F(_.c4,{data:function(){return v().badge}},{buttonViewModel:function(h){return _.F(_.s$,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:h.data})}}))},"me");_.zh(_.H(function(D){var v=D.data;return _.F("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.F("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.F(_.IY,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var h;return(h=v())==null?void 0:h.rank}})),_.F("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2})),_.F("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.F(_.c4,{data:function(){return v().content}},{liveLeaderboardItemChannelContentViewModel:jTR,
liveLeaderboardItemActionContentViewModel:dlm})),_.F(_.IY,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var h;return(h=v())==null?void 0:h.points}}))},"ne"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;return _.F("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.F(_.IY,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var h,a;return(h=v())==null?void 0:(a=h.ranking)==null?void 0:a.rank}}),_.F("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2})),_.F(_.IY,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var h,a;return(h=v())==null?void 0:(a=h.channelContent)==null?void 0:a.channelName}}),_.F(_.IY,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var h;return(h=v())==null?void 0:h.points}}))},"oe"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.gj}});var sTy=_.H(function(D){D=_.fb(D,{wrapper:!1}).wrapper;return _.F(_.z,{cond:D,then:function(){return _.F("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.F("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.F("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"pe");
sTy.idomCompat=!0;var ml1=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Hl4=_.H(function(D){var v=D.data;var h=_.ML(),a=_.SM(function(){return v().command},void 0,"fyYsT");
_.bW(function(){a()&&_.iP(a(),{form:{element:h.value}})},"B0nxdb");
return _.F("div",{el:h,class:"YtQrCodeRendererHostContainer"},_.F(_.z,{cond:function(){return v().qrCodeImage},
then:function(Q){return _.F(_.PX,{data:Q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.F(_.z,{cond:function(){return v().spinner},
then:function(){return _.F(sTy,null)}})}}),_.F(_.z,{cond:function(){return v().label},
then:function(Q){return _.F(_.IY,{text:Q,className:"YtQrCodeRendererHostLabel"})}}),_.F(_.z,{cond:function(){return v().labels},
then:function(Q){return _.F("div",{class:"YtQrCodeRendererHostLabels"},_.F(_.Xd,{each:Q},function(G){return _.F(_.IY,{text:G})}))}}))},"se");_.zh(_.H(function(D){var v=D.data;var h=_.SM(function(){return v().qrEntityKey},void 0,"M0PrY"),a=_.SM(function(){return v().deleteEntityOnDismiss},void 0,"QZa4g"),Q=_.SM(function(){return v().command},void 0,"wEOxUe"),G=_.l7(I1c,h);
D=_.SM(function(){return v().qrCodeImage},void 0,"UO5oub");
var x=_.SM(function(){return v().style&&ml1.includes(v().style)},void 0,"Op9kZd"),f=_.Mb({visibilityCallback:function(C){C&&Q()&&_.iP(Q())},
showOption:{calledOnce:!0,state:"visible"}});_.jA(function(){_.dq(function(){a()&&h()&&_.P8().dispatch(_.Xe("qrCodeEntity",h()))})});
return _.F("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.ML(f)},_.F(_.z,{cond:x,then:function(){return _.F(_.z,{cond:G,then:function(C){return _.F(Hl4,{data:C})}})}}),_.F(_.z,{cond:D,
then:function(C){return _.F(_.PX,{data:C,alt:""})}}))},"qe"),"yt-qr-code-renderer",{props:{data:_.gj}});var wzJ=_.H(function(D){var v=function(){return _.uu(1728053247&(D.barColor!==void 0?pS(D.barColor()):4278190080))};
return _.F("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.F(y7b,{animationDelay:0,percentWidth:100,barColor:function(){return v()}}),_.F("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.F("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+v()}})),_.F(y7b,{animationDelay:0,
percentWidth:100,barColor:function(){return v()}}),_.F(y7b,{animationDelay:600,
percentWidth:60,barColor:function(){return v()}}))},"te"),y7b=_.H(function(D){return _.F("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+D.percentWidth()+"%"}},_.F("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var v=D.animationDelay(),h=D.barColor();return"animation-delay:"+v+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+h+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"ue");var eKM;_.nTF=_.H(function(D){function v(A){x(A)}
var h=D.data;var a=_.va("yt-video-overview-view-model"),Q=_.$X("div");D=_.P(_.Zq(-1,void 0,"qaDSu"));var G=D.next().value,x=D.next().value;D=_.P(_.Zq(0,void 0,"Vz681c"));var f=D.next().value,C=D.next().value,U={},L=_.l7(e48,function(){return h().asyncDataEntityKey}),Z=function(){var A;
if((A=L())==null?0:A.videoOverviewViewModel){var d;return _.k((d=L())==null?void 0:d.videoOverviewViewModel,Dyb)}return h()};
_.jA(function(){C(Math.min((a.value.clientWidth-24)/4-8,72))});
var E=function(A){x(A);(Q==null?0:Q.value)&&Q.value.children[A]&&Q.value.children[A].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
QVf(a,function(){var A;if((A=Z())==null||!A.inlinePlaybackEndpoint)return null;var d;A=U==null?void 0:(d=U.thumbnailElRef)==null?void 0:d.value;if(!A)return null;var b;d=(b=Z())==null?void 0:b.inlinePlaybackEndpoint;b=_.k(d,Sjt);return{multipleVideoPreviewData:{data:(b==null?0:b.playerDescriptors)&&(b==null?0:b.playerDescriptors.length)?b.playerDescriptors:[],thumbnailElement:A,trackingParams:"test",callbacks:{onPlaybackStarted:E},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var I=function(){var A;return((A=Z())==null?void 0:A.headerSubtext)!==void 0?!0:!1},S=function(){var A,d=pS((A=Z())==null?void 0:A.titleColor);
return d?"color: "+_.uu(d)+";":void 0},B=function(){var A,d=pS((A=Z())==null?void 0:A.subtextColor);
return d?"color: "+_.uu(d)+";":void 0};
return _.F("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:a,style:function(){var A,d=pS((A=Z())==null?void 0:A.backgroundColor);return d?"background-color: "+_.uu(d)+";":void 0}},_.F(_.z,{cond:function(){var A;
return(A=Z())==null?void 0:A.isLoading},
then:function(){return _.F(wzJ,{barColor:function(){var A;return(A=Z())==null?void 0:A.titleColor}})},
else:function(){return _.F(_.xf,null,_.F("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.F("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return S()}},_.F(_.IY,{text:function(){var A;
return(A=Z())==null?void 0:A.headerText}})),_.F(_.z,{cond:I,
then:function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.F("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return B()}},_.F(_.Y5,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.F("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return B()}},_.F(_.IY,{text:function(){var A;
return(A=Z())==null?void 0:A.headerSubtext}})))}})),_.F("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.F(_.c4,{data:function(){var A;
return(A=Z())==null?void 0:A.thumbnail}},{thumbnailViewModel:function(A){return _.F(_.lF,{data:A.data,
aspectRatio:0,playbackRef:aA8(U)})}})),_.F(_.z,{cond:function(){var A,d,b,W;
return((A=Z())==null?void 0:(d=A.listItems)==null?void 0:d.length)!==void 0&&((b=Z())==null?void 0:(W=b.listItems)==null?void 0:W.length)>0?!0:!1},
then:function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Q},_.F(_.Xd,{each:function(){var A;return(A=Z())==null?void 0:A.listItems}},function(A,d){return _.F(eKM,{image:A.image,
index:d,isSelected:function(){return d()===G()},
onClick:v,itemWidth:f})}))}}),_.F("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.F("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return S()}},_.F(_.IY,{text:function(){var A,d,b,W,K,O,R;
return(R=(A=Z())==null?void 0:(d=A.listItems)==null?void 0:(b=d[G()])==null?void 0:b.headline)!=null?R:(W=Z())==null?void 0:(K=W.listItems)==null?void 0:(O=K[0])==null?void 0:O.headline}})),_.F("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return B()}},_.F(_.IY,{text:function(){var A,d,b,W,K,O,R;
return(R=(A=Z())==null?void 0:(d=A.listItems)==null?void 0:(b=d[G()])==null?void 0:b.subtext)!=null?R:(W=Z())==null?void 0:(K=W.listItems)==null?void 0:(O=K[0])==null?void 0:O.subtext}}))))}}))},"ve");
eKM=_.H(function(D){var v=D.image;var h=D.itemWidth;var a=D.index;var Q=D.isSelected;var G=D.onClick;D=_.Jd(function(){a!==void 0&&G!==void 0&&G(a());return!1});
var x={};return _.F("div",{class:_.S3("ytGenAiVideoOverviewViewModelCarouselItem",(x.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Q==null?void 0:Q()},x)),
style:function(){return"width: "+h()+"px;"},
"on:click":D},_.F(_.PX,{data:v,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.F(_.z,{cond:function(){return Q==null?void 0:Q()},
then:function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.F("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"we");
_.nTF.idomCompat=!0;_.zh(_.nTF,"yt-video-overview-view-model",{props:{data:_.gj}});_.OlM=_.H(function(D){var v=D.data;var h=D.topbarOffset;var a,Q=((a=_.xd().resolve(_.PV(_.$5)))==null?void 0:a())||!1;return _.F("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var G=v();var x,f,C=Q?(x=G.config)==null?void 0:x.darkThemeBackgroundColor:(f=G.config)==null?void 0:f.lightThemeBackgroundColor;G=C?_.rT(C):void 0;G="background-color: "+G+";";h!==void 0&&(G+="top: -"+h()+"px;");return G},
"aria-hidden":!0},_.F(_.z,{cond:function(){var G,x,f;return!!((G=v().backgroundImageConfig)==null?0:(x=G.image)==null?0:(f=x.sources)==null?0:f.length)},
then:function(){return _.F(_.PX,{data:function(){var G;return(G=v().backgroundImageConfig)==null?void 0:G.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.F("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+nwc(Q,v().gradientColorConfig)+";"}}))},"xe");
_.OlM.idomCompat=!0;var K71=_.H(function(D){var v=D.data;var h=D.isOverlay;return _.F("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.F("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.F(_.c4,{data:function(){return v().header}},{sectionHeaderViewModel:function(a){return _.F(_.HS,{data:a.data,
isOverlay:h})}})),_.F("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.F(_.c4,{data:function(){return v().channelInfoButtons}},{flexibleActionsViewModel:_.V8})),_.F("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.F(_.c4,{data:function(){return v().description}},{descriptionPreviewViewModel:function(a){return _.F(_.mo,{data:a.data,
isOverlay:h})}})))},"ye");
K71.idomCompat=!0;var TOF=_.H(function(D){var v=D.data;var h={};return _.F("factoid-view-model",{class:_.S3("ytwFactoidViewModelHost",(h.ytwFactoidViewModelHostOverlay=D.isOverlay,h))},_.F(_.IY,{text:function(){return v().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.F(_.IY,{text:function(){return v().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"ze");
TOF.idomCompat=!0;var RKF=_.H(function(D){var v=D.data;var h=D.isOverlay;return _.F("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.F(_.c4,{data:function(){return v().factoids}},{factoidViewModel:function(a){return _.F(TOF,{data:a.data,
isOverlay:h})}}))},"Ae");
RKF.idomCompat=!0;_.ilb=_.H(function(D){var v=D.data;var h=D.isOverlay;return _.F("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.F(_.c4,{data:function(){return v().items}},{channelInfoViewModel:function(a){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(K71,{data:a.data,
isOverlay:h}))},
coursePerksViewModel:function(a){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(k_b,{data:a.data,isOverlay:h}))},
descriptionPreviewViewModel:function(a){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(_.mo,{data:a.data,isOverlay:h}))},
factoidsRowViewModel:function(a){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(RKF,{data:a.data,isOverlay:h}))},
progressViewModel:function(a){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(SS9,{data:a.data,isOverlay:h}))}}))},"Be");var W7t=_.H(function(D){return _.F("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.F(_.c4,{data:function(){return D.data().content}},{courseMetadataViewModel:function(v){return _.F(_.ilb,{data:v.data,
isOverlay:D.isOverlay})},
progressViewModel:function(v){return _.F(SS9,{data:v.data})}}))},"Ce");var tmM=_.H(function(D){var v=D.data;D=D.className;var h=function(){var Q;return _.wp((Q=v())==null?void 0:Q.rendererContext)},a={};
a=(a.dynamicTextViewModelHost=!0,a.dynamicTextViewModelHostTappable=function(){return h()},a);
return _.F("yt-dynamic-text-view-model",{el:_.ML(_.eb(function(){var Q;return(Q=v())==null?void 0:Q.rendererContext})),
role:function(){return h()?"link":void 0},
tabindex:function(){return h()?0:void 0},
class:_.S3(D,a)},_.F("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Q,G,x;return(x=(G=_.k((Q=v())==null?void 0:Q.rendererContext,_.BO))==null?void 0:G.label)!=null?x:""}},_.F(_.IY,{text:function(){return v().text},
userInput:!0})))},"De");
tmM.idomCompat=!0;_.Cd=_.H(function(D){var v=D.data;var h=D.isPositionRelative;var a=_.Kx2("(max-width: 527.9px)"),Q=function(){var G,x;return(x=(G=v())==null?void 0:G.style)!=null?x:"IMAGE_BANNER_STYLE_FULL_BLEED"};
D={};return _.F("yt-image-banner-view-model",{el:_.ML(_.eb(function(){var G;return(G=v())==null?void 0:G.rendererContext})),
class:_.S3((D.ytImageBannerViewModelHost=!0,D.ytImageBannerViewModelInset=function(){return TQi(Q())},D.ytImageBannerViewModelPositionAbsolute=function(){return _.sY(!0)&&!(h==null?0:h())},D.ytImageBannerViewModelSmallInset=function(){return TQi(Q())&&a()},D.ytImageBannerViewModelTappable=function(){var G;
return _.wp((G=v())==null?void 0:G.rendererContext)},D))},_.F(_.z,{cond:function(){var G;
return(G=v())==null?void 0:G.image},
then:function(){return _.F(_.PX,{data:function(){return v().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.F(_.c4,{data:function(){var G;
return(G=v())==null?void 0:G.overlays}},{thumbnailHoverOverlayViewModel:$u}))},"Ee");
_.Cd.idomCompat=!0;var r79;r79=_.H(function(D){var v=D.condition;var h=D.content;return _.F(_.z,{cond:v,then:function(){return _.F("div",{class:"yt-page-header-view-model__scroll-container"},h())},
else:function(){return h()}})},"Fe");
_.uVJ=_.H(function(D){var v=D.data;var h=D.noPadding;var a=D.enableBanner;var Q=D.cinematicContainerTopbarOffset;var G=D.allowCinematicContainerOverflow;var x=D.displayAsSidebar;var f=D.displayAsPanel;var C=D.alwaysUseMediumTextDescription;var U=R4r(),L=function(){return!!v().image||!!v().animatedImage},Z=function(){return!!v().background},E=function(){return(x==null?0:x())||(f==null?0:f())?1:U()},I=function(){return E()===1},S=function(){return I()||E()===2},B=function(){return E()===4},A=function(){var S2=
v();
var s8=!!v().heroImage;var Xf=E(),dJ=ioi(v()),R4=x==null?void 0:x(),sF=!S2.metadata,rc;if(rc=s8?_.k(S2.heroImage,KZF):_.k(S2.animatedImage||S2.image,KZF)){S2=rc.style;var I4=rc.layoutMode;if(I4!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(rc=A_c(XG2(rc)),s8)s8=Ooo(Xf,S2,I4,rc,R4);else b:if(sF)s8=Xf===1?{size:48}:{size:72};else switch(Xf){case 1:s8={size:72};break b;case 2:s8={size:120};break b;default:s8=dJ<4?{size:120}:{size:160}}else s8=void 0}else s8={size:0};return s8};
D={};D=_.S3((D["yt-page-header-view-model"]=!0,D["yt-page-header-view-model--no-padding"]=function(){return!(h==null||!h())},D["yt-page-header-view-model--small-top-padding"]=function(){return I()&&!v().actions&&!(f==null?0:f())||E()===2&&!(L()||v().heroImage)},D["yt-page-header-view-model--small-bottom-padding"]=function(){return S()&&!v().actions&&!(f==null?0:f())},D["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(G==null?0:G())},D["yt-page-header-view-model--display-as-sidebar"]=
x,D));
var d={},b=_.S3((d["yt-page-header-view-model__page-header-headline"]=!0,d["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var S2;return(S2=A())==null?void 0:S2.allowFullWidth},d)),W=function(){var S2;
return S()&&!((S2=A())==null?0:S2.allowFullWidth)},K=function(){return I()&&(!!v().heroImage||L())&&ioi(v())>0},O=function(){return K()&&(f==null?void 0:f())};
d={};var R=_.S3((d["yt-page-header-view-model__page-header-title"]=!0,d["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!K()},d["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return K()&&!O()},d["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=O,d["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=Z,d));
d={};var vA=_.S3((d["yt-page-header-view-model__page-header-headline-image"]=!0,d["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!v().heroImage&&S()},d));
d={};var f7=_.S3((d["yt-page-header-view-model__page-header-banner-container"]=a,d["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var S2;return(a==null?void 0:a())&&((S2=_.k(v().banner,_.R7t))==null?void 0:S2.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},d));
d={};var xL=_.S3((d["yt-page-header-view-model__page-header-content-metadata"]=!0,d["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=Z,d));d={};var kL=_.S3((d["yt-page-header-view-model__page-header-flexible-actions"]=!0,d["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!v().metadata||S()},d["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!S()},d));
d={};var Z4=_.S3((d["yt-page-header-view-model__page-header-attribution"]=!0,d["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=Z,d));return _.F("yt-page-header-view-model",{class:D},_.F(_.z,{cond:Z,then:function(){return _.F("div",{class:"yt-page-header-view-model__page-header-background"},_.F(_.c4,{data:function(){return v().background}},{cinematicContainerViewModel:function(S2){return _.F(_.OlM,{data:S2.data,
topbarOffset:Q})}}))}}),_.F(r79,{condition:function(){return!(x==null||!x())},
content:function(){return _.F("div",{class:"yt-page-header-view-model__page-header-content"},_.F(_.z,{cond:function(){return(a==null?void 0:a())&&v().banner},
then:function(){return _.F("div",{class:f7},_.F(_.c4,{data:function(){return v().banner}},{imageBannerViewModel:_.Cd}))}}),_.F("div",{class:b},_.F(_.z,{cond:L,
then:function(){return _.F(_.c4,{data:function(){var S2;if(!(S2=v().animatedImage)){S2=v();if(L()){var s8=S2=Object.assign({},S2),Xf=E(),dJ=ioi(v()),R4=s8.image,sF=_.k(R4,Tj4),rc=sF==null?void 0:sF.avatar,I4=_.k(rc,_.nj);if(R4&&rc&&I4){switch(Xf){case 1:I4.avatarImageSize="AVATAR_SIZE_XL";break;case 2:I4.avatarImageSize="AVATAR_SIZE_XXL";break;default:dJ<4?I4.avatarImageSize="AVATAR_SIZE_XXL":I4.avatarImageSize="AVATAR_SIZE_XXXL"}_.eQ(rc,_.nj,Object.assign({},I4));sF.avatar=Object.assign({},rc);_.eQ(R4,
Tj4,Object.assign({},sF));s8.image=Object.assign({},R4)}}S2=S2.image}return S2}},{contentPreviewImageViewModel:function(S2){return _.F(_.XE,{data:S2.data,
className:vA,imageSizeConfig:A})},
decoratedAvatarViewModel:function(S2){return _.F(_.GG,{data:S2.data,className:vA})}})}}),_.F(_.z,{cond:function(){return!!v().heroImage&&!W()},
then:function(){return _.F(_.c4,{data:function(){return v().heroImage}},{contentPreviewImageViewModel:function(S2){return _.F(_.XE,{data:S2.data,
className:vA,imageSizeConfig:A})}})}}),_.F("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.F(_.z,{cond:function(){return!!v().heroImage&&W()},
then:function(){return _.F("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.F(_.c4,{data:function(){return v().heroImage}},{contentPreviewImageViewModel:function(S2){return _.F(_.XE,{data:S2.data,
className:vA,imageSizeConfig:A})}}))}}),_.F(_.c4,{data:function(){return v().title}},{dynamicTextViewModel:function(S2){return _.F(tmM,{data:S2.data,
className:R})}}),_.F(_.c4,{data:function(){return v().metadata}},{contentMetadataViewModel:function(S2){return _.F(_.Aj,{data:S2.data,
layout:function(){return I()?1:0},
className:xL,isOverlay:Z,useMediumText:B})}}),_.F(_.z,{cond:function(){return v().description&&!I()},
then:function(){return _.F(_.c4,{data:function(){return v().description}},{descriptionPreviewViewModel:function(S2){return _.F(_.mo,{data:S2.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:Z,maxLinesOverride:function(){return I()?void 0:1},
useMediumText:function(){return(C==null?void 0:C())||B()}})}})}}),_.F(_.z,{cond:function(){return v().attribution&&!S()},
then:function(){return _.F(_.c4,{data:function(){return v().attribution}},{attributionViewModel:function(S2){return _.F(BF4,{data:S2.data,
className:Z4,useMediumText:B})}})}}),_.F(_.z,{cond:function(){return v().actions&&!S()},
then:function(){return _.F(_.c4,{data:function(){return v().actions}},{flexibleActionsViewModel:function(S2){return _.F(_.V8,{data:S2.data,
layout:function(){return Wxf(E())},
className:kL})}})}}))),_.F("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.F(_.z,{cond:function(){return v().description&&I()},
then:function(){return _.F(_.c4,{data:function(){return v().description}},{descriptionPreviewViewModel:function(S2){return _.F(_.mo,{data:S2.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:Z,maxLinesOverride:function(){return I()?void 0:1},
useMediumText:function(){return(C==null?void 0:C())||B()}})}})}}),_.F(_.z,{cond:function(){return v().attribution&&S()},
then:function(){return _.F(_.c4,{data:function(){return v().attribution}},{attributionViewModel:function(S2){return _.F(BF4,{data:S2.data,
className:Z4,useMediumText:B})}})}}),_.F(_.z,{cond:function(){return v().actions&&S()},
then:function(){return _.F(_.c4,{data:function(){return v().actions}},{flexibleActionsViewModel:function(S2){return _.F(_.V8,{data:S2.data,
layout:function(){return Wxf(E())},
className:kL})}})}})),_.F("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.F(_.c4,{data:function(){return v().bottomMetadataFlexibleContainer}},{flexibleContainer:function(S2){return _.F(W7t,{data:S2.data,
isOverlay:Z})}})))}}))},"Ge");
_.uVJ.idomCompat=!0;_.zh(_.H(function(D){var v=_.P(_.Zq(!1,void 0,"vvzTj")),h=v.next().value,a=v.next().value;return _.F("yt-official-card-view-model",{class:_.S3("ytOfficialCardViewModelHost",D.className),style:_.NL({"background-color":function(){var Q,G=pS((Q=D.data())==null?void 0:Q.backgroundColor);return G?_.uu(G):void 0}})},_.F(_.c4,{data:function(){return D.data().header}},{pageHeaderViewModel:function(Q){return _.F(_.uVJ,{data:Q.data,
noPadding:!0})}}),_.F(_.c4,{data:function(){return D.data().contents}},{horizontalShelfViewModel:function(Q){return _.F(_.fd,{data:Q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.F(_.z,{cond:h,
then:function(){return _.F("div",{class:"ytOfficialCardViewModelExpandedContent"},_.F(_.c4,{data:function(){return D.data().expandedContents}},{horizontalShelfViewModel:function(Q){return _.F(_.fd,{data:Q.data,
sizing:"MINI"})}}),_.F("div",{class:"ytOfficialCardViewModelCollapseButton"},_.F(_.c4,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
onClick:function(){a(!h())}})}})))},
else:function(){return _.F("div",{class:"ytOfficialCardViewModelExpandButton"},_.F(_.c4,{data:function(){return D.data().expandButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
onClick:function(){a(!h())}})}}))}}))},"He"),"yt-official-card-view-model",{props:{data:_.gj,
className:_.gj}});var DTp=_.H(function(D){var v,h=(v=_.xd().resolve(_.PV(_.$5)))==null?void 0:v();return _.F("ytw-search-friction-view-model",{class:_.S3("ytwSearchFrictionViewModelHost",D.className)},_.F("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.F("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.F(_.z,{cond:function(){return h&&D.data().darkThemeImage?D.data().darkThemeImage:D.data().image},
then:function(a){return _.F(_.PX,{data:a,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.F(_.c4,{data:function(){return D.data().overflowMenuButton}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.F(_.IY,{text:function(){return D.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.F(_.Xd,{each:function(){return D.data().bodyText||[]}},function(a){return _.F(_.IY,{text:a,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.F(_.c4,{data:function(){return D.data().actions}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.F(_.IY,{text:function(){return D.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.F(_.IY,{text:function(){return D.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ie");
DTp.idomCompat=!0;_.zh(DTp,"ytw-search-friction-view-model",{props:{data:_.gj,className:_.gj}});_.oD=_.H(function(D){var v=_.va("markdown-div"),h,a=(h=_.xd().resolve(_.PV(_.$5)))==null?void 0:h();_.bW(function(){var Q=v.value;var G=new oCp,x=new Map(G.JSC$9303_sanitizerTable.globalAttributePolicies);x.set("style",{policyAction:4});G.JSC$9303_sanitizerTable=new ds(G.JSC$9303_sanitizerTable.allowedElements,G.JSC$9303_sanitizerTable.elementPolicies,G.JSC$9303_sanitizerTable.allowedGlobalAttributes,x,G.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes);var f=["data-time"];if(f===void 0)x=
new Set(G.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes),x.add("data-"),G.JSC$9303_sanitizerTable=new ds(G.JSC$9303_sanitizerTable.allowedElements,G.JSC$9303_sanitizerTable.elementPolicies,G.JSC$9303_sanitizerTable.allowedGlobalAttributes,G.JSC$9303_sanitizerTable.globalAttributePolicies,x);else{x=new Set(G.JSC$9303_sanitizerTable.allowedGlobalAttributes);f=_.P(f);for(var C=f.next();!C.done;C=f.next()){C=C.value;if(C.indexOf("data-")!==0)throw Error("ka`"+C);x.add(C)}G.JSC$9303_sanitizerTable=
new ds(G.JSC$9303_sanitizerTable.allowedElements,G.JSC$9303_sanitizerTable.elementPolicies,x,G.JSC$9303_sanitizerTable.globalAttributePolicies,G.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes)}x=new Set(G.JSC$9303_sanitizerTable.allowedGlobalAttributes);x.add("class");G.JSC$9303_sanitizerTable=new ds(G.JSC$9303_sanitizerTable.allowedElements,G.JSC$9303_sanitizerTable.elementPolicies,x,G.JSC$9303_sanitizerTable.globalAttributePolicies,G.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes);
_.VM(Q,_.PSp(G.build(),rI4(D.text())));usI(v.value)},"OZ439c");
h={};return _.F("div",null,_.F("markdown-div",{class:_.S3("ytwMarkdownDivHost",(h.ytwMarkdownDivDark=a,h.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Q;return((Q=D.isSmallText)==null?void 0:Q.call(D))||!1},h.ytwMarkdownDivHostWrapCodeBlocks=function(){var Q;
return((Q=D.wrapCodeBlocks)==null?void 0:Q.call(D))||!1},h.ytwMarkdownDivHostEnableDefaultStyling=function(){var Q;
return!((Q=D.disableDefaultStyling)==null?0:Q.call(D))},h)),
el:v}))},"Ke");
_.oD.idomCompat=!0;var vhy=_.H(function(D){var v=D.imageData;var h=_.MK(D.isInList,!1),a=function(){return h()?{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 _.F("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.F(_.z,{cond:function(){return v().image},
then:function(Q){return _.F(_.PX,{data:Q,alt:function(){return a().alt},
contentMode:function(){return a().contentMode},
targetWidth:function(){return a().targetWidth},
targetHeight:function(){return a().targetHeight},
className:function(){return a().className}})}}),_.F("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.F("div",{class:_.S3("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.F(_.IY,{text:function(){return v().title}})),_.F(_.Xd,{each:function(){var Q;
return(Q=v().description)!=null?Q:[]}},function(Q){return _.F("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.F(FA,{content:Q}))})))},"Le"),haF=_.H(function(D){var v=D.list;
var h=function(){var a;return(a=v().items)!=null?a:[]};
return _.F("div",{class:"ytwGenAiRichTextViewModelListContent"},_.F(_.z,{cond:function(){return v().title},
then:function(a){return _.F("div",{class:_.S3("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.F(_.IY,{text:a}))}}),_.F(_.z,{cond:function(){return v().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.F("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.F(_.Xd,{each:h},function(a){return _.F("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.F(FA,{content:a,isInList:!0}))}))}}),_.F(_.z,{cond:function(){return v().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.F("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.F(_.Xd,{each:h},function(a){return _.F("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.F(FA,{content:a,isInList:!0}))}))}}),_.F(_.z,{cond:function(){return v().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.F("div",{class:"ytwGenAiRichTextViewModelImageList"},_.F(_.Xd,{each:h},function(a){return _.F("div",{class:"ytwGenAiRichTextViewModelListItem"},_.F(FA,{content:a,isInList:!0}))}))}}))},"Me"),aHt=_.H(function(D){var v=D.table;
return _.F("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.F("thead",null,_.F("tr",null,_.F(_.Xd,{each:function(){var h,a;return(a=(h=v().header)==null?void 0:h.cells)!=null?a:[]}},function(h){return _.F("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.F(_.Xd,{each:function(){return h.contents}},function(a){return _.F(FA,{content:a})}))}))),_.F("tbody",null,_.F(_.Xd,{each:function(){var h;
return(h=v().rows)!=null?h:[]}},function(h){return _.F("tr",null,_.F(_.Xd,{each:function(){return h.cells}},function(a){return _.F("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.F(_.Xd,{each:function(){return a.contents}},function(Q){return _.F(FA,{content:Q})}))}))})))},"Ne"),FA=_.H(function(D){var v=D.content;
var h=_.MK(D.isInList,!1),a=function(){var Q,G;return(G=(Q=v().contentBlock)==null?void 0:Q.contents)!=null?G:[]};
return _.F("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.F(_.z,{cond:function(){return v().text},
then:function(Q){return _.F(_.IY,{className:"ytwGenAiRichTextViewModelText",text:Q})}}),_.F(_.z,{cond:function(){return v().image},
then:function(Q){return _.F(vhy,{imageData:Q,isInList:h})}}),_.F(_.z,{cond:function(){return v().list},
then:function(Q){return _.F(haF,{list:Q})}}),_.F(_.z,{cond:function(){return v().contentBlock},
then:function(){return _.F("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.F(_.Xd,{each:a},function(Q){return _.F(FA,{content:Q,isInList:!1})}))}}),_.F(_.z,{cond:function(){return v().table},
then:function(Q){return _.F(aHt,{table:Q})}}))},"Oe"),$Ty=_.H(function(D){var v={};
v=_.sn("ytwGenAiRichTextViewModelHost",(v.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.FH("search_overview_link_style")),v));return _.F("gen-ai-rich-text-view-model",{class:v},_.F(FA,{content:function(){return D.data().content}}))},"Pe");_.Q2b=_.H(function(D){var v=D.data;var h=function(){var B;return((B=v().loadingUi)!=null?B:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},a=function(){return v().isLoading&&(h()==="UNSPECIFIED"||h()==="GHOST_CARD")},Q=function(){return!v().isLoading},G=function(){return!!v().content&&!v().contents},x=function(){return!!v().contents},f=function(){return!!v().nextQueryButtons},C=function(){return v().isLoading&&h()==="INVISIBLE"},U=function(){var B,A;
return(A=(B=v().headerIcon)==null?void 0:B.iconType)!=null?A:""},L=function(){var B;
return(B=v().content)!=null?B:""},Z=function(){return!!v().sourcesSection},E,I=!((E=_.xd().resolve(_.PV(_.$5)))==null||!E()),S=_.SM(function(){var B=[],A=v().contents;
if(A)for(var d=0;d<A.length;d++){var b=_.k(A&&A[d],uq4);b&&B.push(b)}return B},void 0,"gcCsZb");
_.jA(function(){v().isLoading||_.ea("so_re",void 0,"search_overview_answer")});
return _.F("ytd-overview-answer-view-model",{class:function(){var B={};B=(B.ytdOverviewAnswerViewModelHost=!0,B.ytdOverviewAnswerViewModelDarkBackground=I&&!C(),B.ytdOverviewAnswerViewModelLightBackground=!I&&!C(),B);return _.sn(B)}},_.F(_.z,{cond:function(){return!C()},
then:function(){return _.F(_.xf,null,_.F("h2",null,_.F("div",{class:"ytdOverviewAnswerViewModelHeader"},_.F(_.z,{cond:U,then:function(B){return _.F("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.F(_.Y5,{icon:B}))}}),_.F("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.F("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return v().headerText}),_.F("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.F(_.IY,{text:function(){return v().headerSubtext}}))))),_.F(_.z,{cond:a,
then:function(){return _.F(DGI,null)}}),_.F(_.z,{cond:Q,
then:function(){return _.F(_.xf,null,_.F(_.z,{cond:G,then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelText"},_.F(_.oD,{text:L,isSmallText:!0}))}}),_.F(_.z,{cond:x,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelRichText"},_.F(_.Xd,{each:S},function(B){return _.F($Ty,{data:B})}))}}),_.F(_.z,{cond:f,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.F(_.c4,{data:function(){return v().nextQueryButtons}},{buttonViewModel:function(B){return _.F(_.s$,{data:B.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.fd}))}}),_.F("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.F("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.F(_.z,{cond:function(){return!!_.k(v().likeButtonViewModel,_.hp)&&!!_.k(v().dislikeButtonViewModel,_.vi)},
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.F(_.x3,{data:function(){return _.k(v().likeButtonViewModel,_.hp)},
disableIconAnimation:!0}),_.F(_.PM,{data:function(){return _.k(v().dislikeButtonViewModel,_.vi)}}))}})),_.F(_.z,{cond:function(){var B;
return(B=v().sourcesSection)==null?void 0:B.headerText},
then:function(B){return _.F("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.F(_.IY,{text:B}))}})),_.F(_.z,{cond:Z,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelSources"},_.F(_.c4,{data:function(){var B;return(B=v().sourcesSection)==null?void 0:B.sourcesShelf}},{buttonViewModel:_.s$,
horizontalShelfViewModel:function(B){return _.F(_.fd,{data:B.data,includeMargin:!0,hasPeek:!0})}}))}}),_.F(_.z,{cond:function(){return v().disclaimerText},
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.F(_.IY,{text:function(){return v().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Qe");var GV1=_.H(function(D){var v=_.fb(D,{}).data;return _.F("yt-shopping-content-line-item-view-model",{class:_.S3("ytShoppingContentLineItemViewModelHost")},_.F(_.IY,{text:function(){var h;return(h=v().text)==null?void 0:h.attributedString}}))},"Re");_.zp=_.H(function(D){D=_.fb(D,{});var v=D.data,h={};return _.F("yt-shopping-content-line-view-model",{class:_.S3("ytShoppingContentLineViewModelHost",D.className,(h.ytShoppingContentLineViewModelTruncateText=function(){return!v().wrapContent},h)),
style:_.NL({"--shopping-content-line-gap":function(){return v().itemGap?v().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return v().lineHeight?v().lineHeight+"px":void 0}})},_.F(_.Xd,{each:function(){return(v().items||[]).map(function(a){return _.k(a,fQ9)}).filter(function(a){return!!a})}},function(a){return _.F(GV1,{data:a})}))},"Se");var VrR=_.H(function(D){var v=D.data;var h=function(){var G;return((G=v().image)==null?void 0:G.height)||48},a=function(){var G;
return((G=v().image)==null?void 0:G.width)||48},Q=function(){return"width: "+a()+"px; height: "+h()+"px;"};
return _.F("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var G,x,f,C=((G=_.xd().resolve(_.PV(_.$5)))==null?0:G())?(x=v())==null?void 0:x.darkThemeBackgroundColor:(f=v())==null?void 0:f.lightThemeBackgroundColor;return"background-color: "+(C?_.uu(C):"")+";"},
el:_.ML(_.eb(function(){var G;return(G=v())==null?void 0:G.rendererContext}))},_.F(_.z,{cond:function(){var G,x;
return(x=(G=v().image)==null?void 0:G.image)!=null?x:v().thumbnail},
then:function(G){return _.F("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var x;return"background-color: "+(((x=v().image)==null?0:x.backgroundColor)?_.uu(v().image.backgroundColor):"")+";"+Q()}},_.F(_.PX,{data:G,
height:h,width:a,style:Q,alt:""}))}}),_.F("div",{class:"ytShoppingDescriptionItemViewModelText"},_.F(_.c4,{data:function(){return v().line1}},{shoppingContentLineViewModel:function(G){return _.F(_.zp,{data:G.data})}}),_.F(_.c4,{data:function(){return v().line2}},{shoppingContentLineViewModel:function(G){return _.F(_.zp,{data:G.data})}}),_.F(_.c4,{data:function(){return v().line3}},{shoppingContentLineViewModel:function(G){return _.F(_.zp,{data:G.data})}})))},"Te");var P$4=_.H(function(D){var v=D.data;var h=D.active;var a=_.va("transcript-segment-view-model");_.bW(function(){var Q,G,x,f=((Q=_.xd().resolve(_.PV(_.$5)))==null?0:Q())?(G=v())==null?void 0:G.darkThemeColorPalette:(x=v())==null?void 0:x.lightThemeColorPalette;f&&(f.additiveBackground&&a.value.style.setProperty("--timestamp-active-background-color",_.uu(f.additiveBackground)),f.textSecondary&&a.value.style.setProperty("--timestamp-active-color",_.rT(f.textSecondary)))},"TnVCnb");
D={};return _.F("transcript-segment-view-model",{class:_.S3("ytwTranscriptSegmentViewModelHost",(D.ytwTranscriptSegmentViewModelHostActive=h,D.ytwTranscriptSegmentViewModelHostModern=_.g("enable_timeline_view_modern_transcript")||_.g("enable_timeline_view_modern_transcript_fe"),D)),el:a},_.F(_.z,{cond:function(){var Q;return(Q=v())==null?void 0:Q.timestamp},
then:function(Q){var G={};return _.F(_.xf,null,_.F("div",{class:_.S3("ytwTranscriptSegmentViewModelTimestamp",(G.ytwTranscriptSegmentViewModelTimestampActive=h,G)),"aria-hidden":!0},Q),_.F("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var x=Q().split(":").map(Number),f=_.P(x.reverse());x=f.next().value;var C=f.next().value;f=f.next().value;return _.Ohc({hours:f,minutes:C,seconds:x})}))}}),_.F(_.IY,{text:function(){var Q,G,x;
return(x=(Q=v())==null?void 0:Q.attributedText)!=null?x:{content:(G=v())==null?void 0:G.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Ve");var xTJ=_.H(function(D){var v=D.data;return _.F("div",{class:"videoAttributesSectionViewModelHeader"},_.F("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.F("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return v().headerTitle}),_.F(_.z,{cond:function(){return v().headerInfoButton},
then:function(){return _.F(_.c4,{data:function(){return v().headerInfoButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.F(_.z,{cond:function(){return v().headerSubtitle},
then:function(){return _.F("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return v().headerSubtitle})}}))},"We"),Mr1=_.H(function(D){function v(B){return Math.max(Math.min(B,0),U()-f())}
var h=D.data;var a;D=_.va("div",function(B){var A=function(){L(B.clientWidth)};
A();window.ResizeObserver&&(a=new ResizeObserver(A),a.observe(B))});
var Q=_.va("div",function(B){C(B.scrollWidth)}),G=_.P(_.Zq(0,void 0,"C3XQAe")),x=G.next().value;
G=G.next().value;var f=x,C=G;G=_.P(_.Zq(0,void 0,"db7y3"));x=G.next().value;G=G.next().value;var U=x,L=G;x=_.P(_.Zq(0,void 0,"RchC7"));var Z=x.next().value,E=x.next().value;_.dq(function(){var B;(B=a)==null||B.disconnect()});
var I=function(){E(v(Z()+U()))},S=function(){E(v(Z()-U()))};
return _.F("yt-video-attributes-section-view-model",null,_.F("div",{class:"videoAttributesSectionViewModelHost"},_.F(_.z,{cond:function(){return h().headerTitle},
then:function(){return _.F(xTJ,{data:h})}}),_.F("div",{class:_.S3("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:D},_.F("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.NL({transform:function(){var B=Z();_.eA("HTML_DIR")==="rtl"&&(B*=-1);return"translateX("+B+"px)"}}),
el:Q},_.F(_.c4,{data:function(){return h().videoAttributeViewModels}},{videoAttributeViewModel:Rpt}))),_.F(_.c4,{data:function(){return h().footerButton}},{buttonViewModel:function(B){return _.F(_.s$,{data:B.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.F(_.z,{cond:function(){return Z()<0&&h().previousButton},
then:function(){return _.F("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.F(_.c4,{data:function(){return h().previousButton}},{buttonViewModel:function(B){return _.F(_.s$,{data:B.data,
onClick:I})}}))}}),_.F(_.z,{cond:function(){return Z()>U()-f()&&h().nextButton},
then:function(){return _.F("div",{class:"videoAttributesSectionViewModelRightArrow"},_.F(_.c4,{data:function(){return h().nextButton}},{buttonViewModel:function(B){return _.F(_.s$,{data:B.data,
onClick:S})}}))}})))},"Xe");
Mr1.idomCompat=!0;var fHy=_.H(function(D){var v=D.data;var h=D.active;var a={},Q={};return _.F("timeline-item-view-model",{class:_.S3("ytwTimelineItemViewModelHost",(a.ytwTimelineItemViewModelHostChapterChild=D.chapterChild,a.ytwTimelineItemViewModelModern=_.g("enable_timeline_view_modern_transcript")||_.g("enable_timeline_view_modern_transcript_fe"),a))},_.F("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.F("div",{class:_.S3("ytwTimelineItemViewModelTimestamp",(Q.ytwTimelineItemViewModelTimestampActive=
h,Q))},function(){return v().timestamp})),_.F("div",{class:"ytwTimelineItemViewModelContentItems"},_.F(_.c4,{data:function(){return v().contentItems}},{transcriptSegmentViewModel:function(G){return _.F(P$4,{data:G.data,
active:h})},
videoAttributesSectionViewModel:Mr1})))},"Ye");var C$F=_.H(function(D){var v=D.data;D={};return _.F("timeline-chapter-view-model",{class:_.S3("ytwTimelineChapterViewModelHost")},_.F("div",{class:_.S3("ytwTimelineChapterViewModelTitle",(D.ytwTimelineChapterViewModelModern=_.g("enable_timeline_view_modern_transcript")||_.g("enable_timeline_view_modern_transcript_fe"),D))},function(){return v().title}),_.F(_.c4,{data:function(){return v().contents}},{timelineItemViewModel:function(h){return _.F(fHy,{data:h.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(h){return _.F(Mr1,{data:h.data})}}))},"Ze");var ohy=_.H(function(D){var v=D.data;var h=_.va("macro-markers-panel-item-view-model"),a=_.l7(_.F5c,function(){var G;return(G=v().markersEngagementPanelSyncEntityKey)!=null?G:""}),Q=function(){var G;
return((G=a())==null?void 0:G.activeItemIndex)===v().index};
D=_.Jd(function(G){var x,f,C,U,L;return _.M(function(Z){if(Z.nextAddress==1)return G.stopPropagation(),_.H4(_.ms(G),h.value,["A".toString(),"BUTTON".toString()])?Z.return():(x=_.Rq(v().onTap))?Z.yield(_.Ig(),2):Z.return();f=Z.yieldResult;U=(C=_.k(x,_.hP))==null?void 0:C.startTimeSeconds;U===void 0||(L=f)!=null&&L.seekTo(U,!0);_.YI(Z)})});
return _.F("macro-markers-panel-item-view-model",{class:_.S3("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Q}),el:h,"on:click":D,tabindex:0,role:"button"},_.F(_.c4,{data:function(){var G;return(G=v())==null?void 0:G.item}},{timelineChapterViewModel:function(G){return _.F(C$F,{data:G.data,
active:Q})},
timelineItemViewModel:function(G){return _.F(fHy,{data:G.data,active:Q})},
videoAttributeViewModel:Rpt,shoppingDescriptionItemViewModel:VrR}))},"$e");
ohy.idomCompat=!0;_.zh(ohy,"macro-markers-panel-item-view-model",{props:{data:_.gj}});_.zh(Mr1,"yt-video-attributes-section-view-model",{props:{data:_.gj}});var FaM=_.H(function(D){var v=function(){var h,a,Q;return(Q=(h=D.data().leadingLogoAccessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label)!=null?Q:""};
return _.F("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.F(_.z,{cond:function(){return D.data().leadingLogo},
then:function(h){return _.F(_.PX,{className:"ytwFantasySectionHeaderViewModelLogo",data:h,alt:v})}}),_.F("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.F(_.IY,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return D.data().title}}),_.F(_.IY,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return D.data().subtitle}})),_.F(_.c4,{data:function(){return D.data().trailingButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"af");var zab=_.H(function(D){var v={};v=_.S3("ytwFantasyTeamViewModelHost",(v.ytwFantasyTeamViewModelCompact=function(){var Q;return!((Q=D.compact)==null||!Q.call(D))},v.ytwFantasyTeamViewModelUser=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},v.ytwFantasyTeamViewModelOpponent=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},v));
var h=function(){var Q,G,x;return(x=(Q=D.data().teamLogoAccessibility)==null?void 0:(G=Q.accessibilityData)==null?void 0:G.label)!=null?x:""},a=_.l7(L5I,function(){return D.data().teamEntityKey});
return _.F("ytw-fantasy-team-view-model",{class:v},_.F(_.z,{cond:function(){return D.data().teamLogo},
then:function(Q){return _.F(_.PX,{className:"ytwFantasyTeamViewModelLogo",data:Q,alt:h})}}),_.F("div",{class:"ytwFantasyTeamViewModelMetadata"},_.F("div",{class:"ytwFantasyTeamViewModelHeader"},_.F(_.IY,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Q;return(Q=a())==null?void 0:Q.score}}),_.F(_.Y5,{icon:function(){var Q;
return(Q=a())==null?void 0:Q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.F(_.IY,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Q;return(Q=a())==null?void 0:Q.projectedScore}})),_.F(_.IY,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return D.data().primaryText}}),_.F(_.IY,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return D.data().secondaryText}}),_.F(_.IY,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return D.data().tertiaryText}})),_.F(_.IY,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Q;return(Q=a())==null?void 0:Q.score}}))},"bf");_.zh(_.H(function(D){return _.F("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.F("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.F(_.c4,{data:function(){return D.data().summaryHeader}},{fantasySectionHeaderViewModel:FaM})),_.F(_.c4,{data:function(){return D.data().userTeam}},{fantasyTeamViewModel:zab}),_.F(_.c4,{data:function(){return D.data().opponentTeam}},{fantasyTeamViewModel:zab}))},"cf"),"fantasy-league-summary-view-model",{props:{data:_.gj}});var UTF=_.H(function(D){var v=_.fb(D,{shape:{},useCustomTabRenderable:!1}),h=v.shape;v=v.useCustomTabRenderable;var a=D.customTabRenderable,Q=function(){return h().disabled},G=function(){return h().selected},x=function(){return h().title},f=function(){return h().icon},C=_.va("yt-tab-shape");
D=_.Jd(function(Z){var E;if(!Q()&&((E=h().aTagConfig)==null?0:E.onclick))h().aTagConfig.onclick(Z);return!1});
var U=_.Jd(function(Z){if(Z.key==="Enter"||Z.key==="ArrowUp"||Z.key==="ArrowDown")Z.preventDefault(),C.value.click();return!1}),L={};
return _.F("yt-tab-shape",{class:_.S3("yt-tab-shape",function(){return h().className},(L["yt-tab-shape__tab--last-tab"]=function(){return h().isLastTab},L["yt-tab-shape--host-disabled"]=Q,L["yt-tab-shape--host-clickable"]=!a,L)),
role:a?void 0:"tab","aria-selected":G!=null?G:!1,"aria-disabled":Q,tabindex:a?void 0:0,"on:click":D,"on:keydown":U,el:C,"tab-identifier":function(){return h().identifier},
"tab-title":x},_.F(_.z,{cond:v,then:function(){return a()},
else:function(){var Z={},E={};return _.F(_.xf,null,_.F("div",{class:_.S3("yt-tab-shape__tab",(Z["yt-tab-shape__tab--tab-selected"]=G,Z))},_.F(_.z,{cond:f,then:function(I){return _.F(_.Y5,{className:"yt-tab-shape__tab-icon",icon:function(){return I().iconType}})}}),x),_.F("div",{class:_.S3("yt-tab-shape__tab-bar",(E["yt-tab-shape__tab-bar--tab-bar-selected"]=G,E))}))}}))},"df");
UTF.idomCompat={callbacks:{customTabRenderable:!0}};_.Zu4=_.H(function(D){var v=D.shape;D=_.P(_.Zq(48,void 0,"rCewuf"));var h=D.next().value,a=D.next().value;D=_.P(_.Zq(0,void 0,"aUUTWe"));var Q=D.next().value,G=D.next().value,x=function(){return v().tabs},f=_.va("yt-tab-group-shape"),C=function(){var U,L;
return(L=(U=x())==null?void 0:U.findIndex(function(Z){return Z.selected}))!=null?L:-1};
_.jA(function(){var U=f.value.querySelectorAll("yt-tab-shape"),L=C()>-1?U[C()]:void 0;_.HK.addJob(function(){a((L==null?void 0:L.getBoundingClientRect().width)||0)},8,0)});
_.bW(function(){var U=C(),L=_.HK.addJob(function(){var Z,E=((Z=f.value)==null?void 0:Z.querySelectorAll("yt-tab-shape"))||[],I;a(((I=U>-1?E[U]:void 0)==null?void 0:I.getBoundingClientRect().width)||0);for(I=Z=0;I<U;I++)Z+=E[I].offsetWidth+24;_.eA("HTML_DIR")==="rtl"&&(Z=-Z);G(Z)},8,0);
_.dq(function(){_.HK.cancelJob(L)})},"DAb5Qb");
D={};return _.F("yt-tab-group-shape",{class:_.S3("tabGroupShapeHost",(D.tabGroupShapeOverflowHidden=function(){return v().isOverflowHidden},D)),
el:f},_.F(_.z,{cond:x,then:function(U){return _.F(_.xf,null,_.F("div",{class:"tabGroupShapeTabs",role:"tablist"},_.F(_.Xd,{each:U},function(L,Z){return _.F(UTF,{shape:function(){return Object.assign({},L,{isLastTab:Z()===U().length-1})},
customTabRenderable:L.customTabRenderable,useCustomTabRenderable:!!L.customTabRenderable})})),_.F(Las,{width:h,
sliderOffset:Q}))}}))},"ff");
_.Zu4.idomCompat=!0;var Las=_.H(function(D){var v=_.MK(D.sliderOffset,0),h=D.width;return _.F("div",{class:"tabGroupShapeSlider",style:_.NL({width:function(){return h()+"px"},
transform:function(){return"translateX("+v()+"px)"}})})},"gf");var EhM=_.H(function(D){var v=function(){var G,x,f;return(f=(G=D.data().playerLogoAccessibility)==null?void 0:(x=G.accessibilityData)==null?void 0:x.label)!=null?f:""},h=_.l7(ZBO,function(){return D.data().playerEntityKey}),a={};
a=_.S3("ytwFantasyPlayerViewModelHost",(a.ytwFantasyPlayerViewModelPlaying=function(){var G;return!((G=h())==null||!G.isPlayerPlaying)},a.ytwFantasyPlayerViewModelOnField=function(){var G;
return((G=h())==null?void 0:G.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},a.ytwFantasyPlayerViewModelRedZone=function(){var G;
return((G=h())==null?void 0:G.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},a));
var Q=function(){var G,x,f,C=((G=_.xd().resolve(_.PV(_.$5)))==null?0:G())?(x=D.data().playerLogoBackgroundColor)==null?void 0:x.darkTheme:(f=D.data().playerLogoBackgroundColor)==null?void 0:f.lightTheme;return C===void 0?"":_.uu(C)};
return _.F("ytw-fantasy-player-view-model",{class:a},_.F(_.z,{cond:function(){return D.data().playerLogo},
then:function(G){return _.F("div",{class:"ytwFantasyPlayerViewModelLogo"},_.F("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.F(_.PX,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.NL({"background-color":Q}),data:G,alt:v})),_.F("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.F(_.Y5,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.F("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.F("div",{class:"ytwFantasyPlayerViewModelHeader"},_.F(_.IY,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var G;return(G=D.data())==null?void 0:G.playerNameText}}),_.F(_.IY,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var G;return(G=D.data())==null?void 0:G.playerDescriptionText}})),_.F("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.F(_.IY,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var G;return(G=h())==null?void 0:G.gamePeriodText}}),_.F(_.IY,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var G;return(G=D.data())==null?void 0:G.opponentTeamText}}),_.F(_.IY,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var G;return(G=h())==null?void 0:G.gameStatusText}}),_.F(_.IY,{className:_.S3("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var G;return(G=h())==null?void 0:G.playerStatusText}})),_.F("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.F(_.IY,{text:function(){var G;
return(G=h())==null?void 0:G.playerStatsText}}))),_.F(_.IY,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var G;return(G=h())==null?void 0:G.fantasyScore}}))},"hf");var IHb=_.H(function(D){return _.F("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.F(_.z,{cond:function(){return D.data().players},
then:function(v){return _.F(_.c4,{data:v},{fantasyPlayerViewModel:EhM})}}))},"jf");var ghm=_.H(function(D){var v=_.P(_.lL(function(){var Q;return(Q=D.data().selectedTabIdentifierKey)!=null?Q:""})),h=v.next().value,a=v.next().value;
_.dM(function(){var Q;(Q=D.setSelectedTabSignal)==null||Q.call(D,h)});
return _.F("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.F("div",{class:"ytTabbedViewModelTabGroup"},_.F(_.Zu4,{shape:function(){var Q=D.data(),G=[],x={tabs:G};if(!Q.tabs)return x;Q=_.P(Q.tabs);for(var f=Q.next(),C={};!f.done;C={tabViewModel:void 0},f=Q.next())if(C.tabViewModel=_.k(f.value,Fp9),C.tabViewModel){var U=f=void 0;G.push({aTagConfig:{onclick:function(L){return function(){var Z;a((Z=L.tabViewModel.tabIdentifier)!=null?Z:"")}}(C)},
identifier:C.tabViewModel.tabIdentifier,selected:h()===C.tabViewModel.tabIdentifier,title:(U=(f=C.tabViewModel.title)==null?void 0:f.content)!=null?U:""})}return x}})),_.F(_.c4,{data:function(){var Q,G=_.P((Q=D.data().tabs)!=null?Q:[]);
for(Q=G.next();!Q.done;Q=G.next())if((Q=_.k(Q.value,Fp9))&&Q.tabIdentifier===h())return Q.content}},{fantasyRosterViewModel:IHb}))},"kf");_.zh(_.H(function(D){var v=_.P(v6I()),h=v.next().value,a=v.next().value;return _.F("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.F(_.IY,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return D.data().title}}),_.F(_.z,{cond:function(){return D.data().tabbedViewModel},
then:function(Q){return _.F(_.c4,{data:Q},{tabbedViewModel:function(G){return _.F(ghm,{data:G.data,setSelectedTabSignal:a})}})}}),_.F(_.z,{cond:function(){var Q,G=(Q=_.k(D.data().tabbedViewModel,zAp))==null?void 0:Q.tabs;
Q=_.k(G==null?void 0:G[0],Fp9);G=_.k(G==null?void 0:G[1],Fp9);var x=Q==null?void 0:Q.tabIdentifier;if(h()===x){var f,C;if(!((f=_.k(Q==null?void 0:Q.content,qj9))==null?0:(C=f.players)==null?0:C.length))return D.data().noUserTeamPlayersText}else{var U,L;if(!((U=_.k(G==null?void 0:G.content,qj9))==null?0:(L=U.players)==null?0:L.length))return D.data().noOpponentTeamPlayersText}},
then:function(Q){return _.F(_.IY,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Q})}}))},"lf"),"ytw-fantasy-matchup-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){return _.F("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.F(_.IY,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return D.data().title}}),_.F(_.z,{cond:function(){return D.data().matchupTeamPairs},
then:function(v){return _.F(_.Xd,{each:v,keyBy:"INDEX"},function(h){return _.F("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.F(_.c4,{data:function(){return[h().firstTeam,h().secondTeam]}},{fantasyTeamViewModel:function(a){return _.F(zab,{data:a.data,
compact:!0})}}))})}}))},"mf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=function(){var Q,G,x;return(x=(Q=D.data().userLogoAccessibility)==null?void 0:(G=Q.accessibilityData)==null?void 0:G.label)!=null?x:""},h=function(){var Q,G,x;
return(x=(Q=D.data().opponentLogoAccessibility)==null?void 0:(G=Q.accessibilityData)==null?void 0:G.label)!=null?x:""},a=_.l7(Uuf,function(){return D.data().entityKey});
return _.F("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.F("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.F(_.z,{cond:function(){return D.data().userLogo},
then:function(Q){return _.F(_.PX,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:v})}}),_.F("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.F(_.IY,{text:function(){return D.data().title}})),_.F(_.z,{cond:function(){return D.data().opponentLogo},
then:function(Q){return _.F(_.PX,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:h})}})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.F("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.F(_.IY,{text:function(){var Q;
return(Q=a())==null?void 0:Q.userWinNumberLabel}})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.F("div",{class:_.S3("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.NL({flex:function(){var Q,G;return(G=(Q=a())==null?void 0:Q.userWinNumber)!=null?G:50}})}),_.F("div",{class:_.S3("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.NL({flex:function(){var Q,G;return(G=(Q=a())==null?void 0:Q.opponentWinNumber)!=null?G:50}})})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.F(_.IY,{text:function(){var Q;
return(Q=a())==null?void 0:Q.opponentWinNumberLabel}}))))},"nf"),"fantasy-win-probability-view-model",{props:{data:_.gj}});var kV9={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},SJm=_.H(function(D){return _.F(_.c4,{data:D.button},{buttonViewModel:function(v){return _.F(_.s$,{data:v.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"of"),JZJ=_.H(function(D){return _.F("ytd-backstage-locked-post-view-model",{class:_.S3("ytdBackstageLockedPostViewModelHost",D.className)},_.F("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.F("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.F(_.c4,
{data:function(){return D.data().authorAvatar}},{decoratedAvatarViewModel:_.GG})),_.F("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.F("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.F(_.IY,{text:function(){return D.data().authorText}})),_.F("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.F(_.IY,{text:function(){return D.data().publishedTimeText}}),_.F(_.c4,{data:function(){return D.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(v){return _.F(YsM,
{data:v.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.F("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.F(_.IY,{text:function(){return D.data().contentText}})),_.F(_.A$,null,_.F(_.Bv,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.F("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.F(_.PX,{data:kV9,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.F(_.IY,{text:function(){return D.data().lockedText}}))}),_.F(_.Bv,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.F("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.F("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.F(_.PX,{data:kV9,
alt:""})),_.F(_.IY,{text:function(){return D.data().lockedText}}))})),_.F("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.F(SJm,{button:function(){return D.data().likeButton}}),_.F("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().voteCountA11y}},_.F(_.IY,{text:function(){return D.data().voteCount}})),_.F(SJm,{button:function(){return D.data().dislikeButton}}),_.F(SJm,{button:function(){return D.data().commentButton}}),_.F("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().commentCountA11y}},_.F(_.IY,{text:function(){return D.data().commentCount}}))))},"pf");
JZJ.idomCompat=!0;_.zh(JZJ,"ytd-backstage-locked-post-view-model",{props:{data:_.gj,className:_.gj}});_.HX("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Uh=function(){var D=_.c.apply(this,arguments)||this;D.darkerPanels=_.g("web_watch_darker_panels");D.commentsHidePanelButton=!1;D.isWatchGrid=!1;D.continuationShowButton=!1;D.isSearch=!1;D.isConstrainedList=!1;D.isWatch=!1;D.eligibleToSwitchToGrid=!1;D.useBigThumbs=!1;D.notSticky=!1;D.epRestyle=!1;D.isCarouselInFeed=!0;D.topSpacingZero=!1;D.continuationIsInitialLoad=!0;D.enableSqueezebackPanels=_.g("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");
D.mastheadHeight=0;D.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};D.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return D};
_.J(Uh,_.c);_.V=Uh.prototype;_.V.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var v;(v=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||v.forEach(function(h){h.containerType=D})}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.g("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.g("kevlar_low_priority_continuation")}}};
_.V.created=function(){};
_.V.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.V.handleIntersect=function(D){this.notSticky=D[0].intersectionRatio===1};
_.V.attached=function(){var D=this,v=_.g("web_item_section_sticky_header_use_scroll_as_fallback");v||document.addEventListener("scroll",_.pZ(this,this.updateHeaderState));var h;this.mastheadHeight=((h=document.querySelector("ytd-masthead"))==null?void 0:h.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(a){D.handleIntersect(a)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):v&&document.addEventListener("scroll",_.pZ(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){document.removeEventListener("scroll",_.pZ(this,this.updateHeaderState));var D;(D=this.intersectionObserver)==null||D.disconnect();var v;(v=this.resizeObserver)==null||v.disconnect()};
_.V.updated=function(D){D.has("data")&&this.updateHeaderState()};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(bUt(!this.notSticky))};
_.V.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var D=_.ZW(this.hostElement).querySelector("ytd-comments-header-renderer");D&&(D.hidePanelButton=this.commentsHidePanelButton)}};
_.V.onRetrieveLocation=function(D,v){this.containsComments()&&(this.firstCommentsLoaded=v.hasComments=!0)};
_.V.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.V.onLoadReloadContinuation=function(D,v){var h=this;D.stopPropagation();this.isReloading=!0;_.F1(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(a){var Q=_.xd().resolve(_.Tb);a=v(a);Q.postData(a).then(function(G){h.onReloadContinuationData(G)})}})};
_.V.onReloadContinuationData=function(D){if(D=this.get("response.continuationContents.itemSectionContinuation",D)||this.get("response.contents.itemSectionRenderer",D)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",D)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",D))this.set("data.contents",D.contents||D.results),D.header&&this.set("data.header",D.header),this.set("data.continuations",
D.continuations||[]);this.isReloading=!1};
_.V.computeContentsClass=function(D){return D?"reloading":""};
_.V.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.V.computeSectionIdentifier=function(D){return D==null?void 0:D.sectionIdentifier};
_.V.computeFitContainer=function(D){return(D==null?void 0:D.sectionIdentifier)==="youchat-item-section"};
_.V.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.g("kevlar_disable_comments_auto_load")};
_.V.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.V.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeHasDestinationShelfRenderer=function(D){var v,h;return!!(D==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:h.destinationShelfRenderer)};
_.V.computeHasSectionGroupViewModel=function(D){var v,h;return!!(D==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:h.sectionGroupViewModel)};
_.V.computeHasQrCodeRenderer=function(D){var v,h;return!!(D==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:h.qrCodeRenderer)};
_.V.computeStaticCommentsHeader=function(D){return D&&this.containsComments()};
_.V.computeEpRestyle=function(D){return _.g("web_ep_restyling")&&D&&this.containsComments()};
_.V.computeIsContinuationCommentSection=function(D){return(D==null?void 0:D.targetId)==="shorts-engagement-panel-comments-section"||(D==null?void 0:D.targetId)==="comments-section"||(D==null?void 0:D.targetId)==="engagement-panel-comments-section"};
_.V.computeSuppressPaddingDisclaimer=function(){var D,v,h,a;return!!((D=this.data)==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:(a=h.productListHeaderRenderer)==null?0:a.suppressPaddingDisclaimer)};
_.V.computeHeaderStyle=function(D){switch(D==null?void 0:D.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.V.dataChanged=function(){this.firstCommentsLoaded=!1};
_.V.observeDataContentsLength=function(){var D,v;((D=this.data)==null?0:(v=D.contents)==null?0:v.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.V.onYtDismissibleItemDismissedChange=function(D){this._setItemDismissed(D.type==="yt-dismissible-item-dismissed")};
_.V.triggerContinuations=function(){for(var D=_.ZW(this.hostElement).querySelector("#continuations").children,v=0;v<D.length;v++)D[v].trigger()};
_.V.triggerInitialContinuations=function(){for(var D=_.ZW(this.hostElement).querySelector("#continuations").children,v=0;v<D.length;v++)D[v].triggerIfNotPreviouslyTriggered()};
_.V.handleYtItemSectionContinuation=function(D,v){var h;v&&((h=this.data)==null?void 0:h.sectionIdentifier)!==v||(this.set("data.continuations",[D]),this.triggerContinuations())};
_.V.handleYtItemSectionReplace=function(D,v){var h;v&&((h=this.data)==null?void 0:h.sectionIdentifier)!==v||(this.set("data.contents",D),this.set("data.continuations",[]))};
_.V.computeUseHeightHack=function(D){return D&&!_.g("kevlar_disable_height_hack")};
_.V.computeTopSpacingZero=function(D){return D};
_.V.continuationShowButtonChanged=function(){var D=_.ZW(this.hostElement).querySelector("ytd-continuation-item-renderer");D&&(D.showButton=this.continuationShowButton)};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("data-changed",this.data))};
_.GT.Object.defineProperties(Uh.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.g("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.g("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:h.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a,Q,G,x;return!!((D=this.data)==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:(a=h.shelfRenderer)==null?0:(Q=a.content)==null?0:(G=Q.gridRenderer)==null?0:(x=G.targetId)==null?0:x.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:h.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.contents)==null?0:(h=v[0])==null?0:h.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.FH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.g("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.g("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Uh.prototype.dataChangedForBinding=Uh.prototype.dataChangedForBinding;Uh.prototype.continuationShowButtonChanged=Uh.prototype.continuationShowButtonChanged;Uh.prototype.onYtDismissibleItemDismissedChange=Uh.prototype.onYtDismissibleItemDismissedChange;Uh.prototype.observeDataContentsLength=Uh.prototype.observeDataContentsLength;Uh.prototype.dataChanged=Uh.prototype.dataChanged;Uh.prototype.onServiceRequestCompleted=Uh.prototype.onServiceRequestCompleted;Uh.prototype.onLoadReloadContinuation=Uh.prototype.onLoadReloadContinuation;
Uh.prototype.onRetrieveLocation=Uh.prototype.onRetrieveLocation;Uh.prototype.commentsHidePanelButtonChanged=Uh.prototype.commentsHidePanelButtonChanged;Uh.prototype.dispatchChipBarIsSticky=Uh.prototype.dispatchChipBarIsSticky;Uh.prototype.updateLockupContainerTypes=Uh.prototype.updateLockupContainerTypes;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Uh.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],Uh.prototype,"ytLazyListBehavior",void 0);_.e([_.l(_.Zh.YtNextContinuationBehavior),_.n("design:type",Object)],Uh.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.l(_.LU),_.n("design:type",Object)],Uh.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Uh.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Uh.prototype,"darkerPanels",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],Uh.prototype,"engagementPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"commentsHidePanelButton",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"isWatchGrid",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"continuationShowButton",void 0);_.e([_.Y({computed:"computeIsContinuationCommentSection(data)"}),_.n("design:type",Boolean)],Uh.prototype,"continuationIsCommentsSection",void 0);
_.e([_.Y({value:!0}),_.n("design:type",Boolean)],Uh.prototype,"autoFill",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Uh.prototype,"continuationDisablePrescanVisibility",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Uh.prototype,"isReloading",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"isSearch",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"isConstrainedList",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"isWatch",void 0);
_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"eligibleToSwitchToGrid",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"useBigThumbs",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Uh.prototype,"notSticky",void 0);_.e([_.Y({selector:_.K_}),_.n("design:type",Object)],Uh.prototype,"isGridViewEnabled",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.n("design:type",Object)],Uh.prototype,"epRestyle",void 0);_.e([_.N("isWatch"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"hideShortsShelfHeader",null);_.e([_.N("isSearch","isWatch"),_.n("design:type",String),_.n("design:paramtypes",[])],Uh.prototype,"thumbnailWidth",null);
_.e([_.N("isSearch","containerWidth"),_.n("design:type",Object),_.n("design:paramtypes",[])],Uh.prototype,"thumbnailTargetWidth",null);_.e([_.N("isSearch","isWatch"),_.n("design:type",String),_.n("design:paramtypes",[])],Uh.prototype,"sizing",null);_.e([_.N("isWatch","isGridViewEnabled","useBigThumbs","data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Uh.prototype,"lockupContainerType",null);
_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"hasHeader",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"expFixPlaylistHeader",null);_.e([_.Ni("lockupContainerType","data"),_.n("design:type",Function),_.n("design:paramtypes",[Number]),_.n("design:returntype")],Uh.prototype,"updateLockupContainerTypes",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Uh.prototype,"pageSubtype",void 0);_.e([_.Y({computed:"computeContainerWidth()"}),_.n("design:type",Number)],Uh.prototype,"containerWidth",void 0);_.e([_.Y(),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"isPlaylist",null);_.e([_.Y(),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"isClipList",null);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"isCarouselInFeed",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"isPlaylistVideoContainer",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"isSearchFrictionPage",null);_.e([_.Y({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.n("design:type",Boolean)],Uh.prototype,"useHeightHack",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.n("design:type",Object)],Uh.prototype,"topSpacingZero",void 0);_.e([_.Y({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.n("design:type",Boolean)],Uh.prototype,"showButton",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Uh.prototype,"firstCommentsLoaded",void 0);_.e([_.Y(),_.n("design:type",Object)],Uh.prototype,"continuationIsInitialLoad",void 0);
_.e([_.Y({reflectToAttribute:!0,readOnly:!0}),_.n("design:type",Boolean)],Uh.prototype,"itemDismissed",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.n("design:type",String)],Uh.prototype,"sectionIdentifier",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.n("design:type",String)],Uh.prototype,"fitContainer",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.n("design:type",Boolean)],Uh.prototype,"hasDestinationShelfRenderer",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.n("design:type",Boolean)],Uh.prototype,"staticCommentsHeader",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Uh.prototype,"enableSqueezebackPanels",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Uh.prototype,"enableAnchoredPanel",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.n("design:type",Boolean)],Uh.prototype,"hasSectionGroupViewModel",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.n("design:type",Boolean)],Uh.prototype,"hasQrCodeRenderer",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.n("design:type",Boolean)],Uh.prototype,"suppressDisclaimerSeparator",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.n("design:type",String)],Uh.prototype,"headerStyle",void 0);_.e([_.N("isSearch"),_.n("design:type",Object),_.n("design:paramtypes",[])],Uh.prototype,"lockupExperiments",null);
_.e([_.N("isSearch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Uh.prototype,"typographyBump",null);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],Uh.prototype,"header",void 0);_.e([_.Ni("notSticky"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"dispatchChipBarIsSticky",null);
_.e([_.Ni("commentsHidePanelButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"commentsHidePanelButtonChanged",null);_.e([_.lc("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Uh.prototype,"onRetrieveLocation",null);
_.e([_.lc("yt-load-reload-continuation"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Function]),_.n("design:returntype")],Uh.prototype,"onLoadReloadContinuation",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"onServiceRequestCompleted",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"dataChanged",null);
_.e([_.qi("data.contents.length"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"observeDataContentsLength",null);_.e([_.lc("yt-dismissible-item-dismissed"),_.lc("yt-dismissible-item-undismissed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Uh.prototype,"onYtDismissibleItemDismissedChange",null);
_.e([_.Ni("continuationShowButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"continuationShowButtonChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uh.prototype,"dataChangedForBinding",null);_.e([_.m({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Uh);
_.w(Uh,"ytd-item-section-renderer",function(){if(YdF!==void 0)return YdF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return YdF=D},{mode:1});var p6M;var $G4=_.aX(_.p1("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var lH9={},amc=(lH9[0]={title:_.MD(_.p1("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.MD(_.p1("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Pf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},lH9[1]={title:_.MD(_.p1("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Pf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},lH9);_.HX("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Ld=function(){var D=_.c.apply(this,arguments)||this;D.allVideosCount=0;D.allPlaylistCount=0;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;D.areAllSmartDownloadsDeleted=!1;D.smartDownloadsCompleted=!1;return D};
_.J(Ld,_.c);Ld.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Ld.prototype.attached=function(){this.downloadsToRenderChanged()};
Ld.prototype.detached=function(){this.set("renderableData",{})};
Ld.prototype.downloadsToRenderChanged=function(){var D=_.Gb().getState().entities,v=_.s4(D),h=_.g("kevlar_playlist_dl_page_killswitch")?Ce2(D):_.m6(D),a=_.Ql8(D),Q=_.xyo(D),G=_.Xh(v);D=_.Hf(D);this.set("renderableData",Gl7(h,v,a,Q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,G,D))};
Ld.prototype.downloadsToRenderChanged=Ld.prototype.downloadsToRenderChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],Ld.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ld.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ld.prototype,"renderableData",void 0);_.e([_.Y({selector:_.pCu}),_.n("design:type",Object)],Ld.prototype,"allVideosCount",void 0);_.e([_.Y({selector:iPI}),_.n("design:type",Object)],Ld.prototype,"allPlaylistCount",void 0);_.e([_.Y({selector:_.O4}),_.n("design:type",Object)],Ld.prototype,"isOnline",void 0);_.e([_.Y({selector:_.AUL}),_.n("design:type",Object)],Ld.prototype,"shouldRenderDownloadsBanner",void 0);
_.e([_.Y({selector:_.jl7}),_.n("design:type",Object)],Ld.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.e([_.Y({selector:_.qH4}),_.n("design:type",Object)],Ld.prototype,"hasOptedIntoSmartDownloads",void 0);_.e([_.Y({selector:_.bh4}),_.n("design:type",Object)],Ld.prototype,"areAllSmartDownloadsDeleted",void 0);_.e([_.Y({selector:dyr}),_.n("design:type",Object)],Ld.prototype,"smartDownloadsCompleted",void 0);
_.e([_.qi("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ld.prototype,"downloadsToRenderChanged",null);_.e([_.m({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Ld);
_.w(Ld,"ytd-offline-item-section-renderer",function(){if(p6M!==void 0)return p6M;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return p6M=D},
{mode:1});var N_9;var YJy;var Z_=function(){return _.c.apply(this,arguments)||this};
_.J(Z_,_.c);
Z_.prototype.onDataChanged=function(){if(this.JSC$16716_lastData){var D=this.getFilterClass(this.JSC$16716_lastData.status);D&&this.hostElement.classList.remove(D)}var v;(D=this.getFilterClass((v=this.data)==null?void 0:v.status))&&this.hostElement.classList.add(D);D==="selected"?_.ZW(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ZW(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");D==="disabled"?_.ZW(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ZW(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16716_lastData=this.data};
Z_.prototype.getFilterClass=function(D){switch(D){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Z_.prototype.onDataChanged=Z_.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Z_.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z_.prototype,"onDataChanged",null);_.e([_.m({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Z_);
_.w(Z_,"ytd-search-filter-renderer",function(){if(YJy!==void 0)return YJy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return YJy=D},{mode:_.E_("kevlar_poly_si_batch_j075")?1:2});var Eh=function(){return _.c.apply(this,arguments)||this};
_.J(Eh,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Eh.prototype,"data",void 0);_.e([_.m({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Eh);
_.w(Eh,"ytd-search-filter-group-renderer",function(){if(N_9!==void 0)return N_9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return N_9=D},{mode:_.E_("kevlar_poly_si_batch_j075")?1:2});var B_4;var ID=function(){return _.c.apply(this,arguments)||this};
_.J(ID,_.c);ID.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.cN());this.isCollapsed=!this.isCollapsed};
ID.prototype.navigateToAboutTheseResultsPage=function(){var D=_.yw("https://www.youtube.com/howyoutubeworks/product-features/search/");D?_.Dx(window,D,"_blank"):_.OM(Error("Zh"))};
ID.prototype.dataChanged=function(){this.isCollapsed=!0};
ID.prototype.computeShowBottomBorder=function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.button)==null?0:v.toggleButtonRenderer)||!((h=this.data)==null||!h.aboutTheseResultsButton)};
ID.prototype.dataChanged=ID.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ID.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.n("design:type",Boolean)],ID.prototype,"showBottomBorder",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ID.prototype,"renderCollapsibleMenu",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],ID.prototype,"isCollapsed",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ID.prototype,"dataChanged",null);_.e([_.m({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],ID);
_.w(ID,"ytd-search-sub-menu-renderer",function(){if(B_4!==void 0)return B_4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return B_4=D},{mode:1});var cZR;var X6M=new _.Uj("SECTION_LIST_RENDERER_TOKEN");var AZm;var gV=function(){return _.c.apply(this,arguments)||this};
_.J(gV,_.c);gV.prototype.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gV.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],gV.prototype,"headerStyle",void 0);_.e([_.m({is:"ytd-text-header-renderer",disableElementRegistration:!0})],gV);
_.w(gV,"ytd-text-header-renderer",function(){if(AZm!==void 0)return AZm;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return AZm=D},{mode:1});var qJp;var kD=function(){return _.c.apply(this,arguments)||this};
_.J(kD,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kD.prototype,"data",void 0);_.e([_.m({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],kD);
_.w(kD,"ytd-minor-moment-header-renderer",function(){if(qJp!==void 0)return qJp;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return qJp=D},{mode:1});var bu$;var SU=function(){return _.c.apply(this,arguments)||this};
_.J(SU,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],SU.prototype,"data",void 0);_.e([_.m({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],SU);
_.w(SU,"ytd-minor-moment-setting-alert-renderer",function(){if(bu$!==void 0)return bu$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return bu$=D},{mode:1});var dTs;var j2m;var Jv=function(){var D=_.c.apply(this,arguments)||this;D.booleanSettingById=!1;D.smartDownloadsEnabledVE=_.En(128287);D.smartDownloadsDisabledVE=_.En(128286);D.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return D};
_.J(Jv,_.c);_.V=Jv.prototype;_.V.attachSmartDownloadsSettingVes=function(){var D;this.activeVeForLogging||((D=this.data)==null?void 0:D.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.de(_.c8(),this.smartDownloadsEnabledVE),_.de(_.c8(),this.smartDownloadsDisabledVE))};
_.V.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.F1(this.hostElement,"yt-settings-switch-ready")};
_.V.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.V.onSwitchChange=function(D){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(D=_.xU(D).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.g("kevlar_settings_switch_resolve_command_killswitch")?_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(D)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.V.handleUpdateSettingsSwitch=function(D){(D=_.k(D,Dwt))&&this.data&&this.data.id===D.id&&this.set("data.enabled",!!D.enabled)};
_.V.onToggleSettingsSwitch=function(D,v){this.data&&this.data.id===D&&this.set("data.enabled",v!=null?v:!this.data.enabled)};
_.V.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Jp.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.V.maybeLogSmartDownloadsSettingVisibility=function(){var D=_.wd(),v;D&&((v=this.data)==null?void 0:v.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.DU(D,[this.smartDownloadsEnabledVE]),_.vf(D,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.DU(D,[this.smartDownloadsDisabledVE]),_.vf(D,[this.smartDownloadsEnabledVE])))};
_.V.maybeLogSmartDownloadsSettingClick=function(){var D;((D=this.data)==null?void 0:D.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.se(_.c8(),this.activeVeForLogging)};
_.V.updateDataEnabledFromBinding=function(D){this.set("data.enabled",D.detail.value)};
_.GT.Object.defineProperties(Jv.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!D&&(D=this.ytRendererBehavior.getSimpleString(this.data.title));return D}}});
Jv.prototype.dataChanged=Jv.prototype.dataChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],Jv.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Jv.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Jv.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Jv.prototype,"data",void 0);_.e([_.Y({selector:function(D,v){if(Object.keys(D==null?void 0:D.entities).length)switch(v){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return omi(D.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.n("design:type",Object)],Jv.prototype,"booleanSettingById",void 0);_.e([_.Y(),_.n("design:type",HT)],Jv.prototype,"activeVeForLogging",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Jv.prototype,"toggleAriaLabel",null);_.e([_.qi("data"),_.qi("booleanSettingById"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jv.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Jv);
_.w(Jv,"ytd-settings-switch-renderer",function(){if(j2m!==void 0)return j2m;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return j2m=D},{mode:1});var pd=function(){return _.c.apply(this,arguments)||this};
_.J(pd,_.c);pd.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}}}}};
_.GT.Object.defineProperties(pd.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var D=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(D+=" remove-left-margin");this.data.extraBottomSpace&&(D+=" extra-bottom-space");return D}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pd.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],pd.prototype,"contentsClassName",null);_.e([_.m({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],pd);
_.w(pd,"ytd-minor-moment-setting-section-renderer",function(){if(dTs!==void 0)return dTs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return dTs=D},{mode:1});var s2F;var lJ=function(){return _.c.apply(this,arguments)||this};
_.J(lJ,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],lJ.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lJ.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],lJ);
_.w(lJ,"ytd-empty-product-details-renderer",function(){if(s2F!==void 0)return s2F;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return s2F=D},{mode:1});var mT4;var Huy;var No=function(){var D=_.c.apply(this,arguments)||this;D.expanded=!0;return D};
_.J(No,_.c);No.prototype.getBadgeRowClass=function(D,v,h){for(var a=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),Q=a.next();!Q.done;Q=a.next())Q.value.onShow();D=D.selected;return h?D!==-1?D===v?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(D!==void 0?D:0)===v?"badge-line":"badge-hidden"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],No.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],No.prototype,"expanded",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],No);
_.w(No,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Huy!==void 0)return Huy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Huy=D},{mode:1});var yZ9;var YD=function(){var D=_.c.apply(this,arguments)||this;D.expanded=!0;return D};
_.J(YD,_.c);YD.prototype.getContainerClasses=function(D,v){D=D?"expanded":"collapsed";v&&(D+=" item");return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],YD.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],YD.prototype,"expanded",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],YD);
_.w(YD,"ytd-sponsorships-perk-renderer",function(){if(yZ9!==void 0)return yZ9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yZ9=D},{mode:1});var w64;var Be=function(){var D=_.c.apply(this,arguments)||this;D.expanded=!0;return D};
_.J(Be,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Be.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Be.prototype,"expanded",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Be);
_.w(Be,"ytd-sponsorships-perks-renderer",function(){if(w64!==void 0)return w64;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return w64=D},{mode:1});var ce=function(){var D=_.c.apply(this,arguments)||this;D.isCollapsed=!1;return D};
_.J(ce,_.c);ce.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
ce.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
ce.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var D;this.expandCollapseButton=_.k((D=this.data)==null?void 0:D.expandButton,_.Vi)}else{var v;this.expandCollapseButton=_.k((v=this.data)==null?void 0:v.collapseButton,_.Vi)}};
ce.prototype.updateExpandCollapseButton=ce.prototype.updateExpandCollapseButton;ce.prototype.onDataChanged=ce.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ce.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ce.prototype,"isCollapsed",void 0);_.e([_.Y(),_.n("design:type",Object)],ce.prototype,"expandCollapseButton",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ce.prototype,"onDataChanged",null);_.e([_.qi("data","isCollapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ce.prototype,"updateExpandCollapseButton",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],ce);
_.w(ce,"ytd-sponsorships-expandable-perks-renderer",function(){if(mT4!==void 0)return mT4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return mT4=D},{mode:1});var eat;var XA=function(){return _.c.apply(this,arguments)||this};
_.J(XA,_.c);XA.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],XA.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XA.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],XA);
_.w(XA,"ytd-sponsorships-actionable-message-renderer",function(){if(eat!==void 0)return eat;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return eat=D},{mode:1});var nht;var Av=function(){return _.c.apply(this,arguments)||this};
_.J(Av,_.c);_.V=Av.prototype;_.V.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.V.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.V.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.computeMessageContainerStyle=function(D){var v=D.expandableItems?" style-clickable":"";return D.messageContainerStyle?D.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+v:"style-unspecified"+v};
_.V.isSinglePerk=function(D){return!!D.messageContainerStyle&&(D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.V.onExpandedChanged=function(){var D=this;if(this.expanded)for(var v=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),h=v.next();!h.done;h=v.next())h.value.onShow();_.$R(this,function(){_.F1(D.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Av.prototype.onDataChanged=Av.prototype.onDataChanged;Av.prototype.onExpandedChanged=Av.prototype.onExpandedChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Av.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Av.prototype,"expanded",void 0);
_.e([_.Ni("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Av.prototype,"onExpandedChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Av.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Av);
_.w(Av,"ytd-sponsorships-expandable-message-renderer",function(){if(nht!==void 0)return nht;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return nht=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var OuJ;var qo=function(){return _.c.apply(this,arguments)||this};
_.J(qo,_.c);qo.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"}}}}};
qo.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.k(this.data.endButton,_.Vi).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
qo.prototype.onDataChanged=qo.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qo.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qo.prototype,"onDataChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],qo);
_.w(qo,"ytd-sponsorships-heading-renderer",function(){if(OuJ!==void 0)return OuJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return OuJ=D},{mode:1});var Kap;var bJ=function(){return _.c.apply(this,arguments)||this};
_.J(bJ,_.c);_.e([_.Y(),_.n("design:type",Object)],bJ.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],bJ);
_.w(bJ,"ytd-sponsorships-links-renderer",function(){if(Kap!==void 0)return Kap;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Kap=D},{mode:1});var T_4;var dV=function(){return _.c.apply(this,arguments)||this};
_.J(dV,_.c);_.V=dV.prototype;_.V.onDataChanged=function(){if(this.data&&this.data.expandableItems){var D;(D=_.ZW(this.hostElement).querySelector("tp-yt-paper-button"))==null||D.setAttribute("role","button")}else{var v;(v=_.ZW(this.hostElement).querySelector("tp-yt-paper-button"))==null||v.removeAttribute("role")}};
_.V.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.V.getTileClasses=function(D){return D?"tile expandable-tile":"tile"};
_.V.getButtonDisabled=function(D){return D?void 0:""};
dV.prototype.onDataChanged=dV.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dV.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],dV.prototype,"expanded",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dV.prototype,"onDataChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],dV);
_.w(dV,"ytd-sponsorships-list-tile-renderer",function(){if(T_4!==void 0)return T_4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return T_4=D},{mode:1});var RaR;var iuy;var jU=function(){return _.c.apply(this,arguments)||this};
_.J(jU,_.c);jU.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jU.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],jU);
_.w(jU,"ytd-sponsorships-promotion-renderer",function(){if(iuy!==void 0)return iuy;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return iuy=D},{mode:1});var WaF;var sh=function(){return _.c.apply(this,arguments)||this};
_.J(sh,_.c);sh.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],sh.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],sh);
_.w(sh,"ytd-sponsorships-purchase-option-renderer",function(){if(WaF!==void 0)return WaF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return WaF=D},{mode:1});var tr4;var rZ9;var uGy=function(){return _.c.apply(this,arguments)||this};
_.J(uGy,_.c);_.e([_.Y(),_.n("design:type",Object)],uGy.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],uGy);
_.w(uGy,"ytd-ypc-offer-promo-renderer",function(){if(rZ9!==void 0)return rZ9;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rZ9=D},{mode:1});var mC=function(){return _.c.apply(this,arguments)||this};
_.J(mC,_.c);_.V=mC.prototype;
_.V.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"}}}}};
_.V.expansionCTA=function(D,v){return D&&(v?D.collapseCallToAction:D.expansionCallToAction)};
_.V.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.V.expansionCallToActionTap=function(){var D=this;this.expanded=!this.expanded;_.$R(this,function(){_.F1(D.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var D,v=(D=this.data)==null?void 0:D.onVisible;v&&this.ytComponentBehavior.resolveCommand(v)};
_.V.computeDisplayTitle=function(D){return!(!D||this.titledisplaystatus!=="show")};
_.V.computeDisplaySeparator=function(){return!1};
_.V.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
mC.prototype.onDataChanged=mC.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],mC.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],mC.prototype,"data",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],mC.prototype,"expanded",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],mC.prototype,"purchaseButtonClicked",void 0);_.e([_.Y({reflectToAttribute:!0,value:"show"}),_.n("design:type",String)],mC.prototype,"titledisplaystatus",void 0);_.e([_.Y({computed:"computeDisplayTitle(data.title)"}),_.n("design:type",Boolean)],mC.prototype,"displayTitle",void 0);
_.e([_.Y({computed:"computeDisplaySeparator(data)"}),_.n("design:type",Boolean)],mC.prototype,"displaySeparator",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mC.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],mC);
_.w(mC,"ytd-sponsorships-tier-renderer",function(){if(tr4!==void 0)return tr4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return tr4=D},{mode:2});var He=function(){return _.c.apply(this,arguments)||this};
_.J(He,_.c);
He.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],He.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],He);
_.w(He,"ytd-sponsorships-management-renderer",function(){if(RaR!==void 0)return RaR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return RaR=D},{mode:1});var DZ4;var yP=function(){return _.c.apply(this,arguments)||this};
_.J(yP,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yP.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],yP);
_.w(yP,"ytd-open-in-native-app-view-model",function(){if(DZ4!==void 0)return DZ4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DZ4=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var v1R;var hHR;var avm=_.DK(["top-"]),$ZM=_.DK(["bottom-"]),QJF=_.DK(["left-"]),GM4=_.DK(["right-"]),VzR={},P_b=function(D,v,h){D.removeAttribute("top-"+h);D.removeAttribute("bottom-"+h);D.removeAttribute("left-"+h);D.removeAttribute("right-"+h);v&&(v.top&&_.Pp([_.CT(avm)],D,"top-"+h,v.top),v.bottom&&_.Pp([_.CT($ZM)],D,"bottom-"+h,v.bottom),v.left&&_.Pp([_.CT(QJF)],D,"left-"+h,v.left),v.right&&_.Pp([_.CT(GM4)],D,"right-"+h,v.right))};
VzR.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(D){var v,h=_.ZW((v=this.hostElement)!=null?v:this),a;v=this.cardItemBoxBehaviorMarginTargetId&&h?h.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(a=this.hostElement)!=null?a:this;P_b(v,D,"margin")},
cardItemContainerPaddingChanged_:function(D){var v,h=_.ZW((v=this.hostElement)!=null?v:this),a;v=this.cardItemBoxBehaviorPaddingTargetId&&h?h.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(a=this.hostElement)!=null?a:this;P_b(v,D,"padding")}}];var wV={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 xZ$;var Mzb;var eU=function(){return _.c.apply(this,arguments)||this};
_.J(eU,_.c);eU.prototype.textColorChanged_=function(){this.hostElement.style.color=wV[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
eU.prototype.textColorChanged_=eU.prototype.textColorChanged_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.e([_.l(VzR.YtCardItemBoxBehavior),_.n("design:type",Object)],eU.prototype,"ytCardItemBoxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],eU.prototype,"data",void 0);_.e([_.Ni("data.textColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eU.prototype,"textColorChanged_",null);
_.e([_.Ry({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],eU);
_.w(eU,"yt-card-item-text-renderer",function(){if(Mzb===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;xZ$===void 0&&(xZ$=document.createElement("template"));var a=xZ$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Mzb=D}D=Mzb;return D},{mode:2});var fvb;var C_J;var nd=function(){return _.c.apply(this,arguments)||this};
_.J(nd,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nd.prototype,"data",void 0);_.e([_.Ry({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],nd);
_.w(nd,"yt-card-item-badge-renderer",function(){if(C_J===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;fvb===void 0&&(fvb=document.createElement("template"));var a=fvb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);C_J=D}D=C_J;return D},{mode:2});var o1$;var F$s;var Oh=function(){return _.c.apply(this,arguments)||this};
_.J(Oh,_.c);Oh.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Oh.prototype,"data",void 0);_.e([_.Ry({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Oh);
_.w(Oh,"yt-card-item-text-collection-renderer",function(){if(F$s===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;o1$===void 0&&(o1$=document.createElement("template"));var a=o1$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);F$s=D}D=F$s;return D},{mode:2});var zHb;var UZ4;var Kd=function(){return _.c.apply(this,arguments)||this};
_.J(Kd,_.c);Kd.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]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Kd.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Number)],Kd.prototype,"iconSize",void 0);_.e([_.Ry({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Kd);
_.w(Kd,"yt-card-item-text-with-button-renderer",function(){if(UZ4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;zHb===void 0&&(zHb=document.createElement("template"));var a=zHb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);UZ4=D}D=UZ4;return D},{mode:2});var Tp=function(){return _.c.apply(this,arguments)||this};
_.J(Tp,_.c);Tp.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Tp.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Tp.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Tp);
_.w(Tp,"ytd-commerce-cart-summary-line-item-renderer",function(){if(hHR!==void 0)return hHR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return hHR=D},{mode:1});_.HX("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var RD=function(){var D=_.c.apply(this,arguments)||this;D.hidden=!1;return D};
_.J(RD,_.c);_.V=RD.prototype;_.V.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"}}}}};
_.V.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.V.updateSummary=function(){var D=this.commerceCartCheckoutButtonEntity,v;if(((v=this.data)==null?0:v.cartButton)&&D.checkoutSummaryText){var h,a=dv((h=this.data)==null?void 0:h.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+a+".cardItemTextRenderer.text",jo(D.checkoutSummaryText));if(D.checkoutDetailText){var Q;h=dv((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",jo(D.checkoutDetailText))}if(D.checkoutAdditionalMetadataText){var G;
Q=dv((G=this.data)==null?void 0:G.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",jo(D.checkoutAdditionalMetadataText))}}else D.estimatedTotalPrice&&(G=dv((a=this.data)==null?void 0:a.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",jo(D.estimatedTotalPrice)))};
_.V.updateIsHidden=function(){var D,v=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;v!==void 0&&(this.hidden=v)};
_.V.updateCheckoutButton=function(){var D,v=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isDisabled;v!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",v);var h;D=(h=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:h.innertubeCommand;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",D);var a;h=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.checkoutButtonText;h!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:h})};
RD.prototype.entityChanged=RD.prototype.entityChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],RD.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],RD.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],RD.prototype,"fullWidth",void 0);_.e([_.Y(),_.n("design:type",Object)],RD.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],RD.prototype,"compact",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],RD.prototype,"hidden",void 0);
_.e([_.Y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:JWr}),_.n("design:type",Object)],RD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.e([_.Ni("commerceCartCheckoutButtonEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RD.prototype,"entityChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],RD);
_.w(RD,"ytd-commerce-cart-checkout-button-renderer",function(){if(v1R!==void 0)return v1R;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return v1R=D},{mode:2});var L$p;_.ZRs={};
_.ZRs.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",_.pZ(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.pZ(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(D){!this.tappableItemBehaviorTapEnabled||D.keyCode!==13&&D.keyCode!==32||D.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var D=this.data.onTap;D.ypcGetCartEndpoint?(_.L1(this.hostElement,[D]),this.tappableItemBehaviorTapEnabled=!1):D.ypcOffersEndpoint?_.L1(this.hostElement,[D]):_.ZD(this.hostElement,[D],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(D){this.tappableItemBehaviorTapEnabled=!!D},
tappableItemBehaviorOnTapEnabledChanged_:function(){var D=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(D.setAttribute("tabIndex",0),D.setAttribute("role","button")):(D.removeAttribute("tabIndex"),D.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(D){D.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var E1$;var Iv9;var iJ=function(){return _.c.apply(this,arguments)||this};
_.J(iJ,_.c);iJ.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.y0("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.y0("sharingToggleButtonAndDefaultButton")}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iJ.prototype,"data",void 0);_.e([_.Ry({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],iJ);
_.w(iJ,"yt-card-item-actions-renderer",function(){if(Iv9===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;E1$===void 0&&(E1$=document.createElement("template"));var a=E1$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Iv9=D}D=Iv9;return D},{mode:2});var g1J;var kMM;var SmM;var J5y;var p5F;var lvF;var We=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return D};
_.J(We,_.c);We.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
We.prototype.handleDarkModeToggledAction_=function(D){this.isDarkTheme_=D};
We.prototype.computeThemeImage_=function(D,v){if(!D||!D.imageLight)return!1;this.isCircular_=D.isCircular;D.imageWidth&&(this.hostElement.style.width=D.imageWidth+"px");D.imageHeight&&(this.hostElement.style.height=D.imageHeight+"px");D.borderWidth&&(this.image.style.borderWidth=D.borderWidth+"px",this.image.style.borderStyle="solid");D.borderColor&&(this.image.style.borderColor=_.uu(D.borderColor));return v&&D.imageDark?D.imageDark:D.imageLight};
We.prototype.computeThemeIcon_=function(D){var v,h;if(!(D==null?0:(v=D.themedIcon)==null?0:(h=v.icon)==null?0:h.iconType))return!1;this.icon.style.color=wV[D.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(D.imageWidth||18)+"px";this.icon.style.height=(D.imageHeight||18)+"px";return _.SQ(D.themedIcon.icon.iconType)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(VzR.YtCardItemBoxBehavior),_.n("design:type",Object)],We.prototype,"ytCardItemBoxBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],We.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],We.prototype,"data",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],We.prototype,"fit",void 0);_.e([_.Y(),_.n("design:type",Boolean)],We.prototype,"isDarkTheme_",void 0);_.e([_.Y({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.n("design:type",Object)],We.prototype,"themeImage_",void 0);_.e([_.Y({computed:"computeThemeIcon_(data)"}),_.n("design:type",Object)],We.prototype,"themeIcon_",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Object)],We.prototype,"isCircular_",void 0);
_.e([_.Br("#image"),_.n("design:type",Object)],We.prototype,"image",void 0);_.e([_.Br("#icon"),_.n("design:type",Object)],We.prototype,"icon",void 0);_.e([_.Ry({is:"yt-themed-image-renderer",disableElementRegistration:!0})],We);
_.w(We,"yt-themed-image-renderer",function(){if(lvF===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;p5F===void 0&&(p5F=document.createElement("template"));var a=p5F;h.call(v,a.content.cloneNode(!0),D.content.firstChild);lvF=D}D=lvF;return D},{mode:2});var tv=function(){return _.c.apply(this,arguments)||this};
_.J(tv,_.c);tv.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"}}}}};
tv.prototype.computeImagePlacement_=function(D){return D||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],tv.prototype,"data",void 0);_.e([_.Y({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.n("design:type",String)],tv.prototype,"imagePlacement",void 0);
_.e([_.Ry({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],tv);
_.w(tv,"yt-card-item-text-with-image-renderer",function(){if(J5y===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;SmM===void 0&&(SmM=document.createElement("template"));var a=SmM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);J5y=D}D=J5y;return D},{mode:2});var rV=function(){return _.c.apply(this,arguments)||this};
_.J(rV,_.c);rV.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"}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rV.prototype,"data",void 0);_.e([_.Ry({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],rV);
_.w(rV,"yt-card-item-error-renderer",function(){if(kMM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;g1J===void 0&&(g1J=document.createElement("template"));var a=g1J;h.call(v,a.content.cloneNode(!0),D.content.firstChild);kMM=D}D=kMM;return D},{mode:2});var NB9;var Ym4;_.HX("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var uJ=function(){return _.c.apply(this,arguments)||this};
_.J(uJ,_.c);_.V=uJ.prototype;
_.V.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"}}}}};
_.V.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.V.backgroundColorChanged_=function(){var D,v=(D=this.data)==null?void 0:D.backgroundColor;D=wV[v||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ZW(this.hostElement).querySelector("#main-content").style.backgroundColor=D};
_.V.headerPromoBackgroundColorChanged_=function(){var D,v=(D=this.data)==null?void 0:D.headerPromoBackgroundColor;D=wV[v||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ZW(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=D};
_.V.errorRendererVisibilityChanged_=function(){var D=this.isExpanded_,v;this.isErrorRendererVisible_=!((v=this.data)==null||!v.errorRenderer)&&!D};
_.V.onYtToggleButton_=function(D,v){this.isExpanded_=v.toggled};
uJ.prototype.onYtToggleButton_=uJ.prototype.onYtToggleButton_;uJ.prototype.errorRendererVisibilityChanged_=uJ.prototype.errorRendererVisibilityChanged_;uJ.prototype.headerPromoBackgroundColorChanged_=uJ.prototype.headerPromoBackgroundColorChanged_;uJ.prototype.backgroundColorChanged_=uJ.prototype.backgroundColorChanged_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(VzR.YtCardItemBoxBehavior),_.n("design:type",Object)],uJ.prototype,"ytCardItemBoxBehavior",void 0);_.e([_.l(_.ZRs.YtTappableItemBehavior),_.n("design:type",Object)],uJ.prototype,"ytTappableItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uJ.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],uJ.prototype,"isExpanded_",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],uJ.prototype,"isErrorRendererVisible_",void 0);_.e([_.Ni("data.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uJ.prototype,"backgroundColorChanged_",null);_.e([_.Ni("data.headerPromoBackgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uJ.prototype,"headerPromoBackgroundColorChanged_",null);
_.e([_.Ni("data.errorRenderer","isExpanded_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uJ.prototype,"errorRendererVisibilityChanged_",null);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Object]),_.n("design:returntype")],uJ.prototype,"onYtToggleButton_",null);_.e([_.Ry({is:"yt-card-item-renderer",disableElementRegistration:!0})],uJ);
_.w(uJ,"yt-card-item-renderer",function(){if(Ym4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;NB9===void 0&&(NB9=document.createElement("template"));var a=NB9;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Ym4=D}D=Ym4;return D},{mode:2});_.HX("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var DT=function(){var D=_.c.apply(this,arguments)||this;D.hidden=!1;return D};
_.J(DT,_.c);_.V=DT.prototype;_.V.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.V.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,v=(D=this.commerceCartHeaderEntity)==null?void 0:D.isHidden;v!==void 0&&(this.hidden=v)}};
_.V.updateTitle=function(){var D=this.commerceCartHeaderEntity.isDisabled,v,h,a=(h=_.k((v=this.data)==null?void 0:v.item,n$M))==null?void 0:h.headingRenderer;a&&(v=dv(a,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+v+".0.cardItemTextRenderer.textColor",D?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.V.updateSummaryText=function(){var D=this.commerceCartHeaderEntity;if(this.compact){var v,h,a=(h=_.k((v=this.data)==null?void 0:v.item,n$M))==null?void 0:h.headingRenderer;a&&(v=dv(a,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+v+".1.cardItemTextRenderer.text",D.shortHeaderSummaryText?jo(D.shortHeaderSummaryText):D.headerSummaryText?jo(D.headerSummaryText):""))}else{var Q;if(v=(Q=_.k((a=this.data)==null?void 0:a.item,n$M))==null?void 0:Q.additionalInfoRenderer)v=dv(v,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+v+".text",D.headerSummaryText?jo(D.headerSummaryText):"")}};
_.V.updateCheckoutButton=function(){var D=this.commerceCartHeaderEntity,v,h,a=(h=_.k((v=this.data)==null?void 0:v.item,n$M))==null?void 0:h.additionalInfoRenderer;v=dv(a,"buttonRenderer");var Q;h=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonDisabled;var G;Q=(G=this.commerceCartHeaderEntity)==null?void 0:G.isButtonHidden;h!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+v+".buttonRenderer.isDisabled",h);Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Q);var x;D=(x=D.checkoutButtonCommand)==null?void 0:x.innertubeCommand;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+v+".buttonRenderer.command",D)};
DT.prototype.entityChanged=DT.prototype.entityChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],DT.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],DT.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],DT.prototype,"compact",void 0);_.e([_.Y({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(D,v){return _.gR(D.entities,"commerceCartHeaderEntity",v)}}),
_.n("design:type",Object)],DT.prototype,"commerceCartHeaderEntity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],DT.prototype,"hidden",void 0);_.e([_.Ni("commerceCartHeaderEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DT.prototype,"entityChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],DT);
_.w(DT,"ytd-commerce-cart-header-renderer",function(){if(L$p!==void 0)return L$p;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return L$p=D},{mode:1});var BB4;var c5m=_.b2(function(D,v){var h;return(h=D.onChangeCallback)==null?void 0:h.call(D,v)},1E3),X59=_.H(function(D){var v=D.data;
var h=D.iconMinus;D=D.iconPlus;var a=function(){return!!v().disabled},Q=_.P(_.Zq(0,void 0,"mKh0af")),G=Q.next().value,x=Q.next().value;
Q=_.Jd(function(){if(G()===1){var Z,E;(E=(Z=v()).onRemoveCommand)==null||E.call(Z)}Z=G()>v().maxValue?v().maxValue:G()-1;x(Z);c5m(v(),Z);return!1});
var f=_.Jd(function(){if(G()===v().maxValue)return!1;var Z=G()+1;x(Z);c5m(v(),Z);return!1});
_.dM(function(){x(v().value)});
var C={},U={},L={};return _.F("quantity-incrementer-shape",null,_.F("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.F("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return G()===(v().onRemoveCommand?0:1)||a()},
"aria-label":function(){return G()!==1?v().minusLabel:v().minimumReachedLabel},
"on:click":Q},_.F(_.qv,{model:{circular:!0}}),_.F("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.F("div",{class:_.S3("ytSpecQuantityIncrementerShapeIcon",(C.ytSpecQuantityIncrementerShapeIconDisabled=function(){return a()||G()===(v().onRemoveCommand?0:1)},C))},h()))),_.F("div",{class:_.S3("ytSpecQuantityIncrementerShapeText",(U.ytSpecQuantityIncrementerShapeTextInvalid=function(){return G()>v().maxValue},U.ytSpecQuantityIncrementerShapeTextDisabled=a,U))},G),_.F("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return G()>=v().maxValue||a()},
"aria-label":function(){return G()!==v().maxValue?v().plusLabel:v().maximumReachedLabel},
"on:click":f},_.F(_.qv,{model:{circular:!0}}),_.F("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.F("div",{class:_.S3("ytSpecQuantityIncrementerShapeIcon",(L.ytSpecQuantityIncrementerShapeIconDisabled=function(){return G()>=v().maxValue||a()},L))},D())))))},"qf");_.zh(_.H(function(D){function v(){h().onRemoveCommand&&_.r4(h().onRemoveCommand)}
var h=D.data;var a=_.l7(G$O,function(){return h().quantityIncrementerEntityKey});
return _.F("yt-quantity-incrementer-view-model",null,_.F(X59,{data:function(){var Q=h(),G;var x=a()?!((G=a())==null||!G.disabled):!1;var f;G=a()?(f=a())==null?void 0:f.quantity:h().quantity;return xGO(Q,x,v,G)},
iconMinus:function(){return _.F(_.Y5,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.F(_.Y5,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"rf"),"yt-quantity-incrementer-view-model",{props:{data:_.gj}});var vg=function(){var D=_.c.apply(this,arguments)||this;D.compact=!1;D.hasQuantityIncrementer=!1;return D};
_.J(vg,_.c);vg.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"}}}};
vg.prototype.computeHasQuantityIncrementer=function(){var D;return!!_.k((D=this.data)==null?void 0:D.picker,RAR)};
vg.prototype.onLabelClick=function(){var D;(D=this.dropdownEl)==null||D.open()};
_.e([_.Br("ytd-dropdown-renderer"),_.n("design:type",Object)],vg.prototype,"dropdownEl",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vg.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],vg.prototype,"quantityColor",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],vg.prototype,"compact",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.n("design:type",Object)],vg.prototype,"hasQuantityIncrementer",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],vg);
_.w(vg,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(BB4!==void 0)return BB4;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return BB4=D},{mode:1});var A5s;var qm$;var ho=function(){return _.c.apply(this,arguments)||this};
_.J(ho,_.c);ho.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ho.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
ho.prototype.updateTitle=function(){var D=this.disabledCartItemEntity;D.disableActionName&&this.set("data.title",jo(D.disableActionName))};
ho.prototype.updateButton=function(){var D,v=(D=this.disabledCartItemEntity.undoCommand)==null?void 0:D.innertubeCommand;v!==void 0&&(this.set("data.actionButton.buttonRenderer.command",v),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
ho.prototype.entityChanged=ho.prototype.entityChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],ho.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(D,v){return _.gR(D.entities,"disabledCartItemEntity",v)}}),
_.n("design:type",Object)],ho.prototype,"disabledCartItemEntity",void 0);_.e([_.Y(),_.n("design:type",Object)],ho.prototype,"data",void 0);_.e([_.Ni("disabledCartItemEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ho.prototype,"entityChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],ho);
_.w(ho,"ytd-disabled-cart-item-renderer",function(){if(qm$!==void 0)return qm$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return qm$=D},{mode:1});_.HX("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ac=function(){var D=_.c.apply(this,arguments)||this;D.compact=!1;D.hidden=!1;D.errorHidden=!1;D.noOnTap=!1;return D};
_.J(ac,_.c);_.V=ac.prototype;
_.V.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"}}}};
_.V.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.V.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var D=this.firstButtonElement;D.alignByText=!0;D.iconAlignByText=!0}};
_.V.computeNoOnTap=function(D){return!D};
_.V.updateQuantityColor=function(){if(this.pickerElement){var D,v=(D=this.commerceCartItemEntity)==null?void 0:D.quantityColor;this.pickerElement.quantityColor=v}};
_.V.updateTotalPriceColor=function(){var D,v=(D=this.commerceCartItemEntity)==null?void 0:D.totalPriceColor;if(v){var h;D=_.k((h=this.data)==null?void 0:h.quantityPicker,Kpb);if(h=_.k(D==null?void 0:D.price,OO4))h.textColor=v}};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,v=(D=this.commerceCartItemEntity)==null?void 0:D.isHidden;v!==void 0&&(this.hidden=v)}};
_.V.updateHideErrorMessage=function(){var D,v=(D=this.commerceCartItemEntity)==null?void 0:D.hideErrorMessage;v!==void 0&&(this.errorHidden=v)};
_.V.updateQuantity=function(){var D=this,v,h=(v=this.commerceCartItemEntity)==null?void 0:v.quantity,a;v=(a=this.commerceCartItemEntity)==null?void 0:a.totalPrice;if(h){this.updateTotalPriceColor();this.updateQuantityColor();var Q;a=_.k((Q=this.data)==null?void 0:Q.quantityPicker,Kpb);if(Q=_.k(a==null?void 0:a.price,OO4))Q.text=v?{simpleText:v.content}:void 0;if(v=_.k(a==null?void 0:a.picker,RAR))v.quantity=h;var G;if(Q=(G=_.k(a==null?void 0:a.picker,OHF))==null?void 0:G.entries){G=!1;v=void 0;Q=
_.P(Q);for(a=Q.next();!a.done;a=Q.next())a=a.value,a.dropdownItemRenderer&&(v||(v=a.dropdownItemRenderer),a.dropdownItemRenderer.isSelected=!1,h===a.dropdownItemRenderer.int32Value&&(G=!0,a.dropdownItemRenderer.isSelected=!0));!G&&v&&(v.isSelected=!0)}_.$R(this,function(){var x;D.set("data.quantityPicker",_.sV.unsafeClone((x=D.data)==null?void 0:x.quantityPicker))})}};
ac.prototype.onYtRendererstamperFinished=ac.prototype.onYtRendererstamperFinished;ac.prototype.entityChanged=ac.prototype.entityChanged;_.e([_.Y(),_.n("design:type",Object)],ac.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ac.prototype,"compact",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],ac.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ac.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(D,v){return _.gR(D.entities,"commerceCartItemEntity",v)}}),
_.n("design:type",Object)],ac.prototype,"commerceCartItemEntity",void 0);_.e([_.Y(),_.n("design:type",Object)],ac.prototype,"quantityPicker",void 0);_.e([_.Y(),_.n("design:type",Object)],ac.prototype,"compactQuantityPicker",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ac.prototype,"hidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ac.prototype,"errorHidden",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.n("design:type",Object)],ac.prototype,"noOnTap",void 0);_.e([_.Br("ytd-commerce-cart-item-quantity-picker-renderer"),_.n("design:type",Object)],ac.prototype,"pickerElement",void 0);_.e([_.Br("yt-button-renderer"),_.n("design:type",Element)],ac.prototype,"firstButtonElement",void 0);
_.e([_.Ni("commerceCartItemEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ac.prototype,"entityChanged",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ac.prototype,"onYtRendererstamperFinished",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],ac);
_.w(ac,"ytd-commerce-cart-item-renderer",function(){if(A5s!==void 0)return A5s;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return A5s=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var bRF;var dZJ;var $r=function(){return _.c.apply(this,arguments)||this};
_.J($r,_.c);$r.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}}}}}};
$r.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
$r.prototype.updateCheckoutLineItems=function(){var D,v=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.checkoutLineItems;v&&(D=v.map(function(h){a:{var a=h.price,Q=h.description;switch(h.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":h={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:jo(Q),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:jo(a),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:h={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:jo(Q),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:jo(a),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 h}),this.set("data.summaryLineItems",D))};
$r.prototype.updateIsHidden=function(){var D,v=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;v!==void 0&&(this.hostElement.hidden=v)};
$r.prototype.entityChanged=$r.prototype.entityChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],$r.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],$r.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],$r.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:JWr}),_.n("design:type",Object)],$r.prototype,"commerceCartCheckoutButtonEntity",void 0);_.e([_.Ni("commerceCartCheckoutButtonEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$r.prototype,"entityChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],$r);
_.w($r,"ytd-commerce-cart-summary-renderer",function(){if(dZJ!==void 0)return dZJ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return dZJ=D},{mode:1});var jJm={};jJm.InjectBehavior=[eRA.InjectBehavior];var sJ9;var mZy;var QQ=function(){return _.c.apply(this,arguments)||this};
_.J(QQ,_.c);
QQ.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:_.y0("menuRenderer")}}};
QQ.prototype.onMenuTap=function(D){D.stopPropagation()};
_.GT.Object.defineProperties(QQ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var D,v;return!(((D=this.data)==null||!D.sectionHeading)&&((v=this.data)==null?void 0:v.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var D,v;return!(((D=this.data)==null||!D.image)&&((v=this.data)==null?void 0:v.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var D,v;return!(((D=this.data)==null||!D.menu)&&((v=this.data)==null?void 0:v.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ZRs.YtTappableItemBehavior),_.n("design:type",Object)],QQ.prototype,"ytTappableItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],QQ.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.accessibilityData"),_.n("design:type",String),_.n("design:paramtypes",[])],QQ.prototype,"ariaLabel",null);_.e([_.N("data.sectionHeading","data.layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],QQ.prototype,"sectionHeadingVisible",null);_.e([_.N("data.image","data.layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],QQ.prototype,"imageVisible",null);
_.e([_.N("data.menu","data.layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],QQ.prototype,"menuVisible",null);_.e([_.Ry({is:"yt-activity-item-renderer",disableElementRegistration:!0})],QQ);
_.w(QQ,"yt-activity-item-renderer",function(){if(mZy===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;sJ9===void 0&&(sJ9=document.createElement("template"));var a=sJ9;h.call(v,a.content.cloneNode(!0),D.content.firstChild);mZy=D}D=mZy;return D},{mode:2});var HRJ;var y54;var w5R;var eH9;var GE=function(){return _.c.apply(this,arguments)||this};
_.J(GE,_.c);
GE.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"}}}}};
GE.prototype.backgroundColorChanged_=function(){var D,v=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=wV[v||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
GE.prototype.backgroundColorChanged_=GE.prototype.backgroundColorChanged_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GE.prototype,"data",void 0);
_.e([_.Ni("data.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GE.prototype,"backgroundColorChanged_",null);_.e([_.Ry({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],GE);
_.w(GE,"yt-offer-item-upsell-renderer",function(){if(eH9===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;w5R===void 0&&(w5R=document.createElement("template"));var a=w5R;h.call(v,a.content.cloneNode(!0),D.content.firstChild);eH9=D}D=eH9;return D},{mode:2});_.HX("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var VQ=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};D.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return D};
_.J(VQ,_.c);_.V=VQ.prototype;
_.V.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:_.y0("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.V.computeContainerStyle_=function(D){return D};
_.V.computeContainerIsHidden_=function(D){return D&&!!D.isHidden};
_.V.computeShowSpinner_=function(D,v){return D&&v==="in-progress"};
_.V.computeShowMoreContentsButton_=function(D,v,h,a,Q){return!(!(a&&a.length||Q&&Q.length&&h)||!D||v)};
_.V.onToggleButton_=function(D){var v=this;D.stopPropagation();this.isExpanded_=D.detail&&D.detail.toggled;var h,a;this.isExpanded_&&!this.data.continuationSection.length&&((h=this.data)==null?0:(a=h.continuation)==null?0:a.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.F1(this.hostElement,"yt-load-next-continuation",function(Q){return v.getContinuationUrl_(v.data.continuation.onClickContinuationData,Q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.L1(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.V.onShowMoreContentsButtonClicked_=function(D){var v=this;D.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.F1(this.hostElement,"yt-load-next-continuation",function(h){return v.getContinuationUrl_(v.data.continuations[0].nextContinuationData,h)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.L1(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.V.getContinuationUrl_=function(D,v){var h=D.continuation;D=D.clickTrackingParams;var a=_.wd();D&&a&&_.hA(a,_.d4(D));return _.hO(v,{continuation:h})};
_.V.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var D=_.ZW(this.hostElement).querySelector("#continuation-section");D&&(D=D.querySelectorAll("ytmusic-item-section-renderer"))&&D.forEach(function(v){return v.classList.add("memberships-and-purchases")})};
_.V.dataChanged_=function(){var D;this.isExpanded_=!((D=this.data)==null||!D.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.V.updateCardOnClickCommand_=function(D){D=_.k(D,dtJ);var v,h;this.data&&((v=this.data)==null?0:v.targetId)&&D&&D.targetId===((h=this.data)==null?void 0:h.targetId)&&D.onClickCommand&&(this.data.onClickCommand=D.onClickCommand,this.isOnClickCommand_=!0)};
_.V.backgroundColorChanged_=function(){var D,v=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=wV[v||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
VQ.prototype.backgroundColorChanged_=VQ.prototype.backgroundColorChanged_;VQ.prototype.dataChanged_=VQ.prototype.dataChanged_;VQ.prototype.nextContinuationDataUpdated_=VQ.prototype.nextContinuationDataUpdated_;VQ.prototype.onToggleButton_=VQ.prototype.onToggleButton_;_.e([_.l(_.LU),_.n("design:type",Object)],VQ.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],VQ.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Zh.YtNextContinuationBehavior),_.n("design:type",Object)],VQ.prototype,"ytNextContinuationBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(jJm.InjectBehavior),_.n("design:type",Object)],VQ.prototype,"injectBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],VQ.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],VQ.prototype,"compact",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],VQ.prototype,"isExpanded_",void 0);_.e([_.Y({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.n("design:type",String)],VQ.prototype,"containerStyle_",void 0);_.e([_.Y({value:"not-started"}),_.n("design:type",String)],VQ.prototype,"continuationStatus_",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.n("design:type",Boolean)],VQ.prototype,"showSpinner_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],VQ.prototype,"isOnClickCommand_",void 0);_.e([_.Y({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.n("design:type",Boolean)],VQ.prototype,"showMoreContentsButton_",void 0);
_.e([_.Y({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(D,v){return!v||D.entities?null:_.gR(D.entities,"cardItemContainerEntity",v)}}),
_.n("design:type",Object)],VQ.prototype,"cardItemContainerEntity_",void 0);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],VQ.prototype,"onToggleButton_",null);_.e([_.lc("yt-next-continuation-data-updated"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VQ.prototype,"nextContinuationDataUpdated_",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VQ.prototype,"dataChanged_",null);_.e([_.Ni("data.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VQ.prototype,"backgroundColorChanged_",null);_.e([_.Ry({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],VQ);
_.w(VQ,"yt-card-item-container-renderer",function(){if(y54===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;HRJ===void 0&&(HRJ=document.createElement("template"));var a=HRJ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);y54=D}D=y54;return D},{mode:2});var Pg=function(){return _.c.apply(this,arguments)||this};
_.J(Pg,_.c);Pg.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"}}}};
Pg.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Pg.prototype.computeLoadingHidden=function(){var D;return!((D=this.commerceCartPageStateEntity)==null?0:D.cartActionInProgress)};
Pg.prototype.updateNotification=function(){var D,v=(D=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:D.summaryText;v&&this.set("data.cartNotification",jo(v))};
Pg.prototype.notificationEntityChanged=Pg.prototype.notificationEntityChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],Pg.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Pg.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Pg.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(D,v){return _.gR(D.entities,"commerceCartExpandableNotificationEntity",v)}}),
_.n("design:type",Object)],Pg.prototype,"commerceCartExpandableNotificationEntity",void 0);_.e([_.Y({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(D,v){return _.gR(D.entities,"commerceCartPageStateEntity",v)}}),
_.n("design:type",Object)],Pg.prototype,"commerceCartPageStateEntity",void 0);_.e([_.Br("#spinner"),_.n("design:type",HTMLElement)],Pg.prototype,"spinner",void 0);_.e([_.Ni("commerceCartExpandableNotificationEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Pg.prototype,"notificationEntityChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Pg);
_.w(Pg,"ytd-commerce-cart-renderer",function(){if(bRF!==void 0)return bRF;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return bRF=D},{mode:1});var n1m;var xr=function(){var D=_.c.apply(this,arguments)||this;D.bigImage=!1;return D};
_.J(xr,_.c);_.GT.Object.defineProperties(xr.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.placeholderImageUrl}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xr.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xr.prototype,"bigImage",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],xr.prototype,"placeholderImageUrl",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],xr);
_.w(xr,"ytd-empty-product-shelf-renderer",function(){if(n1m!==void 0)return n1m;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return n1m=D},{mode:1});var ORt;var MJ=function(){var D=_.c.apply(this,arguments)||this;D.itemStyle="link-item";D.watchMetadataRefresh=!1;D.skinnyMode=!1;D.metaPanel=!1;D.inStructuredDescription=!1;D.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};D.updateOnResizeDebouncer=null;return D};
_.J(MJ,_.c);_.V=MJ.prototype;_.V.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.V.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"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.V.attachVEs=function(D){D.trackingParams&&_.c8().graftServerVe(D.trackingParams)};
_.V.handleUpdateMerchShelfAction=function(D){var v=this,h=_.k(D.updateMerchandiseShelfAction.merchandiseShelf,_.M8F);h&&(h.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){v.attachVEs(h);v.data=h},Number(h.renderDelayMs))):(this.attachVEs(h),this.data=h))};
_.V.updateOnResize=function(){if(this.JSC$16884_scrollContainer!==void 0&&this.JSC$16884_scrollContainer.clientWidth!==0&&this.items!==void 0){var D=this.JSC$16884_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_();var v;switch((v=this.data)==null?void 0:v.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var h,
a;((h=this.data)==null?void 0:(a=h.items)==null?void 0:a.length)===1?this.itemStyle="cta-item":this.itemStyle=D>=740?"large-item":"small-item"}}};
_.V.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.p6(this.updateOnResizeDebouncer,_.o5.after(100),this.updateOnResize)};
MJ.prototype.debouncedUpdateOnResize=MJ.prototype.debouncedUpdateOnResize;MJ.prototype.dataChanged=MJ.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],MJ.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],MJ.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],MJ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],MJ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MJ.prototype,"itemStyle",void 0);_.e([_.Y({value:6}),_.n("design:type",Number)],MJ.prototype,"initialCount",void 0);
_.e([_.Y({value:"data.items"}),_.n("design:type",String)],MJ.prototype,"itemsPath",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MJ.prototype,"watchMetadataRefresh",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MJ.prototype,"skinnyMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MJ.prototype,"metaPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MJ.prototype,"inStructuredDescription",void 0);
_.e([_.Br("#items"),_.n("design:type",HTMLDivElement)],MJ.prototype,"items",void 0);_.e([_.Br("#scroll-container"),_.n("design:type",HTMLDivElement)],MJ.prototype,"JSC$16884_scrollContainer",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MJ.prototype,"dataChanged",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MJ.prototype,"debouncedUpdateOnResize",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],MJ);
_.w(MJ,"ytd-merch-shelf-renderer",function(){if(ORt!==void 0)return ORt;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ORt=D},{mode:2});var K$$;var fk=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return D};
_.J(fk,_.c);_.V=fk.prototype;
_.V.addBackstagePostAction=function(D){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(D=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",D))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:D}):this.set("data.contents",[{backstagePostThreadRenderer:D}]))};
_.V.addBackstageCommentAction=function(D){var v=this.get("addBackstageCommentAction.parentId",D);D=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",D);if(v&&D){v=this.postIdToIndices(v);for(var h=0;h<v.length;h++){var a=v[h];if(a<0)break;a="data.contents."+a+".backstagePostThreadRenderer.comments";this.get(a)&&(this.get(a+".backstageCommentsRenderer.contents")&&this.push(a+".backstageCommentsRenderer.contents",{commentThreadRenderer:D}),this.get(a+".backstageCommentsRenderer.teaserContents")?
this.push(a+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:D}):this.set(a+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:D}]))}}};
_.V.addBackstageReplyAction=function(D){var v=this.get("addBackstageReplyAction.parentId",D);D=this.get("addBackstageReplyAction.renderer.commentRenderer",D);v&&D&&this.setCreatorReply(v,D)};
_.V.banAuthorAction=function(D){var v=this.get("banAuthorAction.commentId",D);v&&(D=this.get("banAuthorAction.parentCommentId",D)||this.getParentPostId(v),this.removeFromStream(v,D))};
_.V.hideReportedCommentAction=function(D){var v=this.get("hideReportedCommentAction.commentId",D);v&&((D=this.get("hideReportedCommentAction.parentCommentId",D))||(D=this.getParentPostId(v)),this.removeFromStream(v,D))};
_.V.replaceBackstageCommentAction=function(D){var v=this.get("replaceBackstageCommentAction.commentId",D),h=this.get("replaceBackstageCommentAction.parentId",D);D=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",D);if(v&&h&&D){h=this.postIdToIndices(h);for(var a=0;a<h.length;a++){var Q=h[a];if(Q<0)break;var G=this.commentIdToIndex(v,Q,!1);if(G>=0){var x=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+G+".commentThreadRenderer.replies.commentRepliesRenderer");
x&&(D.replies={commentRepliesRenderer:x});this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",G,1,{commentThreadRenderer:D})}G=this.commentIdToIndex(v,Q,!0);if(G>=0){if(x=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(G+".commentThreadRenderer.replies.commentRepliesRenderer")))D.replies={commentRepliesRenderer:x};this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
G,1,{commentThreadRenderer:D})}}}};
_.V.replaceBackstagePostAction=function(D){var v=this.get("replaceBackstagePostAction.itemId",D);if(v){v=this.postIdToIndices(v);for(var h=0;h<v.length;h++){var a=v[h];if(a<0)break;var Q=this.getPostRendererType(a),G=this.get("replaceBackstagePostAction.renderer."+Q,D);if(!G&&Q!=="sharedPostRenderer")break;var x=!1;G||(x=!0,G=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",D));if(!G)break;var f={};x?(_.eQ(f,qP1,G),this.set("data.contents."+a+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
f)):(_.eQ(f,new _.z0(Q),G),this.set("data.contents."+a+".backstagePostThreadRenderer.post",f))}}};
_.V.replaceBackstageReplyAction=function(D){var v=this.get("replaceBackstageReplyAction.replyId",D),h=this.get("replaceBackstageReplyAction.parentId",D);D=this.get("replaceBackstageReplyAction.renderer.commentRenderer",D);v&&D&&h&&this.setCreatorReply(h,D)};
_.V.removeCommentAction=function(D){var v=this.get("removeCommentAction.commentId",D);if(v){var h=this.get("removeCommentAction.parentCommentId",D);h&&this.get("removeCommentAction.isCreatorReply",D)?this.setCreatorReply(h,void 0):(h||(h=this.getParentPostId(v)),this.removeFromStream(v,h))}};
_.V.setCreatorReply=function(D,v){var h=this.getParentPostId(D);if(h){h=this.postIdToIndices(h);for(var a=0;a<h.length;a++){var Q=h[a];if(Q<0)break;var G=this.commentIdToIndex(D,Q,!1);if(G>=0){var x="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+G;G=x+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";x+=".commentThreadRenderer.replies";v==void 0?(this.set(x,{}),this.set(G,!1)):(this.set(x,{commentRepliesRenderer:{teaserContents:[{commentRenderer:v}]}}),
this.set(x+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(G,!0))}G=this.commentIdToIndex(D,Q,!0);G>=0&&(G="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+G,Q=G+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",G+=".commentThreadRenderer.replies",v==void 0?(this.set(G,{}),this.set(Q,!1)):(this.set(G,{commentRepliesRenderer:{teaserContents:[{commentRenderer:v}]}}),this.set(Q,!0)))}}};
_.V.removeFromStream=function(D,v){if(v){v=this.postIdToIndices(v);for(var h=0;h<v.length;h++){var a=v[h];if(a<0)break;var Q=this.commentIdToIndex(D,a,!1);Q>=0&&this.splice("data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1);Q=this.commentIdToIndex(D,a,!0);Q>=0&&this.splice("data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Q,1);a="data.contents."+a+".backstagePostThreadRenderer.post.backstagePostRenderer";
Q=a+".backstageAttachment.pollRenderer.votedCommentId";this.get(Q)===D&&(this.set(Q,null),this.set(a+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(v=this.postIdToIndices(D).reverse(),h=0;h<v.length;h++){a=v[h];if(a<0)break;Q=this.getPostRendererType(a);var G=this.get("backstagePostThreadRenderer.post."+Q,this.data.contents[a]);G.postId===D?this.splice("data.contents",a,1):Q==="sharedPostRenderer"&&this.set("data.contents."+a+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);G.scheduledPublishTimeSec&&_.zU(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.V.postIdToIndices=function(D){for(var v=[],h=0;h<this.data.contents.length;h++){var a=this.getPostRendererType(h);this.get("backstagePostThreadRenderer.post."+a+".postId",this.data.contents[h])===D&&v.push(h);if(a==="sharedPostRenderer"){var Q=this.get("backstagePostThreadRenderer.post."+a+".originalPost.backstagePostRenderer.postId",this.data.contents[h]);a=this.get("backstagePostThreadRenderer.post."+a+".originalPost.postRenderer.postId",this.data.contents[h]);Q!==D&&a!==D||v.push(h)}}return v};
_.V.commentIdToIndex=function(D,v,h){if(v<0)return-1;var a,Q,G,x,f=_.k((a=this.data)==null?void 0:(Q=a.contents)==null?void 0:(G=Q[v])==null?void 0:(x=G.backstagePostThreadRenderer)==null?void 0:x.comments,XZs);return(v=h?f==null?void 0:f.teaserContents:f==null?void 0:f.contents)&&v.length?v.findIndex(function(C){return _.k(C,CEM).comment.commentRenderer.commentId===D}):-1};
_.V.getParentPostId=function(D){D=D.split(".");if(D[1])return D[0]};
_.V.getPostRendererType=function(D){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[D])?"sharedPostRenderer":"backstagePostRenderer"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],fk.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fk.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:_.g("enable_community_page_on_desktop")}),_.n("design:type",Boolean)],fk.prototype,"useSmallerPostContainer",void 0);
_.e([_.m({disableElementRegistration:!0,is:"ytd-backstage-items"})],fk);
_.w(fk,"ytd-backstage-items",function(){if(K$$!==void 0)return K$$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return K$$=
D},{mode:1});var TBs;var RHb={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Ck=function(){var D=_.c.apply(this,arguments)||this;D.disablePrescanVisibility=!0;D.canScheduleJobs=!0;D.engagementPanel=!1;D.hidePanelButton=!1;D.isWatchGrid=
!1;D.hasShownSubscribersOnlyDisclaimer=!1;D.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};D.TEST_ONLY=void 0;return D};
_.J(Ck,_.c);_.V=Ck.prototype;_.V.created=function(){this.initCommentsCsi_();_.g("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.g("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.V.contentsChanged_=function(){var D;(D=this.data)!=null&&D.contents&&this.tickForCommentsTimer_("cml")};
_.V.headerChanged_=function(){var D;(D=this.data)!=null&&D.header&&this.tickForCommentsTimer_("cmhl")};
_.V.initCommentsCsi_=function(){_.wK("wn_comments");var D=_.wd();D&&_.HU({clientScreenNonce:D},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.V.createCommentAction_=function(D){D=_.sV.unsafeClone(D);var v,h;if(D=(v=_.k(D,a5J))==null?void 0:(h=v.contents)==null?void 0:h.commentThreadRenderer){var a,Q,G,x,f,C;!this.isBackstage&&((a=this.data)==null?0:(Q=a.header)==null?0:(G=Q.commentsHeaderRenderer)==null?0:(x=G.createRenderer)==null?0:(f=x.commentSimpleboxRenderer)==null?0:(C=f.zeroStep)==null?0:C.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var U,
L,Z;this.isBackstage&&_.k((U=this.data)==null?void 0:(L=U.header)==null?void 0:(Z=L.commentsHeaderRenderer)==null?void 0:Z.zeroStateMessage,bD4)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(D)}};
_.V.doReplyInsert_=function(D,v,h,a){a?this.splice(D,a,0,v):this.push(D,v)};
_.V.getRepliesPath_=function(D){return"data.contents."+D+".commentThreadRenderer.replies"};
_.V.getRepliesContentsPath_=function(D,v){D=this.getRepliesPath_(D);return v?D+".commentRepliesRenderer.teaserContents":D+".commentRepliesRenderer.contents"};
_.V.showSubscribersOnlyDisclaimer_=function(D){(D=D.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&(_.zU(this.hostElement,"yt-open-popup-action",[D,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.V.createCommentReplyAction_=function(D){D=_.sV.unsafeClone(D);var v=_.k(D,$Cb);if(D=v==null?void 0:v.contents){var h=this.commentIdToIndex_(v==null?void 0:v.parentCommentId);if(!(h<0)){var a=this.getRepliesPath_(h);if(this.get(a)){v=v.replyToCommentId;a=this.getRepliesContentsPath_(h,!1);if(this.get(a)){var Q=this.get(a).length,G=a+"."+(Q-1)+".continuationItemRenderer";this.get(G+".button")?(G=this.replyIdToIndex_(v,h,!1),this.doReplyInsert_(a,D,G,Q-1)):this.get(G)||(Q=this.replyIdToIndex_(v,h,
!1),this.doReplyInsert_(a,D,Q,null))}a=this.getRepliesContentsPath_(h,!0);this.get(a)?(h=this.replyIdToIndex_(v,h,!0),(!v||h>=0)&&this.doReplyInsert_(a,D,h,null)):this.set(a,[D])}else this.set(a,{commentRepliesRenderer:{teaserContents:[D]}})}}};
_.V.hideReportedCommentAction_=function(D){var v=_.k(D,JFm);if(D=v==null?void 0:v.commentId)(v=this.get("parentCommentId",v))||(v=this.getParentCommentId_(D)),this.remove_(D,v)};
_.V.getParentCommentId_=function(D){D=D.split(".");if(D[1])return D[0]};
_.V.removeCommentAction_=function(D){var v=_.k(D,xCs);if(D=v==null?void 0:v.commentId)v=(v==null?void 0:v.parentCommentId)||this.getParentCommentId_(D),this.remove_(D,v)};
_.V.pinCommentAction_=function(D){D=_.sV.unsafeClone(D);var v=_.k(D,PE4);v!=null&&v.commentId&&(D=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",D))&&(this.remove_(v.commentId),this.insert_(D,!0))};
_.V.unpinCommentAction_=function(D){D=_.sV.unsafeClone(D);D=_.k(D,MvR);if(D!=null&&D.commentId){var v,h,a=(v=D.actionResult)==null?void 0:(h=v.update)==null?void 0:h.commentThreadRenderer;a&&(this.remove_(D.commentId),this.insert_(a))}};
_.V.banAuthorAction_=function(D){var v=_.k(D,hwF);v!=null&&v.commentId&&(D=v.commentId,v=v.parentCommentId||this.getParentCommentId_(D),this.remove_(D,v))};
_.V.handleScrollToCommentElement_=function(D){this.nearestScrollParent||(this.nearestScrollParent=Mpo(D));this.isCommentVisibleInScrollParent(D)||D.scrollIntoView({behavior:"smooth",block:"start"})};
_.V.isCommentVisibleInScrollParent=function(D){if(!this.nearestScrollParent)return!1;D=D.getBoundingClientRect();var v=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return D.top>=v.top&&D.bottom<=v.bottom};
_.V.commentIdToIndex_=function(D){var v;return D&&(v=this.data)!=null&&v.contents?this.data.contents.findIndex(function(h){h=h.commentThreadRenderer;var a;return D===((h==null?void 0:h.commentViewModel)&&((a=_.k(h.commentViewModel,ZX9))==null?void 0:a.commentId))}):-1};
_.V.insert_=function(D,v){v=v===void 0?!1:v;var h,a;if((h=this.data)==null?0:(a=h.contents)==null?0:a.some(function(G){return!!G.commentThreadRenderer}))for(h=0,a=this.data.contents.length;h<a;h++){var Q=this.data.contents[h].commentThreadRenderer;
if(RHb[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=RHb[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){v&&RHb[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===RHb[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",h,1,{commentThreadRenderer:D}):this.splice("data.contents",h,0,{commentThreadRenderer:D});break}}else this.set("data.contents",[{commentThreadRenderer:D}])};
_.V.doReplyRemove_=function(D,v,h){D=this.replyIdToIndex_(D,v,h);D<0||(v=this.getRepliesContentsPath_(v,h),this.splice(v,D,1))};
_.V.remove_=function(D,v){v=this.commentIdToIndex_(v);v<0?(v=this.commentIdToIndex_(D),v<0||this.splice("data.contents",v,1)):_.g("web_delhi_comment_threads")||(this.doReplyRemove_(D,v,!1),this.doReplyRemove_(D,v,!0))};
_.V.replyIdToIndex_=function(D,v,h){if(v<0)return-1;v=this.getRepliesContentsPath_(v,h);v=this.get(v);if(!v||!v.length)return-1;h=0;for(var a=v.length;h<a;h++){var Q=void 0,G=void 0;if(((Q=v[h])==null?void 0:(G=Q.commentViewModel)==null?void 0:G.commentId)===D)return h}return-1};
_.V.tickForCommentsTimer_=function(D){_.n1(D,void 0,"wn_comments")};
_.V.reloadComments_=function(D){D=_.k(D,UC4);_.k(D==null?void 0:D.command,_.iL)&&_.L1(this.hostElement,[D==null?void 0:D.command])};
_.GT.Object.defineProperties(Ck.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.data)==null?0:(v=D.header)==null?0:(h=v.commentsHeaderRenderer)==null?0:h.isBackstageContent)}}});
_.GT.Object.defineProperties(Ck,{template:{configurable:!0,enumerable:!0,get:function(){if(TBs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);TBs=D}D=TBs;return D}}});
Ck.prototype.showSubscribersOnlyDisclaimer_=Ck.prototype.showSubscribersOnlyDisclaimer_;Ck.prototype.headerChanged_=Ck.prototype.headerChanged_;Ck.prototype.contentsChanged_=Ck.prototype.contentsChanged_;_.e([_.l(_.lK),_.n("design:type",Object)],Ck.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.KiO.YtHostElementBehavior),_.n("design:type",Object)],Ck.prototype,"ytHostElementBehavior",void 0);
_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",Function)],Ck.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Ck.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ck.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.header.commentsHeaderRenderer.isBackstageContent"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ck.prototype,"isBackstage",null);_.e([_.Y(),_.n("design:type",Object)],Ck.prototype,"disablePrescanVisibility",void 0);_.e([_.Y(),_.n("design:type",Object)],Ck.prototype,"canScheduleJobs",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ck.prototype,"engagementPanel",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ck.prototype,"hidePanelButton",void 0);_.e([_.Y(),_.n("design:type",Object)],Ck.prototype,"isWatchGrid",void 0);_.e([_.Y(),_.n("design:type",Object)],Ck.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.e([_.Ni("data.contents"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ck.prototype,"contentsChanged_",null);
_.e([_.Ni("data.header"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ck.prototype,"headerChanged_",null);_.e([_.lc("yt-show-subscribers-only-disclaimer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ck.prototype,"showSubscribersOnlyDisclaimer_",null);_.e([_.m({is:"ytd-comments"})],Ck);var oc=function(){return _.XS.apply(this,arguments)||this};
_.J(oc,_.XS);_.V=oc.prototype;_.V.bindIf=function(D,v,h){return D?v:h};
_.V.bindIfDefined=function(D,v){return D!==void 0?D:v};
_.V.booleanString=function(D){return(!!D).toString()};
_.V.equals=function(){for(var D=_.Kz.apply(0,arguments),v=D[0],h=1;h<D.length;h++)if(v!=D[h])return!1;return!0};
_.V.isGreaterThan=function(D,v){return D>v};
_.V.isLessThan=function(D,v){return D<v};
_.V.logicalAND=function(){for(var D=_.Kz.apply(0,arguments),v=!!D[0],h=1;h<D.length;h++)v=v&&!!D[h];return v};
_.V.logicalOR=function(){for(var D=_.Kz.apply(0,arguments),v=!!D[0],h=1;h<D.length;h++)v=v||!!D[h];return v};
_.V.toBool=function(D){return!!D};
oc.prototype.toBool=oc.prototype.toBool;oc.prototype.logicalOR=oc.prototype.logicalOR;oc.prototype.logicalAND=oc.prototype.logicalAND;oc.prototype.isLessThan=oc.prototype.isLessThan;oc.prototype.isGreaterThan=oc.prototype.isGreaterThan;oc.prototype.equals=oc.prototype.equals;oc.prototype.booleanString=oc.prototype.booleanString;oc.prototype.bindIfDefined=oc.prototype.bindIfDefined;oc.prototype.bindIf=oc.prototype.bindIf;_.e([_.AV()],oc);_.iRm=[oc.prototype];var W$$;var tz4;var FJ=function(){return _.c.apply(this,arguments)||this};
_.J(FJ,_.c);FJ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
FJ.prototype.onBackIconTap_=function(){window.history.back()};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FJ.prototype,"data",void 0);_.e([_.Ry({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],FJ);
_.w(FJ,"yt-header-with-back-renderer",function(){if(tz4===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;W$$===void 0&&(W$$=document.createElement("template"));var a=W$$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);tz4=D}D=tz4;return D},{mode:2});var r5s;var u4y;var zE=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(zE,_.c);_.V=zE.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D,this.setUrl())};
_.V.dataChanged=function(){var D=this;if(this.data){var v=this.setUrl();v&&_.oH({destination:window,iframe:this.iframe,origin:_.Ufm(v.toString()),channelName:"yt-iframe",onMessage:function(h){(h=D.getCommunicationCommand(h.data))&&D.ytComponentBehavior.resolveCommand(h)},
onEstablished:function(){}})}};
_.V.setUrl=function(){if(this.data&&this.data.iframeUrl){var D=_.yx(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(D)return _.uH(this.iframe,D),D}};
_.V.getCommunicationCommand=function(D){var v;if((v=this.data)!=null&&v.onCommunicationCommandsMap){v=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===D});
if(v==null?0:v.value)return v==null?void 0:v.value;try{var h=lwm(_.DJ(D)),a=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===(h==null?void 0:h.getMethodName())});
if(a==null?0:a.value)return a==null?void 0:a.value}catch(Q){}}};
zE.prototype.dataChanged=zE.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],zE.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],zE.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zE.prototype,"data",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],zE.prototype,"isDarkTheme",void 0);_.e([_.Br("#iframe"),_.n("design:type",HTMLIFrameElement)],zE.prototype,"iframe",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zE.prototype,"dataChanged",null);_.e([_.Ry({is:"yt-iframe-renderer",disableElementRegistration:!0})],zE);
_.w(zE,"yt-iframe-renderer",function(){if(u4y===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;r5s===void 0&&(r5s=document.createElement("template"));var a=r5s;h.call(v,a.content.cloneNode(!0),D.content.firstChild);u4y=D}D=u4y;return D},{mode:2});_.Uu=function(D){_.AN.call(this);this.callback=D;this.bezier=new CL1(0,0,.4,0,.2,1,1,1);this.delay=new _.xR(this.next,window,this);this.JSC$16925_animating=!1;_.Ia(this,this.delay)};
_.J(_.Uu,_.AN);_.Uu.prototype.isAnimating=function(){return this.JSC$16925_animating};
_.Uu.prototype.start=function(D,v,h){this.config={from:D,to:v,duration:h,startTime:(0,_.xz)()};this.JSC$16925_animating=!0;this.next()};
_.Uu.prototype.stop=function(){this.delay.stop();this.JSC$16925_animating=!1;this.config=void 0};
_.Uu.prototype.next=function(){if(this.config){var D=this.config,v=D.from,h=D.to,a=D.duration;D=D.startTime;var Q=(0,_.xz)()-D;D=this.bezier;a=FrM(D,Q/a);if(a==0)D=D.y0;else if(a==1)D=D.y3;else{Q=jD(D.y0,D.y1,a);var G=jD(D.y1,D.y2,a);D=jD(D.y2,D.y3,a);Q=jD(Q,G,a);G=jD(G,D,a);D=jD(Q,G,a)}D=_.sk(D,0,1);this.callback(v+(h-v)*D);D<1?this.delay.start():this.JSC$16925_animating=!1}};_.Lk=new _.Uj("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var D71={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},hER=function(D,v,h,a){_.AN.call(this);this.JSC$16936_miniAppId=D;this.localReleaseId=v;this.derivedDeviceInterface=h;this.isForeground=a;this.JSC$16936_playNonceResolver=new _.gT;this.playPingTimerId=NaN;this.playPingIntervalMs=_.oZ("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.oZ("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.g("enable_displaying_ppn");this.JSC$16936_miniAppClientDataProvider=_.xd().resolve(_.Lk);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;vA$(this);var Q=setTimeout(function(){_.yR(new _.XH("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16936_playNonceResolver.promise.then(function(){clearTimeout(Q)})};
_.J(hER,_.AN);var $71=function(D,v){D.JSC$16936_playNonceResolver.resolve(v!=null?v:m3(8));D.enableDisplayingPpn&&a9J(D).then(function(h){D.JSC$16936_miniAppClientDataProvider.clientData.set("post_play_nonce",h)})},a9J=function(D){return _.M(function(v){return v.nextAddress==1?v.yield(D.JSC$16936_playNonceResolver.promise,2):v.return(v.yieldResult)})},vA$=function(D){var v,h;
_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$16936_playNonceResolver.promise,2);v=a.yieldResult;h={miniAppInfo:{externalPostId:D.JSC$16936_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:v,derivedDeviceInterface:D.derivedDeviceInterface}};_.HU(h);_.YI(a)})},G2J=function(D){D.state!==0?_.yR(new _.XH("[MiniAppPlayLogger] recordPlayStart failed with state "+D71[D.state])):(D.state=1,ZT(D,"ma_cl"),Eu(D,"PLAY_EVENT_TYPE_PLAY_START"),QsR(D))},V0t=function(D){D.isForeground=!1;
Eu(D,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Pk4=function(D){D.state!==1&&D.state!==2?_.yR(new _.XH("[MiniAppPlayLogger] recordPlayEnd failed with state "+D71[D.state])):(D.state=3,window.clearInterval(D.playPingTimerId),D.playPingTimerId=NaN,jRA(),Eu(D,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},x74=function(D,v){D.state===2&&D.gameReady&&(D.firstClickRecorded?Date.now()-D.clickRecordedMs<D.playClickIntervalMs||(D.clickRecordedMs=Date.now(),Eu(D,"PLAY_EVENT_TYPE_PLAY_CLICK")):v&&(ZT(D,"ma_fua"),Eu(D,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),D.firstClickRecorded=!0,D.clickRecordedMs=Date.now()))};
hER.prototype.logError=function(D){var v=this,h;_.M(function(a){if(a.nextAddress==1)return D.metadata.externalPostId=v.JSC$16936_miniAppId,h=D.metadata,a.yield(Promise.race([v.JSC$16936_playNonceResolver.promise,new Promise(function(Q){setTimeout(function(){Q("")},3E4)})]),2);
h.postPlayNonce=a.yieldResult;D.metadata.localReleaseId=v.localReleaseId;D.loggingError.level="WARNING";_.mV(D.loggingError,D.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:D.metadata});_.YI(a)})};
var M0J=function(D,v,h,a){var Q,G,x,f,C,U;_.M(function(L){if(L.nextAddress==1)return L.yield(D.JSC$16936_playNonceResolver.promise,2);Q=L.yieldResult;G={externalPostId:D.JSC$16936_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:Q,sdkVersion:h,api:v};a!==void 0&&(G.networkRequestsMeasurement={networkRequests:_.C0(a,1),cachedRequests:_.C0(a,2),transferredBytes:_.C0(a,3)},(x=a)==null?0:_.pa(x,Uc,6))&&(G.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((f=_.CL(a,
Uc,6))==null?void 0:mv(f,1))||"0",cacheHits:((C=_.CL(a,Uc,6))==null?void 0:mv(C,2))||"0",cachedBytes:((U=_.CL(a,Uc,6))==null?void 0:mv(U,3))||"0"});_.jj("miniAppSdkUsage",G);_.YI(L)})},Cks=function(D,v,h){var a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b;
_.M(function(W){if(W.nextAddress==1)return W.yield(D.JSC$16936_playNonceResolver.promise,2);a=W.yieldResult;Q={externalPostId:D.JSC$16936_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:a,sdkVersion:h,measurementWindow:{startTimestampMs:String(bT(v,1)),endTimestampMs:String(bT(v,2))},frameRate:{averageFrameTimeDeltaMs:dY(v,3),averageFrameIdleTimeMs:dY(v,4)}};_.pa(v,Lr,5)&&(Q.networkRequests={networkRequests:(G=Jl(v))==null?void 0:_.C0(G,1),cachedRequests:(x=Jl(v))==null?void 0:_.C0(x,2),transferredBytes:(f=
Jl(v))==null?void 0:_.C0(f,3),sameOriginStatusCodeToCounts:f9b((C=Jl(v))==null?void 0:b3i(C,4)),crossOriginStatusCodeToCounts:f9b((U=Jl(v))==null?void 0:b3i(U,5))},(L=Jl(v))==null?0:_.pa(L,Uc,6))&&(Q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((Z=Jl(v))==null?void 0:(E=_.CL(Z,Uc,6))==null?void 0:mv(E,1))||"0",cacheHits:((I=Jl(v))==null?void 0:(S=_.CL(I,Uc,6))==null?void 0:mv(S,2))||"0",cachedBytes:((B=Jl(v))==null?void 0:(A=_.CL(B,Uc,6))==null?void 0:mv(A,3))||"0"});_.pa(v,
Nsy,7)&&(Q.gameCapture={averageFrameTimeDeltaMs:(d=_.CL(v,Nsy,7))==null?void 0:dY(d,1),averageFrameIdleTimeMs:(b=_.CL(v,Nsy,7))==null?void 0:dY(b,2)});_.jj("miniAppPerformanceMetrics",Q);_.YI(W)})},oA4=function(D,v){var h,a;
return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$16936_playNonceResolver.promise,2);h=Q.yieldResult;a={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:D.JSC$16936_miniAppId,postPlayNonce:h,miniAppReleaseId:D.localReleaseId},derivedDeviceInterface:D.derivedDeviceInterface,adTriggerType:v,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.jj("miniAppAdEvent",a);_.YI(Q)})};
hER.prototype.disposeInternal=function(){_.AN.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Eu=function(D,v,h,a){h=h===void 0?{}:h;a=a===void 0?!1:a;var Q,G,x,f;_.M(function(C){if(C.nextAddress==1)return Q=D.isForeground,G=D.beforeReady,C.yield(D.JSC$16936_playNonceResolver.promise,2);x=C.yieldResult;f={externalPostId:D.JSC$16936_miniAppId,localReleaseId:D.localReleaseId,derivedDeviceInterface:D.derivedDeviceInterface,postPlayNonce:x,type:v};h.sequenceGroup=x;f.playState=G?"PLAY_STATE_NOT_READY":Q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.jj("miniAppPlayEvent",f,
h);a&&_.s5();_.YI(C)})},ZT=function(D,v){var h;
_.M(function(a){if(a.nextAddress==1)return h=(0,_.xz)(),a.yield(D.JSC$16936_playNonceResolver.promise,2);_.ea(v,h);_.YI(a)})},QsR=function(D){isNaN(D.playPingTimerId)&&(D.playPingTimerId=_.Ez(function(){D.state!==1&&D.state!==2?_.yR(new _.XH("[MiniAppPlayLogger] reportPlayPing failed with state "+D71[D.state])):Eu(D,"PLAY_EVENT_TYPE_PLAY_PING")},D.playPingIntervalMs))},f9b=function(D){return Array.from(D.entries()).map(function(v){var h=_.P(v);
v=h.next().value;h=h.next().value;return{key:v,value:h}})};var FHF=function(){},zEy=function(D,v){D.showMiniAppAdCommand=v.showMiniAppAdCommand;
D.isEmbeddedInWebview=v.isEmbeddedInWebview;D.playLogger=v.playLogger},LHJ=function(D,v){var h;
return _.M(function(a){if(a.nextAddress==1){if(!D.showMiniAppAdCommand||!D.isEmbeddedInWebview)return a.return(U7R(D,v));D.adResolver=new _.gT;var Q=new ib;h=_.oe(Q,3,v);yV(D.showMiniAppAdCommand,$_M(h));return a.yield(D.adResolver.promise,2)}return a.return(a.yieldResult)})};
FHF.prototype.onAdFinished=function(D){D=QH9(D);var v;(v=this.adResolver)==null||v.resolve(D)};
var U7R=function(D,v){var h;return _.M(function(a){if(a.nextAddress==1)a=a.yield((h=D.playLogger)==null?void 0:oA4(h,LAA(v)),2);else{var Q=a.return;var G=new $A4;G=_.oe(G,1,2);a=Q.call(a,G)}return a})};var Zis=new _.Uj("INNERTUBE_MANAGER_TOKEN");var EA4=function(){this.callbacks={}};
EA4.prototype.initialize=function(D){var v=this;this.callbacks=D;window.youtubewebview?window.youtubewebview.onmessage=function(h){I9p(v,h)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(h){I9p(v,h)})};
var I9p=function(D,v){if(v.data)try{var h=lwm(v.data);if(_.p3(_.J8(h,1))!=null){var a=reR(_.jI(h,2));switch(h.getMethodName()){case "yt-mini-app-load-audio-state":var Q,G;(G=(Q=D.callbacks).onAudioStateLoaded)==null||G.call(Q,_.q6(a,lD(a,Rd,1)));break;case "yt-mute-mini-app":var x,f;(f=(x=D.callbacks).onMuteMiniApp)==null||f.call(x);break;case "yt-unmute-mini-app":var C,U;(U=(C=D.callbacks).onUnmuteMiniApp)==null||U.call(C);break;case "yt-playable-exit":var L,Z;(Z=(L=D.callbacks).onExit)==null||Z.call(L);
break;case "yt-post-play-nonce":var E,I;(I=(E=D.callbacks).onPostPlayNonceReceived)==null||I.call(E,HD(a,2,Rd));break;case "yt-confirm-exit-mini-app":var S,B;(B=(S=D.callbacks).confirmExitMiniApp)==null||B.call(S);break;case "yt-confirm-exit-mini-app-edu":var A,d;(d=(A=D.callbacks).confirmExitMiniAppEdu)==null||d.call(A);break;case "yt-benchmarking-response":var b,W;(W=(b=D.callbacks).onNativeBenchmarkingMessageReceived)==null||W.call(b,HD(a,2,Rd));break;case "yt-mini-app-load-3p-consent-state":var K,
O;(O=(K=D.callbacks).multiplayer3pAckStateLoaded)==null||O.call(K,_.q6(a,lD(a,Rd,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var R,vA;(vA=(R=D.callbacks).exitMiniAppSeenStateLoaded)==null||vA.call(R,_.q6(a,lD(a,Rd,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var f7,xL;(xL=(f7=D.callbacks).onNavigateToNewMiniApp)==null||xL.call(f7);break;case "yt-game-data-available":var kL,Z4;(Z4=(kL=D.callbacks).onGameDataAvailable)==null||Z4.call(kL,HD(a,2,Rd));break;case "yt-pause-mini-app":var S2,
s8;(s8=(S2=D.callbacks).onPauseMiniApp)==null||s8.call(S2);break;case "yt-resume-mini-app":var Xf,dJ;(dJ=(Xf=D.callbacks).onResumeMiniApp)==null||dJ.call(Xf);break;case "yt-playable-ad-finished":var R4,sF;(sF=(R4=D.callbacks).onAdFinished)==null||sF.call(R4,HD(a,2,Rd))}}else _.yR(Error("$h"))}catch(rc){_.mV(Error("ai"))}else _.yR(Error("bi"))};var E6c=function(D){this.rpcErrorCode=D};var Ic=function(D,v,h){this.intervalMs=D;this.apiFunc=v;this.type=h;this.schedulerReady=!0};
Ic.prototype.call=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1){if(v.type!==1&&D===v.cachedValue)return a.return();v.pendingApiRequestResolver||(v.pendingApiRequestResolver=new _.gT);h=v.pendingApiRequestResolver.promise;v.cachedValue=D;return a.yield(gA1(v),2)}return a.return(h)})};
Ic.prototype.flush=function(D){D=D===void 0?!1:D;var v=this;return _.M(function(h){return v.cachedValue===void 0?h.return():h.yield(v.apiFunc(v.cachedValue,D),0)})};
var gA1=function(D){var v,h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:if(!D.schedulerReady||!D.pendingApiRequestResolver)return Q.return();D.schedulerReady=!1;v=D.pendingApiRequestResolver;D.pendingApiRequestResolver=void 0;_.gE(Q,2);if(D.cachedValue===void 0){Q.jumpTo(4);break}return Q.yield(D.apiFunc(D.cachedValue),5);case 5:h=Q.yieldResult,v.resolve(h);case 4:_.rl(Q,3);break;case 2:a=_.NS(Q),v.reject(a);case 3:setTimeout(function(){return _.M(function(G){D.schedulerReady=!0;return G.yield(gA1(D),
0)})},D.intervalMs),_.YI(Q)}})};var klu=window.location.origin+"/miniapp_cloudsaves",Imr=[400,401],k2F=_.oZ("cloud_save_game_data_rate_limit_ms",3E3),po1=function(D){var v=this;this.JSC$16980_miniAppId=D;this.loadAttempts=0;this.cloudSaveIntervalMs=k2F;this.initialDownloadDataSucceeded=!1;this.JSC$16980_playNonceResolver=new _.gT;this.scottyUploadRateLimiter=new Ic(this.cloudSaveIntervalMs,function(h,a){return Sgp(v,h,a)},2);
this.downloadDataPromise=JGs(this);this.downloadDataPromise.then(function(){v.initialDownloadDataSucceeded=!0}).catch(function(){})},l91=function(D,v){v.then(function(h){return D.JSC$16980_playNonceResolver.resolve(h)})},NAp=function(D){return _.M(function(v){return D.cachedData===void 0?v.return(D.downloadDataPromise):v.return(D.cachedData)})},Yg$=function(D,v){return _.M(function(h){D.cachedData=v;
if(!D.initialDownloadDataSucceeded)throw Error("ci");return h.yield(D.scottyUploadRateLimiter.call(v),0)})},BAt=function(){return new Promise(function(D){setTimeout(D,1E3,"")})},cGM=function(D,v){var h,a;
return _.M(function(Q){if(Q.nextAddress==1)return h=D.JSC$16980_miniAppId,Q.yield(Promise.race([D.JSC$16980_playNonceResolver.promise,BAt()]),2);a={"X-YouTube-MiniAppId":h,"X-YouTube-PostPlayNonce":Q.yieldResult};"DELEGATED_SESSION_ID"in _.y7&&Ga2(v,a);return Q.return(a)})},Sgp=function(D,v,h){h=h===void 0?!1:h;
return _.M(function(a){return Z$c()?_.g("enable_cloud_save_error_popup_after_retry")?a.return(new Promise(function(Q,G){var x,f,C,U,L;return _.M(function(Z){switch(Z.nextAddress){case 1:x=0,f=!0,U=C=null;case 2:if(!(f&&x++<2)){Z.jumpTo(4);break}_.gE(Z,5);return Z.yield(Xoy(D,v,h),7);case 7:C=Z.yieldResult;f=C.ok?!1:!Imr.includes(C.status);_.rl(Z,2);break;case 5:U=L=_.NS(Z);f=g62(U);Z.jumpTo(2);break;case 4:C?C.ok?(gn(D,k2F),Q()):(gn(D,D.cloudSaveIntervalMs*2),G(Error("di`"+String(C.status),{cause:{rpcErrorCode:C.status}}))):
(gn(D,D.cloudSaveIntervalMs*2),G(U||Error("ei"))),_.YI(Z)}})})):a.return(new Promise(function(Q,G){var x,f;
return _.M(function(C){if(C.nextAddress==1){if(D.JSC$16980_miniAppId==="")return G(Error("fi")),C.return();_.gE(C,2);return C.yield(Xoy(D,v,h),4)}if(C.nextAddress!=2)return x=C.yieldResult,x.ok?(gn(D,k2F),Q()):(gn(D,D.cloudSaveIntervalMs*2),G(Error("di`"+String(x.status),{cause:{rpcErrorCode:x.status}}))),_.rl(C,0);f=_.NS(C);gn(D,D.cloudSaveIntervalMs*2);G(f);_.YI(C)})})):a.return()})},Xoy=function(D,v,h){h=h===void 0?!1:h;
var a,Q,G;return _.M(function(x){if(x.nextAddress==1)return a=_.dr((new TextEncoder).encode(v)),Q=S62(),x.yield(cGM(D,Q),2);G=x.yieldResult;return x.return(fetch(Q,{method:"POST",body:new Blob([a]),headers:G,keepalive:h}))})},JGs=function(D){var v,h;
return _.M(function(a){if(a.nextAddress==1){if(!Z$c())return a.return("");if(D.JSC$16980_miniAppId==="")throw Error("fi");if(D.loadAttempts>2)return a.return(D.downloadDataPromise);_.gE(a,2);return a.yield(AG9(D),4)}if(a.nextAddress!=2)return v=a.yieldResult,a.return(v);h=_.NS(a);if(g62(h)&&++D.loadAttempts<2)return a.return(JGs(D));throw h;})},AG9=function(D){var v,h,a,Q,G;
return _.M(function(x){switch(x.nextAddress){case 1:return _.gE(x,2),v=S62(),x.yield(cGM(D,v),4);case 4:return h=x.yieldResult,x.yield(fetch(v,{method:"GET",headers:h}),5);case 5:return a=x.yieldResult,a.ok?x.yield(a.text(),6):x.return(Promise.reject(Error("gi`"+String(a.status),{cause:new E6c(a.status)})));case 6:return Q=x.yieldResult,x.return((new TextDecoder).decode(_.DJ(Q)));case 2:return G=_.NS(x),x.return(Promise.reject(G))}})},gn=function(D,v){D.cloudSaveIntervalMs=v;
D.scottyUploadRateLimiter.intervalMs=D.cloudSaveIntervalMs};
po1.prototype.flush=function(){var D=this;return _.M(function(v){return D.initialDownloadDataSucceeded?v.yield(D.scottyUploadRateLimiter.flush(!0),0):v.return()})};var qgF=kM(gP(1),Ec(1)),bit=kM(gP(1),Ec(3)),kr=function(D){this.callbacks=D};
_.V=kr.prototype;_.V.onAudioToggled=function(D,v){(v===void 0||v)&&_.eL("yt-mini-app-is-audio-enabled",D,2592E3)};
_.V.onPause=function(){this.onAudioToggled(!1,!1)};
_.V.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.V.returnNativeBenchmarkingMessage=function(){};
_.V.sendGameData=function(){};
_.V.sendStartGameFrameCapture=function(){};
var JtO=function(D,v,h){this.callbacks=D;var a=this;this.sdkVersion=new _.gT;this.channel=new kus(_.oH({destination:window,iframe:v,origin:(new URL(h.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Q=S4;var G=gP(5);var x=new FT4;x=_.wY(x,1,1E4);G=_.Nf(G,4,k6F,x);Q(a,G);a.onAudioToggled(a.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){a.sdkVersion.resolve("")},1E4)};
_.J(JtO,kr);_.V=JtO.prototype;_.V.onAudioToggled=function(D,v){kr.prototype.onAudioToggled.call(this,D,v===void 0?!0:v);v=S4;var h=gP(2),a=new C2J;D=_.UN(a,1,D);D=_.Nf(h,3,k6F,D);v(this,D)};
_.V.onPause=function(){kr.prototype.onPause.call(this);S4(this,gP(3))};
_.V.onResume=function(){kr.prototype.onResume.call(this);S4(this,gP(4))};
_.V.returnNativeBenchmarkingMessage=function(D){var v=S4,h=gP(6);var a=Ec(_.pa(D,Gr,1)?1:2);D=_.pa(D,Gr,1)?D:null;a=_.Nf(a,5,Id,D);v(this,kM(h,a))};
_.V.sendGameData=function(D){var v=S4,h=gP(7);D=_.Nf(h,5,k6F,D);v(this,D)};
_.V.sendStartGameFrameCapture=function(){S4(this,gP(9))};
var Jo=function(D,v,h){var a,Q,G;return _.M(function(x){if(x.nextAddress==1)return a=D.callbacks,Q=a.onSdkCalled,G=v,x.yield(D.sdkVersion.promise,2);Q.call(a,G,x.yieldResult,h);_.YI(x)})};
JtO.prototype.onMessage=function(){var D=this;return pA4(pr,function(v){var h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL,kL,Z4,S2,s8,Xf,dJ,R4,sF,rc,I4,q1,jt,rr,Zb,VO,Pm,Yp,C3,ZJ,VK,oP,rJ;return _.M(function(o4){switch(o4.nextAddress){case 1:if(!Xu$(v.data))return _.yR(Error("hi")),o4.return();h=_.s1(v.data,1);_.g("enable_iframe_message_get_type_via_fields")&&(a=v.data,h=Q=_.s1(a,1));switch(h){case 8:if(v.data.hasMetadata()){var Hm=D.sdkVersion,gr=Hm.resolve;var Jb=v.data.getMetadata();Jb=_.jI(Jb,
1);gr.call(Hm,Jb);clearTimeout(D.sdkVersionTimeoutId)}break;case 6:return o4.jumpTo(2);case 16:if(!_.lT(v.data,pu$,14,lb))return o4.return();G=_.yF(v.data,pu$,14,lb);(f=(x=D.callbacks).onGameFrameReceived)==null||f.call(x,G);return o4.return();case 17:if(!_.lT(v.data,Jy1,15,lb))return o4.return();(U=(C=D.callbacks).onGameAudioReceived)==null||U.call(C,_.yF(v.data,Jy1,15,lb));return o4.return();case 1:if(Hm=_.yF(v.data,LTy,2,lb))switch(_.s1(Hm,1)){case 1:D.callbacks.onFirstFrameReady();if(_.g("enable_network_request_logging_on_game_events")&&
_.pa(Hm,Lr,4)){Jo(D,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.CL(Hm,Lr,4));break}Jo(D,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Jb=(gr=D.callbacks).onGameReady)==null||Jb.call(gr);if(_.g("enable_network_request_logging_on_game_events")&&_.pa(Hm,Lr,4)){Jo(D,"MINI_APP_SDK_API_GAME_READY",_.CL(Hm,Lr,4));break}Jo(D,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.lT(Hm,ZQ,3,ZWR))D.callbacks.onResourceLoaded(_.yF(Hm,ZQ,3,ZWR))}return o4.return();case 3:return o4.jumpTo(3);case 4:return o4.jumpTo(4);
case 2:return o4.jumpTo(5);case 9:return o4.jumpTo(6);case 10:return D.callbacks.onClick(),o4.return();case 5:return o4.jumpTo(7);case 11:if(!_.lT(v.data,Fi,9,lb))return o4.return();L=_.yF(v.data,Fi,9,lb);(E=(Z=D.callbacks).onBenchmarkingMessageReceived)==null||E.call(Z,L);Hm=v.reply;gr=gP(1);Jb=Ec(1);var kp=new Fi;var E2=new Uint8Array(y57(L,lD(L,VDM,6))|0);kp=gf(kp,5,VDM,_.N1(E2,!1));Jb=_.Nf(Jb,5,Id,kp);Hm.call(v,kM(gr,Jb));return o4.return();case 12:return o4.jumpTo(8);case 13:return o4.jumpTo(9);
case 15:if(!_.g("enable_open_yt_content"))return v.reply(bit),o4.return();if(!_.lT(v.data,SOp,12,lb))return v.reply(kM(gP(1),Ec(2))),o4.return();Hm=_.yF(v.data,SOp,12,lb);I=_.jI(Hm,1);D.callbacks.onOpenYTContent(I);v.reply(qgF);return o4.return();case 14:return o4.jumpTo(10);default:return o4.return()}o4.jumpTo(0);break;case 2:if(!_.lT(v.data,S8,5,lb))return o4.return();gr=v.data;Hm=lD(gr,lb,5);gr=gr.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=mIu(gr,gr[_.V$]|0,S8,Hm)||S8[yb8]||(S8[yb8]=
wmc(S8));Hm=_.Mp(S,zX,1,_.f0());B=_.P(Hm);A=B.next();case 12:if(A.done){o4.jumpTo(14);break}d=A.value;b=new _.XH;b.level=_.s1(d,2)===1?"WARNING":"ERROR";W=lm2(d.getSource());return o4.yield(D.sdkVersion.promise,15);case 15:K={source:W,sdkVersion:o4.yieldResult};_.$C(_.J8(d,6))!=null?(b.message=d.getMessage(),b.stack=_.jI(d,5),K.sdkErrorType=NU2(_.s1(d,6)),_.$C(_.J8(d,7))!=null&&(K.sdkApi=Y6L(_.s1(d,7)))):b.stack=void 0;R=O=void 0;(R=(O=D.callbacks).onError)==null||R.call(O,{loggingError:b,metadata:K});
A=B.next();o4.jumpTo(12);break;case 14:return o4.return();case 3:return _.gE(o4,16),Hm=o4.yield,gr=D.callbacks,Jb=gr.onSave,kp=_.yF(v.data,oa4,4,lb),kp=_.jI(kp,1),Hm.call(o4,Jb.call(gr,kp),18);case 18:v.reply(qgF);_.rl(o4,17);break;case 16:return vA=_.NS(o4),f7=wv,xL=vA,kL=D.callbacks,Z4="MINI_APP_SDK_API_SAVE_DATA",o4.yield(D.sdkVersion.promise,19);case 19:f7(xL,kL,Z4,o4.yieldResult),v.reply(bit);case 17:return o4.yield(Jo(D,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return o4.return();case 4:return _.gE(o4,
21),o4.yield(D.callbacks.onLoad(),23);case 23:S2=o4.yieldResult;Hm=v.reply;gr=gP(1);Jb=Ec(1);kp=new oa4;kp=_.Xx(kp,1,S2);Jb=_.Nf(Jb,3,Id,kp);Hm.call(v,kM(gr,Jb));_.rl(o4,22);break;case 21:return s8=_.NS(o4),Xf=wv,dJ=s8,R4=D.callbacks,sF="MINI_APP_SDK_API_LOAD_DATA",o4.yield(D.sdkVersion.promise,24);case 24:Xf(dJ,R4,sF,o4.yieldResult),v.reply(bit);case 22:return o4.yield(Jo(D,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return o4.return();case 5:_.gE(o4,26);D.callbacks.onSendHighScore(wW(_.yF(v.data,
Bs4,3,lb).getValue()));v.reply(kM(gP(1),Ec(1)));_.rl(o4,27);break;case 26:return rc=_.NS(o4),I4=wv,q1=rc,jt=D.callbacks,rr="MINI_APP_SDK_API_SEND_SCORE",o4.yield(D.sdkVersion.promise,28);case 28:I4(q1,jt,rr,o4.yieldResult),v.reply(bit);case 27:return o4.yield(Jo(D,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return o4.return();case 6:if(!_.lT(v.data,cym,8,lb)){o4.jumpTo(30);break}Hm=o4.yield;gr=_.yF(v.data,cym,8,lb);gr=_.s1(gr,1);return Hm.call(o4,Jo(D,Y6L(gr)),30);case 30:return o4.return();case 7:return Hm=
v.reply,gr=gP(1),Jb=Ec(1),kp=D.callbacks.getLanguage(),Jb=gf(Jb,4,Id,Jr(kp)),Hm.call(v,kM(gr,Jb)),o4.yield(Jo(D,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return o4.return();case 8:if(!_.lT(v.data,YOs,10,lb))return o4.return();Zb=_.yF(v.data,YOs,10,lb);VO=D.callbacks;Pm=VO.onSdkPerformanceUpdate;return o4.yield(D.sdkVersion.promise,33);case 33:return Pm.call(VO,Zb,o4.yieldResult),o4.return();case 9:Hm=v.data;gr=lD(Hm,lb,11);if(_.p3(_.J8(Hm,gr))==null)return v.reply(kM(gP(1),Ec(2))),o4.return();
Yp=HD(v.data,11,lb);D.callbacks.onShareInviteCode(Yp);v.reply(qgF);return o4.yield(Jo(D,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return o4.return();case 10:if(_.lT(v.data,fNp,13,lb)){o4.jumpTo(35);break}return o4.yield(D.callbacks.onShowMiniAppAd(2),36);case 36:return C3=o4.yieldResult,v.reply(kM(gP(1),INR(C3))),o4.yield(Jo(D,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return o4.return();case 35:Hm=_.yF(v.data,fNp,13,lb);a:switch(_.s1(Hm,1)){case 1:Hm={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Hm={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Hm={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}ZJ=Hm;VK=ZJ.adType;oP=ZJ.sdkApi;Hm=o4.yield;gr=D.callbacks;Jb=gr.onShowMiniAppAd;kp=_.yF(v.data,fNp,13,lb);kp=_.jI(kp,2);return Hm.call(o4,Jb.call(gr,VK,kp||void 0),38);case 38:return rJ=o4.yieldResult,v.reply(kM(gP(1),INR(rJ))),o4.yield(Jo(D,oP),39);case 39:return o4.return()}})})};
var S4=function(D,v){_.M(function(h){D.channel.send(v);_.YI(h)})},eo=function(D,v,h){this.callbacks=D;
var a=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;D=tRu(v,(new URL(h.toString())).origin);this.gameSnacks=new mr$(D);this.gameSnacks.page.onReady(function(){a.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){a.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Q,G;(G=(Q=a.callbacks).onGameReady)==null||G.call(Q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Q,G){try{a.callbacks.onSendHighScore(G)}catch(x){wv(x,a.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Q,G){var x;return _.M(function(f){if(f.nextAddress==1)return _.gE(f,2),f.yield(a.callbacks.onSave(a.decoder.decode(G)),4);if(f.nextAddress!=2)return _.rl(f,0);x=_.NS(f);wv(x,a.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return f.return()})});
this.gameSnacks.storage.onLoad(function(){var Q,G;return _.M(function(x){if(x.nextAddress==1)return _.gE(x,2),x.yield(a.callbacks.onLoad(),4);if(x.nextAddress!=2)return Q=x.yieldResult,x.return(a.encoder.encode(Q));G=_.NS(x);wv(G,a.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return x.return(a.encoder.encode(""))})});
this.gameSnacks.init()};
_.J(eo,kr);eo.prototype.onAudioToggled=function(D,v){kr.prototype.onAudioToggled.call(this,D,v===void 0?!0:v);var h;(h=this.gameSnacks)==null||h.audio.update(D)};
eo.prototype.onPause=function(){kr.prototype.onPause.call(this);var D;(D=this.gameSnacks)==null||D.game.pause()};
eo.prototype.onResume=function(){kr.prototype.onResume.call(this);var D;(D=this.gameSnacks)==null||D.game.resume()};var d7s=BUc,jsm=_.H(function(D){var v=D.data;var h=D.loadingProgress;var a=D.forPaused;D=_.P(_.Zq("",void 0,"LYYTdd"));var Q=D.next().value,G=D.next().value;D=_.P(_.Zq(!1,void 0,"K0waae"));var x=D.next().value,f=D.next().value,C=[],U=function(){return"transform: scaleX("+(_.sY(h)||0)+")"},L=null,Z=function(){return v()&&L!==null&&L!==void 0?L:L=v().showAnniversaryAnimation?6:d7s()};
_.bW(function(){var B;if(v().timeOutMessages&&((B=v().timeOutMessages)==null?0:B.length)){L=null;B=_.P(C);for(var A=B.next();!A.done;A=B.next())clearTimeout(A.value);C.length=0;ctA(v().timeOutMessages,C,G,f)}},"BNu9j");
var E=function(){return!!v().persistentErrorMessageTitle},I=function(){return h!==void 0},S=function(){return v().title};
return _.F("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.F("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.F("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.F("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var B,A=(B=v().backgroundImage)==null?void 0:B.sources,d;return(A==null?0:A.length)?"background-image: url("+((d=A[0])==null?void 0:d.url)+")":""}}),_.F("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.F(_.z,{cond:function(){return!E()&&!(a==null?0:a())},
then:function(){var B={};return _.F("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.F("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.F(_.ne,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+Z()},
data:function(){var A="loading_animation_"+Z();return{animationConfig:{name:A,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+A+".json",loop:!0,autoplay:!0}}}})),_.F("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.F(_.z,{cond:S,
then:function(){return _.F("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},S)}}),_.F("p",{class:_.S3("miniAppSplashScreenViewModelTimeoutMessage",(B.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return x()},B)),
"aria-live":"polite"},Q),_.F(_.z,{cond:I,then:function(){return _.F("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.F("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:U}))}})))}}),_.F(_.z,{cond:E,
then:function(){return _.F("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.F("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return v().persistentErrorMessageTitle}),_.F(_.z,{cond:function(){return!!v().persistentErrorMessageDescription},
then:function(){return _.F("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return v().persistentErrorMessageDescription})}}))}}),_.F(_.z,{cond:a,
then:function(){return _.F("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.F("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.F("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},S))}})))},"tf");var ss4=new _.Uj("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var m74=at;at=function(D){function v(h){if(h){var a,Q;(a=h.__spec)==null||(Q=a.didUnmount)==null||Q.call(a);for(a=0;a<h.childNodes.length;a++)v(h.childNodes[a])}}
m74==null||m74(D);ys(function(){for(var h=0;h<D.length;h++)v(D[h])})};var HiF=_.H(function(D){var v=D.data;var h=D.score;var a=D.formattedScore;var Q=D.onScoreChanged;var G=D.isEmbeddedInWebview;var x=_.$X("yt-mini-app-score-button-view-model"),f=function(){var I;return _.k(v==null?void 0:(I=v())==null?void 0:I.buttonViewModel,_.fH)},C=function(){var I;
return(h==null?void 0:h())||Number(v==null?void 0:(I=v())==null?void 0:I.lastScore)||0},U=function(){var I;
return(a==null?void 0:a())||((I=f())==null?void 0:I.title)||""},L,Z=1;
if(D=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))D=Number(D),Z=isNaN(D)?1:D/100;_.bW(function(){Q==null||Q(C());var I;var S=_.Rq((I=f())==null?void 0:I.onTap);if(S){I=_.k(S,ykJ);var B,A,d;I=_.k(I==null?void 0:(B=I.panelLoadingStrategy)==null?void 0:(A=B.inlineContent)==null?void 0:(d=A.dialogViewModel)==null?void 0:d.customContent,Q5J)}else I=void 0;if(B=I)B.score=U()},"Aekez");
D=_.Jd(function(){var I,S,B=v==null?void 0:(I=v())==null?void 0:(S=I.loggingDirectives)==null?void 0:S.trackingParams;B&&_.mj(_.xd().resolve(_.aS),B);return!1});
_.jA(function(){if(x.value){var I=x.value.querySelector("button"),S=f();I&&S&&XhI(I,S);_.Pa("yt-share-playable-with-high-score",function(){var B=C().toString(),A=v==null?void 0:v().onShareHighScoreCommand,d=v==null?void 0:v().highScoreShareClientParamIdentifier,b=G==null?void 0:G();A&&(b?(d=new SH1,B=_.Xx(d,2,B),yV(A,B.JSC$12375_serializeBinary())):d&&(_.xd().resolve(ss4).clientParams.set(d,{miniAppClientParams:{highScore:B}}),o68(A,!1)))})}});
var E=function(){var I=f();I&&(h==null?0:h())&&I.accessibilityText&&(I.accessibilityText=I.accessibilityText.replace(L,U()));L=U();return{numberValue:C(),numberText:U(),heightPx:36,fontSizeMultiplier:Z,shouldAnimate:!(h==null||!h())&&!0}};
return _.F("yt-mini-app-score-button-view-model",{class:function(){var I={};return _.sn("miniAppScoreButtonViewModelHost",(I.miniAppScoreButtonViewModelIsVisible=C()!==0,I))},
el:x,"on:click":D},Bar(!1,function(){return _.F("span",{style:"display:none;"},C)}),_.F(_.c4,{data:function(){var I;
return v==null?void 0:(I=v())==null?void 0:I.buttonViewModel}},{buttonViewModel:function(I){return _.F(_.s$,{data:I.data,
animatedTextProps:E})}}))},"vf");var Ois=_.H(function(D){var v,h=(v=_.nq("yt-mini-app-is-theater-mode-enabled"))!=null?v:!1,a=_.g("enable_playable_container_save_button"),Q=_.g("enable_play_next_destination_page_in_toolbar");v={};return _.F("ytm-mini-app-top-bar-view-model",null,_.F("div",{class:_.S3("yt-mini-app-top-bar-view-model",(v["yt-mini-app-top-bar-view-model--mobile"]=!1,v["yt-mini-app-top-bar-view-model--desktop"]=!0,v))},_.F("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.F(_.z,{cond:function(){var G;return!!D.data().backButtonEdu&&
!((G=D.isExitMiniAppSeen)==null?0:G.call(D))},
then:function(){return _.F(_.c4,{data:function(){return D.data().backButtonEdu}},{buttonViewModel:_.s$})},
else:function(){return _.F(_.c4,{data:function(){return D.data().backButton}},{buttonViewModel:_.s$})}}),_.F(_.z,{cond:function(){return D.data().viewAllButton&&!0},
then:function(){return _.F(_.c4,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.s$})}}),_.F(_.z,{cond:function(){return D.data().title&&!0},
then:function(){return _.F("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return D.data().title})}})),_.F("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.F(_.z,{cond:function(){var G;
return(G=D.isDesktopPlayPage)==null?void 0:G.call(D)},
then:function(){return _.F(_.xf,null,_.F(yG4,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview}),_.F(woJ,{enableSaveButton:function(){return _.sY(a)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.F(eE1,{menuButton:function(){return D.data().menuButton}}))},
else:function(){return _.F(_.z,{cond:function(){return!1},
then:function(){return _.F(_.c4,{data:function(){return D.data().playPageButton}},{buttonViewModel:function(G){return _.F(_.s$,{data:G.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.F(yG4,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview})}})}})),_.F("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.F(_.c4,{data:function(){return D.data().muteButton}},{toggleButtonViewModel:function(G){var x=G.data;
return _.F(_.$$,{data:function(){var f,C;return Object.assign({},x(),{isToggled:(C=(f=D.isAudioEnabled)==null?void 0:f.call(D))!=null?C:!0})},
onToggle:D.onAudioToggled,useOutlinedIcon:!0})}}),_.F(_.c4,{data:function(){return D.data().theatreModeButton}},{toggleButtonViewModel:function(G){var x=G.data;
return _.F("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.F(_.$$,{data:function(){return Object.assign({},x(),{isToggled:h})},
useOutlinedIcon:!0}))}}),_.F(nAs,{fullscreenButton:function(){return D.data().fullscreenButton}}),_.F(_.z,{cond:function(){return _.sY(Q)&&D.data().viewAllButton&&!1},
then:function(){return _.F(_.c4,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.s$})}}),_.F(_.z,{cond:function(){var G;
return!((G=D.isDesktopPlayPage)==null?0:G.call(D))},
then:function(){return _.F(_.xf,null,_.F(woJ,{enableSaveButton:function(){return _.sY(a)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.F(eE1,{menuButton:function(){return D.data().menuButton}}))}}))))},"wf");
Ois.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var eE1=_.H(function(D){return _.F(_.c4,{data:D.menuButton},{buttonViewModel:_.s$})},"xf"),woJ=_.H(function(D){var v=D.enableSaveButton;
var h=D.saveButton;var a=D.isSaved;var Q=D.onSaveToggled;return _.F(_.z,{cond:function(){return v()&&!(h==null||!h())},
then:function(){return _.F(_.c4,{data:function(){var G=_.k(h==null?void 0:h(),_.oA),x;return{toggleButtonViewModel:Object.assign({},G,{isToggled:(x=a==null?void 0:a())!=null?x:!(G==null||!G.isToggled)})}}},{toggleButtonViewModel:function(G){return _.F(_.$$,{data:G.data,
onToggle:Q})}})}})},"yf"),yG4=_.H(function(D){var v=D.highScoreButton;
var h=D.score;var a=D.formattedScore;var Q=D.onScoreChanged;var G=D.isEmbeddedInWebview;return _.F(_.c4,{data:v},{miniAppScoreButtonViewModel:function(x){return _.F(HiF,{data:x.data,score:h,formattedScore:a,onScoreChanged:Q,isEmbeddedInWebview:G})}})},"zf"),nAs=_.H(function(D){D=D.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.F(_.xf,null):_.F(_.c4,{data:D},{buttonViewModel:_.s$})},"Af");_.KHR=new _.Uj("DESKTOP_CURRENT_PAGE");var rGp=_.H(function(D){var v=D.data;var h=_.g("force_active_time_logging_webview"),a=!1,Q=new EA4,G=void 0,x=void 0,f=_.xd().resolve(Zis),C=new FHF,U=void 0,L=void 0,Z=[],E=void 0,I=void 0,S=!1,B=!1,A=!1,d=!1,b=new _.gT,W=_.xd().resolve(ss4),K=_.xd().resolve(_.Lk),O=_.xd().resolve(_.PV(KC)),R,vA=(R=_.xd().resolve(_.PV(_.KHR)))==null?void 0:R.getCurrentPage(),f7=!1,xL=0,kL=function(tc){tc.preventDefault();return tc.returnValue=""},Z4;
D=_.P(_.Zq(!((Z4=_.nq("yt-mini-app-is-audio-enabled"))!=null&&!Z4),void 0,"WhYQTd"));var S2=D.next().value,s8=D.next().value,Xf;Z4=_.P(_.Zq(!((Xf=_.nq("exit-mini-app-seen-state"))==null||!Xf),void 0,"jxhCJb"));var dJ=Z4.next().value,R4=Z4.next().value;Xf=_.P(_.Zq(!1,void 0,"MuvDfe"));var sF=Xf.next().value,rc=Xf.next().value;Xf=_.P(_.Zq(void 0,void 0,"u9DLoc"));var I4=Xf.next().value,q1=Xf.next().value;Xf=_.P(_.Zq(void 0,void 0,"rykyJb"));var jt=Xf.next().value,rr=Xf.next().value;Xf=_.P(_.Zq(!0,void 0,
"d8FUvf"));var Zb=Xf.next().value,VO=Xf.next().value;Xf=_.P(_.Zq(!1,void 0,"x9XwUb"));var Pm=Xf.next().value,Yp=Xf.next().value;Xf=_.P(_.Zq(!1,void 0,"bcquyc"));var C3=Xf.next().value,ZJ=Xf.next().value;Xf=_.P(_.Zq(void 0,void 0,"FMAC5b"));var VK=Xf.next().value,oP=Xf.next().value;Xf=_.P(_.Zq(0,void 0,"HUGJEb"));var rJ=Xf.next().value,o4=Xf.next().value,Hm=_.va("mini-app-container-view-model"),gr=function(){return v().isEmbeddedInWebview},Jb=function(){return v().hasPlayNextShelf};
_.Pa("yt-page-type-changed",function(tc){if(_.g("enable_is_mini_app_page_active_bugfix"))tc.detail.newPageSubtype==="mini_app"&&tc.detail.newPageType==="ytd-browse"||!Zb()||hw();else if(tc=_.QOq()==="mini_app",tc!==Zb())if(VO(tc),tc){var S$;tc=(S$=v().playableId)==null?void 0:S$.toString();tc!==void 0&&window.location.href.includes(tc)&&!B&&(d=!0,kp(),g0.value&&BW(g0.value))}else tc||hw()});
_.Pa("yt-action",function(tc){tc.detail.actionName==="yt-engagement-panel-visible-changed"&&tc.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&tc.detail.args[2]==="PAmini_app_panel"&&hw();_.g("enable_is_mini_app_page_active_bugfix")?tc.detail.actionName==="yt-history-load"&&!Zb()&&(vA==null?0:vA.active)?(VO(!0),kp(),g0.value&&BW(g0.value)):tc.detail.actionName==="yt-history-load"&&Zb()&&!v().isEmbeddedInWebview&&PW():Zb()&&tc.detail.actionName==="yt-history-load"&&(d?d=!1:v().isEmbeddedInWebview||
PW())});
_.dq(function(){E2()});
_.bW(function(){kp()},"bLMzme");
var kp=function(){var tc=v().playableId,S$=v().localReleaseId,j$=v().derivedDeviceInterface;if(B)_.yR(new _.XH("[MiniAppContainerViewModel] onEnter was called more than once"));else{B=!0;G=new hER(tc,S$,j$,document.visibilityState==="visible");G2J(G);x=new po1(tc);TAJ(f,tc);zEy(C,{showMiniAppAdCommand:v().showMiniAppAdCommand,isEmbeddedInWebview:v().isEmbeddedInWebview,playLogger:G});K6f()&&(I=document.body.style.backgroundColor,_.Wu(document.body,"background-color","black"));tX();s2();b=new _.gT;
if(v().isEmbeddedInWebview){if(tc=(new URLSearchParams(window.location.search)).get("postPlayNonce"))$71(G,tc),f7=!0;Q.initialize({onAudioStateLoaded:function(xC){W1(xC)},
onMuteMiniApp:function(){W1(!1)},
onUnmuteMiniApp:function(){W1(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(xC){f7||($71(G,xC),f7=!0)},
confirmExitMiniApp:function(){var xC,Fx,WW;return _.M(function(n0){if(n0.nextAddress==1)return v().confirmExitMiniAppCommand?n0.yield(Promise.race([b.promise,Promise.resolve(!1)]),2):n0.return();(xC=n0.yieldResult)?!v().confirmExitMiniAppCommandEdu||(WW=(Fx=dJ)==null?void 0:Fx())!=null&&WW?wD(v().confirmExitMiniAppCommand):(wD(v().confirmExitMiniAppCommandEdu),_.eL("exit-mini-app-seen-state","true",2592E6)):wD(v().closeMiniAppCommand);_.YI(n0)})},
onNativeBenchmarkingMessageReceived:function(xC){xC=xAb(_.Cg7(xC));if(_.lT(xC,_.m2,3,G6p)){var Fx=_.yF(xC,_.m2,3,G6p),WW=FA8();var n0=wW(WW.getSeconds())-wW(Fx.getSeconds());Fx=_.C0(WW,2)-_.C0(Fx,2);n0<0&&Fx>0?(n0+=1,Fx-=1E9):n0>0&&Fx<0&&(--n0,Fx+=1E9);n0=(new Gr).setSeconds(n0);n0=_.h3(n0,2,_.QK(Fx),0);_.lH(xC,1,n0)}var uP;(uP=L)==null||uP.returnNativeBenchmarkingMessage(xC)},
multiplayer3pAckStateLoaded:function(xC){PW(xC)},
exitMiniAppSeenStateLoaded:function(xC){v().confirmExitMiniAppCommandEdu&&R4(xC)},
onNavigateToNewMiniApp:function(){wD(v().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(xC){xC=new URLSearchParams(xC);var Fx=void 0;xC.has("invite_code")&&(Fx=new UA9,xC=xC.get("invite_code"),Fx=_.Xx(Fx,1,xC));if(xC=Fx){var WW;(WW=L)==null||WW.sendGameData(xC)}},
onPauseMiniApp:function(){a=!0;NI()},
onResumeMiniApp:function(){a=!0;nf()},
onAdFinished:function(xC){C.onAdFinished(xC)}});
v().showMultiplayer3pConsentDialogCommand||b.resolve(!0);wD(v().onContainerReadyCommand)}else $71(G),b.resolve(!0);l91(x,a9J(G));a9J(G).then(function(xC){xC={miniAppPlayData:{postPlayNonce:xC}};var Fx,WW=(Fx=v().loggingDirectives)==null?void 0:Fx.trackingParams;WW&&_.c8().stateChanged(WW,xC)});
tc=v().showSignInDialogCommand;!Z$c()&&tc&&(_.eL("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),wD(tc));v().confirmExitMiniAppCommand&&O&&(tc=fmq(v().confirmExitMiniAppCommand))&&(O.customConfirmationCommand=tc)}},E2=function(){I&&_.Wu(document.body,"background-color",I);
S=!1;E&&E.release();x.flush().catch(function(tc){_.yR(tc)});
f.flush().catch(function(tc){_.yR(tc)});
Pk4(G);Vy();L=void 0;REb(W)},hw=function(){VO(!1);
E2();rc(!1);oP(void 0);q1(void 0);rr(void 0);xL=0;o4(0);B=!1},NI=function(){var tc;
(tc=L)==null||tc.onPause();E&&E.release();x.flush().catch(function(S$){_.yR(S$)});
f.flush().catch(function(S$){_.yR(S$)});
V0t(G);Yp(!0)},nf=function(){var tc;
(tc=L)==null||tc.onResume();s2();tc=G;tc.isForeground=!0;Eu(tc,"PLAY_EVENT_TYPE_PLAY_RESUME");Yp(!1)},W1=function(tc){var S$;
(S$=L)==null||S$.onAudioToggled(tc);s8(tc)},PW=function(tc){v().showMultiplayer3pConsentDialogCommand&&(v().isEmbeddedInWebview&&tc!==void 0&&b.resolve(tc),!tc&&_.QOq()==="mini_app"&&wD(v().showMultiplayer3pConsentDialogCommand))},Wm=function(){var tc,S$,j$,xC;
return _.M(function(Fx){if(Fx.nextAddress==1){!v().isLivestream||v().disableVideoCapture||(tc=L)!=null&&tc.sendStartGameFrameCapture();S$=(new URL(window.location.href)).searchParams;if(S$.has("invite_code")){var WW=new UA9,n0=S$.get("invite_code");j$=_.Xx(WW,1,n0);(xC=L)==null||xC.sendGameData(j$)}sF()||(rc(!0),WW=G,WW.state!==1?_.yR(new _.XH("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+D71[WW.state])):(_.zi("mini_app_ids_without_game_ready").includes(WW.JSC$16936_miniAppId)&&(WW.gameReady=
!0),WW.state=2,WW.beforeReady=!1,ZT(WW,"ma_ffr"),Eu(WW,"PLAY_EVENT_TYPE_PLAY_READY")));return Fx.yield(b.promise,2)}wD(v().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();v().isEmbeddedInWebview||PW();_.YI(Fx)})},kC=function(){var tc=G;
tc.gameReady=!0;ZT(tc,"ma_gr")},aU=function(tc){var S$;
return _.M(function(j$){if(j$.nextAddress==1)return _.gE(j$,2),j$.yield(Yg$(x,tc),4);if(j$.nextAddress!=2)return _.rl(j$,0);S$=_.NS(j$);wD(v().showSavingErrorPopupCommand);throw S$;})},UM=function(){var tc,S$;
return _.M(function(j$){if(j$.nextAddress==1)return _.gE(j$,2),j$.yield(NAp(x),4);if(j$.nextAddress!=2)return tc=j$.yieldResult,j$.return(tc);S$=_.NS(j$);wD(v().showLoadingErrorDialogCommand);throw S$;})},hN=function(tc){G.logError(tc)},gW=function(tc,S$,j$){M0J(G,tc,S$,j$)},u9=function(tc,S$){Cks(G,tc,S$)},OX=function(){!h&&v().isEmbeddedInWebview||_.P1();
x74(G,!0);S||(window.addEventListener("beforeunload",kL,{capture:!0}),S=!0)},$E=function(tc){var S$,j$,xC,Fx,WW,n0,uP;
return _.M(function(B4){if(B4.nextAddress==1)return f&&(!U||U<tc)&&tc>0?B4.yield(iis(f,tc),3):B4.jumpTo(0);S$=B4.yieldResult;j$=_.P(S$);xC=j$.next().value;Fx=j$.next().value;WW=xC;n0=Fx;((uP=WW)==null?0:uP.displayString)&&n0&&(q1(n0),rr(WW.displayString));_.YI(B4)})},YL=function(tc){var S$=v().onBenchmarkingMessageReceivedCommand;
if(S$){var j$=FA8();_.Nf(tc,3,G6p,j$);yV(S$,MD$(tc))}},HA=function(tc){var S$=v().onGameFrameReceivedCommand;
if(S$){var j$=new ib;var xC=new D_F;var Fx=bT(tc,1);xC=_.Y_(xC,1,Fx);tc=_.jI(tc,2);tc=_.Xx(xC,2,tc);j$=_.lH(j$,2,tc);yV(S$,$_M(j$))}},Tu=function(tc){var S$=v().onGameAudioDataReceivedCommand;
if(S$){var j$=new ib;var xC=new hhy;tc=_.jI(tc,1);xC=_.Xx(xC,1,tc);j$=_.lH(j$,4,xC);yV(S$,$_M(j$))}},L4=function(){var tc=new URLSearchParams(window.location.search);
if(v().isEmbeddedInWebview&&tc&&tc.get("override_hl")==="true"&&tc.get("hl"))return tc.get("hl");tc=document.documentElement.lang;return tc!==""?tc:Wf},U2=function(tc){var S$=v().onShareInviteCodeCommand;
if(S$)if(v().isEmbeddedInWebview){var j$=new SH1;tc=_.Xx(j$,1,tc);yV(S$,pCy(tc))}else j$=v().inviteCodeShareClientParamIdentifier,W.clientParams.set(j$,{miniAppClientParams:{inviteCode:tc}}),wD(S$)},A3=function(tc){var S$,j$,xC;
return _.M(function(Fx){if(Fx.nextAddress==1)return S$=v().onMiniAppOpenYtContentRequested,f&&_.g("enable_open_yt_content")&&S$?Fx.yield(WHR(f,tc),3):Fx.jumpTo(0);j$=Fx.yieldResult;if(j$==="OK")if(v().isEmbeddedInWebview){var WW=new WJR;xC=gf(WW,2,Rd,Jr(tc));yV(S$,u74(xC))}else K.clientData.set("video_id",tc),wD(S$);_.YI(Fx)})},YC=function(tc){xL+=_.C0(tc,3);
tc=Math.min(Math.log(1+xL/15E6*9)/Math.log(10),.99);o4(tc);gJ(tc)},gJ=_.b2(function(tc){var S$=v().updateLoadingProgressCommand;
if(S$){var j$=new WJR;tc=gf(j$,3,Rd,_.Ty(tc));yV(S$,u74(tc))}},100),EF=function(tc){return LHJ(C,tc)},s2=function(){var tc,S$;
((tc=_.ncO())==null?void 0:(S$=tc.wakeLock)==null?void 0:S$.request)!=null&&_.ncO().wakeLock.request("screen").then(function(j$){E=j$}).catch(function(){})},g0=_.$X("iframe");
_.bW(function(){v().isSupportedCountry&&(Z$c()||_.g("enable_sign_in_promo")||!v().showSignInDialogCommand?g0.value&&BW(g0.value):wD(v().onMiniAppReadyCommand))},"ASuFde");
var zy=function(){return _.F("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return sF()?0:-1},
el:g0})},BW=function(tc,S$){S$=S$===void 0?!1:S$;
var j$=Hv();j$&&(S$||j$.toString()!==tc.getAttribute("src"))&&(L=ph7(v().source,{isAudioEnabled:S2,onFirstFrameReady:Wm,onGameReady:kC,onSave:aU,onLoad:UM,onError:hN,onSdkCalled:gW,onSdkPerformanceUpdate:u9,onClick:OX,onSendHighScore:$E,onBenchmarkingMessageReceived:YL,getLanguage:L4,onShareInviteCode:U2,onResourceLoaded:YC,onOpenYTContent:A3,onShowMiniAppAd:EF,onGameFrameReceived:HA,onGameAudioReceived:Tu},tc,j$),qK(tc,"load",function(){ZT(G,"ma_il");qK(tc,"load",function(){BW(tc,!0)})}),_.uH(tc,
j$))},Hv=function(){var tc=v().url;
if(tc&&(tc=_.yx(tc),tc!==null)){if(v().source&&v().source==="MINI_APP_SOURCE_GAMESNACKS")tc=_.Z3(tc,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.g("enable_origin_query_parameter_bugfix")){var S$=_.B7(_.vKu(tc.toString()));S$=new URLSearchParams(S$||"");S$.set("origin",window.location.origin);S$=S$.toString();tc=_.qf(tc).toString();tc=_.XY(FmR.exec(tc)[0]+(S$.trim()?"#"+S$:""))}return tc}},w0=function(){var tc={};
tc=_.S3("yt-mini-app-container-view-model__loading-screen",(tc["yt-mini-app-container-view-model__loading-screen--fade-out"]=sF,tc));var S$=function(){return sF()?1:rJ()};
return _.F("div",{class:tc},_.F(_.c4,{data:function(){return v().splashScreen}},{miniAppSplashScreenViewModel:function(j$){return _.F(jsm,{data:j$.data,
loadingProgress:S$})}}))},OY=function(){var tc={};
return _.F("div",{class:_.S3("yt-mini-app-container-view-model__pause-interstitial",(tc["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Pm()},tc["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Pm,tc))},_.F(_.c4,{data:function(){return v().splashScreen}},{miniAppSplashScreenViewModel:function(S$){return _.F(jsm,{data:S$.data,
forPaused:!0})}}))},tX=function(){Z=[];
Z.push(_.s_(window,"visibilitychange",function(){A||a&&gr()||(document.visibilityState==="visible"?nf():NI())}));
Z.push(_.s_(window,"pagehide",function(){E2()}));
Z.push(_.s_(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Hm.value.dispatchEvent(new Event("tap"))},0)}));
Z.push(_.s_(Hm.value,"pointerdown",function(){x74(G,!1)},!0));
Z.push(_.s_(Hm.value,"pause",function(){A=!0;NI()}));
Z.push(_.s_(Hm.value,"play",function(){A=!1;nf()}));
Z.push(_.s_(Hm.value,"exit",function(){E2()}));
var tc=navigator.keyboard,S$=tc&&tc.lock;Z.push(_.s_(window,prt,function(){ZJ(Nxs());Nxs()?(v().hasPlayNextShelf&&SV("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),PR("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),S$&&tc.lock(["Escape"])):(v().hasPlayNextShelf&&PR("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),SV("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),S$&&tc.unlock())}));
v().showMultiplayer3pConsentDialogCommand&&Z.push(_.s_(window,"yt-playables-ack-3p-data-usage",function(){t0R(f)}));
v().confirmExitMiniAppCommandEdu&&Z.push(_.s_(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.eL("exit-mini-app-seen-state","true",2592E6)}));
v().onGameAudioDataReceivedCommand&&Z.push(_.s_(window,"message",function(j$){j$=j$.event_;var xC,Fx=(xC=g0.value)==null?void 0:xC.src;if(Fx&&j$.origin===(new URL(Fx)).origin&&j$.data&&j$.data.type==="GAME_AUDIO"&&j$.data.audio&&j$.data.audio.length>0)if(_.g("enable_sending_unwrapped_game_audio_as_serialized_metadata"))UGo(v().onGameAudioDataReceivedCommand,j$.data.audio);else{var WW=new FileReader;WW.onload=function(){var n0=new ib;var uP=new hhy;uP=_.Xx(uP,1,WW.result);n0=_.lH(n0,4,uP);yV(v().onGameAudioDataReceivedCommand,
$_M(n0))};
WW.readAsDataURL(new Blob([j$.data.audio]))}}))},Vy=function(){Z.forEach(function(tc){bP(tc)});
window.removeEventListener("beforeunload",kL,{capture:!0})},wD=function(tc){tc&&o68(tc,v().isEmbeddedInWebview||!1)},PR=function(tc,S$){tc=_.P(Hm.value.getElementsByClassName(tc));
for(var j$=tc.next();!j$.done;j$=tc.next())j$.value.classList.add(S$)},SV=function(tc,S$){tc=_.P(Hm.value.getElementsByClassName(tc));
for(var j$=tc.next();!j$.done;j$=tc.next())j$.value.classList.remove(S$)};
return function(){var tc={};tc=_.S3("yt-mini-app-container-view-model",(tc["yt-mini-app-container-view-model--desktop"]=!0,tc["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return v().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},tc["yt-mini-app-container-view-model--ios-web-view"]=K6f(),tc["yt-mini-app-container-view-model--no-top-bar"]=function(){return!v().topBar},tc["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return v().hasPlayNextShelf},tc["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return v().hasPlayNextShelf},tc["yt-mini-app-container-view-model--show-peek-below"]=function(){return!C3()&&v().hasPlayNextShelf},tc));
var S$={};S$=_.S3("yt-mini-app-container-view-model__content",(S$["yt-mini-app-container-view-model__content--desktop-content"]=!0,S$["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return v().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},S$["yt-mini-app-container-view-model--desktop-play-page"]=function(){return v().hasPlayNextShelf},S$));
return _.F("mini-app-container-view-model",{el:Hm},_.F("div",{class:tc},_.F(_.z,{cond:function(){return v().topBar&&!C3()},
then:function(){return _.F(_.c4,{data:function(){return v().topBar}},{miniAppTopBarViewModel:function(j$){return _.F(Ois,{data:j$.data,
isAudioEnabled:S2,onAudioToggled:function(xC){W1(xC)},
score:I4,formattedScore:jt,onScoreChanged:function(xC){U=xC},
isEmbeddedInWebview:gr,isSaved:VK,onSaveToggled:function(xC){oP(xC)},
isExitMiniAppSeen:dJ,isDesktopPlayPage:Jb})}})}}),_.F("div",{class:S$},_.F(_.z,{cond:Zb,
then:function(){return zy()}}),_.F(_.z,{cond:function(){return v().isLivestream},
then:function(){return OY()}}),_.F(_.z,{cond:function(){return!v().isEmbeddedInWebview},
then:function(){return w0()}}))))}()},"Df");
rGp.idomCompat=!0;_.zh(rGp,"mini-app-container-view-model",{props:{data:_.gj}});var u8y=_.H(function(D){var v=D.data;return _.F("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.F("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Jd(function(){var h=v().onTap;h&&_.r4(h)})},_.F(_.z,{cond:function(){return v().icon},
then:function(h){return _.F(_.Y5,{icon:function(){return h().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.F("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return v().title})))},"Ef");
u8y.idomCompat=!0;var Drs=_.H(function(D){var v=_.va("div"),h=_.P(_.Zq(void 0,void 0,"dg3xff")),a=h.next().value,Q=h.next().value;h=_.P(_.Zq(void 0,void 0,"AgHNfc"));var G=h.next().value,x=h.next().value;h=_.P(_.Zq(void 0,void 0,"fuTKCc"));var f=h.next().value,C=h.next().value,U=function(){var d=a();return d!==void 0?Math.abs(d):void 0},L=function(){var d=U();
return d===void 0||d<=3},Z=function(){var d=U();
var b=G(),W=f();d=d!==void 0&&b!==void 0&&W!==void 0?b-W-d:void 0;return d===void 0||d<=3},E=function(d){v.value&&v.value.scrollBy({top:0,
left:(_.eA("HTML_DIR")==="rtl"?-1:1)*d*v.value.clientWidth,behavior:"smooth"})},I=function(){var d;
Q((d=v.value)==null?void 0:d.scrollLeft);var b;x((b=v.value)==null?void 0:b.scrollWidth);var W;C((W=v.value)==null?void 0:W.clientWidth)},S=function(){E(-.5)},B=function(){E(.5)};
h=_.Jd(function(){I()});
_.dM(function(){I();if(v.value&&window.ResizeObserver){var d=new ResizeObserver(I);d.observe(v.value);_.dq(function(){d.disconnect()})}});
var A={};return _.F("yt-sponsorships-scrollable-shelf",{class:_.S3("ytdSponsorshipsScrollableShelfHost",D.className)},_.F("div",{class:_.S3("ytdSponsorshipsScrollableShelfContent",(A.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return D.data().previousButton&&D.data().nextButton&&!L()&&!Z()},A.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return D.data().previousButton&&!L()&&Z()},A.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return D.data().nextButton&&
L()&&!Z()},A)),
el:v,"on:scroll":h},D.children),_.F(_.z,{cond:function(){return!L()},
then:function(){return _.F(_.c4,{data:function(){return D.data().previousButton}},{buttonViewModel:function(d){return _.F(_.s$,{data:d.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:S})}})}}),_.F(_.z,{cond:function(){return!Z()},
then:function(){return _.F(_.c4,{data:function(){return D.data().nextButton}},{buttonViewModel:function(d){return _.F(_.s$,{data:d.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:B})}})}}))},"Ff");
Drs.idomCompat=!0;var hir=_.H(function(D){var v=D.data;D={};return _.F("yt-sponsorships-hub",{class:_.S3("ytdSponsorshipsHubHost",(D.ytdSponsorshipsHubHostIndented=function(){return v().indented},D))},_.F("div",{class:"ytdSponsorshipsHubHeader"},_.F("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.F("div",{class:"ytdSponsorshipsHubAvatar"},_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2})),_.F(_.z,{cond:function(){return v().badgeImage},
then:function(h){return _.F("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.F("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.F("div",{class:"ytdSponsorshipsHubBadge"},_.F(_.PX,{data:h,targetWidth:24,targetHeight:24,alt:""}))))}})),_.F("div",{class:"ytdSponsorshipsHubDetails"},_.F("div",{class:"ytdSponsorshipsHubTierName"},function(){return v().tierName}),_.F("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return v().membershipType}),_.F("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return v().membershipDurationOrExpiry})),_.F("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.F(_.c4,{data:function(){return v().manageButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.F(_.c4,{data:function(){return v().actionMenuButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.F("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return v().perksTitle}),_.F(Drs,{data:function(){return{previousButton:v().previousPerkButton,
nextButton:v().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.F("div",{class:"ytdSponsorshipsHubPerkCards"},_.F(_.c4,{data:function(){return v().perkCards}},{sponsorshipsHubPerkCardViewModel:u8y}),_.F(_.z,{cond:function(){return v().viewAllPerksButton},
then:function(h){return _.F(vLm,{data:h})}}))))},"Gf");
hir.idomCompat=!0;var vLm=_.H(function(D){var v=D.data;return _.F("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.F(_.c4,{data:function(){return v().button}},{buttonViewModel:_.s$}),_.F("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.F("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return v().title}),_.F("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return v().subtitle})))},"Hf");
vLm.idomCompat=!0;_.zh(hir,"yt-sponsorships-hub",{props:{data:_.gj}});_.a4K=_.H(function(D){var v=D.data;return _.F("yt-dual-avatar-view-model",{class:_.S3("ytDualAvatarViewModelHost",D.className),style:_.NL({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var h;return((h=v().badgeCutoutRadius)!=null?h:14)+"px"}})},_.F("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.F(_.c4,{data:function(){return v().startAvatar}},{avatarViewModel:_.Q2}),_.F(_.c4,{data:function(){return v().endAvatar}},{avatarViewModel:_.Q2})),_.F(_.c4,{data:function(){return v().badge}},
{contentPreviewImageViewModel:function(h){return _.F("div",{class:"ytDualAvatarViewModelBadge"},_.F(_.XE,{data:h.data}))}}))},"If");
_.a4K.idomCompat=!0;var QoZ=_.H(function(D){var v=D.data;var h,a=!((h=_.xd().resolve(_.PV(_.$5)))==null||!h());D=_.SM(function(){var L,Z,E=a?(L=v().header)==null?void 0:L.backgroundColorDarkMode:(Z=v().header)==null?void 0:Z.backgroundColorLightMode;if(E!==void 0)return _.uu(E)},void 0,"TDdh7d");
h=_.SM(function(){var L,Z;return a?(L=v().header)==null?void 0:L.backgroundImagePart1Dark:(Z=v().header)==null?void 0:Z.backgroundImagePart1Light},void 0,"X0peMe");
var Q=_.SM(function(){var L,Z;return a?(L=v().header)==null?void 0:L.backgroundImagePart2Dark:(Z=v().header)==null?void 0:Z.backgroundImagePart2Light},void 0,"an0Hzd"),G=_.SM(function(){return _.eA("HTML_DIR")==="rtl"},void 0,"BltEgb"),x=_.va("yt-sponsorships-perks-list"),f=!1,C=function(){var L=x.value;
if(L&&!f){var Z,E=(Z=L.parentElement)==null?void 0:Z.parentElement;if(E)for(L=L.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),Z=0;Z<L.length;++Z){var I=L[Z];if(I instanceof HTMLElement){E.scrollTo({top:I.offsetTop+I.clientHeight/2-E.clientHeight/2,behavior:"smooth"});f=!0;break}}}};
_.jA(function(){var L=x.value;if(L&&window.ResizeObserver){var Z=new ResizeObserver(C);Z.observe(L);_.dq(function(){Z.disconnect()})}});
var U={};return _.F("yt-sponsorships-perks-list",{el:x,class:_.S3("ytdSponsorshipsPerksListHost",(U.ytdSponsorshipsPerksListHorizontalPadding=function(){return v().horizontalPaddingEnabled},U))},_.F("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.F("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.NL({"background-color":D})},_.F("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.F(_.z,{cond:h,then:function(L){var Z={};return _.F("div",{class:_.S3((Z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=a,Z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!a,Z.ytdSponsorshipsPerksListFlipped=G,Z))},_.F(_.PX,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.F("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.F(_.z,{cond:Q,
then:function(L){var Z={};return _.F("div",{class:_.S3((Z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=a,Z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!a,Z.ytdSponsorshipsPerksListFlipped=G,Z))},_.F(_.PX,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.F("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.F(_.c4,{data:function(){var L;
return(L=v().header)==null?void 0:L.dualAvatar}},{dualAvatarViewModel:_.a4K})))),_.F("div",{class:"ytdSponsorshipsPerksListBody"},_.F("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return v().title}),_.F(_.z,{cond:function(){return v().perks},
then:function(L){return _.F(_.Xd,{each:L},function(Z,E){var I={};return _.F("div",{class:_.S3("ytdSponsorshipsPerksListPerkContainer",(I.ytdSponsorshipsPerksListSelectedPerk=function(){var S=E(),B=v().selectedPerkIndex;return S===B},I))},_.F(_.z,{cond:function(){return E()>0},
then:function(){return _.F("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.F("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.F(_.z,{cond:function(){return Z.icon},
then:function(S){return _.F(_.Y5,{icon:function(){return S().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.F("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.F("div",{class:"ytdSponsorshipsPerksListPerkTitle"},Z.title),_.F("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.F(_.IY,{text:Z.description})),_.F(_.z,{cond:function(){return Z.instructions},
then:function(){var S,B;return _.F("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.F("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(S=Z.instructions)==null?void 0:S.title),_.F("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.F(_.IY,{text:(B=Z.instructions)==null?void 0:B.text})))}}))),_.F(_.z,{cond:function(){return Z.emoji},
then:function(S){return _.F("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.F(_.Xd,{each:function(){return S()}},function(B){return _.F(_.PX,{data:B,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.F($rZ,{data:Z}))})}})))},"Jf");
QoZ.idomCompat=!0;var $rZ=_.H(function(D){var v=D.data;var h=function(x,f){return x===f},a=function(){var x=v();
x=_.k(x==null?void 0:x.badgesShelf,Bh9);return x!==void 0&&x!==null?x:{previousButton:{},nextButton:{}}},Q=_.$X("div"),G=function(){var x=Q.value;
if(x){var f=x.parentElement;if(f){x=x.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var C=0;C<x.length;++C){var U=x[C];if(U instanceof HTMLElement){f.scrollTo({left:U.offsetLeft+U.clientWidth/2-f.clientWidth/2,behavior:"instant"});break}}}}};
_.jA(function(){var x=Q.value;if(x){var f=new ResizeObserver(G);f.observe(x);_.dq(function(){f.disconnect()})}});
return _.F("div",null,_.F(_.z,{cond:function(){return v().badges},
then:function(x){return _.F(Drs,{data:a},_.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Q},_.F(_.Xd,{each:function(){return x()}},function(f,C){var U={},L={},Z={};
return _.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.F(_.z,{cond:function(){return C()>0},
then:function(){return _.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.F("div",{class:_.S3("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(U.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return h(C(),v().currentBadgeIndex)},U.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!h(C(),v().currentBadgeIndex)},U))},_.F("div",{class:_.S3("ytdSponsorshipsPerksListLoyaltyBadge",(L.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return h(C(),
v().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!h(C(),v().currentBadgeIndex)},L))},_.F(_.z,{cond:function(){return f.image},
then:function(E){var I={};return _.F("div",{class:_.S3((I.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return h(C(),v().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!h(C(),v().currentBadgeIndex)},I))},_.F(_.PX,{data:E,
alt:""}))}})),_.F("div",{class:_.S3("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(Z.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return h(C(),v().currentBadgeIndex)},Z))},f.title)))})))}}))},"Kf");
$rZ.idomCompat=!0;_.zh(QoZ,"yt-sponsorships-perks-list",{props:{data:_.gj}});_.zh(_.H(function(D){return _.F("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.F(_.z,{cond:function(){return D.data().image},
then:function(v){return _.F(_.PX,{className:"ytwFantasyEmptyStateViewModelImage",data:v,ariaHidden:!0,alt:""})}}),_.F(_.IY,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return D.data().title}}),_.F(_.IY,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return D.data().subtitle}}),_.F(_.c4,{data:function(){return D.data().primaryButton}},{buttonViewModel:function(v){return _.F(_.s$,{data:v.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Lf"),"ytw-fantasy-empty-state-view-model",{props:{data:_.gj}});var Gus;var V2S=_.H(function(D){var v=D.data;var h=D.uniqueId;var a=D.overrides;D=_.SM(function(){var Q,G=((Q=v().timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:h(),timings:G,experimentEnabled:G.length>0,enabled:G.length>0}},void 0,"hiuXI");
return _.F("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.F(KWt,{settings:D},_.F(_.c4,{data:function(){return v().buttonRenderer}},{buttonRenderer:function(Q){return _.F(_.gz,{data:Q.data,
buttonOverrides:a})}})))},"Mf");
V2S.idomCompat=!0;_.zh(V2S,"timed-animation-button-renderer",{props:{data:_.gj,uniqueId:_.gj,overrides:_.gj}});var pk=function(){var D=_.c.apply(this,arguments)||this;D.hideJoinButtonBeforeSubscribed=_.g("hide_join_button_before_subscribed");D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return D};
_.J(pk,_.c);_.V=pk.prototype;_.V.hasShowDialogCommand=function(D){return!!_.k(D,ykJ)};
_.V.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"}}}};
_.V.updateJoinButtonOverrides=function(){var D,v;(D=_.ZW(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(v=D.polymerController)==null||v.set("overrides",this.joinButtonOverrides);if(D=_.ZW(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))D.overrides=this.joinButtonOverrides};
_.V.handleButtonRefreshAction=function(D){if(D=_.k(D,LF1))this.set("data.membershipButton",D.membershipButton),this.notifyPath("data.membershipButton")};
_.V.onYtServiceRequestError=function(D){_.Dj(this.hostElement,D.detail.error.message)};
_.V.onKeydown=function(D){if(D.key==="Enter"){var v;(v=this.data)!=null&&v.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.V.handleUnsubscribeAction=function(){var D,v,h;((D=this.data)==null?void 0:(v=D.membershipButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.style)==="STYLE_PRIMARY"&&_.ZW(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.GT.Object.defineProperties(pk.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.subscriptionStateEntity)==null||!D.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.data)==null?void 0:D.membershipButton,h;D=(v==null?void 0:v.buttonRenderer)||_.k(v==null?void 0:(h=v.timedAnimationButtonRenderer)==null?void 0:h.buttonRenderer,_.Vi);return(D==null?void 0:D.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(D==null?void 0:D.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(D==null?void 0:D.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.attributedTitle)}}});
pk.prototype.onYtServiceRequestError=pk.prototype.onYtServiceRequestError;pk.prototype.updateJoinButtonOverrides=pk.prototype.updateJoinButtonOverrides;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],pk.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],pk.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],pk.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.tx),_.n("design:type",Object)],pk.prototype,"ironButtonState",void 0);_.e([_.Y(),_.n("design:type",Object)],pk.prototype,"data",void 0);_.e([_.N("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],pk.prototype,"hideJoin",null);
_.e([_.Y(),_.n("design:type",String)],pk.prototype,"subscribeKey",void 0);_.e([_.Y({selectorArgs:["subscribeKey"],selector:EKo}),_.n("design:type",Object)],pk.prototype,"subscriptionStateEntity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pk.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.e([_.N("subscriptionStateEntity"),_.Y({reflectToAttribute:!0}),_.n("design:type",Object),_.n("design:paramtypes",[])],pk.prototype,"subscribed",null);
_.e([_.N("subscribed","data.membershipButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],pk.prototype,"joinButtonOverrides",null);_.e([_.N("data.navigationEndpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],pk.prototype,"channelNameTabIndex",null);_.e([_.N("data.navigationEndpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],pk.prototype,"channelNameRole",null);
_.e([_.N("data.attributedTitle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],pk.prototype,"hasAttributedTitle",null);_.e([_.Ni("joinButtonOverrides"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pk.prototype,"updateJoinButtonOverrides",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],pk.prototype,"onYtServiceRequestError",null);
_.e([_.m({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],pk);
var PqX=_.Zp()(pk,"ytd-video-owner-renderer",function(){if(Gus===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><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"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden$="[[!hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);Gus=D}D=Gus;return D},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.zh(_.H(function(D){var v=D.data;var h;D=_.P(_.Zq(!((h=_.nq("yt-mini-app-is-theater-mode-enabled"))==null||!h),void 0,"i2pjVd"));var a=D.next().value,Q=D.next().value;h=_.P(_.Zq(!1,void 0,"ga7V5c"));var G=h.next().value,x=h.next().value;_.jA(function(){var U=_.s_(window,prt,function(){x(Nxs())});
_.dq(function(){bP(U)})});
var f;h=(f=_.xd().resolve(_.PV(X6M)))!=null?f:function(){return _.F("div",null)};
_.DO("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Q(!0);_.eL("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.DO("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Q(!1);_.eL("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
f={};D={};var C={};return _.F("mini-app-play-page-renderer",{class:_.S3("miniAppPlayPageRendererHost",(f.miniAppPlayPageRendererHostDetailsView=function(){return!a()},f))},_.F("div",{class:_.S3("miniAppPlayPageRendererGameContainer",(D.miniAppPlayPageRendererGameContainerDetailsView=function(){return!a()},D))},_.F(_.c4,{data:function(){return v().containerViewModel}},{miniAppContainerViewModel:rGp}),_.F(_.z,{cond:function(){return v().channel&&v().subscribeButton},
then:function(){var U={};return _.F("div",{class:_.S3("miniAppPlayPageRendererChannelContainer",(U.miniAppPlayPageRendererHideVisibility=function(){return G()},U))},_.F(_.c4,{data:function(){return v().channel}},{videoOwnerRenderer:function(L){return _.F(PqX,{data:L.data})}}),_.F(_.c4,{data:function(){return v().subscribeButton}},{subscribeButtonViewModel:function(L){return _.F(_.Q8,{data:L.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.F(_.z,{cond:function(){return!a()&&v().description},
then:function(){var U={};return _.F("div",{class:_.S3("miniAppPlayPageRendererMiniAppDescriptionWrapper",(U.miniAppPlayPageRendererHideVisibility=function(){return G()},U))},_.F("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return v().description}))}})),_.F("div",{class:_.S3("miniAppPlayPageRendererPlayNextContainer",(C.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!a()},C.miniAppPlayPageRendererHideVisibility=function(){return G()},C))},_.F(_.c4,{data:function(){return v().sectionList}},
{sectionListRenderer:h})))},"Nf"),"mini-app-play-page-renderer",{props:{data:_.gj}});var l3=function(){var D=_.c.apply(this,arguments)||this;D.isSearch=!1;D.isConstrainedList=!1;D.hasChipsBar=!1;D.inReplyPanel=!1;D.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};D.monitorScroll=!0;D.SCROLL_ANIMATION_DURATION_MS=300;D.nextContinuation={continuationType:"sectionListContinuation"};return D};
_.J(l3,_.c);_.V=l3.prototype;
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(D){switch(D.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.g("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.g("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.V.created=function(){var D=this;this.JSC$17075_scrollAnimation=new _.Uu(function(v){D.hostElement.scrollTop=v})};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.replacePrimaryContent=function(D){this.set("data.contents",D)};
_.V.computeHasSortFilter=function(D){return!!D&&!!D.sortFilterSubMenuRenderer};
_.V.computeShouldScrollInPanel=function(D){var v;return!!(D==null?0:(v=D.scrollPaneStyle)==null?0:v.scrollable)};
_.V.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Iy(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.V.scrollToTop=function(){this.hostElement.scrollTop=0};
_.V.scrollToItemSection=function(D){if(D=this.getItemByIdentifier(D))D=this.getScrollPositionForItem(D),this.hostElement.scrollTop!==D&&this.JSC$17075_scrollAnimation.start(this.hostElement.scrollTop,D,this.SCROLL_ANIMATION_DURATION_MS)};
_.V.getItemByIdentifier=function(D){var v=this.contents.querySelectorAll("ytd-item-section-renderer");if(v&&v.length!==0){var h=Array.from(v).findIndex(function(a){return a.sectionIdentifier===D});
return v[h===-1?0:h]}};
_.V.getScrollPositionForItem=function(D){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===D)return 0;D=_.nT(D).y+this.hostElement.scrollTop-_.nT(this.hostElement).y;return Math.min(D,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.GT.Object.defineProperties(l3.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.targetId)==="browse-feedFEclips"}}});
l3.prototype.onScroll=l3.prototype.onScroll;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],l3.prototype,"ytLazyListBehavior",void 0);_.e([_.l(_.Zh.YtNextContinuationBehavior),_.n("design:type",Object)],l3.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.l(_.iRm),_.n("design:type",Object)],l3.prototype,"ytBooleanLogicBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],l3.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],l3.prototype,"data",void 0);_.e([_.Y({value:2}),_.n("design:type",Number)],l3.prototype,"initialCount",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],l3.prototype,"autoFill",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.n("design:type",Boolean)],l3.prototype,"hasSortFilter",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.n("design:type",Boolean)],l3.prototype,"hideBottomSeparator",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.n("design:type",Boolean)],l3.prototype,"shouldScrollInPanel",void 0);
_.e([_.Y(),_.n("design:type",Object)],l3.prototype,"isSearch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],l3.prototype,"isConstrainedList",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],l3.prototype,"responsiveSizing",void 0);_.e([_.Y(),_.n("design:type",Object)],l3.prototype,"hasChipsBar",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],l3.prototype,"pageSubtype",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],l3.prototype,"engagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],l3.prototype,"liveChatEngagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],l3.prototype,"inReplyPanel",void 0);_.e([_.Br("#action-button"),_.n("design:type",HTMLElement)],l3.prototype,"actionButton",void 0);_.e([_.Y(),_.n("design:type",Object)],l3.prototype,"scrollUpButtonData",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],l3.prototype,"engagementPanelDropdown",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],l3.prototype,"engagementPanelDialog",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],l3.prototype,"isClipList",null);_.e([_.Br("#contents"),_.n("design:type",HTMLElement)],l3.prototype,"monitorScrollElement",void 0);_.e([_.Br("#contents"),_.n("design:type",HTMLElement)],l3.prototype,"contents",void 0);
_.e([_.lc("scroll"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],l3.prototype,"onScroll",null);_.e([_.m({is:"ytd-section-list-renderer",disableElementRegistration:!0})],l3);
var xr3=_.Zp()(l3,"ytd-section-list-renderer",function(){if(cZR===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);cZR=D}D=cZR;return D},{mode:1});var M2m;var f4C;var CqX;var oLU;var NJ=function(){return _.c.apply(this,arguments)||this};
_.J(NJ,_.c);NJ.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
NJ.prototype.onLikeButtonClick=function(D){D.stopPropagation();D.preventDefault()};
_.GT.Object.defineProperties(NJ.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],NJ.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],NJ.prototype,"ytRendererStamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],NJ.prototype,"data",void 0);
_.e([_.Y({selectorArgs:["data.likeStatusEntityKey"],selector:R3}),_.n("design:type",Object)],NJ.prototype,"likeStatusEntity",void 0);_.e([_.N("data","likeStatusEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],NJ.prototype,"likeButtonRenderer",null);_.e([_.m({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],NJ);
_.w(NJ,"ytd-slim-metadata-toggle-button-renderer",function(){if(oLU!==void 0)return oLU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return oLU=D},{mode:1});var Yr=function(){var D=_.c.apply(this,arguments)||this;D.minimizePipBreakages=_.g("web_pip_minimize_breakages");D.showEqualizer=_.g("web_enable_playlist_video_lockup_equalizer");D.watchColorUpdate=_.g("kevlar_watch_color_update");D.actionMap={};return D};
_.J(Yr,_.c);_.V=Yr.prototype;_.V.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"}}}};
_.V.computeEditableClass=function(D){return D&&D.menu?"editable":""};
_.V.computeSelected=function(D){return!(D==null||!D.selected)};
_.V.computeUseColorPalette=function(D){return!!((D==null?0:D.lightColorPalette)&&(D==null?0:D.darkColorPalette))};
_.V.computeLargerPlaylistThumbs=function(D,v){return _.g("web_enable_playlist_bigger_thumbnails")&&!v};
_.V.computeShowPlayIcon=function(D){return!!D&&_.g("web_use_play_icon_for_playlist_panel_video_renderer")};
_.V.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.V.onYtServiceRequestSent=function(D,v){v.endpoint&&this.isHideEnclosingAction(v.endpoint)&&!this.selected&&fRp(_.UH(),this.data.videoId)};
_.V.isHideEnclosingAction=function(D){var v=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",D);D=this.get("likeEndpoint.status",D)==="INDIFFERENT";return v||D};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.GT.Object.defineProperties(Yr.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.withinMiniplayer&&((D=this.data)==null?0:D.actionButtons))}}});
Yr.prototype.onYtServiceRequestSent=Yr.prototype.onYtServiceRequestSent;Yr.prototype.canReorderChanged=Yr.prototype.canReorderChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Yr.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.E0),_.n("design:type",Object)],Yr.prototype,"ytdLockupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Yr.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"withinMiniplayer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Yr.prototype,"minimizePipBreakages",void 0);_.e([_.Y({computed:"computeSelected(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"selected",void 0);
_.e([_.Y({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"useColorPalette",void 0);_.e([_.Y({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"largerPlaylistThumbs",void 0);_.e([_.Y(),_.n("design:type",Object)],Yr.prototype,"showEqualizer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"canReorder",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"touchPersistentDragHandle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"handleIsHovered",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Yr.prototype,"watchColorUpdate",void 0);_.e([_.Y(),_.n("design:type",String),_.n("design:paramtypes",[])],Yr.prototype,"reorderIcon",null);
_.e([_.Y({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Yr.prototype,"showPlayIcon",void 0);_.e([_.Y(),_.n("design:type",String),_.n("design:paramtypes",[])],Yr.prototype,"playIcon",null);_.e([_.N("largerPlaylistThumbs"),_.n("design:type",Number),_.n("design:paramtypes",[])],Yr.prototype,"thumbnailWidth",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Yr.prototype,"showActionButtons",null);
_.e([_.qi("canReorder"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yr.prototype,"canReorderChanged",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Yr.prototype,"onYtServiceRequestSent",null);_.e([_.m({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Yr);
_.w(Yr,"ytd-playlist-panel-video-renderer",function(){if(CqX!==void 0)return CqX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return CqX=D},{mode:2});var Bg=function(){return _.c.apply(this,arguments)||this};
_.J(Bg,_.c);Bg.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Bg.prototype,"data",void 0);_.e([_.m({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Bg);
_.w(Bg,"ytd-playlist-panel-supported-items",function(){if(f4C!==void 0)return f4C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return f4C=
D},{mode:1});B4t=!0;R6s("\\P{N}");var q6q;var FIb=_.p1("END_OF_PLAYLIST",void 0,"End of playlist"),ziU=_.p1("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),cg=function(){var D=_.c.apply(this,arguments)||this;D.minimizePipBreakages=_.g("web_pip_minimize_breakages");D.hideHeaderText=!1;D.useColorPalette=!1;D.collapsed=!1;D.collapsedPreServerOverride="not_tracked";D.isHovered=!1;D.modernPanels=_.g("kevlar_watch_modern_panels");D.expandLabel=_.p1("MINIPLAYER_EXPAND_LABEL");D.collapseLabel=_.p1("MINIPLAYER_COLLAPSE_LABEL");
D.isFloating=!1;D.metaPanel=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};D.currentIndex=void 0;return D};
_.J(cg,_.c);_.V=cg.prototype;
_.V.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"}}}};
_.V.created=function(){this.scrollThrottle=new _.tn(this.onThrottledScroll,1E3,this)};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.computeOverflowMenuData=function(D){return D&&D.menu?D.menu:null};
_.V.computeCollapsible=function(D){return!D};
_.V.computeHasPlaylistButtons=function(D){return!(!D||!D.playlistButtons)};
_.V.computeHasSeparateSaveButton=function(D){return!(!D||!D.saveButton)};
_.V.computeHasToolbarButton=function(D,v){return!(!D||!(v||D.saveButton||D.menu))};
_.V.computePlaylistType=function(D){if(D&&D.playlistId)return D.playlistId.substring(0,4)};
_.V.computeCanReorder=function(D){return D?D.playlistId&&D.playlistId.startsWith("TLPQ")?!0:!!D.isEditable&&!D.isInfinite:!1};
_.V.attached=function(){var D=this;try{_.xd().resolve(_.fh).setPlaylistComponent(this.hostElement)}catch(v){if(_.g("kevlar_park_on_playlist_token_killswitch"))throw v;_.ol().parkOrScheduleJob(function(){_.xd().resolve(_.fh).setPlaylistComponent(D.hostElement)},2,"ci")}_.f1(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.V.detached=function(){_.C1(this.hostElement)};
_.V.computeTrailingIcon=function(D,v,h){return h?v?"yt-icons:collapse":"yt-icons:close":v?"yt-icons:expand":_.g("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.V.computeIndexMessage=function(D,v){return jK4(D+1)+" / "+jK4(v)};
_.V.onRenderStamperFinished=function(){if(this.scrollForStampDom){var D=!0;this.isHovered&&(D=!1);if(this.collapsed||this.hidden)D=!1;D&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.V.collapseChanged=function(){var D=this;this.collapsed||(_.LK(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.V.hiddenChanged=function(){var D=this;this.hidden||_.LK(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()})};
_.V.setupReordering=function(){var D=_.ZW(this.hostElement).querySelector("#items");HNm?_.AW9(this.ytReorderableBehavior,D,D,"playlist-drag-handle"):_.AW9(this.ytReorderableBehavior,D,D)};
_.V.scrollToCurrentVideo=function(){var D=this;_.HK.addJob(function(){var v=_.ZW(D.hostElement).querySelector("#items");if(v){v.style.setProperty("padding-bottom","");var h=_.ZW(D.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(h){v=h.parentElement||_.Hu(document);var a=v||_.Hu(document);var Q=_.nT(h),G=_.nT(a),x=_.af4(a);if(a==_.Hu(document)){var f=Q.x-a.scrollLeft;Q=Q.y-a.scrollTop}else f=Q.x-G.x-x.left,Q=Q.y-G.y-x.top;h=uXy(h);G=a.clientHeight-
h.height;x=a.scrollLeft;var C=a.scrollTop;x+=f-(a.clientWidth-h.width)/2;a=new _.HW(x,C+(Q-G/2));v.scrollLeft=a.x;v.scrollTop=a.y}}},8)};
_.V.dataChanged=function(){var D=this;_.XIm(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.$R(this,function(){_.c1(D.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty();D.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.V.onFullBleedPlayerChanged=function(){_.g("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.onFullscreenChanged=function(){_.g("web_watch_imax_theater_mode")||_.g("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.updateNowPlayingOverlay=function(){_.g("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.V.onPlaylistLockupNowPlaying=function(D,v){v&&(this.activeNowPlayingRenderer=v);this.updateNowPlayingOverlay()};
_.V.onScroll=function(){this.scrollThrottle.fire()};
_.V.onThrottledScroll=function(){var D=this;_.c1(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty()})};
_.V.onToggleExpanded=function(D){!this.collapsible||D&&(_.xU(D).tagName==="A"||_.Gf(_.Pr(D),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.V.setCollapsed=function(D){this.collapsible&&(this.collapsed=D,_.U9(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.V.handleCollapsedFromData=function(D){if(D){var v=D.playlistPanelCollapseState;v==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||v==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),v=v==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==v&&this.setCollapsed(v)):this.currentPlaylistId!==D.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(v=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==v&&this.setCollapsed(v),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=D.playlistId}};
_.V.handleDrop=function(D){var v=D.currDragItem;D=v.data.playlistSetVideoId;var h=_.yO(v.parentNode.childNodes,v),a=void 0;h>0&&(a=v.parentNode.childNodes[h-1].data.playlistSetVideoId);v=_.UH();if(v.responsePlaylistData&&v.responsePlaylistData.contents){var Q=mtq(D,v.responsePlaylistData);v.responsePlaylistData=(0,_.sV.unsafeClone)(v.responsePlaylistData);mrO(v.responsePlaylistData.contents,Q,h);v.queueProxy?y6m(v.queueProxy,Q,h,D,a):v.playlistProxy&&y6m(v.playlistProxy,Q,h,D,a);_.Lh(v,_.ZL(v,v.response?
v.response.autoplayRenderer:void 0))}};
_.V.handleDarkModeChange=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.V.colorPaletteChanged=function(){var D,v=((D=this.data)==null?void 0:D.contents)||[],h;D=_.P(v);for(v=D.next();!v.done;v=D.next()){v=v.value;var a=void 0;if((a=v.playlistPanelVideoRenderer)==null?0:a.selected){D=v.playlistPanelVideoRenderer;a=v=void 0;(h=this.isDarkTheme?(v=D)==null?void 0:v.darkColorPalette:(a=D)==null?void 0:a.lightColorPalette)&&_.sA(this.hostElement,h);break}}this.useColorPalette=!!h};
_.GT.Object.defineProperties(cg.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.moveThreeDotsMenuToMainHeader)&&_.g("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var D=_.xd().resolve(_.PV(_.fh)),v;if(((v=this.data)==null?0:v.contents)&&(D==null?0:D.hasAutoplayData())){var h;if(((h=this.playlistLoopStateEntity)==null?void 0:h.state)==="PLAYLIST_LOOP_STATE_ONE"){if(D=this.data.currentIndex,D!==void 0){var a,Q;var G=(a=this.data.contents[D])==null?void 0:(Q=a.playlistPanelVideoRenderer)==null?void 0:Q.title}}else{var x,f=(x=_.k(D.getAutoplayEndpoint(),_.hP))==null?void 0:x.videoId,C,U;G=(C=this.data.contents.find(function(L){var Z;
return((Z=L.playlistPanelVideoRenderer)==null?void 0:Z.videoId)===f}))==null?void 0:(U=C.playlistPanelVideoRenderer)==null?void 0:U.title}return G}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.nextVideoLabel?this.nextVideoTitle?_.$V(this.data.nextVideoLabel)+":":FIb:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.g("web_mix_long_byline_from_data"))return _.aX(ziU);var v;return(v=this.data)==null?void 0:v.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.playlistButtons)==null?void 0:(h=v.menuRenderer)==null?void 0:h.topLevelButtons;if(a)for(D=_.P(a),v=D.next();!v.done;v=D.next())if(v=v.value,v.playlistLoopButtonRenderer)return v.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.collapsed&&((D=this.data)==null?0:D.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.g("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
cg.prototype.colorPaletteChanged=cg.prototype.colorPaletteChanged;cg.prototype.onPlaylistLockupNowPlaying=cg.prototype.onPlaylistLockupNowPlaying;cg.prototype.updateNowPlayingOverlay=cg.prototype.updateNowPlayingOverlay;cg.prototype.onFullscreenChanged=cg.prototype.onFullscreenChanged;cg.prototype.onFullBleedPlayerChanged=cg.prototype.onFullBleedPlayerChanged;cg.prototype.dataChanged=cg.prototype.dataChanged;cg.prototype.hiddenChanged=cg.prototype.hiddenChanged;cg.prototype.collapseChanged=cg.prototype.collapseChanged;
cg.prototype.onRenderStamperFinished=cg.prototype.onRenderStamperFinished;cg.prototype.onMouseLeave=cg.prototype.onMouseLeave;cg.prototype.onMouseEnter=cg.prototype.onMouseEnter;_.e([_.l(_.iN),_.n("design:type",Object)],cg.prototype,"ironResizableBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(B7y.YtPlaylistPanelBehavior),_.n("design:type",Object)],cg.prototype,"ytPlaylistPanelBehavior",void 0);_.e([_.l(_.lt.YtTaskEmitterBehavior),_.n("design:type",Object)],cg.prototype,"ytTaskEmitterBehavior",void 0);_.e([_.l(_.qx9),_.n("design:type",Object)],cg.prototype,"ytReorderableBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],cg.prototype,"ytdReduxBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],cg.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cg.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],cg.prototype,"autoplayData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],cg.prototype,"withinMiniplayer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"minimizePipBreakages",void 0);
_.e([_.Y({computed:"setMenuData_(data)"}),_.n("design:type",Object)],cg.prototype,"menuRendererData",void 0);_.e([_.Y({computed:"computeOverflowMenuData(data)"}),_.n("design:type",Object)],cg.prototype,"overflowMenuDataTopRow",void 0);_.e([_.Y({computed:"computeOverflowMenuData(data)"}),_.n("design:type",Object)],cg.prototype,"overflowMenuData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"hideHeaderText",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"useColorPalette",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.n("design:type",Boolean)],cg.prototype,"collapsible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"collapsed",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],cg.prototype,"hidden",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.n("design:type",Boolean)],cg.prototype,"hasPlaylistButtons",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.n("design:type",Boolean)],cg.prototype,"hasSeparateSaveButton",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.n("design:type",Boolean)],cg.prototype,"hasToolbar",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.n("design:type",String)],cg.prototype,"playlistType",void 0);_.e([_.Y(),_.n("design:type",Object)],cg.prototype,"isHovered",void 0);_.e([_.Y({selectorArgs:["playlistLoopStateEntityKey"],selector:_.pIL}),_.n("design:type",Object)],cg.prototype,"playlistLoopStateEntity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"modernPanels",void 0);
_.e([_.Y({value:56}),_.n("design:type",Number)],cg.prototype,"scrollMargin",void 0);_.e([_.Y({computed:"computeCanReorder(data)"}),_.n("design:type",Boolean)],cg.prototype,"canReorder",void 0);_.e([_.Y(),_.n("design:type",Object)],cg.prototype,"expandLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],cg.prototype,"collapseLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"isFloating",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cg.prototype,"metaPanel",void 0);_.e([_.Y({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.n("design:type",String)],cg.prototype,"trailingIcon",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],cg.prototype,"isDarkTheme",void 0);_.e([_.Y({selector:_.eq}),_.n("design:type",Boolean)],cg.prototype,"miniplayerIsActive",void 0);_.e([_.Y({selector:function(D){return D.watch.playerState}}),
_.n("design:type",Number)],cg.prototype,"playerState",void 0);_.e([_.Y({selector:_.OA}),_.n("design:type",Boolean)],cg.prototype,"isFullscreen",void 0);_.e([_.Y({selector:_.n_}),_.n("design:type",Boolean)],cg.prototype,"isTheaterMode",void 0);_.e([_.Y(),_.n("design:type",Object)],cg.prototype,"activeNowPlayingRenderer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],cg.prototype,"moveThreeDotMenuToTopRow",null);
_.e([_.N("data","autoplayData","playlistLoopStateEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],cg.prototype,"nextVideoTitle",null);_.e([_.N("data","nextVideoTitle"),_.n("design:type",String),_.n("design:paramtypes",[])],cg.prototype,"nextVideoLabel",null);_.e([_.N("collapsed"),_.n("design:type",String),_.n("design:paramtypes",[])],cg.prototype,"buttonAriaLabel",null);
_.e([_.N("data","playlistId","longBylineText"),_.n("design:type",Object),_.n("design:paramtypes",[])],cg.prototype,"mixLongByLine",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],cg.prototype,"playlistLoopStateEntityKey",null);_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"onMouseEnter",null);
_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"onMouseLeave",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data","collapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],cg.prototype,"showNextVideoHeader",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"onRenderStamperFinished",null);
_.e([_.Ni("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"collapseChanged",null);_.e([_.Ni("hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"hiddenChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"dataChanged",null);
_.e([_.N("isTheaterMode","isFullscreen"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],cg.prototype,"isFullBleedPlayer",null);_.e([_.Ni("isTheaterMode","isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"onFullBleedPlayerChanged",null);_.e([_.Ni("isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"onFullscreenChanged",null);
_.e([_.Ni("playerState","miniplayerIsActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"updateNowPlayingOverlay",null);_.e([_.lc("yt-playlist-lockup-now-playing-active"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],cg.prototype,"onPlaylistLockupNowPlaying",null);
_.e([_.Ni("data","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cg.prototype,"colorPaletteChanged",null);_.e([_.m({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],cg);
_.Ur2=_.Zp()(cg,"ytd-playlist-panel-renderer",function(){if(M2m===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);M2m=D}D=M2m;return D},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var LIU;var XJ=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_button_rework");return D};
_.J(XJ,_.c);XJ.prototype.computeShouldButtonBeVertical=function(D,v){return D||v};
XJ.prototype.onYtServiceRequestSent=function(D,v){(D=_.k(v.endpoint,_.nS))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Xe("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:D.status})):this.handleLikeEndpoint(D))};
XJ.prototype.computelikeStatusEntityKey=function(D){return D==null?void 0:D.likeStatusEntityKey};
XJ.prototype.handleLikeEndpoint=function(D){D.status==="LIKE"?this.JSC$17101_ytdDislikeToggleButtonRenderer.toggle(!1):D.status==="DISLIKE"?this.JSC$17101_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17101_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17101_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.GT.Object.defineProperties(XJ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var D;return ytf(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(D=this.likeStatusEntity)==null?void 0:D.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var D;if(this.data&&((D=this.data)==null||!D.hideDislikeButton)){var v;return ytf(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(v=this.likeStatusEntity)==null?void 0:v.likeStatus)}}}});
XJ.prototype.onYtServiceRequestSent=XJ.prototype.onYtServiceRequestSent;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],XJ.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XJ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],XJ.prototype,"vertical",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],XJ.prototype,"textTransform",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],XJ.prototype,"useShortsIcon",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],XJ.prototype,"underIconLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],XJ.prototype,"modern",void 0);_.e([_.Y({value:"left"}),_.n("design:type",String)],XJ.prototype,"buttonTooltipPosition",void 0);
_.e([_.Y(),_.n("design:type",Object)],XJ.prototype,"overrides",void 0);_.e([_.Br("#like-button"),_.n("design:type",Object)],XJ.prototype,"JSC$17101_ytdLikeToggleButtonRenderer",void 0);_.e([_.Br("#dislike-button"),_.n("design:type",Object)],XJ.prototype,"JSC$17101_ytdDislikeToggleButtonRenderer",void 0);_.e([_.N("data","likeStatusEntity.likeStatus","useShortsIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],XJ.prototype,"likeButton",null);
_.e([_.N("data","likeStatusEntity.likeStatus","useShortsIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],XJ.prototype,"dislikeButton",null);_.e([_.Y({computed:"computelikeStatusEntityKey(data)"}),_.n("design:type",String)],XJ.prototype,"likeStatusEntityKey",void 0);_.e([_.Y({selectorArgs:["likeStatusEntityKey"],selector:R3}),_.n("design:type",Object)],XJ.prototype,"likeStatusEntity",void 0);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],XJ.prototype,"onYtServiceRequestSent",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],XJ);
var Z7$=_.Zp()(XJ,"ytd-like-button-renderer",function(){if(LIU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);LIU=D}D=LIU;return D},{mode:1});_.ELX={};
_.ELX.YtConditionalRendererBehavior=[_.t.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(D,v){var h=this,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:if(!v)return h.hidden=!0,h.showSpinner=!1,G.return();if((a=D)==null?0:(Q=a.visibilityCondition)==null?0:Q.mode)switch(D.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return G.jumpTo(5);default:return G.jumpTo(6)}h.showSpinner=
!1;h.hidden=!0;return G.yield(h.shouldShow_(D),4);case 4:h.hidden=!G.yieldResult;G.jumpTo(0);break;case 5:return G.yield(h.shouldShow_(D),8);case 8:h.showSpinner=G.yieldResult;h.hidden=!1;G.jumpTo(0);break;case 6:return h.showSpinner=!1,G.yield(h.shouldShow_(D),9);case 9:h.hidden=!G.yieldResult,_.YI(G)}})},
shouldShow_:function(D){return D&&D.supportedDatas&&D.supportedDatas.rendererVisibilityConditionData&&D.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(D.supportedDatas.rendererVisibilityConditionData.showIf):D&&D.visibilityCondition&&D.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(D.visibilityCondition.showIf):D&&D.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(D.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(D){switch(D){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(D){switch(D){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var D=_.zU(this.hostElement,"yt-get-mdx-status");return D.length==1&&D[0].connected},
isLocationPermissionGranted_:function(){var D;return _.M(function(v){return v.nextAddress==1?navigator.permissions?v.yield(navigator.permissions.query({name:"geolocation"}),3):v.jumpTo(2):v.nextAddress!=2?(D=v.yieldResult,v.return(Promise.resolve(D.state==="granted"))):v.return(Promise.resolve(!1))})}}];var I4m=d58("yt-icon",{callbackProps:["onKeydown"]}),gLs=_.g("kevlar_use_wil_icons")?_.H(function(D){var v=D.icon;var h=D.active;var a=D.className;var Q=D.style;var G=D.dataSelected;var x=D.dataDisabled;var f=D.role;var C=D.themeOverride;var U=D.animateIcon;var L=D.ariaHidden;var Z=D.ariaExpanded;var E=D.ariaLabel;var I=D.tabindex;var S=D.id;var B=D.iconFilter;var A=D.onKeydown;var d=function(){var K=v==null?void 0:v(),O=null,R=void 0;K&&(K=P5s(K),K=xoI(K),K.length&&(O=K[1],R=K[0]));return{iconName:O,
iconSetName:R}},b=function(){return xab(d().iconName,h==null?void 0:h(),void 0,void 0,d().iconSetName,_.xd().resolve(_.JD))},W=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:B==null?void 0:B()}};
return _.F(_.z,{cond:U,then:function(){return _.F(I4m,{icon:v,active:h,className:a,style:Q,dataSelected:G,dataDisabled:x,role:f,themeOverride:C,ariaHidden:L,ariaExpanded:Z,ariaLabel:E,tabindex:I,id:S,iconFilter:B,onKeydown:A})},
else:function(){return _.F(_.z,{cond:b,then:function(K){return _.F("span",{class:_.S3("ytIconWrapperHost",a),role:f,"aria-label":E,"aria-hidden":L,tabindex:function(){return isNaN(Number(I==null?void 0:I()))?void 0:Number(I==null?void 0:I())},
id:S,style:Q,"on:keydown":_.Jd(function(O){return void(A==null?void 0:A(O))})},_.F(qlf,{data:K,
options:W}))}})}})},"Of"):I4m;var kuS=function(D){var v=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Fri();_.Gm("ytglobal.ytUtilActivityCallback_",function(){_.U9(D,"yt-user-activity")});
new VR(function(){return v.JSC$17117_onMouseMove});
document.addEventListener("scroll",function(){return v.onScroll});
window.addEventListener("resize",function(){return v.onResize})},S8I=function(D,v,h){v in D.eventJobIds||(h=_.c7().addLowPriorityJob(function(){_.P1();
delete D.eventJobIds[v]},h),D.eventJobIds[v]=h)};
kuS.prototype.onScroll=function(D){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):D.target===document&&S8I(this,"scroll",200)};
kuS.prototype.onResize=function(){S8I(this,"resize",200)};
kuS.prototype.JSC$17117_onMouseMove=function(){S8I(this,"mousemove",100)};
_.Yi=function(D){D.scrollEventsToIgnore+=1;D.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){D.scrollEventsToIgnore--},500))};var Jcd=function(D){this.element=D;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Jcd.prototype.showFeedbackDialog=function(D,v,h,a){var Q=pA3();if(!Q)return!1;var G=rt2();G.productId=Q;v&&(G.flow="submit",G.report={description:v});h&&(pA3()==="59"?G.callback=_.KJ(function(){_.jj("userFeedbackEvent",{});h()}):G.callback=_.KJ(h));
G.bucket=a||_.eA("GOOGLE_FEEDBACK_BUCKET","Other");l4K(G);D=NcZ(this,"GFEEDBACK",D);try{_.GrJ(G,D)}catch(x){return _.OM(x),!1}return!0};
Jcd.prototype.showHelpDialog=function(D,v,h){var a=this,Q=pA3();if(!Q)return!1;var G={helpCenterPath:"/youtube",productData:NcZ(this,"GUIDED_HELP",h)};l4K(G);var x=rt2();x.context=D||G.productData.context||"default";x.defaultHelpArticleId=v;x.enableSendFeedback=!0;(_.T3("gapi.load")||function(f,C){return C()})("client",function(){try{var f=XlF(Q,G);
if(_.g("web_always_load_chat_support")&&!a.chatSupportLoaded)try{f.JSC$9979_loadChatSupport(x),a.chatSupportLoaded=!0}catch(C){}f.startHelp(x)}catch(C){_.OM(C)}})};
var pA3=function(){var D=_.eA("GOOGLE_FEEDBACK_PRODUCT_ID");D||_.OM(Error("li"));return D},l4K=function(D){D&&(D.locale=_.g("kevlar_help_use_locale")?_.eA("INNERTUBE_CONTEXT_HL","en"):_.eA("HTML_LANG","en"))},NcZ=function(D,v,h){var a=D.productData;
delete a.origin;a.device=_.E8();var Q;a:{if(Q=document.createElement("canvas")){var G=Q.getContext("experimental-webgl",{stencil:!0});if(G){var x=G.getExtension("WEBGL_debug_renderer_info");if(x){Q=G.getParameter(x.UNMASKED_RENDERER_WEBGL);break a}}if(G=Q.getContext("webgl")){Q=G.getParameter(G.RENDERER);break a}}Q=null}a.gpu=Q;a.isSDC=!!_.eA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Q=_.eA("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.sV.extend(a,Q);_.WAu(v,a);_.tpu(a);(D=_.U9(D.element,"yt-get-autonav-pause-debug-state"))&&
D.length&&(a.autonav_pause_state=D[0]);D=_.NV();a.browser_resolution=D.width+"\u00d7"+D.height+"@"+(window.devicePixelRatio||1)+"x";h&&_.sV.extend(a,h);return a};
Jcd.prototype.resetProductData=function(){this.productData={}};var Y8C=function(D){this.feedbackManager=new Jcd(D)};
Y8C.prototype.showFeedbackDialog=function(D,v,h,a){return this.feedbackManager.showFeedbackDialog(D,v,h,a)};
Y8C.prototype.showHelpDialog=function(D,v,h){return this.feedbackManager.showHelpDialog(D,v,h)};var Bcb=function(){this.baseUrl="";this.aTag=document.createElement("a")},jk9=function(D,v,h){h=h===void 0?{}:h;
h.pbj||(h.pbj=1);h=_.rn8(v,h);D.baseUrl&&h&&!_.aZ(h)[1]&&!_.$d(h)&&(v=D.baseUrl,PA(v,"/")&&(v=v.slice(0,-1)),_.Gu(h,"/")&&(h=h.slice(1)),h=v+"/"+h);Rm(D.aTag,_.yw(h||""));return D.aTag.href};
Bcb.prototype.fetchData=function(D){return _.n6f(D)};
Bcb.prototype.postData=function(D,v){var h={method:"POST"};if(v){for(var a=_.P(Object.keys(v)),Q=a.next();!Q.done;Q=a.next()){Q=Q.value;var G=v[Q];_.Ro(G)&&(v[Q]=JSON.stringify(G))}h.postParams=v}return _.n6f(D,h)};
_.skF=function(D,v,h,a,Q){D=jk9(D,v,h);if(!D)throw a=Error("mi"),Object.assign(a,{params:v}),a;return _.n6f(D,Q,a)};
Bcb.prototype.requestDataForServiceEndpoint=function(D,v){if(_.k(D,_.o8q))return this.fetchData("/getAccountSwitcherEndpoint");v=v||{};var h=_.k(D,$yR);h?v.se=h.base64EncodedServiceEndpoint:v.sej=JSON.stringify(D);(h=_.wd())&&_.g("enable_service_ajax_csn")&&(v.csn=h);v.theme=_.sL();_.k(D,fro)&&_.eA("DELEGATION_CONTEXT")&&(v.delegation_context=JSON.stringify(_.eA("DELEGATION_CONTEXT")));h=null;for(var a in D)if(PA(a,"Endpoint")||PA(a,"Command")){h=a;break}if(!h){var Q=Error("ni");Object.assign(Q,{params:D});
_.ijo(Q,"WARNING");return new _.IB(function(x,f){f(Q)})}a={name:h};
var G;(h=(G=_.k(D,_.kE))==null?void 0:G.signal)&&(a.signal=h);(G=_.DX(window.location.href))&&G.internalcountrycode&&(a.internalcountrycode=G.internalcountrycode);G="/service_ajax";_.g("debug_forward_web_query_parameters")&&(G=_.Mqi(G,window.location.search));G=_.hO(G,a);D.clickTrackingParams&&_.Vp(G,{itct:D.clickTrackingParams});return this.postData(G,v)};_.ccs=new _.Uj("GFEEDBACK_TOKEN");var XAZ;var Acs;var q8U;var b7I;var Ao=function(){var D=_.c.apply(this,arguments)||this;D.compact=!1;D.dismissButtonDisabled=!1;return D};
_.J(Ao,_.c);Ao.prototype.computeHasIcon_=function(D){return!!D};
Ao.prototype.isSignInIcon_=function(D){return D=="yt-icons:prompted_sign_in"};
Ao.prototype.onDismissButtonClick=function(){var D;this.data.disableOnClick&&!this.dismissButtonDisabled&&(D=this.data.dismissButton)!=null&&D.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ELX.YtConditionalRendererBehavior),_.n("design:type",Object)],Ao.prototype,"ytConditionalRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ao.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",Object)],Ao.prototype,"icon_",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.n("design:type",Boolean)],Ao.prototype,"hasIcon_",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.n("design:type",Boolean)],Ao.prototype,"signInIcon_",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ao.prototype,"compact",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ao.prototype,"dismissButtonDisabled",void 0);
_.e([_.Ry({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Ao);
_.w(Ao,"yt-player-error-message-renderer",function(){if(b7I===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;q8U===void 0&&(q8U=document.createElement("template"));var a=q8U;h.call(v,a.content.cloneNode(!0),D.content.firstChild);b7I=D}D=b7I;return D},{mode:2});var drZ;var jor;var qJ=function(){return _.c.apply(this,arguments)||this};
_.J(qJ,_.c);qJ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
qJ.prototype.computeIcon_=function(D){return D?"yt-icons:"+D.iconType.toLowerCase():"error_outline"};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qJ.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",Object)],qJ.prototype,"icon_",void 0);_.e([_.Ry({is:"yt-player-kav-renderer",disableElementRegistration:!0})],qJ);
_.w(qJ,"yt-player-kav-renderer",function(){if(jor===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;drZ===void 0&&(drZ=document.createElement("template"));var a=drZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);jor=D}D=jor;return D},{mode:2});var vOL=_.DK(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.zh(_.H(function(D){var v=_.va("div"),h=_.P(_.Zq(0,void 0,"jxh75d")),a=h.next().value,Q=h.next().value;h=_.P(_.Zq(null,void 0,"F5Zm8"));var G=h.next().value,x=h.next().value;_.jA(function(){hX8(v.value,Q,x);v.value.scrollIntoView()});
h=aCO.bind(null,D.data,a);_.Pa("resize",function(){var f=G();if(a()===1&&f!==null){var C;(C=window.grecaptcha)==null||C.reset(f)}});
return _.F("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.F("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.F("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var f,C;return(f=D.data().accessibility)==null?void 0:(C=f.accessibilityData)==null?void 0:C.label}),_.F(_.IY,{text:h,
className:_.S3("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.F("div",{el:v,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Pf"),"yt-player-captcha-view-model",{props:{data:_.C_}});var $go=!1;_.sod=_.H(function(D){var v=D.data;return _.F("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.F(_.z,{cond:function(){return v().icon},
then:function(h){return _.F("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.F(_.PX,{data:h,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.F(_.z,{cond:function(){return v().title},
then:function(h){return _.F("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.F(_.IY,{text:h}))}}),_.F(_.z,{cond:function(){return v().description},
then:function(h){return _.F("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.F(_.IY,{text:h}))}}),_.F(_.c4,{data:function(){return v().primaryButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"interstitialViewModelFlexItem"})}}),_.F(_.c4,{data:function(){return v().secondaryButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"interstitialViewModelFlexItem"})}}))},"Qf");
_.sod.idomCompat=!0;var mrK=_.H(function(D){var v=D.data;_.Ri();return _.F("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.F("div",{class:"playerInterstitialRendererScrim"},_.F(_.c4,{data:function(){return v().content}},{interstitialViewModel:_.sod})))},"Rf");
mrK.idomCompat=!0;_.zh(mrK,"yt-player-interstitial-renderer",{props:{data:_.gj}});var b3=function(){var D=_.c.apply(this,arguments)||this;D.noBackground=!1;D.compact=!1;D.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return D};
_.J(b3,_.c);b3.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"}}}};
b3.prototype.onUpdatePlayerErrorMessageCommand_=function(D){if(_.k(D,Ljt)){var v;if(D=(v=_.k(D,Ljt))==null?void 0:v.newPlayerErrorMessageRenderer)this.data=D}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],b3.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],b3.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],b3.prototype,"status",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],b3.prototype,"noBackground",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],b3.prototype,"compact",void 0);_.e([_.Ry({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],b3);
var H7K=_.Zp()(b3,"yt-playability-error-supported-renderers",function(){if(Acs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;XAZ===void 0&&(XAZ=document.createElement("template"));var a=XAZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Acs=D}D=Acs;return D},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var ycC=d58("ytd-button-renderer");var Qz4=void 0,Vxu=void 0;var MxI=new Ux$;var wAI=function(D){this.store=D;this.quW=new _.EH9},nT8=function(D,v,h){var a,Q;
if(!(Q=((a=v.playabilityStatus)==null?void 0:a.status)!=="OK")){D=D.store;var G;Q=v.offlineState&&((G=v.videoDetails)==null?0:G.videoId)?_.g("enable_pl_r_c_cd")?BeI(D.getState().entities,v.videoDetails.videoId):!!aLI(D.getState().entities,v.videoDetails.videoId):!1}if(Q)return!0;Q=zXf(v);if(Q===1){if(_.g("ab_v_vid_sig")){var x,f=(x=v.videoDetails)==null?void 0:x.videoId;if(!f||!h||f!==h){var C;v=new _.XH("282054944_vid",{yDK:h,koK:(C=v.videoDetails)==null?void 0:C.videoId});_.mV(v)}}return!0}gi7=
0;var U,L;C=(f=v.auxiliaryUi)==null?void 0:(U=f.messageRenderers)==null?void 0:(L=U.bkaEnforcementMessageViewModel)==null?void 0:L.displayType;if(Q!==3&&(C==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||C==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;C={reason:_.MD(_.p1("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.g("ks_something_wrong_learn_more")?Bic("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.MD(_.p1("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:_.MD("282054944")};ei3(v,{playerErrorMessageRenderer:C});return!1},Oli=function(D,v){if(mm2(v)){_.pq(1,!0);
var h=(h=mm2(v))&&_.GBu()?h:void 0;h?(ei3(v,{enforcementMessageViewModel:h}),D.quW.increment("IN_PLAYER"),_.pq(5)):(D.quW.increment("SKIP_DISPLAY"),_.pq(2))}},ei3=function(D,v){D.playabilityStatus=Object.assign({},D.playabilityStatus,{status:"ERROR",
errorScreen:v});D.videoDetails=void 0};
wAI.prototype.handleResponse=function(D,v){if(D.playabilityStatus){var h,a,Q,G=(v==null?void 0:(h=v.innerTubeRequest)==null?void 0:h.videoId)||(v==null?void 0:(a=v.innerTubeRequest)==null?void 0:(Q=a.playerRequest)==null?void 0:Q.videoId);nT8(this,D,G)&&Oli(this,D)}};
wAI[MM]=[xY];var wzc=new _.Uj("ADBLOCK_DETECTION_SERVICE_TOKEN");var rv=function(D){this.ucj=D};
rv.prototype.bindInnertubeChallengeFetcher=function(D){this.ucj.bicf(D)};
rv.prototype.registerChallengeFetchedCallback=function(D){this.ucj.bcr(D)};
rv.prototype.getLatestChallengeResponse=function(){return this.ucj.blc()};var nLr;nLr=_.DK(["https://static.doubleclick.net/instream/ad_status.js"]);_.O7b=_.UV(nLr);var i7U;_.dn=function(D,v,h){var a=this;this.network=D;this.options=v;this.networkStatusManager=h;this.eb=null;if(v.useBotguardEverywhere){var Q=new _.gT;this.eb=Q.promise;_.$L.ytAtRC&&_.b7(_.HK,function(){var G,x;return _.M(function(f){if(f.nextAddress==1){if(!_.$L.ytAtRC)return f.return();G=KIb(null);return f.yield(a.qU(G),2)}x=f.yieldResult;_.$L.ytAtRC&&_.$L.ytAtRC(JSON.stringify(x));_.YI(f)})});
ICf().then(function(G){var x,f,C,U;return _.M(function(L){if(L.nextAddress==1)return G.bindInnertubeChallengeFetcher(function(Z){return a.qU(KIb(Z))}),L.yield(y$O(),2);
x=L.yieldResult;f=G.getLatestChallengeResponse();C=f.challenge;if(!C)throw Error("oi");U={challenge:C,qh:tm(C),vm:x,bgChallenge:new ij};Q.resolve(U);G.registerChallengeFetchedCallback(function(Z){Z=Z.challenge;if(!Z)throw Error("pi");Z={challenge:Z,qh:tm(Z),vm:x,bgChallenge:new ij};a.eb=Promise.resolve(Z)});
_.YI(L)})})}else v.preload&&Tcr(this,new Promise(function(G){_.c1(_.HK,function(){G(Ri$(a))},0)}))};
i7U=function(D){var v={preload:!0,useBotguardEverywhere:!0},h=!1;if(typeof v==="boolean")var a={preload:v};else typeof v==="undefined"?a={preload:!0}:(a=v,h=!!v.dJU);v=h?void 0:new _.ra;_.dn.instance=new _.dn(D,a,v);return _.dn.instance};
_.dn.prototype.qeX=function(){var D=this;return _.M(function(v){return v.nextAddress==1?v.yield(Promise.race([D.eb,null]),2):v.return(!!v.yieldResult)})};
_.dn.prototype.rLZ=function(D,v,h){var a=this,Q,G,x;return _.M(function(f){a.eb===null&&Tcr(a,Ri$(a));Q=!1;G={};x=function(){var C,U,L;return _.M(function(Z){switch(Z.nextAddress){case 1:return Z.yield(a.eb,2);case 2:C=Z.yieldResult;G.challenge=C.challenge;if(!C.vm){"c1a"in C.qh&&(G.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");Z.jumpTo(3);break}U=Object.assign({},{c:C.challenge,e:D},v);_.gE(Z,4);Q=!0;return Z.yield(C.vm.snapshot({pG:U}),6);case 6:(L=Z.yieldResult)?G.webResponse=L:G.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.rl(Z,3);break;case 4:_.NS(Z),G.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(D==="ENGAGEMENT_TYPE_PLAYBACK"){var E=C.qh,I={};if(E.c6a){var S=Number(_.eA("DCLKSTAT",0));I.reportingStatus=String(Number(E.c)^(isNaN(S)?0:S))}E.c6b&&(I.broadSpectrumDetectionResult=String(Number(E.c)^Number(_.eA("CATSTAT",0))));G.adblockReporting=I}return Z.return(G)}})};
return f.return(Promise.race([x(),WIZ(h,function(){var C=Object.assign({},G);Q&&(C.error="ATTESTATION_ERROR_VM_TIMEOUT");return C})]))})};
var KIb=function(D){var v={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};D&&(v.interpreterHash=D);return v},Ri$=function(D,v){v=v===void 0?0:v;
var h,a,Q,G,x,f,C,U,L,Z,E,I;return _.M(function(S){switch(S.nextAddress){case 1:h=KIb(Icb().bAY);if(_.g("att_fet_ks"))return _.gE(S,7),S.yield(D.qU(h),9);_.gE(S,4);return S.yield(t2X(D,h),6);case 6:x=S.yieldResult;Q=x.kX4;G=x.igK;a=x;_.rl(S,3);break;case 4:return _.NS(S),_.yR(Error("qi`"+v)),rcC(D,864E5),S.return({challenge:"",qh:{},vm:void 0,bgChallenge:void 0});case 9:a=S.yieldResult;if(!a)throw Error("ri");if(!a.challenge)throw Error("si");Q=a.challenge;G=tm(Q);if("c1a"in G&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("ti");
_.rl(S,3);break;case 7:f=_.NS(S);_.yR(f);v++;if(v>=5)return _.yR(Error("qi`"+v)),rcC(D,864E5),S.return({challenge:"",qh:{},vm:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,v-1)+Math.random()*1E3;return S.return(new Promise(function(B){_.c1(_.HK,function(){B(Ri$(D,v))},C)}));
case 3:U=EOf(G);rcC(D,U*1E3);L=void 0;if(!("c1a"in G&&a.bgChallenge)){S.jumpTo(10);break}Z=Zsc(a.bgChallenge);_.gE(S,11);return S.yield(kQF(Icb(),Z),13);case 13:_.rl(S,12);break;case 11:return E=_.NS(S),_.yR(E),S.return({challenge:Q,qh:G,vm:L,bgChallenge:Z});case 12:return _.gE(S,14),L=new _.WZ({challenge:Z,aEZ:{mK:"aGIf"}}),S.yield(L.tU6,16);case 16:_.rl(S,10);break;case 14:I=_.NS(S),_.yR(I),L=void 0;case 10:return S.return({challenge:Q,qh:G,vm:L,bgChallenge:Z})}})};
_.dn.prototype.qU=function(D){var v=this,h;return _.M(function(a){h=v.networkStatusManager;if(!h||h.isNetworkAvailable())return a.return(v.network.qU(D));_.O9("att_pna",void 0,"attestation_challenge_fetch");return a.return(new Promise(function(Q){h.listenOnce("publicytnetworkstatus-online",function(){v.network.qU(D).then(Q)})}))})};
var ufZ=function(D){if(!D)throw Error("ri");if(!D.challenge)throw Error("si");var v=D.challenge,h=tm(v);if("c1a"in h&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("ti");return Object.assign({},D,{kX4:v,igK:h})},t2X=function(D,v){var h,a,Q,G,x;
return _.M(function(f){switch(f.nextAddress){case 1:h=void 0,a=0,Q={};case 2:if(!(a<5)){f.jumpTo(4);break}if(!(a>0)){f.jumpTo(5);break}Q.iqQ=1E3*Math.pow(2,a-1)+Math.random()*1E3;return f.yield(new Promise(function(C){return function(U){_.c1(_.HK,function(){U(void 0)},C.iqQ)}}(Q)),5);
case 5:return _.gE(f,7),f.yield(D.qU(v),9);case 9:return G=f.yieldResult,f.return(ufZ(G));case 7:h=x=_.NS(f),x instanceof Error&&_.yR(x);case 8:a++;Q={iqQ:void 0};f.jumpTo(2);break;case 4:throw h;}})},Tcr=function(D,v){D.eb=v},D13=function(D){var v,h,a;
return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.race([D.eb,null]),2);v=Q.yieldResult;var G=Ri$(D);D.eb=G;(h=v)==null||(a=h.vm)==null||a.dispose();_.YI(Q)})},rcC=function(D,v){var h=Date.now()+v,a=function(){var Q;
return _.M(function(G){Q=h-Date.now();return Q<1E3?G.yield(D13(D),0):(_.c1(_.HK,a,Math.min(Q,6E4)),G.jumpTo(0))})};
a()},WIZ=function(D,v){return new Promise(function(h){_.c1(_.HK,function(){h(v())},D)})};var vpK=function(){};
vpK.prototype.processContext=function(D){var v=_.dn.instance;if(!v)return _.ZE();var h=lC2(D);return h?new LH(v.rLZ(h,Sqi(D),500).then(function(a){var Q;(D==null?0:(Q=D.innerTubeRequest)==null?0:Q.context)||(D.innerTubeRequest.context={});Q=D.innerTubeRequest.context;Q.request||(Q.request={});Q.request.attestationResponseData=a})):_.ZE()};var hMI=function(D){this.innertubeTransportService=D};
hMI.prototype.qU=function(D){_.O9("att_fsr",void 0,"attestation_challenge_fetch");return _.My(this.innertubeTransportService,D,_.xV(_.kJ1)).then(function(v){_.O9("att_frr",void 0,"attestation_challenge_fetch");return v})};_.aJ2=function(D){this.innertubeTransportService=D};var $1U=new _.Uj("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Q4r=function(){},VtI=function(D,v,h,a,Q){var G=_.eA("YPC_MB_URL");
_.fs8(G).then(function(){Gy3(G,D,v,h,a,Q)})},Gy3=function(D,v,h,a,Q,G){try{var x=_.$Y.payments.business.integration,f=_.$Y.payments.business.integration.Style.create().withMaterialDesignStyle(),C=x.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.g("enable_window_constrained_buy_flow_dialog")&&(C=C.usingPopupStyle("windowConstrained"));G&&(C=C.usingCloseCallback(G));var U=h?h:_.eA("YPC_GB_LANGUAGE"),L=_.eA("SESSION_INDEX");x.bootstrap.fromPaymentsUrl(D);x.bootstrap.asMashupMode(C).usingGaiaIndex(L).usingLocale(U).usingStyle(f).usingDefaultActivityStatusChangeHandler().inStandaloneContext(x.standaloneContextAuthId.forGaia()).purchaseManager(v,function(Z){a&&a(Z)}).load(void 0,Q)}catch(Z){throw Q&&Q(Z),_.mV(Z),Z;
}};var PsZ=new _.Uj("PURCHASE_MANAGER_TOKEN");var x1$=function(){var D=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return D.videos},
getContinuationsPresent:function(){return D.continuationsPresent},
setVideos:function(v){D.videos=v},
getRecommendedVideos:function(){return D.recommendedVideos},
setRecommendedVideos:function(v){D.recommendedVideos=v}}};
x1$.prototype.addVideos=function(D){D&&(this.videos=D.filter(function(v){return!!_.YqO(v)}).map(function(v){var h=_.YqO(v);
a:{var a;if(v.playlistVideoRenderer&&((a=v.playlistVideoRenderer)==null?0:a.voteSortTiebreaker))var Q=v.playlistVideoRenderer.voteSortTiebreaker;else{if(_.k(v,DS)){var G;if(a=(Q=_.k(v,DS))==null?void 0:(G=Q.playlistItemData)==null?void 0:G.voteSortTiebreaker){Q=a;break a}}Q=""}}return{itemId:h,videoId:_.XJc(v),voteCount:_.AMq(v),voteSortTiebreaker:Q}}),this.continuationsPresent=!!_.k(D[D.length-1],_.aQ))};
var Mtb=function(D,v){return D.videos.findIndex(function(h){return h.itemId===v})},fJ$=function(D,v){return D.recommendedVideos.findIndex(function(h){return h.itemId===v})},CsU=function(D){D={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:D}}}}};_.xd().resolve(_.fx).resolveCommand(D)};var op$=function(){x1$.apply(this,arguments)};
_.J(op$,x1$);
var AKJ=function(D,v,h,a){if(!D.parentElem)throw Error("yi");var Q=Mtb(D,v);Q===-1&&(Q=fJ$(D,v),Q=Q!==-1?Q+D.videos.length:-1);if(Q===-1)throw Error("zi");var G=Q>=D.videos.length?D.recommendedVideos[Q-D.videos.length]:D.videos[Q];G.voteCount=h;G.voteSortTiebreaker=Date.now().toString();Q>=D.videos.length?D.recommendedVideos.splice(Q-D.videos.length,1):D.videos.splice(Q,1);var x=D.videos;for(var f=0,C=x.length-1;f<=C;){var U=Math.floor((f+C)/2);if(x[U].voteCount<G.voteCount)C=U-1;else if(x[U].voteCount>G.voteCount)f=
U+1;else{a:{var L=G.voteSortTiebreaker;var Z=x[U].voteSortTiebreaker;if(L.length!==Z.length)L=L.length>Z.length;else{for(var E=0;E<L.length;E++){var I=L.charCodeAt(E),S=Z.charCodeAt(E);if(I>S){L=!0;break a}if(I<S)break}L=!1}}L?C=U-1:f=U+1}}x=f;if(x===-1)throw Error("Ai");D.videos.splice(x,0,G);Q!==x&&FRI(D,Q,x,v,h,a)},FRI=function(D,v,h,a,Q,G){var x,f=(x=D.parentElem)==null?void 0:x.children,C=Math.min(v,h),U=Math.max(v,h);
if(f)for(x=C;x<=U;x++)f[x].style.viewTransitionName="item-"+String(x);document.startViewTransition(function(){if(D.parentElem){var L=D.parentElem.children;if(!(!L||v<0||v>=L.length||h<0||h>=L.length)){var Z=L[v];if(Z){Z.remove();D.showRefreshPill=h>=D.videos.length-1&&D.continuationsPresent;if(!D.showRefreshPill){L=L[h]||null;var E;(E=D.parentElem)==null||E.insertBefore(Z,L)}_.F1(D.parentElem,"yt-update-video-data-voting-animation",{toIdx:h,itemId:a,newVoteCount:Q,voteStatus:G,hideItem:D.showRefreshPill})}}}}).finished.then(function(){if(f)for(var L=
C;L<=U;L++)f[L].style.viewTransitionName="";
if(D.showRefreshPill)CsU(_.p1("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var Z;if(Z=L=(Z=D.parentElem)==null?void 0:Z.children[h])Z=L.getBoundingClientRect(),L=Z.bottom,Z=!(Z.top>=0&&L<=D.clientHeight);Z&&(Z=_.l1(v>h?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(v-h)),CsU(Z))}})};var LRC=function(D,v){var h=this;D?this.innertubeTransportServicePromise=Promise.resolve(D):v&&(this.innertubeTransportServicePromise=v(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Ic(3E3,function(a){return zMC(h,a)},0);
this.validateMiniAppVideoIdRateLimiter=new Ic(3E3,function(a){return U1I(h,a)},1)},TAJ=function(D,v){D.JSC$17229_miniAppId=v;
D.reportMiniAppValueRateLimiter=new Ic(3E3,function(h){return zMC(D,h)},0);
D.validateMiniAppVideoIdRateLimiter=new Ic(3E3,function(h){return U1I(D,h)},1)},iis=function(D,v){var h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(D.reportMiniAppValueRateLimiter.call(v),2);h=a.yieldResult;return a.return([h,v])})},zMC=function(D,v){var h,a,Q,G,x,f,C;
return _.M(function(U){switch(U.nextAddress){case 1:return U.yield(D.innertubeTransportServicePromise,2);case 2:return h=U.yieldResult,a=_.xV(YtJ),Q=Date.now(),G={externalPostId:D.JSC$17229_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Q/1E3),nanos:Math.round(Q%1E3*1E6)},intValue:""+v}},_.gE(U,3),U.yield(_.My(h,G,a),5);case 5:x=U.yieldResult;_.rl(U,4);break;case 3:throw f=_.NS(U),f;case 4:if(x){if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("Bi`"+
x.errorMetadata.status);if(C=x.userStatResult)return U.return(C);throw Error("Ci");}throw Error("Di");}})},t0R=function(D){var v,h,a,Q,G;
_.M(function(x){switch(x.nextAddress){case 1:return x.yield(D.innertubeTransportServicePromise,2);case 2:return v=x.yieldResult,h=_.xV(YtJ),a={externalPostId:D.JSC$17229_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.gE(x,3),x.yield(_.My(v,a,h),5);case 5:Q=x.yieldResult;_.rl(x,4);break;case 3:throw G=_.NS(x),G;case 4:if(Q==null)throw Error("Di");if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("Bi`"+Q.errorMetadata.status);_.YI(x)}})};
LRC.prototype.flush=function(){var D=this;return _.M(function(v){return v.nextAddress==1?v.yield(D.reportMiniAppValueRateLimiter.flush(),2):v.yield(D.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var WHR=function(D,v){return _.M(function(h){return h.nextAddress==1?h.yield(D.validateMiniAppVideoIdRateLimiter.call(v),2):h.return(h.yieldResult)})},U1I=function(D,v){var h,a,Q,G,x,f;
return _.M(function(C){switch(C.nextAddress){case 1:return C.yield(D.innertubeTransportServicePromise,2);case 2:return h=C.yieldResult,a=_.xV(IeF),Q={videoId:v},_.gE(C,3),C.yield(_.My(h,Q,a),5);case 5:G=C.yieldResult;_.rl(C,4);break;case 3:throw x=_.NS(C),x;case 4:if(G){if("error"in G&&G.error)throw G.error;if(G.errorMetadata)throw Error("Bi`"+G.errorMetadata.status);if(f=G.playabilityStatus)return C.return(f.status);throw Error("Ei");}throw Error("Di");}})};
LRC[MM]=[_.PV(_.RX),_.PV(h9p)];var Z4S=function(){this.clientData=new Map};
Z4S.prototype.getData=function(D){return this.clientData.get(D)};var EpZ=function(D){this.store=D};
EpZ.prototype.handleResponse=function(D){(D=_.k(D.frameworkUpdates,$e))&&_.l0(D,this.store)};
EpZ[MM]=[_.Mv];var IJ$=new _.Uj("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var gp2={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 ky$=new _.Uj("ICON_SET_TOKEN"),SFb=new _.Uj("ICON_URL_PROVIDER_TOKEN"),JbS=new _.Uj("PREFETCH_ICONS_TOKEN"),pmX=new _.Uj("ICON_MAP_FN_TOKEN");var j4={},lJC=(j4.ACCESS_TIME="clock",j4.ACCOUNT_BOX="person_account",j4.ACCOUNT_BOX_CAIRO="person_account_cairo",j4.ACCOUNT_CIRCLE="person_circle",j4.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",j4.ACCOUNT_LINKED="account_link_success",j4.ACCOUNT_UNLINKED="account_link",j4.ADD_FRIEND="people",j4.ADD_MODERATOR="shield_add",j4.ADD_TO_LIBRARY="bookmark",j4.ADD_TO_PLAYLIST="add",j4.ADD_TO_QUEUE_TAIL="list_queue",j4.ADD_TO_REMOTE_QUEUE="list_music",j4.ADD_TO_WATCH_LATER="clock",j4.ADD_VIDEO_LINK="film_strip_add",
j4.ALERT_WARN_RED="alert_triangle",j4.ARROW_BACK="arrow_left",j4.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",j4.ARROW_DROP_DOWN="chevron_down",j4.ARROW_DROP_UP="chevron_up",j4.ARROW_FORWARD="arrow_right",j4.AUDIOTRACK="audio",j4.AUTO_AWESOME="sparkle",j4.AVATAR_ANONYMOUS="person_circle",j4.AVATAR_LOGGED_OUT="person_circle",j4.BACK="arrow_left",j4.BAR_CHART="bar_graph",j4.BLOCK="slash_circle_left",j4.BLOCK_USER="slash_circle_left",j4.BOOKMARK_BORDER="bookmark",j4.BREAKING_NEWS_ALT_1="article_alert",
j4.BROADCAST_CAIRO="podcast_cairo",j4.BUG_REPORT="bug",j4.CAMERA_ALT="camera",j4.CAMPAIGN="megaphone",j4.CANCEL="x_circle",j4.CAPTIONS="closed_caption",j4.CAST_OUTLINE="chromecast",j4.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",j4.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",j4.CHAT="message_bubble_left",j4.CHAT_BUBBLE="message_bubble_empty",j4.CHAT_SPARK="spark_message_bubble_left",j4.CHECK_BOX_OUTLINE_BLANK="box_empty",j4.CHECK_CIRCLE_OUTLINE="check_circle",j4.CHECK_CIRCLE_THICK="check_circle",j4.CLARIFY=
"article_clarify",j4.CLOSED_CAPTION_SELECTED="closed_caption",j4.CLOSE="x_mark",j4.CLOUD_UPLOAD="cloud_arrow_up",j4.COLLAPSE="chevron_up",j4.COLLAPSE_CAIRO="chevron_up_cairo",j4.COLLECTION="layers",j4.COLOR_LENS="palette",j4.COMMENT="message_bubble_right",j4.CONSENT_SHIELD="person_shield",j4.CONTENT_CUT="scissors",j4.CONTENT_CUT_CAIRO="scissors_cairo",j4.COURSE=_.g("web_enable_course_icon_update")?"creator_academy":"lightbulb",j4.COURSE_CAIRO=_.g("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",j4.CREATION_LIVE="radar_live",j4.CREATION_POST="box_pencil",j4.CREATION_UPLOAD="my_videos",j4.CREATION_UPLOAD_RED="upload",j4.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",j4.CREATOR_STUDIO="youtube_studio",j4.DASHBOARD="grid_asymmetrical",j4.DELETE="trash_can",j4.DELETE_SWEEP="trash_can",j4.DESKTOP="laptop",j4.DISLIKE="thumb_down",j4.DISLIKE_SELECTED="thumb_down",j4.DISMISSAL="x_mark",j4.DISMISS_QUEUE="list_remove",j4.DONE_ALL="check_double",j4.DOWN_ARROW="arrow_down",j4.DO_NOT_DISTURB=
"slash_circle_left",j4.DRAFT="paper_corner_folded",j4.DRAG_HANDLE="bars_2",j4.EDIT="pencil",j4.EMOJI="face_very_happy",j4.EMOJI_FLAGS="flag",j4.EMOJI_OBJECTS="lightbulb",j4.EMOJI_PEOPLE="face_very_happy",j4.EMOJI_RECENT="clock",j4.EMPTY_HEART="heart",j4.EMPTY_LIKE="thumb_up",j4.ERROR_BLACK="alert_circle",j4.ERROR_OUTLINE="alert_circle",j4.EXIT_APP="arrow_in",j4.EXIT_TO_APP="arrow_in",j4.EXPAND="chevron_down",j4.EXPAND_ALL="chevron_expand",j4.EXPAND_CAIRO="chevron_down_cairo",j4.EXPAND_LESS="chevron_up",
j4.EXPAND_MORE="chevron_down",j4.EXPLORE="compass",j4.EXPLORE_DESTINATION="compass",j4.EXTERNAL_LINK="open_new",j4.FAB_UPLOAD="upload",j4.FACE_HAPPY_OUTLINE="face_happy",j4.FACT_CHECK="article_check",j4.FASHION_LOGO="fashion",j4.FASHION_LOGO_CAIRO="fashion_cairo",j4.FAVORITE="heart",j4.FEEDBACK="message_bubble_alert",j4.FEEDBACK_CAIRO="message_bubble_alert_cairo",j4.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",j4.FILL_ARROW_SOLID_UP_16="arrow_solid_up",j4.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
j4.FILTER="menu_filter",j4.FIRST_PAGE="chevron_first",j4.FLAG="flag",j4.FULL_HEART="heart",j4.GAME_CONSOLE_DPAD="game_console_dpad",j4.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",j4.GAMING_LOGO="gaming",j4.GAMING_LOGO_CAIRO="gaming_cairo",j4.GO_TO_PAGE="arrow_right",j4.GROUPS="people_group",j4.HAPPY="face_happy",j4.HEALTH_AND_SAFETY="shield_plus",j4.HELP="question_circle",j4.HELP_CAIRO="question_circle_cairo",j4.HELP_OUTLINE="question_circle",j4.HIDE="slash_circle_left",j4.IMAGE="image",
j4.INFINITY_ICON="infinity",j4.INFO="info_circle",j4.INFO_OUTLINE="info_circle",j4.INSERT_CHART="bar_graph_box_vertical",j4.INSERT_CHART_OUTLINED="bar_graph_box_vertical",j4.INSERT_PHOTO="image",j4.KEEP="pin",j4.KEEP_OFF="pin_off",j4.KEYBOARD="keyboard",j4.KEYBOARD_ARROW_DOWN="chevron_down",j4.KEYBOARD_ARROW_UP="chevron_up",j4.KIDS_BLOCK="slash_circle_left",j4.LANGUAGE="globe",j4.LAST_PAGE="chevron_last",j4.LAUNCH="open_new",j4.LEARNING="lightbulb",j4.LEARNING_CAIRO="lightbulb_cairo",j4.LIBRARY_ADD=
jzA("library_add"),j4.LIBRARY_OUTLINE="library",j4.LIBRARY_REMOVE=jzA(),j4.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",j4.LIKES_PLAYLIST="thumb_up",j4.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",j4.LIKE="thumb_up",j4.LIKE_SELECTED="thumb_up",j4.LIVE="radar_live",j4.LIVE_CAIRO="radar_live_cairo",j4.LIVE_UNLISTED="link",j4.LOCATION_ON="location_point",j4.LOCATION_PIN="location_point",j4.LOOP="arrow_repeat",j4.LOOP_ACTIVE="arrow_repeat",j4.LOOP_ONE="arrow_repeat_1",j4.LOOP_ONE_ACTIVE="arrow_repeat_1",j4.MEH=
"face_meh",j4.MEMBERS_ONLY_MODE_OFF="message_bubble_left",j4.MESSAGE="message_bubble_left",j4.MICROPHONE_ON="mic",j4.MIX="youtube_mix",j4.MONETIZATION_ON="dollar_sign_circle",j4.MONEY_FILL="dollar_sign_container",j4.MONEY_FILL_JPY="yen_sign_container",j4.MONEY_HEART="dollar_sign_heart",j4.MORE_HORIZ="overflow_horizontal",j4.MORE_VERT="overflow_vertical",j4.MUSIC="audio",j4.MUSIC_CAIRO="audio_cairo",j4.MUSIC_NOTE_SYMBOL="music",j4.MUSIC_SHUFFLE="arrow_shuffle",j4.MY_CHANNEL="person_circle",j4.MY_LOCATION=
"location_point",j4.NEWS_STORY="news",j4.NEXT="chevron_right",j4.NOTIFICATIONS="bell",j4.NOTIFICATIONS_ACTIVE="bell_on",j4.NOTIFICATIONS_CAIRO="bell_cairo",j4.NOTIFICATIONS_DONE_CHECKMARK="check",j4.NOTIFICATIONS_INBOX="bell",j4.NOTIFICATIONS_NONE="bell",j4.NOTIFICATIONS_OFF="bell_off",j4.NOT_INTERESTED="slash_circle_left",j4.OFFICIAL_ARTIST_BADGE="audio",j4.OFFLINE_CLOUD="cloud_off",j4.OFFLINE_DOWNLOAD="download",j4.OFFLINE_DOWNLOAD_CAIRO="download_cairo",j4.OFFLINE_PAUSE="pause",j4.OPEN_IN_NEW=
"open_new",j4.OUTLINE_ADJUST="adjust",j4.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",j4.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",j4.OUTLINE_BAG="bag",j4.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",j4.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",j4.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",j4.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",j4.PAID="dollar_sign",j4.PAUSE_OUTLINED="pause",j4.PAYMENT="credit_card",j4.PERSON_RADAR_FILLED="person_radar",j4.PHONE_DOWNLOAD="mobile_download",
j4.PLAYABLES_LOGO="tic_tac_toe",j4.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",j4.PLAYLISTS="list_play_arrow",j4.PLAYLISTS_CAIRO="list_play_arrow_cairo",j4.PLAYLIST_ADD=jzA("list_add"),j4.PLAYLIST_ADD_CHECK=jzA("list_check"),j4.PLAYLIST_PLAY="list_play_arrow",j4.PLAY_ALL="play_arrow",j4.PLAY_CIRCLE="play_arrow_circle",j4.PLAY_OUTLINED="play_arrow_circle",j4.PRIVACY_INFO="shield",j4.PRIVACY_PRIVATE="lock",j4.PRIVACY_PUBLIC="earth",j4.PRIVACY_UNLISTED="link",j4.PROMOTE="megaphone",j4.PURCHASES="price_tag",
j4.PURCHASE_SUPER_CHAT="super_chat",j4.PURCHASE_SUPER_STICKER="super_sticker",j4.QUESTION_ANSWER="message_bubble_question",j4.QUEUE_PLAY_LAST="list_queue_last",j4.QUEUE_PLAY_NEXT="list_play_arrow",j4.REMIX_FILLED="youtube_shorts_remix",j4.REMOVE="bar_circle",j4.REMOVE_CIRCLE="bar_circle",j4.REMOVE_CIRCLE_OUTLINE="bar_circle",j4.REMOVE_DONE="check_double_off",j4.REMOVE_FROM_HISTORY="bar_circle",j4.REMOVE_FROM_PLAYLIST="bar_circle",j4.REMOVE_MODERATOR="shield_off",j4.REPLAY="arrow_circle",j4.REPLAY_10=
"skip_back_10",j4.REPORT_PROBLEM="alert_triangle",j4.SAD="face_sad",j4.SAVE_PLAYLIST="bookmark",j4.SCHEDULE="clock",j4.SCHOOL="creator_academy",j4.SCREEN_FULLSCREEN="screen_full",j4.SEARCH_HISTORY="arrow_time",j4.SELL="price_tag",j4.SETTINGS="gear",j4.SETTINGS_CAIRO="gear_cairo",j4.SETTINGS_LIGHT="gear",j4.SETTINGS_MATERIAL="gear",j4.SHARE_ARROW="share",j4.SHIELD_WITH_AVATAR="person_shield",j4.SHOPPING_BAG="bag",j4.SHOPPING_BAG_CAIRO="bag_cairo",j4.SHOPPING_CART="cart",j4.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
j4.SHORTS_DISLIKE="youtube_shorts_thumb_down",j4.SHORTS_LIKE="youtube_shorts_thumb_up",j4.SHORTS_SHARE="youtube_shorts_share",j4.SHUFFLE="arrow_shuffle",j4.SLOW_MODE_OFF="message_bubble_left",j4.SOCIAL="people",j4.SORT="menu_sort",j4.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",j4.SPEED_1X="1x",j4.SPEED_1_POINT_2X="1_point_2x",j4.SPEED_1_POINT_5X="1_point_5x",j4.SPEED_1_POINT_8X="1_point_8x",j4.SPEED_2X="2x",j4.SPEED_POINT_2X="point_2x",j4.SPEED_POINT_8X="point_8x",j4.SPONSORSHIP_STAR="star_circle",
j4.STAFF_PICK="spotlight",j4.START_DVR="add",j4.STAR_BORDER="star",j4.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",j4.STICKER_EMOTICON="face_happy",j4.STOP_DVR="stop",j4.SUBSCRIBE="youtube_logo_icon",j4.SUBSCRIBE_PLUS="add_cairo",j4.SUBSCRIPTION_MANAGER="gear",j4.SUPERVISOR_ACCOUNT="people",j4.SUPER_CHAT_FOR_GOOD="hands_heart",j4.SWAP_HORIZ="arrow_swap_horizontal",j4.SWITCH_ACCOUNTS="person_account",j4.TAB_ACCOUNT="person",j4.TAB_ACTIVITY="bell",j4.TAB_BOOKMARK="bookmark",j4.TAB_EXPLORE="compass",
j4.TAB_HOME="home",j4.TAB_HOME_CAIRO="home_cairo",j4.TAB_INBOX="mail",j4.TAB_LIKED="thumb_up",j4.TAB_MUSIC_PREMIUM="youtube_music",j4.TAB_SHORTS="youtube_shorts",j4.TAB_SHORTS_CAIRO="youtube_shorts_cairo",j4.TAB_SUBSCRIPTIONS="subscriptions",j4.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",j4.TAB_TRENDING="fire",j4.TIMER="stopwatch",j4.TRAILER="youtube_originals",j4.TRENDING="fire",j4.TRENDING_CAIRO="fire_cairo",j4.TRENDING_UP="rating_up",j4.TROPHY="trophy",j4.TROPHY_CELEBRATIONS="fireworks",j4.TUNE=
"adjust",j4.UNBLOCK_USER="bar_circle",j4.UNLIMITED="youtube_logo_icon",j4.UNPLUGGED_LIVE_GUIDE="radar_live",j4.UNPLUGGED_SPORTS="eye_off",j4.UPLOADS="library",j4.UP_ARROW="arrow_up",j4.VERTICAL_ALIGN_BOTTOM="download",j4.VERY_HAPPY="face_very_happy",j4.VERY_SAD="face_very_sad",j4.VIDEOGAME_ASSET="gaming",j4.VIDEOS="play_arrow_circle",j4.VIDEO_CALL="video_camera_add",j4.VIDEO_LIBRARY_WHITE="library",j4.VIDEO_YOUTUBE="youtube_logo_icon",j4.VIEW_LIST="list_view",j4.VIEW_LIST_CAIRO="list_view_cairo",
j4.VISIBILITY="eye",j4.VISIBILITY_OFF="eye_off",j4.VOLUME_MUTE="volume_off",j4.VOLUME_UP="volume_on",j4.WALLPAPER="image",j4.WARNING="alert_triangle",j4.WATCH_HISTORY="arrow_time",j4.WATCH_HISTORY_CAIRO="arrow_time_cairo",j4.WATCH_LATER="clock",j4.WATCH_LATER_CAIRO="clock_cairo",j4.WATCH_RELATED_MIX="youtube_mix",j4.WHAT_TO_WATCH="home",j4.YOUTUBE_MUSIC_MONOCHROME="youtube_music",j4.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",j4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
j4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",j4.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",j4.YT_OUTLINE_MUSIC_24="music",j4);var su={},NJr=(su.ACCESS_TIME="clock",su.ACCOUNT_BOX="person_square",su.ACCOUNT_BOX_CAIRO="person_square",su.ACCOUNT_CIRCLE="person_circle",su.ACCOUNT_CIRCLE_CAIRO="person_circle",su.ACCOUNT_LINKED="account_link",su.ACCOUNT_UNLINKED="account_link",su.ADD_CIRCLE="add_circle",su.ADD_CIRCLE_OUTLINE="add_circle",su.ADD_FRIEND="person_child",su.ADD_MODERATOR="shield_add",su.ADD_TO_LIBRARY="bookmark",su.ADD_TO_PLAYLIST="add",su.ADD_TO_QUEUE_TAIL="queue",su.ADD_TO_REMOTE_QUEUE="playlist_audio",su.ADD_TO_WATCH_LATER=
"clock",su.ADD_VIDEO_LINK="film_strip_add",su.ADMIN_PANEL_SETTINGS="person_gear",su.ALERT_WARN_RED="alert_triangle",su.ALIGN_LEFT="text_align_left",su.ARROWS_ALERT="arrow_split_alert",su.ARROW_BACK="arrow_left",su.ARROW_CIRCLE="arrow_counterclockwise",su.ARROW_CIRCLE_PLAY="replay",su.ARROW_CIRCLE_RIGHT="arrow_clockwise",su.ARROW_DIAGONAL="arrow_up_left",su.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",su.ARROW_DROP_DOWN="triangle_down",su.ARROW_DROP_UP="triangle_up",su.ARROW_FORWARD="arrow_right",su.ARROW_PAUSE=
"pause_history",su.ARROW_UNDO="undo",su.ARTICLE="text_page",su.ARTICLE_ALERT="text_page_alert",su.ARTICLE_CHECK="text_page_check",su.ARTICLE_CLARIFY="text_page_info",su.AUDIOTRACK="audio",su.AUDIO_BADGE="audio_badge",su.AUDIO_SURROUND="surround_sound",su.AUTO_AWESOME="sparkles",su.AVATAR_ANONYMOUS="person_circle",su.AVATAR_LOGGED_OUT="person_circle",su.BACK="arrow_left",su.BAR_CHART="chart_bar",su.BAR_CIRCLE="minus_circle",su.BAR_HORIZONTAL="minus",su.BLOCK="circle_slash",su.BLOCK_USER="circle_slash",
su.BOOKMARK_BORDER="bookmark",su.BOX_OPEN_CHECK="quiz",su.BOX_PENCIL="square_pencil",su.BOX_STACK_3="square3_stack",su.BREAKING_NEWS_ALT_1="text_page_alert",su.BROADCAST="podcast",su.BROADCAST_CAIRO="podcast",su.BUG_REPORT="bug",su.CAMERA_ALT="camera",su.CAMPAIGN="megaphone",su.CANCEL="x_circle",su.CAPTIONS="closed_captions",su.CAST_ICON="chromecast",su.CAST_OUTLINE="chromecast",su.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",su.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",su.CHAT="text_bubble",
su.CHAT_BUBBLE="bubble",su.CHECK_BOX="check_square",su.CHECK_BOX_OUTLINE_BLANK="square",su.CHECK_CIRCLE_FILLED="check_circle",su.CHECK_CIRCLE_OUTLINE="check_circle",su.CHECK_CIRCLE_THICK="check_circle",su.CHECK_DOUBLE="check_done",su.CHECK_DOUBLE_OFF="check_done_slash",su.CHEVRON_LEFT="chevron_left",su.CHEVRON_RIGHT="chevron_right",su.CHEVRON_RIGHT_CAIRO="chevron_right",su.CIRCLES_OVERLAP="account_link",su.CLAPPERBOARD_CAIRO="clapperboard",su.CLARIFY="text_page_info",su.CLOCK_ARROWS="clock_split",
su.CLOCK_ARROWS_ALERT="clock_split_alert",su.CLOSED_CAPTION="closed_captions",su.CLOSED_CAPTION_SELECTED="closed_captions",su.CLOSE="x",su.CLOUD_UPLOAD="cloud_arrow_up",su.COLLAPSE="chevron_up",su.COLLAPSE_CAIRO="chevron_up",su.COLLECTION="square3d_stack",su.COLOR_LENS="paint_palette",su.COMMENT="text_bubble",su.CONSENT_SHIELD="person_shield",su.CONTENT_CUT="scissors",su.CONTENT_CUT_CAIRO="scissors",su.COURSE="graduation_cap",su.COURSE_CAIRO="graduation_cap",su.CREATION_LIVE="live",su.CREATION_POST=
"square_pencil",su.CREATION_UPLOAD="video",su.CREATION_UPLOAD_RED="upload",su.CREATOR_ACADEMY="graduation_cap",su.CREATOR_STUDIO="youtube_studio",su.DARK_THEME="theme",su.DELETE="trash_can",su.DELETE_SWEEP="trash_can",su.DESKTOP="laptop",su.DISLIKE="thumb_down",su.DISLIKE_SELECTED="thumb_down",su.DISMISSAL="x",su.DISMISS_QUEUE="playlist_x",su.DOGFOOD="pawprint",su.DOLLAR_SIGN="dollar_sign_circle",su.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",su.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",su.DOWN_ARROW=
"arrow_down",su.DO_NOT_DISTURB="circle_slash",su.DRAFT="document",su.DRAG_HANDLE="equal",su.EARTH="globe",su.EDIT="pencil",su.EMOJI="face_very_happy",su.EMOJI_FLAGS="flag",su.EMOJI_OBJECTS="lightbulb",su.EMOJI_PEOPLE="face_very_happy",su.EMOJI_RECENT="clock",su.EMPTY_HEART="heart",su.EMPTY_LIKE="thumb_up",su.ERROR_BLACK="alert_circle",su.ERROR_OUTLINE="alert_circle",su.ERROR_WHITE="alert_circle",su.EXIT_APP="arrow_in",su.EXIT_TO_APP="arrow_in",su.EXPAND="chevron_down",su.EXPAND_ALL="chevron_expand",
su.EXPAND_CAIRO="chevron_down",su.EXPAND_LESS="chevron_up",su.EXPAND_MORE="chevron_down",su.EXPLORE="compass",su.EXPLORE_DESTINATION="compass",su.EXTERNAL_LINK="arrow_up_right",su.EYE_OFF="eye_slash",su.FAB_UPLOAD="upload",su.FACE_HAPPY_OUTLINE="face_happy",su.FACE_MEH="face_neutral",su.FACT_CHECK="text_page_check",su.FASHION_LOGO="fashion",su.FASHION_LOGO_CAIRO="fashion",su.FAVORITE="thumb_up",su.FEEDBACK="alert_bubble",su.FEEDBACK_CAIRO="alert_bubble",su.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
su.FILL_ARROW_SOLID_UP_16="arrow_solid_up",su.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",su.FLAG_CAIRO="flag",su.FLASH_OFF="flash_slash",su.FLASH_ON="flash",su.FULL_HEART="heart",su.GAMING_LOGO="gaming",su.GAMING_LOGO_CAIRO="gaming",su.GO_TO_PAGE="arrow_right",su.GROUPS="person3",su.HAND_SWIPE_LEFT="gesture_swipe_left",su.HAND_SWIPE_RIGHT="gesture_swipe_right",su.HAPPY="face_happy",su.HEALTH_AND_SAFETY="shield_health",su.HEART_BOX="heart_cube",su.HELP="help_circle",su.HELP_CAIRO="help_circle",
su.HELP_OUTLINE="help_circle",su.HIDE="circle_slash",su.INCOGNITO_CAIRO="incognito",su.INFINITY_ICON="infinity",su.INFO="info_circle",su.INFO_OUTLINE="info_circle",su.INSERT_CHART="chart_bar_square",su.INSERT_CHART_OUTLINED="chart_bar_square",su.INSERT_PHOTO="image",su.KEEP="pin",su.KEEP_OFF="pin_slash",su.KEYBOARD="keyboard",su.KEYBOARD_ARROW_DOWN="chevron_down",su.KEYBOARD_ARROW_UP="chevron_up",su.KIDS_BLOCK="circle_slash",su.LANGUAGE="globe",su.LAUNCH="arrow_up_right",su.LEARNING="lightbulb",su.LEARNING_CAIRO=
"lightbulb",su.LIBRARY_ADD="bookmark",su.LIBRARY_IMAGE="image_stack",su.LIBRARY_MUSIC="audio_square_stack",su.LIBRARY_OUTLINE="play_square_stack",su.LIBRARY_REMOVE="bookmark",su.LIBRARY_SAVED="check_square_stack",su.LIKES_PLAYLIST="thumb_up",su.LIKES_PLAYLIST_CAIRO="thumb_up",su.LIKE="thumb_up",su.LIKE_SELECTED="thumb_up",su.LIST_QUEUE="queue",su.LIVE_CAIRO="live",su.LIVE_UNLISTED="link",su.LOCATION_ON="location_pin",su.LOCATION_PIN="location_pin",su.LOCATION_POINT="location_pin",su.LOOP="repeat",
su.LOOP_ACTIVE="repeat",su.LOOP_ONE="repeat1",su.LOOP_ONE_ACTIVE="repeat1",su.MEET="google_meet",su.MEH="face_neutral",su.MEMBERSHIPS="memberships",su.MEMBERS_ONLY_MODE_OFF="text_bubble",su.MENU_FILTER="filter",su.MESSAGE="text_bubble",su.MESSAGE_BUBBLE_GEAR="bubble_gear",su.MESSAGE_BUBBLE_LEFT="text_bubble",su.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",su.MESSAGE_BUBBLE_OVERLAP="bubble_stack",su.MESSAGE_BUBBLE_QUESTION="help_bubble",su.MICROPHONE_ON="mic",su.MONETIZATION_ON="dollar_sign_circle",
su.MONEY_FILL="dollar_sign_rectangle",su.MONEY_FILL_JPY="yen_sign_rectangle",su.MONEY_HAND="dollar_sign_circle_hand",su.MONEY_HEART="dollar_sign_heart",su.MOON_Z="sleep_timer",su.MORE_HORIZ="overflow_horizontal",su.MORE_VERT="overflow_vertical",su.MUSIC="audio",su.MUSIC_CAIRO="audio",su.MUSIC_EXPLICIT_BADGE="explicit",su.MUSIC_NEW_RELEASE="audio_badge",su.MUSIC_NOTE_SYMBOL="audio",su.MUSIC_SCISSORS="audio_scissors",su.MUSIC_SHUFFLE="shuffle",su.MY_CHANNEL="person_circle",su.MY_LOCATION="location_pin",
su.MY_VIDEOS="video",su.MY_VIDEOS_CAIRO="video",su.NEWS_CAIRO="news",su.NEWS_STORY="news",su.NEXT="chevron_right",su.NOTE_ADD="bubble_pencil",su.NOTIFICATIONS="bell",su.NOTIFICATIONS_ACTIVE="bell_waves",su.NOTIFICATIONS_CAIRO="bell",su.NOTIFICATIONS_DONE_CHECKMARK="check",su.NOTIFICATIONS_INBOX="bell",su.NOTIFICATIONS_NONE="bell",su.NOTIFICATIONS_OFF="bell_slash",su.NOT_INTERESTED="circle_slash",su.OFFICIAL_ARTIST_BADGE="audio",su.OFFLINE_CLOUD="cloud_slash",su.OFFLINE_DOWNLOAD="download",su.OFFLINE_DOWNLOAD_CAIRO=
"download",su.OFFLINE_PAUSE="pause",su.OPEN_IN_NEW="arrow_up_right",su.OUTLINE_ADJUST="adjust",su.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",su.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",su.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",su.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",su.OUTLINE_BAG="bag",su.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",su.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",su.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",su.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",su.PAID=
"dollar_sign_circle",su.PAUSE_OUTLINED="pause",su.PAYMENT="credit_card",su.PEOPLE="person_child",su.PEOPLE_2="person2_rectangle",su.PEOPLE_GROUP="person3",su.PEOPLE_NOTE="bubble_asterisk",su.PERSON_2="person2",su.PERSON_ACCOUNT="person_square_stack",su.PERSON_MINUS="person_x",su.PERSON_MUSIC="person_audio",su.PERSON_RADAR="person_waves",su.PERSON_RADAR_FILLED="person_waves",su.PERSON_SETTING="person_gear",su.PHONE="phone",su.PHONE_DOWNLOAD="mobile_arrow_down",su.PICTURE_IN_PICTURE="picture_in_picture",
su.PLAYABLES_LOGO="playables",su.PLAYABLES_LOGO_CAIRO="playables",su.PLAYLISTS="playlist",su.PLAYLISTS_CAIRO="playlist",su.PLAYLIST_ADD_CHECK="bookmark",su.PLAY_ALL="play",su.PLAY_ARROW="play",su.PLAY_ARROW_CIRCLE="play_circle",su.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",su.PLAY_CIRCLE="play_circle",su.PLAY_OUTLINED="play_circle",su.PODCAST_ADD="podcast_add",su.PODCAST_CHECK="podcast_check",su.PRIVACY_INFO="shield_x",su.PRIVACY_PRIVATE="lock",su.PRIVACY_PUBLIC="globe",su.PRIVACY_UNLISTED=
"link",su.PROMOTE="megaphone",su.PURCHASES="price_tag",su.PURCHASE_SUPER_CHAT="super_chat",su.PURCHASE_SUPER_STICKER="super_sticker",su.QUESTION_ANSWER="help_bubble",su.QUESTION_CIRCLE="help_circle",su.QUEUE_PLAY_LAST="queue_last",su.QUEUE_PLAY_NEXT="queue_next",su.QUOTATION_MARK="quote",su.RADAR_LIVE="live",su.REMOVE="minus_circle",su.REMOVE_CIRCLE="minus_circle",su.REMOVE_CIRCLE_OUTLINE="minus_circle",su.REMOVE_FROM_HISTORY="minus_circle",su.REMOVE_FROM_PLAYLIST="minus_circle",su.REMOVE_MODERATOR=
"shield_slash",su.REPLAY="arrow_counterclockwise",su.REPLAY_10="skip10_back",su.REPLAY_ARROW="replay",su.REPORT_PROBLEM="alert_triangle",su.RSS_OFF="rss_slash",su.SAD="face_sad",su.SAVE_PLAYLIST="bookmark",su.SCHEDULE="clock",su.SCHOOL="graduation_cap",su.SCREEN_DEFAULT="player_default",su.SCREEN_FULLSCREEN="player_full_enter",su.SCREEN_LIGHT="ambient_mode",su.SCREEN_ROTATION="rotate_portrait",su.SCREEN_SWITCH="player_switch",su.SCREEN_THEATRE="player_theater",su.SEARCH_CAIRO="search",su.SEARCH_HISTORY=
"history",su.SELL="price_tag",su.SETTINGS="gear",su.SETTINGS_CAIRO="gear",su.SETTINGS_LIGHT="gear",su.SETTINGS_MATERIAL="gear",su.SETTINGS_REMOTE="remote_waves",su.SHARE="share",su.SHARE_ARROW="share",su.SHARE_CAIRO="share",su.SHIELD="shield_x",su.SHIELD_OFF="shield_slash",su.SHIELD_WITH_AVATAR="person_shield",su.SHOPPING_BAG="bag",su.SHOPPING_BAG_CAIRO="bag",su.SHOPPING_CART="cart",su.SHORTS_COMMENT="text_bubble",su.SHORTS_DISLIKE="thumb_down",su.SHORTS_LIKE="thumb_up",su.SHORTS_SHARE="share",su.SKIP_FORWARD_30=
"skip30_forward",su.SLASH_CIRCLE_RIGHT="circle_slash",su.SLOW_MODE="bubble_slow",su.SLOW_MODE_OFF="text_bubble",su.SOCIAL="person_child",su.SPARKLE="sparkles",su.SPARK_IMAGE="image_spark",su.SPARK_RADAR="spark_waves",su.SPARK_VIDEO="video_spark",su.SPEAKER_GROUP="speaker_stack",su.SPEAKER_OFF="speaker_slash",su.SPEED_1X="n1x",su.SPEED_1_POINT_2X="n1point2x",su.SPEED_1_POINT_5X="n1point5x",su.SPEED_1_POINT_8X="n1point8x",su.SPEED_2X="n2x",su.SPONSORSHIP_STAR="star_circle",su.SPORTS="basketball",su.SPOTLIGHT=
"spotlight",su.STAFF_PICK="spotlight",su.START_DVR="add",su.STAR_BORDER="star",su.STAR_CIRCLE_RIBBON="memberships_gift",su.STAR_HALF="star_half_filled",su.STAR_SHOOTING="hype",su.STICKER="sticker",su.STICKER_EMOTICON="face_happy",su.STOP_DVR="stop",su.SUBSCRIBE="youtube",su.SUBSCRIBE_PLUS="add",su.SUBSCRIPTION_MANAGER="gear",su.SUPERSTAR="super_star",su.SUPERVISOR_ACCOUNT="person_child",su.SUPER_CHAT_FOR_GOOD="hands_heart",su.SWAP_HORIZ="arrow_swap_horizontal",su.SWITCH_ACCOUNTS="person_square_stack",
su.TAB_ACCOUNT="person",su.TAB_ACTIVITY="bell",su.TAB_BOOKMARK="bookmark",su.TAB_EXPLORE="compass",su.TAB_HOME="home",su.TAB_HOME_CAIRO="home",su.TAB_INBOX="mail",su.TAB_LIKED="thumb_up",su.TAB_MUSIC_PREMIUM="youtube_music",su.TAB_SHORTS="shorts",su.TAB_SHORTS_CAIRO="shorts",su.TAB_SUBSCRIPTIONS="subscriptions",su.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",su.TAB_TRENDING="trending",su.TARGET="target",su.TARGET_ADD="target_add",su.TEMPLATE_ADD="template_add",su.TEXT="font",su.TIMER="stopwatch",su.TRENDING_CAIRO=
"trending",su.TRENDING_UP="arrow_trend_up",su.TROPHY_CAIRO="trophy",su.TROPHY_CELEBRATIONS="fireworks",su.TROPHY_STAR="star_trophy",su.TUNE="adjust",su.TV_OFF="tv_slash",su.UNBLOCK_USER="minus_circle",su.UNFAVORITE="thumb_down",su.UNLIMITED="youtube",su.UNPLUGGED_LIVE_GUIDE="live",su.UNPLUGGED_SPORTS="eye_slash",su.UPLOADS="play_square_stack",su.UP_ARROW="arrow_up",su.VERTICAL_ALIGN_BOTTOM="chevron_down_end",su.VERTICAL_ALIGN_TOP="chevron_up_end",su.VERY_HAPPY="face_very_happy",su.VERY_SAD="face_very_sad",
su.VIDEOS="play_circle",su.VIDEO_CALL="video_camera_add",su.VIDEO_LIBRARY_WHITE="play_square_stack",su.VIDEO_QUALITY_4K="n4k",su.VIDEO_QUALITY_8K="n8k",su.VIDEO_YOUTUBE="youtube",su.VIEW_LIST_CAIRO="view_list",su.VIEW_MODULE="view_column3_row2",su.VISIBILITY="eye",su.VISIBILITY_OFF="eye_slash",su.VOLUME_DOWN="volume_min",su.VOLUME_MUTE="volume_mute",su.VOLUME_OFF="volume_mute",su.VOLUME_STABLE="stable_volume",su.VOLUME_UP="volume_max",su.WALLPAPER="image",su.WARNING="alert_triangle",su.WATCH_HISTORY=
"history",su.WATCH_HISTORY_CAIRO="history",su.WATCH_LATER="clock",su.WATCH_LATER_CAIRO="clock",su.WATCH_RELATED_MIX="mix",su.WHAT_TO_WATCH="home",su.YOUTUBE_LINKED_TV="tv_mobile",su.YOUTUBE_MUSIC_MONOCHROME="youtube_music",su.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",su.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",su.YOUTUBE_SHORTS_ARROW_UP="arrow_up",su.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",su.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",su.YOUTUBE_SHORTS_OUTLINE_24="shorts",
su);var YF$={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,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,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,
9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],
[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,
4,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,
3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,
2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],
library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,
3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,
3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,
1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,
13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,
3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,1,
24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,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,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
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,15,24],[1,15,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,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,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,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,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,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,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,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var BJ3={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_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,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,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,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,
1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,
1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,
2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,
4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,
1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,
13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,
1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,
6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,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,2,24],[1,2,18],[1,2,24]],person_add:[[0,
7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],
[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],
playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,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,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,
24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,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,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,
24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,
2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,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,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,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]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,
8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],
text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,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,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,
48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],
[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,
8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var cbs={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"},mz=function(D){this.iconUrlProvider=D};
mz.prototype.resolveIcon=function(D,v){var h=cbs[D.iconName.toUpperCase()];h&&(D.iconName=h);var a=D.iconName;a=a.replace(/-/g,"_");D=Object.assign({},D,{iconName:this.mapIconTypeToStandardName(a,!!h)||a.toLowerCase()});if(_.g("enable_web_delhi_icons")||h){var Q;return bs7(BJ3,D,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||mgf,v)}var G;return bs7(YF$,D,((G=this.iconUrlProvider)==null?void 0:G.getYtStandardUrl)||szI,v)};
mz.prototype.mapIconTypeToStandardName=function(D,v){return _.g("enable_web_delhi_icons")||v?NJr[D.toUpperCase()]:lJC[D.toUpperCase()]};
mz[MM]=[_.PV(SFb)];var Xm3=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),Abm=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),qFI=function(D){this.urlProvider=this.iconUrlProvider=D};
_.J(qFI,mz);
qFI.prototype.resolveIcon=function(D,v){D.iconName==="youtube_logo"&&(D.iconName="yt-logo-updated");if(D.iconName==="youtube_premium_logo"||D.iconName==="youtube_red_logo")D.iconName="yt-logo-red-updated";var h=Object.assign({},D);D.iconName==="menu"&&(_.g("enable_web_delhi_icons")||(h.iconName="bars_3"),h.iconStyle="youtube_outline");D.iconSetName==="socialNetworksRound"&&(D.iconName==="mail"&&(h.iconName="email"),D.iconName==="embed"&&(h.iconSize=60));D.iconName==="more"&&(h.iconName="overflow_horizontal");
D.iconName==="fullscreen"&&(h.iconName="screen_full");D.iconName==="premium_standalone"&&(h.iconName="premium_standalone_cairo");_.g("enable_connect_icon_update_web")&&D.iconName==="account_linked"&&(h.iconName="circles_overlap_check",h.iconStyle="youtube_fill");_.g("enable_connect_icon_update_web")&&D.iconName==="account_unlinked"&&(h.iconName="circles_overlap",h.iconStyle="youtube_outline");Xm3.has(D.iconName)&&(h.iconStyle="youtube_fill");_.g("enable_web_delhi_icons")&&(D.iconName==="playlist_add"&&
(h.iconName="bookmark"),D.iconName==="offline_pin"&&(h.iconName="arrow_down_circle",h.iconStyle="youtube_fill"),Abm.has(D.iconName)&&(h.iconName+="_updated"));D=Object.assign({},h,{iconName:(mz.prototype.mapIconTypeToStandardName.call(this,h.iconName)||h.iconName).toLowerCase()});var a;return(D=bs7(gp2,D,((a=this.urlProvider)==null?void 0:a.getUrl)||Hsf,v))?D:mz.prototype.resolveIcon.call(this,h,v)};
qFI[MM]=[_.PV(SFb)];_.b43=1;var Hg=function(D,v){this.JSC$17260_commandHandler=D;this.innertubeTransportService=v};
_.J(Hg,o6);Hg.prototype.resolveCommand=function(D,v){var h=this,a,Q,G;return _.M(function(x){return(a=_.k(D,MZJ))?x.return(d1C(h,a,(Q=v)==null?void 0:(G=Q.form)==null?void 0:G.element)):x.return()})};
var d1C=function(D,v,h){v={profileCardContext:v.profileCardContext,profileOwnerExternalChannelId:v.profileOwnerExternalChannelId};var a=_.xV($41);return _.My(D.innertubeTransportService,v,a).then(function(Q){if(!Q)throw new _.XH("GetProfileCard failed");if(Q=Q.popupCommand){D.JSC$17260_commandHandler.resolveCommand(Q,{form:{element:h}});_.bl(_.c8(),66557);Q=Q==null?void 0:Q.clickTrackingParams;var G=_.yC();Q&&G&&_.c8().graftServerVe(Q,G)}})};
Hg[MM]=[_.fx,_.RX];var yQ=function(){};
_.J(yQ,o6);yQ.prototype.resolveCommand=function(D){var v,h;return _.M(function(a){v=_.k(D,ZDM);if(!v)return a.return();h=Number(v.enableDelayedPacfLoggingTvMs);if(isNaN(h)){var Q=Hj();XY9(Q,v,0)}else XY9(Hj(),v,h);_.YI(a)})};_.wn=function(){};
_.J(_.wn,o6);
_.wn.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U;return _.M(function(L){a=_.k(D,Eyp);G=(Q=v.form)==null?void 0:Q.element;f=(x=G)==null?void 0:x.closest("ytd-enforcement-message-view-model");if(!a||!f)return L.return();h.allowAdsAction||(C=a.fundingChoiceInstructionPageUrl,h.allowAdsAction=new ddR(window,_.yx(C)));var Z=h.allowAdsAction;Z.wallElement=f;Z.allowAdsPopup.style.setProperty("display","flex","important");var E=Z.scrollManager;E.originalBodyOverflow=E.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow;E.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=
"hidden";Z.wallElement.style.setProperty("display","none","important");Tqm(Z.accessibilityManager,Z.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((U=h.allowAdsAction.allowAdsPopup)&&U instanceof HTMLElement)for(Z=_.P(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),E=Z.next();!E.done;E=Z.next()){var I=_.P(E.value);E=I.next().value;I=I.next().value;U.style.setProperty(E,I)}_.YI(L)})};
_.wn.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var e4=function(){};
_.J(e4,o6);e4.prototype.resolveCommand=function(D){var v;return _.M(function(h){v=_.k(D,omM);if(!v)return h.return();UJr(D);_.YI(h)})};var nk=function(D){this.JSC$17275_commandHandler=D};
_.J(nk,o6);
nk.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1){h=_.k(D,wFm);if((a=h)==null||!a.text||!navigator.clipboard)return L.return();_.gE(L,2);return L.yield(navigator.clipboard.writeText(h.text),4)}if(L.nextAddress!=2){if(!h.successActions||h.successActions.length===0)return L.return();Q=_.P(h.successActions);for(G=Q.next();!G.done;G=Q.next())x=G.value,v.JSC$17275_commandHandler.resolveCommand(x);return _.rl(L,0)}_.NS(L);if(!h.failureActions||h.failureActions.length===
0)return L.return();f=_.P(h.failureActions);for(C=f.next();!C.done;C=f.next())U=C.value,v.JSC$17275_commandHandler.resolveCommand(U);_.YI(L)})};
nk[MM]=[_.fx];var Ou=function(D){this.JSC$17279_commandHandler=D};
_.J(Ou,o6);
Ou.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){switch(I.nextAddress){case 1:a=_.k(D,IL1);if(!a)return I.return();_.gE(I,2);if(!a.imageBytes&&!a.imageUrl)throw Error("Fi");if(!a.imageUrl){if(a.imageBytes){G=a.imageBytes;x=G.replace(/-/g,"+").replace(/_/g,"/");var S=eXA(x);Q=_.OQ(S)}I.jumpTo(4);break}return I.yield(fetch(a.imageUrl),5);case 5:return f=I.yieldResult,I.yield(f.blob(),6);case 6:C=I.yieldResult,Q=_.OQ(C);case 4:Z=(U=v)==null?void 0:(L=U.form)==
null?void 0:L.element;E=document.createElement("a");Rm(E,Q);Z.appendChild(E);E.download="";E.click();Z.removeChild(E);URL.revokeObjectURL(_.mM(Q));a.successCommand&&h.JSC$17279_commandHandler.resolveCommand(a.successCommand);_.rl(I,0);break;case 2:_.NS(I),a.errorCommand&&h.JSC$17279_commandHandler.resolveCommand(a.errorCommand),_.YI(I)}})};
Ou[MM]=[_.fx];var Kk=function(D){this.store=D};
_.J(Kk,o6);Kk.prototype.resolveCommand=function(D){var v=this,h,a,Q;return _.M(function(G){a=(h=_.k(D,_.B5I))==null?void 0:h.entityBatchUpdate;if(!a)return G.jumpTo(0);Q=Object.assign({},a,{mutations:[].concat(_.j_(a.mutations||[]))});return G.yield(_.l0(Q,v.store),0)})};var j4s=function(D){this.JSC$17286_commandHandler=D;this.feedbackDialogMap=new Map};
j4s.prototype.openDialog=function(D,v){(D=this.feedbackDialogMap.get(D))&&this.JSC$17286_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:D}},v)};
j4s[MM]=[_.fx];var TE=new _.Uj("FEEDBACK_CONTROLLER_TOKEN");var Rc=new _.Uj("APP_STORE_TOKEN");var i3=function(D,v){this.store=D;this.controller=v};
_.J(i3,o6);i3.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K;return _.M(function(O){if(O.nextAddress==1){a=_.k(D,_.bp);if(G=(Q=a)==null?void 0:Q.contentId)for(f=_.P(((x=a)==null?void 0:x.actions)||[]),C=f.next();!C.done;C=f.next())U=C.value,s43(h,U,G);E=(L=v)==null?void 0:(Z=L.form)==null?void 0:Z.element;return O.yield(_.L1(E,[D,{impression:(I=v)==null?void 0:I.disableClickTracking}]).catch(function(){}),2)}S=O.yieldResult;
((B=S)==null?0:(A=B.data)==null?0:(d=A.feedbackResponses)==null?0:d.length)&&(W=(b=S.data.feedbackResponses[0])==null?void 0:b.followUpDialog)&&G&&(K=h.controller)!=null&&K.feedbackDialogMap.set(G,W);_.YI(O)})};
var s43=function(D,v,h){var a=_.k(v,_.IN);if(a){a=_.P(a.commands||[]);for(var Q=a.next();!Q.done;Q=a.next())s43(D,Q.value,h)}_.k(v,_.yo)&&D.store.dispatch(_.Xe("commandEntity",jwO(h),{key:h,command:v}));_.k(v,UEF)&&D.store.dispatch(_.Xe("commandEntity",jwO(h),{key:h,command:v}))};
i3[MM]=[Rc,TE];var Wg=function(D){this.controller=D};
_.J(Wg,o6);Wg.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x;return _.M(function(f){a=_.k(D,_.Kp);G=(Q=a)==null?void 0:Q.targetId;if(((x=a)==null?void 0:x.signal)!=="TELL_US_WHY"||!G)return f.return();h.controller.openDialog(G,v);_.YI(f)})};
Wg[MM]=[TE];var to=function(D){this.store=D};
_.J(to,o6);to.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U;return _.M(function(L){a=_.k(D,YbL);G=(Q=a)==null?void 0:Q.contentId;C=(x=v)==null?void 0:(f=x.form)==null?void 0:f.element;U=_.L1(C,[D]);G&&h.undo(G);return L.yield(U,0)})};
to.prototype.undo=function(D){this.store.dispatch(_.Xe("commandEntity",jwO(D),{key:D,command:void 0}))};
to[MM]=[Rc];var rn=function(D){this.JSC$17301_commandHandler=D};
_.J(rn,o6);rn.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U;return _.M(function(L){h=_.k(D,egJ);a=h.flowStateKey;Q=h.validationFailureCommand;G=h.submitValidFormCommand;x=K0c(_.v7,[a||""]);f=_.k(x,Oym);((C=f)==null?0:C.isValid)&&G&&v.JSC$17301_commandHandler.resolveCommand(G);((U=f)==null?0:U.isValid)||!Q||v.JSC$17301_commandHandler.resolveCommand(Q);_.YI(L)})};
rn[MM]=[_.fx];var u3=function(D){this.innertubeTransportService=D};
_.J(u3,o6);u3.prototype.resolveCommand=function(D,v){var h=this,a;return _.M(function(Q){return Q.yield(_.v4(h.innertubeTransportService,D,(a=v)==null?void 0:a.form).then(function(G){var x,f;v==null||(x=v.commandController)==null||(f=x.onSuccess)==null||f.call(x,D,G)},function(G){var x,f;
v==null||(x=v.commandController)==null||(f=x.onServerError)==null||f.call(x,D,G)}),0)})};
u3[MM]=[_.RX];var DG=function(){};
_.J(DG,o6);DG.prototype.resolveCommand=function(D){var v,h,a,Q;return _.M(function(G){if(v=_.k(D,_.bO4)){if(h=v.gtmId)a=_.eA("GL",""),_.vt(h,a);(Q=v.gtmData)&&_.hk(Q)}_.YI(G)})};var vE=function(D,v,h){this.innertubeTransportService=D;this.JSC$17312_actionRouter=v;this.JSC$17312_screenManager=h};
_.J(vE,o6);vE.prototype.resolveCommand=function(D){var v=this,h,a;return _.M(function(Q){h=_.k(D,wZ4);if(!h)return Q.return();a=h.command;if(!a)return Q.return();v.JSC$17312_actionRouter.triggerAction("yt-insert-rich-section-action",h);return Q.yield(_.v4(v.innertubeTransportService,a,{disableCache:!0}).then(function(G){D.clickTrackingParams&&(G==null?0:G.trackingParams)&&v.JSC$17312_screenManager.graftServerVe(G.trackingParams,_.d4(D.clickTrackingParams))}),0)})};
vE[MM]=[_.RX,Sh,_.aS];Osc.bind(null,FN);var m1$=Osc.bind(null,R84);Twr.bind(null,FN);var H43=Twr.bind(null,R84);isA.bind(null,FN);var yb2=isA.bind(null,R84);var hu=function(){};
_.J(hu,o6);
hu.prototype.resolveCommand=function(D){var v,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){v=_.k(D,p9s);if(!v)return Z.return();a=((h=v.operations)==null?void 0:h.operations)||[];Q=_.P(a);for(G=Q.next();!G.done;G=Q.next())if(x=G.value,x.insertItemSectionContent){var E=x.insertItemSectionContent,I=E.contents||[];E.insertByPositionInSection?m1$(E.insertByPositionInSection.sectionTargetId,I,E.insertByPositionInSection.position):E.insertByRelativePositionInSection&&E.insertByRelativePositionInSection.sectionTargetId&&E.insertByRelativePositionInSection.itemTargetId&&
H43(E.insertByRelativePositionInSection.sectionTargetId,E.insertByRelativePositionInSection.itemTargetId,I,E.insertByRelativePositionInSection.relativePosition)}else x.replaceSection?(E=x.replaceSection,I={},E.replaceByTargetId?I=E.replaceByTargetId:E.replaceByGroupId&&(I={targetId:E.replaceByGroupId.groupId,newContent:E.replaceByGroupId.newContent,undoKey:""}),I.newContent&&tFs(I.targetId,{continuationItems:[I.newContent]})):x.removeItem?(E=x.removeItem,E.removeByTargetId&&E.sectionTargetId&&yb2(E.sectionTargetId,
E.removeByTargetId.targetIds||[])):x.removeSection&&(x.removeSection.removeByTargetId?(f=void 0,wmr(((f=x.removeSection)==null?void 0:f.removeByTargetId.targetIds)||[])):x.removeSection.removeByGroupId&&(C=void 0,wmr(((C=x.removeSection)==null?void 0:C.removeByGroupId.groupIds)||[])));L=((U=v.operations)==null?void 0:U.scrollConfig)||{};eMr(L);_.YI(Z)})};
var wmr=function(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next())tFs(v.value,{continuationItems:[]})},eMr=function(D){if(D.scrollToItem){var v=D.scrollToItem.item||{},h=v.itemTargetId;
v=v.sectionTargetId;if(h&&v){var a=document.querySelector("[data-target-id="+v+"]"),Q=a==null?void 0:a.querySelector("[data-target-id="+h+"]");a&&Q&&setTimeout(function(){var G=Q.offsetTop-a.offsetTop,x;if(((x=D.scrollToItem)==null?void 0:x.scrollPosition)==="SCROLL_POSITION_CENTER")G-=a.offsetHeight/2,G+=Q.offsetHeight/2;else{var f;((f=D.scrollToItem)==null?void 0:f.scrollPosition)==="SCROLL_POSITION_END"&&(G-=a.offsetHeight,G+=Q.offsetHeight)}a.scroll({top:G,behavior:"smooth"})},100)}}};var a0=new _.Uj("CLIENT_NAME_TOKEN");var npC=new _.Uj("DEFAULT_STORE_EXPIRATION_TOKEN");var eKi=new _.Uj("CLIENT_LOCATION_SERVICE_TOKEN");var $B=function(D,v,h){this.clientName=D||_.eA("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=v||_.yy.getInstance();this.JSC$17340_commandHandler=h||_.pb.instance};
_.J($B,o6);$B.prototype.resolveCommand=function(D){var v=this,h,a;return _.M(function(Q){a=(h=_.k(D,hvJ))==null?void 0:h.onComplete;v.clientLocationService.clearLocationPlayabilityToken(v.clientName);a&&v.JSC$17340_commandHandler.resolveCommand(a);_.YI(Q)})};
$B[MM]=[a0,eKi,_.fx];var Qm=function(D){this.innertubeTransportService=D};
_.J(Qm,o6);Qm.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x;return _.M(function(f){G=(a=v)==null?void 0:(Q=a.form)==null?void 0:Q.element;return f.yield(_.v4(h.innertubeTransportService,D,(x=v)==null?void 0:x.form).then(function(C){a12(G,new CustomEvent("yt-service-request-completed"),{data:C},_.eA("openPopupConfig"))}),0)})};
Qm[MM]=[_.RX];var G7=function(){};
_.J(G7,o6);G7.prototype.resolveCommand=function(D){var v,h;return _.M(function(a){v=_.k(D,iy1);h=document.querySelector("mini-app-container-view-model");if(!v||!h)return a.return();v.isPlaying?h.dispatchEvent(new Event("play")):h.dispatchEvent(new Event("pause"));_.YI(a)})};var Vm=function(){};
_.J(Vm,o6);Vm.prototype.resolveCommand=function(D){var v,h,a,Q,G,x,f;return _.M(function(C){v=_.k(D,Yat);if((h=v)==null||!h.paramKeys)return C.return();a=v.paramKeys;Q=_.tN(window.location.href);G=_.P(a);for(x=G.next();!x.done;x=G.next())f=x.value,Q.JSC$10036_queryData_.remove(f);window.history.replaceState(window.history.state,document.title,Q.toString());_.YI(C)})};var O4U=function(){this.dropdownMap=new Map};_.KRU=new _.Uj("DROPDOWN_CONTROLLER_TOKEN");var PE=function(D){this.controller=D};
_.J(PE,o6);PE.prototype.resolveCommand=function(D){var v=this,h,a,Q,G;return _.M(function(x){h=_.k(D,GPM);if(!h)return x.return();a=h;Q=a.dropdownId;G=a.selectedOptionIndex;if(Q===void 0||G===void 0)return x.return();var f=v.controller.dropdownMap.get(Q);f&&f(G);_.YI(x)})};
PE[MM]=[_.KRU];var xB=function(D){this.controller=D};
_.J(xB,o6);xB.prototype.resolveCommand=function(D){var v=this,h;return _.M(function(a){return(h=_.k(D,U9R))?a.yield(v.controller.closeDialog(),0):a.return()})};
xB[MM]=[_.hq];var Ma=function(D){this.controller=D};
_.J(Ma,o6);Ma.prototype.resolveCommand=function(D){var v=this,h,a;return _.M(function(Q){h=_.k(D,um4);if(!h)return Q.return();var G,x=h.panelIdentifier||((G=h.identifier)==null?void 0:G.tag);if(!x)throw Error("Gi");return(a=x)?Q.yield(v.controller.hidePanel(a),0):Q.jumpTo(0)})};
Ma[MM]=[_.De];var fY=function(D){this.controller=D};
_.J(fY,o6);fY.prototype.resolveCommand=function(D){var v=this,h;return _.M(function(a){return(h=_.k(D,bhJ))?a.yield(v.controller.closeSheet(),0):a.return()})};
fY[MM]=[_.vM];var CY=function(D,v){this.innertubeTransportService=D;this.controller=v};
_.J(CY,o6);CY.prototype.resolveCommand=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return h=_.k(D,DB1),(a=h)!=null&&a.panelId?x.yield(v.controller.getReloadContinuation(h.panelId),2):x.return();if(x.nextAddress!=3)return(Q=x.yieldResult)?x.yield(_.v4(v.innertubeTransportService,D,{continuation:Q}),3):x.return();G=x.yieldResult;return x.yield(v.controller.updatePanel({identifier:h.panelId,panelContents:G.content,shouldFocus:!1}),0)})};
CY[MM]=[_.RX,_.De];var o0=function(D,v,h){this.innertubeTransportService=D;this.JSC$17381_screenManager=v;this.JSC$17381_commandHandler=h};
_.J(o0,o6);
o0.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1){h=_.k(D,_.Ors);if(!h)return C.return();if(h.commands)for(a=_.P(h.commands),Q=a.next();!Q.done;Q=a.next())G=Q.value,v.JSC$17381_commandHandler.resolveCommand(G,{disableClickTracking:!0});x=_.d4(D.clickTrackingParams);_.bl(v.JSC$17381_screenManager,21760,x,{layer:7,parentLayer:0});return C.yield(_.v4(v.innertubeTransportService,D),2)}f=C.yieldResult;if(!f)return C.return();v.JSC$17381_screenManager.graftServerVe(f.trackingParams,x,
7);_.YI(C)})};
o0[MM]=[_.RX,_.aS,_.fx];var F0=new _.Uj("PANEL_LOADING_STRATEGY_TOKEN");var z7=function(D,v){this.controller=D;this.panelLoadingStrategy=v};
_.J(z7,o6);
z7.prototype.resolveCommand=function(D,v){var h=this,a,Q,G;return _.M(function(x){a=_.k(D,ykJ);if((Q=a)==null||!Q.panelLoadingStrategy)return x.return();G=function(f){var C,U,L,Z,E,I,S,B,A,d;return _.M(function(b){U=_.k((C=f.dialogViewModel)==null?void 0:C.header,Vuy);L={viewModel:f.dialogViewModel};Z={};if(S=_.g("web_enable_dialog_header_label")?(E=U)==null?void 0:(I=E.headline)==null?void 0:I.content:void 0)Z.ariaLabel=S;a.dismissOnBackgroundTap===!1&&(Z.isModal=!0);return f.dialogViewModel?b.yield(h.controller.openDialog(L,
(d=(B=v)==null?void 0:(A=B.form)==null?void 0:A.element)!=null?d:document.body,Z),0):b.return()})};
return x.yield(h.panelLoadingStrategy.execute({command:D,data:a.panelLoadingStrategy,renderFn:G,createScreenConfig:{layer:4}}),0)})};
z7[MM]=[_.hq,F0];var Uo=function(D,v,h){this.innertubeTransportService=D;this.controller=v;this.JSC$17401_screenManager=h};
_.J(Uo,o6);
Uo.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d;return _.M(function(b){switch(b.nextAddress){case 1:a=_.k(D,_.qh);if(!a)return b.return();var W,K=a.panelIdentifier||((W=a.identifier)==null?void 0:W.tag);if(!K)throw Error("Gi");Q=K;return b.yield(h.controller.isVisible(Q,!0),2);case 2:if((G=b.yieldResult)&&a.blockIfPanelOpen)return b.return();C=(f=(x=h.controller).getPanelContent)==null?void 0:f.call(x,Q);if(!(W=C))if(a){var O;W=((O=a.globalConfiguration)==null?void 0:
O.initialState)||a.engagementPanel;if(O=!W)O=!!(a==null?0:(K=a.engagementPanelPresentationConfigs)==null?0:K.engagementPanelPopupPresentationConfig);O&&(W=_.WUA(a.panelIdentifier,a.identifier))}else W=void 0;U=W;L=a.engagementPanelPresentationConfigs;Z=a.engagementPanelExtras;return b.yield(h.controller.showPanel({identifier:Q,panelContents:U,config:L,extras:Z,target:(E=v)==null?void 0:(I=E.form)==null?void 0:I.element}),3);case 3:if(!a.globalConfiguration){b.jumpTo(0);break}if(a.globalConfiguration.reuseModelAndState&&
_.g("enable_ai_companion")&&(A=(B=(S=h.controller).getPanelContent)==null?void 0:B.call(S,Q)))return b.return();_.bl(h.JSC$17401_screenManager,32633);return b.yield(_.v4(h.innertubeTransportService,D),5);case 5:return d=b.yieldResult,h.JSC$17401_screenManager.graftServerVe(d.trackingParams),b.yield(h.controller.updatePanel({identifier:Q,panelContents:d.content,shouldFocus:!0,extras:Z,updatePanelContinuationData:d.updatePanelContinuationData}),0)}})};
Uo[MM]=[_.RX,_.De,_.aS];var LY=function(D,v){this.controller=D;this.panelLoadingStrategy=v};
_.J(LY,o6);LY.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C;return _.M(function(U){a=_.k(D,_.An);if((Q=a)==null||!Q.panelLoadingStrategy)return U.return();f=TJd(h.controller,(G=v)==null?void 0:(x=G.form)==null?void 0:x.element);C=function(L){return _.M(function(Z){return L.sheetViewModel?Z.yield(h.controller.openSheet({viewModel:L.sheetViewModel},f),0):Z.return()})};
return U.yield(h.panelLoadingStrategy.execute({command:D,data:a.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:0}}),0)})};
LY[MM]=[_.vM,F0];var ZG=function(D,v){this.controller=D;this.JSC$17410_commandHandler=v};
_.J(ZG,o6);ZG.prototype.resolveCommand=function(D,v){var h=this,a,Q,G;return _.M(function(x){if(x.nextAddress==1){a=_.k(D,$Bb);var f=_.k(a.showCommand,_.qh),C,U,L=(U=f==null?void 0:f.panelIdentifier)!=null?U:f==null?void 0:(C=f.identifier)==null?void 0:C.tag;if(!L)throw Error("Hi");Q=L;return x.yield(h.controller.isVisible(Q),2)}return(G=x.yieldResult)?x.yield(h.controller.hidePanel(Q),0):x.yield(h.JSC$17410_commandHandler.resolveCommand(a.showCommand,v),0)})};
ZG[MM]=[_.De,_.fx];var Eo=function(D,v,h){this.innertubeTransportService=D;this.controller=v;this.JSC$17413_screenManager=h};
_.J(Eo,o6);
Eo.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA;return _.M(function(f7){switch(f7.nextAddress){case 1:return a=h=_.k(D,GF4),Q=a.targetPanelIdentifier,G=a.contentSourcePanelIdentifier,x=a.globalConfiguration,((f=Q)==null?0:f.tag)&&((C=G)==null?0:C.tag)?x?f7.yield(v.controller.showPanel({identifier:Q.tag,panelContents:_.WUA(Q.tag,Q)}),5):f7.yield((E=(Z=v.controller).getPanel)==null?void 0:E.call(Z,G.tag),4):f7.return();case 4:I=f7.yieldResult;U=(S=I)==
null?void 0:(A=(B=S).getPanelContent)==null?void 0:A.call(B);f7.jumpTo(3);break;case 5:return f7.yield(_.v4(v.innertubeTransportService,D),6);case 6:d=f7.yieldResult,((b=d)==null?0:b.trackingParams)&&v.JSC$17413_screenManager.graftServerVe(d.trackingParams),U=(W=d)==null?void 0:W.content,L=(K=d)==null?void 0:K.updatePanelContinuationData;case 3:if(R=(O=U)==null?void 0:O.engagementPanelSectionListRenderer)return f7.yield(v.controller.showPanel({identifier:Q.tag,panelUpdatableFields:{content:R.content,
secondaryHeaderContent:(vA=R.header)!=null?vA:{},targetId:R.targetId},updatePanelContinuationData:L}),0);f7.jumpTo(0)}})};
Eo[MM]=[_.RX,_.De,_.aS];var I0=function(){};
_.J(I0,o6);I0.prototype.resolveCommand=function(D){var v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return(v=_.k(D,CNs))?Q.yield(_.Ig(),2):Q.return();h=Q.yieldResult;if(!h)return Q.return();var G=h,x=(a=v)==null?void 0:a.languageCode,f;(G==null?0:(f=G.isReady)==null?0:f.call(G))&&(x=txO(G,x))&&G.setAudioTrack(x);_.YI(Q)})};var gb=function(){};
_.J(gb,o6);var RMd=function(D){var v;return _.M(function(h){v=_.eA("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;D.JSC$17424_mainAppPlayer=new Sf(v);document.addEventListener("yt-page-data-updated",D.JSC$17424_pauseOnNavigation.bind(D));_.YI(h)})};
gb.prototype.JSC$17424_pauseOnNavigation=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1)return v=D.JSC$17424_mainAppPlayer,a.yield(v.api,2);h=a.yieldResult;h.pauseVideo();_.YI(a)})};
var i4$=function(D,v,h){var a;return _.M(function(Q){a=D.JSC$17424_mainAppPlayer;return Q.yield(a.loadVideoWithPlayerVars({videoId:v,audio_only:"1",player_params:h}),0)})};
gb.prototype.pauseVideo=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1)return v=D.JSC$17424_mainAppPlayer,a.yield(v.api,2);h=a.yieldResult;h.pauseVideo();_.YI(a)})};
gb.prototype.playVideo=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1)return v=D.JSC$17424_mainAppPlayer,a.yield(v.api,2);h=a.yieldResult;h.playVideo();_.YI(a)})};
var WRS=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return v=D.JSC$17424_mainAppPlayer,a.yield(v.api,2);h=a.yieldResult;h.mute();_.YI(a)})},tt2=function(D){var v,h;
return _.M(function(a){if(a.nextAddress==1)return v=D.JSC$17424_mainAppPlayer,a.yield(v.api,2);h=a.yieldResult;h.unMute();_.YI(a)})},rbI=function(D,v){return _.M(function(h){switch(h.nextAddress){case 1:switch(v){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return h.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return h.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return h.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return h.jumpTo(5)}h.jumpTo(0);break;case 2:return h.yield(D.playVideo(),7);case 7:h.jumpTo(0);break;case 3:return h.yield(D.pauseVideo(),8);case 8:h.jumpTo(0);break;case 4:return h.yield(WRS(D),9);case 9:h.jumpTo(0);break;case 5:return h.yield(tt2(D),10);case 10:h.jumpTo(0)}})};
gb.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){return I.nextAddress==1?(h=_.k(D,nNp),((a=h)==null?0:a.newPlaybackParams)||((Q=h)==null?0:Q.controlAction)?v.JSC$17424_mainAppPlayer?I.jumpTo(2):I.yield(RMd(v),2):I.return()):((G=h)==null?0:G.newPlaybackParams)?(C=(x=h)==null?void 0:(f=x.newPlaybackParams)==null?void 0:f.externalVideoId,E=(Z=(U=h)==null?void 0:(L=U.newPlaybackParams)==null?void 0:L.playerParams)!=null?Z:"",C?I.yield(i4$(v,C,E),0):I.return()):
I.yield(rbI(v,h.controlAction),0)})};var kB=function(D){this.JSC$17431_commandHandler=D};
_.J(kB,o6);
kB.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return(h=_.k(D,oFm))?C.yield(_.Ig(),2):C.return();a=C.yieldResult;if(!a)return C.return();var U=a,L=(Q=h)==null?void 0:Q.languageCode,Z=(G=h)==null?void 0:G.isAutoTranslated;U.getVideoData&&_.ua2(U).length&&((L=vcI(U,L,Z))?U.setOption("captions","track",L):(U.setOption("captions","stickyLoading",{}),U.setOption("captions","track",{})));x=a.isSubtitlesOn()?_.p1("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.p1("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");f=_.fq(x,5E3);v.JSC$17431_commandHandler.resolveCommand(f);_.YI(C)})};
kB[MM]=[_.fx];var Ju=function(D,v){this.shortsPlayerPromise=D;this.JSC$17435_commandHandler=v};
_.J(Ju,o6);
Ju.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1)return(h=_.k(D,Alm))?L.yield(v.shortsPlayerPromise,2):L.return();a=L.yieldResult;var Z=hn2(a);Z!=null&&Z.length||(a.loadModule("captions"),Z=hn2(a));Q=Z;if((G=Q)==null||!G.length)return x=_.p1("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),f=_.fq(x),v.JSC$17435_commandHandler.resolveCommand(f),L.return();a.toggleSubtitles();C=a.isSubtitlesOn()?_.p1("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.p1("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");U=_.fq(C);v.JSC$17435_commandHandler.resolveCommand(U);_.YI(L)})};
Ju[MM]=[_.lhJ,_.fx];var pY=function(D){this.JSC$17438_actionRouter=D;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(v,h){v.triggerAction("yt-dismiss-shopping-timely-shelf-action",h)}]])};
_.J(pY,o6);pY.prototype.resolveCommand=function(D){var v=this,h,a,Q;return _.M(function(G){h=_.k(D,LBt);if((a=h)==null||!a.overlayId)return G.return();Q=v.dismissPlayerOverlayActions.get(h.overlayId);if(!Q)throw Error("Ii`"+h.overlayId);Q(v.JSC$17438_actionRouter,h);_.YI(G)})};
pY[MM]=[Sh];var l5=function(D){this.JSC$17442_playerPromise=D};
_.J(l5,o6);l5.prototype.resolveCommand=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return(h=_.k(D,h_s))?x.yield(v.JSC$17442_playerPromise,2):x.return();a=x.yieldResult;Q=a.getVideoData().video_id;h.videoId===Q&&(G=Number(h.offsetFromVideoStartMilliseconds),G>=0&&a.seekTo(G/1E3));_.YI(x)})};
l5[MM]=[_.zf];var u9$=_.IG("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Na=function(D){this.store=D};
_.J(Na,o6);
var DIb=function(D){var v,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return v=_.eA("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,h=_.eA("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,a=v||h,D.JSC$17446_mainAppPlayer=new Sf(a),G.yield(D.JSC$17446_mainAppPlayer.api,2);Q=G.yieldResult;Q.addEventListener("onStateChange",D.JSC$17446_playerStateChangeListener.bind(D));document.addEventListener("yt-page-data-updated",D.JSC$17446_pauseOnNavigation.bind(D));window.addEventListener("state-navigatestart",
D.JSC$17446_pauseOnNavigation.bind(D));_.YI(G)})};
Na.prototype.JSC$17446_playerStateChangeListener=function(D){switch(D){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}vCm(this)};
var vCm=function(D){D.store.dispatch(_.Xe("sfvAudioItemCurrentlyPlayingEntity",u9$,{key:u9$,externalVideoId:D.externalVideoId,sfvAudioItemPlaybackState:D.playbackState,nowPlayingEntityValue:D.nowPlayingEntityValue}))};
Na.prototype.JSC$17446_pauseOnNavigation=function(){var D=this,v,h,a,Q;return _.M(function(G){if(G.nextAddress==1){if(!D.JSC$17446_mainAppPlayer){var x=new _.XH("Error: mainAppPlayer is unavailable",D.JSC$17446_mainAppPlayer);_.mV(x);return G.return()}return G.yield(D.JSC$17446_mainAppPlayer.api,2)}v=G.yieldResult;a=(h=v)==null?void 0:h.getPlayerState();a!==1||(Q=v)!=null&&Q.pauseVideo();_.YI(G)})};
Na.prototype.playVideo=function(D,v,h){var a=this,Q,G;return _.M(function(x){if(x.nextAddress==1)return x.yield((Q=a.JSC$17446_mainAppPlayer)==null?void 0:Q.api,2);G=x.yieldResult;if(!a.JSC$17446_mainAppPlayer||!G){var f=new _.XH("Error: mainAppPlayer is unavailable",a.JSC$17446_mainAppPlayer);_.mV(f);return x.return()}return x.yield(a.JSC$17446_mainAppPlayer.loadVideoWithPlayerVars({videoId:a.externalVideoId,audio_only:"1",start:D/1E3,end:D/1E3+v,player_params:h}),0)})};
Na.prototype.pauseVideo=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1){if(!D.JSC$17446_mainAppPlayer){var Q=new _.XH("Error: mainAppPlayer is unavailable",D.JSC$17446_mainAppPlayer);_.mV(Q);return a.return()}return a.yield(D.JSC$17446_mainAppPlayer.api,2)}v=a.yieldResult;(h=v)==null||h.pauseVideo();_.YI(a)})};
Na.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K;return _.M(function(O){if(O.nextAddress==1)return h=_.k(D,Yeb),Q=(a=h)==null?void 0:a.nowPlayingEntityValue,x=(G=h)==null?void 0:G.externalVideoId,Z=Number((L=(f=h)==null?void 0:(C=f.defaultStartPoints)==null?void 0:(U=C[0])==null?void 0:U.offsetMs)!=null?L:"0"),d=Number((A=(E=h)==null?void 0:(I=E.defaultStartPoints)==null?void 0:(S=I[0])==null?void 0:(B=S.duration)==null?void 0:B.seconds)!=null?A:"15"),K=(W=
(b=h)==null?void 0:b.playerParams)!=null?W:"",Q&&x?v.JSC$17446_mainAppPlayer?O.jumpTo(2):O.yield(DIb(v),2):O.return();if(O.nextAddress!=6){if(v.nowPlayingEntityValue&&Q===v.nowPlayingEntityValue)return v.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?O.yield(v.pauseVideo(),0):O.yield(v.playVideo(Z,d,K),0);v.externalVideoId=x;v.nowPlayingEntityValue=Q;v.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return O.yield(v.playVideo(Z,d,K),6)}vCm(v);return O.jumpTo(0)})};
Na[MM]=[xY];var YB=function(D){this.JSC$17464_commandHandler=D};
_.J(YB,o6);YB.prototype.resolveCommand=function(D,v){var h=this,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return(a=_.k(D,FBt))?x.yield(_.Ig(),2):x.return();Q=x.yieldResult;if(!Q)return x.return();(G=asA(Q))&&h.JSC$17464_commandHandler.resolveCommand(G,v);_.YI(x)})};
YB[MM]=[_.fx];var BE=function(D){this.JSC$17470_commandHandler=D};
_.J(BE,o6);BE.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return(a=_.k(D,zvp))?C.yield(_.Ig(),2):C.return();Q=C.yieldResult;if(!Q)return C.return();(G=PQc(Q))?h.JSC$17470_commandHandler.resolveCommand(G,v):(x=_.p1("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),f=_.fq(x),h.JSC$17470_commandHandler.resolveCommand(f));_.YI(C)})};
BE[MM]=[_.fx];var cE=function(D){this.JSC$17473_playerPromise=D};
_.J(cE,o6);cE.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){h=_.k(D,aQR);if(!h)return f.return();a=h.overlayRenderer;return a?(Q=_.k(a,SaM))?f.yield(v.JSC$17473_playerPromise,3):f.jumpTo(0):f.return()}G=f.yieldResult;G.renderChapterSeekingAnimation(1,_.$V(Q.text),(x=Q.icon)==null?void 0:x.iconType);_.YI(f)})};
cE[MM]=[_.zf];var X0=function(D){this.store=D};
_.J(X0,o6);
X0.prototype.resolveCommand=function(D){var v=this,h,a,Q;return _.M(function(G){if(G.nextAddress==1){h=_.k(D,OXp);if(!h)return G.return();a="";(Q=v.store.getState().collabInviteLink)&&h.id===Q.playlistId?a=Q.inviteLinkURL:h.shortUrl&&(a=h.shortUrl);return a?G.yield(navigator.clipboard.writeText(a),3):G.jumpTo(0)}var x={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.p1("COPY_LINK_SUCCESS_TOAST")}}}}};_.xd().resolve(_.fx).resolveCommand(x);_.YI(G)})};
X0[MM]=[Rc];var Au=function(D,v){this.innertubeTransportService=D;this.JSC$17483_commandHandler=v};
_.J(Au,o6);Au.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){if(I.nextAddress==1)return(a=_.k(D,_.M8))?I.yield(_.v4(h.innertubeTransportService,D,(Q=v)==null?void 0:Q.form),2):I.return();(G=I.yieldResult)&&G.errorMetadata&&(x=G,f=_.fq(x.error.message),h.JSC$17483_commandHandler.resolveCommand(f));C=G;if((U=C)==null?0:U.actions)for(L=_.P(C.actions),Z=L.next();!Z.done;Z=L.next())E=Z.value,h.JSC$17483_commandHandler.resolveCommand(E);_.YI(I)})};
Au[MM]=[_.RX,_.fx];var qa=function(){};
_.J(qa,o6);qa.prototype.resolveCommand=function(D){var v;return _.M(function(h){v=_.k(D,bX4);if(!v)return h.return();(new STJ(v)).show();_.YI(h)})};_.b5=new _.Uj("PLAYLIST_EDIT_CONTROLLER_TOKEN");var db=function(D,v,h,a){this.store=D;this.innertubeTransportService=v;this.controller=h;this.JSC$17491_commandHandler=a};
_.J(db,o6);
db.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL,kL,Z4,S2;return _.M(function(s8){if(s8.nextAddress==1){a=_.k(D,_.$G);if(!a)return s8.return();if(a.clientActions){Q=_.P(a.clientActions);for(G=Q.next();!G.done;G=Q.next())x=G.value,h.JSC$17491_commandHandler.resolveCommand(x);var Xf,dJ=v==null?void 0:(Xf=v.form)==null?void 0:Xf.element;dJ&&_.F1(dJ,"yt-dismissible-item-action",a.clientActions)}return s8.yield(_.v4(h.innertubeTransportService,D,(f=
v)==null?void 0:f.form),2)}if(C=s8.yieldResult)C.errorMetadata?(U=C,L=_.fq(U.error.message),h.JSC$17491_commandHandler.resolveCommand(L),"error"in C&&((Z=v)==null?0:(E=Z.commandController)==null?0:E.onServerError)&&((I=v)==null||(S=I.commandController)==null||S.onServerError(D,C))):(B=v)==null||(A=B.commandController)==null||(b=(d=A).onSuccess)==null||b.call(d,D,C);W=C;((K=W)==null?0:K.collaborationInviteLink)&&a.playlistId&&(_.g("web_enable_invite_collaborators_link")||_.g("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
h.store.dispatch(_.oG({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:a.playlistId,inviteLinkUrl:W.collaborationInviteLink}}));((O=W)==null?0:O.redirectEndpoint)&&h.JSC$17491_commandHandler.resolveCommand(W.redirectEndpoint);((R=W)==null?0:(vA=R.newHeader)==null?0:vA.playlistHeaderRenderer)?hZr(h.controller,W.newHeader.playlistHeaderRenderer):((f7=W)==null?0:(xL=f7.newHeader)==null?0:xL.musicEditablePlaylistDetailHeaderRenderer)&&hZr(h.controller,W.newHeader.musicEditablePlaylistDetailHeaderRenderer);
h.controller.playlistVideoListElement&&((kL=W)==null?0:(Z4=kL.playlistEditResults)==null?0:(S2=Z4[0])==null?0:S2.playlistEditVideoAddedResultData)&&((dJ=h.controller.playlistVideoListElement)==null||dJ.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:W.playlistEditResults[0].playlistEditVideoAddedResultData})));_.YI(s8)})};
db[MM]=[Rc,_.RX,_.b5,_.fx];var jV=function(D,v){this.controller=D;this.JSC$17501_commandHandler=v};
_.J(jV,o6);jV.prototype.resolveCommand=function(D,v){var h=this,a,Q,G;return _.M(function(x){a=_.k(D,KDJ);h.controller.showRefreshPill&&((Q=a)==null?0:Q.command)&&(h.JSC$17501_commandHandler.resolveCommand((G=a)==null?void 0:G.command,v),h.controller.showRefreshPill=!1);_.YI(x)})};
jV[MM]=[_.bw,_.fx];var so=function(D,v){this.store=D;this.JSC$17505_commandHandler=v||_.pb.instance};
_.J(so,o6);so.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){a=_.k(D,G0$);Q=h.store.getState().radioButtonGroup;if((G=a)==null?0:G.command)h.JSC$17505_commandHandler.resolveCommand((x=a)==null?void 0:x.command,v);else if(Q&&((f=a)==null?void 0:f.formId)===Q.currentFormId)for(C=Object.values(Q.commandsMap),U=_.P(C),L=U.next();!L.done;L=U.next())Z=L.value,(E=_.Rq(Z))&&h.JSC$17505_commandHandler.resolveCommand(E,v);_.YI(I)})};
so[MM]=[_.Mv];var mQ=new _.Uj("USER_PREFS");var HE=function(D){this.JSC$17510_prefCookie=D};
_.J(HE,o6);HE.prototype.resolveCommand=function(D){var v=this,h;return _.M(function(a){(h=_.k(D,l5t))&&typeof h.useListView==="boolean"&&(_.BU(0,155,h.useListView),v.JSC$17510_prefCookie.save());_.YI(a)})};
HE[MM]=[mQ];var ym=function(D){this.JSC$17514_prefCookie=D};
_.J(ym,o6);ym.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x;return _.M(function(f){h=_.k(D,jvM);if((a=h)==null||!a.gl)return f.return();Q=h.gl;G={persist_gl:"1",gl:Q};v.JSC$17514_prefCookie.set("gl",Q);v.JSC$17514_prefCookie.save();x=SQM(G);_.ay(x);_.YI(f)})};
ym[MM]=[mQ];var wb=function(D){this.JSC$17518_prefCookie=D};
_.J(wb,o6);wb.prototype.resolveCommand=function(D){var v=this,h,a;return _.M(function(Q){h=_.k(D,Rw1);if(!h)return Q.return();a=!1;h.flagNum&&typeof h.value==="boolean"?(_.BU(0,h.flagNum,h.value),a=!0):h.key&&typeof h.stringValue==="string"&&(v.JSC$17518_prefCookie.set(h.key,h.stringValue),a=!0);a&&v.JSC$17518_prefCookie.save();_.YI(Q)})};
wb[MM]=[mQ];var eV=new _.Uj("PREF_STORAGE_PROMISE_TOKEN");var nY=function(D){this.JSC$17522_prefStoragePromise=D};
_.J(nY,o6);nY.prototype.resolveCommand=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1)return(h=_.k(D,WD4))?Q.yield(v.JSC$17522_prefStoragePromise,2):Q.return();a=Q.yieldResult;return a===void 0||h.key===void 0||h.value===void 0?Q.return():Q.yield(a.set(h.key,h.value),0)})};
nY[MM]=[eV];var abm=function(D){this.innertubeTransportService=D};
_.J(abm,o6);abm.prototype.resolveCommand=function(D,v){var h=this,a,Q;return _.M(function(G){(a=_.k(D,_.rp4))&&a&&a.isFirstRequest&&(_.wK("search_overview_answer"),_.ea("so_rq",void 0,"search_overview_answer"));return G.yield(_.v4(h.innertubeTransportService,D,(Q=v)==null?void 0:Q.form),0)})};
abm[MM]=[_.RX];var $IZ=function(){};
_.J($IZ,o6);
$IZ.prototype.resolveCommand=function(D){var v,h,a,Q,G,x,f,C,U;return _.M(function(L){v=_.k(D,vMR);if((h=v)==null?0:h.sectionIdentifier){if(v.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Q=(a=document.getElementsByTagName(v.sectionIdentifier))==null?void 0:a.item(0))Q.scrollIntoView({behavior:"smooth"}),(G=Q34(Q))&&G.focus({preventScroll:!0});return L.return()}x=document.querySelector("[section-identifier="+v.sectionIdentifier+"]");f=document.querySelector("[section-identifier="+v.referenceSectionIdentifier+
"]");if(!x)return L.return();C=v.verticalScrollOffsetDp?v.verticalScrollOffsetDp:0;f&&(C-=f.offsetTop);window.scrollTo({top:x.offsetTop+C,behavior:"smooth"});(U=Q34(x))&&U.focus({preventScroll:!0})}_.YI(L)})};var Oo=function(D){this.JSC$17534_commandHandler=D};
_.J(Oo,o6);
Oo.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C;return _.M(function(U){if(U.nextAddress==1){h=_.k(D,gmp);if(!h||!h.imageBytes||!navigator.clipboard)return U.return();if(h.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.mV(Error("Ki")),U.return();_.gE(U,2);Q=(a=h)==null?void 0:a.imageBytes;G=Q.replace(/-/g,"+").replace(/_/g,"/");x=eXA(G);f={};C=[new ClipboardItem((f[x.type]=x,f))];return U.yield(navigator.clipboard.write(C),4)}if(U.nextAddress!=2)return h.successCommand&&
v.JSC$17534_commandHandler.resolveCommand(h.successCommand),_.rl(U,0);_.NS(U);h.errorCommand&&v.JSC$17534_commandHandler.resolveCommand(h.errorCommand);_.YI(U)})};
Oo[MM]=[_.fx];var KY=function(D,v){this.innertubeTransportService=D;this.JSC$17538_commandHandler=v};
_.J(KY,o6);KY.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return(a=_.k(D,k4p))?C.yield(_.v4(h.innertubeTransportService,D,(Q=v)==null?void 0:Q.form),2):C.return();(G=C.yieldResult)&&G.errorMetadata&&a.onFailureCommand&&h.JSC$17538_commandHandler.resolveCommand(a.onFailureCommand);x=G;((f=x)==null?0:f.shareCommand)&&h.JSC$17538_commandHandler.resolveCommand(x.shareCommand,v);_.YI(C)})};
KY[MM]=[_.RX,_.fx];var T7=function(){};
_.J(T7,o6);T7.prototype.resolveCommand=function(D){var v,h;return _.M(function(a){v=_.k(D,ew4);if(!v||!navigator.share)return a.return();h={url:v.url};try{return a.return(navigator.share(h))}catch(Q){}_.YI(a)})};var R0=function(){};
_.J(R0,o6);R0.prototype.resolveCommand=function(){return _.M(function(D){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.YI(D)})};var i5=function(D){this.JSC$17548_navigationConfirmationService=D};
_.J(i5,o6);i5.prototype.resolveCommand=function(){var D=this;return _.M(function(v){D.JSC$17548_navigationConfirmationService.cancelPendingNavigation();_.YI(v)})};
i5[MM]=[KC];var WE=function(D){this.JSC$17551_screenManager=D};
_.J(WE,o6);WE.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U;return _.M(function(L){Q=(a=v.form)==null?void 0:a.event;x=(G=v.form)==null?void 0:G.element;if(!Q)throw new _.XH("Event not passed in when resolving command");f=_.P(Q.composedPath());for(C=f.next();!C.done;C=f.next())if(U=C.value,U.tagName==="YT-COPY-LINK-RENDERER")return U.copyUrlToClipboard(),x&&_.r1(h.JSC$17551_screenManager,x),L.return();_.YI(L)})};
WE[MM]=[_.aS];var tu=function(){this.JSC$17555_miniAppClientDataProvider=_.xd().resolve(_.Lk)};
_.J(tu,o6);tu.prototype.resolveCommand=function(){var D=this,v,h;return _.M(function(a){if(D.JSC$17555_miniAppClientDataProvider.clientData.has("video_id")){var Q=D.JSC$17555_miniAppClientDataProvider,G=Q.clientData.get("video_id");G&&Q.clientData.delete("video_id");v="https://youtube.com/watch?v="+G;h=_.yw(v);if(h===void 0)throw Error("Li`"+v);_.Dx(window,h)}_.YI(a)})};var rb=function(){};
_.J(rb,o6);rb.prototype.resolveCommand=function(){return _.M(function(D){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.YI(D)})};var u5=function(){};
_.J(u5,o6);u5.prototype.resolveCommand=function(){var D;return _.M(function(v){if(v.nextAddress==1)return v.yield(_.wNL(window.document.documentElement),2);(D=document.querySelector("mini-app-container-view-model iframe"))&&D.focus();_.YI(v)})};var Di=function(D){this.JSC$17562_navigationConfirmationService=D};
_.J(Di,o6);
Di.prototype.resolveCommand=function(){var D=this;return _.M(function(v){var h=D.JSC$17562_navigationConfirmationService,a=_.xd().resolve(_.WC),Q;if(((Q=h.navigateParams)==null?void 0:Q.data)!==void 0){var G;_.NH4(a,h.navigateParams.endpoint,h.navigateParams.data,(G=h.navigateParams.navigationType)!=null?G:1,h.navigateParams.tempData,h.navigateParams.isMiniplayer,void 0,!0);h.navigateParams=void 0;h.customConfirmationCommand=void 0}else h.navigateParams&&(a.navigate(h.navigateParams.endpoint,h.navigateParams.reload,
h.navigateParams.params,h.navigateParams.tempData,h.navigateParams.requestType,h.navigateParams.createScreenConfig,!0),h.navigateParams=void 0,h.customConfirmationCommand=void 0);_.YI(v)})};
Di[MM]=[KC];var vx=function(){};
_.J(vx,o6);vx.prototype.resolveCommand=function(){return _.M(function(D){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.YI(D)})};var hz=function(D){this.JSC$17567_prefStorage=D};
_.J(hz,o6);hz.prototype.resolveCommand=function(){var D=this,v,h;return _.M(function(a){switch(a.nextAddress){case 1:return a.yield(D.JSC$17567_prefStorage,2);case 2:return(v=a.yieldResult)?a.yield(v.set("sfvle",!1),3):a.return();case 3:return a.yield(v.set("sfvles",!0),4);case 4:h=_.YE(),_.BU(0,203,!1),_.BU(0,204,!0),h.save(),_.YI(a)}})};
hz[MM]=[eV];var ak=function(D){this.JSC$17570_prefStorage=D};
_.J(ak,o6);ak.prototype.resolveCommand=function(){var D=this,v,h;return _.M(function(a){switch(a.nextAddress){case 1:return a.yield(D.JSC$17570_prefStorage,2);case 2:return(v=a.yieldResult)?a.yield(v.set("sfvle",!0),3):a.return();case 3:return a.yield(v.set("sfvles",!0),4);case 4:h=_.YE(),_.BU(0,203,!0),_.BU(0,204,!0),h.save(),_.YI(a)}})};
ak[MM]=[eV];_.QUs=new _.Uj("SNACKBAR_CONTROLLER_TOKEN");_.Gds=new _.Uj("SHOULD_SHOW_PIVOT_BAR_TOKEN");var $4=function(D){this.controller=D};
_.J($4,o6);$4.prototype.resolveCommand=function(D){var v=this,h;return _.M(function(a){h=_.k(D,Het);if(!h)return a.return();var Q=v.controller;Q.closeSnackbarFn&&Q.closeSnackbarFn();_.YI(a)})};
$4[MM]=[_.QUs];var Qc=function(D,v){this.controller=D;this.sheetController=v};
_.J(Qc,o6);Qc.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C;return _.M(function(U){a=_.k(D,wty);if(!a)return U.return();x=TJd(h.sheetController,(Q=v)==null?void 0:(G=Q.form)==null?void 0:G.element);f=_.k(a.content,hA1);if(!f)return U.return();var L=h.controller,Z=f,E=(C=a.animationStyle)!=null?C:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(L.showSnackbarFn)L.showSnackbarFn({snackbarViewModel:Z,animationStyle:E,durationMs:a.durationSeconds*1E3,target:x});else throw Error("uj");_.YI(U)})};
Qc[MM]=[_.QUs,_.vM];var Go=function(){};
_.J(Go,o6);Go.prototype.resolveCommand=function(D){var v;return _.M(function(h){v=_.k(D,iXR);if(!v||typeof v.key!=="string"||typeof v.value!=="string")return h.return();window.localStorage.setItem(v.key,v.value);_.YI(h)})};var Vc=function(D){this.store=D};
_.J(Vc,o6);Vc.prototype.resolveCommand=function(D){var v=this,h;return _.M(function(a){h=_.k(D,N5o);if(!h||!h.stepId||!h.token)return a.return();v.store.dispatch(B69({stepId:h.stepId,token:h.token,isSelected:!1}));_.YI(a)})};
Vc[MM]=[Rc];var Px=function(D,v,h){this.innertubeTransportService=D;this.store=v;this.JSC$17589_screenManager=h};
_.J(Px,o6);
Px.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL;return _.M(function(kL){h=_.k(D,c42);if(!h||(a=h.stepIds)==null||!a.length)return kL.return();Q=v.store.getState().talkToRecs;G=[];x=[];f=_.P(h.stepIds);for(C=f.next();!C.done;C=f.next())for(U=C.value,L=void 0,(Z=(L=Q.stepStates[U])==null?void 0:L.userQuery)&&x.push({userQuery:Z.userQuery,userQueryToken:Z.token}),I=E=void 0,S=(I=(E=Q.stepStates[U])==null?void 0:E.selectionStates)!=null?I:{},B=_.P(Object.entries(S)),
A=B.next();!A.done;A=B.next())d=A.value,b=_.P(d),W=b.next().value,K=b.next().value,O=W,R=K,R.isSelected&&G.push(O);vA={selectedChipTokens:G,userQueries:x,submittedStepIds:h.stepIds};f7={browseTalk2recsFormData:vA};h.browseEndpoint?(xL=D,_.eQ(xL,_.YV,h.browseEndpoint)):h.command&&(xL=h.command);return xL?kL.yield(_.v4(v.innertubeTransportService,xL,{formData:f7,disableCache:!0}).then(function(Z4){(Z4==null?0:Z4.trackingParams)&&v.JSC$17589_screenManager.graftServerVe(Z4==null?void 0:Z4.trackingParams)}),
0):kL.return()})};
Px[MM]=[_.RX,Rc,_.aS];var x4=function(D){this.store=D};
_.J(x4,o6);x4.prototype.resolveCommand=function(D){var v=this,h;return _.M(function(a){h=_.k(D,l7c);if(!h||!h.stepId||!h.token)return a.return();v.store.dispatch(B69({stepId:h.stepId,token:h.token,isSelected:!0}));_.YI(a)})};
x4[MM]=[Rc];var M3=function(D){this.store=D};
_.J(M3,o6);M3.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f;return _.M(function(C){a=_.k(D,eDy);if(!a||!a.stepId||!a.userQueryToken)return C.return();f=(x=(Q=v)==null?void 0:(G=Q.form)==null?void 0:G.userQuery)!=null?x:"";h.store.dispatch(_.oG({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:a.stepId,userQueryToken:a.userQueryToken,userQuery:f}}));_.YI(C)})};
M3[MM]=[Rc];_.V$K=new _.Uj("TIMELY_ACTIONS_CONTROLLER_TOKEN");var fv=function(D){this.controller=D};
_.J(fv,o6);fv.prototype.resolveCommand=function(D){var v=this,h,a,Q,G;return _.M(function(x){h=_.k(D,rxp);if(!h)return x.return();a=h;Q=a.id;G=a.isVisible;if(Q===void 0||G===void 0)return x.return();var f;(f=v.controller.timelyActionsMap.get(Q))==null||f(Q,G);_.YI(x)})};
fv[MM]=[_.V$K];var PSC=function(){this.timelyActionsMap=new Map};var Cv=function(D){this.JSC$17615_commandHandler=D};
_.J(Cv,o6);Cv.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x;return _.M(function(f){h=_.k(D,_.HF);if(!h)return f.return();G=(a=h.item)==null?void 0:(Q=a.notificationTextRenderer)==null?void 0:Q.successResponseText;if(!G)return f.return();x=_.MP(G);v.JSC$17615_commandHandler.resolveCommand(x);_.YI(f)})};
Cv[MM]=[_.fx];var ok=function(D,v){this.innertubeTransportService=D;this.JSC$17620_playerApiPromise=v};
_.J(ok,o6);
ok.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){if(Z.nextAddress==1)return Z.yield(v.JSC$17620_playerApiPromise,2);h=Z.yieldResult;a=h.getOption("captions","track");Q=Object.assign({},_.k(D,_.LJM));(x=(G=h.getVideoData())==null?void 0:G.video_id)?Q.externalVideoId=x:_.Wv(Error("Mi"));if((f=a)==null?0:f.languageCode)Q.languageCode=a.languageCode;if((C=a)==null?0:C.kind)Q.kind=a.kind;if((U=a)==null?0:U.name)Q.name=a.name;L=Object.assign({},D,{getTranscriptEndpoint:Q});return Z.yield(_.v4(v.innertubeTransportService,
L),0)})};
ok[MM]=[_.RX,_.zf];var FU=function(){};
_.J(FU,o6);FU.prototype.resolveCommand=function(D){var v,h,a,Q,G,x,f,C;return _.M(function(U){v=_.k(D,QWM);if((h=v)==null||!h.paramKeyValuePairs)return U.return();a=window.location.href;Q=_.P(v.paramKeyValuePairs);for(G=Q.next();!G.done;G=Q.next())x=G.value,x.key&&x.value&&(f={},a=_.vV(a,(f[x.key]=x.value,f)));C=_.xd().resolve(_.ef);_.wG(C,a);_.YI(U)})};var xIs=new _.Uj("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var zo=function(D,v,h){this.controller=D;this.JSC$17627_playerApiPromise=v;this.innertubeTransportService=h};
_.J(zo,o6);
zo.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d;return _.M(function(b){if(b.nextAddress==1){h=_.k(D,E$M);if((a=h)==null||!a.watchEndpoint)return b.return();Q=new ek;G=Q.JSC$13119_getRequest(h.watchEndpoint);if(!G)return b.return();x=h.watchEndpoint.clickTrackingParams;return b.yield(_.My(v.innertubeTransportService,G.innerTubeRequest,G.input,x,G.config),2)}if(b.nextAddress!=3)return f=b.yieldResult,b.yield(v.JSC$17627_playerApiPromise,3);C=b.yieldResult;C.updateVideoData({raw_watch_next_response:f});
if(S=(U=f)==null?void 0:(L=U.contents)==null?void 0:(Z=L.twoColumnWatchNextResults)==null?void 0:(E=Z.results)==null?void 0:(I=E.results)==null?void 0:I.contents)A=(B=S.find(function(W){return W.videoPrimaryInfoRenderer}))==null?void 0:B.videoPrimaryInfoRenderer,((d=A)==null?0:d.subtitle)&&M$s(v.controller,A.subtitle);
_.YI(b)})};
zo[MM]=[xIs,_.zf,_.RX];var fb2=function(){this.subtitleChangeCallbackMap=new Map},M$s=function(D,v){D=_.P(D.subtitleChangeCallbackMap.values());
for(var h=D.next();!h.done;h=D.next())h=h.value,h(v)};var Uf=function(D,v){this.JSC$17637_commandHandler=D;this.innertubeTransportService=v};
_.J(Uf,o6);
Uf.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W;return _.M(function(K){switch(K.nextAddress){case 1:return(G=(a=v)==null?void 0:(Q=a.form)==null?void 0:Q.element)&&_.KS(G),x=_.YE().get("hl"),f="",_.gE(K,2),K.yield(CQo(x),4);case 4:f=K.yieldResult;_.rl(K,3);break;case 2:return _.NS(K),G&&_.TN(G),_.mV(Error("Oi"),"ERROR"),K.return();case 3:C=_.k(D,X2J);if(!C)return G&&_.TN(G),K.return();(Z=(U=C.commerceActionConfig)==null?void 0:(L=U.commandLifeCycleConfig)==null?
void 0:L.onStartCommand)&&h.JSC$17637_commandHandler.resolveCommand(Z);return K.yield(_.v4(h.innertubeTransportService,D,{client_data:{paymentsClientToken:{token:f}}}),5);case 5:(E=K.yieldResult)?(G&&_.TN(G),((A=E)==null?0:A.command)&&h.JSC$17637_commandHandler.resolveCommand(E.command),(W=(d=C.commerceActionConfig)==null?void 0:(b=d.commandLifeCycleConfig)==null?void 0:b.onSuccessCommand)&&h.JSC$17637_commandHandler.resolveCommand(W)):(G&&_.TN(G),_.mV(Error("Pi")),(B=(I=C.commerceActionConfig)==
null?void 0:(S=I.commandLifeCycleConfig)==null?void 0:S.onFailureCommand)&&h.JSC$17637_commandHandler.resolveCommand(B)),_.YI(K)}})};
Uf[MM]=[_.fx,_.RX];var Lv=function(D,v,h){this.store=D;this.JSC$17653_commandHandler=v;this.innertubeTransportService=h};
_.J(Lv,o6);
Lv.prototype.resolveCommand=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z;return _.M(function(E){a=_.k(D,AE1);Q=a.googlePaymentPayload;a.onStartCommand&&h.JSC$17653_commandHandler.resolveCommand(a.onStartCommand);G=Q.encryptedPurchaseParams;x=Q.ypcLogWalletAnalyticDataEndpoint;f=a.serializedTransactionFlowLoggingParams;C=Q.serializedPaymentsClientParams;U=a.ypcCujContext;Z=zn7(h.innertubeTransportService,(L=v)==null?void 0:L.form,G,x,f,C,U);return E.return(Z.then(function(I){oc2(v==null?void 0:v.form,
!1);var S=h.store,B=h.JSC$17653_commandHandler,A=I.integratorData;A==null||A===""||I.error!=null?(String(I.error)==="-1"&&a.onDismissCommand?B.resolveCommand(a.onDismissCommand):String(I.error)!=="-1"&&a.onFailureCommand&&B.resolveCommand(a.onFailureCommand),String(I.error)!=="-1"&&String(I.error)!=="132"&&_.mV(Error("Qi"),"ERROR")):(a.googlePaymentEntityKey&&S.dispatch(_.Xe("commerceAcquisitionClientPayloadEntity",a.googlePaymentEntityKey,{key:a.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:A,
fundsGuaranteeCallbackClientData:I.integratorClientCallbackData}}})),a.onSuccessCommand&&B.resolveCommand(a.onSuccessCommand));_.E9()},function(I){oc2(v==null?void 0:v.form,!1);
_.mV(I,"ERROR");a.onFailureCommand&&h.JSC$17653_commandHandler.resolveCommand(a.onFailureCommand)}))})};
Lv[MM]=[xY,_.fx,_.RX];var Zi=function(D,v){this.JSC$17657_commandHandler=D;this.purchaseManager=v};
_.J(Zi,o6);
Zi.prototype.resolveCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){h=_.k(D,qat);((a=h)==null?0:(Q=a.commandLifeCycleConfig)==null?0:Q.onStartCommand)&&v.JSC$17657_commandHandler.resolveCommand(h.commandLifeCycleConfig.onStartCommand);if(!((G=h)==null?0:(x=G.googlePaymentPurchaseManagerPayload)==null?0:x.securePayloadBytes))return _.mV(Error("Ri"),"ERROR"),Z.return();f=Dis(_.DJ(h.googlePaymentPurchaseManagerPayload.securePayloadBytes));C=_.YE().get("hl");U=_.hn();VtI(f.serialize(),
C,function(E){U.resolve(E)},function(E){U.reject(E)},U.resolve);
L=U.promise;return Z.return(L.then(function(E){if(E)if(E==null?0:E.errorCode){_.mV(Error("Si`"+E.errorCode),"ERROR");var I,S;((I=h)==null?0:(S=I.commandLifeCycleConfig)==null?0:S.onFailureCommand)&&v.JSC$17657_commandHandler.resolveCommand(h.commandLifeCycleConfig.onFailureCommand)}else if(E==null?0:E.isCancelled){var B,A;((B=h)==null?0:(A=B.commandLifeCycleConfig)==null?0:A.onCancelCommand)&&v.JSC$17657_commandHandler.resolveCommand(h.commandLifeCycleConfig.onCancelCommand)}else{var d,b;((d=h)==
null?0:(b=d.commandLifeCycleConfig)==null?0:b.onSuccessCommand)&&v.JSC$17657_commandHandler.resolveCommand(h.commandLifeCycleConfig.onSuccessCommand)}},function(E){_.mV(E,"ERROR");
var I,S;((I=h)==null?0:(S=I.commandLifeCycleConfig)==null?0:S.onFailureCommand)&&v.JSC$17657_commandHandler.resolveCommand(h.commandLifeCycleConfig.onFailureCommand)}))})};
Zi[MM]=[_.fx,PsZ];var CSK=function(D,v){this.JSC$17665_commandHandler=D;this.commandAllowlistOverride=v;var h;this.commandAllowlist=(h=this.commandAllowlistOverride)!=null?h:ag};
CSK.prototype.handleResponse=function(D,v,h){var a,Q=v==null?void 0:(a=v.config)==null?void 0:a.command;if(!Q||this.commandAllowlist.some(function(G){return!!_.k(Q,G)})){v=void 0;
h!==void 0&&(v={form:{element:h}});D.onResponseReceivedCommand&&this.JSC$17665_commandHandler.resolveCommand(D.onResponseReceivedCommand,v);D.onResponseReceivedAction&&this.JSC$17665_commandHandler.resolveCommand(D.onResponseReceivedAction,v);D.onResponseReceivedEndpoint&&this.JSC$17665_commandHandler.resolveCommand(D.onResponseReceivedEndpoint,v);D.command&&this.JSC$17665_commandHandler.resolveCommand(D.command,v);if(D.onResponseReceivedCommands)for(h=_.P(D.onResponseReceivedCommands),a=h.next();!a.done;a=
h.next())this.JSC$17665_commandHandler.resolveCommand(a.value,v);if(D.onResponseReceivedActions)for(h=_.P(D.onResponseReceivedActions),a=h.next();!a.done;a=h.next())this.JSC$17665_commandHandler.resolveCommand(a.value,v);if(D.onResponseReceivedEndpoints)for(h=_.P(D.onResponseReceivedEndpoints),a=h.next();!a.done;a=h.next())this.JSC$17665_commandHandler.resolveCommand(a.value,v);if(D.actions)for(D=_.P(D.actions),h=D.next();!h.done;h=D.next())this.JSC$17665_commandHandler.resolveCommand(h.value,v)}};
CSK[MM]=[_.fx,_.PV(Lfq)];var oCC=new _.Uj("INNERTUBE_TOKEN_SERVICE");var Fmm=new _.Uj("SCHEDULER_TOKEN");var zZK=function(D){this.scheduler=D;D={};this.tokenMap=(D.app={},D.user={},D)};
zZK.prototype.handleResponse=function(D,v){if(!v)throw Error("Ti");var h;if(D=(h=D.responseContext)==null?void 0:h.innertubeTokenJar){if(D.appTokens){var a,Q,G;h=(a=v.innerTubeRequest.context)==null?void 0:(Q=a.request)==null?void 0:(G=Q.innertubeTokenJar)==null?void 0:G.appTokens;UIs(this,D.appTokens,this.tokenMap.app,h)}if(D.userTokens){var x,f,C;v=(x=v.innerTubeRequest.context)==null?void 0:(f=x.request)==null?void 0:(C=f.innertubeTokenJar)==null?void 0:C.userTokens;UIs(this,D.userTokens,this.tokenMap.user,
v)}}};
zZK.prototype.processContext=function(D){D.request||(D.request={});var v=Object.keys(this.tokenMap.app).length,h=Object.keys(this.tokenMap.user).length;if(v||h)D.request.innertubeTokenJar={},v&&(D.request.innertubeTokenJar.appTokens=[].concat(_.j_(Object.values(this.tokenMap.app).flat()))),h&&(D.request.innertubeTokenJar.userTokens=[].concat(_.j_(Object.values(this.tokenMap.user).flat())))};
var UIs=function(D,v,h,a){v=_.P(v);for(var Q=v.next(),G={};!Q.done;G={token$jscomp$139:void 0},Q=v.next()){G.token$jscomp$139=Q.value;if(G.token$jscomp$139.type===void 0)throw new _.XH("InnerTube token has no type",G.token$jscomp$139);if(G.token$jscomp$139.clearTokens)h[G.token$jscomp$139.type]=[];else if(G.token$jscomp$139.value!==void 0){h[G.token$jscomp$139.type]||(h[G.token$jscomp$139.type]=[]);if(a!==void 0&&a.length){Q=_.P(a);for(var x=Q.next(),f={};!x.done;f={requestToken:void 0},x=Q.next())f.requestToken=
x.value,x=h[G.token$jscomp$139.type].findIndex(function(C){return function(U){return U===C.requestToken||(0,_.sV.equals)(U,C.requestToken)}}(f)),x>-1&&h[G.token$jscomp$139.type].splice(x,1)}h[G.token$jscomp$139.type].push(G.token$jscomp$139);
G.token$jscomp$139.maxAgeSeconds&&Number(G.token$jscomp$139.maxAgeSeconds)>0&&D.scheduler.addLowPriorityJob(function(C){return function(){var U=h[C.token$jscomp$139.type].indexOf(C.token$jscomp$139);U>-1&&h[C.token$jscomp$139.type].splice(U,1)}}(G),Number(G.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.XH("InnerTube token has no value",G.token$jscomp$139);
}};
zZK[MM]=[Fmm];var LmZ=new _.Uj("LOCAL_INNERTUBE_ROUTER_TOKEN"),Z3r=new _.Uj("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ef=function(D){this.serviceMap=D};
Ef.prototype.shouldPreferLocalResponse=function(D,v){return(D=ECS(this,D))?D.shouldPreferLocalResponse(v):!1};
Ef.prototype.localInnertubeResponse=function(D,v){var h=this,a;return _.M(function(Q){return(a=ECS(h,D))?Q.return(a.localInnertubeResponse(v)):Q.return(Promise.reject(Error("Ui")))})};
Ef.prototype.canProvideFallbackResponse=function(D,v){return(D=ECS(this,D))?D.canProvideFallbackResponse(v):!1};
Ef.prototype.localFallbackInnertubeResponse=function(D,v){var h=this,a;return _.M(function(Q){return(a=ECS(h,D))?Q.return(a.localFallbackInnertubeResponse(v)):Q.return(Promise.reject(Error("Ui")))})};
var ECS=function(D,v){v=_.gl(v);return v?(D=D.serviceMap[v])?D:null:null};
Ef[MM]=[Z3r];var pK=function(){};
pK.prototype.shouldPreferLocalResponse=function(){return!1};
pK.prototype.localInnertubeResponse=function(){return _.M(function(D){return D.return(Promise.reject(Error("Vi")))})};
pK.prototype.canProvideFallbackResponse=function(){return!0};
pK.prototype.localFallbackInnertubeResponse=function(){var D,v,h;return _.M(function(a){D=So("CLOSE_POPUP");v={openPopupAction:Lyc()};h={actions:[D,v]};return a.return(h)})};var LXc=function(D,v){this.JSC$17714_upliftPromise=D;this.store=v};
_.V=LXc.prototype;_.V.shouldPreferLocalResponse=function(D){var v=D.videoId,h;if(h=v)h=BeI(this.store.getState().entities,D.videoId);return h&&cp7(this.store.getState().entities,v)?Eci(this.store.getState().entities,D.playlistId):!1};
_.V.localInnertubeResponse=function(D){var v=this,h;return _.M(function(a){return(h=v.getPlayerResponse(D))?a.return(Promise.resolve(h)):a.return(Promise.reject(Error("Wi")))})};
_.V.canProvideFallbackResponse=function(D){return!!D.videoId};
_.V.localFallbackInnertubeResponse=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.JSC$17714_upliftPromise,2);h=v.getPlayerResponse(D);var Q;h?Q=a.return(Promise.resolve(h)):Q=qD(v.store.getState().entities,D.videoId)?a.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.MD(_.p1("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:cRu()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
a.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.MD(_.p1("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Bic()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Q})};
_.V.getPlayerResponse=function(D){return aLI(this.store.getState().entities,D.videoId)};var JL=function(D,v){this.localPlayerService=D;this.localWatchNextService=v};
JL.prototype.shouldPreferLocalResponse=function(D){var v=D.playerRequest;D=D.watchNextRequest;return!!(v&&this.localPlayerService.shouldPreferLocalResponse(v)&&D&&this.localWatchNextService.shouldPreferLocalResponse(D))};
JL.prototype.localInnertubeResponse=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1){h=D.playerRequest;a=D.watchNextRequest;if(!h||!a)throw new _.XH("Missing streaming request",D);return x.yield(v.localPlayerService.localInnertubeResponse(h),2)}if(x.nextAddress!=3)return Q=x.yieldResult,x.yield(v.localWatchNextService.localInnertubeResponse(a),3);G=x.yieldResult;return x.return({playerResponse:Q,watchNextResponse:G})})};
JL.prototype.canProvideFallbackResponse=function(D){var v=D.playerRequest;D=D.watchNextRequest;return!!(v&&this.localPlayerService.canProvideFallbackResponse(v)&&D&&this.localWatchNextService.canProvideFallbackResponse(D))};
JL.prototype.localFallbackInnertubeResponse=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return h=D.playerRequest,a=D.watchNextRequest,h&&a?x.yield(v.localPlayerService.localFallbackInnertubeResponse(h),2):x.return(Promise.reject(new _.XH("Missing streaming request",D)));if(x.nextAddress!=3)return Q=x.yieldResult,x.yield(v.localWatchNextService.localFallbackInnertubeResponse(a),3);G=x.yieldResult;return x.return({playerResponse:Q,watchNextResponse:G})})};var go=function(D){this.JSC$17724_persistentStorePromiseAccessor=D};
go.prototype.shouldPreferLocalResponse=function(){return!1};
go.prototype.localInnertubeResponse=function(){return _.M(function(D){return D.return(Promise.reject(Error("Xi")))})};
go.prototype.canProvideFallbackResponse=function(){return!0};
go.prototype.localFallbackInnertubeResponse=function(){var D=this,v,h;return _.M(function(a){return a.nextAddress==1?a.yield(D.JSC$17724_persistentStorePromiseAccessor(),2):a.nextAddress!=3?(v=a.yieldResult)?a.yield(v.get("service:guide:fallback"),3):a.return(Promise.reject(Error("Yi"))):(h=a.yieldResult)&&_.Vf(h)?a.return(Isc(_.Vf(h))):a.return(Promise.reject(Error("Zi")))})};var lp=function(){};
lp.prototype.shouldPreferLocalResponse=function(){return!1};
lp.prototype.localInnertubeResponse=function(){return _.M(function(D){return D.return(Promise.reject(Error("$i")))})};
lp.prototype.canProvideFallbackResponse=function(){return!0};
lp.prototype.localFallbackInnertubeResponse=function(){var D,v,h;return _.M(function(a){D=So("CLOSE_POPUP");v={openPopupAction:Lyc()};h={actions:[D,v]};return a.return(h)})};var IQ=function(){this.urlMap=Ib3;this.fallbackCommand=_.nH};
IQ.prototype.shouldPreferLocalResponse=function(D){return(D=D.url)?!!gCr(this,D):!1};
IQ.prototype.localInnertubeResponse=function(D){var v=this,h;return _.M(function(a){return(h=D.url)?a.return(kd$(D,gCr(v,h))):a.return(Promise.reject(Error("aj")))})};
IQ.prototype.canProvideFallbackResponse=function(){return!0};
IQ.prototype.localFallbackInnertubeResponse=function(D){var v=this,h,a,Q,G,x,f,C;return _.M(function(U){h=D.url;if(!h)return U.return(kd$(D,v.fallbackCommand));if(a=gCr(v,h))return U.return(kd$(D,a));Q=void 0;G=_.gl(h);G==="/watch"&&(x=_.i9(h,"v"))&&(C=(f=_.i9(h,"list"))!=null?f:void 0,Q=_.xZ(x,C));Q||(Q=v.fallbackCommand);return U.return(kd$(D,Q))})};
var gCr=function(D,v){if(v)return D.urlMap[_.tB(v)]},kd$=function(D,v){v&&D.parentTrackingParams&&(v.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:D.parentTrackingParams}},v.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:v})};var kY=function(D,v,h){this.JSC$17734_upliftPromise=D;this.store=v;this.JSC$17734_persistentStorePromiseAccessor=h};
kY.prototype.shouldPreferLocalResponse=function(){return!1};
kY.prototype.localInnertubeResponse=function(){return _.M(function(D){return D.return(Promise.reject(Error("bj")))})};
kY.prototype.canProvideFallbackResponse=function(){return!0};
kY.prototype.localFallbackInnertubeResponse=function(){var D=this;return _.M(function(v){return v.return(S2d(D))})};
var S2d=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(Gk(D.JSC$17734_upliftPromise,D.store),2);v=a.yieldResult;h={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Zwu(v)]}}}};return a.return(Jr2(D,h))})},Jr2=function(D,v){var h,a;
return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$17734_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return h=Q.yieldResult,Q.yield(P7(h),3);a=Q.yieldResult;return Q.return({responseContext:{},contents:v,topbar:a})})};var ZS=function(D,v,h){this.JSC$17741_upliftPromise=D;this.store=v;this.JSC$17741_persistentStorePromiseAccessor=h};
ZS.prototype.shouldPreferLocalResponse=function(D){var v=D.videoId;return v&&BeI(this.store.getState().entities,v)&&cp7(this.store.getState().entities,v)?Eci(this.store.getState().entities,D.playlistId):!1};
ZS.prototype.localInnertubeResponse=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1)return(h=D.videoId)?Q.yield(v.JSC$17741_upliftPromise,2):Q.return(Promise.reject(Error("cj")));if(Q.nextAddress!=3)return Q.yield(psr(v,D,h),3);a=Q.yieldResult;return Q.return(lbm(v,a,h))})};
ZS.prototype.canProvideFallbackResponse=function(D){return D.videoId?!0:!1};
ZS.prototype.localFallbackInnertubeResponse=function(D){var v=this,h,a,Q,G;return _.M(function(x){switch(x.nextAddress){case 1:return(h=D.videoId)?x.yield(v.JSC$17741_upliftPromise,2):x.return(Promise.reject(Error("cj")));case 2:return x.yield(psr(v,D,h),3);case 3:a=x.yieldResult;if(qD(v.store.getState().entities,h)){x.jumpTo(4);break}return x.yield(Gk(v.JSC$17741_upliftPromise,v.store),5);case 5:return Q=x.yieldResult,x.return(NrX(a,Q));case 4:return BeI(v.store.getState().entities,h)&&cp7(v.store.getState().entities,
h)?x.return(lbm(v,a,h)):(G={title:_.MD(_.p1("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:cRu()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},x.return(NrX(a,G)))}})};
var psr=function(D,v,h){var a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return a=v.playlistId,Q=_.xZ(h,a),C.yield(D.JSC$17741_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return G=C.yieldResult,C.yield(P7(G),3);x=C.yieldResult;f={responseContext:{},currentVideoEndpoint:Q,topbar:x};return C.return(f)})},lbm=function(D,v,h){if(D=qD(D.store.getState().entities,h)){var a;
h=D.videoEntity;var Q,G={title:fG(h.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.CG((a=h.localizedStrings)==null?void 0:a.viewCount),viewCount:_.CG((Q=h.localizedStrings)==null?void 0:Q.viewCount)}}};h.publishedTimestampMillis&&(G.dateText=_.CG(rUq(new Date(Number(h.publishedTimestampMillis)))));a={videoPrimaryInfoRenderer:G};Q=D.videoEntity;D=D.channelEntity;D={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:fG(_.p1("SHOW_MORE",void 0,"Show more")),
showLessText:fG(_.p1("SHOW_LESS",void 0,"Show less")),description:Q.formattedDescription,owner:{videoOwnerRenderer:{title:fG(D.title),thumbnail:D.avatar}}}};v.contents={twoColumnWatchNextResults:{results:{results:{contents:[a,D]}}}}}return v},NrX=function(D,v){D.contents={singleColumnWatchNextResults:{results:{results:{contents:[Zwu(v)]}}}};
return D};var S6=function(D,v,h){this.JSC$17746_upliftPromise=D;this.store=v;this.JSC$17746_persistentStorePromiseAccessor=h};
S6.prototype.shouldPreferLocalResponse=function(){return!1};
S6.prototype.localInnertubeResponse=function(){return _.M(function(D){return D.return(Promise.reject(Error("dj")))})};
S6.prototype.canProvideFallbackResponse=function(){return!0};
S6.prototype.localFallbackInnertubeResponse=function(){var D=this,v,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return G.yield(D.JSC$17746_persistentStorePromiseAccessor(),2);case 2:return v=G.yieldResult,G.yield(P7(v),3);case 3:return h=G.yieldResult,a={responseContext:{},topbar:h},G.yield(D.JSC$17746_upliftPromise,4);case 4:return G.yield(Gk(D.JSC$17746_upliftPromise,D.store),5);case 5:return Q=G.yieldResult,a.watchStatus={backgroundPromoRenderer:Q},G.return(a)}})};_.Y2m=new _.Uj("ENDPOINT_MAP");var BrX=function(){var D=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return D.sequenceMap}}},koJ=function(D,v,h){var a,Q=(a=v.config)==null?void 0:a.sequenceStrategy;
if(!Q)return h();D.sequenceMap.has(Q.sequenceKey)||D.sequenceMap.set(Q.sequenceKey,[]);D=D.sequenceMap.get(Q.sequenceKey);switch(Q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return crX(D,v,h);case "REQUEST_SEQUENCE_TYPE_REPLACE":return XsI(D,v,h);default:throw new _.XH("Request could not be sequenced",v);}},crX=function(D,v,h){var a,Q,G;
return _.M(function(x){D.length>0?(Q=D[D.length-1],a=Q.responsePromise.then(function(){return h()})):a=h();
G={request:v,responsePromise:a};D.push(G);Ard(D,G);return x.return(G.responsePromise)})},XsI=function(D,v,h){h=h();
if(D.length>0)for(var a=_.P(D),Q=a.next();!Q.done;Q=a.next())Q.value.responsePromise=h;var G={request:v,responsePromise:h};D.push(G);Ard(D,G);return Promise.resolve().then(function(){return D.indexOf(G)>0?G.responsePromise.then(function(x){return Object.assign({},x,{sequenceMetaData:{skipProcessing:!0}})}):G.responsePromise})},Ard=function(D,v){v.responsePromise.then(function(){var h=D.indexOf(v);
h>-1&&D.splice(h,1)})};var q2U=new _.Uj("REQUEST_SEQUENCING");var Ik=function(){};
_.J(Ik,HC);Ik.prototype.getApiPaths=function(){return[]};
Ik.prototype.getExtension=function(D){return _.k(D,PnJ)};
Ik.prototype.JSC$13119_buildRequest=function(D,v){D.recaptchaToken=v.recaptchaToken};
Ik.prototype.getApiUrl=function(){return"/das_captcha"};var g8=function(){};
_.J(g8,HC);g8.prototype.getApiPaths=function(){return BGM};
g8.prototype.getExtension=function(D){return _.k(D,sIM)};
g8.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.createBackstagePostParams&&(D.createBackstagePostParams=v.createBackstagePostParams);h.comment_text&&(D.commentText=h.comment_text);if(h.attached_video_id)D.videoAttachment={videoId:h.attached_video_id};else if(h.image_poll_options)D.pollAttachmentData={options:h.image_poll_options};else if(h.poll_options)D.pollAttachment={choices:h.poll_options};else if(h.quiz_options)D.quizAttachmentData={options:h.quiz_options};else if(h.image_blob_id)D.imageAttachment=
{encryptedBlobId:h.image_blob_id},h.source_video_id&&(D.imageAttachment.sourceExternalVideoId=h.source_video_id),h.image_preview_coordinates&&(D.imageAttachment.previewCoordinates=JSON.parse(h.image_preview_coordinates));else if(h.images_data)D.imagesAttachment={imagesData:h.images_data};else if(h.clip_external_video_id!==void 0||h.clip_offset_ms!==void 0||h.clip_duration_ms!==void 0){var a,Q,G,x,f;D.clipAttachment={externalVideoId:(G=h.clip_external_video_id)!=null?G:"",offsetMs:(x=(a=h.clip_offset_ms)==
null?void 0:a.toString())!=null?x:"",durationMs:(f=(Q=h.clip_duration_ms)==null?void 0:Q.toString())!=null?f:""}}else h.shared_post_id&&(D.sharedPostAttachment={postId:h.shared_post_id});h.tagged_video_id&&(D.postCreationData={taggedVideoId:h.tagged_video_id});h.access_restrictions&&(typeof h.access_restrictions==="number"&&(v=h.access_restrictions,D.accessRestrictions={restriction:v!==1&&v===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof h.access_restrictions==="string"&&
(D.accessRestrictionsParams=h.access_restrictions));h.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=h.scheduled_publish_time_sec.toString())};var k4=function(){};
_.J(k4,HC);k4.prototype.getApiPaths=function(){return j1b};
k4.prototype.getExtension=function(D){return _.k(D,lEy)};
k4.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.decorateMessageParams&&(D.params=v.decorateMessageParams);h.text&&(D.text=h.text)};var ST=function(){};
_.J(ST,HC);ST.prototype.getApiPaths=function(){return ae9};
ST.prototype.getExtension=function(D){return _.k(D,mEF)};
ST.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;h.video_id&&(D.videoId=h.video_id)};var Jz=function(){};
_.J(Jz,HC);Jz.prototype.getApiPaths=function(){return P6R};
Jz.prototype.getExtension=function(D){return _.k(D,_.kE)};
Jz.prototype.JSC$13119_buildRequest=function(D,v,h){h.suggestions_query&&(D.input=h.suggestions_query)};var pv=function(){};
_.J(pv,HC);pv.prototype.getApiPaths=function(){return wMR};
pv.prototype.getExtension=function(D){return _.k(D,HD9)};
pv.prototype.JSC$13119_buildRequest=function(D,v,h){h.comment_text!==void 0&&(D.commentText=h.comment_text);h.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=h.scheduled_publish_time_sec.toString());D.updateBackstagePostParams=v.updateBackstagePostParams};var ld=function(){};
_.J(ld,HC);ld.prototype.getApiPaths=function(){return uj};
ld.prototype.getExtension=function(D){return _.k(D,_.iL)};
ld.prototype.JSC$13119_buildRequest=function(D,v,h){h.formData&&(D.formData=h.formData);v.token?D.continuation=v.token:v.continuationTokenKey&&(h=_.Gb().getState(),v=_.gR(h.entities,"continuationTokenEntity",v.continuationTokenKey))&&(D.continuation=String(v.continuationToken))};
var b3Z=function(){};
_.J(b3Z,HC);_.V=b3Z.prototype;_.V.getApiPaths=function(){return uj};
_.V.getExtension=function(D){return _.k(D,_.YV)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$13126_getStoreKey=function(D){if((D=this.getExtension(D))&&D.browseId){var v={browseId:D.browseId};D.browseEndpointContextSupportedConfigs&&(v.browseEndpointContextSupportedConfigs=JSON.stringify(D.browseEndpointContextSupportedConfigs));D.params&&(v.params=D.params);D.query&&(v.query=D.query);return _.vU("browse",v)}};
_.V.JSC$13119_buildRequest=function(D,v,h){v.browseId&&(D.browseId=v.browseId);v.params&&(D.params=v.params);v.query&&(D.query=v.query);h.formData?D.formData=h.formData:v.formData&&(D.formData=v.formData);v.browseId==="FEsubscriptions"&&_.YE().getFlag(155)&&(D.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");v.browseId==="SPaccount_playback"&&(h=_.YE(),D.formData||(D.formData={}),D.formData.accountSettingsFormData={flagCaptionsDefaultOff:h.getFlag(65),flagAutoCaptionsDefaultOn:h.getFlag(66),
flagDisableInlinePreview:h.getFlag(186),flagAudioDescriptionDefaultOn:h.getFlag(198)});if(v.browseId==="FEwhat_to_watch"){h=_.YE();var a=h.getFlag(196);h.getFlag(197)&&(D.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:a}}})}v.browseId==="FEwhat_to_watch"&&(v=_.YE().getFlag(186),D.inlineSettingStatus=v?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.V.getRequestConfig=function(D,v){v=v===void 0?{}:v;var h={};if(D=this.JSC$13126_getStoreKey(D,v))h.storeStrategy={storeKey:D,disableCache:v.disableCache};_.g("web_log_browse_ticks_ks")||(h.requestTick="br_s",h.responseTick="br_r");return h};var N3=function(){};
_.J(N3,HC);N3.prototype.getApiPaths=function(){return S0F};
N3.prototype.getExtension=function(D){return _.k(D,FJF)};
N3.prototype.JSC$13119_buildRequest=function(D,v,h){D.legacyYoutubeChannelUsername=h.legacyYouTubeChannelUsername||"";D.legacyYoutubeChannelPassword=h.legacyYouTubeChannelPassword||""};var Y4=function(){};
_.J(Y4,HC);Y4.prototype.getApiPaths=function(){return cqs};
Y4.prototype.getExtension=function(D){return _.k(D,T9F)};
Y4.prototype.JSC$13119_buildRequest=function(D,v,h){h.recaptcha_response_token&&(D.recaptchaResponseToken=h.recaptcha_response_token);h.channel_id&&(D.channelId=h.channel_id)};var Bx=function(){};
_.J(Bx,HC);Bx.prototype.getApiPaths=function(){return ebJ};
Bx.prototype.getExtension=function(D){return _.k(D,uI9)};
Bx.prototype.JSC$13119_buildRequest=function(D,v,h){v.externalChannelId&&(D.externalChannelId=v.externalChannelId);h.handle&&(D.handleUpdate={handle:h.handle},v.handleEditSource&&(D.handleUpdate.handleEditSource=v.handleEditSource))};var cx=function(){};
_.J(cx,HC);cx.prototype.getApiPaths=function(){return TuJ};
cx.prototype.getExtension=function(D){return _.k(D,gNJ)};
cx.prototype.JSC$13119_buildRequest=function(D,v,h){v.request&&(D.channelId=v.request.channelId);var a;if(h==null?0:(a=h.uploadDefaults)==null?0:a.emojiReactionSet)D.uploadDefaultsRequest||(D.uploadDefaultsRequest={}),D.uploadDefaultsRequest.emojiReactionSet=h.uploadDefaults.emojiReactionSet};var XU=function(){};
_.J(XU,HC);XU.prototype.getApiPaths=function(){return WY9};
XU.prototype.getExtension=function(D){return _.k(D,RD$)};
XU.prototype.JSC$13119_buildRequest=function(D,v,h){v.externalChannelId&&(D.externalChannelId=v.externalChannelId);v.channelHandleEntityKey&&(D.channelHandleEntityKey=v.channelHandleEntityKey);v.handleEditSource&&(D.handleEditSource=v.handleEditSource);h.handle?D.handle=h.handle:h.name&&(D.name=h.name)};var Az=function(){};
_.J(Az,HC);Az.prototype.getApiPaths=function(){return lZb};
Az.prototype.getExtension=function(D){return _.k(D,VkF)};
Az.prototype.JSC$13119_buildRequest=function(D,v){v.actions?D.actions=v.actions:v.action&&(D.actions=[v.action])};var q3=function(){};
_.J(q3,HC);q3.prototype.getApiPaths=function(){return NGF};
q3.prototype.getExtension=function(D){return _.k(D,_.iL)};
q3.prototype.JSC$13119_buildRequest=function(D,v){v.token&&(D.continuation=v.token)};var bd=function(){};
_.J(bd,HC);bd.prototype.getApiPaths=function(){return v3b};
bd.prototype.getExtension=function(D){return _.k(D,_.iL)};
bd.prototype.JSC$13119_buildRequest=function(D,v){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";v.token&&(D.fetchCommentsParams={continuation:v.token})};var d8=function(){};
_.J(d8,HC);d8.prototype.getApiPaths=function(){return A9R};
d8.prototype.getExtension=function(D){return _.k(D,G4R)};
d8.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.createReplyParams&&(D.createReplyParams=v.createReplyParams);v.commentText&&(D.commentText=_.$V(v.commentText));h.comment_text&&(D.commentText=h.comment_text);h.image_blob_id&&(D.imageAttachment={encryptedBlobId:h.image_blob_id});h.botguard_response&&(D.botguardResponse=h.botguard_response)};
_.GT.Object.defineProperties(d8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jT=function(){};
_.J(jT,HC);jT.prototype.getApiPaths=function(){return q0y};
jT.prototype.getExtension=function(D){return _.k(D,_.QlF)};
jT.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.createCommentParams&&(D.createCommentParams=v.createCommentParams);v.commentText&&(D.commentText=_.$V(v.commentText));v.videoPositionMention&&(D.videoPositionMention=v.videoPositionMention);v.sources&&(D.sources=v.sources);h.comment_text&&(D.commentText=h.comment_text);h.attached_video_id?D.videoAttachment={videoId:h.attached_video_id}:h.poll_options?D.pollAttachment={choices:h.poll_options}:h.image_blob_id?D.imageAttachment=
{encryptedBlobId:h.image_blob_id}:h.shared_post_id&&(D.sharedPostAttachment={postId:h.shared_post_id});h.access_restrictions&&typeof h.access_restrictions==="number"&&(v=h.access_restrictions,D.accessRestrictions={restriction:v!==1&&v===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});h.botguard_response&&(D.botguardResponse=h.botguard_response)};
_.GT.Object.defineProperties(jT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sf=function(){};
_.J(sf,HC);sf.prototype.getApiPaths=function(){return n3p};
sf.prototype.getExtension=function(D){return _.k(D,xy4)};
sf.prototype.JSC$13119_buildRequest=function(D,v,h){v.commentText&&(D.replyText=_.$V(v.commentText));h.comment_text&&(D.replyText=h.comment_text);D.updateReplyParams=v.updateReplyParams};
_.GT.Object.defineProperties(sf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ml=function(){};
_.J(ml,HC);ml.prototype.getApiPaths=function(){return On4};
ml.prototype.getExtension=function(D){return _.k(D,PeM)};
ml.prototype.JSC$13119_buildRequest=function(D,v,h){v.commentText&&(D.commentText=_.$V(v.commentText));h.comment_text&&(D.commentText=h.comment_text);D.updateCommentParams=v.updateCommentParams};
_.GT.Object.defineProperties(ml.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hx=function(){};
_.J(Hx,HC);Hx.prototype.getApiPaths=function(){return KYs};
Hx.prototype.getExtension=function(D){return _.k(D,LDm)};
Hx.prototype.JSC$13119_buildRequest=function(D,v){v.settings&&(D.settings=v.settings)};var yc=function(){};
_.J(yc,HC);yc.prototype.getApiPaths=function(){return Re9};
yc.prototype.getExtension=function(D){return _.k(D,iDR)};
yc.prototype.JSC$13119_buildRequest=function(D,v){v.channelCreationToken&&(D.channelCreationToken=v.channelCreationToken);v.source&&(D.source=v.source)};var w8=function(){};
_.J(w8,HC);w8.prototype.getApiPaths=function(){return X04};
w8.prototype.getExtension=function(D){return _.k(D,rJy)};
w8.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;if(h.name&&(h.given_name||h.family_name))D=new _.XH("channel creation cannot set both GAIA and YouTube names",v),_.mV(D);else{if(v.zeroStepChannelCreationParams){if(!h.comment_text){D=new _.XH("zero_step_create_comment_params but no zero_step_texts",v);_.mV(D);return}D.zeroStepChannelCreationParams=v.zeroStepChannelCreationParams;D.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
h.comment_text,h.botguard_response&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=h.botguard_response))}D.channelCreationToken=v.channelCreationToken;h.given_name&&(D.givenName=h.given_name);h.family_name&&(D.familyName=h.family_name);v.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(D.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(h.name||h.handle||h.avatar_url||h.encryptedBlobId||h.isNameChanged!==void 0||h.isHandleChanged!==void 0||h.isDefaultProfilePhoto!==
void 0||h.obakeImageSource)D.overrideChannelCreationParams={},h.name&&(D.overrideChannelCreationParams.name=h.name),h.handle&&(D.overrideChannelCreationParams.handle=h.handle),h.avatar_url&&(D.overrideChannelCreationParams.avatarUrl=h.avatar_url),h.encryptedBlobId&&(D.overrideChannelCreationParams.blobEncryptionId=h.encryptedBlobId),h.enableIdentityForAllChannelCreationDialog&&(h.encryptedBlobId?D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
h.isDefaultProfilePhoto!==void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=h.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),h.isNameChanged!==void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationNameTag=h.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),h.isHandleChanged!==
void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=h.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),h.obakeImageSource&&(D.overrideChannelCreationParams.obakeImageSourceType=h.obakeImageSource))}};var eT=function(){};
_.J(eT,HC);eT.prototype.getApiPaths=function(D){return(D=this.getExtension(D))&&D.status==="DISLIKE"?y94:D&&D.status==="INDIFFERENT"?pMs:o3y};
eT.prototype.getExtension=function(D){return _.k(D,_.nS)};
eT.prototype.JSC$13119_buildRequest=function(D,v){v.target&&(D.target=v.target);if(v=this.getParams(v))D.params=v};
eT.prototype.getParams=function(D){switch(D==null?void 0:D.status){case "DISLIKE":return D.dislikeParams;case "INDIFFERENT":return D.removeLikeParams;default:return D==null?void 0:D.likeParams}};var nv=function(){};
_.J(nv,HC);nv.prototype.getApiPaths=function(){return d49};
nv.prototype.getExtension=function(D){return _.k(D,zFb)};
nv.prototype.JSC$13119_buildRequest=function(D,v){v.settingItemId&&(D.settingItemId=v.settingItemId);v.stringValue!=null&&v.stringValue!==void 0?D.newValue={stringValue:v.stringValue}:v.intValue?D.newValue={intValue:v.intValue}:v.boolValue!==null&&v.boolValue!==void 0?D.newValue={boolValue:v.boolValue}:(D=new _.XH("Unknown value type for SetSettingEndpoint.",v),_.mV(D))};var Of=function(){};
_.J(Of,HC);Of.prototype.getApiPaths=function(){return m4m};
Of.prototype.getExtension=function(D){return _.k(D,AUp)||void 0};
Of.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.channelIds&&(D.channelIds=v.channelIds);v.siloName&&(D.siloName=v.siloName);v.params&&(D.params=v.params);h.botguardResponse&&(D.botguardResponse=h.botguardResponse);h.feature&&(D.clientFeature=h.feature)};
_.GT.Object.defineProperties(Of.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Kv=function(){};
_.J(Kv,HC);Kv.prototype.getApiPaths=function(){return yqJ};
Kv.prototype.getExtension=function(D){return _.k(D,Uyy)||void 0};
Kv.prototype.JSC$13119_buildRequest=function(D,v){v.channelIds&&(D.channelIds=v.channelIds);v.siloName&&(D.siloName=v.siloName);v.params&&(D.params=v.params)};
_.GT.Object.defineProperties(Kv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var To=function(D){this.shareClientParamsProvider=D};
_.J(To,HC);To.prototype.getApiPaths=function(){return JML};
To.prototype.getExtension=function(D){return _.k(D,nMF)||_.k(D,_.Ors)||_.k(D,e_F)};
To.prototype.JSC$13119_buildRequest=function(D,v){v.serializedShareEntity&&(D.serializedSharedEntity=v.serializedShareEntity);if(v.clientParamIdentifier){var h;if((h=this.shareClientParamsProvider)==null?0:h.clientParams.has(v.clientParamIdentifier)){h=this.shareClientParamsProvider;v=v.clientParamIdentifier;var a=h.clientParams.get(v);a&&h.clientParams.delete(v);D.clientParams=a}}};
To[MM]=[ss4];var Rk=function(){};
_.J(Rk,HC);Rk.prototype.getApiPaths=function(){return IZy};
Rk.prototype.getExtension=function(D){return _.k(D,JeJ)};
Rk.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var id=function(){};
_.J(id,HC);id.prototype.getApiPaths=function(){return w0y};
id.prototype.getExtension=function(D){return _.k(D,g9b)};
id.prototype.JSC$13119_buildRequest=function(D,v){v.dismissal&&(D.items=[v.dismissal])};
_.GT.Object.defineProperties(id.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wx=function(){};
_.J(Wx,HC);Wx.prototype.getApiPaths=function(){return fey};
Wx.prototype.getExtension=function(D){return _.k(D,_.bp)||void 0};
Wx.prototype.JSC$13119_buildRequest=function(D,v,h){D.feedbackTokens=[];v.feedbackToken&&D.feedbackTokens.push(v.feedbackToken);if(v=v.cpn||h.cpn)D.feedbackContext={cpn:v};D.isFeedbackTokenUnencrypted=!!h.is_feedback_token_unencrypted;D.shouldMerge=!1;h.extra_feedback_tokens&&(D.shouldMerge=!0,D.feedbackTokens=D.feedbackTokens.concat(h.extra_feedback_tokens))};
_.GT.Object.defineProperties(Wx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tz=function(){};
_.J(tz,HC);tz.prototype.getApiPaths=function(){return fey};
tz.prototype.getExtension=function(D){return _.k(D,_.kE)};
tz.prototype.JSC$13119_buildRequest=function(D,v,h){h.feedback_tokens&&(D.feedbackTokens=h.feedback_tokens,D.shouldMerge=!0)};
_.GT.Object.defineProperties(tz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var r8=function(){};
_.J(r8,HC);r8.prototype.getApiPaths=function(){return fey};
r8.prototype.getExtension=function(D){return _.k(D,YbL)};
r8.prototype.JSC$13119_buildRequest=function(D,v){v.undoToken&&(D.feedbackTokens=[v.undoToken]);v.isUndoTokenUnencrypted&&(D.isFeedbackTokenUnencrypted=v.isUndoTokenUnencrypted)};
_.GT.Object.defineProperties(r8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ud=function(){};
_.J(ud,HC);ud.prototype.getApiPaths=function(){return tWF};
ud.prototype.getExtension=function(D){return _.k(D,ZyR)};
ud.prototype.JSC$13119_buildRequest=function(D,v){v.nextEndpoint&&_.k(v.nextEndpoint,_.RB)?D.nextEndpoint={urlEndpoint:_.k(v.nextEndpoint,_.RB)}:v.nextEndpoint&&_.k(v.nextEndpoint,_.hP)&&(D.nextEndpoint={watchEndpoint:_.k(v.nextEndpoint,_.hP)});v.setRacy&&(D.setRacy=v.setRacy);v.setControvercy&&(D.setControvercy=v.setControvercy)};var D1=function(D){this.JSC$17927_storeWithEntities=D};
_.J(D1,HC);D1.prototype.getApiPaths=function(){return ni4};
D1.prototype.getExtension=function(D){return _.k(D,wwR)};
D1.prototype.JSC$13119_buildRequest=function(D,v){v.flowId&&(D.flowId=v.flowId);v.targetId&&(D.targetId=v.targetId);v.continuation&&(D.continuation=v.continuation);var h=v.flowStateEntityKey;if(v.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&h&&this.JSC$17927_storeWithEntities){var a;if(v=(a=this.JSC$17927_storeWithEntities.getState())==null?void 0:a.entities)if(a=_.LG(h).entityType,a=_.gR(v,a,h))D.flowState=a,D.flowStateEntityKey=h}};
_.GT.Object.defineProperties(D1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
D1[MM]=[xY];var dIS=function(){};
_.J(dIS,HC);_.V=dIS.prototype;_.V.getApiPaths=function(){return MWF};
_.V.JSC$13126_getStoreKey=function(){return _.vU("guide")};
_.V.getRequestConfig=function(){var D=this.JSC$13126_getStoreKey(),v;D&&(v={storeStrategy:{storeKey:D}});return v};
_.V.isNavigationCommand=function(){return!0};
_.V.getExtension=function(D){return _.k(D,_.kE)};
_.V.JSC$13119_buildRequest=function(D){D.fetchLiveState=!0};var vB=function(){};
_.J(vB,HC);vB.prototype.getApiPaths=function(){return J9y};
vB.prototype.getExtension=function(D){return _.k(D,hF$)};
vB.prototype.JSC$13119_buildRequest=function(){};var hS=function(){};
_.J(hS,HC);hS.prototype.getApiPaths=function(){return p0y};
hS.prototype.getExtension=function(D){return _.k(D,aLR)};
hS.prototype.JSC$13119_buildRequest=function(){};var aF=function(){};
_.J(aF,HC);aF.prototype.getApiPaths=function(){return Eim};
aF.prototype.getExtension=function(D){return _.k(D,_.iL)};
aF.prototype.JSC$13119_buildRequest=function(D,v){v.token&&(D.continuation=v.token);var h,a;D==null||(h=D.context)==null||(a=h.user)==null||delete a.onBehalfOfUser};
aF.prototype.getRequestConfig=function(D){var v={},h;if(((h=this.getExtension(D))==null?void 0:h.sessionIndex)!==void 0){var a;v={authStrategy:{sessionIndex:(a=this.getExtension(D))==null?void 0:a.sessionIndex}}}return v};var $g=function(){};
_.J($g,HC);$g.prototype.JSC$13119_getRequest=function(D){var v=this.getExtension(D),h=D="";if(v==null?0:v.popup)D="true";if(v==null?0:v.disableSignout)h="true";v={};return{input:"/getAccountSwitcherEndpoint",requestShell:DD("/getAccountSwitcherEndpoint","GET",(v["X-YouTube-Delegation-Context"]=_.eA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),v["X-YouTube-Account-Switcher-Popup"]=D,v["X-YouTube-Account-Switcher-Disable-Signout"]=h,v)),innerTubeRequest:{}}};
$g.prototype.getApiPaths=function(){return[]};
$g.prototype.getExtension=function(D){return _.k(D,_.o8q)};
$g.prototype.JSC$13119_buildRequest=function(){};var Qr=function(){};
_.J(Qr,HC);Qr.prototype.JSC$13119_getRequest=function(D){var v="/cross_account_channel_transfer";(D=this.getExtension(D))&&(v=H1o(v,{target_session:D.targetSessionIndex,source_rapt:D.sourceRapt,rapt:D.targetRapt}));return{input:v,requestShell:DD(v,"GET"),innerTubeRequest:{}}};
Qr.prototype.getApiPaths=function(){return[]};
Qr.prototype.getExtension=function(D){return _.k(D,FF1)};
Qr.prototype.JSC$13119_buildRequest=function(){};var G5=function(){};
_.J(G5,HC);G5.prototype.getApiPaths=function(){return OCM};
G5.prototype.isNavigationCommand=function(){return!0};
G5.prototype.getExtension=function(D){return _.k(D,_.kE)};
G5.prototype.JSC$13119_buildRequest=function(D){var v=_.YE().get("gsml","");v&&(D.safetyModeLockerObfuscatedGaiaId=v);D.userInterfaceTheme=_.sL(!0);_.mc()?D.deviceTheme="DEVICE_THEME_SELECTED":_.Q8q()?D.deviceTheme="DEVICE_THEME_SUPPORTED":D.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Vr=function(){};
_.J(Vr,HC);Vr.prototype.getApiPaths=function(){return Eim};
Vr.prototype.getExtension=function(D){return _.k(D,zDm)};
Vr.prototype.JSC$13119_buildRequest=function(D,v){if(v&&v.requestType&&(D.requestType=v.requestType,v.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||v.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var h=v.nextUrl;h&&(_.wUi(h)||Gi(h))&&(D.nextNavendpoint={urlEndpoint:{url:h}})}v&&v.channelSwitcherQuery&&(D.channelSwitcherQuery=v.channelSwitcherQuery);v&&v.triggerChannelCreation&&(D.triggerChannelCreation=v.triggerChannelCreation);var a;if(v==null?0:(a=v.contentOwnerConfig)==
null?0:a.externalContentOwnerId)D.contentOwnerConfig=v.contentOwnerConfig;D.callCircumstance=v&&v.requestType&&v.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Q,G;v=D==null?void 0:(Q=D.context)==null?void 0:(G=Q.user)==null?void 0:G.onBehalfOfUser;if(v!==void 0){D.obfuscatedSelectedGaiaId=v;var x,f;D==null||(x=D.context)==null||(f=x.user)==null||delete f.onBehalfOfUser}var C,U;if(Q=D==null?void 0:(C=D.context)==null?void 0:(U=C.user)==null?
void 0:U.serializedDelegationContext)D.selectedSerializedDelegationContext=Q};var PB=function(){};
_.J(PB,HC);PB.prototype.getApiPaths=function(){return gi4};
PB.prototype.getExtension=function(D){return _.k(D,K4b)};
PB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var xg=function(){};
_.J(xg,HC);xg.prototype.getApiPaths=function(){return c9M};
xg.prototype.getExtension=function(D){return _.k(D,_.QdR)};
xg.prototype.JSC$13119_buildRequest=function(D,v){if(v=v.createBroadcastRequest)D.useMasks=v.useMasks,D.broadcastType=v.broadcastType,D.broadcastSource=v.broadcastSource,D.broadcastMetadata=v.broadcastMetadata,D.broadcastMetadataMask=v.broadcastMetadataMask,D.videoMetadata=v.videoMetadata,D.videoMetadataMask=v.videoMetadataMask,D.liveChatSettingsUpdate=v.liveChatSettingsUpdate,D.liveChatSettingsUpdateMask=v.liveChatSettingsUpdateMask,D.cloneVideoId=v.cloneVideoId,D.cloneWithOverrides=v.cloneWithOverrides,
D.targetEntity=v.targetEntity,D.scheduledRedirectMetadata=v.scheduledRedirectMetadata};var Mu=function(){};
_.J(Mu,HC);Mu.prototype.getApiPaths=function(){return bC1};
Mu.prototype.getExtension=function(D){return _.k(D,typ)};
Mu.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.params&&(D.params=v.params);h.questionText&&(D.questionText=h.questionText);h.optionText&&h.optionText.length>0&&(D.optionText=h.optionText)};var fB=function(){};
_.J(fB,HC);fB.prototype.getApiPaths=function(){return s1J};
fB.prototype.getExtension=function(D){return _.k(D,i69)};
fB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var CB=function(){};
_.J(CB,HC);CB.prototype.getApiPaths=function(){return W_4};
CB.prototype.getExtension=function(D){return _.k(D,O6s)};
CB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var oF=function(){};
_.J(oF,HC);oF.prototype.getApiPaths=function(){return r9R};
oF.prototype.getExtension=function(D){return _.k(D,KG4)};
oF.prototype.JSC$13119_buildRequest=function(D,v,h){v.params&&(D.params=v.params);v.continuation&&(D.continuation=v.continuation);h.currentPlayerState&&h.currentPlayerState.playerOffsetMs&&(D.currentPlayerState={playerOffsetMs:h.currentPlayerState.playerOffsetMs.toString()})};var F5=function(){};
_.J(F5,HC);F5.prototype.getApiPaths=function(){return ugM};
F5.prototype.getExtension=function(D){return _.k(D,nsy)};
F5.prototype.JSC$13119_buildRequest=function(D,v,h){v.params&&(D.params=v.params);h.continuation&&(D.continuation=h.continuation);"hidden"in h&&(D.webClientInfo={isDocumentHidden:h.hidden});h.isInvalidationTimeoutRequest&&(D.isInvalidationTimeoutRequest=h.isInvalidationTimeoutRequest);h.invalidationPayload&&(v=eh1(_.DJ(VH(h.invalidationPayload))),D.invalidationPayloadLastPublishAtUsec=mv(v,2));h.reloadActionPanel&&(D.reloadActionPanel=h.reloadActionPanel);h.fullReload&&(D.fullReload=h.fullReload);
h.currentPlayerState&&(D.currentPlayerState=h.currentPlayerState)};var z5=function(){};
_.J(z5,HC);z5.prototype.getApiPaths=function(){return FY4};
z5.prototype.getExtension=function(D){return _.k(D,WGb)};
z5.prototype.JSC$13119_buildRequest=function(D,v){D.params=v.params};var Ul=function(){};
_.J(Ul,HC);Ul.prototype.getApiPaths=function(){return tf1};
Ul.prototype.getExtension=function(D){return _.k(D,Ply)};
Ul.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var LB=function(){};
_.J(LB,HC);LB.prototype.getApiPaths=function(){return D4b};
LB.prototype.getExtension=function(D){return _.k(D,x8$)};
LB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var Z1=function(){};
_.J(Z1,HC);Z1.prototype.getApiPaths=function(){return zbJ};
Z1.prototype.getExtension=function(D){return _.k(D,rT$)};
Z1.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var lB=function(){};
_.J(lB,HC);lB.prototype.getApiPaths=function(){return LYp};
lB.prototype.getExtension=function(D){return _.k(D,u2m)};
lB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var Nu=function(){};
_.J(Nu,HC);Nu.prototype.getApiPaths=function(){return leR};
Nu.prototype.getExtension=function(D){return _.k(D,irt)};
Nu.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var Yg=function(){};
_.J(Yg,HC);Yg.prototype.getApiPaths=function(){return qty};
Yg.prototype.getExtension=function(D){return _.k(D,_.D9F)};
Yg.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.params&&(D.params=v.params);h.client_message_id&&(D.clientMessageId=h.client_message_id);h.recaptcha_token&&(D.recaptchaToken=h.recaptcha_token);h.rich_message&&h.rich_message.text_segments?(v=h.rich_message.text_segments.map(function(a){var Q={};a.text&&(Q.text=a.text);a.emoji_id&&(Q.emojiId=a.emoji_id);return Q}),D.richMessage={textSegments:v}):h.message&&(D.message=h.message);
h.currentPlayerState&&(D.currentPlayerState=h.currentPlayerState)};var BB=function(){};
_.J(BB,HC);BB.prototype.getApiPaths=function(){return bnp};
BB.prototype.getExtension=function(D){return _.k(D,vFM)};
BB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var cB=function(){};
_.J(cB,HC);cB.prototype.getApiPaths=function(){return HnJ};
cB.prototype.getExtension=function(D){return _.k(D,aVM)};
cB.prototype.JSC$13119_buildRequest=function(D,v,h){v.isUserInitiated&&(D.isUserInitiated=v.isUserInitiated);v.initiationSource&&(D.initiationSource=v.initiationSource);h.locationInfo&&(D.context.client.locationInfo=h.locationInfo)};var X5=function(){};
_.J(X5,HC);X5.prototype.getApiPaths=function(){return U4s};
X5.prototype.getExtension=function(D){return _.k(D,GXt)};
X5.prototype.JSC$13119_buildRequest=function(D,v,h){v.metadataUpdateRequest&&(v=v.metadataUpdateRequest,D.encryptedVideoId=v.encryptedVideoId,v.liveChat&&(v=v.liveChat,D.liveChat||(D.liveChat={}),v.performAsExternalChannelId&&(D.liveChat.performAsExternalChannelId=v.performAsExternalChannelId),v.source&&(D.liveChat.source=v.source)));var a;if(h==null?0:(a=h.liveChat)==null?0:a.liveChatSettings)D.liveChat||(D.liveChat={}),h=h.liveChat.liveChatSettings,D.liveChat.newLiveChatSettings=h,D.liveChat.newLiveChatSettingsMask||
(D.liveChat.newLiveChatSettingsMask={}),h.emojiReactionSet&&(D.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var AS=function(){};
_.J(AS,HC);AS.prototype.getApiPaths=function(){return inF};
AS.prototype.getExtension=function(D){return _.k(D,_.Lq4)};
AS.prototype.JSC$13119_buildRequest=function(D,v,h){h.continuation?D.continuation=h.continuation:v.videoId&&(D.videoId=v.videoId);h.clientParams&&(D.clientParams=h.clientParams)};var qu=function(){};
_.J(qu,HC);qu.prototype.getApiPaths=function(){return v3b};
qu.prototype.getExtension=function(D){return _.k(D,_.aA)};
qu.prototype.JSC$13119_buildRequest=function(D,v){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";D.fetchCommentsParams={};v.videoId&&(D.fetchCommentsParams.encryptedVideoId=v.videoId);v.postId&&(D.fetchCommentsParams.postId=v.postId);v.externalChannelId&&(D.fetchCommentsParams.externalChannelId=v.externalChannelId);v.linkedCommentId&&(D.fetchCommentsParams.linkedCommentId=v.linkedCommentId);(0,_.sV.isEmpty)(D.fetchCommentsParams)&&delete D.fetchCommentsParams};var bB=function(){};
_.J(bB,HC);bB.prototype.getApiPaths=function(){return uj};
bB.prototype.JSC$13119_buildRequest=function(D){D.browseId="FEnotifications_inbox"};
bB.prototype.getExtension=function(D){return _.k(D,_.kE)};var dC=function(){};
_.J(dC,HC);dC.prototype.getApiPaths=function(){return v3b};
dC.prototype.JSC$13119_buildRequest=function(D,v){v.signal==="GET_NOTIFICATIONS_MENU"&&(D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");v.ctoken&&(D.ctoken=v.ctoken)};
var jU$=function(){};
_.J(jU$,dC);jU$.prototype.getExtension=function(D){return _.k(D,_.kE)};
var sUm=function(){};
_.J(sUm,dC);sUm.prototype.getExtension=function(D){return _.k(D,zgp)};var jG=function(){};
_.J(jG,HC);jG.prototype.getApiPaths=function(){return VWs};
jG.prototype.getExtension=function(D){return _.k(D,_.kE)};
jG.prototype.JSC$13119_buildRequest=function(){};var sl=function(){};
_.J(sl,HC);sl.prototype.getApiPaths=function(){return Zn1};
sl.prototype.getExtension=function(D){return _.k(D,Cet)||void 0};
sl.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params);v.secondaryParams&&(D.secondaryParams=v.secondaryParams)};var m5=function(){};
_.J(m5,HC);m5.prototype.getApiPaths=function(){return E34};
m5.prototype.getExtension=function(D){return _.k(D,TPt)};
m5.prototype.JSC$13119_buildRequest=function(D,v){v.undo&&(D.undo=v.undo);v.serializedOptOut&&(D.serializedOptOut=v.serializedOptOut);v.serializedRecordInteractionsRequest&&(D.serializedRecordInteractionsRequest=v.serializedRecordInteractionsRequest)};var HB=function(){};
_.J(HB,HC);HB.prototype.getApiPaths=function(){return knJ};
HB.prototype.getExtension=function(D){return _.k(D,R_M)};
HB.prototype.JSC$13119_buildRequest=function(D,v){v.serializedInteractionsRequest&&(D.serializedRecordNotificationInteractionsRequest=v.serializedInteractionsRequest)};var yr=function(){};
_.J(yr,HC);yr.prototype.getApiPaths=function(){return pJu};
yr.prototype.getExtension=function(D){return _.k(D,g82)};
yr.prototype.JSC$13119_buildRequest=function(D,v,h){v=v===void 0?{}:v;h=h===void 0?{}:h;v.videoId?D.videoId=v.videoId:v.playlistId&&(D.playlistId=v.playlistId);var a,Q=(a=v.offlineWebClientEligibility)!=null?a:h.offlineWebClientEligibility;Q&&(D.offlineWebClientEligibility=Q);var G;if(a=(G=v.preferredFormatType)!=null?G:h.preferredFormatType)D.preferredFormatType=a;var x;if(G=(x=v.lastOfflineQualitySettingsSavedMs)!=null?x:h.lastOfflineQualitySettingsSavedMs)D.lastOfflineQualitySettingsSavedMs=G;
v.params&&(D.params=v.params)};var wC=function(){};
_.J(wC,HC);wC.prototype.getApiPaths=function(){return kG};
wC.prototype.getExtension=function(D){return _.k(D,_.iL)};
wC.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.token&&(D.continuation=v.token);h.formData&&(D.formData=h.formData)};var eG=function(){};
_.J(eG,HC);eG.prototype.getApiPaths=function(){return kG};
eG.prototype.getExtension=function(D){return _.k(D,DB1)};
eG.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;D.continuation=h.continuation};var nB=function(){};
_.J(nB,HC);nB.prototype.getApiPaths=function(){return kG};
nB.prototype.getExtension=function(D){return _.k(D,_.qh)};
nB.prototype.JSC$13119_buildRequest=function(D,v){var h,a=v.panelIdentifier||((h=v.identifier)==null?void 0:h.tag);a&&(D.panelId=a);var Q;if((Q=v.globalConfiguration)==null?0:Q.params){var G;D.params=(G=v.globalConfiguration)==null?void 0:G.params}};
_.GT.Object.defineProperties(nB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ol=function(){};
_.J(Ol,HC);Ol.prototype.getApiPaths=function(){return kG};
Ol.prototype.getExtension=function(D){return _.k(D,ykJ)};
Ol.prototype.JSC$13119_buildRequest=function(D,v){v.panelLoadingStrategy&&JYu(D,v.panelLoadingStrategy)};var KB=function(){};
_.J(KB,HC);KB.prototype.getApiPaths=function(){return kG};
KB.prototype.getExtension=function(D){return _.k(D,QAt)};
KB.prototype.JSC$13119_buildRequest=function(D,v){v.loadingStrategy&&JYu(D,v.loadingStrategy)};var T5=function(){};
_.J(T5,HC);T5.prototype.getApiPaths=function(){return kG};
T5.prototype.getExtension=function(D){return _.k(D,_.An)};
T5.prototype.JSC$13119_buildRequest=function(D,v){v.panelLoadingStrategy&&JYu(D,v.panelLoadingStrategy)};var RF=function(){};
_.J(RF,HC);RF.prototype.getApiPaths=function(){return kG};
RF.prototype.getExtension=function(D){return _.k(D,GF4)};
RF.prototype.JSC$13119_buildRequest=function(D,v){var h,a=(h=v.contentSourcePanelIdentifier)==null?void 0:h.tag;a&&(D.panelId=a);var Q;if((Q=v.globalConfiguration)==null?0:Q.params){var G;D.params=(G=v.globalConfiguration)==null?void 0:G.params}};var iB=function(){};
_.J(iB,HC);iB.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
iB.prototype.getExtension=function(D){return _.k(D,Vht)};
iB.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var WB=function(){};
_.J(WB,HC);WB.prototype.getApiPaths=function(){return Rbs};
WB.prototype.getExtension=function(D){return _.k(D,Mh4)};
WB.prototype.JSC$13119_buildRequest=function(D,v){v.externalChannelId&&(D.externalChannelId=v.externalChannelId);v.superChatAction&&(D.superChatAction=v.superChatAction);v.superStickersAction&&(D.superStickersAction=v.superStickersAction)};var tS=function(){};
_.J(tS,HC);tS.prototype.getApiPaths=function(){return K_p};
tS.prototype.getExtension=function(D){return _.k(D,vmb)||_.k(D,SE8)};
tS.prototype.JSC$13119_buildRequest=function(D,v){v.videoIds?D.videoIds=v.videoIds:v.videoId&&(D.videoIds=[v.videoId]);v.playlistId&&(D.playlistId=v.playlistId);v.params&&(D.params=v.params);D.excludeWatchLater=!1};var rC=function(){};
_.J(rC,HC);rC.prototype.getApiPaths=function(){return dm9};
rC.prototype.getExtension=function(D){return _.k(D,_.M8)};
rC.prototype.JSC$13119_buildRequest=function(D,v,h){h.create_playlist_title?D.title=h.create_playlist_title:v.title&&(D.title=v.title);if(h.create_playlist_privacy_status&&typeof h.create_playlist_privacy_status==="number"){a:{var a=h.create_playlist_privacy_status;if(a!==0){if(a===1){a="PUBLIC";break a}if(a===2){a="UNLISTED";break a}}a="PRIVATE"}D.privacyStatus=a}else v.privacyStatus&&(D.privacyStatus=v.privacyStatus);h.create_playlist_description&&(D.description=h.create_playlist_description);v.videoIds&&
(D.videoIds=v.videoIds);v.params&&(D.params=v.params);v.sourcePlaylistId&&(D.sourcePlaylistId=v.sourcePlaylistId)};var uB=function(){};
_.J(uB,HC);uB.prototype.getApiPaths=function(){return mmt};
uB.prototype.getExtension=function(D){return _.k(D,MkM)};
uB.prototype.JSC$13119_buildRequest=function(D,v){D.playlistId=v.playlistId};var Dr=function(){};
_.J(Dr,HC);Dr.prototype.getApiPaths=function(){return hb$};
Dr.prototype.getExtension=function(D){return _.k(D,ylb)};
Dr.prototype.JSC$13119_buildRequest=function(D,v){v.playlistId&&(D.playlistId=v.playlistId);v.params&&(D.params=v.params)};var vk=function(){};
_.J(vk,HC);vk.prototype.getApiPaths=function(){return g3t};
vk.prototype.getExtension=function(D){return _.k(D,_.$G)||void 0};
vk.prototype.JSC$13119_buildRequest=function(D,v){v.actions&&(D.actions=v.actions);v.params&&(D.params=v.params);v.playlistId&&(D.playlistId=v.playlistId)};var hs=function(){};
_.J(hs,HC);_.V=hs.prototype;_.V.getApiPaths=function(){return StM};
_.V.getExtension=function(D){return _.k(D,_.AQ)};
_.V.JSC$13119_buildRequest=function(D,v){v.videoId&&(D.playerRequest={videoId:v.videoId},v.playerParams&&(D.playerRequest.params=v.playerParams),v.racyCheckOk&&(D.playerRequest.racyCheckOk=!!v.racyCheckOk),v.contentCheckOk&&(D.playerRequest.contentCheckOk=!!v.contentCheckOk));v.params&&(D.params=v.params);v.inputType&&(D.inputType=v.inputType);D.disablePlayerResponse=!0};
_.V.getRequestConfig=function(D){var v;(D=this.JSC$13126_getStoreKey(D))&&(v={storeStrategy:{storeKey:D}});_.g("web_log_reels_ticks")&&(v=v||{},v.requestTick="r_wrs",v.responseTick="r_wrr");return v};
_.V.JSC$13126_getStoreKey=function(D){D=this.getExtension(D);if(D!=null&&D.videoId){var v={videoId:D.videoId};D.params&&(v.params=D.params);return _.vU("reel_item_watch",v)}};var af=function(){};
_.J(af,HC);_.V=af.prototype;_.V.getApiPaths=function(){return Jqm};
_.V.getExtension=function(D){return _.k(D,_.AQ)};
_.V.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;D.sequenceParams=v.sequenceParams;var a;((a=h)==null?0:a.contentPlaybackContext)&&_.g("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:h.contentPlaybackContext})};
_.V.JSC$13126_getStoreKey=function(D){if(_.g("web_enable_delay_shorts_sequence_call")||_.g("shorts_controller_retrieve_seedless_sequence_v2"))if(D=this.getExtension(D),D==null?0:D.sequenceParams)return _.vU("reel_watch_sequence",{sequenceParams:D.sequenceParams})};
_.V.getRequestConfig=function(D){D=this.JSC$13126_getStoreKey(D);var v;D&&(v={storeStrategy:{storeKey:D}});v=v||{};v.requestTick="r_wsrs";v.responseTick="r_wsrr";v.processorTick="r_wsrp";return v};
var $8=function(){};
_.J($8,HC);$8.prototype.getApiPaths=function(){return Jqm};
$8.prototype.getExtension=function(D){return _.k(D,_.iL)};
$8.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.token&&(D.continuation=v.token);var a;((a=h)==null?0:a.contentPlaybackContext)&&_.g("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:h.contentPlaybackContext})};
$8.prototype.getRequestConfig=function(D){D=this.JSC$13126_getStoreKey(D);var v;D&&(v={storeStrategy:{storeKey:D}});v=v||{};v.requestTick="r_wsrs";v.responseTick="r_wsrr";v.processorTick="r_wsrp";return v};var QW=function(){};
_.J(QW,HC);QW.prototype.getApiPaths=function(){return ee4};
QW.prototype.getExtension=function(D){return _.k(D,_.yeb)};
QW.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.flagAction&&(D.action=v.flagAction);v.flagRequestType&&(D.flagRequestType=v.flagRequestType);v.additionalDetailCheckboxChecked&&(D.additionalDetailCheckboxChecked=v.additionalDetailCheckboxChecked);v.legalCheckboxChecked&&(D.legalCheckboxChecked=v.legalCheckboxChecked);v={};h.flag_issue_type!==void 0&&(v.issue=h.flag_issue_type);h.flag_affiliation!==void 0&&(v.affiliation=h.flag_affiliation);h.flag_full_name&&(v.fullName=h.flag_full_name);
Object.keys(v).length&&(D.legalReportDetails=v);if(h.flag_description||h.text)D.userComments=h.flag_description||h.text;v={};h.minutes!==void 0&&h.seconds!==void 0&&(v.minutes=h.minutes,v.seconds=h.seconds);h.vss_id&&(v.vssId=h.vss_id);Object.keys(v).length&&(D.videoReportDetails=v);v={};h.video_ids&&(v.videoIds=h.video_ids);h.impersonated_channel_url&&(v.impersonatedChannelUrl=h.impersonated_channel_url);Object.keys(v).length&&(D.channelAbuseReportDetails=v)};
_.GT.Object.defineProperties(QW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G8=function(){};
_.J(G8,HC);G8.prototype.getApiPaths=function(){return iCJ};
G8.prototype.getExtension=function(D){return _.k(D,Cry)};
G8.prototype.JSC$13119_buildRequest=function(D,v){v.blockedForKidsContent&&(D.blockedForKidsContent=v.blockedForKidsContent)};var VW=function(){};
_.J(VW,HC);VW.prototype.getApiPaths=function(){return Nu4};
VW.prototype.getExtension=function(D){return _.k(D,k8r)};
VW.prototype.JSC$13119_buildRequest=function(D,v,h){D.params=v.params;h.impersonated_channel_url&&(D.impersonatedChannelUrl=h.impersonated_channel_url)};var Pk=function(){};
_.J(Pk,HC);Pk.prototype.getApiPaths=function(){return C6t};
Pk.prototype.getExtension=function(D){return _.k(D,_.osb)};
Pk.prototype.JSC$13119_buildRequest=function(D,v){v.items&&(D.items=v.items);v.kidGaiaId&&(D.kidGaiaId=v.kidGaiaId)};var x8=function(){};
_.J(x8,HC);x8.prototype.getApiPaths=function(){return TG9};
x8.prototype.getExtension=function(D){return _.k(D,_.rp4)};
x8.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params);v.targetId&&(D.targetId=v.targetId)};var Mj=function(){};
_.J(Mj,HC);Mj.prototype.getApiPaths=function(){return XMb};
Mj.prototype.getExtension=function(D){return _.k(D,Uwy)};
Mj.prototype.JSC$13119_buildRequest=function(D,v){v.externalVideoId&&(D.externalVideoId=v.externalVideoId);v.query&&(D.query=v.query);v.sourceTimelines&&(D.sourceTimelines=v.sourceTimelines)};var fA=function(){};
_.J(fA,HC);fA.prototype.getApiPaths=function(){return AqJ};
fA.prototype.getExtension=function(D){return _.k(D,_.iL)||void 0};
fA.prototype.JSC$13119_buildRequest=function(D,v){v.token&&(D.continuation=v.token)};
_.mId=function(){};
_.J(_.mId,HC);_.V=_.mId.prototype;_.V.getApiPaths=function(){return AqJ};
_.V.getExtension=function(D){return _.k(D,_.BR)||void 0};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$13126_getStoreKey=function(D,v){v=v===void 0?{}:v;if(!v.disableCache&&(D=this.getExtension(D))&&D.query)return v={query:D.query},D.params&&(v.params=D.params),_.vU("search",v)};
_.V.JSC$13119_buildRequest=function(D,v,h){v.query&&(D.query=v.query);v.params&&(D.params=v.params);if(!_.g("web_forward_suggest_stats_killswitch")){var a=_.k(v,qct);a&&(D.suggestStats=a)}var Q;!_.g("kevlar_searchbox_stats_killswitch")&&((Q=h.tempData)==null?0:Q.gs_l)&&!_.k(v,qct)&&(D.webSearchboxStatsUrl="/search?oq="+(h.tempData.oq||"")+"&gs_l="+h.tempData.gs_l);var G;if((G=h.tempData)==null?0:G.entityMid)v=D.suggestionSearchParams||{},v.entityMid=h.tempData.entityMid,D.suggestionSearchParams=v;
if(_.g("enable_desktop_vdcbg_components")||_.g("enable_inline_muted_playback_on_web_search"))h=_.YE().getFlag(186),D.inlineSettingStatus=h?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.V.getRequestConfig=function(D,v){v=v===void 0?{}:v;D=this.JSC$13126_getStoreKey(D,v);var h;D&&(h={storeStrategy:{storeKey:D}});_.g("web_log_search_ticks_ks")||(h=h||{},h.requestTick="sr_s",h.responseTick="sr_r");return h};var CA=function(){};
_.J(CA,HC);CA.prototype.getApiPaths=function(){return Q8s};
CA.prototype.getExtension=function(D){return _.k(D,k4p)};
CA.prototype.JSC$13119_buildRequest=function(D,v){v.serializedGetSharingProviderDataParams&&(D.serializedGetSharingProviderDataParams=v.serializedGetSharingProviderDataParams)};var of=function(){};
_.J(of,HC);of.prototype.getApiPaths=function(){return GnF};
of.prototype.getExtension=function(D){return _.k(D,dw4)};
of.prototype.JSC$13119_buildRequest=function(D,v){v.endpoint&&(D.endpoint=v.endpoint);v.action&&(D.action=v.action)};var Fb=function(){};
_.J(Fb,HC);Fb.prototype.getApiPaths=function(){return HCp};
Fb.prototype.getExtension=function(D){return _.k(D,fLM)};
Fb.prototype.JSC$13119_buildRequest=function(D,v){D.videoId=v.videoId;v.scheduledRedirectMetadataSourceVideoId&&(D.scheduledRedirectMetadata={sourceVideoId:v.scheduledRedirectMetadataSourceVideoId})};var z8=function(){};
_.J(z8,HC);z8.prototype.getApiPaths=function(){return j8p};
z8.prototype.getExtension=function(D){return _.k(D,_.CKt)};
z8.prototype.JSC$13119_buildRequest=function(D,v){D.params=v.params;D.correctionText=v.correctionText};var UE=function(){};
_.J(UE,HC);UE.prototype.getApiPaths=function(){return kBf};
UE.prototype.getExtension=function(D){return _.k(D,_.LJM)};
UE.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params);D.searchQuery=v.searchQuery;D.languageCode=v.languageCode;D.kind=v.kind;D.name=v.name;D.externalVideoId=v.externalVideoId};var LA=function(){};
_.J(LA,HC);LA.prototype.getApiPaths=function(){return uOp};
LA.prototype.getExtension=function(D){return _.k(D,N2R)};
LA.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.params=v.params)};var Zr=function(D){this.JSC$18198_storeWithEntities=D};
_.J(Zr,HC);Zr.prototype.getApiPaths=function(){return Y0t};
Zr.prototype.getExtension=function(D){return _.k(D,B2$)||_.k(D,X2J)};
Zr.prototype.JSC$13119_buildRequest=function(D,v,h){h.client_data&&(D.clientData=h.client_data);if(v.commerceActionConfig){var a=v.commerceActionConfig;v=a.actionId;a=a.commerceActionParams;v&&(D.actionId=v);a&&(D.commerceActionParams=a)}else{var Q=v.actionId,G=v.commerceActionParams;h=v.entityKeys;Q&&(D.actionId=Q);G&&(D.commerceActionParams=G);var x;v=(a=this.JSC$18198_storeWithEntities)==null?void 0:(x=a.getState())==null?void 0:x.entities;if(h&&v){a=[];x=_.P(h);for(h=x.next();!h.done;h=x.next())if(Q=
h.value,h=_.LG(Q).entityType,Q=_.gR(v,h,Q))G={},a.push((G[h]=Q,G));D.entityMutationPayloads=a}}};
Zr.prototype.getRequestConfig=function(D){var v,h=(v=_.k(D,B2$))==null?void 0:v.requestSequenceType;if(h&&D.clickTrackingParams&&h!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:D.clickTrackingParams,sequenceType:h}}};
Zr[MM]=[xY];var EE=function(){};
_.J(EE,HC);EE.prototype.getApiPaths=function(){return Dkm};
EE.prototype.getExtension=function(D){return _.k(D,_.Wps)};
EE.prototype.JSC$13119_buildRequest=function(D,v){v.feedbackData&&(D.feedbackData=v.feedbackData);v.params&&(D.itemParams=v.params)};
_.GT.Object.defineProperties(EE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var If=function(){};
_.J(If,HC);If.prototype.getApiPaths=function(){return vuM};
If.prototype.getExtension=function(D){return _.k(D,tuJ)};
If.prototype.JSC$13119_buildRequest=function(D,v,h){h.payments_payload&&(D.paymentsPayload=h.payments_payload);h.offer_params&&(D.offerParams=h.offer_params);v.transactionParams&&(D.transactionParams=v.transactionParams)};var gy=function(){};
_.J(gy,HC);gy.prototype.getApiPaths=function(){return hz$};
gy.prototype.getExtension=function(D){return _.k(D,_.rER)};
gy.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.buybucketParams&&(D.buybucketData={params:v.buybucketParams},v.stickerParams?D.buybucketData.stickerParams=v.stickerParams:(h.rich_chat_message?D.buybucketData.richChatMessage=h.rich_chat_message:h.chat_message_text&&(D.buybucketData.chatMessageText=h.chat_message_text),h.purchase_price_micros&&(D.buybucketData.purchasePriceMicros=h.purchase_price_micros.toString())));v.donationAmountMicros&&(D.tipAmountMicros=v.donationAmountMicros,
v.tipParams&&(D.tipParams=v.tipParams));v.offerParams&&(D.offerParams=v.offerParams);v.productData&&(D.productData=v.productData);v.transactionParams&&(D.transactionParams=v.transactionParams)};var k8=function(){};
_.J(k8,HC);k8.prototype.getApiPaths=function(){return akJ};
k8.prototype.getExtension=function(D){return _.k(D,viJ)};
k8.prototype.JSC$13119_buildRequest=function(D,v){v.updateFopParams&&(D.updateFopParams=v.updateFopParams)};var SX=function(){};
_.J(SX,HC);SX.prototype.getApiPaths=function(){return $ky};
SX.prototype.getExtension=function(D){return _.k(D,_.ai)};
SX.prototype.JSC$13119_buildRequest=function(D,v){v.couponCode&&(D.couponCode=v.couponCode);v.params&&(D.itemParams=v.params)};var Js=function(){};
_.J(Js,HC);Js.prototype.getApiPaths=function(){return Q_J};
Js.prototype.getExtension=function(D){return _.k(D,_.cEJ)};
Js.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;v.params&&(D.params=v.params);h.ctk&&(D.clientToken=h.ctk)};var pA=function(D){this.JSC$18233_storeWithEntities=D};
_.J(pA,HC);pA.prototype.getApiPaths=function(){return GGs};
pA.prototype.getExtension=function(D){return _.k(D,_.Fq)};
pA.prototype.JSC$13119_buildRequest=function(D,v,h){h.purchase_price_micros&&(D.productData={pdgData:{purchasePriceMicros:h.purchase_price_micros.toString()}},h.rich_chat_message&&(D.productData.pdgData.richChatMessage=h.rich_chat_message),h.currency_code&&(D.productData.pdgData.currencyCode=h.currency_code));v.transactionParams&&(D.transactionParams=v.transactionParams);v.clientLocationContext&&(D.clientLocationContext=v.clientLocationContext);h.payments_payload&&(D.paymentsPayload=h.payments_payload);
h.funds_guarantee_callback_client_data&&(D.fundsGuaranteeCallbackClientData=h.funds_guarantee_callback_client_data);var a,Q;h=(a=this.JSC$18233_storeWithEntities)==null?void 0:(Q=a.getState())==null?void 0:Q.entities;if(v.entityKeys&&h){a=[];v=_.P(v.entityKeys);for(Q=v.next();!Q.done;Q=v.next()){var G=Q.value;Q=_.LG(G).entityType;if(G=_.gR(h,Q,G)){var x={};a.push((x[Q]=G,x))}}D.entityMutationPayloads=a}};
pA[MM]=[xY];var lx=function(){};
_.J(lx,HC);lx.prototype.getApiPaths=function(){return V1t};
lx.prototype.getExtension=function(D){return _.k(D,uc4)};
lx.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;h.backend_analytics&&(D.serializedBackendAnalyticsEvent=h.backend_analytics);v.offerParams&&(D.offerParams=v.offerParams)};var Nj=function(){};
_.J(Nj,HC);Nj.prototype.getApiPaths=function(){return $ky};
Nj.prototype.getExtension=function(D){return _.k(D,$Rc)};
Nj.prototype.JSC$13119_buildRequest=function(D,v){v.params&&(D.itemParams=v.params)};var Y8=function(){};
_.J(Y8,HC);Y8.prototype.getApiPaths=function(){return PF9};
Y8.prototype.getExtension=function(D){return _.k(D,_.jSm)};
Y8.prototype.JSC$13119_buildRequest=function(D,v,h){h.resume_time_ms&&(D.resumeTimeMs=h.resume_time_ms);v.pauseParams&&(D.pauseParams=v.pauseParams)};var Bk=function(){};
_.J(Bk,HC);Bk.prototype.getApiPaths=function(){return xk4};
Bk.prototype.getExtension=function(D){return _.k(D,_.Dm4)};
Bk.prototype.JSC$13119_buildRequest=function(D,v,h){h=h===void 0?{}:h;h.c&&(D.redeemCode=h.c);h.rd&&(D.riskData=h.rd);h.ctk&&(D.clientToken=h.ctk)};var ck=function(){};
_.J(ck,HC);ck.prototype.getApiPaths=function(){return M1y};
ck.prototype.getExtension=function(D){return _.k(D,_.sSF)};
ck.prototype.JSC$13119_buildRequest=function(D,v){v.resumeParams&&(D.resumeParams=v.resumeParams)};var Xb=function(D,v){this.clientName=D;this.defaultExpirationDelayMs=v};
Xb.prototype.put=function(D,v){var h=this,a;return _.M(function(Q){a=Object.assign({},v.data);a.key=D;a.clientName=h.clientName;a.expireTimestampMs===void 0&&(a.expireTimestampMs=(Math.round((0,_.xz)())+h.defaultExpirationDelayMs).toString());return Q.return(h.putInternal(D,a))})};
Xb[MM]=[a0,npC];var H3U=function(){Xb.apply(this,arguments);this.JSC$18263_responseStore=new Map};
_.J(H3U,Xb);_.V=H3U.prototype;_.V.get=function(D){var v=this;return _.M(function(h){return h.return(H0(v,D))})};
_.V.putInternal=function(D,v){var h=this,a,Q,G;return _.M(function(x){a=h.defaultExpirationDelayMs;v.expireTimestampMs&&(a=Number(v.expireTimestampMs)-Math.round((0,_.xz)()),Q=_.oZ("mweb_override_response_store_expiration_ms"),Q>0&&Q<a&&(a=Q));G=setTimeout(function(){h.remove(D)},a);
h.JSC$18263_responseStore.set(D,{entryData:v,timer:G});_.YI(x)})};
_.V.remove=function(D){var v=this;return _.M(function(h){yrX(v,D);_.YI(h)})};
_.V.removeAll=function(){var D=this;return _.M(function(v){D.JSC$18263_responseStore.forEach(function(h){clearTimeout(h.timer)});
D.JSC$18263_responseStore.clear();_.YI(v)})};
_.V.has=function(D){return!!this.JSC$18263_responseStore.get(D)};
_.V.getKeys=function(){return this.JSC$18263_responseStore.keys()};
var H0=function(D,v){if(D=D.JSC$18263_responseStore.get(v))return new _.m_(D.entryData)},yrX=function(D,v){var h=D.JSC$18263_responseStore.get(v);
h&&(clearTimeout(h.timer),D.JSC$18263_responseStore.delete(v))};var pcc;var Y7r=function(D,v,h){Xb.call(this,D,v);this.token=h};
_.J(Y7r,Xb);_.V=Y7r.prototype;_.V.get=function(D){var v=this,h,a;return _.M(function(Q){return Q.nextAddress==1?Q.yield(NL7(v.token),2):Q.nextAddress!=3?(h=Q.yieldResult,Q.yield(h.get("ResponseStore",[D,v.clientName]),3)):(a=Q.yieldResult)?Q.return(new _.m_(a)):Q.return(void 0)})};
_.V.putInternal=function(D,v){var h=this,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(NL7(h.token),2);a=Q.yieldResult;return Q.yield(a.put("ResponseStore",v),0)})};
_.V.remove=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(NL7(v.token),2);h=a.yieldResult;return a.return(h.delete("ResponseStore",[D,v.clientName]))})};
_.V.removeAll=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return h.yield(NL7(D.token),2);v=h.yieldResult;return h.yield(WKF(v,IDBKeyRange.only(D.clientName)),0)})};
_.V.has=function(){throw Error("ej");};_.As=new _.Uj("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wsr=function(D){var v;this.stateTagsData=(v=D.responseContext)==null?void 0:v.stateTags},eZ3=function(D){var v;
return((v=D.stateTagsData)==null?void 0:v.stateTagsModified)||[]};var nC2;nC2=function(D){this.JSC$18276_responseStore=D};
_.ip=function(D,v,h){if(!_.g("state_tags_killswitch")){var a=new wsr(v);if(eZ3(a).length>0){var Q=D.JSC$18276_responseStore.getKeys();Q=_.P(Q);for(var G=Q.next();!G.done;G=Q.next()){G=G.value;var x=H0(D.JSC$18276_responseStore,G);if(x){var f=_.Vf(x);a:{var C=void 0;x=eZ3(a);f=((C=(new wsr(f)).stateTagsData)==null?void 0:C.relevantStateTags)||[];C=_.P(f);for(f=C.next();!f.done;f=C.next())if(f=f.value,f.stateTag!=null&&x.includes(f.stateTag)&&f.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){x=
!0;break a}x=!1}x&&yrX(D.JSC$18276_responseStore,G)}}}}var U;a=(U=v.responseContext)==null?void 0:U.maxAgeSeconds;h&&a&&Number(a)>0&&(v=Lj(v,a),D.JSC$18276_responseStore.put(h,new _.m_(v)))};
nC2.prototype.handleResponse=function(D,v){if(!v)throw Error("fj");var h,a;v=(h=v.config)==null?void 0:(a=h.storeStrategy)==null?void 0:a.storeKey;_.ip(this,D,v)};
nC2[MM]=[_.s0];_.mlr=new _.Uj("STORE_RESPONSE_PROCESSOR_TOKEN");var O3Z=function(D){this.JSC$18279_responseStore=D};
O3Z.prototype.handleResponse=function(D,v){if(v.input.match(_.xV(Jqm))){var h;if(D==null?0:(h=D.entries)==null?0:h.length)for(D=_.P(D.entries),v=D.next();!v.done;v=D.next()){h=v.value.command;var a=void 0;v=(a=_.k(h,_.AQ))==null?void 0:a.unserializedPrefetchData;if(!h||!v)break;a=(new hs).JSC$13126_getStoreKey(h);var Q=_.k(v,d8b),G=void 0,x=void 0,f=void 0,C=void 0,U=void 0,L=void 0,Z=((G=Q)==null?0:(x=G.responseContext)==null?0:x.maxAgeSeconds)&&Number((f=Q)==null?void 0:(C=f.responseContext)==null?
void 0:C.maxAgeSeconds)>0?Number((U=Q)==null?void 0:(L=U.responseContext)==null?void 0:L.maxAgeSeconds):600;a&&Z>0&&(Q=Lj(Q,Z),this.JSC$18279_responseStore.put(a,new _.m_(Q)));h=(new wh).JSC$13126_getStoreKey(h);v=_.k(v,EG4);C=f=x=G=Q=a=void 0;U=((a=v)==null?0:(Q=a.responseContext)==null?0:Q.maxAgeSeconds)&&Number((G=v)==null?void 0:(x=G.responseContext)==null?void 0:x.maxAgeSeconds)>0?Number((f=v)==null?void 0:(C=f.responseContext)==null?void 0:C.maxAgeSeconds):600;h&&U>0&&(v=Lj(v,U),this.JSC$18279_responseStore.put(h,
new _.m_(v)))}}};
O3Z[MM]=[_.s0];var Kmb=function(D,v){this.innertubeTransportService=D;this.JSC$18282_commandHandler=v};
Kmb.prototype.submitForm=function(D,v,h,a,Q){var G=this,x,f,C,U,L,Z;return _.M(function(E){if(E.nextAddress==1)return x={submitId:D,formData:v,submitBehavior:h,params:a},f=_.xV(s8J),E.yield(_.My(G.innertubeTransportService,x,f,Q),2);C=E.yieldResult;if(!C)return E.return(Promise.reject(new _.XH("Submit API returned an undefined response. Submit ID: "+D)));U=C;(Z=(L=U)==null?void 0:L.onResponseReceived)&&G.JSC$18282_commandHandler.resolveCommand(Z);return E.return(U)})};
Kmb[MM]=[_.RX,_.fx];var qj=function(){this.scheduler=_.c7()},Tr2;
qj.prototype.pause=function(){throw Error("gj");};
qj.prototype.resume=function(){throw Error("gj");};
qj.prototype.queue=function(D){var v=this,h=_.hn(),a=_.c1(this.scheduler,function(){try{var Q;if(_.pb.instance)var G=_.pb.instance;else{var x=new _.XH("Error: Unexpected uninitialized CommandHandler.");_.mV(x);G=void 0}(Q=G)==null||Q.resolveCommand(D.command);h.resolve()}catch(f){h.reject(f)}});
h.promise.thenCatch(function(Q){Q instanceof _.Oy&&v.scheduler.cancelJob(a)});
return h.promise};
qj.prototype.queueAll=function(D){var v=new Map;D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,v.set(h.id,this.queue(h));return v};var i3s=function(D,v){var h=this;this.taskModel=D;this.onTaskCancelledCallback=v;this.resolver=_.hn();D=D.proto.prefetchConfig;if(!D)throw Error("hj");if(!D.prefetchAction)throw Error("ij");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(a){a instanceof _.Oy&&(RZX(h,h.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),h.onTaskCancelledCallback(h.taskModel.id,h.jobId),h.tick("pcc"));
throw a;});
this.timerName=this.taskModel.id;_.wK(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
i3s.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 RZX=function(D,v){_.HU({prefetchInfo:{cancellationReason:v}},D.timerName)};
i3s.prototype.tick=function(D){_.ea(D,void 0,this.timerName)};var dy=function(){var D=this;this.scheduler=_.c7();this.maxInflightTasks=_.oZ("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.oZ("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new YAJ;this.onTaskCancelled=function(v,h){h&&D.scheduler.cancelJob(h);Wmm(D,v);bx(D,3)}},t$d=function(){dy.instance||(dy.instance=new dy);
return dy.instance};
dy.prototype.pause=function(){this.prefetchCoordinatorState=0};
dy.prototype.resume=function(){bx(this,0)};
dy.prototype.queue=function(D){D=rrs(this,D);bx(this,1);return D};
dy.prototype.queueAll=function(D){var v=new Map;D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,v.set(h.id,rrs(this,h));bx(this,1);return v};
var rrs=function(D,v){var h=D.allPrefetchTasks.get(v.id);if(h)return h.cancellablePromise;try{var a=new i3s(v,D.onTaskCancelled)}catch(G){return _.H8(G)}h=a;h.tick("pcq");var Q={prefetchInfo:{taskId:h.taskModel.id,isPrefetch:!0,fetchAction:h.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:h.taskModel.command.clickTrackingParams}};h.taskModel.csn&&(Q.clientScreenNonce=h.taskModel.csn);_.HU(Q,h.timerName);D.allPrefetchTasks.set(v.id,a);D.drainingHeap.insert(-a.getPriority(),a);return a.cancellablePromise},
bx=function(D,v){D.prefetchCoordinatorState===v&&(D.prefetchCoordinatorState=2,uXd(D))},uXd=function(D){for(var v={};D.prefetchCoordinatorState!==0;v={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(D.inflightPrefetchTasks.size>=D.maxInflightTasks){D.prefetchCoordinatorState=3;break}v.prefetchTask$jscomp$1=D.drainingHeap.remove();if(!v.prefetchTask$jscomp$1){D.prefetchCoordinatorState=1;break}v.taskId$jscomp$3=v.prefetchTask$jscomp$1.taskModel.id;if(D.allPrefetchTasks.has(v.taskId$jscomp$3)){var h=-1;D.coordinatorTimeoutMs>0&&(h=_.c1(D.scheduler,function(a){return function(){jX(D,a.taskId$jscomp$3,Error("jj"))}}(v),D.coordinatorTimeoutMs));
D.inflightPrefetchTasks.set(v.taskId$jscomp$3,h);if(!D.JSC$18299_commandHandler){if(!_.pb.instance){jX(D,v.taskId$jscomp$3,Error("kj"));continue}D.JSC$18299_commandHandler=_.pb.instance}a:switch(v.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":h=1;break a;default:h=0}v.prefetchTask$jscomp$1.jobId=D.scheduler.addJob(function(a){return function(){a.prefetchTask$jscomp$1.tick("pcr");try{D.JSC$18299_commandHandler.resolveCommand(a.prefetchTask$jscomp$1.taskModel.command)||
jX(D,a.taskId$jscomp$3,Error("lj"))}catch(Q){jX(D,a.taskId$jscomp$3,Q)}}}(v),h,0)}}},Dfm=function(D,v){(v=Wmm(D,v))!=null&&(v.resolver.resolve(),v.tick("pce"));
bx(D,3)},jX=function(D,v,h){(v=Wmm(D,v,h))!=null&&(v.resolver.reject(h),v.tick("pcc"),RZX(v,"CANCELLATION_REASON_ERROR"),Math.random()<=_.oZ("prefetch_coordinator_error_logging_sampling_rate")&&(h=new _.XH("Prefetch Command failed.",v.taskModel.id,h.message),_.mV(h)));
bx(D,3)},Wmm=function(D,v,h){var a=D.allPrefetchTasks.get(v);
a?((h=D.inflightPrefetchTasks.get(v))&&h!==-1&&D.scheduler.cancelJob(h),D.inflightPrefetchTasks.delete(v),D.allPrefetchTasks.delete(v)):_.yR(new _.XH("Unexpected missing prefetch task when deleting task.",v,h==null?void 0:h.message));return a};var voK=function(D,v,h,a,Q){this.id=D;this.triggerOn=v;this.cancelOn=h;this.command=a;this.proto=Q};
_.GT.Object.defineProperties(voK.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var hBm=function(){this.JSC$18304_prefetchCoordinator=t$d();Tr2||(Tr2=new qj);this.defaultCoordinator=Tr2},af3;
hBm.getInstance=function(){af3||(af3=new hBm);return af3};
hBm.prototype.get=function(D){switch(D){case 0:return this.JSC$18304_prefetchCoordinator;default:return this.defaultCoordinator}};var sE=function(){this.coordinatorSupplier=hBm.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},GK3=function(D){var v=_.wd()||void 0,h=Object.keys($fr)[0];
if(h){var a=D.taskIdByTriggerId.get(h);if(a!=null){D.taskIdByTriggerId.delete(h);h=[];a=_.P(a);for(var Q=a.next();!Q.done;Q=a.next())if(Q=D.tasks.get(Q.value))v!=="UNDEFINED_CSN"&&(Q.csn=v),h.push(Q);h=Xci(h);v=[];h=_.P(h);for(a=h.next();!a.done;a=h.next()){Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;a=D.coordinatorSupplier.get(a).queueAll(Q);a=_.P(a);var G=a.next();for(Q={};!G.done;Q={taskId$jscomp$9:void 0},G=a.next()){var x=_.P(G.value);G=x.next().value;x=x.next().value;Q.taskId$jscomp$9=
G;G=x;v.push(Q.taskId$jscomp$9);D.queuedPromisesByTask.set(Q.taskId$jscomp$9,_.yS(G,function(f){return function(){QmZ(D,f.taskId$jscomp$9)}}(Q)))}}}}else _.yR(new _.XH("Unexpected malformed TriggerEvent."))};
sE.prototype.trigger=function(D,v){var h=this,a=this.tasks.get(D);if(!a||this.queuedPromisesByTask.has(D))return!1;VRK(this,D,a.triggerOn);v!=="UNDEFINED_CSN"&&(a.csn=v);v=this.coordinatorSupplier.get(a.taskType).queue(a);this.queuedPromisesByTask.set(D,_.yS(v,function(){QmZ(h,D)}));
return!0};
sE.prototype.cancel=function(D){var v=this.queuedPromisesByTask.get(D);if(v)v.cancel();else return QmZ(this,D)};
var QmZ=function(D,v){D.queuedPromisesByTask.delete(v);var h=D.tasks.get(v);if(!h)return!1;D.tasks.delete(v);VRK(D,v,h.triggerOn);(h=cYr(h.cancelOn))&&(D=D.taskIdByCancelId.get(h))&&D.delete(v);return!0},VRK=function(D,v,h){(h=Object.keys(h)[0])&&(D=D.taskIdByTriggerId.get(h))&&D.delete(v)};var $fr={taskRegistered:{}},mf=function(){sE.instance||(sE.instance=new sE);this.JSC$18313_taskManager=sE.instance};
_.J(mf,o6);
mf.prototype.resolveCommand=function(D){var v=this,h,a;return _.M(function(Q){h=_.k(D,qHJ);if((a=h)==null||!a.tasks){var G=new _.XH("RegisterTasksCommand is missing tasks.");_.mV(G);return Q.return()}G=v.JSC$18313_taskManager;for(var x=_.P(h.tasks),f=x.next();!f.done;f=x.next())if(f=f.value,f=f.id&&f.triggerOn&&f.cancelOn&&f.command?new voK(f.id,f.triggerOn,f.cancelOn,f.command,f):void 0,f){var C=Object.keys(f.triggerOn)[0];if(C){var U=cYr(f.cancelOn);U?(G.tasks.set(f.id,f),G.taskIdByTriggerId.has(C)||G.taskIdByTriggerId.set(C,
new Set),G.taskIdByTriggerId.get(C).add(f.id),G.taskIdByCancelId.has(U)||G.taskIdByCancelId.set(U,new Set),G.taskIdByCancelId.get(U).add(f.id)):_.yR(new _.XH("Unexpected malformed cancelOn field."))}else _.yR(new _.XH("Unexpected malformed triggerOn field."))}else _.yR(new _.XH("Unexpected malformed Task proto."));GK3(v.JSC$18313_taskManager);_.YI(Q)})};var PHK={},xfm=(PHK.rendered={priority:_.g("web_adaptive_early_init")?8:0,callback:function(){var D={};D.numCpu=navigator.hardwareConcurrency;var v={};v.ramGb=_.$L.navigator.deviceMemory;var h={staticContext:{}};v.ramGb&&$nu(v.ramGb)&&(h.staticContext.memoryTotalKbytes=(v.ramGb*1048576).toString());D.numCpu&&$nu(D.numCpu)&&(h.staticContext.cpuCores=D.numCpu);if(_.g("web_enable_adaptive_appl_signal")){D={};v=PN2();v=v.length>0?v[0]:void 0;var a,Q=(a=_.K1("rses_dpj"))!=null?a:v==null?void 0:v.tick.rses_dpj,
G;a=(G=_.K1("rsef_dpj"))!=null?G:v==null?void 0:v.tick.rsef_dpj;Q&&Number(Q)>0&&a&&Number(a)>0&&(G=Math.ceil(Number(a)-Number(Q)),G>0&&(D.loadLatency=G));D.loadLatency&&$nu(D.loadLatency)&&(h.appL=D.loadLatency.toString())}_.jj("applicationStarted",h);QE8=h;_.g("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",GDu)}},PHK);var MR3=new _.Uj("WINDOW_ON_ERROR"),ff$=new _.Uj("ERROR_WEIGHT_MAPS"),CHX=new _.Uj("INIT_ERROR");var ooS={},FM2=(ooS.initialized={priority:10,callback:function(D){D.injector.resolve(CHX)()}},ooS);var zB3=function(){},Ufs=function(){var D=_.T3("meta_logger_impl");
D||(D=new zB3,_.Gm("meta_logger_impl",D));return D},LM2=function(){Ufs().csiSubscriptionKey=di2("meta_logging_csi_event",function(D){var v=D.timerName;
if(D=D.timelineData){_.wK(v,{startTime:D.startTime},v);D.infos&&_.HU(D.infos,v);for(var h=_.P(Object.keys(D.ticks)),a=h.next();!a.done;a=h.next())a=a.value,_.ea(a,D.ticks[a],v)}})};
zB3.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&mi4(this.csiSubscriptionKey)};var ZzI={},EoI=(ZzI.initialized={priority:10,callback:function(){LM2()}},ZzI);var If$=function(D,v){this.innertubeClientName=D;this.JSC$18324_prefCookie=v};
If$.prototype.record=function(){if(_.g("web_li_record_binary_eval_tick")){var D=_.K1("rsef_dpj");var v=_.K1("rses_dpj");D=D!==void 0&&v!==void 0?Math.round(D-v):void 0;if(D!==void 0&&D>0){v=_.nq(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var h=this.poolSize;if(!(v.valuesSeen>=1E9)){if(v.valuesSample.length<h)v.valuesSample.push(D);else{var a=Math.floor(Math.random()*(v.valuesSeen+1));a<h&&(v.valuesSample[a]=D)}v.valuesSeen+=1}_.eL(this.storagePrefix+"-"+this.innertubeClientName,
v,2592E3);D=v.valuesSample;v=AYq(D);D=D.length<this.poolSize?void 0:v<400?1:v<1700?2:3;D!==void 0&&(this.JSC$18324_prefCookie.set(this.cookiePrefix+this.innertubeClientName,D),this.JSC$18324_prefCookie.save())}}else _.OL(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18324_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18324_prefCookie.save()};
If$[MM]=[a0,mQ];var goX=function(){If$.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.J(goX,If$);var kKS=new _.Uj("PAGE_LOAD_TIME_TOKEN");var SQZ=function(D){this.signal=D;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;D.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.c1(_.HK,this.disableLoggingAndSendPayload,1E4)};
SQZ.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.HK.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),J3r(this))};
var J3r=function(D){var v=_.yC();if(v){var h={webClientComponentsData:{components:Array.from(D.ids,function(a){return{id:a}})}};
D.ids.clear();_.c8().visualElementStateChanged(v,h)}};var pd2=_.w1({a11y:_.ZUJ});_.lfC=_.e3(pd2)(pd2.a11y,{ephemeralActionSelector:function(D){return D.ephemeralAction||null}});var N0m=_.w1({continuation:_.gbt});var YQK=_.e3(N0m)(N0m.continuation,{continuationCommandSelector:function(D){return D.continuationCommand}});var B0K=new _.Uj("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Hk=function(D,v){this.JSC$18353_storeWithEntities=D;this.JSC$18353_commandHandler=v;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Hk.prototype.start=function(){this.JSC$18353_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Hk.prototype.observeDownloadingEntities=function(){var D=_.Jp2(this.JSC$18353_storeWithEntities.getState().entities).map(function(a){return piA(a)});
if(D.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var v={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Xbf()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.MD(_.p1("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18353_commandHandler.resolveCommand(v)}this.downloadingEntities=D}else if(this.downloadingEntities.length){var h=Se4(this.JSC$18353_storeWithEntities.getState().entities).map(function(a){return piA(a)});
this.downloadingEntities.filter(function(a){return h.includes(a)}).length&&(D={openPopupAction:UsI()},this.JSC$18353_commandHandler.resolveCommand(D));
this.downloadingEntities=[]}};
Hk[MM]=[xY,_.fx];var c3X;_.yW=function(D,v,h,a,Q,G,x,f){this.JSC$18356_playerApiPromise=D;this.JSC$18356_commandHandler=v;this.JSC$18356_screenManager=h;this.offlineWebClientEligibility=a;this.JSC$18356_prefStorage=Q;this.JSC$18356_actionRouter=G;this.entityTypeMap=x;this.JSC$18356_persistentStorePromiseAccessor=f;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
c3X=function(){var D=_.xd().resolve(_.yW),v;_.M(function(h){if(h.nextAddress==1)return D.downloadFailureListenerBound?h.return():h.yield(D.JSC$18356_playerApiPromise,2);v=h.yieldResult;v.addEventListener("onOfflineOperationFailure",function(a){if(a.failureReason&&a.entityKey&&a.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(a.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Q=_.LG(a.entityKey).entityId;Q&&D.JSC$18356_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Q)}else if(_.g("kevlar_woffle")){Q=D.JSC$18356_commandHandler;var G=Q.resolveCommand;a=a.failureReason;var x=_.p1("TRANSFER_FAILED",void 0,"Download failed");a==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(x=_.p1("STORAGE_FULL",void 0,"Storage full"));G.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.MD(x),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
D.downloadFailureListenerBound=!0;_.YI(h)})};
_.yW.prototype.deleteVideo=function(D,v){var h=this,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return x.yield(h.JSC$18356_playerApiPromise,2);a=x.yieldResult;G={offlineLoggingData:{offlineDeleteReason:(Q=v)!=null?Q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return x.yield(a.queueOfflineAction(D,h.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",G),0)})};
_.yW.prototype.pauseVideoDownload=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.JSC$18356_playerApiPromise,2);h=a.yieldResult;h.pauseVideoDownload(D);_.YI(a)})};
_.yW.prototype.resumeVideoDownload=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.JSC$18356_playerApiPromise,2);h=a.yieldResult;return a.yield(h.resumeVideoDownload(D),0)})};
_.yW[MM]=[_.zf,_.fx,_.aS,B0K,eV,Sh,zRp,yE];var XdC=new _.Uj("DOWNLOAD_STATE_STORE_TOKEN");var A3K=function(D,v){this.JSC$18376_persistentStorePromiseAccessor=D;this.store=v;this.upliftCompletionResolver=new _.gT},dfC=function(){var D=_.xd().resolve(qQK),v;
_.M(function(h){switch(h.nextAddress){case 1:if(D.upliftImplPromise)return h.return(D.upliftImplPromise);_.gE(h,2);D.upliftImplPromise=bz3(D);return h.yield(D.upliftImplPromise,4);case 4:D.upliftCompletionResolver.resolve();_.rl(h,3);break;case 2:throw v=_.NS(h),D.upliftCompletionResolver.reject(v),v;case 3:return h.return(D.upliftImplPromise)}})},bz3=function(D){var v,h,a;
return _.M(function(Q){switch(Q.nextAddress){case 1:return _.nJ("LOGGED_IN")?Q.yield(D.JSC$18376_persistentStorePromiseAccessor(),2):Q.return();case 2:v=Q.yieldResult;if(!v)return _.ea("vdeur"),Q.return();_.ea("vdeus");_.gE(Q,3);return Q.yield(jmX(v),5);case 5:h=Q.yieldResult;D.store.dispatch(x8O(h));v.observe(function(G){Mho(D.store,G)});
_.rl(Q,4);break;case 3:throw a=_.NS(Q),_.ea("vdeur"),a;case 4:_.ea("vdeuc"),_.YI(Q)}})},jmX=function(D){var v;
return _.M(function(h){if(h.nextAddress==1)return h.yield(msA(D),2);v=h.yieldResult;return h.return(v.reduce(function(a,Q){if(!Q.data||!Q.key||!Q.entityType)return a;a[Q.entityType]||(a[Q.entityType]={});a[Q.entityType][Q.key]=Q.data;return a},{}))})};
A3K[MM]=[yE,_.Mv];var qQK;qQK=new _.Uj("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.wy=new _.Uj("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var eX=function(D,v){this.JSC$18379_persistentStorePromiseAccessor=D;this.transportService=v};
eX.prototype.refresh=function(){var D=this,v,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return _.nJ("LOGGED_IN")?G.yield(D.JSC$18379_persistentStorePromiseAccessor(),2):G.return();if(G.nextAddress!=3)return(v=G.yieldResult)?G.yield(ksr(v),3):G.return();if((h=G.yieldResult)&&!(Number(h.data.refreshTimestampMs||0)<(0,_.xz)()))return G.return();a={browseId:"SPaccount_downloads"};Q=_.xV(uj);_.My(D.transportService,a,Q).then(function(x){var f;if(v&&(x==null?void 0:(f=x.responseContext)==null?void 0:
f.maxAgeSeconds)!==0){var C;f=(x==null?void 0:(C=x.responseContext)==null?void 0:C.maxAgeSeconds)||604800;C=String(Math.floor((0,_.xz)())+f*1E3);v.put("service:downloads_settings:fallback",new _.m_({innertubeResponse:x,refreshTimestampMs:C}))}});
_.YI(G)})};
eX[MM]=[_.As,_.RX];var nA=function(D,v){this.JSC$18383_playerPromise=D;this.store=v;this.started=!1};
nA.prototype.start=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return D.started?h.return():h.yield(D.JSC$18383_playerPromise,2);v=h.yieldResult;v.addEventListener("onOrchestrationBecameLeader",D.updateIsLeader.bind(D,!0));v.addEventListener("onOrchestrationLostLeader",D.updateIsLeader.bind(D,!1));if(v.isOrchestrationLeader)D.updateIsLeader(v.isOrchestrationLeader());else{var a=new _.XH("Function isOrchestrationLeader is undefined",{"player.isReady":v.isReady(),"player.playVideo":v.playVideo?
"defined":"undefined"});_.mV(a);D.updateIsLeader(!1)}D.started=!0;_.YI(h)})};
nA.prototype.updateIsLeader=function(D){this.store.dispatch(_.oG({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:D}}))};
nA[MM]=[_.zf,_.Mv];var smS=function(D,v){this.networkStatusManager=D;this.JSC$18386_prefStoragePromise=v;this.redirectsToPreload=["https://youtube.com"]},mfm=function(){var D=_.xd().resolve(smS),v,h,a,Q,G,x;
_.M(function(f){switch(f.nextAddress){case 1:return f.yield(D.JSC$18386_prefStoragePromise,2);case 2:v=f.yieldResult;if(!(h=v)){f.jumpTo(3);break}return f.yield(v.get("yt-redirect-prefetch-id"),4);case 4:h=f.yieldResult;case 3:if(h||!D.networkStatusManager.isNetworkAvailable())return f.return();a={cache:"reload",redirect:"manual"};Q=_.P(D.redirectsToPreload);G=Q.next();case 5:if(G.done){if(!v){f.jumpTo(0);break}return f.yield(v.set("yt-redirect-prefetch-id",!0,86400),0)}x=G.value;_.gE(f,8);return f.yield(_.$L.fetch(x,
a),10);case 10:_.rl(f,6);break;case 8:_.NS(f);case 6:G=Q.next(),f.jumpTo(5)}})};var Hzr=function(){};_.y3r=new _.Uj("PAGE_CONTENT_EXTRACTOR_TOKEN");var OE=function(D){D?(this.container=D,this.containerWasInjected=!0):this.containerWasInjected=!1};
OE.prototype.openDialog=function(D,v,h){var a=this,Q;return _.M(function(G){(Q=a.container)==null||Q.openDialog(D,v,h);_.YI(G)})};
OE.prototype.closeDialog=function(){var D=this,v;return _.M(function(h){(v=D.container)==null||v.closeDialog();_.YI(h)})};
OE.prototype.isDialogOpen=function(){var D=this,v,h;return _.M(function(a){return a.return((h=(v=D.container)==null?void 0:v.isDialogOpen())!=null?h:!1)})};
OE[MM]=[_.PV(tSp)];_.wdb=new _.Uj("POPUP_CONTROLLER_TOKEN");var eB3=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
eB3.prototype.registerPanel=function(D,v){if(D){this.panelMap.set(D,v);var h=this.pendingPanelResolvers.get(D);h&&(h.resolve(v),this.pendingPanelResolvers.delete(D))}};
eB3.prototype.getPanel=function(D){var v=this,h;return _.M(function(a){return(h=v.panelMap.get(D))?a.return(h):a.return(nor(v,D))})};
var nor=function(D,v){var h,a;return _.M(function(Q){if(h=D.pendingPanelResolvers.get(v))return Q.return(h.promise);a=new _.gT;D.pendingPanelResolvers.set(v,a);return Q.return(a.promise)})},Ozr=function(D,v){eB3.call(this);
var h=this;this.popupController=D;this.persistentPanelController=v;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return h.panelMap.size}}};
_.J(Ozr,eB3);_.V=Ozr.prototype;_.V.getReloadContinuation=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.getPanel(D),2);h=a.yieldResult;return a.return(h.getReloadContinuation())})};
_.V.showPanel=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E,I;return _.M(function(S){if(S.nextAddress==1){h=D;a=h.identifier;Q=h.panelContents;G=h.config;x=h.extras;f=h.panelUpdatableFields;C=h.updatePanelContinuationData;U=D.target;C&&v.updatePanelContinuationDatas.set(a,C);if((L=G)==null?0:(Z=L.engagementPanelPopupPresentationConfig)==null?0:Z.popupType)if(E=G.engagementPanelPopupPresentationConfig.popupType,U===void 0&&(U=document.body),E==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!v.persistentPanelController)return _.yR(new _.XH("Persistent panel controller is not available.")),
S.return();var B=v.persistentPanelController;B.persistentPanelIdentifiers.has(a)||(B.persistentPanelWrapper.appendChild(B.engagementPanelElement({panelIdentifier:a},{isPersistentPanel:!0})),B.persistentPanelIdentifiers.add(a));a:switch(_.W4.currentPageSubTypeSelector(B.store.getState())){case "watch":var A="WATCH";break a;default:A="APP"}_.KM2(B,A);B.store.dispatch(Ebp(!0))}else{if(E==="PANEL_POPUP_TYPE_DIALOG"||E==="PANEL_POPUP_TYPE_DROPDOWN"){B=S.return;A=v.popupController;var d=A.openPopup;a:switch(E){case "PANEL_POPUP_TYPE_DIALOG":var b=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":b="DROPDOWN";break a;default:throw Error("nj`"+E);}return B.call(S,d.call(A,a,Q,b,U))}_.yR(new _.XH("Popup type "+E+" not supported in PanelController."))}return S.yield(v.getPanel(a),2)}I=S.yieldResult;(Q||f)&&I.updatePanel(Q,!1,x,f);I.showPanel(x);_.YI(S)})};
_.V.hidePanel=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(v.getPanel(D),2);h=Q.yieldResult;h.hidePanel();v.popupController.closePopup(D);(a=v.persistentPanelController)!=null&&a.persistentPanelIdentifiers.has(D)&&a.store.dispatch(Ebp(!1));_.YI(Q)})};
_.V.isVisible=function(D,v){var h=this,a;return _.M(function(Q){if(Q.nextAddress==1)return v&&!h.panelMap.has(D)?Q.return(!1):Q.yield(h.getPanel(D),2);a=Q.yieldResult;return Q.return(a.isVisible())})};
_.V.updatePanel=function(D){var v=this,h,a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1){h=D;a=h.identifier;Q=h.panelContents;G=h.shouldFocus===void 0?!1:h.shouldFocus;x=h.extras;f=h.panelUpdatableFields;C=h.updatePanelContinuationData;if(!Q&&!f)return L.return();C&&v.updatePanelContinuationDatas.set(a,C);return L.yield(v.getPanel(a),2)}U=L.yieldResult;U.updatePanel(Q,G,x,f);Q&&_.g("enable_ai_companion")&&v.registerPanelContent(a,Q);_.YI(L)})};
_.V.registerPanelContent=function(D,v){D&&this.panelContentMap.set(D,v)};
_.V.unregisterPanelContent=function(D){this.panelContentMap.delete(D)};
_.V.getPanelContent=function(D){return this.panelContentMap.get(D)};
_.V.getUpdatePanelContinuationData=function(D){return this.updatePanelContinuationDatas.get(D)};
Ozr[MM]=[_.wdb,_.PV(_.a8)];var KA=function(D,v){this.innertubeTransportService=D;this.JSC$18410_screenManager=v},T0$=function(D){var v;
return!((v=D.panelLoadingStrategy)==null||!v.requestTemplate)};
KA.prototype.makeRequest=function(D){var v=this,h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:if(!T0$(v)){Q.jumpTo(2);break}_.gE(Q,3);return Q.yield(_.v4(v.innertubeTransportService,D),5);case 5:return h=Q.yieldResult,h?Q.return(h.content):(_.mV(Error("oj")),Q.return(void 0));case 3:a=_.NS(Q),_.mV(a);case 2:return Q.return(void 0)}})};
KA.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
KA.prototype.execute=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z;return _.M(function(E){if(E.nextAddress==1){h=D;a=h.data;Q=h.fallbackVe;G=h.parentVe;x=h.createScreenConfig;f=h.renderFn;C=h.command;v.panelLoadingStrategy=a;var I,S,B=((I=v.panelLoadingStrategy)==null?0:I.screenVe)?(S=v.panelLoadingStrategy)==null?void 0:S.screenVe:Q;B&&_.bl(v.JSC$18410_screenManager,B,G,x);return(U=v.getContent())?E.yield(f(U),2):E.jumpTo(2)}return E.nextAddress!=4?T0$(v)?E.yield(v.makeRequest(C),4):E.return():(Z=L=
E.yieldResult)?E.yield(f(Z),0):E.return()})};
KA[MM]=[_.RX,_.aS];var RBd;RBd=function(D,v){this.engagementPanelElement=D;this.store=v;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.KM2=function(D,v){var h=D.persistentPanelContainerMap.get(v);h?h.contains(D.persistentPanelWrapper)||(D=D.persistentPanelWrapper,_.o3=!0,_.FZ.set(D,!0),h.insertBefore(D,null),_.FZ.delete(D),_.o3=!1):_.yR(new _.XH("Persistent panel container not found for surface "+v+"."))};
RBd[MM]=[rat,_.Mv];var T8=function(){};
T8.prototype.getContainer=function(){return _.xE()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
T8.prototype.openSheet=function(D,v){var h=this,a,Q,G,x,f,C;return _.M(function(U){switch(U.nextAddress){case 1:return a={stack:[],error:void 0,hasError:!1},_.gE(U,2,3),Q=Q6,U.yield(h.isSheetOpen(),5);case 5:G=U.yieldResult;JZc(a,dHO(Q));if(G){if(_.g("web_close_sheet_if_same_target_killswitch")&&v&&h.currentTarget===v)return(x=h.getContainer())==null||x.closeSheet(),U.return();h.pendingData={data:D,target:TJd(h,v)};return U.return()}D.viewModel&&(D={viewModel:D.viewModel});(f=h.getContainer())==null||
f.openSheet(D,v);h.currentTarget=v;case 3:_.S_(U);p6i(a);_.pf(U,0);break;case 2:C=_.NS(U),a.error=C,a.hasError=!0,U.jumpTo(3)}})};
T8.prototype.closeSheet=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return h.yield((v=D.getContainer())==null?void 0:v.closeSheet(),2);if(h.nextAddress!=4)return D.currentTarget=void 0,D.pendingData?h.yield(D.openSheet(D.pendingData.data,D.pendingData.target),4):h.jumpTo(0);D.pendingData=void 0;_.YI(h)})};
T8.prototype.isSheetOpen=function(){var D=this,v,h;return _.M(function(a){return a.return((h=(v=D.getContainer())==null?void 0:v.isSheetOpen())!=null?h:!1)})};
var TJd=function(D,v){if(!_.g("web_parent_target_for_sheets"))return v;var h,a;return(a=(h=D.getContainer())==null?void 0:h.getParentTarget(v))!=null?a:v};var Mh=window.documentPictureInPicture;var t7I=_.DK(["dark"]),rYc=_.DK(["system-icons"]),uzq=_.DK(["typography"]),DQi=_.DK(["lang"]),vlc=_.DK(["style"]),TL8=_.DK(["dir"]),Rnc=_.DK(["rounded-container"]),iwI=_.DK(["style"]),ayA=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Rf=function(D){this.JSC$18427_clientRoot=D;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Rf.prototype.openWindow=function(D){var v=this,h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:if(!window.documentPictureInPicture||!_.cA()||v.currentPipWindow)return Q.return(!1);_.gE(Q,2);return Q.yield((a=Mh?Mh:null)==null?void 0:a.requestWindow(D),4);case 4:h=Q.yieldResult;_.rl(Q,3);break;case 2:return _.NS(Q),Q.return(!1);case 3:if(!h)return Q.return(!1);h.addEventListener("pagehide",function(){izm(v)});
h.addEventListener("resize",v.handlePipWindowResize);hG8(h);Qh8(h);CLr(h);return Q.yield(Kyc(h),5);case 5:if(!enc())return Q.return(!1);v.currentPipWindow=h;v.JSC$18427_eventForwarder=$Qq(h,v.JSC$18427_clientRoot);v.pipWindowResizeDelay=new _.xR(function(){v.currentPipWindow&&_.zU(v.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.lU(v.currentPipWindow.innerWidth,v.currentPipWindow.innerHeight)])},h);
v.pipWindowResizeDelay.start();return Q.return(!0)}})};
Rf.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var izm=function(D){if(D.currentPipWindow){var v,h;(v=Mh?Mh:null)==null||(h=v.window)==null||h.close();D.currentPipWindow.removeEventListener("resize",D.handlePipWindowResize);var a;(a=D.pipWindowResizeDelay)==null||a.dispose();D.pipWindowResizeDelay=void 0;var Q;(Q=D.JSC$18427_eventForwarder)==null||Q.stop();D.JSC$18427_eventForwarder=void 0;v=_.P(D.onCloseCallbacks);for(h=v.next();!h.done;h=v.next())h=h.value,h();D.onCloseCallbacks=[];D.currentPipWindow=null}};
Rf.prototype.getWindow=function(){return this.currentPipWindow};
var WMs=function(D,v){var h;(h=D.onCloseCallbacks)==null||h.push(v)};
Rf.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.cA()};
_.GT.Object.defineProperties(Rf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Rf[MM]=[FWm];var tRd=new _.Uj("PICTURE_IN_PICTURE_CONTROLLER");var Gv2=function(D,v){this.lengthY=this.lengthX=0;this.lengthX=v.x-D.x;this.lengthY=v.y-D.y};var r3s=function(){},hZr=function(D,v){var h;
(h=D.headerElement)==null||h.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:v}))};var uYS=function(){};
uYS.prototype.openPopup=function(D,v,h,a){var Q=this,G;return _.M(function(x){if(!Q.container)return x.return();G={openPopupAction:{popup:v,popupType:h,uniqueId:D}};return x.return(Q.container.handleOpenPopupAction(G,a))})};
uYS.prototype.closePopup=function(D){this.container&&this.container.closePopup(D)};var DSI=function(){this.openTunnels=new Map},ME8=function(D,v,h){if(Cmr(h)){var a=_.i9(h,"gclid");
h={handleEvent:function(f){v&&!v.closed&&typeof v.postMessage==="function"&&f&&f.origin&&f.source===v&&f.data&&f.data.action==="gcl_setup"&&v.postMessage(Object.assign({},{action:"gcl_transfer"},a&&{gclid:a},{gadSource:2}),f.origin)}};
for(var Q=_.P(D.openTunnels),G=Q.next();!G.done;G=Q.next()){var x=_.P(G.value);G=x.next().value;x=x.next().value;if(G.closed)try{window.removeEventListener("message",x),D.openTunnels.delete(G)}catch(f){_.mV(f)}}v&&D.openTunnels.size<15&&(D.openTunnels.set(v,h),window.addEventListener("message",h))}};var vId=function(){this.clientParams=new Map},REb=function(D){for(var v=_.P(D.clientParams.keys()),h=v.next();!h.done;h=v.next())h=h.value,h.startsWith("yt-mini-app-share")&&D.clientParams.delete(h)};var hJ3=function(D,v){_.AN.call(this);var h=this;this.shortsController=D;this.storeWithShorts=v;D=_.Oe(this.storeWithShorts,_.ci2,function(a){if(a){var Q,G=(Q=h.shortsController.getRoot())==null?void 0:Q.getPlayer(),x;(Q=(x=h.shortsController.alternativePlayerContainerElement)==null?void 0:x.getPlayerContainer())&&(G==null||G.appendTo(Q))}else{var f;x=(f=h.shortsController.alternativePlayerContainerElement)==null?void 0:f.getPlayerContainer().querySelector("#player");Q=h.shortsController.activeIndex;
(f=(G=h.shortsController.getRoot())==null?void 0:G.querySelector('ytd-reel-video-renderer[id="'+Q+'"] #player-container'))&&(x==null||x.appendTo(f,void 0,!0))}});
this.addOnDisposeCallback(D)};
_.J(hJ3,_.AN);var ix=function(D,v,h,a){var Q=this;this.storeWithShorts=D;this.ephemeralResponseStore=v;this.innertubeTransportService=h;this.innertubeTransportLoader=a;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Th(_.CS);this.isShortsPipActive=_.Th(_.oi);this.nextReelVe=_.En(56921);this.prevReelVe=_.En(56922);this.backButtonVe=_.En(22156);this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}}},axK=function(D){D.unsubscribeFromStore=
_.Oe(D.storeWithShorts,_.BF7,function(v){D.initOrDisposeActiveModules(v);
!v&&D.storeWithShorts.getState().shorts.isFullscreen&&(_.MF(document.documentElement),D.storeWithShorts.dispatch(_.kI4(!1)))});
D.initOrDisposeActiveModules(_.BF7(D.storeWithShorts.getState()))},Exb,Idp,$SU;
ix.prototype.initOrDisposeActiveModules=function(D){D?this.activeModules.push(new hJ3(this,this.storeWithShorts)):(_.PQ(this.activeModules),this.activeModules.length=0)};
ix.prototype.registerRootElement=function(D){this.rootElement=D;axK(this)};
ix.prototype.getRoot=function(){return this.rootElement};
ix.prototype.setActiveIndex=function(D){this.activeIndex=D};
_.ox9=function(D,v){var h,a,Q,G,x,f,C;return _.M(function(U){switch(U.nextAddress){case 1:return h=new hs,(a=h.JSC$13126_getStoreKey(v))&&D.ephemeralResponseStore.has(a)?U.yield(D.ephemeralResponseStore.get(a),7):U.yield($SU(D,v),4);case 4:Q=U.yieldResult;if(!a){U.jumpTo(3);break}G=Lj(Q,3600);return U.yield(D.ephemeralResponseStore.put(a,new _.m_(G)),3);case 7:Q=(x=U.yieldResult)==null?void 0:_.Vf(x);case 3:return((f=Q)==null?0:f.replacementEndpoint)&&(C=_.k(Q.replacementEndpoint,_.AQ))&&Q.sequenceContinuation&&
(C.sequenceParams=Q.sequenceContinuation),U.return(Q)}})};
Exb=function(D,v){v=(new af).JSC$13126_getStoreKey(v);return!!v&&D.ephemeralResponseStore.has(v)};
Idp=function(D,v,h){var a,Q,G,x,f;_.M(function(C){if(C.nextAddress==1){a=new af;Q=a.JSC$13126_getStoreKey(v);if(!Q)return C.return();if(h.reelWatchSequenceResponse)return G=Lj(h.reelWatchSequenceResponse,3600),D.ephemeralResponseStore.put(Q,new _.m_(G)),C.jumpTo(0);if(!D.ephemeralResponseStore.has(Q))return C.jumpTo(0);f=h;return C.yield(D.ephemeralResponseStore.get(Q),4)}f.reelWatchSequenceResponse=(x=C.yieldResult)==null?void 0:_.Vf(x);_.YI(C)})};
$SU=function(D,v){var h=h===void 0?{}:h;var a,Q,G;return _.M(function(x){switch(x.nextAddress){case 1:if(D.innertubeTransportService){a=D.innertubeTransportService;x.jumpTo(2);break}if(!D.innertubeTransportLoader){_.OM(Error("qj"));x.jumpTo(2);break}return x.yield(D.innertubeTransportLoader(),4);case 4:a=x.yieldResult;case 2:return x.yield((Q=a)==null?void 0:_.v4(Q,v,h),5);case 5:return G=x.yieldResult,x.return(G)}})};
_.GT.Object.defineProperties(ix.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ix[MM]=[$zp,_.s0,_.PV(_.RX),_.PV(h9p)];_.Q9d=new _.Uj("STORAGE_MANAGER_TOKEN");var JKO=["touchmove","scroll"];var GeC=!1;var Zcc=!1;var pLO={onSpanEnd:function(D){D.parentId==null&&(GeC||(UQr(),setInterval(UQr,6E5),GeC=!0),Elc(D,"web_tracing_action"))}};var V_C=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Pzm;
V_C.prototype.enqueue=function(D,v){v===1?this.currentPersistentToast=D:this.queue.push(D);this.openToast()};
V_C.prototype.openToast=function(){var D;(D=this.currentToast)!=null&&D.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Wk=new _.Uj("TOAST_MANAGER_TOKEN");var xS$=new _.Uj("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var M_2=new _.Uj("VIEW_TRANSITION_COORDINATOR_TOKEN");var fxX=function(D){this.config=D;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;D=_.P(D.transitionConfigs);for(var v=D.next();!v.done;v=D.next())v=_.P(v.value).next().value,this.transitionTasksMap.set(v,[])};
fxX.prototype.registerElement=function(D,v,h){h=h===void 0?!1:h;for(var a=_.P(Object.keys(v)),Q=a.next(),G={};!Q.done;G={viewTransitionName:void 0},Q=a.next()){Q=Q.value;G.viewTransitionName=v[Q];var x=this.elementTasksMap.get(D),f=void 0;if((f=x)==null?0:f.has(Q)){_.H1(new _.XH("Element already registered for transition",D.tagName,Q));break}x=x||new Map;x.set(Q,{beforeTransition:function(C){return function(){D.style.viewTransitionName=C.viewTransitionName}}(G),
afterTransition:function(){D.style.viewTransitionName&&(D.style.viewTransitionName="")},
runOnce:h});this.elementTasksMap.set(D,x)}};
_.Kj=function(D,v){var h=D.elementTasksMap.get(v);h&&(h.clear(),h.size===0&&D.elementTasksMap.delete(v))};
fxX[MM]=[xS$];var oIS=_.H(function(D){var v=_.va("yt-expandable-metadata-header-view-model"),h=_.Jd(function(a){if(!_.H4(_.ms(a),v.value,["A".toString(),"BUTTON".toString()])){var Q;(Q=D.expandedCallback)==null||Q.call(D,!1)}});
return _.F("yt-expandable-metadata-header-view-model",{el:v,class:"ytExpandableMetadataHeaderViewModelHost"},_.F(_.z,{cond:function(){return D.expanded()},
then:function(){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":h},_.F("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.F(_.z,{cond:function(){return D.data().expandedTitleImage},
then:function(a){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.F(_.PX,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:a}))}}),_.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.F(_.IY,{text:function(){return D.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.F(_.IY,{text:function(){return D.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.F(_.IY,{text:function(){return D.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.F("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.F(_.c4,{data:function(){return D.data().infoButton}},{buttonViewModel:_.s$}),_.F(_.c4,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
onClick:function(){var Q;(Q=D.expandedCallback)==null||Q.call(D,!1)}})}})))},
else:function(){return _.F(Czs,Object.assign({},D))}}))},"Tf"),FkK=_.H(function(D){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.F(_.z,{cond:function(){return D.data().collapsedLabelImage},
then:function(v){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.F(_.PX,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:v,alt:""}))}}),_.F(_.IY,{text:function(){return D.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Uf"),Czs=_.H(function(D){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Jd(function(){var v;return void((v=D.expandedCallback)==null?void 0:v.call(D,!0))})},_.F("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.F(_.z,{cond:function(){return D.data().collapsedImage},
then:function(v){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.F(_.PX,{height:20,preserveHeight:!0,preserveWidth:!0,data:v,alt:""}))}}),_.F(_.z,{cond:function(){return D.data().showLeadingCollapsedLabel},
then:function(){return _.F(FkK,Object.assign({},D))}}),_.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.F(_.IY,{text:function(){return D.data().collapsedTitle}}))),_.F("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.F(_.z,{cond:function(){return!D.data().showLeadingCollapsedLabel},
then:function(){return _.F(FkK,Object.assign({},D))}}),_.F(_.c4,{data:function(){return D.data().infoButton}},{buttonViewModel:_.s$}),_.F(_.c4,{data:function(){return D.data().expandButton}},{buttonViewModel:function(v){return _.F(_.s$,{data:v.data,
onClick:function(){var h;(h=D.expandedCallback)==null||h.call(D,!0)}})}})))},"Vf");_.zJd=_.H(function(D){var v=_.P(_.lL(function(){return D.data().initiallyExpanded})),h=v.next().value,a=v.next().value,Q,G=(Q=_.xd().resolve(_.PV(_.$5)))==null?void 0:Q(),x=function(){var f=D.data().colorData;
if(f)return G?f==null?void 0:f.darkColorPalette:f==null?void 0:f.lightColorPalette};
return _.F("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.NL({"background-color":function(){var f=x();return(f==null?0:f.section2Color)?_.uu(f.section2Color):""}})},_.F(_.c4,{data:function(){return D.data().header}},{expandableMetadataHeaderViewModel:function(f){return _.F(oIS,{data:f.data,
expanded:function(){return!!h()},
expandedCallback:function(C){a(C)}})}}),_.F(_.z,{cond:function(){return h()},
then:function(){return _.F("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.F(_.c4,{data:function(){return D.data().expandedContent}},{horizontalShelfViewModel:function(f){return _.F(_.fd,{data:f.data,
includeMargin:!0,forceNarrowLayout:!0,palette:x})},
videoSummaryContentViewModel:function(f){return _.F(iFt,{data:f.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(f){return _.F(_.sp,{data:f.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(f){return _.F(_.hKJ,{data:f.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.F(_.c4,{data:function(){return D.data().expandedBottomButtons}},{buttonViewModel:function(f){return _.F("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.F(_.s$,{data:f.data}))}}))}}))},"Wf");var USX=_.H(function(D){var v=D.text;var h=D.marqueeSpacing;var a=D.scrollDelay;var Q=D.scrollDuration;var G=D.enableMarqueeScroll;D=D.large;var x=_.P(_.Zq(!1,void 0,"WyNYFf")),f=x.next().value,C=x.next().value,U=_.P(_.Zq(0,void 0,"OoTdhe"));x=U.next().value;var L=U.next().value,Z=_.va("marquee-scroll");U=_.va("div");var E=_.va("span"),I=_.xd().resolve(_.Gh);_.bW(function(){if(G()){var A=E.value.getBoundingClientRect().width,d=Z.value.getBoundingClientRect().width;if(A>d){var b=(I==="ltr"?-1:1)*(A+
(h?h():16));Promise.resolve().then(function(){C(!0);L(b)})}}},"dv0Anf");
var S={},B={};return _.F("marquee-scroll",{class:_.S3("ytMarqueeScrollHost",(S.ytMarqueeScrollHostLarge=D,S)),el:Z},_.F("div",{id:"marquee-scroll-inner-container",class:_.S3("ytMarqueeScrollInnerContainer",(B.ytMarqueeScrollAnimationEnabled=function(){return f()},B)),
el:U,style:_.NL({gap:h?(0,_.Gp)(h):"16px","animation-duration":Q?iQp(Q):"16s","animation-delay":a?iQp(a):"3s","--marquee-translate":(0,_.Gp)(x)})},_.F("span",{el:E,dir:"auto"},_.F(_.IY,{text:v,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.F(_.z,{cond:f,then:function(){return _.F("span",{"aria-hidden":"true",dir:"auto"},_.F(_.IY,{text:v,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Yf");_.LkU=_.H(function(D){var v=D.data;var h=D.overlayDensity;D=_.Jd(function(){v().onTapCommand&&_.r4(v().onTapCommand);return!1});
var a=_.SsA(),Q=function(){return(h==null?void 0:h())===1?22:16},G={};
return _.F("reel-sound-metadata-view-model",{class:_.S3("ytReelSoundMetadataViewModelHost",(G.ytReelSoundMetadataViewModelHostLarge=function(){return(h==null?void 0:h())===1},G)),
"on:click":D,tabindex:0,role:"button","on:keydown":a},_.F("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.F(_.z,{cond:function(){return v().musicIcon},
then:function(x){return _.F(_.PX,{data:x,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Q})}}),_.F("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.F(USX,{text:function(){return v().soundMetadata},
enableMarqueeScroll:function(){return!!v().enableMarqueeScroll},
large:function(){return(h==null?void 0:h())===1}}))))},"Zf");var Zf2,EI2,ts,SX2,ppm,keS,YXZ,NEr;Zf2=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];EI2=_.oZ("wil_icon_max_concurrent_fetches",Infinity);
ts=function(D,v,h){var a=this;this.iconSet=D;this.appDirection=v;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=_.g("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.g("wil_icon_network_first");this.renderWhenIdle=_.g("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.g("wil_icon_load_immediately");this.isPurging=!1;D=function(){a.cacheStorageAvailable&&(a.cacheStorageAsync=_.$L.caches.open("yt-icons").then(function(G){return a.cacheStorageSync=G}).catch(function(){a.cacheStorageAvailable=!1}))};
h=(h==null?void 0:h())||{};h=_.P(Object.entries(h));for(v=h.next();!v.done;v=h.next()){var Q=_.P(v.value);v=Q.next().value;Q=Q.next().value;Q=SA(Q);IxC(Q);this.iconCache[v]=Q.cloneNode(!0)}this.isPurging=gIC(this);this.isPurging instanceof Promise?this.isPurging.then(D):D()};
_.XB8=function(D,v){var h=D.resolveIcon(v);return h?D.renderingMode===1?keS(D,h,D.renderingMode):(v=D.iconCache[h.url])?(v=v.cloneNode(!0),SX2(D,v),keS(D,h,D.renderingMode,v)):_.JwI(D,h).then(function(a){var Q=a?0:1;SX2(D,a);return keS(D,h,Q,a)}):(_.H1(new _.XH("Icon not found",{iconShape:v})),function(){})};
SX2=function(D,v){if(v){D.counter+=1;D="_yt"+D.counter;v=[v].concat(_.j_(v.getElementsByTagName("*")));v=_.P(v);for(var h=v.next();!h.done;h=v.next())if(h=h.value,h.tagName==="style"&&h.textContent)h.textContent=ppm(h.textContent,D,!0);else for(var a=_.P(h.attributes),Q=a.next();!Q.done;Q=a.next()){Q=Q.value;Q.name==="id"&&(Q.value+=D);["mask","fill","clip-path"].includes(Q.name)&&(Q.value=ppm(Q.value,D));if(Q.name==="style"){var G=h.style;try{G.cssText=ppm(G.cssText,D,!0)}catch(L){var x=void 0,f=
void 0,C=void 0,U=void 0;ry({error:((x=L)==null?void 0:(C=(f=x).toString)==null?void 0:C.call(f))||"",el:h.outerHTML,style:!!G,cssText:(U=G)==null?void 0:U.cssText})}}Q.name==="xlink:href"&&(Q.value=Q.value.replace(/#(.*)/,"#$1"+D))}}};
ppm=function(D,v,h){var a=/url\(["']?#(.*?)["']?\)/;(h===void 0?0:h)&&(a=/url\(["']?#(.*?)["']?\)/g);return D.replace(a,"url(#$1"+v+")")};
keS=function(D,v,h,a){return function(Q,G){var x=Object.assign({},{iconColor:"currentcolor",iconWidth:v.size+"px",iconHeight:v.size+"px",iconDisplay:"block"},G);G=_.l9("DIV");var f=x.iconColor,C=x.iconFilter;x="width: "+x.iconWidth+"; height: "+x.iconHeight+"; display: "+x.iconDisplay+";";C&&(x+=" filter: "+C+";");h===0&&(x+=" fill: "+f+";");h===1&&(C=v.url,x+=" -webkit-mask: url("+C+") no-repeat center / cover; mask: url("+(C+") no-repeat center / cover; background-color: ")+f);v.allowMirroring&&
D.appDirection==="rtl"&&(x+=" transform: scale(-1, 1); transform-origin: center center;");G.setAttribute("style",x);h===0&&a&&G.appendChild(a);Q.appendChild(G)}};
_.JwI=function(D,v){var h,a,Q;return _.M(function(G){h=function(x){return Wd(x)};
a=v.url;if(!lxK(a))throw Error("sj");Q=NEr(D,a);return G.return(Q.then(function(x){return x.clone().text()}).then(function(x){var f=h(x);
x=v.size;var C=_.l9("DIV");_.VM(C,f);f=_.Np(C.firstElementChild!==void 0?C.firstElementChild:_.Ary(C.firstChild,!0));x=IxC(f,x);D.iconCache[a]=x.cloneNode(!0);delete D.responsePromises[a];return x}).catch(function(){}))})};
YXZ=function(D){var v,h=(v=D.requestAninmationFrameResolver)==null?void 0:v.promise;h||(D.requestAninmationFrameResolver=new _.gT,h=D.requestAninmationFrameResolver.promise,_.$L.requestAnimationFrame(function(){var a;(a=D.requestAninmationFrameResolver)==null||a.resolve();D.requestAninmationFrameResolver=null}));
return h};
NEr=function(D,v){var h,a;return _.M(function(Q){if(Q.nextAddress==1)return D.waitForAnimationFrame?Q.yield(YXZ(D),2):Q.jumpTo(2);h=D.responsePromises[v];h||(a=function(){var G,x,f;return _.M(function(C){switch(C.nextAddress){case 1:if(!D.cacheStorageAvailable){G=void 0;C.jumpTo(2);break}if(x=D.cacheStorageSync){C.jumpTo(3);break}return C.yield(D.cacheStorageAsync,4);case 4:x=C.yieldResult;case 3:G=x;case 2:return f=G,D.isNetworkFirstStrategy?C.return(D.fetchAndUpdateCache(v,f).catch(D.getCacheStorageResponse.bind(D,
v,f))):C.return(D.getCacheStorageResponse(v,f).catch(D.fetchAndUpdateCache.bind(D,v,f)))}})},h=D.renderWhenIdle?new Promise(function(G,x){_.c1(_.HK,function(){a().then(G).catch(x)},10)}):a(),D.responsePromises[v]=h);
return Q.return(h.catch(function(G){delete D.responsePromises[v];ry({error:(G==null?0:G.toString)?G.toString():"",url:v});throw G;}))})};
ts.prototype.fetchAndUpdateCache=function(D,v){var h=this;return _.M(function(a){return a.return(BEd(h,D).then(function(Q){cws(h,D,Q,v);return Q}))})};
var BEd=function(D,v){var h;return _.M(function(a){if(D.numFetches<EI2)return D.numFetches+=1,a.return(XpX(D,v).finally(function(){--D.numFetches;if(Object.keys(D.queuedResponseResolvers).length){var Q=Object.keys(D.queuedResponseResolvers)[0],G=D.queuedResponseResolvers[Q];delete D.queuedResponseResolvers[Q];G.resolve(BEd(D,Q))}}));
h=new _.gT;D.queuedResponseResolvers[v]=h;return a.return(h.promise)})},XpX=function(D,v,h){h=h===void 0?2:h;
var a;return _.M(function(Q){a={credentials:"same-origin",priority:"low"};return Q.return(_.$L.fetch(v,a).then(function(G){return G.ok?G:Promise.reject(Error("tj`"+G.status+"`"+G.statusText))}).catch(function(G){if(h>0)return XpX(D,v,h-1);
throw G;}))})},cws=function(D,v,h,a){_.M(function(Q){return a?Q.return(new Promise(function(G){_.c1(_.HK,function(){var x,f;
return _.M(function(C){switch(C.nextAddress){case 1:if(!D.isNetworkFirstStrategy){x=void 0;C.jumpTo(2);break}return C.yield(a.match(v).catch(function(){}),3);
case 3:x=C.yieldResult;case 2:if(f=x){C.jumpTo(4);break}return C.yield(a.put(v,h.clone()).catch(function(U){ry({error:(U==null?0:U.toString)?U.toString():"",url:v})}),4);
case 4:G(),_.YI(C)}})},50)})):Q.return()})};
ts.prototype.getCacheStorageResponse=function(D,v){return _.M(function(h){return v?h.return(v.match(D).then(function(a){return a&&a.ok?a:Promise.reject()})):h.return(Promise.reject())})};
var IxC=function(D,v){v===void 0||D.getAttribute("viewBox")||D.setAttribute("viewBox","0 0 "+v+" "+v);D.setAttribute("focusable","false");D.setAttribute("aria-hidden","true");try{D.style.pointerEvents="none",D.style.display="inherit",D.style.width="100%",D.style.height="100%"}catch(Q){var h;ry({error:((h=Q)==null?0:h.toString)?Q.toString():""});try{D.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(G){var a;ry({error:((a=G)==null?0:a.toString)?G.toString():
""})}}return D},lxK=function(D){for(var v=_.P(Zf2),h=v.next();!h.done;h=v.next())if(D.startsWith(h.value)&&D.endsWith(".svg"))return!0;
return!1};
ts.prototype.resolveIcon=function(D){return this.iconSet.resolveIcon(D)};
var ry=function(D){_.yR(new _.XH("Error in IconManager",D))},gIC=function(D){if(_.g("wil_icons_cache_purge_killswitch"))return!1;
try{var v=_.$L.localStorage}catch(G){return!1}if(!v||!D.cacheStorageAvailable)return!1;var h=function(G){try{var x;(x=v)==null||x.setItem("yt-icons-last-purged",G.toString())}catch(C){var f;ry({error:((f=C)==null?0:f.toString)?C.toString():""})}},a=Number(v.getItem("yt-icons-last-purged"));
if(!a)return a=new Date,a=a.setDate(a.getDate()-Math.floor(Math.random()*90+1)),h(a),!1;if(function(G,x){G=new Date(G);x=new Date(x);return x.getMonth()-G.getMonth()+12*(x.getFullYear()-G.getFullYear())}(a,Date.now())<3)return!1;
try{return _.$L.caches.delete("yt-icons").then(function(G){G&&h(Date.now());return G}).catch(function(){return!1}).finally(function(){D.isPurging=!1})}catch(G){var Q;
ry({error:((Q=G)==null?0:Q.toString)?G.toString():""});return!1}};
ts[MM]=[ky$,_.Gh,_.PV(pmX)];_.ux=function(D,v){this.iconManager=D;this.iconsToFetch=v};
_.ux[MM]=[_.JD,_.PV(JbS)];var Aw$=function(){};var qXm=function(D,v,h){this.requestKey=D;this.b3Z=v;this.bxQ=h;this.cfl=function(){return new XMLHttpRequest};
this.nl6=void 0;this.ip8=[]};
qXm.prototype.getLatestChallengeResponse=function(){return this.bxQ};
var dp$=function(D,v,h){var a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){_.wK("attestation_challenge_fetch");_.ea("att_fs",void 0,"attestation_challenge_fetch");if(!D.nl6)throw new _.eZ(9,"Missing fetcher");return f.yield(D.nl6(v,h),2)}a=f.yieldResult;G=(Q=a)==null?void 0:Q.bgChallenge;if(!G)throw new _.eZ(15,"Missing field");D.bxQ=a;D.ip8.forEach(function(C){C(a)});
x=Zsc(G);_.ea("att_fc",void 0,"attestation_challenge_fetch");yp("attestation_challenge_fetch");return f.return(x)})},$x9=function(D,v){var h,a,Q,G,x;
return _.M(function(f){switch(f.nextAddress){case 1:h=new L0(100,3E5,.25,2),a=void 0;case 2:if(!(h.currBackoffCount_<10)){f.jumpTo(4);break}_.gE(f,5);if(!(h.currBackoffCount_>0)){f.jumpTo(7);break}return f.yield(NZc(h.getValue()),7);case 7:return f.yield(bfS(D,v),9);case 9:return Q=f.yieldResult,f.return(Q);case 5:G=_.NS(f);G instanceof _.eZ?a=G:(x=G instanceof Error?G.message:"Unknown",a=new _.eZ(9,x));Kkb(h);f.jumpTo(2);break;case 4:if(a)throw a;throw new _.eZ(9,"Unknown error");}})},bfS=function(D,
v){v=JNs(pQ$(new SNs,v),D.requestKey);
var h=new _.gT,a=D.cfl();a.open("POST",D.b3Z);a.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");a.setRequestHeader("Content-Type","application/json+protobuf");a.onload=function(){if(_.hkL(a)){var Q=qYR(a.responseText);h.resolve(Q)}else h.reject(new _.eZ(_.VOc(_.Uz(a)),a.statusText))};
a.onerror=function(){h.reject(new _.eZ(_.VOc(_.Uz(a)),a.statusText))};
a.send(v.serialize());return h.promise};var j9U=function(D){this.networkStatusManager=D;this.isDownloaded=S7O===void 0?function(){return!1}:S7O;
this.isReady=!1;this.jM1=dS3(this)},dS3=function(D){var v;
return _.M(function(h){if(h.nextAddress==1)return h.yield(y$O(),2);if(h.nextAddress!=3)return v=h.yieldResult,h.yield(izR(v),3);D.m2=h.yieldResult;BZf(D.m2).then(function(){D.isReady=!0});
return h.return(D.m2)})},s9U=function(D,v,h){D.m2?(D=D.m2.znr({pG:h,
sx8:!0,ppQ:!0}),v.serviceIntegrityDimensions={poToken:D}):_.mV(Error("vj"))};
j9U.prototype.processContext=function(D){var v=this;if(!D.input.match(_.xV(IeF)))return _.ZE();var h=D.innerTubeRequest,a=h.videoId;return!a||this.isDownloaded(h)||this.networkStatusManager&&!this.m2&&!this.networkStatusManager.isNetworkAvailable()?_.ZE():this.m2?this.isReady?(s9U(this,h,a),_.ZE()):new LH(BZf(this.m2).then(function(){s9U(v,h,a)})):new LH(this.jM1.then(function(Q){return _.M(function(G){if(G.nextAddress==1)return G.yield(BZf(Q),2);
s9U(v,h,a);_.YI(G)})}))};var mSI=new _.Uj("WEB_PO_CONTEXT_PROCESSOR");var HfS=function(D,v){var h=this;this.oAQ=0;var a;this.pGE=(a=v==null?void 0:v.pGE)!=null?a:window;this.networkStatusManagerPromise=v==null?void 0:v.networkStatusManagerPromise;var Q;this.requestKey=(Q=v==null?void 0:v.requestKey)!=null?Q:_.FH("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var G;this.k45=(G=v==null?void 0:v.k45)!=null?G:function(C){return new tJ(C)};
var x;a=(x=v==null?void 0:v.j1Q)!=null?x:function(C,U,L){return new qXm(C,U,L)};
this.bgChallenge=Zsc(D.bgChallenge);this.ttlSeconds=EOf(tm(D.challenge||""));this.d0=a(this.requestKey,_.g("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",D);this.raa=v==null?void 0:v.raa;Yd8(this.d0);var f;this.gLz=(f=v==null?void 0:v.gLz)!=null?f:function(C){_.s_(h.pGE.document,"visibilitychange",
function(){h.pGE.document.visibilityState==="visible"&&C()})}},wpb=function(D){if(!D.vm){var v={maxAttempts:5,
lSS:D.ttlSeconds*1E3};cKi(D.pGE);D.vm=D.k45({d0:D.d0,aEZ:{disable:_.g("html5_web_po_disable_remote_logging"),mK:"aGIf",q4i:tao("html5_web_po_experiment_ids"),wQi:_.g("wpo_dis_lfdms")?0:1E3,u1z:function(a){var Q=kjM.get(a);Q||(Q=new gvF(a),Q=new Se(Q),kjM.set(a,Q));return Q}},
cdJ:v,mds:D.bgChallenge,cWX:XLI});D.oAQ=Date.now();cNy(D.vm,function(){D.oAQ=Date.now()});
OJL(D.vm,function(){return _.M(function(a){return a.return(ywm(D))})});
var h=D.cLX.bind(D);D.networkStatusManagerPromise&&D.ttlSeconds>0&&D.networkStatusManagerPromise.then(function(a){a.listen("publicytnetworkstatus-online",h)});
D.gLz(h)}};
HfS.prototype.cLX=function(){if(Date.now()>this.oAQ+this.ttlSeconds*1E3){var D;(D=this.vm)==null||BW$(D)}};
var ywm=function(D){if(D.q14)return D.q14;if(!D.vm)throw Error("wj");D.q14=new v9({vm:D.vm,d0:D.d0,pwY:!0,onError:XLI,cdJ:D.raa});return D.q14},qdo=function(D,v){D=new HfS(D,v);
wpb(D);ywm(D)};var eJX=_.lfC.ephemeralActionSelector,Dn=function(D,v){this.store=D;this.queue=[];v==null||v.addEventListener("yt-navigate-start",this.reset.bind(this))};
Dn.prototype.enqueue=function(D){var v=D.command,h=D.durationMs,a=D.elementToFocus;var Q=D.label;var G=D.elementToFocus;D.command?Q=_.p1("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Q,shortcut:_.p1("SHIFT_PLUS_ENTER")}):G&&(D=Q+". "+_.p1("SHIFT_PLUS_ENTER")+" for more information.",Q=_.p1("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Q,shortcut:_.p1("SHIFT_PLUS_ENTER")},D));h={announcement:Q,durationMs:h!=null?h:8E3};v?h.command=v:a&&(a.classList.add("ephemeral-action-focusable-element"),h.selector=a.tagName+
".ephemeral-action-focusable-element");this.queue.push(h);nI$(this)};
Dn.prototype.activate=function(D){var v=eJX(this.store.getState());if(v){if(v==null?0:v.command)_.iP(v.command),this.store.dispatch(Lit(null));if(v==null?0:v.selector)v=document.querySelector(v.selector),_.exq(v);D.preventDefault()}};
var nI$=function(D){if(!eJX(D.store.getState())&&D.queue.length){var v=D.queue.shift();v&&(D.previousAnnouncement===v.announcement&&(v.announcement+="\u00a0"),D.store.dispatch(Lit(v)),D.previousAnnouncement=v.announcement,D.timeoutId=setTimeout(function(){if(v.selector){var h;(h=document.querySelector(v.selector))==null||h.classList.remove("ephemeral-action-focusable-element")}D.store.dispatch(Lit(null));nI$(D)},v.durationMs))}};
Dn.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Lit(null));this.queue.length=0;this.timeoutId=void 0};
Dn[MM]=[_.Mv,_.PV(_.WC)];_.vI=new _.Uj("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Of3=window.AbortController||HSo;var Kkr=new _.Uj("AUTH_SERVICE_TOKEN");var jhi=_.DK(["about:blank"]),dQA;var TEC=new _.Uj("API_IFRAME_TOKEN"),RJU=new _.Uj("FETCH_FN_TOKEN"),ifU=new _.Uj("PARSE_FN_TOKEN"),Wk3=new _.Uj("WINDOW_REQUEST_TOKEN"),t_X=new _.Uj("TEXT_DECODER_TOKEN");var juR;juR=new _.Uj("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.rwU=new _.Uj("MISC_UI_SHARED_FLAGS_TOKEN");var uyI=function(){};
uyI.prototype.getFlag=function(D){if(D.configType!==2)throw Error("xj");return DVI(D)};
var DVI=function(D){switch(D.flagType){case "bool":return _.g(D.flagName);case "int":return _.Ab(_.oZ(D.flagName));case "double":return _.oZ(D.flagName);case "string":return _.FH(D.flagName);case "int32_list":return tao(D.flagName);case "int64_list":return tao(D.flagName).map(function(v){return _.Ab(v)});
case "string_list":return _.zi(D.flagName);default:throw Error("yj");}};var hW=function(D,v,h){v=v===void 0?{}:v;Ww.call(this,h===void 0?"uninitialized":h);this.env=D;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];v.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=v.shouldWaitOnAsyncImmediate)};
_.J(hW,Ww);hW.prototype.init=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return v.processPluginOptions.shouldWaitOnAsyncImmediate?a.yield(D(v.env),2):(D(v.env),a.jumpTo(2));if(a.nextAddress!=4)return v.jobSet?a.yield(v.jobSet.completedResolver.promise,4):a.jumpTo(4);h=_.ol();h.parkOrScheduleJob(function(){v.transition("rendering")},10,"ci");
_.YI(a)})};
hW.prototype.initialRender=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return v.processPluginOptions.shouldWaitOnAsyncImmediate?a.yield(D(v.env),2):(D(v.env),a.jumpTo(2));if(a.nextAddress!=4)return v.jobSet?a.yield(v.jobSet.completedResolver.promise,4):a.jumpTo(4);h=_.ol();h.parkOrScheduleJob(function(){v.transition("rendered")},10,"cr");
_.YI(a)})};
hW.prototype.afterRenderImmediate=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return v.processPluginOptions.shouldWaitOnAsyncImmediate?a.yield(D(v.env),2):(D(v.env),a.jumpTo(2));if(a.nextAddress!=4)return v.jobSet?a.yield(v.jobSet.completedResolver.promise,4):a.jumpTo(4);h=_.ol();h.parkOrScheduleJob(function(){v.transition("after-render-deferred")},10,"carml");
_.YI(a)})};
hW.prototype.afterRenderDeferred=function(D){var v=this;return _.M(function(h){D(v.env);_.YI(h)})};_.wM("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var vJU={},h3K=(vJU.rendered={priority:0,callback:function(D){Ucb(D.injector.resolve(XB))}},vJU);var blA=new _.Uj("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),a32=new _.Uj("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var $VZ=function(D){this.callbackFnMap=D;this.configMap={}};
$VZ.prototype.handleResponse=function(D){var v;if(D=(v=D.responseContext)==null?void 0:v.serviceTrackingParams)for(v=_.P(D),D=v.next();!D.done;D=v.next()){D=D.value;var h=D.params,a=D.service;if(h&&a){this.configMap[a]||(this.configMap[a]=new iI4);D=this.configMap[a];var Q=void 0,G=(Q=this.callbackFnMap)==null?void 0:Q[a];h=_.P(h);for(a=h.next();!a.done;a=h.next())Q=a.value,a=Q.key,Q=Q.value,a&&Q&&(D.set(a,Q),G&&G(a,Q))}}};
$VZ.prototype.getConfig=function(D){return this.configMap[D]||void 0};
$VZ[MM]=[_.PV(a32)];var QPm=!1,RG2=0,nl4=null,TZO=null;var GYb=new _.Uj("NETWORK_SLI_TOKEN");var V9r=function(D,v,h,a,Q){this.networkSli=D;this.fetchFn=v;this.parseFn=h;this.requestFn=a;this.JSC$18555_textDecoder=Q};
V9r.prototype.fetch=function(D,v,h){var a=this,Q,G,x;return _.M(function(f){Q=PUr(a,D,v);x=(G=a.fetchFn)!=null?G:fetch;return f.return(x(Q).then(function(C){return a.handleResponse(C,h)}).catch(function(C){_.yR(C);
if((h==null?0:h.expectJsonStrict)&&C instanceof T4&&C.errorType===1)return Promise.reject(C)}))})};
var g4$=function(D,v,h,a){var Q,G,x,f,C,U,L;return _.M(function(Z){switch(Z.nextAddress){case 1:return Q=PUr(D,v,h),_.gE(Z,2),Z.yield(fetch(Q),4);case 4:G=Z.yieldResult;_.rl(Z,3);break;case 2:throw _.NS(Z),new T4(2,"Failed to parse streaming response",Q.url);case 3:if(!G.redirected&&!G.ok)throw(x=D.networkSli)==null||x.failure(),new _.XH("Streaming fetch request not ok",Q.url);if(!G.body)throw new _.XH("No response body in streaming response",Q.url);f={};if(_.g("web_streaming_fast"))return C=G.body.getReader(),
Z.return(xVr(D,C,f,a));U=G.body.pipeThrough(new TextDecoderStream).getReader();L=new _.Jx;return Z.return(M9d(D,U,L,h0A,f,a))}})},PUr=function(D,v,h){if(D.networkSli){var a=_.gl(_.PU(v,"key"))||"/UNKNOWN_PATH";
D.networkSli.start(a)}a=h;_.g("wug_networking_gzip_request")&&(a=xK4(h));var Q;return new ((Q=D.requestFn)!=null?Q:window.Request)(v,a)},xVr=function(D,v,h,a){var Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O,R,vA,f7,xL,kL,Z4;
return _.M(function(S2){switch(S2.nextAddress){case 1:Q=D.JSC$18555_textDecoder?new D.JSC$18555_textDecoder("utf-8"):new TextDecoder("utf-8"),G=[],x=0,f=function(){if(G.length===1)return G[0];for(var s8=new Uint8Array(x),Xf=0,dJ=_.P(G),R4=dJ.next();!R4.done;R4=dJ.next())R4=R4.value,s8.set(R4,Xf),Xf+=R4.length;return s8},_.gE(S2,2,3);
case 5:return S2.yield(v.read(),8);case 8:C=S2.yieldResult;U=C.value;if(L=C.done)return x>0&&(Z=f(),E=Z.indexOf(123),I=Z.lastIndexOf(125),E!==-1&&I!==-1&&I>E&&(S=Z.subarray(E,I+1),B=JSON.parse(Q.decode(S)),h0A(h,B),A=void 0,(A=a)==null||A(h,B))),d=void 0,(d=D.networkSli)==null||d.success(),S2.return(h);G.push(U);x+=U.length;b=f();for(W=void 0;(W=b.indexOf(10))!==-1;){K=b.subarray(0,W);O=K.indexOf(123);R=K.lastIndexOf(125);if(O!==-1&&R!==-1&&R>O){vA=K.subarray(O,R+1);try{f7=JSON.parse(Q.decode(vA)),
h0A(h,f7),xL=void 0,(xL=a)==null||xL(h,f7)}catch(s8){throw new T4(1,"Failed to parse streaming response object",Q.decode(vA));}}kL=b.subarray(W+1);G=[kL];x=kL.length;b=kL}S2.jumpTo(5);break;case 3:_.S_(S2);v.releaseLock();_.pf(S2,0);break;case 2:Z4=_.NS(S2);if(Z4 instanceof T4)throw Z4;throw new T4(1,"Failed to process streaming response");}})},M9d=function(D,v,h,a,Q,G){var x,f,C,U,L,Z,E,I,S;
return _.M(function(B){if(B.nextAddress==1)return B.yield(v.read(),2);x=B.yieldResult;f=x.value;if(C=x.done)return(U=D.networkSli)==null||U.success(),B.return(Q);try{L=h.parse(f)}catch(A){throw new T4(1,"Failed to parse streaming response",f);}if(L!=null)for(Z=_.P(L),E=Z.next();!E.done;E=Z.next())I=E.value,a(Q,I),S=void 0,(S=G)==null||S(Q,I);return B.return(M9d(D,v,h,a,Q,G))})};
V9r.prototype.handleResponse=function(D,v){var h,a=(h=this.parseFn)!=null?h:JSON.parse;h=D.text().then(function(Q){if((v==null?0:v.jspbResponseCtor)&&D.ok)return T02(v.jspbResponseCtor,Q);Q=Q.replace(")]}'","");if((v==null?0:v.expectJsonStrict)&&Q)try{var G=a(Q)}catch(f){throw new T4(1,"JSON parsing failed after fetch");}var x;return(x=G)!=null?x:a(Q)});
D.redirected||D.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),h=h.then(function(Q){_.yR(new _.XH("Error: API fetch failed",D.status,D.url,Q));return Object.assign({},Q,{errorMetadata:{status:D.status}})}));
return h};
V9r[MM]=[_.PV(GYb),_.PV(RJU),_.PV(ifU),_.PV(Wk3),_.PV(t_X)];var f32=new _.Uj("NETWORK_MANAGER_TOKEN");var CUC=[1,2,4,8,16,30],FO3=function(D){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=D.maxTimeMs;this.maxFrameCount=D.maxFrameCount===void 0?Math.ceil(60*D.maxTimeMs/1E3):D.maxFrameCount;D=_.P(CUC);for(var v=D.next();!v.done;v=D.next())this.brokenFrameSummarizers.push(new oJ$(v.value/60*1E3))},z33=function(D){var v=D.frameCountInternal>=D.maxFrameCount;
return D.elapsedTimeMs>=D.maxTimeMs||v};
FO3.prototype.summarize=function(){for(var D=[],v=_.P(this.brokenFrameSummarizers),h=v.next();!h.done;h=v.next())h=h.value,h=h.brokenFrameCount!==0?{severityMs:Math.round(h.targetFrameTimeMs),eventCount:h.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(h.averageDurationBetweenEventsMs)}:void 0,h&&D.push(h);return{summaries:D,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.GT.Object.defineProperties(FO3.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 oJ$=function(D){this.targetFrameTimeMs=D;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.GT.Object.defineProperties(oJ$.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UVU=function(){};
UVU.prototype.start=function(D,v){var h=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var a=new FO3({maxTimeMs:D});this.monitor=a;this.lastSummaryInternal=void 0;this.metadataToLog=v;return new Promise(function(Q){var G=function(x){if(x===void 0)h.stop(),Q(void 0);else if(h.monitor!==a)x=Object.assign({},a.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Q(x);else{var f=h.monitor;if(!z33(f)){f.frameCountInternal++;if(f.prevTime===
void 0)f.startTime=x;else for(var C=x-f.prevTime,U=_.P(f.brokenFrameSummarizers),L=U.next();!L.done;L=U.next()){L=L.value;var Z=L.currTimeMs;L.currTimeMs+=C;C>L.targetFrameTimeMs+2&&(L.brokenFrameCount++,L.timeOfFirstBrokenFrameMs===void 0&&(L.timeOfFirstBrokenFrameMs=Z),L.timeOfLastBrokenFrameMs=Z)}f.prevTime=x}z33(h.monitor)?Q(h.stop()):_.HK.addJob(G,5,0)}};
_.HK.addJob(G,5,0)})};
UVU.prototype.stop=function(D){if(!this.monitor)return this.lastSummaryInternal;var v=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(v.monitoringDurationMs){D=D!=null?D:this.metadataToLog;var h={droppedFramesSummary:v,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};D&&(h[D.type]=D.data);_.jj("manualSmoothnessMeasurement",h)}this.monitor=void 0;this.lastSummaryInternal=v;this.metadataToLog=void 0;return v};_.LO$=new _.Uj("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var ZT$;ZT$=function(D){this.JSC$18577_expiringStorage=new qM(D)};
_.EJZ=function(D){if(_.icc()&&(D=_.HG7(_.BV()+"::"+D)))return new ZT$(D)};
ZT$.prototype.set=function(D,v,h){h=h!==void 0?Date.now()+h:void 0;this.JSC$18577_expiringStorage.set(D,v,h)};
ZT$.prototype.get=function(D){return this.JSC$18577_expiringStorage.get(D)};
ZT$.prototype.remove=function(D){this.JSC$18577_expiringStorage.remove(D)};var I3r=new _.Uj("SESSION_STORAGE");_.aE=function(){};
_.aE.getInstance=function(){var D=_.T3("ytglobal.storage_");D||(D=new _.aE,_.Gm("ytglobal.storage_",D));return D};
_.aE.prototype.estimate=function(){var D,v,h;return _.M(function(a){D=navigator;return((v=D.storage)==null?0:v.estimate)?a.return(D.storage.estimate()):((h=D.webkitTemporaryStorage)==null?0:h.queryUsageAndQuota)?a.return(WLc()):a.return()})};
_.Gm("ytglobal.storageClass_",_.aE);var a77=0;var MHA=!1;var gJb=_.DK(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),kYK=_.DK(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Ib3={"/":_.nH,"/?feature=ytca":_.nH,"/feed/downloads":_.NiI};var SVb=YQK.continuationCommandSelector,Ek=function(D,v,h){this.JSC$18593_upliftPromise=D;this.store=v;this.JSC$18593_persistentStorePromiseAccessor=h};
Ek.prototype.shouldPreferLocalResponse=function(D){return D.browseId==="FEdownloads"||D.browseId==="FEsmart_downloads"&&_.g("kevlar_modern_downloads_page")?!0:!1};
Ek.prototype.localInnertubeResponse=function(D){var v=this;return _.M(function(h){return D.browseId==="FEdownloads"?_.g("kevlar_modern_downloads_page")?h.return(J1s(v)):h.return(pWZ(v)):D.browseId==="FEsmart_downloads"&&_.g("kevlar_modern_downloads_page")?h.return(l3C(v)):h.return(Promise.reject(Error("Aj")))})};
Ek.prototype.canProvideFallbackResponse=function(){return!0};
Ek.prototype.localFallbackInnertubeResponse=function(D){var v=this,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return G.yield(v.JSC$18593_persistentStorePromiseAccessor(),2);case 2:h=G.yieldResult;if(D.browseId!=="SPaccount_downloads"||!h){G.jumpTo(3);break}return G.yield(ksr(h),4);case 4:if(a=G.yieldResult)return G.return(_.Vf(a));case 3:return D.browseId==="FEwhat_to_watch"?G.return(NDm(v)):(Q=_.g("web_offline_continuation_automatic_retry")||_.g("web_offline_continuation_retry_button"))&&
D.continuation?G.return(YVm(v)):G.return(BDK(v))}})};
var NDm=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$18593_upliftPromise,2);v=_.hFO(D.store.getState().entities);return v.length?h.return(c1U(D,v)):h.return(BDK(D))})},pWZ=function(D){var v,h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18593_upliftPromise,2);if(a.nextAddress!=3)return v=XWK([{offlineItemSectionRenderer:{}}]),a.yield(A1b(D,v),3);h=a.yieldResult;h.onResponseReceivedActions=[So("REFRESH_DOWNLOADS")];return a.return(h)})},J1s=function(D){var v,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A;
return _.M(function(d){if(d.nextAddress==1)return d.yield(D.JSC$18593_upliftPromise,2);if(d.nextAddress!=3)return v=D.store.getState(),h=v.entities,a=_.s4(h),Q=_.m6(h),G=_.qH4(v),x=_.AUL(v),f=_.bh4(v),C=_.Ql8(h),U=_.Xh(a),L=_.Hf(h),Z=_.xyo(h),E=_.jl7(v),I=_.O4(v),S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.e88(a,Q,C,Z,G,x,U,L,f,E,I),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},B="",_.g("kevlar_modern_downloads_skip_downloads_title")||
(B=_.p1("DOWNLOADS",void 0,"Downloads")),d.yield(qVs(D,S,B),3);A=d.yieldResult;A.onResponseReceivedActions=[So("REFRESH_DOWNLOADS")];return d.return(A)})},l3C=function(D){var v,h,a,Q,G,x,f,C,U;
return _.M(function(L){if(L.nextAddress==1)return L.yield(D.JSC$18593_upliftPromise,2);if(L.nextAddress!=3)return v=D.store.getState(),h=v.entities,a=_.s4(h),Q=_.Xh(a),G=_.Hf(h),x={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.OPL(a),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},f=_.p1("SMART_DOWNLOADS",void 0,"Smart downloads"),C=yR4(Q,G),L.yield(qVs(D,x,f,C),3);U=L.yieldResult;U.onResponseReceivedActions=
[So("REFRESH_DOWNLOADS")];return L.return(U)})},BDK=function(D){var v,h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(Gk(D.JSC$18593_upliftPromise,D.store),2);v=a.yieldResult;h=XWK([Zwu(v)]);return a.return(A1b(D,h))})},YVm=function(D){var v,h,a,Q;
return _.M(function(G){if(G.nextAddress==1)return v={},h=SVb(D.store.getState()),_.eQ(v,_.iL,h),G.yield(Gk(D.JSC$18593_upliftPromise,D.store,v,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);a=G.yieldResult;Q={};_.eQ(Q,_.kqM,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:a}}}],targetId:"browse-feedFEwhat_to_watch"});return G.return({responseContext:{},onResponseReceivedActions:[Q]})})},XWK=function(D){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:D}}}}]}}},c1U=function(D,v){var h,a;
return _.M(function(Q){var G={contents:Jm(v)};h=G&&G.contents?G:{};_.g("kevlar_modern_downloads_page")&&(h=Object.assign({},_.Keo(v),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));a={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:h}}}]}};return Q.return(A1b(D,a))})},A1b=function(D,v){var h,a;
return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$18593_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return h=Q.yieldResult,Q.yield(P7(h),3);a=Q.yieldResult;return Q.return({responseContext:{},contents:v,topbar:a})})},qVs=function(D,v,h,a){var Q,G;
return _.M(function(x){if(x.nextAddress==1)return x.yield(D.JSC$18593_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return Q=x.yieldResult,x.yield(P7(Q),3);G=x.yieldResult;var f=x.return;var C=h;var U=a;C=C===void 0?"":C;U=U===void 0?"":U;C={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:C}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.p1("SETTINGS",void 0,"Settings"),accessibilityText:_.p1("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:_.Pf("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:C};
return f.call(x,{responseContext:{},contents:v,topbar:G,header:{pageHeaderRenderer:C}})})};var bT2=function(){this.moduleRegistry={};this.fetchCount=0};
bT2.prototype.isFetching=function(){return this.fetchCount>0};
var KK=function(D,v){D.moduleRegistry[v.toString()]={asyncId:v,isFetching:!1};return D};
bT2.prototype.JSC$18604_loadModules=function(){for(var D=this,v=new Map,h=[],a=_.P(_.Kz.apply(0,arguments)),Q=a.next();!Q.done;Q=a.next()){Q=Q.value;var G=this.moduleRegistry[Q];G?G.resolver?v.set(Q,G.resolver):(G.resolver=new _.gT,v.set(Q,G.resolver),h.push(G.asyncId),G.isFetching=!0):(G=new _.gT,v.set(Q,G),G.resolve(void 0))}h.length&&(this.fetchCount+=1,_.yS(_.jk.getMultipleAsync.apply(_.jk,_.j_(h)).then(function(x){for(var f=0;f<h.length;f++){var C=x[f],U=D.moduleRegistry[h[f].toString()];U.isFetching=
!1;U.resolver.resolve(C)}}).catch(function(x){for(var f=_.P(h),C=f.next();!C.done;C=f.next()){C=C.value;
var U=D.moduleRegistry[C.toString()];U.resolver=void 0;U.isFetching=!1;v.get(C.toString()).reject(x)}}),function(){--D.fetchCount}));
return Promise.all([].concat(_.j_(v.values())).map(function(x){return x.promise}))};_.Tk=new _.Uj("MODULE_REGISTRY_TOKEN");var dVm={},jPU=(dVm.rendered={priority:0,callback:function(D){a:{var v=void 0;try{var h;b:{if(_.KYq()){var a=_.mDf(_.BV()+"::pom");if(a){var Q=new ue(a);break b}}Q=void 0}var G=(h=Q)==null?void 0:h.get("role_text");if(!G)break a;v={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:G}]}}}}}}catch(C){}v&&D.injector.resolve(_.fx).resolveCommand(v)}try{var x=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(x){var f=JSON.parse(x);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
f&&D.injector.resolve(_.fx).resolveCommand(f)}}catch(C){}}},dVm);var sPC,mVm={},HTs=(mVm.initialized={priority:10,callback:function(){sPC=YY()}},mVm.rendering={callback:function(D){var v;
return _.M(function(h){if(h.nextAddress==1)return h.yield(sPC,2);v=h.yieldResult;if(!v.endpoint)throw Error("Cj`"+_.$L.location.href);AL(D,v);_.YI(h)})}},mVm);var y1X={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.j_(_.g("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(D){var v=D.stack;if(v.includes("chrome://")||v.includes("chrome-extension://")||D.message.includes("chrome-extension://")||v.includes("moz-extension://")||v.includes("local.adguard.org")||v.includes("auctioneer3.50million.club")||v.includes("youtubedownloader")||
v.includes("youtube_home_page")||v.includes("is_youtube_video_no_longer_available")||v.includes("switchScreenSizeHack")||v.includes("yt_main_big_banner.js")||v.includes("YouTubeCenter.js")||v.includes("/mytube.js")||v.includes("JSON.parseWrapper")||v.includes("/inj_js/common.js")||v.includes("firebug-lite")||v.includes(".repl.co/")||v.includes("linkfix")||v.includes("playAfterAd")||D.message.includes("Access is denied for this document")&&v.includes("<anonymous>")||D.fileName==="user-script"||D.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
v.includes("<anonymous>"))return!0;if(v.includes("https://www.youtube.com"))return!1;D=v.split("\n");if(!D.length)return!1;if(D.length<=3&&v.includes("s.onloadeddata"))return!0;v=0;for(var h=_.P(D),a=h.next();!a.done;a=h.next())a=a.value,(a.includes("https://")||a.includes("http://"))&&v++;return v/D.length>.95},
weight:0},{callback:function(D){return D.message==="Unknown Error"&&D.name.indexOf("NS_")===0},
weight:100},{callback:function(D){if(!_.zw)return!1;var v=D.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||D.message.includes("available to complete this operation"),h=D.stack.includes("webcomponents")&&D.message==="Object doesn't support this action";D=D.message.includes("object that does not implement interface Element");return v||h||D},
weight:0},{callback:function(D){return D.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(D){return D.message==="Operation is not supported"&&(D.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(D){return D.stack.includes("eval code (eval (code:1:1)")||D.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(D){return D.message.includes("Permission denied")&&D.stack.includes("this.domHandler")?!0:D.name.includes("TypeError")&&D.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(D){if(!D.stack)return!1;var v=D.stack.trim().split("\n");v.length&&v[0].endsWith("Error: "+D.message)&&v.shift();v.length&&v[v.length-1].includes("at window.onerror (")&&v.pop();if(!v.length)return!0;if(D.message==="Script error.")return v[0].includes("www.youtube.com")||v.length>=2&&v[0].startsWith("at new")&&v[1].startsWith("at window.onerror");if(D.message==="Unexpected token")return!0;D=_.P(v);for(v=D.next();!v.done;v=D.next())if(v=v.value,!(v.includes("<anonymous>")||
v.startsWith("load@")||v.startsWith("global code@")||v.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(D){return D.message==="Cannot read property 'experiments'"&&D.stack.includes("/s/player/")},
weight:500},{callback:function(D){return D.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(D){return D.stack.includes("/embed.js")?(D.params&&D.params&&(D.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.g("use_error_suppression"))var D=_.eA("SUPPRESS_CLIENT_ERRORS",!1);else{if(D=_.Ip)D=/Chrome\/(\d+)/.exec(_.E8()),D=(D?parseFloat(D[1]):NaN)>=66;D=!(D||_.E1&&_.ZK(65)||_.Oz&&_.ZK(12.1)||$z&&_.ZK(79))}return D},
weight:500}]};var wWK={},e3r=(wWK.initialized={priority:10,callback:function(D){D.injector.addProvider({provide:FWm,useValue:D.root});D.injector.addProvider({provide:MR3,useValue:bjc});D.injector.addProvider({provide:ff$,useValue:y1X});var v={};D.injector.addProvider((v.provide=CHX,v.useFactory=function(h,a){return function(){dsO(h,a)}},v[MM]=[MR3,
ff$],v));D.injector.addProvider({provide:nC,useClass:nC})}},wWK);var nJr={},OTd=(nJr.initialized={priority:3,callback:function(){var D;if(D=XfI()){D=D.replace("/",".");var v=_.YE();v.set("tz",D);v.save();D=!0}else D=!1;D||(D=_.YE(),D.set("utco",-Math.floor((new Date).getTimezoneOffset())),D.save())}},nJr);var KOs={},TDb=(KOs.initialized={priority:10,callback:function(D){D.injector.resolve(nC).start();D=_.$U();var v=_.nJ("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.nJ("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.nJ("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.nJ("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.FC(_.FGq(),{mainAppWeb:Object.assign({},D,{pageType:v})});_.FC(U_q(),{mainAppWeb:Object.assign({},D,{pageType:v})});
_.FC(LG4(),{mainAppWeb:D});_.FC(Z6O(),{mainAppWeb:D});YRF(function(){_.zk(LG4(),"FAILURE");_.zk(Z6O(),"FAILURE")});
J4c();pPO();d4f()}},KOs);var R3d={},iTS=(R3d.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.ea("dl"),_.ol().processSignal("pcl");else{var D=function(){_.ea("dl");_.ol().processSignal("pcl");window.removeEventListener("load",D)};
window.addEventListener("load",D)}}},R3d);var WOZ={},t9X=(WOZ.rendering={priority:0,callback:function(){var D=_.ol();D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor",5E3)}},WOZ);var r1r=function(){};
_.J(r1r,o6);
r1r.prototype.resolveCommand=function(D,v){var h,a,Q,G,x,f,C,U;return _.M(function(L){Q=(h=_.k(D,_.jds))==null?void 0:(a=h.dialog)==null?void 0:a.commentReplyDialogRenderer;if(!Q)throw new _.XH("No dialog in createCommentReplyDialogEndpoint");x=(G=v.form)==null?void 0:G.event;if(!x)throw new _.XH("Event not passed in when resolving command");f=_.P(x.composedPath());for(C=f.next();!C.done;C=f.next())if(U=C.value,U.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||U.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return U.showReplyDialog(Q),L.return();
_.YI(L)})};var $K=function(){};
_.J($K,o6);$K.prototype.resolveCommand=function(D){var v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return v=_.k(D,hgR),(h=v)!=null&&h.externalChannelId?Q.yield((0,_.W28)("NSzT5"),2):Q.return();a=_.uxU;return Q.yield(a(v.externalChannelId),0)})};var Qg=function(D){this.pageRequestService=D;this.JSC$18622_prefetchCoordinator=t$d()};
_.J(Qg,o6);Qg.prototype.resolveCommand=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1){h=_.k(D,U8m);if((a=h)==null||!a.taskId)throw Error("Dj");Q=h.taskId;_.gE(x,2);return x.yield(_.L0b(v.pageRequestService,D,{},"").then(function(f){if(!f)throw Error("Ej");},function(f){throw Error("Fj`"+f);
}),4)}if(x.nextAddress!=2)return Dfm(v.JSC$18622_prefetchCoordinator,Q),_.rl(x,0);
G=_.NS(x);jX(v.JSC$18622_prefetchCoordinator,Q,G);_.YI(x)})};
Qg[MM]=[Nh];var GD=function(D,v){this.innertubeTransportService=D;this.JSC$18626_commandHandler=v};
_.J(GD,o6);GD.prototype.resolveCommand=function(D){var v=this,h,a,Q;return _.M(function(G){if(G.nextAddress==1){h=_.k(D,zFb);if(h.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||h.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")a=h.boolValue?2:1,_.Jp.getInstance().setState(a,!0,!0);return G.yield(_.v4(v.innertubeTransportService,D),2)}Q=G.yieldResult;Dpd(v,Q);_.YI(G)})};
var Dpd=function(D,v){v.actions&&v.actions.forEach(function(h){D.JSC$18626_commandHandler.resolveCommand(h)})};
GD[MM]=[_.RX,_.fx];var Vg={},vq3=(Vg.addToPlaylistEndpoint=V_(Qm),Vg.addToToastAction=V_(Cv),Vg.adsControlFlowOpportunityReceivedCommand=V_(yQ),Vg.audioTrackSelectActionCommand=V_(I0),Vg.backgroundAudioPlaybackCommand=V_(gb),Vg.captionLanguageSelectActionCommand=V_(kB),Vg.captionPickerEndpoint=V_(Ju),Vg.changeMiniAppPlayStateCommand=V_(G7),Vg.changeTimelyActionVisibilityCommand=V_(fv),Vg.channelCreationFormEndpoint=V_(u3),Vg.clearLocationCommand=V_($B),Vg.clearUrlParamCommand=V_(Vm),Vg.copyLinkCommand=V_(X0),Vg.copyTextEndpoint=
V_(nk),Vg.createCommentReplyDialogEndpoint=L4A(r1r),Vg.createPlaylistServiceEndpoint=V_(Au),Vg.dismissDialogEndpoint=V_(xB),Vg.dismissPlayerOverlayCommand=V_(pY),Vg.entityUpdateCommand=V_(Kk),Vg.feedbackEndpoint=V_(i3),Vg.getAnswerCommand=V_(abm),Vg.getPaymentsClientTokenCommand=V_(Uf),Vg.getTranscriptEndpoint=V_(ok),Vg.googlePaymentBillingCommand=V_(Lv),Vg.googlePaymentPurchaseManagerCommand=V_(Zi),Vg.hideEngagementPanelEndpoint=V_(Ma),Vg.hideSheetCommand=V_(fY),Vg.hideSnackbarCommand=V_($4),Vg.insertRichSectionCommand=
V_(vE),Vg.listMutationCommand=V_(hu),Vg.logGtmCommand=V_(DG),Vg.notifyDropdownOptionSelectedCommand=V_(PE),Vg.openAdAllowlistInstructionCommand=V_(_.wn),Vg.openOnePickAddVideoModalCommand=V_(qa),Vg.persistSubscriptionsDisplayPreferencesCommand=V_(HE),Vg.pingingEndpoint=V_(e4),Vg.playlistEditEndpoint=V_(db),Vg.playlistVotingRefreshPopupCommand=V_(jV),Vg.profileCardCommand=V_(Hg),Vg.refreshPanelEndpoint=V_(CY),Vg.saveImageToDeviceEndpoint=V_(Ou),Vg.scrollToSectionEndpoint=L4A($IZ),Vg.seekToVideoTimestampCommand=
V_(l5),Vg.selectCountryCommand=V_(ym),Vg.setCookieCommand=V_(wb),Vg.setLocalStorageCommand=V_(Go),Vg.setPrefStorageEntryCommand=V_(nY),Vg.setSettingEndpoint=V_(GD),Vg.sfvAudioItemPlaybackCommand=V_(Na),Vg.shareImageCommand=V_(Oo),Vg.sharingProviderDataCommand=V_(KY),Vg.showAudioTrackPickerActionCommand=V_(YB),Vg.showCaptionLanguageSelectActionCommand=V_(BE),Vg.showCreatorChatbotEngagementPanelCommand=V_($K),Vg.showDialogCommand=V_(z7),Vg.showEngagementPanelEndpoint=V_(Uo),Vg.showSheetCommand=V_(LY),
Vg.showSnackbarCommand=V_(Qc),Vg.showTransientPlayerScrimOverlayCommand=V_(cE),Vg.submitFormWithValidationFlowCommand=V_(rn),Vg.talkToRecsDeselectCommand=V_(Vc),Vg.talkToRecsNextCommand=V_(Px),Vg.talkToRecsSelectCommand=V_(x4),Vg.talkToRecsUpdateTextCommand=V_(M3),Vg.toggleEngagementPanelCommand=V_(ZG),Vg.undoFeedbackEndpoint=V_(to),Vg.updateEngagementPanelContentCommand=V_(Eo),Vg.updateUrlParamCommand=V_(FU),Vg.updateVideoMetadataCommand=V_(zo),Vg.verifyCommand=V_(u3),Vg.webNativeShareCommand=V_(T7),
Vg.webSubmitFormCommand=V_(so),Vg.ACK_PLAYABLES_3P_DATA_CONSENT=V_(R0),Vg.CANCEL_NAVIGATION=V_(i5),Vg.COPY_SHARE_URL=V_(WE),Vg.MINI_APP_EXIT_DIALOG_SEEN=V_(rb),Vg.MINI_APP_OPEN_URL=V_(tu),Vg.REQUEST_MINI_APP_FULLSCREEN=V_(u5),Vg.RESUME_NAVIGATION=V_(Di),Vg.SHARE_PLAYABLE_WITH_HIGH_SCORE=V_(vx),Vg.TELL_US_WHY=V_(Wg),Vg);_.g("web_enable_prefetching_videos_on_home")&&(vq3.prefetchWatchCommand=V_(Qg),vq3.registerTasksCommand=V_(mf));
_.g("enable_share_panel_navigation_logging_fix_on_web")&&(vq3.shareEntityServiceEndpoint=V_(o0));var NzJ=Object.assign({},vq3);var hPK={},acU=(hPK.initialized={priority:10,callback:A4q},hPK);var $pS={},QaS=($pS.initialized={callback:function(D){var v={},h={};Ty8().install((v.document_disposed={callback:function(){_.g("finalize_all_timelines")?jRA():mn();Ocu("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.VEL();var a=D.injector.resolve(nC);a.intervalId!==void 0&&(a.intervalId&&_.HK.cancelJob(a.intervalId),a.intervalId=void 0,--a.currentPartitionIndex,a=aPb(a),a>0&&fZy({mainAppWeb:_.$U(),survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));aZs(zF);Ue!=null&&
Ue.flush();UL&&UL.snapshotAndFlush();a=_.P(kjM.values());for(var Q=a.next();!Q.done;Q=a.next())Q.value.snapshotAndFlush()}},v),(h.flush_logs={callback:function(){_.s5()}},h))}},$pS);var GQd={},Ve2=(GQd.rendered={priority:0,callback:function(){var D=new Ft9;D.increment("STARTED");if(_.eA("LOGGED_IN")&&!_.eA("IS_DBSC",!1)&&_.eA("SERVER_VERSION")!=="test"&&_.eA("SERVER_VERSION")!=="dev"&&!rb1()&&!ttF()){D.increment("EXECUTING");var v=document.createElement("iframe");v.style.display="none";_.CzA(v,2,_.nz("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.eA("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(v);D.increment("DONE")}}},
GQd);var P9$={},xp2=(P9$.rendered={callback:function(){t$d().resume()}},P9$);var Me$={acknowledgeChannelTouStrikeCommand:qP(Rk),addToPlaylistServiceEndpoint:qP(tS),addToPlaylistEndpoint:qP(tS),addUpcomingEventReminderEndpoint:qP(PB),browseEndpoint:qP(b3Z),channelCreationFormEndpoint:qP(yc),channelCreationServiceEndpoint:qP(w8),claimLegacyYoutubeChannelEndpoint:qP(N3),clearSearchHistoryEndpoint:qP(vB),clearWatchHistoryEndpoint:qP(hS),commerceActionCommand:bu(Zr),createBackstagePostEndpoint:qP(g8),createBroadcastCommand:qP(xg),createCommentEndpoint:qP(jT),createCommentReplyEndpoint:qP(d8),
createLiveChatPollEndpoint:qP(Mu),createPlaylistServiceEndpoint:qP(rC),crossAccountChannelTransferEndpoint:qP(Qr),deleteLiveChatMessageCommand:qP(fB),deletePlaylistEndpoint:qP(uB),deleteVideoEndpoint:qP(Fb),dismissalEndpoint:qP(id),feedbackEndpoint:qP(Wx),flagEndpoint:qP(QW),getAccountSwitcherEndpoint:qP($g),verifyCommand:qP(Ik),getAccountsListInnertubeEndpoint:qP(Vr),getCommentsFromInboxCommand:qP(qu),getDownloadActionCommand:qP(yr),getFlowCommand:bu(D1),getKidsBlocklistPickerCommand:qP(G8),getNotificationMenuEndpoint:qP(sUm),
getPaymentInstrumentsParamsCommand:qP(Js),getPaymentsClientTokenCommand:bu(Zr),getPdgBuyFlowCommand:qP(iB),getReportFormEndpoint:qP(VW),getSearchInVideoCommand:qP(Mj),getAnswerCommand:qP(x8),getSurveyCommand:qP(of),getTranscriptEndpoint:qP(UE),getPostVideoPreviewEndpoint:qP(ST),decorateMessageEndpoint:qP(k4),likeEndpoint:qP(eT),liveChatActionEndpoint:qP(z5),liveChatEndpoint:qP(F5),liveChatItemContextMenuEndpoint:qP(CB),liveChatPurchaseMessageEndpoint:qP(Ul),liveChatReplayEndpoint:qP(oF),manageLiveChatUserEndpoint:qP(Z1),
metadataUpdateCommand:qP(X5),moderateLiveChatEndpoint:qP(lB),modifyChannelNotificationPreferenceEndpoint:qP(sl),notificationOptOutEndpoint:qP(m5),openSuperStickerBuyFlowCommand:qP(LB),performCommentActionEndpoint:qP(Az),playlistEditEndpoint:qP(vk),playlistEditorEndpoint:qP(Dr),recordNotificationInteractionsEndpoint:qP(HB),reelWatchEndpoint:qP(hs),refreshPanelEndpoint:qP(eG),removeUpcomingEventReminderEndpoint:qP(Nu),resolveLocationCommand:qP(cB),revealBusinessEmailCommand:qP(Y4),searchEndpoint:qP(_.mId),
sendLiveChatMessageEndpoint:qP(Yg),sendLiveChatVoteEndpoint:qP(BB),setSettingEndpoint:qP(nv),shareEntityServiceEndpoint:bu(To),sharingProviderDataCommand:qP(CA),showEngagementPanelEndpoint:qP(nB),showMoreDrawerCommand:qP(KB),showSheetCommand:qP(T5),showDialogCommand:qP(Ol),subscribeEndpoint:qP(Of),transcriptSubmitCaptionCorrectionCommand:qP(z8),undoFeedbackEndpoint:qP(r8),unsubscribeEndpoint:qP(Kv),updateBackstagePostEndpoint:qP(pv),updateCommentEndpoint:qP(ml),updateCommentReplyEndpoint:qP(sf),updateCommentsSettingsEndpoint:qP(Hx),
updateCreatorChannelInnertubeCommand:qP(cx),updateKidsBlacklistEndpoint:qP(Pk),updateEngagementPanelContentCommand:qP(RF),updatePdgFeatureEnablementCommand:qP(WB),updatedMetadataEndpoint:qP(AS),validateChannelHandleCommand:qP(XU),updateChannelPageSettingsEndpoint:qP(Bx),verifyAgeEndpoint:qP(ud),watchEndpoint:bu(wh),whitelistEditEndpoint:qP(LA),ypcCancelRecurrenceEndpoint:qP(EE),ypcCompleteTransactionEndpoint:qP(If),ypcFixInstrumentEndpoint:qP(k8),ypcGetCartEndpoint:qP(gy),ypcGetOffersEndpoint:qP(SX),
ypcHandleTransactionEndpoint:bu(pA),ypcLogWalletAnalyticDataEndpoint:qP(lx),ypcOffersEndpoint:qP(Nj),ypcPauseSubscriptionCommand:qP(Y8),ypcRedeemCodeEndpoint:qP(Bk),ypcResumeSubscriptionCommand:qP(ck),ypcUpdateFopEndpoint:qP(k8)},PI={},fc3=(PI.GET_ACCOUNT_MENU=qP(G5),PI.GET_NOTIFICATIONS_MENU=qP(jU$),PI.GET_NOTIFICATIONS_INBOX=qP(bB),PI.GET_UNSEEN_NOTIFICATION_COUNT=qP(jG),PI.GET_USER_MENTION_SUGGESTIONS=qP(Jz),PI.LOAD_GUIDE=qP(dIS),PI.SUBMIT_FEEDBACK=qP(tz),PI),xK={},C9S=(xK.CONTINUATION_REQUEST_TYPE_BROWSE=
qP(ld),xK.CONTINUATION_REQUEST_TYPE_SEARCH=qP(fA),xK.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=qP(nh),xK.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=qP(aF),xK.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=qP(bd),xK.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=qP(q3),xK.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=qP($8),xK.CONTINUATION_REQUEST_TYPE_GET_PANEL=qP(wC),xK),oqb={player:bu(wh),watchNext:qP(ek)},FSC={player:bu(wh),reelItemWatch:qP(hs),reelWatchSequence:qP(af)},zP$={watchEndpoint:bu(OH)},Ups=
{commandEndpointMap:Me$,signalEndpointMap:fc3,continuationEndpointMap:C9S,watchEndpointMap:oqb,reelWatchEndpointMap:FSC,streamingEndpointMap:zP$};var LSb,Z02,EqX;_.Icr=((Z02=(LSb=window).matchMedia)==null?void 0:(EqX=Z02.call(LSb,"(prefers-reduced-motion: reduce)"))==null?void 0:EqX.matches)||!document.startViewTransition;var gqs={},kQ2={disableAllTransitions:_.Icr,ignoredErrors:(gqs.DOCUMENT_HIDDEN=!0,gqs.WINDOW_SIZE_CHANGED=!0,gqs.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,gqs),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var SNS=_.DK("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),JNS=function(D){this.viewTransitionCoordinator=D;this.isBrowseTransitionEnabled=_.FH("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.g("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.g("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.g("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.FH("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){D=
_.oZ("web_page_transition_exit_ms");var v=_.oZ("web_page_transition_wait_ms"),h=_.oZ("web_page_transition_enter_ms"),a=_.oZ("web_page_transition_watch_exit_ms"),Q=_.oZ("web_page_transition_watch_wait_ms"),G=_.oZ("web_page_transition_watch_enter_ms");if(!isNaN(D)||!isNaN(v)||!isNaN(h))if(D=jPo(SNS,D,v,h,a,Q,G))v=document.createElement("style"),v.textContent=Lko(D),document.head.appendChild(v)}};
JNS.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var D={};this.viewTransitionCoordinator.registerElement(document.documentElement,(D.slide="root-slide",D["lockup-to-watch"]="root-lockup-to-watch",D["learning-journey"]="root-learning-journey",D))}};
_.AYs=function(D,v){D.isLockupToWatchTransitionEnabled&&D.isLockupThumbnailRegistrationEnabled&&(D.registeredLockupThumbnail?D.lockupThumbnailRegisteredFromWatchEndpoint?_.yR(new _.XH("Lockup thumbnail registration order is incorrect.")):_.yR(new _.XH("Lockup thumbnail already registered.")):(D.registeredLockupThumbnail=v,_.pQK(D,v)))};
_.pQK=function(D,v){var h={};D.viewTransitionCoordinator.registerElement(v,(h["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",h),!0)};
JNS[MM]=[M_2];var qbo={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 dXi=["videoPrimaryInfoRenderer","title"],j7O=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var lcr;lcr=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.NWX=_.H(function(D){D=_.fb(D,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var v=D.data,h=D.playlistData,a=D.expanded,Q=D.onExpandClick,G=D.isReadyToResume,x=function(){var L;return!((L=h())==null||!L.contents)},f=function(){var L=h();
return L&&L.totalVideos&&L.currentIndex!==void 0?L.currentIndex+1+" / "+L.totalVideos:""};
D=_.Jd(function(){_.Mn(_.xd().resolve(_.Ok));return!1});
var C=_.Jd(function(){x()&&Q&&Q()}),U={};
return _.F("ytd-miniplayer-info-bar",{class:_.S3("ytdMiniplayerInfoBarHost",(U.ytdMiniplayerInfoBarHasPlaylistData=x,U)),"on:click":C},_.F("div",{class:"ytdMiniplayerInfoBarContent"},_.F("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":D},_.F(_.IY,{text:function(){var L=v();var Z=h();if(Z==null?0:Z.contents){var E;L=(E=_.w2L(Z))==null?void 0:E.title}else L=L==null?void 0:L.miniplayerTitle;return s7c(L)},
noEndpoints:!0,ellipsisTruncate:!0})),_.F("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.F(_.z,{cond:G,then:function(){return _.F(UW9,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:lcr})}}),_.F("h1",null,_.F(_.IY,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var L=v();var Z=h();L=G()?{simpleText:_.p1("CONTINUE_WATCHING",void 0,"Continue watching")}:(Z==null?0:Z.contents)?Z.titleText:L==null?void 0:L.miniplayerSubtitle;return s7c(L)},
noEndpoints:!0,ellipsisTruncate:!0})),_.F(_.z,{cond:function(){return!!f()&&!G()},
then:function(){return _.F("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.F("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.F("span",null,f))}}))),_.F(_.z,{cond:x,
then:function(){return _.F("div",{class:"ytdMiniplayerInfoBarExpand"},_.F(_.jd,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(L){Q&&(Q(),L.stopPropagation())}}},
iconName:function(){return a()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ag");var YNs;YNs=_.H(function(D){return _.F("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.F(_.jd,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:D.onTap}},
iconName:"yt-icons:close"}))},"bg");
_.BWK=_.H(function(D){D=_.fb(D,{playabilityStatus:void 0,isDisabled:!1});var v=D.size,h=D.playabilityStatus,a=D.isDisabled,Q=_.va("div");D=_.P(_.Zq(void 0,void 0,"y6THVb"));var G=D.next().value,x=D.next().value;D=_.Th(_.oi);var f=!1,C=function(){return v().height<=0};
_.bW(function(){var E=v(),I=C(),S=G();S&&!I&&S.setInternalSize(E.width,E.height)},"qu2eI");
_.dM(function(){var E,I,S;return _.M(function(B){if(B.nextAddress==1){E=_.xd().resolve(_.Ok);I=E.getPlayerElement();if(!E.isMiniplayerActive()||!I||!Q.value)return B.return();I.appendTo(Q.value);return B.yield(I.getPlayerPromise(),2)}S=B.yieldResult;S.setSizeStyle(!1,!0);x(S);_.YI(B)})});
_.dq(function(){U()});
_.bW(function(){var E=G();if(E)if(a()){var I=E.getPlayerState();(f=I===-1||I===1||I===3)&&E.pauseVideo()}else U()},"mCtQKc");
var U=function(){if(f){f=!1;var E;(E=G())==null||E.playVideo()}},L=_.Jd(function(){_.Mn(_.xd().resolve(_.Ok))}),Z={};
return _.F("ytd-miniplayer-player-container",{class:_.S3("ytdMiniplayerPlayerContainerHost",(Z.ytdMiniplayerPlayerContainerHidden=C,Z.ytdMiniplayerPlayerContainerHostShortsPip=D,Z)),style:_.NL({width:function(){return v().width+"px"},
height:function(){return v().height+"px"}})},_.F("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Q}),_.F(_.z,{cond:function(){return!!h()&&!_.xQ8(h())},
then:function(){return _.F(H7K,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var E;return((E=h())==null?void 0:E.errorScreen)||null},
status:function(){var E;return((E=h())==null?void 0:E.status)||null}})}}),_.F(_.z,{cond:a,
then:function(){return _.F("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":L},_.F(YNs,{onTap:function(){_.xd().resolve(_.Ok).close()}}))}}))},"eg");_.cNd=_.H(function(D){var v=D.toastData;var h=_.va("ytd-miniplayer-toast");D=_.P(_.lL(function(){return!!v()}));
var a=D.next().value,Q=D.next().value;D=_.P(_.Zq(!1,void 0,"BvfNQe"));var G=D.next().value,x=D.next().value,f=function(){var L;return _.$V((L=v())==null?void 0:L.data.title)};
_.jA(function(){_.$M.requestAvailability();v()&&Q(!1)});
var C,U;_.bW(function(){a()&&(_.F1(h.value,"iron-announce",{text:v().label+" "+f()}),C&&_.HK.cancelJob(C),C=_.HK.addLowPriorityJob(function(){x(!0)},2500))},"no1dZb");
_.bW(function(){G()&&(U&&_.HK.cancelJob(U),U=_.HK.addLowPriorityJob(function(){Q(!1);x(!1)},300))},"G3yPNe");
D={};return _.F("ytd-miniplayer-toast",{el:h,class:_.S3("ytdMiniplayerToastHost",(D.ytdMiniplayerToastOpening=function(){return a()},D.ytdMiniplayerToastClosing=function(){return G()},D))},_.F(_.z,{cond:function(){var L;
return(L=v())==null?void 0:L.data},
then:function(L){return _.F(pGJ,{className:"ytdMiniplayerToastThumbnail",data:L,width:78})}}),_.F("div",{class:"ytdMiniplayerToastInfo"},_.F("div",{class:"ytdMiniplayerToastLabel"},function(){var L;
return(L=v())==null?void 0:L.label}),_.F("div",{class:"ytdMiniplayerToastTitle"},f)))},"hg");var RoI;var tHf=null;var ANU=_.H(function(D){var v=D.progressState;var h=D.multiMarkersPlayerBarRenderer;var a=D.progressBarWidth;var Q=function(){return vTA(h())},G=function(){return $lO(v())},x=function(){return a()*(v().playedTime/v().videoDuration)};
return _.F("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.F(_.Xd,{each:Q},function(f,C){return _.F(XQS,{modifiedProps:G,chapters:Q,index:C,playedProgressWidth:x,backgroundGradientPosition:function(){var U=G(),L=Q(),Z=C(),E=x();return(U.playedTime-H7(_.k(L[Z],mP)))/U.playedTime*E}})}))},"ig"),XQS=_.H(function(D){var v=D.modifiedProps;
var h=D.chapters;var a=D.index;var Q=D.playedProgressWidth;var G=D.backgroundGradientPosition;D={};D=_.S3("ytChapteredProgressBarChapteredPlayerBarChapter",(D.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return x().isScrubbing},D.ytChapteredProgressBarHoveredMacroMarker=function(){return x().scrubberHovering},D.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return x().videoPosition==="seen"},D));
var x=function(){return QTf(v(),h(),a())},f=function(){var C=v();
var U=h(),L=a();if(QTf(C,U,L).videoPosition!=="active")C=0;else{var Z=H7(_.k(U[L],mP));C=(C.playedTime-Z)/((H7(_.k(U[L+1],mP))||C.videoDuration)-Z)}return C};
return _.F("div",{class:D,style:_.NL({width:function(){var C=v(),U=h(),L=a(),Z=_.k(U[L],mP);U=_.k(U[L+1],mP);return(U?H7(U)-H7(Z):C.videoDuration-H7(Z))/C.videoDuration*100+"%"},
"background-color":function(){a:{var C=x();switch(C.videoPosition){case "pending":C=C.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":C=C.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:C=""}}return C},
"background-size":function(){return(G_c(x())?Q():"")+"px"},
"background-position-x":function(){return(G_c(x())?G():"")+"px"}})},_.F("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var C=v(),U=h(),L=a();if(QTf(C,U,L).videoPosition==="seen")var Z=0;else Z=H7(_.k(U[L],mP)),U=H7(_.k(U[L+1],mP))||C.videoDuration,C=C.videoDuration*C.percentLoaded,Z=U<=C?1:Z>=C?0:(C-Z)/(U-Z);return"width: "+Z*100+"%"}}),_.F("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.NL({width:function(){return f()*100+"%"},
"background-size":function(){return(G_c(x(),f())?Q():"")+"px"},
"background-position-x":function(){return(G_c(x(),f())?G():"")+"px"}})}))},"jg");var qNs=function(D,v){v=v===void 0?Tpy:v;var h,a=[],Q,G=!1;return function(){var x=_.Kz.apply(0,arguments);if(G&&h===this&&v(x,a))return Q;Q=D.apply(this,x);G=!0;h=this;a=x;return Q}}(function(D){var v=D.heatMarkers,h=D.minHeightDp===void 0?0:D.minHeightDp,a=D.maxHeightDp===void 0?60:D.maxHeightDp;
var Q=Q===void 0?!1:Q;var G=1E3/v.length;D=[];D.push({x:0,y:100});for(var x=0;x<v.length;x++){var f=void 0,C=((f=_.k(v[x],kPJ))==null?void 0:f.heatMarkerIntensityScoreNormalized)||0;f=(x+.5)*G;C=100-_.sk(C*100,h/321*100,a/321*100);x!==0||Q||D.push({x:0,y:C});D.push({x:f,y:C});x===v.length-1&&D.push({x:1E3,y:C})}D.push({x:1E3,y:100});v="";for(h=0;h<D.length;h++)Q=D[h],h===0?Q="M "+Q.x.toFixed(1)+","+Q.y.toFixed(1):(a=Vwi(D[h-1],D[h-2],Q),G=Vwi(Q,D[h-1],D[h+1],!0),Q=" C "+(a.x.toFixed(1)+","+a.y.toFixed(1)+
" "+G.x.toFixed(1)+","+G.y.toFixed(1)+" "+Q.x.toFixed(1)+","+Q.y.toFixed(1))),v+=Q;return v});var b0S=_.H(function(D){var v=D.progressBarProps;var h=D.config;var a={};D=_.S3("ytHeatSeekerHost",(a.ytHeatSeekerHighContrast=D.highContrast,a));var Q=function(){return eo4(h().chapterData)};
return _.F("yt-progress-bar-heatseeker",{class:D,style:function(){var G;return"height: 320px; display: "+(v().isDragging&&((G=Q())==null?0:G.heatMarkers)?"block":"none")}},_.F(_.z,{cond:Q,
then:function(G){return _.F(_.z,{cond:function(){return G().heatMarkers},
then:function(){return _.F("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.F("path",{d:function(){return qNs(G())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"kg");var dpK=_.H(function(D){var v=D.progressBarProps;var h=D.config;D={};D=_.S3("ytProgressBarLineProgressBarLine",(D.ytProgressBarLineProgressBarLineRounded=function(){return h().rounded},D.ytProgressBarLineProgressBarLineBottomInset=function(){return h().position===2},D));
return _.F("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.F("div",{class:D},_.F("div",{class:"ytProgressBarLineProgressBarBackground"}),_.F("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+v().percentLoaded*100+"%"}}),_.F("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var a=v();return"width: "+(a.videoDuration?_.sk(a.hoveredTime/a.videoDuration,0,1):0)*100+"%"}}),_.F("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+HQ8(v())*100+"%"}})))},"lg");
dpK.idomCompat=!0;var jab=_.H(function(D){var v=D.progressBarProps;var h=D.playheadData;var a=D.interpolateDotPosition;var Q=D.hidePlayhead;D={};var G=_.S3("ytProgressBarPlayheadProgressBarPlayheadDot",(D.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return v().isDragging},D.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!v().isDragging&&Q()},D));
return _.F("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.NL({"margin-left":function(){return y4L(v())*100+"%"},
transform:function(){return"translateX(-"+(a()?y4L(v())*12:6)+"px)"}})},_.F(_.z,{cond:function(){var x;
return(x=_.MK(h)())==null?void 0:x.playheadImage},
then:function(x){var f={};return _.F("div",{class:_.S3("ytProgressBarPlayheadProgressBarPlayheadCustom",(f.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return v().isDragging},f.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!v().isDragging&&Q()},f)),
style:_.NL({"transform-origin":function(){return(a()?y4L(v())*20:10)+"px center"}})},_.F(_.PX,{data:x,
alt:"","aria-hidden":"true"}))},
else:function(){return _.F("div",{class:G,style:_.NL({"transform-origin":function(){return(a()?y4L(v())*12:6)+"px center"}})})}}))},"mg");
jab.idomCompat=!0;var f5=function(D,v,h,a,Q,G){this.getProgressBarRect=D;this.updateProgressBarRect=v;this.getFilmstripYPosition=h;this.setFineScrubbingDraggedTime=a;this.updateFilmStripDraggedYDistance=Q;this.resetFilmStripYOffset=G;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.tn(this.onThrottledSeek,100,this)},sar=function(D,v,h){return function(a){D.handleClick(a,v(),h())}},yN$=function(D,v){return function(h){mpK(D,
h,H0r(h),v())}},wQr=function(D,v){return function(h){mpK(D,h,{x:h.clientX,
y:h.clientY},v())}},nqZ=function(D,v,h){return function(a){var Q=v(),G=h();
ePI(D,a,H0r(a),Q,G,!0);if(G.onTouchMove)G.onTouchMove(Q)}},KSb=function(D,v,h){return function(a){O0r(D,a,v(),h())}},TWC=function(D,v){return function(){D.handleMouseLeave(v())}},RPr=function(D,v,h){return function(){var a=v(),Q=h();
C5(D,a,Q);if(Q.onTouchEnd)Q.onTouchEnd(a)}},i0d=function(D,v,h){return function(){var a=v(),Q=h();
C5(D,a,Q);if(Q.onTouchEnd)Q.onTouchEnd(a)}},WSU=function(D,v,h){return function(){C5(D,v(),h())}},tes=function(D){return function(v){if(v.keyCode===39||v.keyCode===38){var h,a;
(h=D())==null||(a=h.playerApi)==null||a.seekBy(5,void 0,void 0,72)}else if(v.keyCode===37||v.keyCode===40){var Q,G;(Q=D())==null||(G=Q.playerApi)==null||G.seekBy(-5,void 0,void 0,71)}}},rNS=function(D,v,h){return function(a){!h().disableScrubbing&&D.startPosition&&O0r(D,a,v(),h())}},u6m=function(D,v,h){return function(){if(!h().disableScrubbing)if(D.startPosition){var a=v(),Q=h();
C5(D,v(),h());if(Q.onTouchEnd)Q.onTouchEnd(a)}else v().setState({isDragging:!1})}},H0r=function(D){D=D.touches[0];
return{x:D.clientX,y:D.clientY}},O0r=function(D,v,h,a){if(v.buttons!==1){if(v.movementX||v.movementY)v.preventDefault(),v.stopPropagation(),D=Dxm(D,h,v.clientX),h.setState({isHovering:!0,
hoveredTime:D*h.videoDuration})}else vHd(h),ePI(D,v,{x:v.clientX,y:v.clientY},h,a,!1)};
f5.prototype.handleMouseLeave=function(D){vHd(D)};
var vHd=function(D){D.isHovering&&D.setState({isHovering:!1,hoveredTime:0})},mpK=function(D,v,h,a){D.startPosition||(D.startPosition=h,D.updateProgressBarRect(),D.controlsWereVisibleBeforeDragging=a.controlsVisible,v.stopPropagation(),_.g("medium_progress_bar_modification")||v.preventDefault())},ePI=function(D,v,h,a,Q,G){if(D.startPosition)if(G&&Q.isInlinePlayback&&D.startPosition&&!D.hasDraggedTheMinimumDistance&&Math.abs(h.y-D.startPosition.y)>Math.abs(h.x-D.startPosition.x))C5(D,a,Q);
else if(v.preventDefault(),v.stopPropagation(),a.videoDuration&&(D.startPosition&&!D.hasDraggedTheMinimumDistance&&(D.hasDraggedTheMinimumDistance=Math.abs(h.x-D.startPosition.x)>=1),Q.enableFineScrubbing&&(D.startPosition&&(D.isDraggedForFineScrubbing=-(h.y-D.startPosition.y)>=60),!D.startPosition||h.y>=D.startPosition.y||(a.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Vm7(a.draggedTime,a,Q.chapterData)}),D.setFineScrubbingDraggedTime(a.draggedTime),D.updateFilmStripDraggedYDistance(D.startPosition.y,
h.y,a))),D.hasDraggedTheMinimumDistance)){v=Dxm(D,a,h.x);if(D.isDraggedForFineScrubbing){var x;(x=a.playerApi)==null||x.pauseVideo();a.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:a.draggedTime,filmStripXDistance:Vm7(v*a.videoDuration,a,Q.chapterData)})}Q.enableFineScrubbing&&(!Q.enableFineScrubbing||D.getFilmstripYPosition(a)<68)||a.setState({draggedTime:v*a.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:D.controlsWereVisibleBeforeDragging});var f;(f=
Q.cancelAutohideControlsFn)==null||f.call(Q)}},C5=function(D,v,h){var a=h.enableFineScrubbing&&v.fineScrubbingActiveState!=="off";
if(v.isDragging||a){a={isDragging:!1,playedTime:v.draggedTime,controlsVisible:D.controlsWereVisibleBeforeDragging};h.enableFineScrubbing&&v.fineScrubbingActiveState!=="on"&&(D.resetFilmStripYOffset(),a.fineScrubbingActiveState="off");var Q=Q===void 0?tHf:Q;var G=_.wd(0);if(G&&Q){var x=Math.round(v.playedTime*1E3),f=Math.round(v.draggedTime*1E3);x>2147483647||f>2147483647||_.aG(G,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(x),endMediaTimeMs:String(f),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}v.setState(a);
D.seekThrottle.fire(v.draggedTime,v,7);_.g("mweb_new_progress_bar_play_on_seek")&&D.resumeVideo(v);h.unmuteOnSeek&&(h=v.playerApi,v.volumeMuted&&(h==null||h.unMute()))}else v.setState({controlsVisible:!v.controlsVisible}),(G=h.triggerAutohideControlsAfterDelayFn)==null||G.call(h);D.startPosition=null;D.hasDraggedTheMinimumDistance=!1;D.isDraggedForFineScrubbing=!1;D.controlsWereVisibleBeforeDragging=!1};
f5.prototype.handleClick=function(D,v,h){this.updateProgressBarRect();D.stopPropagation();D=Dxm(this,v,D.clientX)*v.videoDuration;v.setState({playedTime:D});if(v.playerState!==2){var a;(a=h.triggerAutohideControlsAfterDelayFn)==null||a.call(h)}this.seekThrottle.fire(D,v,7)};
var Dxm=function(D,v,h){D=D.getProgressBarRect(v);return _.sk(0,(h-D.left)/D.width,1)};
f5.prototype.resumeVideo=function(D){if(D.draggedTime<D.videoDuration){var v;(v=D.playerApi)==null||v.playVideo()}};
f5.prototype.onThrottledSeek=function(D,v,h){if(v=v.playerApi){var a;if((a=v.getVideoData())==null?0:a.isLive)a=this.getProgressState(v),D+=(a==null?void 0:a.seekableStart)||0;v.seekTo(D,void 0,void 0,void 0,h)}};
f5.prototype.getProgressState=function(D){var v=D==null?void 0:D.getPresentingPlayerType();return D==null?void 0:D.getProgressState(v)};var $xX,aqC,QuK,VMS,hrC,PWb,xxK,MMr,fq2;$xX=_.H(function(D){var v=D.progressBarProps;var h=D.config;var a=D.progressBarWidthPx;var Q=D.chapterData;var G=Ch4(v,function(){return h().isShortsPage}),x=function(){return!v().isHovering&&!h().isShortsPage};
D={};var f=_.S3("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(D.ytPlayerStoryboardHostMwebShorts=function(){return h().isShortsPage&&!1},D));
return _.F("yt-player-storyboard",null,_.F(_.z,{cond:function(){return v().isDragging||v().isHovering},
then:function(){return _.F(_.z,{cond:G,then:function(C){return _.F(_.z,{cond:x,then:function(){return _.F("div",{class:f,"aria-hidden":"true"},_.F(hrC,{props:v,config:h,isBigboard:!0,chapterData:Q}))},
else:function(){return _.F(aqC,{props:v,frame:C,config:h,progressBarWidthPx:a,chapterData:Q})}})}})}}))},"ng");
_.GS2=_.H(function(D){var v=D.progressBarProps;var h=Ch4(v,D.isShortsPage);return _.F("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.F(_.z,{cond:function(){return v().isDragging||v().isHovering},
then:function(){return _.F(_.z,{cond:h,then:function(a){return _.F(QuK,{frame:a,props:v,isBigboard:!0})}})}}))},"og");
aqC=_.H(function(D){var v=D.props;var h=D.frame;var a=D.config;var Q=D.progressBarWidthPx;D=D.chapterData;var G={};G=_.S3("ytPlayerStoryboardHost",(G.ytPlayerStoryboardHostMwebShorts=function(){return a().isShortsPage&&!1},G.ytPlayerStoryboardHostInlinePlayer=function(){return a().isInlinePlayer},G.ytPlayerStoryboardHostFadeIn=function(){return a().useFadeInAnimation},G));
return _.F("div",{class:G,"aria-hidden":"true",style:function(){var x=v(),f=PhO(h()),C=Q();x=xli(x)/x.videoDuration;var U=C*x,L=f/2+6;f=C-(f/2+6);return"left: "+(U<=L?L/C*100:U>=f?f/C*100:x*100)+"%"}},_.F(_.z,{cond:function(){var x=v();
return!(a().isShortsPage&&x.videoDuration<15)},
then:function(){return _.F(QuK,{frame:h,props:v,isBigboard:!1})}}),_.F(hrC,{props:v,
config:a,isBigboard:!1,chapterData:D}))},"pg");
QuK=_.H(function(D){var v=D.frame;var h=D.props;var a=D.isBigboard;var Q=function(){var f,C;return(C=(f=h().playerApi)==null?void 0:f.getVideoContentRect())!=null?C:{width:0,height:0}},G=function(){return PhO(v())},x=function(){var f=v();
return f?f.height/f.rows:0};
D={};D=_.S3((D.ytPlayerStoryboardBigboardImageWrapper=a,D.ytPlayerStoryboardStoryboardImageWrapper=function(){return!a()},D));
return _.F("div",{class:D,style:function(){return"width: "+(a()?Q().width:G())+"px; height: "+(a()?Q().height:x())+"px;"}},_.F(VMS,{frame:v,
storyboardWidth:G,storyboardHeight:x,storyboardScale:function(){return(a()?Q().width:G())/G()}}))},"qg");
VMS=_.H(function(D){var v=D.frame;var h=D.storyboardWidth;var a=D.storyboardHeight;var Q=D.storyboardScale;var G=function(){var x=v().row,f=v().column,C=h(),U=a(),L=Q();return{left:-f*C*L,top:-x*U*L}};
return _.F("img",{src:function(){return v().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+G().left+"px; top: "+G().top+"px; width: "+v().width*Q()+"px; height: "+v().height*Q()+"px;"}})},"rg");
hrC=_.H(function(D){var v=D.props;var h=D.config;var a=D.isBigboard;var Q=D.chapterData;D={};D=_.S3("ytPlayerStoryboardMetadata",(D.ytPlayerStoryboardMetadataBigboard=a,D));return _.F("div",{class:D},_.F(_.z,{cond:a,then:function(){return _.F(_.xf,null,_.F(PWb,{props:v,config:h}),_.F(_.z,{cond:function(){a:{var G=v();var x=h(),f=Q(),C;if((x==null?0:x.activeChapter)&&((C=_.k(x==null?void 0:x.activeChapter,mP))==null?0:C.title))G=!0;else{x=_.P(nP2(f));for(x=x.next();!x.done;x=x.next()){G=(x=_.k(x.value,
JEy))&&Mmo(G,x);break a}G=!1}}return G},
then:function(){return _.F(xxK,{props:v,config:h,isBigboard:!0,chapterData:Q})}}))},
else:function(){return _.F(_.xf,null,_.F(xxK,{props:v,config:h,isBigboard:!0,chapterData:Q}),_.F(PWb,{props:v,config:h}))}}))},"sg");
PWb=_.H(function(D){var v=D.props;var h=D.config;D={};D=_.S3("ytPlayerStoryboardTimestamp",(D.ytPlayerStoryboardTimestampShorts=function(){return h().isShortsPage},D.ytPlayerStoryboardTimestampIsHovering=function(){return v().isHovering||h().isShortsPage&&!0},D));
return _.F("div",{class:D},_.F(_.xf,null,function(){return _.fuL(xli(v()))}))},"tg");
xxK=_.H(function(D){var v=D.props;var h=D.config;var a=D.isBigboard;var Q=D.chapterData;D={};a=_.S3("ytPlayerStoryboardTitle",(D.ytPlayerStoryboardTitleBigboard=a,D));return _.F("div",{class:a},_.F(_.z,{cond:function(){return!h().isShortsPage},
then:function(){return _.F(MMr,{props:v,activeChapter:function(){return h().activeChapter},
chapterData:Q})}}))},"ug");
MMr=_.H(function(D){var v=D.props;var h=D.activeChapter;var a=D.chapterData;return _.F(_.xf,null,_.F(_.Xd,{each:function(){return nP2(a())},
keyBy:"INDEX"},function(Q){return _.F(_.xf,null,_.F(_.z,{cond:function(){return _.k(Q(),JEy)&&Mmo(v(),_.k(Q(),JEy))},
then:function(){return _.F(fq2,{timedMarker:function(){return _.k(Q(),JEy)}})}}))}),_.F(_.z,{cond:function(){var Q;
return h()&&((Q=_.k(h(),mP))==null?void 0:Q.title)},
then:function(Q){return _.F(_.IY,{text:Q,noPreWrap:!0})}}))},"vg");
fq2=_.H(function(D){var v=D.timedMarker;return _.F(_.xf,null,_.F("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.F(_.Y5,{icon:function(){return v().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.F(_.IY,{text:function(){return v().label},
noPreWrap:!0}))},"wg");_.CWr=_.H(function(D){var v=D.progressBarProps;var h=D.playheadData;var a=D.config;D=_.va("yt-progress-bar");var Q=_.va("div"),G=_.va("div"),x=_.P(_.Zq({width:0,left:0},void 0,"WloVn")),f=x.next().value,C=x.next().value,U=function(){G.value&&C(G.value.getBoundingClientRect())},L=function(){f().width<=0&&U();
return f()};
_.Pa("resize",U);var Z=new f5(L,function(){},function(){return 0},function(){},function(){},function(){}),E=function(){return v()};
x=_.P(_.Zq(!1,void 0,"u8BZZb"));var I=x.next().value,S=x.next().value;x=_.Jd(function(){S(!0);a().position===2?setTimeout(function(){U()},100):U()});
var B=_.Jd(function(){S(!1);TWC(Z,E)()}),A=_.Jd(function(Xf){a().doSeekOnClick&&sar(Z,E,a)(Xf);
return!1}),d=_.Jd(function(Xf){yN$(Z,E)(Xf);
return!1}),b=_.Jd(function(Xf){wQr(Z,E)(Xf);
return!1}),W=_.Jd(function(Xf){nqZ(Z,E,a)(Xf);
return!1}),K=_.Jd(function(Xf){KSb(Z,E,a)(Xf);
return!1}),O=_.Jd(function(){RPr(Z,E,a)();
return!1}),R=_.Jd(function(){i0d(Z,E,a)();
return!1}),vA=_.Jd(function(){WSU(Z,E,a)();
return!1}),f7=_.Jd(function(Xf){tes(E)(Xf);
return!1});
_.Pa("mousemove",rNS(Z,E,a));_.Pa("mouseup",u6m(Z,E,a));_.jA(function(){r4L(Q.value);S(!1);U();u6m(Z,E,a)()});
var xL={};xL=_.S3("ytPlayerProgressBarHost",function(){return a().className},(xL.ytPlayerProgressBarHostReadOnly=function(){return a().disableScrubbing},xL.ytPlayerProgressBarHostHidden=function(){return a().hideProgressBar&&!I()},xL.ytPlayerProgressBarHostLowerPlayer=function(){return a().position===0},xL.ytPlayerProgressBarHostBottomEdge=function(){return a().position===1},xL.ytPlayerProgressBarHostBottomInset=function(){return a().position===2},xL.ytPlayerProgressBarHostCustom=function(){return a().position===
3},xL));
var kL={},Z4=_.S3("ytPlayerProgressBarBackground",(kL.ytPlayerProgressBarBackgroundHide=function(){return a().position===2&&!I()&&!v().isDragging},kL));
kL={};kL=_.S3("ytPlayerProgressBarDragContainer",(kL.ytPlayerProgressBarDragContainerBottomEdge=function(){return a().position===1},kL));
var S2={};S2=_.S3("ytPlayerProgressBarProgressBar",(S2.ytPlayerProgressBarProgressBarInset=function(){return a().position===2},S2.ytPlayerProgressBarProgressBarInsetMinimized=function(){return a().position===2&&!I()&&!v().isDragging},S2));
var s8=function(){return Math.floor(HQ8(v())*100)};
return _.F("yt-progress-bar",{el:D,class:xL},_.F(_.z,{cond:function(){return a().position===2},
then:function(){return _.F("div",{class:Z4})}}),_.F("div",{el:Q,
"on:click":A,"on:touchstart":d,"on:touchmove":W,"on:mouseenter":x,"on:mousedown":b,"on:mouseleave":B,"on:mousemove":K,"on:mouseup":R,"on:touchend":O,"on:touchcancel":vA,"on:keydown":f7,class:kL,role:"slider","aria-valuenow":s8,"aria-valuetext":function(){return s8()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return v().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.p1("SEEK_SLIDER")},_.F("div",{el:G,class:S2},_.F(b0S,{progressBarProps:v,config:a,highContrast:function(){return!!a().isInlinePlayback}}),_.F(_.z,{cond:function(){return a().chapterData&&OQo(a().chapterData)},
then:function(){return _.F(ANU,{progressState:v,multiMarkersPlayerBarRenderer:function(){return a().chapterData},
progressBarWidth:function(){return f().width}})},
else:function(){return _.F(dpK,{progressBarProps:v,config:a})}}),_.F(jab,{progressBarProps:v,
playheadData:h,interpolateDotPosition:function(){return a().position!==2},
hidePlayhead:function(){return a().playheadDotBehavior===1&&!I()}}))),_.F($xX,{progressBarProps:v,
config:function(){return{activeChapter:au2(v(),a().chapterData),getProgressBarWidthPx:function(){return L().width},
isShortsPage:!!a().isShortsPage,isInlinePlayer:!!a().isInlinePlayback,useFadeInAnimation:!!a().isInlinePlayback}},
progressBarWidthPx:function(){return f().width},
chapterData:function(){return a().chapterData}}))},"xg");
_.CWr.idomCompat=!0;Object.assign({},_.KXA(),{setState:function(){},
domMeasurements:{},appApi:_.mXu(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var oHs;
_.FtX=_.H(function(){var D,v=(D=_.yf(oTO().playerApi))!=null?D:void 0;D=_.P(_.Zq(!1,void 0,"Z9NQ1b"));var h=D.next().value,a=D.next().value;D=_.P(_.Zq(!1,void 0,"HoVJXe"));var Q=D.next().value,G=D.next().value;D=_.P(_.Zq(!1,void 0,"DWCY3"));var x=D.next().value,f=D.next().value;D=_.P(_.Zq(!1,void 0,"g4C2Zd"));var C=D.next().value,U=D.next().value;D=_.P(_.Zq(0,void 0,"lmVfFb"));var L=D.next().value,Z=D.next().value;D=_.P(_.Zq(0,void 0,"mFLbzb"));var E=D.next().value,I=D.next().value;D=_.P(_.Zq(!1,void 0,
"hQN4Wb"));var S=D.next().value,B=D.next().value;D=_.P(_.Zq(0,void 0,"WWU0fb"));var A=D.next().value,d=D.next().value;D=_.P(_.Zq(0,void 0,"MJ7LMd"));var b=D.next().value,W=D.next().value;D=_.P(_.Zq("",void 0,"hnomOe"));var K=D.next().value,O=D.next().value;D=_.P(_.Zq(-1,void 0,"ARe3pf"));var R=D.next().value,vA=D.next().value,f7=_.SM(function(){var xL={controlsVisible:h(),isOverlayHidden:Q(),shouldWaitToHideControls:x(),isDragging:C(),isHovering:S(),videoDuration:A(),playedTime:b(),videoId:K(),draggedTime:E(),
hoveredTime:L(),playerState:R()};return Object.assign({},_.KXA(),xL,{domMeasurements:{},setState:function(kL){kL.controlsVisible!==void 0&&a(kL.controlsVisible);kL.isOverlayHidden!==void 0&&G(kL.isOverlayHidden);kL.shouldWaitToHideControls!==void 0&&f(kL.shouldWaitToHideControls);kL.isDragging!==void 0&&U(kL.isDragging);kL.isHovering!==void 0&&B(kL.isHovering);kL.draggedTime!==void 0&&I(kL.draggedTime);kL.hoveredTime!==void 0&&Z(kL.hoveredTime);kL.videoDuration!==void 0&&d(kL.videoDuration);kL.playedTime!==
void 0&&W(kL.playedTime);kL.videoId!==void 0&&O(kL.videoId);kL.playerState!==void 0&&vA(kL.playerState)},
appApi:_.mXu(),playerApi:v})},void 0,"Au4PIf");
_.dM(function(){v==null||v.addEventListener("onVideoProgress",WXf(f7));v==null||v.addEventListener("onVideoDataChange",iQL(f7));v==null||v.addEventListener("onStateChange",T5O(f7))});
_.dq(function(){if(v==null?0:v.isReady())v==null||v.removeEventListener("onVideoProgress",WXf(f7)),v==null||v.removeEventListener("onVideoDataChange",iQL(f7)),v==null||v.removeEventListener("onStateChange",T5O(f7))});
return _.F("desktop-shorts-player-controls",null,_.F(oHs,{playerControlsProps:f7}))},"yg");
oHs=_.H(function(D){var v=D.playerControlsProps;return _.F("div",{class:"desktopShortsPlayerControlsHost"},_.F(_.CWr,{progressBarProps:v,config:function(){return{isShortsPage:!0,hideProgressBar:v().videoDuration<30&&v().playerState!==2&&!v().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"zg");_.zrX=_.H(function(D){function v(xL){xL!==0||Z()?xL>50&&(Z()||!I())?(E(!1),S(!0)):xL<=50&&(Z()||I())&&(E(!1),S(!1)):E(!0)}
function h(xL,kL){var Z4;return _.M(function(S2){if(S2.nextAddress==1)return S2.yield(_.Ig(),2);Z4=S2.yieldResult;kL&&Z4?(Z4.unMute(!0),xL&&(zKu(xL,Z4.getVolume()),A(Z4.getVolume()))):Z4&&(Z4.mute(!0),xL&&zKu(xL,0));_.YI(S2)})}
function a(xL){var kL,Z4;return _.M(function(S2){if(S2.nextAddress==1)return S2.yield(_.Ig(),2);kL=S2.yieldResult;Z4=50;kL&&(Z4=kL.getVolume(),kL.isMuted()?zKu(xL,0):zKu(xL,Z4));A(Z4);_.YI(S2)})}
var Q=D.orientation;D=_.va("desktop-shorts-volume-controls");var G=_.va("button"),x=_.$X("input"),f=_.P(_.Zq(!1,void 0,"MvN0Tc")),C=f.next().value,U=f.next().value,L=_.P(_.Zq(!1,void 0,"aSjsEb"));f=L.next().value;L=L.next().value;var Z=f,E=L;L=_.P(_.Zq(!0,void 0,"FUh46d"));f=L.next().value;L=L.next().value;var I=f,S=L;f=_.P(_.Zq(50,void 0,"yPke4d"));var B=f.next().value,A=f.next().value;f=_.SM(function(){var xL=Z();return _.g("web_shorts_keyboard_enable_mute_shortcut")?xL?_.p1("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.p1("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):xL?_.p1("UNMUTE_VOLUME",void 0,"Unmute"):_.p1("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
L=_.SM(function(){var xL=Z(),kL=I();return{sources:[{clientResource:{imageName:xL?_.g("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":kL?_.g("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.g("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var d=_.SM(function(){var xL=B();return Z()?xL+"% volume muted":xL+"% volume"},void 0,"xZsRmc"),b=_.SM(function(){return Q()==="vertical_down"},void 0,"FVqYmb");
_.jA(function(){function xL(){U(!0)}
function kL(){U(!1)}
x&&x.value&&(x.value.addEventListener("focus",xL),x.value.addEventListener("focusout",kL),a(x.value).then(function(){v(Number(Ulo(x.value)))}));
G&&G.value&&(G.value.addEventListener("focus",xL),G.value.addEventListener("focusout",kL));_.dq(function(){var Z4;x==null||(Z4=x.value)==null||Z4.removeEventListener("focus",xL);var S2;x==null||(S2=x.value)==null||S2.removeEventListener("focusout",kL);var s8;G==null||(s8=G.value)==null||s8.removeEventListener("focus",xL);var Xf;G==null||(Xf=G.value)==null||Xf.removeEventListener("focusout",kL)})});
var W=_.Jd(function(){if(x&&x.value){var xL=Number(Ulo(x.value));F7r(xL);A(xL);x.value.style.setProperty("--gradient-percent",xL+"%");v(xL)}return!1}),K=_.Jd(function(){U(!0)}),O=_.Jd(function(){x&&x.value&&(h(x.value,Z()),E(!Z()));
return!1}),R={},vA={},f7={};
return _.F("desktop-shorts-volume-controls",{"on:pointerleave":_.Jd(function(){U(!1)}),
class:_.S3("ytdDesktopShortsVolumeControlsHost",(R.ytdDesktopShortsVolumeControlsHostVertical=b,R.ytdDesktopShortsVolumeControlsHostExpanded=C,R)),el:D},_.F(_.z,{cond:function(){return!b()},
then:function(){var xL={};return _.F("div",{class:_.S3("ytdDesktopShortsVolumeControlsBackgroundScrim",(xL.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=C,xL))})}}),_.F("div",{class:_.S3((vA.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=b,vA))},_.F("button",{"aria-label":f,
title:f,el:G,"on:click":O,"on:pointerenter":K,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},L?_.F(_.PX,{data:L,alt:f,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.F("div",{class:_.S3("ytdDesktopShortsVolumeControlsSliderContainer",(f7.ytdDesktopShortsVolumeControlsSliderContainerExpanded=C,f7.ytdDesktopShortsVolumeControlsSliderContainerVertical=b,f7.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=b,f7.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return C()&&b()},f7))},_.F("input",{"aria-label":_.p1("VOLUME"),
title:_.p1("VOLUME"),el:x,"on:input":W,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":B,"aria-valuetext":d,"aria-valuemin":0,"aria-valuemax":100})))},"Ag");_.UxK=_.H(function(D){var v=D.data;var h=D.extractOverlay;D={};return _.F("player-disclosure-view-model",{class:_.S3("ytwPlayerDisclosureViewModelHost",(D.ytwPlayerDisclosureViewModelExtractOverlay=function(){return h==null?void 0:h()},D))},_.F(_.Ak,{command:function(){return v().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.F(_.z,{cond:function(){return v().iconName},
then:function(a){return _.F(_.Y5,{icon:a})}}),_.F("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return v().text}),_.F(_.z,{cond:function(){return v().showEndChevron},
then:function(){return _.F(_.Y5,{icon:"CHEVRON_RIGHT"})}})))},"Bg");var Lt2=_.H(function(D){var v=D.data;var h=D.overlayDensity;D={};return _.F("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.F(_.c4,{data:function(){return v().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(a){var Q=a.data;
return _.F(_.GG,{data:function(){return(h==null?void 0:h())===1?Object.assign({},Q(),{avatar:{avatarViewModel:Object.assign({},_.k(Q().avatar,_.nj),{avatarImageSize:"AVATAR_SIZE_M"})}}):Q()}})}}),_.F(_.c4,{data:function(){return v().avatarStackViewModel}},{avatarStackViewModel:function(a){return _.F(_.V2,{data:a.data})}}),_.F(_.IY,{className:_.S3("ytReelChannelBarViewModelChannelName",(D.ytReelChannelBarViewModelChannelNameLarge=function(){return(h==null?void 0:h())===1},D)),
text:function(){return v().channelName},
linkInheritColor:!0,userInput:!0}),_.F("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.F(_.c4,{data:function(){return v().subscribeButtonViewModel}},{subscribeButtonViewModel:function(a){var Q=a.data;
return _.F(_.Q8,{data:function(){return(h==null?void 0:h())===1?Object.assign({},Q(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Q().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Q()},
isOverlay:!1})},
buttonViewModel:_.s$})),_.F("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.F(_.c4,{data:function(){var a,Q;return(Q=_.k((a=v())==null?void 0:a.sponsorButtonViewModel,bHb))==null?void 0:Q.sponsorButton}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Cg");var ZVr=_.H(function(D){var v=function(){var a;return(D==null?void 0:(a=D.overlayDensity)==null?void 0:a.call(D))===1?22:16},h={};
return _.F("yt-reel-multi-format-link-view-model",{class:_.S3("ytReelMultiFormatLinkViewModelHost",(h.ytReelMultiFormatLinkViewModelHostTall=!0,h.ytReelMultiFormatLinkViewModelHostLarge=function(){var a;return((a=D.overlayDensity)==null?void 0:a.call(D))===1},h))},_.F(_.Ak,{ariaLabel:function(){return D.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return D.data().command}},_.F("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.F(_.z,{cond:function(){return D.data().icon},
then:function(a){return _.F(_.PX,{data:a,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:v})}}),_.F(_.IY,{text:function(){return D.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Dg");
ZVr.idomCompat=!0;var EHX=_.H(function(D){var v=D.data;var h=D.overlayDensity;var a=D.extractOverlay;var Q=_.va("yt-shorts-suggested-action-view-model");D=_.P(_.Zq(!1,void 0,"S60Hzc"));var G=D.next().value,x=D.next().value;D=_.P(_.Zq(!1,void 0,"O76chf"));var f=D.next().value,C=D.next().value,U=function(){return v().isMultiLineSa},L=_.l7(Egu,function(){var O,R;
return(R=(O=v().toggleableContent)==null?void 0:O.entityKey)!=null?R:""}),Z=function(){var O,R,vA;
return(vA=v().toggleableContent)!=null&&vA.entityKey?(R=(O=L())==null?void 0:O.value)!=null?R:!1:!1},E=function(){var O,R,vA,f7,xL,kL,Z4,S2,s8,Xf,dJ;
return v().toggleableContent?Z()?(O=v().toggleableContent)==null?void 0:O.toggledData:(R=v().toggleableContent)==null?void 0:R.untoggledData:{primaryText:(S2=(vA=v().defaultContent)==null?void 0:vA.primaryText)!=null?S2:v().text,secondaryText:(f7=v().defaultContent)==null?void 0:f7.secondaryText,onTapCommand:(s8=(xL=v().defaultContent)==null?void 0:xL.onTapCommand)!=null?s8:v().onTapCommand,icon:(Xf=(kL=v().defaultContent)==null?void 0:kL.icon)!=null?Xf:v().icon,image:(dJ=(Z4=v().defaultContent)==
null?void 0:Z4.image)!=null?dJ:v().image}},I=function(){return U()?v().trailingTapTarget:void 0},S=function(O,R){return function(){return G()?R:O}},B=function(){return{leadingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(h==null?void 0:h())===1?S("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):S("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:S("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
D={};D=_.S3((D.ytShortsSuggestedActionViewModelStaticHost=function(){return!U()},D.ytShortsSuggestedActionViewModelDynamicHost=U,D.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return U()&&f()},D.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return U()&&!f()},D.ytShortsSuggestedActionViewModelExtractOverlay=function(){return a==null?void 0:a()},D));
_.jA(function(){if(U()){var O=0,R;if((R=v().animationParams)==null?0:R.shouldExpand){var vA,f7;O=((f7=(vA=v().animationParams)==null?void 0:vA.expansionDelaySecs)!=null?f7:0)*1E3}var xL,kL=((xL=v().animationParams)==null?0:xL.shouldExpand)?setTimeout(function(){x(!0)},O):void 0,Z4,S2;
O=((Z4=v().animationParams)==null?0:Z4.visibilityDelaySecs)?((S2=v().animationParams)==null?NaN:S2.visibilityDelaySecs)*1E3:0;var s8=setTimeout(function(){C(!0)},O);
_.dq(function(){kL&&clearTimeout(kL);clearTimeout(s8)})}});
var A=function(O){_.r4(O,Object.assign({},{form:{element:Q.value}}))},d=_.Jd(function(){var O,R=(O=E())==null?void 0:O.onTapCommand;
R&&A(R)}),b=_.Jd(function(){var O,R;
if(O=(R=I())==null?void 0:R.onTapCommand)return A(O),!1}),W=_.NL({"vertical-align":"bottom",
"border-radius":function(){var O;return U()?((O=v().defaultContent)==null?0:O.isCircleImage)?"50%":"4px":"0px"},
width:function(){var O,R,vA;return U()&&((O=v().defaultContent)==null?0:O.imageSize)?((vA=(R=v().defaultContent)==null?void 0:R.imageSize)!=null?vA:24)+"px":null},
height:function(){var O,R,vA;return U()&&((O=v().defaultContent)==null?0:O.imageSize)?((vA=(R=v().defaultContent)==null?void 0:R.imageSize)!=null?vA:24)+"px":null}}),K={};
return _.F("yt-shorts-suggested-action-view-model",{class:D,el:Q},_.F("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.F("button",{class:_.S3(function(){return U()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var O;
return(O=v().useFullRoundedBorder)!=null&&O?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!I()&&U()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":U()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var O;
return(O=v().disableFixedHeight)!=null&&O?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(K.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(h==null?void 0:h())===1},K.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return a==null?void 0:a()},K)),
"on:click":d},_.F(_.qv,{model:{color:4}}),_.F("div",{class:_.S3(function(){return U()?B().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.F(_.z,{cond:function(){var O;
return(O=E())==null?void 0:O.image},
then:function(O){return _.F(_.PX,{data:O,alt:"",className:function(){return U()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:W})}}),_.F(_.z,{cond:function(){var O,R;
return(O=E())==null?void 0:(R=O.icon)==null?void 0:R.iconType},
then:function(O){return _.F(_.Y5,{icon:O,active:Z,className:function(){return U()?G()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.F("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.F(_.z,{cond:function(){var O;
return(O=E())==null?void 0:O.primaryText},
then:function(O){return _.F("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.F(_.IY,{text:O}))}}),_.F(_.z,{cond:function(){var O;
return(O=E())==null?void 0:O.secondaryText},
then:function(O){return _.F("div",{class:function(){return B().secondaryText()}},_.F(_.IY,{text:O}))}}))),_.F(_.z,{cond:I,
then:function(O){return _.F("div",{class:_.S3(function(){return B().trailingSection()},function(){var R,vA;
return(a==null?void 0:a())&&((vA=(R=B()).trailingSectionExtractOverlay)==null?void 0:vA.call(R))||""}),
"aria-label":function(){var R;return(R=O().a11yLabel)!=null?R:""},
"on:click":b,role:"button",tabindex:0},_.F(_.qv,{model:{color:4}}),_.F(_.Y5,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Eg");var IqK=_.H(function(D){var v=D.data;var h=D.overlayDensity;var a=_.va("yt-shorts-video-title-view-model");D=_.Jd(function(x){if(_.H4(_.ms(x),a.value,["A".toString()]))return!1;(x=v().truncatedTextOnTapCommand)&&_.r4(x);return!1});
var Q={},G={};return _.F("yt-shorts-video-title-view-model",{el:a,class:_.S3("ytShortsVideoTitleViewModelHost",(Q.ytShortsVideoTitleViewModelHostClickable=function(){return!!v().truncatedTextOnTapCommand},Q)),
"on:click":D},_.F("h2",{class:_.S3("ytShortsVideoTitleViewModelShortsVideoTitle",(G.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(h==null?void 0:h())===1},G))},_.F(_.IY,{text:function(){return v().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(h==null?void 0:h())===1}})))},"Fg");_.gH3=_.H(function(D){var v=D.data;var h=D.overlayDensity;var a=D.extractOverlay;var Q=function(){return(h==null?void 0:h())===1};
return _.F("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.F(_.c4,{data:function(){return v().metadataItems}},{badgeViewModel:function(G){G=G.data;
return _.F("div",{class:_.S3(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.F(_.c$,{data:G}))},
playerDisclosureViewModel:function(G){G=G.data;return _.F("div",{class:_.S3(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.F(_.UxK,{data:G,
extractOverlay:a}))},
shortsSuggestedActionViewModel:function(G){G=G.data;return _.F("div",{class:_.S3(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.F(EHX,{data:G,
overlayDensity:h,extractOverlay:a}))},
reelChannelBarViewModel:function(G){G=G.data;var x={};return _.F("div",{class:_.S3("ytReelMetapanelViewModelMetapanelItem",(x.ytReelMetapanelViewModelExpansive=function(){return Q()},x))},_.F(Lt2,{data:G,
overlayDensity:h}))},
reelMultiFormatLinkViewModel:function(G){G=G.data;var x={};return _.F("div",{class:_.S3("ytReelMetapanelViewModelMetapanelItem",(x.ytReelMetapanelViewModelExpansive=function(){return Q()},x))},_.F(ZVr,{data:G,
overlayDensity:h}))},
shortsVideoTitleViewModel:function(G){G=G.data;var x={};return _.F("div",{class:_.S3("ytReelMetapanelViewModelMetapanelItem",(x.ytReelMetapanelViewModelExpansive=function(){return Q()},x))},_.F(IqK,{data:G,
overlayDensity:h}))},
reelSoundMetadataViewModel:function(G){G=G.data;var x={};return _.F("div",{class:_.S3("ytReelMetapanelViewModelMetapanelItem",(x.ytReelMetapanelViewModelExpansive=function(){return Q()},x))},_.F(_.LkU,{data:G,
overlayDensity:h}))},
toggleButtonViewModel:function(G){G=G.data;var x={};return _.F("div",{class:_.S3("ytReelMetapanelViewModelMetapanelItem",(x.ytReelMetapanelViewModelExpansive=function(){return Q()},x))},_.F(_.$$,{data:G}))}}))},"Gg");var kSK=_.H(function(D){var v=_.fb(D,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),h=v.size,a=v.onTap,Q=v.disabled,G=v.tooltipText;return _.F("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.F(_.jd,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:h(),disabled:Q(),tooltipText:G(),onTap:a}},
iconName:D.iconType}))},"Hg"),SY2=_.H(function(D){function v(L){L.stopPropagation();
L.code==="ArrowUp"?(L.preventDefault(),ETO(f.value)):L.code==="ArrowDown"?(L.preventDefault(),Iuo(f.value)):L.code==="KeyM"?L7c():(L.code==="KeyK"||L.code==="Space")&&Zlc(C())}
var h=_.fb(D,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});D=h.previousButtonDisabled;var a=h.nextButtonDisabled,Q=h.data,G=h.playabilityStatus,x=h.previewThumbnail,f=_.va("ytd-shorts-miniplayer-overlay"),C=_.Th(_.gmL),U;_.dM(function(){(U=_.e9(f.value))&&U.addEventListener("keydown",v)});
_.dq(function(){var L;(L=U)==null||L.removeEventListener("keydown",v)});
h=function(){var L,Z,E;return(L=Q())==null?void 0:(Z=L.reelPlayerOverlayRenderer)==null?void 0:(E=Z.likeButton)==null?void 0:E.likeButtonRenderer};
return _.F("ytd-shorts-miniplayer-overlay",{el:f,class:"ytdShortsMiniplayerOverlayHost"},_.F("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.NL({"background-image":function(){var L=x();return L?'url("'+_.L_(L.thumbnails)+'")':""}})}),_.F("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.F("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.F(kSK,{iconType:function(){var L=C();
return L===2||L===-1||L===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Zlc(C())},
tooltipText:function(){var L=C();return L===1||L===3?_.p1("PLAYER_LABEL_PAUSE"):_.p1("PLAYER_LABEL_PLAY")}}),_.F(_.zrX,{orientation:"horizontal_right"})),_.F("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.F(kSK,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:D,onTap:function(){ETO(f.value)},
tooltipText:_.p1("PREVIOUS_VIDEO_LABEL")}),_.F(kSK,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:a,onTap:function(){Iuo(f.value)},
tooltipText:_.p1("NEXT_VIDEO_LABEL")}),_.g("web_shorts_pip_like_button")?_.F("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.F(Z7$,{buttonTooltipPosition:"left",data:h,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.F("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.F(_.z,{cond:function(){var L,Z;return _.k((L=Q())==null?void 0:(Z=L.reelPlayerOverlayRenderer)==null?void 0:Z.metapanel,
_.cp4)},
then:function(L){return _.F("div",{class:_.S3("ytdShortsMiniplayerOverlayInteractive")},_.F(_.gH3,{data:L}))}})),_.F("div",{class:_.S3("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var L;return!((L=Q())==null||!L.adsOverlay)||G()&&!Pm2(G())}},_.F("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.F(_.FtX,null)))),_.F(_.z,{cond:function(){var L=Q(),Z,E;
L=_.k(L==null?void 0:(Z=L.adsOverlay)==null?void 0:(E=Z.fulfillmentContent)==null?void 0:E.fulfilledLayout,SPM);return _.k(L==null?void 0:L.renderingContent,B9y)},
then:function(L){return _.F("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.F(tYb,{data:L}))}}))},"Ig");var gTo=_.H(function(){var D=_.P(_.Zq(new _.lU(NaN,NaN),void 0,"hq9Bjf")),v=D.next().value,h=D.next().value;D=_.P(_.Zq(!1,void 0,"Mu3aZc"));var a=D.next().value,Q=D.next().value,G=_.P(_.Zq(!1,void 0,"LGtoFb"));D=G.next().value;var x=G.next().value,f=_.xd().resolve(_.Ok).miniplayerPropSignalMap[0],C=f.data,U=f.shortsData,L=f.nextButtonDisabled,Z=f.shortsPreviewThumbnail,E=f.previousButtonDisabled,I=f.externalPlaylistData;G=f.toastData;var S=f.playabilityStatus,B=f.isDisabled,A=f.playerVe,d=f.closeVe;
f=_.Th(_.oi);_.DO("yt-pip-window-resized",function(O){h(O)});
_.DO("yt-activate-pip-miniplayer",function(){return _.M(function(O){x(!0);_.YI(O)})});
var b=function(){var O;return!((O=I())==null||!O.contents)&&a()},W=function(){var O=v(),R=!!C(),vA=b();
O=O.clone();R&&(O.height-=76);vA&&(O.height-=285);return O},K=function(){Q(!a())};
_.bW(function(){var O=A(),R=_.wd(11),vA=_.yC(11);R&&vA&&O&&(_.tP(R,vA,O),vA=d())&&(_.rK(R,O,[vA]),_.DU(R,[vA]))},"fHkmfb");
return _.F("ytd-pip-container",{class:"ytdPipContainerHost"},_.F(_.z,{cond:D,then:function(){return _.F(_.BWK,{isDisabled:B,playabilityStatus:S,size:W})}}),_.F(_.z,{cond:C,
then:function(){return _.F(_.NWX,{data:C,expanded:a,onExpandClick:K,playlistData:I})}}),_.F(_.z,{cond:b,
then:function(){return _.F("div",{class:"ytdPipContainerPlaylistPanel"},_.F(_.Ur2,{data:I,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.F(_.z,{cond:f,
then:function(){return _.F(SY2,{data:U,nextButtonDisabled:L,previousButtonDisabled:E,playabilityStatus:S,previewThumbnail:Z})}}),_.F("div",{class:"ytdPipContainerToast"},_.F(_.cNd,{toastData:G})))},"Kg");var oE=function(D,v){var h=this;this.pipController=D;this.JSC$18762_clientRoot=v;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=bQr();this.watchPipEnabled=_.g("web_watch_pip");this.shortsPipEnabled=_.g("web_shorts_pip");this.JSC$18762_watchWhileEnabled=_.g("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;_.Oe(_.Gb(),Uyu,function(a){h.isSingleOptionSurveyActive=a});
this.JSC$18762_onPlayerPlayVideo=this.JSC$18762_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);_.rf(_.iD.getInstance(),this.miniplayerServiceActionMap,this.JSC$18762_clientRoot);D.pictureInPictureSupported()&&_.jj("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},ES$,qYm,Bqr,bVI,dxI,bcR;
oE.prototype.handleMediaSessionPipActivation=function(){var D=this,v;return _.M(function(h){_.eh().mediaSessionPipActivation=!0;v=_.xd().resolve(_.P4);return v.isOnWatch()&&D.watchPipEnabled?(_.eh().watchPipActivation=!0,_.Jhr(D,v.data),h.jumpTo(0)):v.isOnShorts()&&D.shortsPipEnabled?(_.eh().shortsPipActivation=!0,_.plI(D),h.jumpTo(0)):D.isMiniplayerActive()&&D.watchPipEnabled&&!D.watchWhileMode?h.yield(lq3(D),0):h.jumpTo(0)})};
var lq3=function(D){var v,h,a,Q;return _.M(function(G){if(G.nextAddress==1)return v=!D.miniplayerToPipMode,h=D.playerElement,a=D.miniplayerData,Q=D.watchResponse,G.yield(D.deactivate(),2);if(G.nextAddress!=3)return v?(_.eh().mediaSessionPipActivation=!0,_.eh().watchPipActivation=!0):_.eh().miniplayerButtonActivation=!0,G.yield(D.activate(h,a,Q),3);D.miniplayerToPipMode=v;_.YI(G)})};
oE.prototype.onDownloadedVideoDeleted=function(D){var v,h=_.k((v=this.miniplayerData)==null?void 0:v.watchEndpoint,_.hP),a,Q;h&&((a=this.watchResponse)==null?void 0:(Q=a.playerResponse)==null?void 0:Q.offlineState)!==void 0&&(v=h.videoId)&&D&&v===D&&this.close()};
oE.prototype.onShowMiniplayerCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){switch(I.nextAddress){case 1:return h=_.k(D,EFy),Q=(a=h)==null?void 0:a.miniplayerCommand,G=_.k(Q,_.hP),Q&&G&&!v.active?I.yield(_.re.getInstance(),2):I.return();case 2:return x=I.yieldResult,I.yield((f=x)==null?void 0:f.get("yt-miniplayer-shown-video-id"),3);case 3:C=I.yieldResult;U=G.videoId;if(!U||C===U)return I.return();L=_.xd().resolve(_.P4);if(L.isOnWatch())return _.yR(Error("Oj")),I.return();
Z={channelItem:{externalId:btoa(U)}};v.readyToResumeVe=_.En(121253,void 0,void 0,Z);_.eh().showMiniplayerCommandActivation=!0;return I.yield(_.dQm(v,Q,!0),4);case 4:return v.active&&(_.F3(v,{readyToResumeVe:v.readyToResumeVe,isReadyToResume:!0}),v.isReadyToResume=!0),I.yield((E=x)==null?void 0:E.set("yt-miniplayer-shown-video-id",G.videoId),5);case 5:v.readyToResumeVe=void 0,_.YI(I)}})};
oE.prototype.init=function(D){this.miniplayerEl?_.yR(new _.XH("MiniplayerService already initialized.")):this.miniplayerEl=D};
oE.prototype.isInitialized=function(){var D=!!this.miniplayerEl;D||_.yR(new _.XH("MiniplayerService used before initialized."));return D};
_.Jhr=function(D,v){if(D.isInitialized()){var h=_.j6(v.response,!1,v.playerResponse),a=_.xd().resolve(_.P4).getPlayerFromWatch();_.eh().currentEndpoint=h.watchEndpoint||null;D.activate(a,h,v)}};
_.plI=function(D){if(D.isInitialized()){var v=_.xd().resolve(_.P4).getPlayerFromShorts();D.activate(v)}};
ES$=function(D,v){var h;(h=!D.isInitialized())||(h=_.xd().resolve(_.P4).isOnWatch()&&D.watchPipMode,h=!(D.isMiniplayerActive()&&(_.eh().userActivation||_.eh().lockupActivation||h)));if(h)return!1;NqU(D,v)?_.Mn(D):bcR(D,v);return D.watchPipMode?!_.xd().resolve(_.P4).isOnWatch():!0};
oE.prototype.isMiniplayerActive=function(){return this.active};
var NqU=function(D,v){var h;v=(h=_.k(v,_.hP))==null?void 0:h.videoId;var a,Q;D=(Q=_.k((a=D.miniplayerData)==null?void 0:a.watchEndpoint,_.hP))==null?void 0:Q.videoId;return v!=null&&v===D};
oE.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.F1(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.zU(this.miniplayerEl,"yt-navigate-home-action"))};
_.dQm=function(D,v,h,a){h=h===void 0?!1:h;var Q,G,x;return _.M(function(f){switch(f.nextAddress){case 1:if(D.active){f.jumpTo(2);break}Q=_.xd().resolve(_.P4);if(x=(G=D.playerElement)!=null?G:Q.getPlayerFromWatch()){f.jumpTo(3);break}return f.yield(_.xd().resolve(_.zf),4);case 4:x=Q.getPlayerFromWatch();case 3:if(!x){_.yR(Error("Qj"));f.jumpTo(2);break}return f.yield(D.activate(x,a),2);case 2:return D.active?f.yield(bcR(D,v,h),0):f.return()}})};
oE.prototype.activate=function(D,v,h){var a=this,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){switch(I.nextAddress){case 1:if(!a.isInitialized())return I.return();if(!D)return _.yR(Error("Qj")),I.return();if(_.s_p()||a.isMiniplayerActive())var S=!0;else S=_.eh().watchPipActivation||_.eh().watchWhileActivation,_.xd().resolve(_.P4).isOnWatch()&&!S?(_.yR(new _.XH("miniplayer activated on watch page")),S=!0):S=_.eh().watchWhileActivation?a.userDeactivatedWatchWhile||!!document.pictureInPictureElement||enc():
!1;if(S)return j_t(),I.return();Q=_.eh().mediaSessionPipActivation;G=_.eh().shortsPipActivation;x=_.eh().watchPipActivation;C=(f=_.eh().watchWhileActivation)||x;U=x||G;if(!a.pictureInPictureEnabled()||!U){I.jumpTo(2);break}return I.yield(YYr(a,Q),3);case 3:if(!I.yieldResult)return _.yR(Error("Pj")),j_t(),I.return();case 2:return a.setActive(!0),a.watchResponse=h,a.playerElement=D,a.updateMiniplayerData(v),I.yield(Bqr(a,D),4);case 4:if(!a.active)return _.yR(new _.XH("miniplayer deactivated during activation")),
a.removePlayerListeners(),I.return();S=_.xd().resolve(_.fh);S.addEventListener("yt-navigate",_.pZ(a,a.onPlaylistNavigate));S.addEventListener("yt-playlist-data-updated",_.pZ(a,a.JSC$18762_onPlaylistDataUpdated));a.JSC$18762_onPlaylistDataUpdated();j_t();a.JSC$18762_watchWhileEnabled&&_.chr(a,f);a.pictureInPictureEnabled()&&a.shortsPipEnabled&&(a.shortsPipMode=G,_.Gb().dispatch(SCt(a.shortsPipMode)));a.pictureInPictureEnabled()&&a.watchPipEnabled&&(a.watchPipMode=x,_.Owc(a.handleMediaSessionPipActivation));
a.player&&(L=a.player.getPlayerState(),Z=L===1,_.Gb().dispatch(A6$(L)),_.U9(a.miniplayerEl,"yt-miniplayer-play-state-changed",[Z]),_.eh().isVideoPlaying=Z);_.U9(a.miniplayerEl,"yt-miniplayer-endpoint-changed");Xl2(a);_.AhK(a);if(a.shortsPipMode||a.watchPipMode)I=I.yield(_.zU(a.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{S=I.yield;var B=_.zU(a.miniplayerEl,"yt-activate-miniplayer",[C])[0];I=S.call(I,B,6)}return I;case 6:if(a.watchResponse){S=a.getScreenLayer();B=_.wd(0);var A=D_8(0);B&&A&&
(_.nm(B,A,S),S===0&&reI(void 0,0))}qYm(a);bVI(a,!0);(E=a.getPlayerElement())==null||E.focusOnPlayer();_.YI(I)}})};
oE.prototype.updateMiniplayerData=function(D){this.miniplayerData=D;_.F3(this,{data:D})};
_.AhK=function(D){var v,h,a=((v=D.miniplayerData)==null?void 0:(h=v.miniplayerRenderer)==null?void 0:h.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";v=D.watchWhileMode||D.watchPipMode?a&&!_.xd().resolve(_.P4).isOnWatch():a;_.F3(D,{isDisabled:v});var Q,G;h=_.k((Q=D.miniplayerData)==null?void 0:(G=Q.miniplayerRenderer)==null?void 0:G.minimizedEndpoint,_.Oc);v&&h&&_.xd().resolve(_.vM).openSheet({openPopupActionCommand:{openPopupAction:h}},D.miniplayerEl)};
qYm=function(D){if(D.watchResponse&&!dxI(D)){var v,h=(v=D.watchResponse.playerResponse)==null?void 0:v.trackingParams;h&&(_.F3(D,{expandVe:_.En(35989),closeVe:_.En(34699),readyToResumeCloseVe:_.En(131070),repositionVe:_.En(226204),resizeVe:_.En(226205)}),_.F3(D,{playerVe:_.d4(h)}))}};
Bqr=function(D,v){return _.M(function(h){if(h.nextAddress==1)return v.preparePlayer(),h.yield(v.getPlayerPromise(),2);D.player=h.yieldResult;D.player&&(D.player.addEventListener("onPlayVideo",D.JSC$18762_onPlayerPlayVideo),D.player.addEventListener("onCloseMiniplayer",D.onPlayerCloseMiniplayer),D.player.addEventListener("onExpandMiniplayer",D.onPlayerExpandMiniplayer),D.player.addEventListener("onStateChange",D.onPlayerStateChange));_.YI(h)})};
_.V=oE.prototype;_.V.JSC$18762_onPlayerPlayVideo=function(D){var v=D.sessionData&&"autonav"in D.sessionData,h;D.sessionData&&D.sessionData.itct&&(h=D.sessionData.itct);var a=D.watchEndpoint;v=a&&v?_.csc(a,h):_.xZ(D.videoId,D.listId||void 0,h);D.sessionData&&_.Vp(_.k(v.commandMetadata,_.Sa).url,D.sessionData);bcR(this,v)};
_.V.onPlayerExpandMiniplayer=function(){_.Mn(this)};
_.V.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.V.onPlayerStateChange=function(){if(this.player){var D=this.player.getPlayerState(),v=D===1;_.Gb().dispatch(A6$(D));_.Gb().dispatch(_.dN9(D));_.U9(this.miniplayerEl,"yt-miniplayer-play-state-changed",[v]);_.eh().isVideoPlaying=v;if(D===0){v=!_.Jp.getInstance().isAutoplaySetExplicitly();var h,a,Q,G,x,f,C=(h=this.watchResponse.response)==null?void 0:(a=h.contents)==null?void 0:(Q=a.twoColumnWatchNextResults)==null?void 0:(G=Q.autoplay)==null?void 0:(x=G.autoplay)==null?void 0:(f=x.autoplayExplicitChoiceDialogRenderer)==
null?void 0:f.confirmDialogRenderer;v&&C&&this.player.setAutonavState(1)}D===0&&this.watchWhileMode&&this.deactivate()}};
_.V.onPlaylistNavigate=function(D,v){var h=this,a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1){if(!_.k(v.endpoint,_.hP))return L.return();_.eh().currentEndpoint=v.endpoint;_.U9(h.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.xd().resolve(_.P4).isOnWatch()&&(h.watchWhileMode||h.watchPipMode))return L.return();D.stopPropagation();(G=(Q=_.k((a=v.endpoint)==null?void 0:a.commandMetadata,_.Sa))==null?void 0:Q.url)&&v.tempData&&!_.sV.isEmpty(v.tempData)&&_.Vp(G,v.tempData);x={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};f=new d0y(function(){return h.getPlayerElement()},x,{layer:h.getScreenLayer()});
C=function(Z){f.processChunk({endpoint:v.endpoint,data:Z})};
jum(h);h.miniplayerFetchRequest=suU(h,v.endpoint,C);_.gE(L,2);return L.yield(h.miniplayerFetchRequest,4)}if(L.nextAddress!=2)return U=L.yieldResult,mxK(h,U),_.rl(L,0);_.NS(L);_.YI(L)})};
_.V.JSC$18762_onPlaylistDataUpdated=function(){var D=_.xd().resolve(_.fh).getPlaylistData();this.hasPlaylistData=!!D;_.F3(this,{externalPlaylistData:D||{}})};
_.V.close=function(D){if(this.isInitialized())if(D){if(!((this.watchWhileMode||this.watchPipMode)&&_.xd().resolve(_.P4).isOnWatch()||this.shortsPipMode)){var v;(v=this.getPlayerElement())==null||v.stop()}this.deactivate()}else _.UH().closeMiniplayer(this.miniplayerEl)};
_.V.deactivate=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1){if(!v.isInitialized()||!v.active)return x.return();v.setActive(!1);jum(v);(h=!!D&&NqU(v,D))&&v.isSingleOptionSurveyActive&&_.zU(v.miniplayerEl,"yt-show-watch-page-survey",[v.isSingleOptionSurveyActive]);return x.yield(HVS(v),2)}if(x.nextAddress!=3){bVI(v,!1);v.isReadyToResume=!1;v.watchResponse=void 0;v.updateMiniplayerData(void 0);v.shortsPipMode&&(v.shortsPipMode=!1,_.Gb().dispatch(SCt(v.shortsPipMode)),izm(v.pipController),
(a=v.player)==null||a.setInternalSize(NaN,NaN));v.watchPipMode&&(v.watchPipMode=!1,izm(v.pipController));(Q=v.watchWhileMode)&&_.chr(v,!1);v.removePlayerListeners();var f=_.xd().resolve(_.fh);f.removeEventListener("yt-navigate",_.pZ(v,v.onPlaylistNavigate));f.removeEventListener("yt-playlist-data-updated",_.pZ(v,v.JSC$18762_onPlaylistDataUpdated));_.eh().currentEndpoint=null;_.U9(v.miniplayerEl,"yt-miniplayer-endpoint-changed");v.playerElement=null;j_t();if(v.shortsPipMode||v.watchPipMode)x=x.jumpTo(3);
else{f=x.yield;var C=_.zU(v.miniplayerEl,"yt-deactivate-miniplayer",[h,Q])[0];x=f.call(x,C,3)}return x}(G=v.player)==null||G.setInternalSize(NaN,NaN);v.player=null;_.YI(x)})};
var HVS=function(D){var v;return _.M(function(h){v=_.xd().resolve(_.P4);return D.shortsPipMode?h.yield(v.movePlayerToShorts(D.playerElement),0):h.yield(v.movePlayerToWatch(D.playerElement),0)})};
oE.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18762_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
oE.prototype.setActive=function(D){this.active=D;this.isSingleOptionSurveyActive?_.zU(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.zU(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Gb().dispatch(_.oG({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.chr=function(D,v){D.watchWhileMode=v;_.F3(D,{watchWhile:v})};
bVI=function(D,v){if(!dxI(D))if(D.shortsPipMode||D.watchPipMode){var h;(h=D.player)==null||h.setDocumentPictureInPicture(v)}else{var a;(a=D.player)==null||a.setMinimized(v)}};
dxI=function(D){return D.watchWhileMode&&_.g("kevlar_watch_while_counterfactual")};
_.Mn=function(D){var v;return _.M(function(h){switch(h.nextAddress){case 1:if(!D.isInitialized())return h.return();_.gE(h,2);return h.yield(D.miniplayerFetchRequest,4);case 4:_.rl(h,3);break;case 2:_.NS(h);case 3:D.watchResponse&&D.miniplayerData&&D.miniplayerData.watchEndpoint?(v={url:D.watchResponse.url,endpoint:D.miniplayerData.watchEndpoint,data:D.watchResponse,miniplayer:!0},_.F1(D.miniplayerEl,"yt-navigate-cache",v)):D.miniplayerData&&D.miniplayerData.watchEndpoint&&_.F1(D.miniplayerEl,"yt-navigate",
{endpoint:D.miniplayerData.watchEndpoint}),_.YI(h)}})};
bcR=function(D,v,h){var a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){if(NqU(D,v))return f.return();_.eh().currentEndpoint=v;_.U9(D.miniplayerEl,"yt-miniplayer-endpoint-changed");_.U9(D.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.eh().isVideoPlaying=!1;a={clientParams:{miniplayer:!0,autoSaveToQueue:!h}};Q=new d0y(function(){return D.getPlayerElement()},a,{layer:D.getScreenLayer(),
parentLayer:0},void 0,D.readyToResumeVe);G=function(C){var U,L,Z=Object.assign({},(U=C.playerResponse)==null?void 0:(L=U.playerConfig)==null?void 0:L.playbackStartConfig,{startPaused:!0}),E;h&&((E=C.playerResponse)==null?0:E.playerConfig)&&(C.playerResponse.playerConfig.playbackStartConfig=Z);Q.processChunk({endpoint:v,data:C})};
jum(D);D.miniplayerFetchRequest=suU(D,v,G);_.gE(f,2);return f.yield(D.miniplayerFetchRequest,4)}if(f.nextAddress!=2)return x=f.yieldResult,mxK(D,x),_.rl(f,0);_.NS(f);_.YI(f)})};
oE.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var jum=function(D){D.miniplayerFetchRequest&&(D.miniplayerFetchRequest.cancel&&D.miniplayerFetchRequest.cancel("Active request obsolete"),D.miniplayerFetchRequest=null)},suU=function(D,v,h){var a=_.Rl.instance,Q,G=(Q=_.k(v.commandMetadata,_.Sa))==null?void 0:Q.url,x;
Q=!G||_.g("disable_miniplayer_tempdata")?{}:(x=H67(G))!=null?x:{};return RQ(a,v,Q,window.location.href,"watch",function(f,C){h(C)},function(f){return f!==D.miniplayerFetchRequest})},mxK=function(D,v){var h;
_.M(function(a){if(!v)return a.return();D.watchResponse=v;qYm(D);Xl2(D);h=_.j6(v.response,!1,v.playerResponse);if(D.isMiniplayerActive()){v.response&&(D.playerElement.watchNextData=v.response);var Q=_.sV.getValueByKeys.apply(_.sV,[v].concat(_.j_(Ki$)));_.sV.getValueByKeys.apply(_.sV,[v].concat(_.j_(tlJ)))&&Q&&_.xd().resolve(_.fh).setAutoplayRenderer(Q);if(Q)if(_.g("kevlar_is_pupi_enabled")){var G,x,f,C,U,L=((G=v.response)==null?0:(x=G.playerOverlays)==null?0:(f=x.playerOverlayRenderer)==null?0:(C=
f.autonavToggle)==null?0:(U=C.autoplaySwitchButtonRenderer)==null?0:U.enabled)?2:1;_.Jp.getInstance().setState(L,!1,!1)}else G=u2A()?2:1,(L=D.player)==null||L.setAutonavState(G);D.updateMiniplayerData(h);_.AhK(D)}_.YI(a)})},Xl2=function(D){var v,h,a=(v=D.watchResponse)==null?void 0:(h=v.playerResponse)==null?void 0:h.playabilityStatus,Q;
v=a==null?void 0:(Q=a.miniplayer)==null?void 0:Q.miniplayerRenderer;(v==null?void 0:v.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&v.minimizedEndpoint&&_.L1(D.miniplayerEl,[v.minimizedEndpoint]);_.F3(D,{playabilityStatus:a})};
oE.prototype.openToast=function(D,v){_.F3(this,{toastData:{data:D,label:v}})};
_.F3=function(D,v){(0,D.miniplayerPropSignalMap[1])(v)};
oE.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var D;return this.playerElement?this.playerElement:(D=_.ZW(this.miniplayerEl).querySelector("#player-container"))==null?void 0:D.firstElementChild};
oE.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var YYr=function(D,v){v=v===void 0?!1:v;var h,a,Q,G,x,f,C;return _.M(function(U){if(U.nextAddress==1){h=navigator.userActivation.isActive||v;if(!h||!D.pictureInPictureSupported())return U.return(!1);a=yhr(D);Q=a.width;G=a.height;return U.yield(D.pipController.openWindow({width:Q,height:G}),2)}x=U.yieldResult;f=D.pipController.getWindow();if(!f||!x)return U.return(!1);f.document.body.style.overflow="hidden";C=k_c(f);WMs(D.pipController,function(){wlZ(D);C()});
return U.return(!0)})},yhr=function(D){var v=_.eh().shortsPipActivation,h,a;
D=v?.5625:(a=(h=D.player)==null?void 0:h.getVideoAspectRatio())!=null?a:16/9;h=Math.min(window.innerWidth,window.innerHeight)/2;v=v?0:76;return D>1?new _.lU(h,v+h/D):new _.lU(h*D,v+h)},wlZ=function(D){var v;
_.M(function(h){v=_.xd().resolve(_.P4);return v.isOnWatch()&&D.watchPipMode||v.isOnShorts()&&D.shortsPipMode?h.yield(D.deactivate(),0):D.miniplayerToPipMode?h.yield(lq3(D),0):D.watchPipMode?h.yield(_.Mn(D),0):h.jumpTo(0)})};
oE.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.GT.Object.defineProperties(oE.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
oE[MM]=[tRd,FWm];var erb="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(" "),
nHS="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(" "),OVS="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
KtS="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Tqs=null;var Rrr={},iVC=(Rrr.initialized={priority:10,callback:function(D){var v=_.xd();v.addProvider({provide:juR,useClass:uyI});v.addProvider({provide:_.rwU,useFactory:function(){return new su4}});
v.addProvider({provide:a0,useValue:_.eA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});v.addProvider({provide:npC,useValue:5184E6});v.addProvider({provide:Fmm,useValue:_.c7()});v.addProvider({provide:kKS,useClass:UJ1});v.addProvider({provide:zI,useClass:zI});v.addProvider({provide:_.zf,useFactory:function(){return J6J.promise}});
v.addProvider({provide:_.lhJ,useFactory:function(){return _.pjm.promise}});
v.addProvider({provide:cWO,useValue:function(){var C;return((C=_.Mq())==null?void 0:C.getPlayer())||null}});
var h={};v.addProvider((h.provide=_.As,h.useFactory=function(C,U){return function(){return BLA(C,U)}},h[MM]=[a0,
npC],h));h={};v.addProvider((h.provide=_.s0,h.useClass=H3U,h[MM]=[a0,npC],h));h={};v.addProvider((h.provide=_.mlr,h.useClass=nC2,h[MM]=[_.s0],h));v.addProvider({provide:Rc,useFactory:_.Gb});v.addProvider({provide:xY,useFactory:_.Gb});v.addProvider({provide:XdC,useFactory:_.Gb});v.addProvider({provide:$zp,useFactory:_.Gb});v.addProvider({provide:_.Mv,useFactory:_.Gb});v.addProvider({provide:yE,useValue:_.JA});v.addProvider({provide:Kkr,useClass:efc});v.addProvider({provide:IJ$,useClass:EpZ});v.addProvider({provide:Zr,
useClass:Zr});v.addProvider({provide:wh,useClass:wh});v.addProvider({provide:ek,useClass:ek});v.addProvider({provide:OH,useClass:OH});v.addProvider({provide:pA,useClass:pA});v.addProvider({provide:D1,useClass:D1});v.addProvider({provide:To,useClass:To});v.addProvider({provide:_.Y2m,useValue:Ups});v.addProvider({provide:_.aS,useFactory:_.c8});v.addProvider({provide:mQ,useFactory:_.YE});h={};v.addProvider((h.provide=gPq,h.useFactory=function(C){return function(U){var L=L===void 0?{}:L;var Z,E,I=(E=
_.k((Z=U.endpoint)==null?void 0:Z.commandMetadata,_.Sa))==null?void 0:E.rootVe;if(I){var S,B;if(Z=U.previousCsn||((B=_.k((S=U.endpoint)==null?void 0:S.commandMetadata,Wjm))==null?void 0:B.parentCsn)){var A=A===void 0?{}:A;if(Z!==_.wd(A.layer)||I!==D_8(A.layer))Q5c(Z,A.cttAuthInfo,A.layer||0),reI(Z,A.layer||0),S=A.layer||0,_.wM(u77(S===void 0?0:S),I);L.parentCsn=Z}U.endpoint&&Z?ZEJ(C,U.endpoint,L):_.bl(C,I,void 0,L);var d;((d=U.response)==null?0:d.trackingParams)&&C.graftServerVe(U.response.trackingParams);
var b;((b=U.playerResponse)==null?0:b.trackingParams)&&C.graftServerVe(U.playerResponse.trackingParams);var W;((W=U.reelWatchSequenceResponse)==null?0:W.trackingParams)&&C.graftServerVe(U.reelWatchSequenceResponse.trackingParams)}}},h[MM]=[_.aS],h));
h={};v.addProvider((h.provide=qQK,h.useClass=A3K,h[MM]=[yE,_.Mv],h));h={};v.addProvider((h.provide=nA,h.useClass=nA,h[MM]=[_.zf,_.Mv],h));h={};v.addProvider((h.provide=Hk,h.useClass=Hk,h[MM]=[xY,_.fx],h));v.addProvider({provide:_.wdb,useClass:uYS});h={};v.addProvider((h.provide=_.De,h.useClass=Ozr,h[MM]=[_.wdb,_.PV(_.a8)],h));v.addProvider({provide:xIs,useClass:fb2});h={};v.addProvider((h.provide=zo,h.useClass=zo,h[MM]=[xIs,_.zf,_.RX],h));v.addProvider({provide:_.vM,useClass:T8});v.addProvider({provide:_.QUs,
useClass:Aw$});v.addProvider({provide:_.hq,useClass:OE});_.g("enable_ai_companion")&&(v.addProvider({provide:_.a8,useClass:RBd}),v.addProvider({provide:_.CVm,useClass:BiJ}),v.addProvider({provide:_.y3r,useClass:Hzr}));h={};v.addProvider((h.provide=_.b5,h.useClass=r3s,h[MM]=[_.b5],h));v.addProvider({provide:_.bw,useClass:op$});v.addProvider({provide:u3,useClass:u3});v.addProvider({provide:gb,useClass:gb});v.addProvider({provide:Qm,useClass:Qm});h={};v.addProvider((h.provide=Hg,h.useClass=Hg,h[MM]=
[_.fx,_.RX],h));v.addProvider({provide:F0,useClass:KA});h={};v.addProvider((h.provide=LY,h.useClass=LY,h[MM]=[_.vM,F0],h));h={};v.addProvider((h.provide=fY,h.useClass=fY,h[MM]=[_.vM],h));_.g("web_enable_feedback_endpoint_resolver")&&(h={},v.addProvider((h.provide=i3,h.useClass=i3,h[MM]=[Rc,TE],h)),v.addProvider({provide:TE,useClass:j4s}));_.g("web_enable_feedback_endpoint_resolver_batch_2")&&(h={},v.addProvider((h.provide=to,h.useClass=to,h[MM]=[Rc],h)),h={},v.addProvider((h.provide=Wg,h.useClass=
Wg,h[MM]=[TE],h)));h={};v.addProvider((h.provide=z7,h.useClass=z7,h[MM]=[_.hq,F0],h));h={};v.addProvider((h.provide=xB,h.useClass=xB,h[MM]=[_.hq],h));h={};v.addProvider((h.provide=Uo,h.useClass=Uo,h[MM]=[_.RX,_.De],h));h={};v.addProvider((h.provide=o0,h.useClass=o0,h[MM]=[_.RX,_.aS],h));v.addProvider({provide:Oo,useClass:Oo});h={};v.addProvider((h.provide=so,h.useClass=so,h[MM]=[Rc],h));v.addProvider({provide:Qc,useClass:Qc});v.addProvider({provide:$4,useClass:$4});h={};v.addProvider((h.provide=Vc,
h.useClass=Vc,h[MM]=[Rc],h));h={};v.addProvider((h.provide=Px,h.useClass=Px,h[MM]=[_.RX,Rc],h));h={};v.addProvider((h.provide=x4,h.useClass=x4,h[MM]=[Rc],h));h={};v.addProvider((h.provide=M3,h.useClass=M3,h[MM]=[Rc],h));h={};v.addProvider((h.provide=Ma,h.useClass=Ma,h[MM]=[_.De],h));h={};v.addProvider((h.provide=WE,h.useClass=WE,h[MM]=[_.aS],h));h={};v.addProvider((h.provide=hz,h.useClass=hz,h[MM]=[eV],h));h={};v.addProvider((h.provide=ak,h.useClass=ak,h[MM]=[eV],h));v.addProvider({provide:u5,useClass:u5});
v.addProvider({provide:Di,useClass:Di});v.addProvider({provide:i5,useClass:i5});h={};v.addProvider((h.provide=ZG,h.useClass=ZG,h[MM]=[_.De,_.fx],h));v.addProvider({provide:hu,useClass:hu});h={};v.addProvider((h.provide=CY,h.useClass=CY,h[MM]=[_.RX,_.De],h));v.addProvider({provide:G7,useClass:G7});h={};v.addProvider((h.provide=db,h.useClass=db,h[MM]=[Rc,_.RX,_.b5],h));h={};v.addProvider((h.provide=Au,h.useClass=Au,h[MM]=[_.RX,_.fx],h));v.addProvider({provide:Viy,useValue:wJq});v.addProvider({provide:o0b,
useValue:nBo});v.addProvider({provide:qa,useClass:qa});h={};v.addProvider((h.provide=X0,h.useClass=X0,h[MM]=[Rc],h));h={};v.addProvider((h.provide=jV,h.useClass=jV,h[MM]=[_.bw,_.fx],h));h={};v.addProvider((h.provide=rn,h.useClass=rn,h[MM]=[_.fx],h));v.addProvider({provide:Kk,useFactory:function(){return new Kk(_.Gb())}});
v.addProvider({provide:eKi,useFactory:_.yy.getInstance});h={};v.addProvider((h.provide=$B,h.useClass=$B,h[MM]=[a0,eKi,_.fx],h));v.addProvider({provide:DG,useClass:DG});v.addProvider({provide:yQ,useClass:yQ});v.addProvider({provide:e4,useClass:e4});v.addProvider({provide:_.wn,useClass:_.wn});v.addProvider({provide:ok,useClass:ok});h={};v.addProvider((h.provide=Na,h.useClass=Na,h[MM]=[xY],h));h={};v.addProvider((h.provide=I0,h.useClass=I0,h[MM]=[_.fx],h));h={};v.addProvider((h.provide=YB,h.useClass=
YB,h[MM]=[_.fx],h));h={};v.addProvider((h.provide=BE,h.useClass=BE,h[MM]=[_.fx],h));_.g("web_enable_prefetching_videos_on_home")&&(v.addProvider({provide:mf,useClass:mf}),v.addProvider({provide:Qg,useClass:Qg}));h={};v.addProvider((h.provide=Cv,h.useClass=Cv,h[MM]=[_.fx],h));v.addProvider({provide:nk,useClass:nk});h={};v.addProvider((h.provide=KY,h.useClass=KY,h[MM]=[_.RX,_.fx],h));h={};v.addProvider((h.provide=Ou,h.useClass=Ou,h[MM]=[_.fx],h));h={};v.addProvider((h.provide=GD,h.useClass=GD,h[MM]=
[_.RX,_.fx],h));v.addProvider({provide:$K,useClass:$K});v.addProvider({provide:Ju,useClass:Ju});h={};v.addProvider((h.provide=kB,h.useClass=kB,h[MM]=[xY,_.fx],h));v.addProvider({provide:pY,useClass:pY});h={};v.addProvider((h.provide=Lv,h.useClass=Lv,h[MM]=[xY,_.fx,_.RX],h));h={};v.addProvider((h.provide=Zi,h.useClass=Zi,h[MM]=[_.fx],h));h={};v.addProvider((h.provide=Uf,h.useClass=Uf,h[MM]=[_.fx,_.RX],h));h={};v.addProvider((h.provide=cE,h.useClass=cE,h[MM]=[_.zf],h));h={};v.addProvider((h.provide=
l5,h.useClass=l5,h[MM]=[_.zf],h));v.addProvider({provide:wb,useClass:wb});v.addProvider({provide:nY,useClass:nY});v.addProvider({provide:Go,useClass:Go});v.addProvider({provide:T7,useClass:T7});v.addProvider({provide:ym,useClass:ym});v.addProvider({provide:Vm,useClass:Vm});v.addProvider({provide:HE,useClass:HE});_.g("kevlar_enable_mss_lazy_load")&&v.addProvider({provide:_.Tk,useClass:bT2});v.addProvider({provide:_.Kh,useClass:ix});v.addProvider({provide:Sh,useFactory:function(){return _.iD.getInstance()}});
v.addProvider({provide:B0K,useFactory:wco});v.addProvider({provide:eV,useFactory:function(){return _.re.getInstance()}});
v.addProvider({provide:zRp,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});h={};v.addProvider((h.provide=_.yW,h.useClass=_.yW,h[MM]=[_.zf,_.fx,_.aS,B0K,eV,Sh,zRp,yE],h));v.addProvider({provide:_.ef,useClass:u3s});v.addProvider({provide:_.KRU,useClass:O4U});h={};v.addProvider((h.provide=PE,h.useClass=PE,h[MM]=[_.KRU],h));h={};v.addProvider((h.provide=_.wy,h.useFactory=function(C){return C.upliftCompletionResolver.promise},h[MM]=[qQK],h));
h=_.nJ("IS_SHELL_LOAD")?"aa":"eocs";var a=_.nJ("IS_SHELL_LOAD")?3:2;_.ol().parkOrScheduleJob(function(){dfC()},a,h);
_.ol().parkOrScheduleJob(function(){_.xd().resolve(nA).start()},2,"eocs");
_.ol().parkOrScheduleJob(function(){c3X()},2,"eocs");
_.ol().parkOrScheduleJob(function(){_.xd().resolve(Hk).start()},2,"eocs");
_.g("kevlar_debug_data_app_registration_ks")||ubc();v.addProvider({provide:_.qL,useValue:new kuS(D.root)});v.addProvider({provide:TC,useValue:new VoI});v.addProvider({provide:_.ccs,useValue:new Y8C(D.root)});v.addProvider({provide:_.Tb,useValue:new Bcb});v.addProvider({provide:_.WC,useClass:TJ});v.addProvider({provide:tRd,useClass:Rf});_.g("kevlar_network_sli_killswitch")||v.addProvider({provide:GYb,useValue:aIm});v.addProvider({provide:TEC,useFactory:shA});_.g("web_bind_fetch")&&(h={},v.addProvider((h.provide=
RJU,h.useFactory=mQI,h[MM]=[_.PV(TEC)],h)));_.g("web_bind_window_request")&&(h={},v.addProvider((h.provide=Wk3,h.useFactory=Hc7,h[MM]=[_.PV(TEC)],h)));_.g("web_bind_text_decoder")&&(h={},v.addProvider((h.provide=t_X,h.useFactory=yKo,h[MM]=[_.PV(TEC)],h)));h={};v.addProvider((h.provide=Z3r,h.useFactory=ZQ7,h[MM]=[_.wy,Rc,_.As],h));h={};v.addProvider((h.provide=LmZ,h.useClass=Ef,h[MM]=[Z3r],h));v.addProvider({provide:q2U,useClass:BrX});v.addProvider({provide:oCC,useClass:zZK});h=[].concat(_.j_(ag));
_.g("web_continuation_response_processing")&&h.push(_.iL);h.push(B2$);_.g("enable_share_panel_navigation_logging_fix_on_web")&&h.push(_.Ors);v.addProvider({provide:Lfq,useValue:h});v.addProvider({provide:K7r,useClass:CSK});v.addProvider({provide:f32,useClass:V9r});h={};v.addProvider((h.provide=wzc,h.useClass=wAI,h[MM]=[xY],h));_.HK.addLowPriorityJob(function(){xgA()});
h={};v.addProvider((h.provide=Vs4,h.useFactory=function(C){return function(U){var L,Z=(L=_.k(U.commandMetadata,_.Sa))==null?void 0:L.url;if(!Z)throw new _.XH("No URL for PBJ Command",U);Z=H1o(Z,{pbj:"1"});L=Ga2(Z,{})||{};L=Object.assign({},L,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.eA("STS").toString()});U=_.SO({command:JSON.stringify(U),session_token:_.eA("XSRF_TOKEN")});return C.fetch(Z,{method:"POST",headers:L,body:U})}},h[MM]=[f32],h));
v.addProvider({provide:a32,useFactory:function(){var C={};return C.CSI=eGq(),C.ECATCHER=wL2(),C}});
v.addProvider({provide:blA,useClass:$VZ});h=[];h.push(v.resolve(oCC));a={};a=(a.client_location=_.yy.getInstance(),a.consistency=_.x4O(),a.entities=v.resolve(IJ$),a.response_received_commands=v.resolve(K7r),a.store=v.resolve(_.mlr),a.tokens=v.resolve(oCC),a.service_params=v.resolve(blA),a);if(_.g("web_shorts_prefetch_service_enabled")){var Q=new O3Z(v.resolve(_.s0));a.shorts_prefetch=Q}a.adblock_detection=v.resolve(wzc);v.addProvider({provide:_.ra,useClass:_.ra});Q=v.resolve(_.Y2m);var G=[];_.g("PremiumClientSharedConfig__enable_att_context_processor")&&
(v.addProvider({provide:$1U,useClass:vpK}),G.push(v.resolve($1U)));if(_.g("owl_pl_await")){var x={};v.addProvider((x.provide=mSI,x.useFactory=function(C){return new j9U(C)},x[MM]=[_.ra],x));
G.push(v.resolve(mSI))}Llp(Q,v.resolve(f32),v.resolve(Kkr),a,v.resolve(_.s0),h,G,v.resolve(LmZ),v.resolve(q2U));v.addProvider({provide:_.RX,useValue:_.uL.instance});_.g("start_client_gcf")&&v.addProvider({provide:XB,useValue:oR4()});v.addProvider({provide:smS,useFactory:function(){return new smS(_.xd().resolve(_.ra),_.re.getInstance())}});
_.ol().parkOrScheduleJob(function(){mfm()},1,"eocs");
h={};v.addProvider((h.provide=eX,h.useClass=eX,h[MM]=[_.As,_.RX],h));v.addProvider({provide:_.Q9d,useFactory:_.aE.getInstance});_.ol().parkOrScheduleJob(function(){_.xd().resolve(eX).refresh()},0,"eocs");
PI4(Ups.watchEndpointMap||{},Q.reelWatchEndpointMap||{},D.injector.resolve(_.RX));v.addProvider({provide:Nh,useValue:_.Rl.instance});_.g("kevlar_signal_collection_killswitch")||(h={},v.addProvider((h.provide=goX,h.useClass=goX,h[MM]=[a0,mQ],h)),_.ol().parkOrScheduleJob(function(){_.xd().resolve(goX).record()},1,"eocs"));
_.g("web_debug_handler_registration_killswitch")||_.ol().parkOrScheduleJob(function(){tX2("DOWNLOAD_PES",yY4);_.g("offline_client_state_export_ks")||tX2("OFFLINE_CLIENT_STATE",sno)},0,"eocs");
_.g("kevlar_prevent_polymer_dynamic_font_load")&&_.ol().parkOrScheduleJob(function(){var C=[_.UV(gJb),_.UV(kYK)];C=_.P(C);for(var U=C.next();!U.done;U=C.next()){U=U.value;var L=document.createElement("link");_.xI(L,U,"stylesheet");document.head.appendChild(L)}},1,"eocs");
h=D.injector.resolve(_.RX);_.aJ2.instance=new _.aJ2(h);gOo(i7U(new hMI(h)));h={};D.injector.addProvider((h.provide=xX,h.useFactory=function(C){(C=C==null?void 0:C.getCurrentPage())?C=C.visibilityObserver:(Tqs||(Tqs=zbc()),C=Tqs);return C},h[MM]=[_.PV(_.P4)],h.skipCache=!0,h));
v.addProvider({provide:_.Ok,useClass:oE});v.addProvider({provide:KC,useClass:G9F});D.injector.addProvider({provide:h1s,useValue:gLs});v.addProvider({provide:Khp,useValue:sKc});_.g("web_cow_button_renderer_wiz_token")&&v.addProvider({provide:O8M,useValue:ycC});v.addProvider({provide:rat,useValue:Ati});v.addProvider({provide:_.$5,useValue:i$I});D=v.addProvider;Pzm||(Pzm=new V_C);D.call(v,{provide:_.Wk,useValue:Pzm});v.addProvider({provide:_.Gh,useValue:_.eA("HTML_DIR")==="rtl"?"rtl":"ltr"});v.addProvider({provide:ky$,
useClass:qFI});v.addProvider({provide:_.JD,useClass:ts});_.xd().addProvider({provide:JbS,useValue:_.g("enable_web_delhi_icons")?nHS.concat(KtS):erb.concat(OVS)});v.addProvider({provide:_.ux,useClass:_.ux});v.addProvider({provide:_.LO$,useValue:new UVU});v.addProvider({provide:Zis,useClass:LRC});v.addProvider({provide:R0,useClass:R0});v.addProvider({provide:tu,useClass:tu});D={};v.addProvider((D.provide=Eo,D.useClass=Eo,D[MM]=[_.RX,_.De],D));v.addProvider({provide:FU,useClass:FU});v.addProvider({provide:ss4,
useClass:vId});v.addProvider({provide:vx,useClass:vx});v.addProvider({provide:iwR,useValue:q7y});v.addProvider({provide:_.Lk,useClass:Z4S});_.g("enable_payments_purchase_manager")&&v.addProvider({provide:PsZ,useClass:Q4r});v.addProvider({provide:I3r,useFactory:function(){return function(C){return _.EJZ(C)}}});
v.addProvider({provide:_.V$K,useClass:PSC});D={};v.addProvider((D.provide=fv,D.useClass=fv,D[MM]=[_.V$K],D));v.addProvider({provide:rb,useClass:rb});v.addProvider({provide:X6M,useValue:xr3});v.addProvider({provide:kx9,useValue:_.zJd});v.addProvider({provide:fnO,useClass:DSI});v.addProvider({provide:xS$,useValue:kQ2});D={};v.addProvider((D.provide=M_2,D.useClass=fxX,D[MM]=[xS$],D));D={};v.addProvider((D.provide=_.KN,D.useClass=JNS,D[MM]=[M_2],D));D={};v.addProvider((D.provide=_.vI,D.useClass=Dn,D[MM]=
[_.Mv,_.WC],D));if(_.g("web_explore_hub_on_hover")||_.g("web_client_explore_hub_on_hover"))D={},v.addProvider((D.provide=vE,D.useClass=vE,D[MM]=[_.RX,Sh],D));if(_.g("web_enable_renderer_logger")){var f=new Of3;O6q(function(){f.abort()});
v.addProvider({provide:lPo,useValue:new SQZ(f.signal)})}v.addProvider({provide:$aJ,useValue:Sli});v.addProvider({provide:MSi,useClass:Kmb})}},Rrr);var Wtr={},tMX=(Wtr.initialized={priority:10,callback:function(){if(!QPm){Fri();Ocu("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Ez(_.NF(Ocu,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.g("log_heartbeat_with_lifecycles")){var D={};lX.instance||(lX.instance=new lX);lX.instance.install((D.document_visible={callback:KLA,priority:10},D.document_hidden={callback:KLA,priority:10},D))}else _.GC(document,"visibilitychange",KLA);QPm=!0}(D=_.wd())&&D!=="UNDEFINED_CSN"&&WJI(D)}},Wtr);var rhZ={},uos=(rhZ.initialized={callback:function(D){var v=_.En(232091),h=D.injector.resolve(_.aS);_.de(h,v);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?SSf()&&_.se(h,v):(D=D.injector.resolve(I3r)("refresh_detector"))&&(D.get("first_tab_load")?_.se(h,v):D.set("first_tab_load","1"))}},rhZ);var Ddm={},vf3=(Ddm.initialized={priority:10,callback:Xzf},Ddm);var hj3={},a02=(hj3.initialized={priority:0,callback:function(){var D=new oHm,v="other";_.Ip?v="chrome":_.E1?v="firefox":_.Oz?v="safari":$z&&(v="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(h){D.increment(_.Yd(),h,v)}).catch(function(){D.increment(_.Yd(),!1,v)}):D.increment(_.Yd(),!1,v)}},hj3);var $dC={},Qtd=($dC.rendering={priority:8,callback:A7q},$dC);var G3U={},VAm=(G3U.rendering={priority:10,callback:RK8},G3U.rendered={callback:TO8},G3U),PyU={},xdX=(PyU.rendering={callback:RK8},PyU.rendered={callback:TO8},PyU);var MAZ=!1,f0Z={},Cys=(f0Z.initialized={priority:10,callback:function(){MAZ||(HmI({didPatch:function(D){D.el&&hou(D.el,D.props)},
didUnmount:function(D){DXL(D.el)}}),MAZ=!0)}},f0Z);var ofm=/^\/shorts\/?$/;_.wM("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:{}}}}}}});_.g("kevlar_enable_mss")&&(_.Kb8(new aUM),toA());
(function(){var D=document.querySelector("ytd-app");if(!D)throw Error("Rj");D=new hW({root:D,injector:_.xd()});D.install(tMX);var v={};D.install((v.initialized={priority:10,callback:GGq},v));_.g("wp_lat_b")&&(v={},D.install((v.initialized={priority:10,callback:function(){bcI()}},v)));
v={};D.install((v.rendered={priority:0,callback:akc},v));v={};D.install((v.rendered={priority:0,callback:function(){_.HK.addLowPriorityJob(function(){_.b43>1&&(WYf(),vui())},4E4)}},v));
D.install(iTS);D.install(uos);D.install(Cys);oPO();D.install(QaS);D.install(e3r);D.install(TDb);D.install(FM2);D.install(EoI);D.install(acU);D.install(iVC);_.g("kevlar_enable_mss_lazy_load")&&D.install(vf3);D.install(OTd);D.install(a02);if(!_.nJ("IS_SHELL_LOAD")||_.g("kevlar_fetch_initial_data_promise_client")||_.g("sw_nav_preload_pbj")){var h=_.gl(window.location.href);v=h&&h==="/watch";h=h&&h.match(ofm);v?D.install(xdX):h?D.install(Qtd):D.install(VAm)}else D.install(HTs);D.install(t9X);_.g("web_enable_prefetching_videos_on_home")&&
D.install(xp2);_.g("start_client_gcf")&&D.install(h3K);D.install(xfm);(new Ft9).increment("INSTALLED");D.install(Ve2);D.install(jPU);D.transition("initialized");lyL()})();
_.IX=[[["I2JlZjdlMTFjNGx5N2tpbmQ=","NG5hYnNkbjd2YWx1ZSNmeG9y"],"c2dBRF9QTEFDRU1FTlRfS0lORF9MQVlPVVRfSURfRU5URVJFRCMzMmd0YTl2NGw2"]];_.EL=["cyM0d21uOGtlN3JtaWVnbG9iYWxDYWxsYmFjaw==","bm9ybWFsaXR5RGV0ZWN0ZWQjcGxjMzJid2J2OGQxb25BYg==","cCNqeXl4ZW9raXU5cXZvbkFkU2tp","eDgyNnByYXdfcGxheWVyX3Jlc3BvbnNlI3Jxb3ZibQ==","ZW5kZXJlciNwcTEyNmg5c2Vrb3ZhZHNFbmdhZ2VtZW50UGFuZWxS"];_.EH="cyM0d21uOGtlN3JtaWVnbG9iYWxDYWxsYmFjaw== bm9ybWFsaXR5RGV0ZWN0ZWQjcGxjMzJid2J2OGQxb25BYg== cCNqeXl4ZW9raXU5cXZvbkFkU2tp eDgyNnByYXdfcGxheWVyX3Jlc3BvbnNlI3Jxb3ZibQ== d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIzhhYmo2dHh1YnJ5bg== ZiM2c3FqZDNpbmc5NXlhYl9zYV9l ZW5kZXJlciNwcTEyNmg5c2Vrb3ZhZHNFbmdhZ2VtZW50UGFuZWxS".split(" ");
_._ModuleManager_initialize=function(D,v){if(!_.je){if(!_.sN)return;_.Kb8(_.sN())}_.je.setAllModuleInfoString(D,v)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.Zn=function(D,v,h,a,Q){var G={};v&&(G[v]=h);a?G.errorType=a:Q&&(G.errorReason=Q);_.jj(D,G);_.s5()};
_.Ex=function(D){var v=_.ol();return _.$0y(v,D,1)};
_.yT({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var D=this.query;D&&(this.full||D[0]==="("||(D="("+D+")"),this._mq=window.matchMedia(D),this._add(),this.queryHandler(this._mq))},
queryHandler:function(D){this._setQueryMatches(D.matches)}});var pvI;var l0X;var NM$=function(){};
_.V=NM$.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V._createRipple=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
NM$=_.yT({is:"tp-yt-paper-radio-button",_template:function(){if(l0X!==void 0)return l0X;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;pvI===void 0&&(pvI=document.createElement("template"));var a=pvI;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return l0X=D},
behaviors:[_.Rm$],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(){_.$R(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var D=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),v=Math.floor(3*D);v%2!==D%2&&v++;this.updateStyles({"--paper-radio-button-ink-size":v+"px"})}})}});var YMS;var BMs;_.yT({_template:function(){if(BMs!==void 0)return BMs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;YMS===void 0&&(YMS=document.createElement("template"));var a=YMS;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return BMs=D},
is:"tp-yt-paper-radio-group",behaviors:[_.VoR],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(D){var v=this._valueToItem(D);if(!v||!v.hasAttribute("disabled")){if(this.selected){v=this._valueToItem(this.selected);if(this.selected==D)if(this.allowEmptySelection)D="";else{v&&(v.checked=!0);return}v&&
(v.checked=!1)}_.Qs.select.apply(this,[D]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(D){this._focusPrevious();D.preventDefault();this._activateFocusedItem()},
_onDownKey:function(D){this._focusNext();D.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(D){_.GN9._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(D){_.GN9._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Qs._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.RR._resetTabindices.apply(this,arguments);this.items.forEach(function(D){D.removeAttribute("aria-selected")},this)}});var c$3;_.HX("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var IE=function(){return _.c.apply(this,arguments)||this};
_.J(IE,_.c);_.V=IE.prototype;_.V.computeHasPrimaryIcon=function(D){return!(!D.icon&&!D.thumbnail)};
_.V.computeHasSecondary=function(D){return!(!D.secondaryIcon&&!D.secondaryNotificationText)};
_.V.computeHideSecondaryString=function(D){return!_.g("disable_hide_empty_secondary_string")&&!D.secondaryNotificationText};
_.V.computeCompactLinkStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeHasFitHeight=function(D){return D==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.V.isActiveEndpoint=function(D){return(D=this.get("commandMetadata.webCommandMetadata.url",D))?_.gl(window.location.href)!=="/account_transfer_channel"&&_.gl(window.location.href)!=="/gaia_link"&&_.gl(window.location.href)!=="/channel_switcher"||D!=="/account"?_.gl(window.location.href)===D:!0:!1};
_.V.onTap=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.L1(this.hostElement,[this.data.serviceEndpoint])};
IE.prototype.onTap=IE.prototype.onTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],IE.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.n("design:type",Boolean)],IE.prototype,"active",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.n("design:type",String)],IE.prototype,"compactLinkStyle",void 0);
_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",Object)],IE.prototype,"icon",void 0);_.e([_.Y({computed:"computeIcon_(data.secondaryIcon)"}),_.n("design:type",Object)],IE.prototype,"secondaryIcon",void 0);_.e([_.Y({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],IE.prototype,"hasSecondary",void 0);_.e([_.Y({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],IE.prototype,"hideSecondaryString",void 0);
_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IE.prototype,"onTap",null);_.e([_.m({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],IE);
_.w(IE,"ytd-compact-link-renderer",function(){if(c$3!==void 0)return c$3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return c$3=D},{mode:1});var XvZ;_.HX("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var g7=function(){var D=_.c.apply(this,arguments)||this;D.role="link";D.tabindex="0";D.actionMap=_.g("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return D};
_.J(g7,_.c);_.V=g7.prototype;_.V.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.sL()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.V.getCurrentTheme=function(){return _.mc()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.sL()};
_.V.onThemeSelected=function(D,v){var h=D||v?D:_.jL(),a=(h&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!h&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Gn8(_.gl(window.location.href));_.BU(0,165,D);_.BU(0,174,v);this.prefs.save();a&&_.zU(this.hostElement,"yt-dark-mode-toggled-action",[h]);_.zU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.onTap=function(){this.data.serviceEndpoint&&_.L1(this.hostElement,[this.data.serviceEndpoint])};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
g7.prototype.onTap=g7.prototype.onTap;g7.prototype.dataChanged=g7.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],g7.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.od),_.n("design:type",Object)],g7.prototype,"paperItemBehaviors",void 0);_.e([_.Y(),_.n("design:type",Object)],g7.prototype,"data",void 0);_.e([_.Y({value:function(){return _.YE()}}),
_.n("design:type",_.Zl)],g7.prototype,"prefs",void 0);_.e([_.Y(),_.n("design:type",Object)],g7.prototype,"label",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],g7.prototype,"role",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],g7.prototype,"tabindex",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g7.prototype,"dataChanged",null);
_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g7.prototype,"onTap",null);_.e([_.m({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],g7);
_.Zp()(g7,"ytd-toggle-theme-compact-link-renderer",function(){if(XvZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);XvZ=D}D=XvZ;return D},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var qMZ,bJK;_.kK=function(D){return!!D.getOptions("captions")};
_.A$I=function(D){return(D=D.getOption("captions","track"))?!!D.displayName:!1};
_.SE=function(D,v){_.Xv(v,D,function(){return qMZ[v]},function(h){qMZ[v]=h;
if(!_.g("mweb_player_ve_show_ks")){var a=_.wd(0);a&&h&&_.u1(a,h)}})};
_.JW=function(D){(D=qMZ[D])&&_.se(_.c8(),D)};
qMZ={};var ddm;/*

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
*/
_.yT({_template:function(){if(ddm!==void 0)return ddm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;bJK===void 0&&(bJK=document.createElement("template"));var a=bJK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return ddm=D},
is:"tp-yt-paper-checkbox",behaviors:[_.Rm$],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.$R(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var D=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),v="px",h=D.match(/[A-Za-z]+$/);h!==null&&(v=h[0]);D=parseFloat(D);h=8/3*D;v==="px"&&(h=Math.floor(h),h%2!==D%2&&h++);this.updateStyles({"--paper-checkbox-ink-size":h+
v})}})},
_computeCheckboxClass:function(D,v){var h="";D&&(h+="checked ");v&&(h+="invalid");return h},
_computeCheckmarkClass:function(D){return D?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.KPF._createRipple.call(this)}});var jtI=new _.z0("radioButtonSurveyOptionRenderer"),stS=new _.z0("checkboxSurveyOptionRenderer");var md2;var HJs;var y$K=0,p5=function(){var D=_.c.call(this)||this;D.selected=!1;D.isOverlay=!1;D.inputId="toggle-option-"+y$K;y$K++;return D};
_.J(p5,_.c);p5.prototype.onTap=function(){_.F1(this.hostElement,"ytd-toggle-option-clicked")};
_.e([_.Y(),_.n("design:type",String)],p5.prototype,"label",void 0);_.e([_.Y(),_.n("design:type",String)],p5.prototype,"inputId",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],p5.prototype,"selected",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],p5.prototype,"isOverlay",void 0);_.e([_.m({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.n("design:paramtypes",[])],p5);
_.w(p5,"ytd-toggle-option-renderer",function(){if(HJs!==void 0)return HJs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return HJs=D},{mode:1});var lA=function(){var D=_.c.apply(this,arguments)||this;D.isToggleOption=!1;D.isOverlay=!1;return D};
_.J(lA,_.c);lA.prototype.onTap=function(D){D.preventDefault();this.data&&(D=!this.data.checked,this.set("data.checked",D),_.F1(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:D,value:this.data.value}))};
_.GT.Object.defineProperties(lA.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
lA.prototype.onTap=lA.prototype.onTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lA.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],lA.prototype,"isToggleOption",void 0);_.e([_.Y(),_.n("design:type",Object)],lA.prototype,"isOverlay",void 0);_.e([_.N("data.responseText"),_.n("design:type",String),_.n("design:paramtypes",[])],lA.prototype,"label",null);
_.e([_.lc("ytd-toggle-option-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],lA.prototype,"onTap",null);_.e([_.m({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],lA);
_.w(lA,"ytd-checkbox-survey-option-renderer",function(){if(md2!==void 0)return md2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return md2=D},{mode:1});var wvX;var ej2;var Nn=function(){var D=_.c.apply(this,arguments)||this;D.checked=!1;D.isToggleOption=!1;return D};
_.J(Nn,_.c);Nn.prototype.onTap=function(){this.data&&(this.checked?_.zU(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.zU(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Nn.prototype.onTap=Nn.prototype.onTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Nn.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Nn.prototype,"checked",void 0);_.e([_.Y(),_.n("design:type",Object)],Nn.prototype,"isToggleOption",void 0);_.e([_.lc("ytd-toggle-option-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Nn.prototype,"onTap",null);
_.e([_.m({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Nn);
_.w(Nn,"ytd-radio-button-survey-option-renderer",function(){if(ej2!==void 0)return ej2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ej2=D},{mode:1});var YK=function(){var D=_.c.apply(this,arguments)||this;D.disableAnimation=!1;D.isToggleOption=!0;D.followUpSurveyCommand=null;D.selectedRatingEndpoint=null;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.styleOverrideAttribute=!0;D.isDarkMode=!1;D.isSubmitted=!1;D.roundedContainer=!0;D.improveShortsResponseRate=_.g("web_improve_shorts_response_rate");D.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(YK,_.c);_.V=YK.prototype;
_.V.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"}}}}};
_.V.attached=function(){var D=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(h){var a;if((a=h[0])!=null&&a.isIntersecting){_.Yt().reportShown(D.hostElement);var Q;(Q=D.intersectionObserver)==null||Q.unobserve(D.hostElement)}},{rootMargin:"0px",
threshold:.6});var v;(v=this.intersectionObserver)==null||v.observe(this.hostElement)};
_.V.onDarkModeToggledAction=function(D){this.isDarkMode=D};
_.V.dataChanged=function(){var D;if(((D=this.data)==null?void 0:D.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var v;((v=this.data)==null?void 0:v.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var h,a,Q,G;this.darkColorPalette=(h=this.data)==null?void 0:(a=h.inlineContent)==null?void 0:(Q=a.compactVideoRenderer)==null?void 0:(G=Q.thumbnail)==null?
void 0:G.darkColorPalette;var x,f,C,U;this.lightColorPalette=(x=this.data)==null?void 0:(f=x.inlineContent)==null?void 0:(C=f.compactVideoRenderer)==null?void 0:(U=C.thumbnail)==null?void 0:U.lightColorPalette;var L,Z;if(((L=this.data)==null?0:(Z=L.inlineContent)==null?0:Z.compactVideoRenderer)&&this.isShortsStyle){var E,I,S,B;D=_.L_((E=this.data)==null?void 0:(I=E.inlineContent)==null?void 0:(S=I.compactVideoRenderer)==null?void 0:(B=S.thumbnail)==null?void 0:B.thumbnails);_.SB(this.hostElement,
{"--yt-background-url":"url("+D+")"})}};
_.V.handleRequestCompletion=function(){this.hostElement.hidden&&_.F1(this.hostElement,"yt-dismissible-item-dismissed")};
_.V.onPopupClosed=function(D){var v;((v=D.detail)==null?void 0:v.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.zU(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.V.handleInlineSurveyRatingSelect=function(D,v){var h=this;this.selectedRatingEndpoint=D;this.followUpSurveyCommand=v;this.expanded=!!D;this.getOptionRenderers().forEach(function(a,Q){h.notifyPath("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked");h.set("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),D=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.zU(this.hostElement,"yt-reel-non-video-content-dismissal-command",[D]))};
_.V.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.zU(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var D,v=(D=this.data)==null?void 0:D.dismissalEndpoint;v&&this.ytComponentBehavior.resolveCommand(v)}};
_.V.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.zU(this.hostElement,"yt-close-popup-action"))};
_.V.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var D=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{D=this.getOptionRenderers().filter(function(a){return a.checked});
if(D.length===0)return;D=D.map(function(a){return a.responseEndpoint})}var v=[];
D.forEach(function(a,Q){Q!==0&&(a=_.k(a,_.bp))&&a.feedbackToken&&v.push(a.feedbackToken)});
if(D=D[0]){var h={};v.length>0&&(h.extra_feedback_tokens=v);this.ytComponentBehavior.resolveCommand(D,{form:h})}}};
_.V.getOptionRenderers=function(){var D=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(v){D.isSingleSelect=!!_.k(v,jtI);return D.isSingleSelect?_.k(v,jtI):_.k(v,stS)}):[]};
_.V.handleInlineSurveyOptionSelect=function(D){D=this.optionSelector.indexOf(D);D!==-1&&this.optionSelector.selectIndex(D)};
_.V.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.V.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
_.V.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D=D&&this.maybeGetBackgroundColor(D);this.dismissibleEl.style.backgroundColor=!D||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.rT(D)};
_.GT.Object.defineProperties(YK.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
YK.prototype.colorPaletteChanged=YK.prototype.colorPaletteChanged;YK.prototype.onPopupClosed=YK.prototype.onPopupClosed;YK.prototype.handleRequestCompletion=YK.prototype.handleRequestCompletion;YK.prototype.dataChanged=YK.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],YK.prototype,"actionHandlerBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],YK.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],YK.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.Br("#follow-up-survey-options"),_.n("design:type",Object)],YK.prototype,"optionSelector",void 0);_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"disableAnimation",void 0);_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"isToggleOption",void 0);_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"followUpSurveyCommand",void 0);_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"selectedRatingEndpoint",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],YK.prototype,"expanded",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YK.prototype,"isSlimlineSurveyFollowUp",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YK.prototype,"isShortsStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YK.prototype,"styleOverrideAttribute",void 0);_.e([_.Y(),_.n("design:type",Boolean)],YK.prototype,"isSingleSelect",void 0);_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"isDarkMode",void 0);
_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"lightColorPalette",void 0);_.e([_.Y(),_.n("design:type",Object)],YK.prototype,"darkColorPalette",void 0);_.e([_.N("selectedRatingEndpoint","isShortsStyle"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YK.prototype,"isOptionSelected",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YK.prototype,"roundedContainer",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YK.prototype,"improveShortsResponseRate",void 0);_.e([_.Br("#dismissible"),_.n("design:type",HTMLElement)],YK.prototype,"dismissibleEl",void 0);_.e([_.Br("#dismiss-button yt-icon-button"),_.n("design:type",HTMLElement)],YK.prototype,"dismissButtonEl",void 0);_.e([_.Br("#inline-survey-header yt-icon-button"),_.n("design:type",HTMLElement)],YK.prototype,"inlineHeaderDismissButtonEl",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YK.prototype,"dataChanged",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YK.prototype,"handleRequestCompletion",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],YK.prototype,"onPopupClosed",null);
_.e([_.Ni("darkColorPalette","lightColorPalette","isDarkMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YK.prototype,"colorPaletteChanged",null);_.e([_.m({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],YK);
_.w(YK,"ytd-inline-survey-renderer",function(){if(wvX!==void 0)return wvX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wvX=D},{mode:1});var nfS=["en-CA","en","es-MX","fr-CA"];_.OJC=_.H(function(D){var v=_.fb(D,{isOverlay:!1,isModern:!1}),h=v.captionIconType,a=v.onClick;D=v.ariaLabel;var Q=v.ariaPressed,G=v.isOverlay,x=v.isModern;v=_.va("button",function(U){_.SE(U,127299)});
var f=_.Jd(function(U){_.JW(127299);a==null||a(U);return!1}),C={};
return _.F("ytm-closed-captioning-button",{class:_.S3("ytmClosedCaptioningButtonHost",(C.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return h()===-1&&G()},C.ytmClosedCaptioningButtonIconDisabled=function(){return h()===-1&&!G()},C))},_.F("button",{el:v,
class:"ytmClosedCaptioningButtonButton",title:D,"aria-label":D,"aria-pressed":Q,"on:click":f},_.F(_.Y5,{icon:function(){var U="",L=x();var Z=L?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";L=L?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var E=_.YE().get("hl");Z=!E||nfS.includes(E)?Z:L;L=h();switch(L){case -1:case 0:U=Z;break;case 1:U=Z+"_FILLED";break;default:_.K4(L)}return U}})))},"Mg");
_.OJC.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Hn=function(D){return function(v,h){var a=D||h.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(v,h,{get:function(){var Q;return this.$?this.$[a]:(Q=_.YU(this))==null?void 0:Q.querySelector("#"+a)},
enumerable:!0,configurable:!0})}};_.yl=function(D){D=D===void 0?!1:D;_.AN.call(this);this.pubSub_=new _.JO(D);_.Ia(this,this.pubSub_)};
_.fa(_.yl,_.AN);_.yl.prototype.subscribe=function(D,v,h){return this.isDisposed()?0:this.pubSub_.subscribe(D,v,h)};
_.yl.prototype.unsubscribe=function(D,v,h){return this.isDisposed()?!1:this.pubSub_.unsubscribe(D,v,h)};
_.yl.prototype.unsubscribeByKey=function(D){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(D)};
_.yl.prototype.publish=function(D,v){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var XPr=function(){_.Zn("ypcRedeemFlowStarted")},HL=function(D){_.Zn("ypcRedeemFlowFailed",void 0,void 0,void 0,D)},A4S=function(D,v,h){v&&h&&(D.videos.forEach(function(a){a.videoId===v&&(a.itemId=h)}),D.recommendedVideos.forEach(function(a){a.videoId===v&&(a.itemId=h)}))};var qbU;var bQI;/*

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
*/
_.yT({_template:function(){if(bQI!==void 0)return bQI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;qbU===void 0&&(qbU=document.createElement("template"));var a=qbU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return bQI=D},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(D,v){var h=this._resolveSrc(D);h!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",D===""||v?this._setLoading(!1):(this._resolvedSrc=h,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var D=this.$.sizedImgDiv.style,v=this.$.placeholder.style;D.backgroundSize=v.backgroundSize=this.sizing;D.backgroundPosition=v.backgroundPosition=this.sizing?this.position:"";D.backgroundRepeat=v.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(D){D=_.FL(D,this.$.baseURIAnchor.href);D.length>=2&&D[0]==="/"&&D[1]!=="/"&&(D=(location.origin||location.protocol+"//"+location.host)+D);return D}});var dXZ;var j7K;_.yT({_template:function(){if(j7K!==void 0)return j7K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;dXZ===void 0&&(dXZ=document.createElement("template"));var a=dXZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return j7K=D},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(D){return D?"false":"true"},
_headingChanged:function(D){var v=this.getAttribute("heading"),h=this.getAttribute("aria-label");typeof h==="string"&&h!==v||this.setAttribute("aria-label",D)},
_computeHeadingClass:function(D){return D?" over-image":""},
_computeAnimated:function(D){return D}});var s7r=new _.z0("addRendererToItemSectionAction");var mXd;var yv=function(){return _.c.apply(this,arguments)||this};
_.J(yv,_.c);yv.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yv.prototype,"rendererBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],yv.prototype,"dismissibleItemBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],yv.prototype,"rendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yv.prototype,"data",void 0);_.e([_.m({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],yv);
_.w(yv,"ytd-comment-history-entry-renderer",function(){if(mXd!==void 0)return mXd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return mXd=D},{mode:1});var HQ2;_.HX("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.HX("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var wZ=function(){return _.c.apply(this,arguments)||this};
_.J(wZ,_.c);_.V=wZ.prototype;_.V.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.V.onTap=function(){this.data.recordClickEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var D=this.data.navigationEndpoint;D&&_.k(D,_.aA)&&_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})};
_.V.readChanged=function(){var D;_.Iy(this.hostElement,"unread",!((D=this.data)==null?0:D.read))};
_.V.dataChanged=function(){this.data&&_.Iy(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.V.computeThumbnailSize=function(){var D;return((D=this.data)==null?0:D.highPriorityNotification)?32:48};
_.V.getEndpointURL=function(D){return D&&!_.k(D,_.aA)?this.componentBehavior.computeHref_(D):null};
_.V.getEndpointData=function(D){return D&&!_.k(D,_.aA)?D:null};
wZ.prototype.computeThumbnailSize=wZ.prototype.computeThumbnailSize;wZ.prototype.dataChanged=wZ.prototype.dataChanged;wZ.prototype.readChanged=wZ.prototype.readChanged;wZ.prototype.onKeyUp=wZ.prototype.onKeyUp;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],wZ.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wZ.prototype,"data",void 0);_.e([_.Y({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.n("design:type",Number)],wZ.prototype,"thumbnailSize",void 0);_.e([_.lc("keyup"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],wZ.prototype,"onKeyUp",null);
_.e([_.Ni("data.read"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wZ.prototype,"readChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wZ.prototype,"dataChanged",null);_.e([_.Ni("data.highPriorityNotification"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wZ.prototype,"computeThumbnailSize",null);
_.e([_.m({is:"ytd-notification-renderer",disableElementRegistration:!0})],wZ);
_.w(wZ,"ytd-notification-renderer",function(){if(HQ2!==void 0)return HQ2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return HQ2=D},{mode:1});var y4C;var ew=function(){return _.c.apply(this,arguments)||this};
_.J(ew,_.c);ew.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"}}}};
ew.prototype.computeActionButtonClass=function(D){return!D.actionButtons||D.actionButtons.length<=1?"single-button":D.description?"vertical-buttons":"horizontal-buttons"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ew.prototype,"data",void 0);_.e([_.m({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],ew);
_.w(ew,"ytd-playlist-show-metadata-renderer",function(){if(y4C!==void 0)return y4C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return y4C=D},{mode:1});var wPb;_.HX("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var nc=function(){return _.c.apply(this,arguments)||this};
_.J(nc,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nc.prototype,"data",void 0);_.e([_.m({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],nc);
_.w(nc,"ytd-purchase-item-renderer",function(){if(wPb!==void 0)return wPb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wPb=D},{mode:1});var eob;var nP$={};nP$.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(D){if(D)return D.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(D){if(D==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.HX("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Od=function(){return _.c.apply(this,arguments)||this};
_.J(Od,_.c);Od.prototype.onYtNavigate=function(D){var v=this.openPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);v&&(D.stopPropagation(),this.openPopupBehavior.openPopup(v))};
Od.prototype.onYtNavigate=Od.prototype.onYtNavigate;_.e([_.l(nP$.YtSimpleTextSectionBehavior),_.n("design:type",Object)],Od.prototype,"ytSimpleTextSectionBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],Od.prototype,"openPopupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Od.prototype,"data",void 0);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Od.prototype,"onYtNavigate",null);_.e([_.m({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Od);
_.w(Od,"ytd-simple-text-section-renderer",function(){if(eob!==void 0)return eob;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return eob=D},{mode:1});var OQU;_.HX("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Kc=function(){return _.c.apply(this,arguments)||this};
_.J(Kc,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Kc.prototype,"data",void 0);_.e([_.m({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Kc);
_.w(Kc,"ytd-unlimited-page-feature-info-renderer",function(){if(OQU!==void 0)return OQU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return OQU=D},{mode:1});var KXs;var T5K;var Tv=function(){return _.c.apply(this,arguments)||this};
_.J(Tv,_.c);Tv.prototype.dataChanged=function(){if(this.data){var D=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);D&&(D=_.UA(D,screen.width),this.hostElement.style.backgroundImage="url("+D+")")}};
Tv.prototype.dataChanged=Tv.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Tv.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Tv.prototype,"dataChanged",null);_.e([_.m({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Tv);
_.w(Tv,"ytd-post-redemption-section-renderer",function(){if(T5K!==void 0)return T5K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return T5K=D},{mode:1});var Rom;var Rh=function(){return _.c.apply(this,arguments)||this};
_.J(Rh,_.c);Rh.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Rh.prototype,"data",void 0);_.e([_.m({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Rh);
_.w(Rh,"ytd-ypc-post-redemption-renderer",function(){if(Rom!==void 0)return Rom;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Rom=D},{mode:1});_.HX("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var im=function(){var D=_.c.apply(this,arguments)||this;D.MIN_CODE_LENGTH=12;D.MAX_CODE_LENGTH=24;return D};
_.J(im,_.c);_.V=im.prototype;_.V.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.V.created=function(){this.riskService=new _.xsf;this.loadPaymentThenable=_.fs8(_.eA("YPC_MB_URL"))};
_.V.ready=function(){var D=this;this.code.addEventListener("keypress",function(v){D.onCodeInputKeypress(v)})};
_.V.dataChanged=function(){var D=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(v){v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,h.type==="attributes"&&h.attributeName==="dark"&&D.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.V.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var D=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+D+")")}};
_.V.computeRedeemButton=function(D){(D=this.get("redeemButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.V.onRedeemButtonTap=function(D){D.stopPropagation();XPr();this.redeemCode()};
_.V.redeemCode=function(){var D=this;this.isLoading=!0;var v=this.riskService.init();_.HZ([v,this.loadPaymentThenable]).then(function(){var h=D.data.redeemButton.buttonRenderer.serviceEndpoint,a=_.M77(),Q=_.$Y.payments.business.integration.ClientTokenFactory.createClientToken(_.k(h,_.Dm4).countryCode,a);a={c:D.code.value.trim(),rd:window.btoa(a),ctk:Q};h&&_.xd().resolve(_.fx).resolveCommand(h,{form:Object.assign({},a,{element:D.hostElement})})},function(){D.showGenericError();
HL("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.OM(Error("Eo"))})};
_.V.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isLoading=!1;var v,h;this.errorMessage=(v=D.detail)==null?void 0:(h=v.data)==null?void 0:h.errorMessage;var a,Q;this.postRedemptionRenderer=(a=D.detail)==null?void 0:(Q=a.data)==null?void 0:Q.renderer;var G,x;if(D=(G=D.detail)==null?void 0:(x=G.data)==null?void 0:x.redirectEndpoint)this.isLoading=!0,_.F1(this.hostElement,"yt-navigate",{endpoint:D});this.errorMessage?HL("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
D)&&_.Zn("ypcRedeemFlowSucceeded")};
_.V.onYtServiceRequestError=function(D){D.stopPropagation();this.isLoading=!1;if(D=this.get("detail.error.message",D))this.errorMessage=_.aX(D);HL("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.V.onInvokeInstrumentManagerActionCompleted=function(D){D.stopPropagation();this.redeemCode()};
_.V.onInvokeInstrumentManagerActionError=function(D){D.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",D)){case "instrumentManagerLoadError":this.showGenericError();HL("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();HL("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Zn("ypcRedeemFlowCancelled")}};
_.V.onInput=function(){var D=this;_.aq(this,"onInput",function(){var v=D.code.value.trim();D.redeemButtonDisabled=v.length<D.MIN_CODE_LENGTH||v.length>D.MAX_CODE_LENGTH},200)};
_.V.onCodeInputKeypress=function(D){D.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(XPr(),this.redeemCode())};
_.V.computeImageUrl=function(D){return D?_.UA(D.thumbnails,600):null};
_.V.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
im.prototype.onInvokeInstrumentManagerActionError=im.prototype.onInvokeInstrumentManagerActionError;im.prototype.onInvokeInstrumentManagerActionCompleted=im.prototype.onInvokeInstrumentManagerActionCompleted;im.prototype.onYtServiceRequestError=im.prototype.onYtServiceRequestError;im.prototype.onYtServiceRequestCompleted=im.prototype.onYtServiceRequestCompleted;im.prototype.dataChanged=im.prototype.dataChanged;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],im.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],im.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Boolean)],im.prototype,"redeemButtonDisabled",void 0);
_.e([_.Y(),_.n("design:type",Object)],im.prototype,"errorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],im.prototype,"postRedemptionRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],im.prototype,"observer",void 0);_.e([_.Br("#code"),_.n("design:type",HTMLInputElement)],im.prototype,"code",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],im.prototype,"dataChanged",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],im.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],im.prototype,"onYtServiceRequestError",null);
_.e([_.lc("yt-invoke-instrument-manager-action-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],im.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.e([_.lc("yt-invoke-instrument-manager-action-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],im.prototype,"onInvokeInstrumentManagerActionError",null);_.e([_.m({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],im);
_.w(im,"ytd-redeem-code-renderer",function(){if(KXs!==void 0)return KXs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return KXs=D},{mode:1});var iQC;_.HX("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var WL=function(){var D=_.c.apply(this,arguments)||this;D.businessEmailDisplayState="HIDE_SECTION";return D};
_.J(WL,_.c);_.V=WL.prototype;_.V.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}}}}}};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.i4(_.aym),this.businessEmailDisplayState="CAPTCHA"))};
_.V.onYtServiceRequestCompleted=function(D){var v;if((v=D.detail.data)==null?0:v.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var h;if((h=D.detail.data)==null?0:h.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.computeEmailHref=function(D){return"mailto:"+D};
_.V.computeSafeUrl=function(D){if(D)return _.nz(D)};
_.V.onBusinessEmailCaptchaSubmit=function(){var D;(D=this.data)!=null&&D.onBusinessEmailRevealClickCommand&&(D=this.JSC$21742_captchaTextarea.value)&&(D={recaptcha_response_token:D,channel_id:this.data.channelId},_.xd().resolve(_.fx).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},D,{element:this.hostElement})}))};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.GT.Object.defineProperties(WL.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.primaryLinks)&&!((v=this.data)==null?0:v.links)&&this.data.primaryLinks.every(function(h){return h.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.primaryLinks)&&!((v=this.data)==null?0:v.links)&&!this.shouldShowNewLinks}}});
WL.prototype.onYtServiceRequestCompleted=WL.prototype.onYtServiceRequestCompleted;WL.prototype.dataChanged=WL.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Br("#g-recaptcha-response"),_.n("design:type",HTMLTextAreaElement)],WL.prototype,"JSC$21742_captchaTextarea",void 0);_.e([_.Y(),_.n("design:type",Object)],WL.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],WL.prototype,"businessEmailDisplayState",void 0);_.e([_.Y(),_.n("design:type",String)],WL.prototype,"businessEmail",void 0);_.e([_.Y(),_.n("design:type",String)],WL.prototype,"businessEmailErrorMessage",void 0);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],WL.prototype,"hideDetailsSection",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WL.prototype,"dataChanged",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],WL.prototype,"shouldShowNewLinks",null);_.e([_.N("data","shouldShowLinks"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],WL.prototype,"shouldShowLegacyLinks",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],WL.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],WL);
_.w(WL,"ytd-channel-about-metadata-renderer",function(){if(iQC!==void 0)return iQC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return iQC=D},{mode:1});var WXX;_.HX("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var tK=function(){return _.c.apply(this,arguments)||this};
_.J(tK,_.c);tK.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]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],tK.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],tK.prototype,"lockupContainerType",void 0);_.e([_.Y(),_.n("design:type",String)],tK.prototype,"thumbnailFixedWidth",void 0);
_.e([_.m({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],tK);
_.w(tK,"ytd-channel-featured-content-renderer",function(){if(WXX!==void 0)return WXX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return WXX=D},{mode:1});var tHX;_.HX("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var rZ=function(){var D=_.c.apply(this,arguments)||this;D.roundContainer=!0;D.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return D};
_.J(rZ,_.c);_.V=rZ.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.dataChanged=function(){this.imageWidth=this.imageHeight=24;var D=this.data;D.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!D.style&&D.image&&D.image.thumbnails.length&&(D=D.image.thumbnails[0],this.imageWidth=D.width||0,this.imageHeight=D.height||0)};
_.V.computeSource=function(D){return D.secondarySource?_.$V(D.secondarySource):_.$V(D.source)};
_.V.computeClarifyStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.V.isLargeStyle=function(D){return D==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.V.computeBackgroundStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.V.computeHasActionButton=function(D){return!!D.actionButton};
_.V.computeHasBottomSection=function(D){return!!D.ctaHasBottomSection};
_.V.computeIsSourceMissing=function(D){return D.ctaHasBottomSection===!1?!0:D&&this.computeSource(D)?!1:!0};
_.V.computeSecondaryEndpoint=function(D){return D.secondaryEndpoint||D.endpoint};
rZ.prototype.dataChanged=rZ.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],rZ.prototype,"imageWidth",void 0);_.e([_.Y(),_.n("design:type",Number)],rZ.prototype,"imageHeight",void 0);
_.e([_.Y({computed:"computeSecondaryEndpoint(data)"}),_.n("design:type",Object)],rZ.prototype,"secondaryEndpoint",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.n("design:type",Boolean)],rZ.prototype,"hasActionButton",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.n("design:type",Boolean)],rZ.prototype,"hasBottomSection",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.n("design:type",Boolean)],rZ.prototype,"missingSource",void 0);_.e([_.Y({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],rZ.prototype,"icon",void 0);_.e([_.Y({computed:"computeIcon_(data.secondaryIcon)"}),_.n("design:type",String)],rZ.prototype,"secondaryIcon",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.n("design:type",String)],rZ.prototype,"clarifyStyle",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.n("design:type",String)],rZ.prototype,"backgroundStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rZ.prototype,"roundContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],rZ.prototype,"amsterdamEnabled",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rZ.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-clarification-renderer",disableElementRegistration:!0})],rZ);
_.w(rZ,"ytd-clarification-renderer",function(){if(tHX!==void 0)return tHX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return tHX=D},{mode:1});var r4C;var uFC;var um=function(){var D=_.c.apply(this,arguments)||this;D.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return D};
_.J(um,_.c);_.V=um.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V.computeIcon=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.V.computeUseContacts=function(D){return!!D.contacts&&D.contacts.length>0};
_.V.computePhoneContact=function(D){var v,h;return(v=D.contacts)==null?void 0:(h=v.find(function(a){var Q;return(a==null?void 0:(Q=a.icon)==null?void 0:Q.iconType)==="PHONE"}))==null?void 0:h.actionText};
_.V.computeSmsContact=function(D){var v,h;return(v=D.contacts)==null?void 0:(h=v.find(function(a){var Q;return(a==null?void 0:(Q=a.icon)==null?void 0:Q.iconType)==="SMS"}))==null?void 0:h.actionText};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],um.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],um.prototype,"amsterdamEnabled",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.n("design:type",Boolean)],um.prototype,"useContacts",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.n("design:type",String)],um.prototype,"phoneContact",void 0);_.e([_.m({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],um);
_.w(um,"ytd-single-action-emergency-support-renderer",function(){if(uFC!==void 0)return uFC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return uFC=D},{mode:1});_.HX("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var D7=function(){var D=_.c.apply(this,arguments)||this;D.roundedContainer=!0;D.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return D};
_.J(D7,_.c);D7.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],D7.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D7.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],D7.prototype,"amsterdamEnabled",void 0);
_.e([_.m({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],D7);
_.w(D7,"ytd-emergency-onebox-renderer",function(){if(r4C!==void 0)return r4C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return r4C=D},{mode:1});var Dl$;_.HX("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var vP=function(){return _.c.apply(this,arguments)||this};
_.J(vP,_.c);vP.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vP.prototype,"data",void 0);_.e([_.m({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],vP);
_.w(vP,"ytd-exploratory-results-renderer",function(){if(Dl$!==void 0)return Dl$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Dl$=D},{mode:1});var vTs;_.HX("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var h4=function(){var D=_.c.apply(this,arguments)||this;D.messageData=null;return D};
_.J(h4,_.c);_.V=h4.prototype;_.V.onServiceRequestCompleted=function(D,v){D=v.actions||[];v=0;for(var h=D.length;v<h;v++){var a=D[v],Q=void 0,G=void 0;if((Q=_.k(a,_.yo))==null?0:(G=Q.item)==null?0:G.messageRenderer)this.messageData=_.k(a,_.yo).item.messageRenderer}};
_.V.dataChanged=function(){var D=this.data;this.hostElement.hidden=!1;_.Iy(this.hostElement,"is-channel",D&&!D.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.V.computeThumbnailWidth=function(D){return D?126:56};
_.V.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.V.onSubmitTap=function(){var D=this.data,v=this.selectedResponseIndex;D!==void 0&&v!==void 0&&(D=D.responses[v],D.responseData&&_.xd().resolve(_.fx).resolveCommand(D.responseData,{form:{element:this.hostElement}}))};
_.V.onDismissTap=function(){this.hostElement.hidden=!0;var D=this.data;D!==void 0&&D.dismissalEndpoint&&_.xd().resolve(_.fx).resolveCommand(D.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
h4.prototype.onSelectedResponseIndexChange=h4.prototype.onSelectedResponseIndexChange;h4.prototype.dataChanged=h4.prototype.dataChanged;h4.prototype.onServiceRequestCompleted=h4.prototype.onServiceRequestCompleted;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],h4.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],h4.prototype,"messageData",void 0);
_.e([_.Y(),_.n("design:type",Number)],h4.prototype,"selectedResponseIndex",void 0);_.e([_.Br("#submit-button"),_.n("design:type",HTMLButtonElement)],h4.prototype,"submitButton",void 0);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],h4.prototype,"onServiceRequestCompleted",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h4.prototype,"dataChanged",null);
_.e([_.Ni("selectedResponseIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h4.prototype,"onSelectedResponseIndexChange",null);_.e([_.m({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],h4);
_.w(h4,"ytd-feedback-elicitation-single-question-renderer",function(){if(vTs!==void 0)return vTs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return vTs=D},{mode:1});var hKr;var a7=function(){return _.c.apply(this,arguments)||this};
_.J(a7,_.c);a7.prototype.computeThumbnailWidth=function(D){return D?602:428};
a7.prototype.updateWideFromBinding=function(D){this.wide=D.detail.value};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],a7.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],a7.prototype,"wide",void 0);_.e([_.m({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],a7);
_.w(a7,"ytd-newspaper-hero-video-renderer",function(){if(hKr!==void 0)return hKr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return hKr=D},{mode:1});var au$;var $P=function(){return _.c.apply(this,arguments)||this};
_.J($P,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$P.prototype,"rendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$P.prototype,"data",void 0);_.e([_.m({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],$P);
_.w($P,"ytd-newspaper-mini-video-renderer",function(){if(au$!==void 0)return au$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return au$=D},{mode:1});var $lK;_.HX("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var QN=function(){return _.c.apply(this,arguments)||this};
_.J(QN,_.c);QN.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"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],QN.prototype,"data",void 0);_.e([_.m({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],QN);
_.w(QN,"ytd-newspaper-renderer",function(){if($lK!==void 0)return $lK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return $lK=D},{mode:1});var QTX;_.HX("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var G1=function(){var D=_.c.apply(this,arguments)||this;D.isSegment=!1;D.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};D.nextContinuation={continuationType:"playlistVideoListContinuation"};return D};
_.J(G1,_.c);_.V=G1.prototype;_.V.attached=function(){_.xd();var D;(D=_.xd().resolve(_.PV(_.b5)))!=null&&(D.playlistVideoListElement=this.hostElement)};
_.V.detached=function(){var D;(D=_.xd().resolve(_.PV(_.b5)))!=null&&(D.playlistVideoListElement=void 0);D=_.xd().resolve(_.PV(_.bw));_.g("web_enable_voting_animation")&&D&&(D.parentElem=void 0,D.videos=[],D.continuationsPresent=!1,D.showRefreshPill=!1)};
_.V.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"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.dataChanged=function(){var D=_.xd().resolve(_.PV(_.bw));if(_.g("web_enable_voting_animation")&&this.data&&D){var v=_.ZW(this.hostElement).querySelector("#contents");v&&(D.parentElem=v);D.addVideos(this.data.contents)}_.XIm(this.ytReorderableBehavior)};
_.V.onRendererstamperFinished=function(){this.canReorder&&_.AW9(this.ytReorderableBehavior,_.ZW(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.V.onPlaylistReloading=function(){this.isReloading=!0};
_.V.onUpdateSetVideoId=function(D){if(D.detail&&this.data&&this.data.contents){var v=D.detail;D=this.data.contents.findIndex(function(Q){var G;return((G=Q.playlistVideoRenderer)==null?void 0:G.videoId)===v.videoId});
if(!(D<0)&&v.setVideoId&&(this.set("data.contents."+D+".playlistVideoRenderer.setVideoId",v.setVideoId),_.g("web_enable_voting_animation"))){var h;if(D=_.k((h=this.data.contents[D].playlistVideoRenderer)==null?void 0:h.engagementBar,_.Bwo)){var a;(a=D.actions)==null||a.forEach(function(Q){if(Q=_.k(Q,_.cM4))Q.itemId=v.setVideoId})}(h=_.xd().resolve(_.PV(_.bw)))&&A4S(h,v.videoId,v.setVideoId)}}};
_.V.computeContentsClass=function(D){return D?"reloading":""};
_.V.computeIsSortable=function(D,v){return D&&v>0&&!this.isSegment&&!_.g("shorts_in_playlists_web")};
_.V.computeIsEditable=function(D){return D};
_.V.computeCanReorder=function(D){return D};
_.V.handlePlaylistRemoveVideosAction=function(D){if(this.get("playlistRemoveVideosAction.setVideoIds",D)&&this.data&&this.data.contents){D=_.k(D,_.NI$).setVideoIds;for(var v=this.data.contents.length-1;v>=0;){var h=this.data.contents[v].playlistVideoRenderer;h&&h.setVideoId&&D.includes(h.setVideoId)&&this.splice("data.contents",v,1);v--}_.zU(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".playlistVideoRenderer.index",_.aX(String(D+1)))};
_.V.handleDrop=function(D){D=D.currDragItem;var v=_.yO(D.parentNode.childNodes,D),h=this.data.contents.splice(Number(_.$V(D.data.index))-1,1)[0];this.data.contents.splice(v,0,h);v=v?this.get("contents."+(v-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();D=this.buildReorderServiceEndpoint(D.data.setVideoId,v);this.ytComponentBehavior.resolveCommand(D)};
_.V.buildReorderServiceEndpoint=function(D,v){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",D),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",v),this.data.onReorderEndpoint):null};
_.V.handleUpdatePlaylistAction=function(D){var v;(D=_.k((v=_.k(D,_.YGp))==null?void 0:v.updatedRenderer,_.gGJ))&&this.canReorder!==D.canReorder&&this.set("data.canReorder",D.canReorder);D&&D.contents&&(this.set("data.contents",D.contents),this.isReloading=!1);D&&D.continuations&&this.set("data.continuations",D.continuations)};
_.V.handleAddRendererToItemSectionAction=function(D){var v,h=(v=_.k(D,s7r))==null?void 0:v.renderer,a;h&&((a=_.k(D,s7r))==null?void 0:a.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,h),D=_.xd().resolve(_.PV(_.bw)),_.g("web_enable_voting_animation")&&D&&(h&&(v=_.YqO(h))&&D.recommendedVideos.push({itemId:v,videoId:_.XJc(h),voteCount:_.AMq(h),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.V.isVotingEnabledOnPlaylist=function(D){if(!D)return!1;D=_.P(D);for(D=D.next();!D.done;D=D.next()){var v=void 0;return!!_.k((v=D.value.playlistVideoRenderer)==null?void 0:v.engagementBar,_.Bwo)}return!1};
_.V.onAppendContinuationItemsActionFinished=function(){var D;this.isVotingEnabledOnPlaylist((D=this.data)==null?void 0:D.contents)&&(this.updateIndices(),D=_.xd().resolve(_.PV(_.bw)),_.g("web_enable_voting_animation")&&D&&this.data&&D.addVideos(this.data.contents))};
_.V.updateVideoData=function(D){if(D.detail&&this.data&&this.data.contents){var v=D.detail;D=v.toIdx;var h=v.itemId,a=v.newVoteCount,Q=v.voteStatus;v=v.hideItem;var G,x,f=(G=this.data)==null?void 0:(x=G.contents)==null?void 0:x.findIndex(function(Z){return _.YqO(Z)===h});
if(!(f<0)){G=this.data.contents[f];var C;if((C=G.playlistVideoRenderer)==null?0:C.voteCount)G.playlistVideoRenderer.voteCount=a;var U;if(C=_.k((U=G.playlistVideoRenderer)==null?void 0:U.engagementBar,_.Bwo)){var L;(L=C.actions)==null||L.forEach(function(Z){(Z=_.k(Z,_.cM4))&&Z.initialState&&(Z.initialState.votes=a,Z.initialState.status=Q)})}this.data.contents.splice(f,1);
v||this.data.contents.splice(D,0,G);this.updateIndices()}}};
G1.prototype.updateVideoData=G1.prototype.updateVideoData;G1.prototype.onAppendContinuationItemsActionFinished=G1.prototype.onAppendContinuationItemsActionFinished;G1.prototype.onUpdateSetVideoId=G1.prototype.onUpdateSetVideoId;G1.prototype.onPlaylistReloading=G1.prototype.onPlaylistReloading;G1.prototype.onRendererstamperFinished=G1.prototype.onRendererstamperFinished;G1.prototype.dataChanged=G1.prototype.dataChanged;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Zh.YtNextContinuationBehavior),_.n("design:type",Object)],G1.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.l(_.qx9),_.n("design:type",Object)],G1.prototype,"ytReorderableBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],G1.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],G1.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],G1.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],G1.prototype,"isReloading",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],G1.prototype,"isSegment",void 0);_.e([_.Y({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.n("design:type",Boolean)],G1.prototype,"isSortable",void 0);_.e([_.Y({computed:"computeIsEditable(data.isEditable)"}),_.n("design:type",Boolean)],G1.prototype,"isEditable",void 0);_.e([_.Y({computed:"computeCanReorder(data.canReorder)"}),_.n("design:type",Boolean)],G1.prototype,"canReorder",void 0);
_.e([_.Y({value:101}),_.n("design:type",Number)],G1.prototype,"scrollMargin",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G1.prototype,"dataChanged",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G1.prototype,"onRendererstamperFinished",null);
_.e([_.lc("yt-playlist-reloading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G1.prototype,"onPlaylistReloading",null);_.e([_.lc("yt-update-set-video-id"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],G1.prototype,"onUpdateSetVideoId",null);
_.e([_.lc("yt-append-continuation-items-action-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G1.prototype,"onAppendContinuationItemsActionFinished",null);_.e([_.lc("yt-update-video-data-voting-animation"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],G1.prototype,"updateVideoData",null);_.e([_.m({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],G1);
_.w(G1,"ytd-playlist-video-list-renderer",function(){if(QTX!==void 0)return QTX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QTX=D},{mode:_.E_("kevlar_poly_si_batch_j047")?1:2});var G_r;var VN=function(){return _.c.apply(this,arguments)||this};
_.J(VN,_.c);VN.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"}}}}};
VN.prototype.onTextWrapperTap=function(D){var v=this.data&&this.data.navigationEndpoint;v&&!_.Gf(_.Pr(D),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.F1(this.hostElement,"yt-navigate",{endpoint:v})};
VN.prototype.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");D&&D.commandMetadata&&_.k(D.commandMetadata,_.Kr)&&_.k(D.commandMetadata,_.Kr).fireAutomatically&&_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})};
VN.prototype.dataChanged=VN.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.E0),_.n("design:type",Object)],VN.prototype,"ytdLockupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],VN.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],VN.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],VN.prototype,"biggerThumbsStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],VN.prototype,"leftAligned",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VN.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-movie-renderer"})],VN);
_.w(VN,"ytd-movie-renderer",function(){if(G_r!==void 0)return G_r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return G_r=D},{mode:1});var Vm3;var PP=function(){var D=_.c.apply(this,arguments)||this;D.rounded=!0;D.pageAttachedTo=void 0;D.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return D};
_.J(PP,_.c);PP.prototype.attached=function(){this.pageAttachedTo=_.xd().resolve(_.P4).getCurrentPage();_.F1(this.hostElement,"yt-player-attached",this.player)};
PP.prototype.detached=function(){var D;if((D=this.pageAttachedTo)==null?0:D.hostElement)_.F1(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
PP.prototype.dataChanged=function(){var D;if((D=this.data)==null?0:D.videoId)D={video_id:this.data.videoId,autoplay:!0},!_.g("miniplayer_stop_channel_video_autoplay_killswitch")&&_.xd().resolve(_.Ok).isMiniplayerActive()&&(D.pause_at_start=!0,D.autoplay=!1),this.player.loadVideoWithPlayerVars(D)};
PP.prototype.handleSignalActionPausePlayer=function(){_.fj().pause()};
PP.prototype.dataChanged=PP.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],PP.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],PP.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],PP.prototype,"rounded",void 0);_.e([_.Br("#player"),_.n("design:type",Object)],PP.prototype,"player",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PP.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],PP);
_.w(PP,"ytd-channel-video-player-renderer",function(){if(Vm3!==void 0)return Vm3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Vm3=D},{mode:1});var PhK;var xlZ;var MmU;var xP=function(){var D=_.c.apply(this,arguments)||this;D.playing=!1;D.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.iq(D);D.active=!1;return D};
_.J(xP,_.c);_.V=xP.prototype;_.V.detached=function(){this.stop()};
_.V.play=function(){var D=this,v,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return D.active=!0,v=D.get("data.inlinePlaybackEndpoint.watchEndpoint"),h=v.videoId||D.data.videoId,a=v.startTimeSeconds||0,Q=v.playerParams||null,_.g("kevlar_player_update_killswitch")?x.yield(D.playerEl.update({args:{video_id:h,startSeconds:a,player_params:Q}}),2):(D.playerEl.loadVideoWithPlayerVars({video_id:h,startSeconds:a,player_params:Q,autoplay:!0}),x.jumpTo(2));if(x.nextAddress!=4)return x.yield(D.playerEl.getPlayerPromise(),
4);G=x.yieldResult;G.unloadModule("annotations_module");G.addEventListener("onStateChange",function(f){D.onPlayerStateChange(f)});
_.YI(x)})};
_.V.onPlayerStateChange=function(D){if(this.active)switch(this.playing=D===1,D){case 1:_.F1(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.F1(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.V.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.V.resize=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D.playerEl.getPlayerPromise(),2);v=h.yieldResult;v.setSize(NaN,NaN);_.YI(h)})};
_.e([_.Y(),_.n("design:type",Object)],xP.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xP.prototype,"playing",void 0);_.e([_.Y(),_.n("design:type",Object)],xP.prototype,"playerId",void 0);_.e([_.Br("#player"),_.n("design:type",Object)],xP.prototype,"playerEl",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],xP);
_.w(xP,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(MmU!==void 0)return MmU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return MmU=D},{mode:1});var fuC;var Chb;var MX=function(){var D=_.c.apply(this,arguments)||this;D.width=0;return D};
_.J(MX,_.c);_.V=MX.prototype;_.V.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.pZ(this,this.onEnded));this.mp4El.addEventListener("error",_.pZ(this,this.onError))};
_.V.detached=function(){this.videoEl.removeEventListener("ended",_.pZ(this,this.onEnded));this.mp4El.removeEventListener("error",_.pZ(this,this.onError))};
_.V.play=function(){var D=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var v=this.videoEl.play();v?v.then(function(){D.handleVideoStartPlaying()}).catch(function(){_.F1(D.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.F1(this.hostElement,"yt-video-thumbnail-not-playing")};
_.V.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.V.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.V.dataChanged=function(){var D;if((D=this.data)==null?0:D.thumbnailPlaceholder)D=_.UA(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+D+")";this.stop();this.autoplay&&this.play()};
_.V.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.V.onEnded=function(){this.stop();_.F1(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.V.onError=function(){_.F1(this.hostElement,"yt-video-thumbnail-error")};
_.V.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.V.getVideoThumbnail=function(D){if(D&&D.length)return D[0]};
MX.prototype.dataChanged=MX.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],MX.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],MX.prototype,"animatePlaceholderOnEntrance",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],MX.prototype,"autoplay",void 0);_.e([_.Y({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.n("design:type",Object)],MX.prototype,"videoThumbnail",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],MX.prototype,"loop",void 0);_.e([_.Y(),_.n("design:type",Boolean)],MX.prototype,"isVideoPlaying",void 0);_.e([_.Y(),_.n("design:type",Object)],MX.prototype,"width",void 0);_.e([_.Br("#mp4"),_.n("design:type",HTMLElement)],MX.prototype,"mp4El",void 0);_.e([_.Br("#placeholder"),_.n("design:type",HTMLElement)],MX.prototype,"placeholderEl",void 0);_.e([_.Br("#video"),_.n("design:type",HTMLVideoElement)],MX.prototype,"videoEl",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MX.prototype,"dataChanged",null);_.e([_.Ry({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],MX);
_.w(MX,"yt-video-as-thumbnail-details",function(){if(Chb===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;fuC===void 0&&(fuC=document.createElement("template"));var a=fuC;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Chb=D}D=Chb;return D},{mode:2});var fQ=function(){var D=_.c.apply(this,arguments)||this;D.disableGridStateAware=!1;D.animationEnabled=_.g("enable_web_ketchup_hero_animation");D.transitioningOut=!1;D.narrow=!1;D.narrower=!1;D.isCarouselInFeed=!1;D.videoTimeoutJobId=0;D.panelTimeoutJobId=0;D.panelTimeoutJobStartMs=0;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.J(fQ,_.c);_.V=fQ.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.V.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.V.attached=function(){this.onWindowResized()};
_.V.detached=function(){this.clearTimeouts()};
_.V.onWindowResized=function(){this.updateSize()};
_.V.computePanelLayout=function(D){return D&&D.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.playVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.play();var v;this.player&&((v=this.data)==null?0:v.inlinePlaybackRenderer)&&this.player.play()};
_.V.stopVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.stop();var v;this.player&&((v=this.data)==null?0:v.inlinePlaybackRenderer)&&this.player.stop()};
_.V.transitionOut=function(){var D=this;this.transitioningOut=!0;return new Promise(function(v){var h=function(){_.ZW(D.hostElement).querySelector("#action-button").removeEventListener("animationend",h);_.HK.cancelJob(a);v();D.transitioningOut=!1};
var a=_.c1(_.HK,h,1E3);_.ZW(D.hostElement).querySelector("#action-button").addEventListener("animationend",h);D.player&&(D.player.playing=!1)})};
_.V.computeMetadataOrder=function(D){return D&&D.metadataOrder&&D.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?D.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.V.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.V.computeAvatarSize=function(D){return D&&D.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.V.onContentClick=function(D){if(!_.Gf(_.Pr(D),this.hostElement,["A".toString(),"BUTTON".toString()])){var v;if((v=this.data)==null?0:v.navigationEndpoint){var h;this.componentBehavior.resolveCommand((h=this.data)==null?void 0:h.navigationEndpoint)}}};
_.V.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.V.setBackgroundImage=function(D){if(D=this.getBackgroundImageUrl(D))_.ZW(this.hostElement).querySelector("#hero").style.backgroundImage="url("+D+")"};
_.V.setScrimLayer=function(D){var v=this.getScrimLayerColorStops(D);D=((D==null?void 0:D.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(D=180);_.eA("HTML_DIR")==="rtl"&&(D=-D);v&&(_.ZW(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+D+"deg, "+v+")")};
_.V.isNarrower=function(){return this.hostElement.clientWidth<fQ.NARROW_VERSION_SIZE};
_.V.getScrimLayerColorStops=function(){var D,v=(D=this.data)==null?void 0:D.scrimColorValues;if(!v)return null;if(v.length===1)return D=_.uu(v[0]),D+" 0%, "+D+" 100%";if(v.length===3){var h=[0,72,98];return v.map(function(a,Q){return _.uu(a)+" "+h[Q]+"%"}).join(",")}return null};
_.V.getBackgroundImageUrl=function(D){return D&&D.largeFormFactorBackgroundThumbnail?_.UA((D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.V.onPlaying=function(){this.startVideoTimeout()};
_.V.onEnded=function(){this.rotate()};
_.V.startPanelTimeout=function(){var D=this;if(!this.panelTimeoutJobId){var v=this.get("data.minPanelDisplayDurationMs");v&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.c1(_.HK,function(){D.rotate()},v))}};
_.V.startVideoTimeout=function(){var D=this;if(!this.videoTimeoutJobId){_.HK.cancelJob(this.panelTimeoutJobId);var v=Date.now()-this.panelTimeoutJobStartMs;v=Math.max(0,this.get("data.minPanelDisplayDurationMs")-v);v=Math.max(this.get("data.minVideoPlayDurationMs")||0,v);this.videoTimeoutJobId=_.c1(_.HK,function(){D.rotate()},v)}};
_.V.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.HK.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.HK.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.V.rotate=function(){this.clearTimeouts();_.F1(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.GT.Object.defineProperties(fQ.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ZW(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ZW(this.hostElement).querySelector("#video")}}});
_.GT.Object.defineProperties(fQ,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
fQ.prototype.onEnded=fQ.prototype.onEnded;fQ.prototype.onPlaying=fQ.prototype.onPlaying;fQ.prototype.dataChanged=fQ.prototype.dataChanged;_.e([_.l(_.Fg),_.n("design:type",Object)],fQ.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],fQ.prototype,"componentBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],fQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.l(_.iRm),_.n("design:type",Object)],fQ.prototype,"ytBooleanLogicBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],fQ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"disableGridStateAware",void 0);_.e([_.Y(),_.n("design:type",Object)],fQ.prototype,"data",void 0);_.e([_.Y({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.n("design:type",String)],fQ.prototype,"panelLayout",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"animationEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"transitioningOut",void 0);
_.e([_.Y({computed:"computeMetadataOrder(data)"}),_.n("design:type",Boolean)],fQ.prototype,"metadataOrder",void 0);_.e([_.Y({computed:"computeByline(data)"}),_.n("design:type",Object)],fQ.prototype,"byline",void 0);_.e([_.Y({computed:"computeAvatarSize(data)"}),_.n("design:type",Number)],fQ.prototype,"avatarSize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"narrow",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"narrower",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"layoutStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fQ.prototype,"isCarouselInFeed",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fQ.prototype,"dataChanged",null);_.e([_.lc("yt-default-promo-panel-renderer-playing"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fQ.prototype,"onPlaying",null);
_.e([_.lc("yt-default-promo-panel-renderer-ended"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fQ.prototype,"onEnded",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],fQ);
_.w(fQ,"ytd-default-promo-panel-renderer",function(){if(xlZ!==void 0)return xlZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xlZ=D},{mode:1});_.HX("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var CQ=function(){var D=_.c.apply(this,arguments)||this;D.narrower=!1;D.dotMenuVisible=!1;D.paginationThumbnailsVisible=!1;D.active=!0;D.disableGridStateAware=!1;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.J(CQ,_.c);_.V=CQ.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.pZ(this,this.onPageTypeChange));this.currentPageSubtype=_.K_L(location.pathname);this.onWindowResized()};
_.V.detached=function(){this.jobId&&_.HK.cancelJob(this.jobId);this.updateSizeJobId&&_.HK.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.pZ(this,this.onPageTypeChange))};
_.V.onPageTypeChange=function(D){this.active=D.detail.newPageSubtype===this.currentPageSubtype};
_.V.onWindowResized=function(){this.updateSize()};
_.V.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.V.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.V.setCarouselItem=function(D){D>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.HK.cancelJob(this.jobId);var v=this.getCurrentPanelElement();v&&v.stopVideo();this.currentItemIndex=D%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(v||(v=this.getCurrentPanelElement()),v.playVideo()):this.startRotationJob()};
_.V.scrollThumbnails=function(D){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var v=this.getCurrentPaginationElement();if(v){var h=_.ZW(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?h.style.transform="translateX(0)":(v=v.offsetWidth+8,h.style.transform="translateX(-"+v*(D-Math.ceil(Math.floor(this.overlay.offsetWidth/v)/2)+1)+"px)")}}};
_.V.onDataChanged=function(){var D=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.LK(_.HK,function(){var v;(v=D.getCurrentPanelElement())==null||v.updateSize();D.updateSize()}))};
_.V.getCurrentPanelElement=function(){return _.ZW(_.ZW(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.V.getCurrentPaginationElement=function(){return _.ZW(_.ZW(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.V.getNavigationClass=function(D,v){return D===v?"selected":""};
_.V.getNavigationDurationStyle=function(D){return"animation-duration:"+(this.get("data.carouselItems."+D+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.V.onNavigationTap=function(D){var v=this,h=D.model.index;h!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){v.setCarouselItem(h)}),this.autorotateActive=!1)};
_.V.onVideoThumbnailEnded=function(){var D=this;if(this.shouldRotate()){var v=this.getCurrentPaginationElement();v&&(v.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){v.classList.remove("finished");D.setNextCarouselItem()}))}};
_.V.onVideoThumbnailError=function(){this.startRotationJob()};
_.V.onVideoNotPlaying=function(){this.startRotationJob()};
_.V.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.V.startRotationJob=function(){var D=this;_.HK.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.HK.addLowPriorityJob(function(){D.getCurrentPanelElement().transitionOut().then(function(){D.setNextCarouselItem()})},this.rotationTimeout))};
_.V.computeDotMenuVisible=function(D,v){return!!D&&!!D.carouselItems&&D.carouselItems.length>1&&!D.paginationThumbnails||!!v};
_.V.computePaginationThumbnailsVisible=function(D,v){var h,a;return((a=D==null?void 0:(h=D.paginationThumbnails)==null?void 0:h.length)!=null?a:0)>1&&!v};
_.V.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.computePaginatorAlignment=function(D){return(D==null?void 0:D.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.V.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.V.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.V.isNarrower=function(D){return(D!=null?D:0)<fQ.NARROW_VERSION_SIZE};
CQ.prototype.activeChanged=CQ.prototype.activeChanged;CQ.prototype.onVideoNotPlaying=CQ.prototype.onVideoNotPlaying;CQ.prototype.onVideoThumbnailError=CQ.prototype.onVideoThumbnailError;CQ.prototype.onVideoThumbnailEnded=CQ.prototype.onVideoThumbnailEnded;CQ.prototype.onDataChanged=CQ.prototype.onDataChanged;_.e([_.l(_.Fg),_.n("design:type",Object)],CQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],CQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],CQ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],CQ.prototype,"currentItem",void 0);
_.e([_.Y(),_.n("design:type",Number)],CQ.prototype,"currentItemIndex",void 0);_.e([_.Y(),_.n("design:type",Number)],CQ.prototype,"rotationTimeout",void 0);_.e([_.Y(),_.n("design:type",Number)],CQ.prototype,"loopCount",void 0);_.e([_.Y({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.n("design:type",String)],CQ.prototype,"paginatorAlignment",void 0);_.e([_.Y(),_.n("design:type",Number)],CQ.prototype,"jobId",void 0);
_.e([_.Y(),_.n("design:type",Number)],CQ.prototype,"updateSizeJobId",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],CQ.prototype,"isCarouselInFeed",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CQ.prototype,"narrower",void 0);_.e([_.Y({computed:"computeDotMenuVisible(data, narrower)"}),_.n("design:type",Object)],CQ.prototype,"dotMenuVisible",void 0);
_.e([_.Y({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.n("design:type",Object)],CQ.prototype,"paginationThumbnailsVisible",void 0);_.e([_.Y({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.n("design:type",String)],CQ.prototype,"layoutType",void 0);_.e([_.Y({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],CQ.prototype,"autorotateActive",void 0);_.e([_.Y(),_.n("design:type",Object)],CQ.prototype,"active",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],CQ.prototype,"disableGridStateAware",void 0);_.e([_.Br("#overlay"),_.n("design:type",HTMLElement)],CQ.prototype,"overlay",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CQ.prototype,"onDataChanged",null);
_.e([_.lc("yt-video-thumbnail-ended"),_.lc("yt-default-promo-panel-renderer-rotate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CQ.prototype,"onVideoThumbnailEnded",null);_.e([_.lc("yt-video-thumbnail-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CQ.prototype,"onVideoThumbnailError",null);
_.e([_.lc("yt-video-thumbnail-not-playing"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CQ.prototype,"onVideoNotPlaying",null);_.e([_.qi("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CQ.prototype,"activeChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],CQ);
_.w(CQ,"ytd-carousel-item-renderer",function(){if(PhK!==void 0)return PhK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return PhK=D},{mode:2});var oTK;var F7I;var zKd;var UlU;var o7=function(){var D=_.c.apply(this,arguments)||this;D.originalQuery=null;D.originalEndpoint=null;return D};
_.J(o7,_.c);o7.prototype.computeShowOriginalQueryWithoutEndpoint_=function(D,v){return!(!D||v)};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],o7.prototype,"correctedText",void 0);_.e([_.Y(),_.n("design:type",Object)],o7.prototype,"correctedQuery",void 0);_.e([_.Y(),_.n("design:type",Object)],o7.prototype,"correctedEndpoint",void 0);_.e([_.Y(),_.n("design:type",Object)],o7.prototype,"originalText",void 0);_.e([_.Y(),_.n("design:type",Object)],o7.prototype,"originalQuery",void 0);
_.e([_.Y(),_.n("design:type",Object)],o7.prototype,"originalEndpoint",void 0);_.e([_.Y({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.n("design:type",Boolean)],o7.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.e([_.Ry({is:"yt-search-query-correction",disableElementRegistration:!0})],o7);
_.w(o7,"yt-search-query-correction",function(){if(UlU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;zKd===void 0&&(zKd=document.createElement("template"));var a=zKd;h.call(v,a.content.cloneNode(!0),D.content.firstChild);UlU=D}D=UlU;return D},{mode:2});_.HX("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var FF=function(){return _.c.apply(this,arguments)||this};
_.J(FF,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FF.prototype,"data",void 0);_.e([_.Ry({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],FF);
_.w(FF,"yt-did-you-mean-renderer",function(){if(F7I===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;oTK===void 0&&(oTK=document.createElement("template"));var a=oTK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);F7I=D}D=F7I;return D},{mode:2});var L7r;var Zlr;_.HX("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var z1=function(){return _.c.apply(this,arguments)||this};
_.J(z1,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],z1.prototype,"data",void 0);_.e([_.Ry({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],z1);
_.w(z1,"yt-including-results-for-renderer",function(){if(Zlr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;L7r===void 0&&(L7r=document.createElement("template"));var a=L7r;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Zlr=D}D=Zlr;return D},{mode:2});var ETK;var IuU;_.HX("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Ub=function(){return _.c.apply(this,arguments)||this};
_.J(Ub,_.c);Ub.prototype.computeExtraClasses_=function(D,v){var h="";D&&(h+=" "+D.toLowerCase().replace(/_/g,"-"));v&&(h+=" "+v.toLowerCase().replace(/_/g,"-"));return h};
Ub.prototype.computeUrlImg_=function(){var D=this.data;D.image&&(_.ZW(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.UA(D.image.thumbnails,Number.MAX_VALUE)+")")};
Ub.prototype.computeUrlImg_=Ub.prototype.computeUrlImg_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ub.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ub.prototype,"computeUrlImg_",null);_.e([_.Ry({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Ub);
_.w(Ub,"yt-music-pass-feature-info-renderer",function(){if(IuU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;ETK===void 0&&(ETK=document.createElement("template"));var a=ETK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);IuU=D}D=IuU;return D},{mode:2});var gTU;var k_r;_.HX("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var LQ=function(){return _.c.apply(this,arguments)||this};
_.J(LQ,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],LQ.prototype,"data",void 0);_.e([_.Ry({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],LQ);
_.w(LQ,"yt-no-results-found-showing-results-for-renderer",function(){if(k_r===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;gTU===void 0&&(gTU=document.createElement("template"));var a=gTU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);k_r=D}D=k_r;return D},{mode:2});var SSX;var J7I;_.HX("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Z7=function(){return _.c.apply(this,arguments)||this};
_.J(Z7,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Z7.prototype,"data",void 0);_.e([_.Ry({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Z7);
_.w(Z7,"yt-results-without-quotes-renderer",function(){if(J7I===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;SSX===void 0&&(SSX=document.createElement("template"));var a=SSX;h.call(v,a.content.cloneNode(!0),D.content.firstChild);J7I=D}D=J7I;return D},{mode:2});var pzX;var lub;_.HX("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Eb=function(){return _.c.apply(this,arguments)||this};
_.J(Eb,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Eb.prototype,"data",void 0);_.e([_.Ry({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Eb);
_.w(Eb,"yt-search-no-results-renderer",function(){if(lub===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;pzX===void 0&&(pzX=document.createElement("template"));var a=pzX;h.call(v,a.content.cloneNode(!0),D.content.firstChild);lub=D}D=lub;return D},{mode:2});var NOC;var YSd;_.HX("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var I7=function(){return _.c.apply(this,arguments)||this};
_.J(I7,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],I7.prototype,"data",void 0);_.e([_.Ry({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],I7);
_.w(I7,"yt-showing-results-for-renderer",function(){if(YSd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;NOC===void 0&&(NOC=document.createElement("template"));var a=NOC;h.call(v,a.content.cloneNode(!0),D.content.firstChild);YSd=D}D=YSd;return D},{mode:2});var BOr;var c7r;var XzX;var A7S;var g5=function(){var D=_.c.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.J(g5,_.c);g5.prototype.toggleAnswer_=function(D){var v=_.xU(D);v&&v.classList.contains("yt-simple-endpoint")||(D.preventDefault(),D.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
g5.prototype.toggleAnswer_=g5.prototype.toggleAnswer_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],g5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],g5.prototype,"answerExpanded",void 0);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],g5.prototype,"toggleAnswer_",null);
_.e([_.Ry({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],g5);
_.w(g5,"yt-generic-faq-question-renderer",function(){if(A7S===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;XzX===void 0&&(XzX=document.createElement("template"));var a=XzX;h.call(v,a.content.cloneNode(!0),D.content.firstChild);A7S=D}D=A7S;return D},{mode:2});_.HX("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var kP=function(){return _.c.apply(this,arguments)||this};
_.J(kP,_.c);kP.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kP.prototype,"data",void 0);_.e([_.Ry({is:"yt-faq-section-renderer",disableElementRegistration:!0})],kP);
_.w(kP,"yt-faq-section-renderer",function(){if(c7r===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;BOr===void 0&&(BOr=document.createElement("template"));var a=BOr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);c7r=D}D=c7r;return D},{mode:2});var qS2;var bls;_.HX("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var SH=function(){return _.c.apply(this,arguments)||this};
_.J(SH,_.c);
SH.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],SH.prototype,"data",void 0);_.e([_.Ry({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],SH);
_.w(SH,"yt-offer-item-expanded-renderer",function(){if(bls===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;qS2===void 0&&(qS2=document.createElement("template"));var a=qS2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);bls=D}D=bls;return D},{mode:2});var dls;var jTm;_.HX("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var J4=function(){return _.c.apply(this,arguments)||this};
_.J(J4,_.c);
J4.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"}}}}};
J4.prototype.computeFullWidthMode=function(D){return!(!D||!D.fullWidthMode)};
J4.prototype.computeBorderlessMode=function(D){return!(!D||!D.borderlessMode)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],J4.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.n("design:type",Boolean)],J4.prototype,"fullWidthMode",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.n("design:type",Boolean)],J4.prototype,"borderlessMode",void 0);_.e([_.Ry({is:"yt-offer-item-renderer",disableElementRegistration:!0})],J4);
_.w(J4,"yt-offer-item-renderer",function(){if(jTm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;dls===void 0&&(dls=document.createElement("template"));var a=dls;h.call(v,a.content.cloneNode(!0),D.content.firstChild);jTm=D}D=jTm;return D},{mode:2});var sTd;var mlI;_.HX("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var pQ=function(){return _.c.apply(this,arguments)||this};
_.J(pQ,_.c);pQ.prototype.computeAriaLevel_=function(D){return this.getLevelID_(D)};
pQ.prototype.getLevelID_=function(D){return(D=D.match(/[0-9]+$/))&&D.length==1?D[0]:"1"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pQ.prototype,"data",void 0);_.e([_.Y({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.n("design:type",String)],pQ.prototype,"ariaLevel",void 0);_.e([_.Y({value:"heading",reflectToAttribute:!0}),_.n("design:type",String)],pQ.prototype,"role",void 0);
_.e([_.Y({value:-1,reflectToAttribute:!0}),_.n("design:type",Number)],pQ.prototype,"tabindex",void 0);_.e([_.Ry({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],pQ);
_.w(pQ,"yt-subscription-product-header-renderer",function(){if(mlI===void 0){var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;sTd===void 0&&(sTd=document.createElement("template"));var a=sTd;h.call(v,a.content.cloneNode(!0),D.content.firstChild);mlI=D}D=mlI;return D},{mode:2});var HlU;var y7r;_.HX("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var lC=function(){return _.c.apply(this,arguments)||this};
_.J(lC,_.c);lC.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:_.y0("menuRenderer"),events:!0}}};
lC.prototype.onStampFinished_=function(){_.ZW(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
lC.prototype.onStampFinished_=lC.prototype.onStampFinished_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lC.prototype,"data",void 0);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lC.prototype,"onStampFinished_",null);
_.e([_.Ry({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],lC);
_.w(lC,"yt-subscription-product-renderer",function(){if(y7r===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;HlU===void 0&&(HlU=document.createElement("template"));var a=HlU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);y7r=D}D=y7r;return D},{mode:2});var wzr;var eKZ;_.HX("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var NX=function(){return _.c.apply(this,arguments)||this};
_.J(NX,_.c);NX.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NX.prototype.imageScrimColorValuesChanged_=function(){var D,v=(D=this.data)==null?void 0:D.imageScrimColorValues;_.ZW(this.hostElement).querySelector("#scrim").style.backgroundColor=v?_.uu(v[0]):"transparent"};
NX.prototype.imageScrimColorValuesChanged_=NX.prototype.imageScrimColorValuesChanged_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],NX.prototype,"data",void 0);
_.e([_.Ni("data.imageScrimColorValues"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NX.prototype,"imageScrimColorValuesChanged_",null);_.e([_.Ry({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],NX);
_.w(NX,"yt-subscription-product-upsell-offer-renderer",function(){if(eKZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;wzr===void 0&&(wzr=document.createElement("template"));var a=wzr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);eKZ=D}D=eKZ;return D},{mode:2});var nT2;var OlZ;var K7I;var TO2;var RK2;var ilr;var YP=function(){return _.c.apply(this,arguments)||this};
_.J(YP,_.c);YP.prototype.onYtServiceRequestError_=function(D){_.Dj(this.hostElement,D.detail.error.message)};
YP.prototype.onYtServiceRequestError_=YP.prototype.onYtServiceRequestError_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],YP.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],YP.prototype,"collapsible",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],YP.prototype,"isManageRed",void 0);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],YP.prototype,"onYtServiceRequestError_",null);_.e([_.Ry({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],YP);
_.w(YP,"yt-single-ypc-offer-renderer",function(){if(ilr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;RK2===void 0&&(RK2=document.createElement("template"));var a=RK2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);ilr=D}D=ilr;return D},{mode:2});var BP=function(){return _.c.apply(this,arguments)||this};
_.J(BP,_.c);BP.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],BP.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],BP.prototype,"isManageRed",void 0);_.e([_.Ry({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],BP);
_.w(BP,"yt-single-ypc-offer-list-renderer",function(){if(TO2===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;K7I===void 0&&(K7I=document.createElement("template"));var a=K7I;h.call(v,a.content.cloneNode(!0),D.content.firstChild);TO2=D}D=TO2;return D},{mode:2});var W7$;var tmZ;_.HX("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var cP=function(){return _.c.apply(this,arguments)||this};
_.J(cP,_.c);cP.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cP.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],cP.prototype,"isManageRed",void 0);_.e([_.Ry({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],cP);
_.w(cP,"yt-ypc-offers-list-renderer",function(){if(tmZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;W7$===void 0&&(W7$=document.createElement("template"));var a=W7$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);tmZ=D}D=tmZ;return D},{mode:2});_.HX("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var XF=function(){return _.c.apply(this,arguments)||this};
_.J(XF,_.c);
XF.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XF.prototype,"data",void 0);_.e([_.Ry({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],XF);
_.w(XF,"yt-unlimited-manage-subscription-page-renderer",function(){if(OlZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;nT2===void 0&&(nT2=document.createElement("template"));var a=nT2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);OlZ=D}D=OlZ;return D},{mode:2});var r7X;var uVr;var A4=function(){return _.c.apply(this,arguments)||this};
_.J(A4,_.c);_.V=A4.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.V.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.onKeypress_=function(D){D.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.V.handleHeaderTap_=function(D){D.preventDefault();D.stopPropagation();this.expandOffers_()};
_.V.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.V.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
A4.prototype.dataChanged_=A4.prototype.dataChanged_;_.e([_.l(_.Hq),_.n("design:type",Object)],A4.prototype,"ironA11yKeysBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],A4.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],A4.prototype,"offersVisible_",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],A4.prototype,"dataChanged_",null);_.e([_.Ry({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],A4);
_.w(A4,"yt-collapsible-ypc-offer-renderer",function(){if(uVr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;r7X===void 0&&(r7X=document.createElement("template"));var a=r7X;h.call(v,a.content.cloneNode(!0),D.content.firstChild);uVr=D}D=uVr;return D},{mode:2});var DTC;var vhd;_.HX("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var qX=function(){return _.c.apply(this,arguments)||this};
_.J(qX,_.c);_.V=qX.prototype;_.V.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.V.dataChanged_=function(){if(this.data.backgroundImage){var D=_.UA(this.data.backgroundImage.thumbnails,screen.width),v=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=v?"linear-gradient(180deg, "+v+"), url("+D+")":"url("+D+")";this.data.gtmId&&_.vt(this.data.gtmId,_.eA("GL",""))}};
_.V.onYtServiceRequestError_=function(D){_.Dj(this.hostElement,D.detail.error.message)};
_.V.getScrimLayerColorStops_=function(){var D,v,h=(D=this.data.unlimitedHeaderV2Data)==null?void 0:(v=D.unlimitedHeaderV2Data)==null?void 0:v.scrimLayerColors;if(!h)return null;var a=100/h.length;return h.map(function(Q,G){G*=a;return _.uu(Q)+" "+G+"%"}).join(",")};
_.V.computeLogoWithPadding=function(D){var v,h,a;return(D=(v=D.unlimitedLogoImage)==null?void 0:(h=v.thumbnails)==null?void 0:(a=h[0])==null?void 0:a.height)&&D%31===0?!0:!1};
qX.prototype.onYtServiceRequestError_=qX.prototype.onYtServiceRequestError_;qX.prototype.dataChanged_=qX.prototype.dataChanged_;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.e([_.Y({computed:"computeLogoWithPadding(data)"}),_.n("design:type",Boolean)],qX.prototype,"logoWithPadding",void 0);
_.e([_.Y(),_.n("design:type",Object)],qX.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qX.prototype,"dataChanged_",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],qX.prototype,"onYtServiceRequestError_",null);_.e([_.Ry({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],qX);
_.w(qX,"yt-unlimited-page-header-renderer",function(){if(vhd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;DTC===void 0&&(DTC=document.createElement("template"));var a=DTC;h.call(v,a.content.cloneNode(!0),D.content.firstChild);vhd=D}D=vhd;return D},{mode:2});var ha2;var aH$;_.HX("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var bC=function(){return _.c.apply(this,arguments)||this};
_.J(bC,_.c);bC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bC.prototype,"data",void 0);_.e([_.Ry({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],bC);
_.w(bC,"yt-unlimited-user-notification-renderer",function(){if(aH$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;ha2===void 0&&(ha2=document.createElement("template"));var a=ha2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);aH$=D}D=aH$;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.APC=_.H(function(D){var v=_.fb(D,{numberOfChips:5}).numberOfChips;return _.F("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.F(_.Xd,{each:function(){return Array(v==null?void 0:v())}},function(){return _.F("div",{class:"ytGhostChipShelfChip"})}))},"qi");_.q9b=_.H(function(D){var v=function(){var G;return((G=D.data)==null?void 0:G.call(D).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},h=_.ke(),a=_.xd().resolve(_.Gh);
_.dM(function(){requestAnimationFrame(function(){var G;(G=h.lottieEl)==null||G.addEventListener("DOMLoaded",function(){var x;(x=D.onLottieLoaded)==null||x.call(D)})})});
var Q={};return _.F("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var G;return((G=D.data)==null?void 0:G.call(D).targetId)||""}},_.F(_.ne,{className:_.S3((Q.ytChatLoadingViewModelRtl=a==="rtl",Q)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:v()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||v()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:v()}}},
animationRef:h}))},"ri");
}catch(e){_._DumpException(e)}
try{
var gd3,ki2,SzZ,pVZ,lXr,NlX,YzI,Blb,cO2,sZS,w7,jZK,AOZ,dM3,bxm,qzX,XVb,mMr,Hxr,yOs,wVs,eE,exS,ndZ,Tlr,Ox,Oxd,RE,n5,K5,Kb2,TD,RxK,ixr,WbZ,tOs,rOX,uHZ,DH3,hdb,ao$,$H3,QeI,GmK,VJI,PO3,xHZ,COK,ozZ,Fds,UHZ,ZLr,Iod,gzZ,kmK,SWX,pKr,loK,Nad,YWU,BaI,c2$,XKC,qW$,seb,jeS,bLm,mHb,dHK,HL2,nzd,edm,y2d,wKK,WI,OL3,TaS,Rdd,iLS,v_b,hlr,aM$,$YK,QBr,GCC,Vj3,PDI,xYd,Mjs,CDr,o_X,FV$,UYX,LVX,r2S;
_.HI=function(D){var v=new _.XH("Error accessing DB");return _.Ie8().then(function(h){return new Promise(function(a,Q){try{var G=h.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(D);G.onsuccess=function(){var x=G.result;a(x?x.value:null)};
G.onerror=function(){v.params={key:D,source:"onerror"};Q(v)}}catch(x){v.params={key:D,
thrownError:String(x)},Q(v)}})},function(){return null})};
_.IXb=function(D,v){var h=_.PzI(v);h!=="javascript:"&&h!=="data:"&&D.setAttribute("href",v)};
gd3=function(D,v){return _.gR(D.entities,"flowStateEntity",v)};
ki2=function(D,v){return _.gR(D.entities,"contextNoteUserRatingEntityPayload",v)};
SzZ=function(D,v){if(D&&v){var h=_.Nq();h().set(D,v);_.xec(h())}};
_.JO2=function(D,v){if(D&&v){var h=_.Nq();h().set(D,v);_.xec(h())}};
pVZ=function(D){return _.j2(D,function(v){return v.languageCode==="en"})};
lXr=function(D){var v=yg;if(_.A$I(D))D.setOption("captions","stickyLoading",{}),D.setOption("captions","track",{});else{var h=_.j2(_.ua2(D),function(a){return a.displayName===v});
D.setOption("captions","track",h)}};
NlX=function(D){if(!D)return 0;var v=D.getPresentingPlayerType(),h=D.getVideoData();return h&&h.isLive?(D=D.getProgressState(v),D.seekableEnd-D.seekableStart):D.getDuration(v)};
YzI=function(D,v){for(var h=_.P(Object.keys(D)),a=h.next();!a.done;a=h.next())if(a=a.value,D[a]!==v[a])return!1;return!0};
Blb=function(){return document.getElementById("player-control-overlay")};
cO2=function(D){D!==-1&&!_.g("player_controls_log_creation_killswitch")&&Blb()&&(_.ea("pcu_cs",D),_.ea("pcu_ce"))};
sZS=function(D,v){var h=_.MK(D,{}),a=XVb("top",v),Q=XVb("bottom",v),G=XVb("left",v),x=XVb("right",v);return _.NL({top:function(){return w7(h().position,a)},
bottom:function(){return w7(h().position,Q)},
left:function(){return w7(h().position,G)},
right:function(){return w7(h().position,x)},
position:function(){return w7(h().positionType,AOZ)},
height:function(){return w7(h().height,eE)},
width:function(){return w7(h().width,eE)},
"min-width":function(){return w7(h().minWidth,eE)},
"min-height":function(){return w7(h().minHeight,eE)},
"max-width":function(){return w7(h().maxWidth,eE)},
"max-height":function(){return w7(h().maxHeight,eE)},
"aspect-ratio":function(){return w7(h().aspectRatio,String)},
"margin-top":function(){return w7(h().margin,a)},
"margin-bottom":function(){return w7(h().margin,Q)},
"margin-left":function(){return w7(h().margin,G)},
"margin-right":function(){return w7(h().margin,x)},
"padding-top":function(){return w7(h().padding,a)},
"padding-bottom":function(){return w7(h().padding,Q)},
"padding-left":function(){return w7(h().padding,G)},
"padding-right":function(){return w7(h().padding,x)},
"flex-direction":function(){return w7(h().flexDirection,qzX)},
"justify-content":function(){return w7(h().justifyContent,bxm)},
"align-items":function(){return w7(h().alignItems,dM3)},
"flex-grow":function(){return w7(h().flexGrow,String)},
"flex-shrink":function(){return w7(h().flexShrink,String)},
"flex-basis":function(){return w7(h().flexBasis,eE)},
"align-self":function(){return w7(h().alignSelf,dM3)},
"flex-wrap":function(){return w7(h().flexWrap,jZK)},
"align-content":function(){return w7(h().alignContent,dM3)}})};
w7=function(D,v){return D!==void 0?v(D):void 0};
jZK=function(D){switch(D){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
AOZ=function(D){switch(D){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
dM3=function(D){switch(D){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
bxm=function(D){switch(D){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
qzX=function(D){switch(D){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
XVb=function(D,v){var h=v==="rtl";switch(D){case "top":var a=mMr;break;case "bottom":a=Hxr;break;case "left":a=yOs;break;default:a=wVs}return function(Q){return w7(a(Q,h),eE)}};
mMr=function(D){var v=D.top;var h=D.vertical;D=D.all;var a;return(a=v!=null?v:h)!=null?a:D};
Hxr=function(D){var v=D.bottom;var h=D.vertical;D=D.all;var a;return(a=v!=null?v:h)!=null?a:D};
yOs=function(D,v){var h=D.left;var a=D.end;var Q=D.start;var G=D.horizontal;D=D.all;var x,f;return(f=(x=h!=null?h:v?a:Q)!=null?x:G)!=null?f:D};
wVs=function(D,v){var h=D.right;var a=D.end;var Q=D.start;var G=D.horizontal;D=D.all;var x,f;return(f=(x=h!=null?h:v?Q:a)!=null?x:G)!=null?f:D};
eE=function(D){var v=D.value;switch(D.unit){case "YPC_DIMENSION_UNIT_POINT":return v+"px";case "YPC_DIMENSION_UNIT_FRACTION":return v+"%";default:return""+v}};
exS=function(D){switch(D){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
ndZ=function(D){var v=D!=null?D:{};D=v.fontRole;var h=v.fontSize;v=v.fontWeight;if(D!==null&&h!==null)switch(D){case "YPC_FONT_ROLE_DISPLAY":switch(h){case "YPC_FONT_SIZE_L":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(h){case "YPC_FONT_SIZE_L":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return v===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(h){case "YPC_FONT_SIZE_XL":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return v==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Tlr=function(D,v,h){function a(Z){return Object.values(Z).map(function(E){var I=E.productId;E=E.pricingOptionIndex;return n5(Q(I).pricingOptions,E).pricingOptionId})}
function Q(Z){return C().get(Z)}
function G(Z){Z=a(Z);h(Z)}
function x(Z,E){return Array.from(Ox(Z.pricingOptions)).filter(function(I){I=_.P(I);I.next();I=I.next().value;return K5(I.pricingGroupAttributes,E)}).map(function(I){return _.P(I).next().value})}
var f=TD([D,v],function(Z,E){var I=Z==null?void 0:Z.selectedPricingOptions;Z={};var S=!0;if(I&&E.length)for(var B=_.P(E),A=B.next();!A.done;A=B.next()){A=A.value;var d=Oxd(A.pricingOptions,function(K){a:{K=K.pricingOptionId;for(var O=_.P(I),R=O.next();!R.done;R=O.next())if(R.value===K){K=!0;break a}K=!1}return K});
if(d>=0){S=!1;var b=n5(A.pricingOptions,d),W=void 0;Z[A.groupId]={productId:A.productId,pricingOptionIndex:d,pricingGroupAttributes:(W=b)==null?void 0:W.pricingGroupAttributes}}}S&&E.length&&(S=n5(E[0].pricingOptions,0),Z[E[0].groupId]={productId:E[0].productId,pricingOptionIndex:0,pricingGroupAttributes:S==null?void 0:S.pricingGroupAttributes});return Z}),C=TD([v],function(Z){return new Map(Z.map(function(E){return[E.productId,
E]}))}),U=TD([v],function(Z){var E=new Map;
Z=_.P(Z);for(var I=Z.next();!I.done;I=Z.next()){var S=I.value;I=S.groupId;var B=S.productId;S=_.P(Ox(S.pricingOptions));for(var A=S.next();!A.done;A=S.next()){var d=_.P(A.value);A=d.next().value;d=d.next().value;E.set(d.pricingOptionId,{groupId:I,productId:B,index:A,pricingOption:d,pricingGroupAttributes:d.pricingGroupAttributes})}}return E}),L=TD([v],function(Z){var E=new Map;
Z=_.P(Z);for(var I=Z.next();!I.done;I=Z.next()){var S=I.value;I=S.groupId;var B=S.productId,A=void 0;S=_.P(Ox((A=S.pricingGroups)!=null?A:[]));for(A=S.next();!A.done;A=S.next()){var d=_.P(A.value);A=d.next().value;d=d.next().value;E.set(d.pricingGroupId,{groupId:I,productId:B,index:A,pricingGroup:d,pricingGroupAttributes:d.pricingGroupAttributes})}}return E});
return{getProductById:Q,isProductSelected:function(Z){var E=Q(Z);if(!E)return!1;var I;return((I=f()[E.groupId])==null?void 0:I.productId)===Z},
getSelectedPricingOptions:function(){return Object.values(f()).map(function(Z){var E=Z.productId;Z=Z.pricingOptionIndex;return n5(Q(E).pricingOptions,Z)})},
getSelectedPricingGroupAttributesByGroupId:function(Z){var E;return(Z=(E=f()[Z])==null?void 0:E.pricingGroupAttributes)?Array.from(Z):void 0},
getSelectedProductByGroupId:function(Z){var E;return(Z=(E=f()[Z])==null?void 0:E.productId)?Q(Z):void 0},
onProductSelected:function(Z){var E=Q(Z);if(E){var I=f(),S;if(((S=I[E.groupId])==null?void 0:S.productId)!==Z){var B=(S=(B=I[E.groupId])==null?void 0:B.productId)?Q(S):void 0;var A;S=(A=I[E.groupId])==null?void 0:A.pricingGroupAttributes;var d;A=(d=I[E.groupId])==null?void 0:d.pricingOptionIndex;if(B&&S&&A!==void 0){d=x(B,S).indexOf(A);if(d===-1)throw Error("Sj`"+A+"`"+B.productId);A=x(E,S);d=d<A.length?A[d]:A.length>0?A[0]:0}else d=0;RE(E.pricingOptions)<=d&&(d=0);A=n5(E.pricingOptions,d);var b;
B={};G(Object.assign({},I,(B[E.groupId]={productId:Z,pricingOptionIndex:d,pricingGroupAttributes:(b=A==null?void 0:A.pricingGroupAttributes)!=null?b:[]},B)))}}},
onPricingOptionSelected:function(Z){var E=U().get(Z);if(E){Z=E.groupId;var I=E.productId;E=E.index;var S=f(),B,A;if(((B=S[Z])==null?void 0:B.productId)!==I||((A=S[Z])==null?void 0:A.pricingOptionIndex)!==E){var d,b;B={};G(Object.assign({},S,(B[Z]={productId:I,pricingOptionIndex:E,pricingGroupAttributes:(b=(d=S[Z])==null?void 0:d.pricingGroupAttributes)!=null?b:[]},B)))}}},
onPricingGroupSelected:function(Z){var E=L().get(Z);if(E){Z=E.groupId;var I=E.productId,S=E.pricingGroup.pricingGroupAttributes,B=Q(I);if(B){E=f();var A=E[Z].pricingGroupAttributes,d;if(((d=E[Z])==null?void 0:d.productId)!==I||!K5(Kb2(A,RE(S)),S)){d=Array.from(S);for(S=RE(S);S<RE(A);S++){var b="",W=!1,K=Array.from(d);K.push(n5(A,S));for(var O=_.P(B.pricingGroups),R=O.next();!R.done;R=O.next())if(R=R.value,K5(R.pricingGroupAttributes,K)){d.push(n5(A,S));W=!0;break}else b===""&&RE(R.pricingGroupAttributes)===
K.length&&K5(Kb2(R.pricingGroupAttributes,d.length),d)&&(b=n5(R.pricingGroupAttributes,S));W||d.push(b)}b=E[Z].pricingOptionIndex;S=[];W=new Map;K=0;B=_.P(Ox(B.pricingOptions));for(O=B.next();!O.done;O=B.next())R=_.P(O.value),O=R.next().value,R=R.next().value,K5(R.pricingGroupAttributes,d)&&S.push(O),K5(R.pricingGroupAttributes,A)&&W.set(O,K++);S.length===0?A=0:(A=W.get(b),A=A!==void 0&&A<S.length?S[A]:S[0]);B={};G(Object.assign({},E,(B[Z]={productId:I,pricingOptionIndex:A,pricingGroupAttributes:d},
B)))}}}},
onClearGroupSelected:function(Z){var E=f();E[Z]&&(E=Object.fromEntries(Object.entries(E).filter(function(I){return _.P(I).next().value!==Z})),G(E))}}};
Ox=function(D){return function h(){var a,Q,G,x,f;return _.CK(h,function(C){switch(C.nextAddress){case 1:_.Jw(C,2),a=0,Q=_.P(D),G=Q.next();case 4:if(G.done){C.jumpTo(2);break}x=G.value;f=_.oQ;return C.yield([a++,x],7);case 7:f(C.yieldResult);G=Q.next();C.jumpTo(4);break;case 2:_.S_(C),_.pf(C,0)}})}()};
Oxd=function(D,v){D=_.P(Ox(D));for(var h=D.next();!h.done;h=D.next()){var a=_.P(h.value);h=a.next().value;a=a.next().value;if(v(a))return h}return-1};
RE=function(D){var v=0;for(D=D[Symbol.iterator]();!D.next().done;)++v;return v};
n5=function(D,v){D=_.P(Ox(D));for(var h=D.next();!h.done;h=D.next()){var a=_.P(h.value);h=a.next().value;a=a.next().value;if(h===v)return a}};
K5=function(D,v){if(!D&&!v)return!0;if(!D||!v)return!1;D=Array.from(D);v=Array.from(v);if(D.length!==v.length)return!1;for(var h=0;h<D.length;h++)if(D[h]!==v[h])return!1;return!0};
Kb2=function(D,v){v=v===void 0?Infinity:v;var h=[];D=_.P(Ox(D));for(var a=D.next();!a.done;a=D.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;if(a>=v)break;a>=0&&h.push(Q)}return h};
TD=function(D,v){var h,a;return function(){for(var Q=D.map(function(x){return x()}),G=0;G<Q.length;G++)if(!h||Q[G]!==h[G]){h=Q;
a=v.apply(null,_.j_(Q));break}return a}};
RxK=function(D,v,h){var a=[];D=_.P(D);for(var Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var G=void 0;((G=v)==null?0:G.length)&&!K5(Q.pricingGroupAttributes,v)||a.push({pricingOption:Q,isSelected:h.includes(Q.pricingOptionId)})}return a};
ixr=function(D,v){return _.gR(D.entities,"pdpStateEntity",v)};
WbZ=function(D){var v,h;return!!(D.productId&&D.groupId&&((v=D.pricingOptions)==null?0:v.length)&&D.pricingOptions.every(function(a){return a.pricingOptionId})&&((h=D.pricingGroups)==null||!h.length||Array.isArray(D.pricingGroups)&&D.pricingGroups.every(function(a){return a.pricingGroupId&&a.pricingGroupAttributes&&a.pricingGroupAttributes.length>0})))};
tOs=function(D,v,h){return Tlr(D,TD([v],function(a){return a.filter(WbZ)}),h)};
rOX=function(D){var v=void 0,h;for(h in D)if(D.hasOwnProperty(h)){v=h;break}return v};
uHZ=function(D,v){return v.length===0?[D]:[D.slice(0,v[0]),D.slice(v[0])].filter(function(h){return h.length>0})};
DH3=function(D){switch(D){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
hdb=function(D,v,h,a){a=Object.assign({},a);_.eQ(a,vzS,{selectedOptionId:D,primaryButtonOverride:h});_.P8().dispatch(_.Xe("flowStateEntity",v,a))};
ao$=function(D){switch(D){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
$H3=function(D){switch(D){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
QeI=function(D,v){v.includes(D)?v=v.filter(function(h){return h!==D}):v.push(D);
return[].concat(_.j_(v))};
GmK=function(D,v){return _.gR(D.entities,"contextNoteFeedEntityPayload",v)};
VJI=function(D,v){switch(D){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return v==null?void 0:v.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return v==null?void 0:v.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return v==null?void 0:v.ratingNotHelpfulText}};
PO3=function(D,v){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:D.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:D.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:D.deleteDialogTitle}]},dialogMessages:[{runs:[{text:D.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.deleteActionText}]},command:{performCommentActionEndpoint:{action:v}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
xHZ=function(D,v,h){var a;if(D&&((a=v())==null?0:a.includes(D))){var Q;h((Q=v())==null?void 0:Q.filter(function(G){return G!==D}))}else h([].concat(_.j_(v()||[]),[D]))};
COK=function(D,v){if(D){var h=[];v=_.P((v==null?void 0:v.checkboxes)||[]);for(var a=v.next();!a.done;a=v.next()){a=_.k(a.value,MJI);var Q=void 0;((Q=a)==null?0:Q.value)&&D.includes(a.key||"")&&h.push(a.value)}return h}};
ozZ=function(D){D.style.height="auto";D.style.height=D.scrollHeight+"px"};
Fds=function(D){return[D.syncStep,D.asyncStep].filter(function(v){return v!==void 0})};
UHZ=function(D){var v,h,a;if(D=(v=D.structuredContextNoteFormSchema)==null?void 0:(h=v.fieldSchemas)==null?void 0:(a=h.noteBody)==null?void 0:a.validationSchema)for(v=_.P(Fds(D)),h=v.next();!h.done;h=v.next()){h=h.value.rules;if(!h)break;h=_.P(h);for(h=h.next();!h.done;h=h.next())return _.k(h.value,_.zd$)}};
ZLr=function(D){if(D){D=_.P(Fds(D));for(var v=D.next();!v.done;v=D.next()){v=v.value.rules;if(!v)break;v=_.P(v);for(v=v.next();!v.done;v=v.next())return _.k(v.value,LdS)}}};
Iod=function(D){if(D){D=_.P(Fds(D));for(var v=D.next();!v.done;v=D.next()){v=v.value.rules;if(!v)break;v=_.P(v);for(v=v.next();!v.done;v=v.next())return _.k(v.value,Ezr)}}};
gzZ=function(D){D=/^https?:\/\//.test(D)?D:"http://"+D;try{var v=_.tN(D)}catch(h){return!1}if(v.toString()!==D)return!1;D=v.JSC$10036_domain_.split(".");return D.length>1&&D.every(function(h){return!!h})};
kmK=function(D,v,h,a){var Q;a=(Q=a.structuredContextNoteData)==null?void 0:Q.createCommentEndpoint;if(Q=_.k(a,_.QlF))return Q.commentText=_.aX(D),Q.videoPositionMention=v,Q.sources=h,a};
SWX=function(D){return D==null?void 0:D.stringValue};
pKr=function(D,v,h){D=D.map(function(a,Q){return{listItemViewModel:{title:a.title,subtitle:a.subtitle,leadingImage:a.leadingImage,trailingImage:Q===v?J22:void 0,rendererContext:{commandContext:{onTap:a.onTap}}}}});
return Object.assign({},h&&{header:{panelHeaderViewModel:{title:h}}},{content:{listViewModel:{listItems:D}}})};
loK=function(D,v){if(D&&v)switch(v){case "SELECTION_TYPE_BOOL":return D.boolValue;case "SELECTION_TYPE_INT":return D.intValue;case "SELECTION_TYPE_STRING":return D.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return D.privacyStatusValue}};
Nad=function(D){var v;D=(v=D.options)==null?void 0:v.findIndex(function(h){return h.isSelected});
return D===void 0?-1:D};
YWU=function(D,v,h){var a=function(){return D().label},Q={},G=_.S3("ytDropdownViewModelLabel",(Q.ytDropdownViewModelLabelError=v,Q));
return _.F(_.z,{cond:function(){return D().label&&!(h()===-1&&D().label&&!D().placeholderText)},
then:function(){return _.F("div",{class:G},_.F(_.IY,{text:a}))}})};
BaI=function(D,v){var h={};h=_.S3("ytDropdownViewModelTitle",(h.ytDropdownViewModelTitlePlaceholder=function(){return v()===-1},h));
return _.F("div",{class:h},_.F(_.IY,{text:function(){var a=D();var Q=v();if(Q===-1)a=a.placeholderText?a.placeholderText:a.label;else{var G,x;a=(G=a.options)==null?void 0:(x=G[Q])==null?void 0:x.title}return a}}))};
c2$=function(D,v){var h=function(){return D().hint};
return _.F(_.xf,null,_.F(_.z,{cond:function(){return h()&&!v()},
then:function(){return _.F("div",{class:_.S3("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.F(_.IY,{text:h,className:"ytDropdownViewModelSupportText"}))}}),_.F(_.z,{cond:v,
then:function(){return _.F("div",{id:"dropdown-view-model-error",role:"alert",class:_.S3("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.F(_.Y5,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.F(_.IY,{text:v,className:"ytDropdownViewModelSupportText"}))}}))};
XKC=function(D,v){var h=_.xd().resolve(_.KRU);_.jA(function(){var a=D().id;a&&h!=null&&h.dropdownMap.set(a,v)})};
qW$=function(D){D=_.k(D.scheduleButton,A2r);D=_.k(D==null?void 0:D.primaryButton,_.fH);D=_.k(D==null?void 0:D.onTap,_.Tz);var v,h,a=((h=_.k(D,_.IN))==null?void 0:h.commands)||[D];h=_.P(a);for(D=h.next();!D.done&&!(v=_.k(D.value,_.QdR));D=h.next());var Q;v=(Q=v)==null?void 0:Q.createBroadcastRequest;if(!v)throw Error("Zj");return v};
seb=function(D,v,h){h=h===void 0?{}:h;var a,Q;return _.M(function(G){if(a=bLm(v))return G.return(a);(Q=dHK(D,v,h))&&jeS(v,Q);return G.return(Q)})};
jeS=function(D,v){var h=mHb(D);h&&v.then(function(a){_.xd().resolve(_.s0).put(h,new _.m_({innertubeResponse:a}))})};
bLm=function(D){if(D=mHb(D)){var v=_.xd().resolve(_.s0);if(v.has(D))return v.get(D).then(function(h){return h==null?void 0:_.Vf(h)})}return null};
mHb=function(D){var v=_.k(D.endpoint,_.hP);if(v!=null&&v.videoId)return v={videoId:v.videoId},_.g("web_imp_player_mute_params")&&(v.mutedAtStart=D.startPlaybackInMutedState),_.vU("inline_playback",v)};
dHK=function(D,v,h){D=_.v4(D,v.endpoint,HL2(v,h)).then(function(a){return a});
return Promise.resolve(D)};
HL2=function(D,v){v=_.g("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!D.startPlaybackInMutedState},v):Object.assign({},{vis:5,autonav:"1"},v);var h;v={contentPlaybackContext:_.dT(v,(h=_.k(D.endpoint.commandMetadata,_.Sa))==null?void 0:h.url,window.location.href)};_.g("web_imp_player_mute_params")&&(v.overrideMutedAtStart=!D.startPlaybackInMutedState);return v};
nzd=function(D,v){var h=window.MutationObserver;h&&(iA=new h(function(a,Q){a=_.P(a);for(var G=a.next();!G.done;G=a.next()){G=G.value;var x;if(x=G.type==="childList"&&G.target)a:{x=D;G=y2d(G.target);x=y2d(x);for(var f=null,C=0;C<G.length;C++)if(x.includes(G[C])){if(C===0){x=!1;break a}f=G[C];break}f?(G=wKK(G,f),x=wKK(x,f),x=G<x):x=!1}if(x){v();Q.disconnect();break}}}),(h=edm())&&iA.observe(h,{childList:!0,
subtree:!0}))};
edm=function(){var D=document.getElementsByTagName("ytd-rich-grid-renderer");if(D.length>0)return D[0];D=document.getElementsByTagName("ytd-section-list-renderer");return D.length>0?D[0]:null};
y2d=function(D){for(var v=[];D;)v.push(D),D=D.parentElement;return v};
wKK=function(D,v){var h=Array.from(v.children);v=D.indexOf(v);return v>0?h.indexOf(D[v-1]):-1};
WI=function(D,v,h){h=h===void 0?{}:h;return _.p1(D,h,v)};
OL3=function(D){switch(D){case "MUSIC":return!0;default:return!1}};
TaS=function(D){if(D=D==null?void 0:D.find(function(a){var Q,G;return((Q=_.k(a,KdC))==null?void 0:(G=Q.inlinePlaybackBadgeData)==null?void 0:G.replicateAsTimestamp)===!0}))if(D=_.k(D,KdC),D==null?0:D.icon){var v,h;
if((D=(v=_.roc(D.icon))==null?void 0:(h=v.clientResource)==null?void 0:h.imageName)&&OL3(D))return D}};
Rdd=function(D){return D==null?void 0:D.filter(function(v){return v.premiereTrailerBadgeRenderer})};
iLS=function(D){var v,h=D==null?void 0:(v=D.find(function(C){return C.thumbnailOverlayTimeStatusRenderer}))==null?void 0:v.thumbnailOverlayTimeStatusRenderer,a,Q;
if((h==null?0:(a=h.icon)==null?0:a.iconType)&&OL3(h==null?void 0:(Q=h.icon)==null?void 0:Q.iconType)){var G;return{icon:h==null?void 0:(G=h.icon)==null?void 0:G.iconType}}var x;if(v=D==null?void 0:(x=D.find(function(C){return C.thumbnailOverlayBadgeViewModel}))==null?void 0:x.thumbnailOverlayBadgeViewModel)if(x=TaS(v.thumbnailBadges))return{icon:x};
var f;if(D=D==null?void 0:(f=D.find(function(C){return C.thumbnailBottomOverlayViewModel}))==null?void 0:f.thumbnailBottomOverlayViewModel)if(f=TaS(D.badges))return{icon:f};
return{}};
v_b=function(D,v){var h=Wdr,a=_.P(_.Zq(tJm(new r2S(function(){},h,v)),void 0,"PAnyd")),Q=a.next().value,G=a.next().value,x=new r2S(function(f){G(f)},h,v);
_.bW(function(){Promise.resolve().then(function(){var f,C=(f=D())!=null?f:{};x.playerControlsData=C;_.g("player_controls_skip_double_signal_old")&&(x.lastSeenPlayerApi=_.yf(C.playerApi));_.g("player_controls_skip_double_signal_old")||(x.lastSeenPlayerApi=_.yf(C.playerApi));ukX(x)});
_.dq(function(){DYr(x)})},"HikUP");
_.dq(function(){DYr(x)});
return function(){return Q()}};
hlr=function(D){return function(v){var h=D(),a={playerState:v};if(v===1){var Q;(Q=h.playerApi)==null||Q.loadModule("captions")}if(v===0){var G;(G=h.playerApi)==null||G.unloadModule("captions")}v!==-1&&h.setState(a)}};
aM$=function(D){return function(v){D().setState({playbackRate:v})}};
$YK=function(D){return function(v){var h=D(),a=h.playerApi,Q=a==null?void 0:a.getVideoData(),G=(Q==null?void 0:Q.isLive)||!1;Q=Q==null?void 0:Q.video_id;G={videoDuration:NlX(a||void 0),isLive:G,videoId:Q};G.videoId!==h.videoId&&(G=Object.assign({},_.KXA(a),G));if(v==null?0:v.playertype)G.playerType=v.playertype;if(a){G.captionsAvailable=_.kK(a);v=G;var x;Q=(x=a.getStoryboardLevel(a.getNumberOfStoryboardLevels()-1))==null?void 0:x.intervalMs;v.storyboardInterval=Q?Q/1E3:void 0;G.captionsAvailable&&
(G.captionsEnabled=_.A$I(a))}G.volumeMuted=!(a==null||!a.isMuted());h.setState(G)}};
QBr=function(D){return function(v){var h=D(),a=h.playerApi;if(a){var Q=a.getPresentingPlayerType();v={playedTime:v||0,percentLoaded:a.getVideoLoadedFraction(),playerType:Q};h.playerState===0&&(v.playedTime=h.videoDuration);h.isLive&&(Q=a.getProgressState(Q),v.playedTime-=Q.seekableStart,v.videoDuration=NlX(a));if(h.playerType===1)a=!1;else{var G;if((G=h.uxConfig)==null?0:G.showCuedOverlay){var x;a=!((x=h.playerApi)==null?0:x.getPlayerStateObject(h.playerType).isDomPaused)}else a=!0}a&&delete v.playedTime;
h.setState(v)}}};
GCC=function(D){return function(){var v=D(),h,a,Q,G={volume:(Q=(h=v.playerApi)==null?void 0:h.getVolume())!=null?Q:0,volumeMuted:!((a=v.playerApi)==null||!a.isMuted())};v.setState(G)}};
Vj3=function(D){return function(){var v=D(),h=v.playerApi;if(h){var a={captionsAvailable:_.kK(h)};a.captionsAvailable&&(a.captionsEnabled=_.A$I(h));v.setState(a)}}};
PDI=function(D){return function(){var v=D();if(v.playerApi&&!(v.volumeMuted||v.controlsVisible&&v.isProbablyAScreenreaderUser)){v.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var h;(h=document.querySelector(".player-control-play-pause-icon"))==null||h.focus()}}};
xYd=function(D){return{appApi:Object.assign({},_.mXu(),{showCaptionsToggleToast:function(v){var h,a;(a=(h=D()).showCaptionsToggleToast)==null||a.call(h,v)},
openInMiniplayer:function(){var v,h;(h=(v=D()).openInMiniplayer)==null||h.call(v)}})}};
Mjs=function(D,v){var h,a,Q;return!!(D==null?0:(h=D.playerResponse)==null?0:(a=h.playerConfig)==null?0:(Q=a.inlinePlaybackConfig)==null?0:Q.showScrubbingControls)&&!(v==null?0:v.hideScrubbingControls)};
_.fMb=function(D){var v=!D.miniplayerIsActive;return[5,2,0].includes(D.miniplayerPlaybackState)||v};
CDr={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};o_X=function(D,v){var h,a,Q,G,x;_.M(function(f){if(!v.length)return f.return([]);h=[];a=_.P(v);for(Q=a.next();!Q.done;Q=a.next())G=Q.value,(x=D.resolveIcon(G))&&!D.iconCache[x.url]&&h.push(_.JwI(D,x).then(function(){}).catch(function(){}));
return f.return(Promise.all(h))})};
FV$=function(D,v){var h=[];v=(new Set(v)).values();v=_.P(v);for(var a=v.next();!a.done;a=v.next()){a=a.value;for(var Q=_.P(Object.values(CDr)),G=Q.next();!G.done;G=Q.next())h.push({iconName:a,iconStyle:G.value})}o_X(D.iconManager,h)};
_.zlr=function(D,v,h){var a=h!=null?h:D.iconsToFetch;a!=null&&a.length?v!==void 0&&v>=0?_.c1(_.HK,function(){FV$(D,a)},v):FV$(D,a):Promise.resolve()};
UYX={sharedUi:_.IhR,a11y:_.ZUJ,entities:{}};LVX=function(){return _.oG({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
r2S=function(D,v,h){var a=this;this.renderFn=D;this.listeners=v;this.context=h;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Q;this.lastSeenPlayerApi=_.yf((Q=this.playerControlsData)==null?void 0:Q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.KXA(),void 0);_.g("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){tJm(a).setState({playerState:-1});a.resetRecentlyNavigatedJobId&&_.HK.cancelJob(a.resetRecentlyNavigatedJobId);
a.recentlyNavigated=!0;a.resetRecentlyNavigatedJobId=_.HK.addJob(function(){a.recentlyNavigated=!1},8,1E4)})};
r2S.prototype.setState=function(D){if(!_.g("mweb_player_skip_no_op_state_changes")||!YzI(D,this.state))if(this.state=Object.assign({},this.state,D),!_.g("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)D=-1,_.g("player_controls_log_creation_killswitch")||Blb()||(D=(0,_.xz)()),_.ea("pcu_s"),_.ea("pcu_se"),_.ea("pcu_rs"),this.renderFn(tJm(this)),_.ea("pcu_re"),cO2(D),_.HK.addJob(function(){_.ea("pcu_ap")},8)};
var tJm=function(D){var v;var h=_.yf((v=D.playerControlsData)==null?void 0:v.playerApi);return Object.assign({},D.state,{setState:D.boundSetState,domMeasurements:{progressBarLineRect:D.progressBarLineRect},playerApi:h,appApi:D.context.appApi,playerContainer:D.context.playerContainer,playerControlContainer:D.context.playerControlContainer,uxConfig:D.context.uxConfig})},ukX=function(D){D.listeners.forEach(function(v){D.eventListenerCleanupFunctions.push(v.register(function(){return tJm(D)},function(){return D.getData()}))})},
DYr=function(D){D.eventListenerCleanupFunctions.forEach(function(v){v()});
D.eventListenerCleanupFunctions.length=0};
r2S.prototype.getData=function(){return this.playerControlsData};
var Zp3=new _.z0("crowdsourcedContextUserRatingFormFlowState");var E_$=new _.z0("noteViewModel");var tW=new _.z0("abuseReportFlowState");var IMC=new _.z0("feedbackFormFlowState");var g_X=new _.z0("inputBoxViewModel");var kCS=new _.z0("flowNextStepCommand");var S5C=new _.z0("flowPrevStepCommand");var JXm=new _.z0("updateFlowCommand");_.p1I=new _.z0("flowStepRenderer");_.zd$=new _.z0("lengthValidationRule");var LdS=new _.z0("regexValidationRule");var Ezr=new _.z0("selectedValidationRule");var lM$=new _.z0("talkToRecsViewModel");var Nfr=new _.z0("creatorGoalSetUpFlowDropdownItemViewModel");var Y5s=new _.z0("creatorGoalSetUpFlowDropdownViewModel");var KdC=new _.z0("thumbnailBadgeViewModel");var BfC=new _.z0("checkboxGroupViewModel");var MJI=new _.z0("checkboxItemViewModel");_.r7=new _.z0("radioButtonGroupViewModel");var cXU=new _.z0("radioButtonItemViewModel");var A2r=new _.z0("panelFooterViewModel");var X1I=new _.z0("ypcCancelRecurrenceCommand");var AXS=new _.z0("cancellationFlowState");var vzS=new _.z0("premiumPurchaseFlowState");var q5b=new _.z0("surveyAnswerCardRenderer");var bpZ=new _.z0("showMoreButtonRenderer");var dYZ;var jBr,sBS=function(){if(jBr!==void 0)return jBr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;dYZ===void 0&&(dYZ=document.createElement("template"));var a=dYZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return jBr=D};var uA=function(){var D=_.c.apply(this,arguments)||this;D.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";D.goalDescription="";D.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";D.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";D.startButtonId="start-button";D.exampleButtonId="example-button";return D};
_.J(uA,_.c);_.V=uA.prototype;_.V.getGoalDropdownItems=function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.purchaseTargetDropdown,Y5s))==null?void 0:v.dropdownItems};
_.V.getTimerDropdownItems=function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.timerDropdown,Y5s))==null?void 0:v.dropdownItems};
_.V.getColorDropdownItems=function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.colorDropdown,Y5s))==null?void 0:v.dropdownItems};
_.V.getDropdownItemText=function(D){var v;return(v=_.k(D,Nfr))==null?void 0:v.itemLabel};
_.V.getDropdownItemValue=function(D){D=_.k(D,Nfr);return(D==null?void 0:D.timeLimit)||(D==null?void 0:D.purchaseTarget)||(D==null?void 0:D.eligiblePurchaseType)};
_.V.updateFlowState=function(D){_.zU(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:D}])};
_.V.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.V.updateGoalValue=function(D){this.goal=D.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.V.onTextValueChanged=function(D){this.goalDescription=D.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.V.updateTimerValue=function(D){this.timer=D.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.V.updateTierValue=function(D){this.tier=D.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.V.getButtonViewModel=function(D){D=(D==null?void 0:D.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var v,h=_.k((v=this.data)==null?void 0:v.startGoalButton,_.fH);return Object.assign({},h,{state:D})};
_.GT.Object.defineProperties(uA,{template:{configurable:!0,enumerable:!0,get:function(){return sBS()}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"goal",void 0);_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"goalDescription",void 0);_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"timer",void 0);_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"tier",void 0);
_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"startButtonId",void 0);_.e([_.Y(),_.n("design:type",Object)],uA.prototype,"exampleButtonId",void 0);_.e([_.Ry({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],uA);_.w(uA,"yt-creator-goal-set-up-flow-view-model",function(){return sBS()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var mY2;mY2=Object.assign({},{continuation:_.gbt,download:_.UN9,canvas:_.v$f,reportChannelAbuse:_.N6F,ui:_.awI,share:_.YCF,talkToRecs:_.c6m,watch:_.QE,ypc:_.j6s,radioButtonGroup:_.uwi,collabInviteLink:_.Izu},UYX,{voiceSearch:_.GPi,shorts:_.$m});_.DP=_.w1(mY2);_.Hpr=_.e3(_.DP);var yXZ;var w1m;var elK;var n_K=function(){return _.c.apply(this,arguments)||this};
_.J(n_K,_.c);_.e([_.Y(),_.n("design:type",Object)],n_K.prototype,"data",void 0);_.e([_.Ry({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],n_K);
_.w(n_K,"yt-survey-answer-card-renderer",function(){if(elK===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;w1m===void 0&&(w1m=document.createElement("template"));var a=w1m;h.call(v,a.content.cloneNode(!0),D.content.firstChild);elK=D}D=elK;return D},{mode:2});var OpI;var KVK;var vn=function(){return _.c.apply(this,arguments)||this};
_.J(vn,_.c);_.V=vn.prototype;_.V.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.V.selectedItemChanged=function(D){_.zU(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[D.feedbackToken||""]}])};
_.V.surveyAnswerCardRendererClicked=function(D){if(D.target&&_.k(D.model.item,q5b)){var v=D.target;D=_.k(D.model.item,q5b);D.onTapCommand?_.ZD(v,[D.onTapCommand],v):this.data.onTapCommand&&_.ZD(v,[this.data.onTapCommand],v);this.selectedItemChanged(D)}};
_.V.checkIsCancellationStyle=function(D){return D==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.V.updateSelectedItemFromBinding=function(D){this.selectedItem=D.detail.value};
vn.prototype.onSelectedItemChanged=vn.prototype.onSelectedItemChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vn.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],vn.prototype,"selectedItem",void 0);_.e([_.Y({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.n("design:type",Boolean)],vn.prototype,"isCancellationStyle",void 0);
_.e([_.Ni("selectedItem"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vn.prototype,"onSelectedItemChanged",null);_.e([_.Ry({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],vn);
_.w(vn,"yt-survey-flow-step-renderer",function(){if(KVK===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;OpI===void 0&&(OpI=document.createElement("template"));var a=OpI;h.call(v,a.content.cloneNode(!0),D.content.firstChild);KVK=D}D=KVK;return D},{mode:2});var ha=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return D};
_.J(ha,_.c);ha.prototype.handleSurveyFlowStepOptionChanged=function(D){this.ytdReduxBehavior.dispatch(_.oG({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:D}));_.zU(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],ha.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],ha.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ha.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],ha);
_.w(ha,"ytd-survey-flow-step-renderer",function(){if(yXZ!==void 0)return yXZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yXZ=D},{mode:1});_.WVr=_.H(function(D){var v=D.data;var h=D.hideDivider;var a=D.isChannelInfoCard;D={};return _.F("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.F("div",{class:_.S3("yt-profile-identity-info-view-model__frame",(D["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!v().channelBanner},D))},_.F(TfU,{profileIdentityInfoData:v}),_.F("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.F("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2})),_.F(Rlr,{profileIdentityInfoData:v})),_.F(_.z,{cond:function(){return v().channelDescription},
then:function(Q){var G={};return _.F("div",{class:_.S3((G["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(a==null||!a())},G["yt-profile-identity-info-view-model__channel-description"]=function(){return!(a==null?0:a())},G))},Q)}}),_.F(ipr,{profileIdentityInfoData:v}),_.F(_.z,{cond:function(){return!(h==null?0:h())},
then:function(){return _.F("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Ng");
_.WVr.idomCompat=!0;var ipr=_.H(function(D){var v=D.profileIdentityInfoData;return _.F("div",{class:"yt-profile-identity-info-view-model__buttons"},_.F(_.Xd,{each:function(){return v().subscribeButton?[v().subscribeButton,v().channelAccess]:[v().channelAccess]}},function(h){return _.F("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.F("div",{class:"yt-profile-identity-info-view-model--button"},_.F(_.c4,{data:function(){return h}},{buttonViewModel:_.s$,
subscribeButtonViewModel:_.Q8})))}))},"Og"),Rlr=_.H(function(D){var v=D.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__trio"},_.F("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.F(tj$,{profileIdentityInfoData:v}),_.F(_.c4,{data:function(){return v().threeDotMenu}},{buttonViewModel:_.s$})),_.F(rXU,{profileIdentityInfoData:v}))},"Pg"),tj$=_.H(function(D){var v=D.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.F("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return v().channelDisplayName}),_.F(_.z,{cond:function(){return v().verifiedOrOacBadge},
then:function(h){return _.F("div",{class:"yt-profile-identity-info-view-model__badge"},_.F(_.PX,{data:function(){return{thumbnails:[{url:h().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Qg"),TfU=_.H(function(D){var v=D.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.F(_.c4,{data:function(){var h=v().channelBanner;if(h)return{imageBannerViewModel:{image:h.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(h){return _.F("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.F(_.Cd,{data:h.data,
isPositionRelative:!0}))}}))},"Rg"),rXU=_.H(function(D){var v=D.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__metadata"},_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.F("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return v().channelHandle}),_.F(_.z,{cond:function(){return v().channelPronouns&&v().channelHandle},
then:function(){return _.F("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.F("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return v().channelPronouns})),_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return v().leftOfBulletInfo}),_.F(_.z,{cond:function(){return v().leftOfBulletInfo&&v().rightOfBulletInfo},
then:function(){return _.F("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return v().rightOfBulletInfo})))},"Sg");var uBr;var a$=function(){return _.c.apply(this,arguments)||this};
_.J(a$,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],a$.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],a$.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],a$);
_.w(a$,"ytd-channel-history-renderer",function(){if(uBr!==void 0)return uBr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uBr=D},{mode:1});var DbK;var vXK=function(){return _.c.apply(this,arguments)||this};
_.J(vXK,_.c);_.e([_.Y(),_.n("design:type",Object)],vXK.prototype,"data",void 0);_.e([_.m({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],vXK);
_.w(vXK,"ytd-feature-enablement-info-renderer",function(){if(DbK!==void 0)return DbK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DbK=D},{mode:1});var hs2;var aOb;var $S=function(){var D=_.c.apply(this,arguments)||this;D.textBoxMaxLength=_.g("enable_tvod_campaign_code_integration")?15:12;return D};
_.J($S,_.c);_.V=$S.prototype;_.V.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.V.onSubmit=function(){var D=this.data.serviceEndpoint,v=_.k(D,_.ai);v&&D&&(v.couponCode=this.userInput,_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}}))};
_.V.validate=function(){var D=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=D&&!this.data.errorMessage;this.showErrorMessage=D&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.g("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.V.computeStyle=function(D){return D};
_.V.computeShowValidationBelowInput=function(D){return D!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.V.updateUserInputFromBinding=function(D){this.userInput=D.currentTarget.value};
_.V.updateShowErrorMessageFromBinding=function(D){this.showErrorMessage=D.detail.value};
_.GT.Object.defineProperties($S.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
$S.prototype.dataChanged=$S.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$S.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],$S.prototype,"userInput",void 0);_.e([_.Y(),_.n("design:type",Boolean)],$S.prototype,"disableApplyButton",void 0);_.e([_.Y(),_.n("design:type",Boolean)],$S.prototype,"hideApplyButton",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],$S.prototype,"hideErrorMessage",void 0);_.e([_.Y(),_.n("design:type",Boolean)],$S.prototype,"showTick",void 0);_.e([_.Y(),_.n("design:type",Boolean)],$S.prototype,"showErrorMessage",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],$S.prototype,"couponStyle",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.n("design:type",Boolean)],$S.prototype,"showValidationBelowInput",void 0);_.e([_.Y(),_.n("design:type",Object)],$S.prototype,"textBoxMaxLength",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$S.prototype,"dataChanged",null);
_.e([_.N("showTick","showErrorMessage","userInput"),_.n("design:type",String),_.n("design:paramtypes",[])],$S.prototype,"validationState",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],$S);
_.w($S,"ytd-ypc-coupon-renderer",function(){if(aOb!==void 0)return aOb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return aOb=D},{mode:1});var Ql=function(){return _.c.apply(this,arguments)||this};
_.J(Ql,_.c);Ql.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"}}}};
Ql.prototype.computeStyle=function(D){return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ql.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],Ql.prototype,"buttonStyle",void 0);_.e([_.m({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Ql);
_.w(Ql,"ytd-flow-bottom-bar-renderer",function(){if(hs2!==void 0)return hs2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return hs2=D},{mode:1});var $bs;var QM$;var GRU;var G9=function(){return _.c.apply(this,arguments)||this};
_.J(G9,_.c);G9.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
G9.prototype.focus=function(D){this.title&&_.v1(this.title,D)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],G9.prototype,"data",void 0);_.e([_.Br("#title"),_.n("design:type",HTMLElement)],G9.prototype,"title",void 0);_.e([_.m({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],G9);
_.w(G9,"ytd-flow-top-bar-renderer",function(){if(GRU!==void 0)return GRU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return GRU=D},{mode:1});var VgI;var PMK;var xbK;var Vl=function(){return _.c.apply(this,arguments)||this};
_.J(Vl,_.c);Vl.prototype.freeTextValueChanged=function(){_.zU(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Vl.prototype.updateFreeTextValueFromBinding=function(D){this.freeTextValue=D.detail.value};
_.GT.Object.defineProperties(Vl.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(v=(D=this.data)==null?void 0:D.responseMaxLength)!=null?v:500,a;return((a=this.freeTextValue)!=null?a:"").length>=h?"maxed-out":""}}});
Vl.prototype.freeTextValueChanged=Vl.prototype.freeTextValueChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Vl.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],Vl.prototype,"freeTextValue",void 0);_.e([_.Br("#user-input"),_.n("design:type",HTMLTextAreaElement)],Vl.prototype,"input",void 0);
_.e([_.N("freeTextValue"),_.n("design:type",Object),_.n("design:paramtypes",[])],Vl.prototype,"characterLimitClass",null);_.e([_.Ni("freeTextValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Vl.prototype,"freeTextValueChanged",null);_.e([_.Ry({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Vl);
_.w(Vl,"yt-free-text-input-flow-step-renderer",function(){if(xbK===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;PMK===void 0&&(PMK=document.createElement("template"));var a=PMK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);xbK=D}D=xbK;return D},{mode:2});var Pn=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return D};
_.J(Pn,_.c);Pn.prototype.handleFreeTextFlowStepInputChanged=function(D){_.zU(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Pn.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Pn.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Pn.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Pn);
_.w(Pn,"ytd-free-text-input-flow-step-renderer",function(){if(VgI!==void 0)return VgI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return VgI=D},{mode:1});var MgZ;var fOC;var CMS=function(){return _.c.apply(this,arguments)||this};
_.J(CMS,_.c);_.e([_.Y(),_.n("design:type",Object)],CMS.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],CMS);
_.w(CMS,"ytd-metadata-line-renderer",function(){if(fOC!==void 0)return fOC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fOC=D},{mode:1});var xS=function(){return _.c.apply(this,arguments)||this};
_.J(xS,_.c);xS.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xS.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],xS.prototype,"isMasthead",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],xS);
_.w(xS,"ytd-media-product-renderer",function(){if(MgZ!==void 0)return MgZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return MgZ=D},{mode:1});var oXX;var Me=function(){return _.c.apply(this,arguments)||this};
_.J(Me,_.c);Me.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Me.prototype.onBillboardImageLoaded=function(){_.F1(this.hostElement,"yt-refit")};
Me.prototype.onBillboardImageLoaded=Me.prototype.onBillboardImageLoaded;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Me.prototype,"data",void 0);_.e([_.Br("#billboardImage"),_.n("design:type",Object)],Me.prototype,"billboardImage",void 0);_.e([_.lc("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Me.prototype,"onBillboardImageLoaded",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Me);
_.w(Me,"ytd-billboard-masthead-renderer",function(){if(oXX!==void 0)return oXX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return oXX=D},{mode:1});var FKU;var fM=function(){var D=_.c.apply(this,arguments)||this;D.smallSize=!1;return D};
_.J(fM,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],fM.prototype,"ytComponentBehaviorType",void 0);_.e([_.Y(),_.n("design:type",Object)],fM.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fM.prototype,"smallSize",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],fM);
_.w(fM,"ytd-bullet-formatted-string",function(){if(FKU!==void 0)return FKU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return FKU=D},{mode:1});var zsb;var CM=function(){return _.c.apply(this,arguments)||this};
_.J(CM,_.c);CM.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],CM.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],CM);
_.w(CM,"ytd-offer-detail-renderer",function(){if(zsb!==void 0)return zsb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return zsb=D},{mode:1});var Ubm;var o$=function(){return _.c.apply(this,arguments)||this};
_.J(o$,_.c);o$.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],o$.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],o$);
_.w(o$,"ytd-offer-detail-step-renderer",function(){if(Ubm!==void 0)return Ubm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Ubm=D},{mode:1});var LK$;var Fl=function(){var D=_.c.apply(this,arguments)||this;D.isInOfferModule=!1;return D};
_.J(Fl,_.c);_.V=Fl.prototype;_.V.computeHasEndpoint=function(){var D;return!((D=this.data)==null||!D.onClickCommand)};
_.V.dataChanged=function(){var D;if((D=this.data)==null?0:D.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.V.detached=function(){var D;if((D=this.data)==null?0:D.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.V.handleClickEvent=function(){var D;if((D=this.data)==null?0:D.onClickCommand){var v;this.componentBehavior.resolveCommand((v=this.data)==null?void 0:v.onClickCommand)}};
_.V.onContentKeyDown=function(D){D.key==="Enter"?this.handleClickEvent(D):D.key===" "&&D.preventDefault()};
_.V.onContentKeyUp=function(D){D.key===" "&&this.handleClickEvent(D)};
Fl.prototype.dataChanged=Fl.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Fl.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Fl.prototype,"data",void 0);_.e([_.Y({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Fl.prototype,"hasEndpoint",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Fl.prototype,"isInOfferModule",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fl.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Fl);
_.w(Fl,"ytd-channel-masthead-renderer",function(){if(LK$!==void 0)return LK$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return LK$=D},{mode:1});var Z9m;var z9=function(){var D=_.c.apply(this,arguments)||this;D.thumbnailObjectFit="CONTAIN";D.thumbnailObjectPosition="LEFT";D.isExpanded=!1;return D};
_.J(z9,_.c);_.V=z9.prototype;_.V.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.V.dataChanged=function(){this.resetStates()};
_.V.computeisTapOnOfferInfoContainerEnabled=function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.V.onExpandBtnClick=function(){var D,v=_.k((D=this.data)==null?void 0:D.showMoreButtonRenderer,bpZ);v&&_.mj(_.c8(),v.trackingParams);this.isExpanded=!this.isExpanded};
_.V.onOfferInfoClick=function(D){this.isTapOnOfferInfoContainerEnabled&&(_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.VL(_.Pr(D)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.V.onBottomBarClick=function(){this.executeTapCommand()};
_.V.executeTapCommand=function(){var D,v=(D=this.data)==null?void 0:D.tapCommand;v&&this.ytComponentBehavior.resolveCommand(v)};
_.V.resetStates=function(){this.isExpanded=!1};
_.GT.Object.defineProperties(z9.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var D=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),v,h,a;return((v=this.data)==null?void 0:v.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&D&&!!((h=this.data)==null?0:(a=h.benefits)==null?0:a.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((v=_.k((D=this.data)==null?void 0:D.showMoreButtonRenderer,bpZ))==null?void 0:v.showMoreButtonTitle)||((h=this.data)==null?void 0:h.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((v=_.k((D=this.data)==null?void 0:D.showMoreButtonRenderer,bpZ))==null?void 0:v.showLessButtonTitle)||((h=this.data)==null?void 0:h.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var D;return(D=this.showLessButtonTitle)!=null?D:""}var v;return(v=this.showMoreButtonTitle)!=null?v:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((v=this.data)==null?0:v.footerTitle)||((h=this.data)==null?0:h.footerSubtitle))}}});
z9.prototype.dataChanged=z9.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",String)],z9.prototype,"thumbnailObjectFit",void 0);
_.e([_.Y(),_.n("design:type",String)],z9.prototype,"thumbnailObjectPosition",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.n("design:type",Boolean)],z9.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.e([_.Y(),_.n("design:type",Object)],z9.prototype,"isExpanded",void 0);_.e([_.Y(),_.n("design:type",Object)],z9.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.footerIcon)"}),_.n("design:type",String)],z9.prototype,"icon",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z9.prototype,"dataChanged",null);_.e([_.N("data.thumbnail"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z9.prototype,"hasThumbnail",null);_.e([_.N("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z9.prototype,"enableExpandButton",null);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z9.prototype,"enableOfferContentIcon",null);_.e([_.N("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.n("design:type",Object),_.n("design:paramtypes",[])],z9.prototype,"showMoreButtonTitle",null);_.e([_.N("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.n("design:type",Object),_.n("design:paramtypes",[])],z9.prototype,"showLessButtonTitle",null);
_.e([_.N("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.n("design:type",String),_.n("design:paramtypes",[])],z9.prototype,"expandedBtnText",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z9.prototype,"enableBottomBar",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],z9);
_.w(z9,"ytd-offer-card-renderer",function(){if(Z9m!==void 0)return Z9m;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Z9m=D},{mode:1});var EXX;var U3=function(){return _.c.apply(this,arguments)||this};
_.J(U3,_.c);U3.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"}}}};
U3.prototype.onClick=function(D){if(!_.Gf(D.composedPath()||[],this.hostElement,["A".toString()])){var v,h;if((D=(h=_.k((v=this.data)==null?void 0:v.actionButton,_.Vi))==null?void 0:h.command)&&!this.ytComponentBehavior.resolveCommand(D)){var a;(a=_.c8())==null||a.clickCommand(D);_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})}}};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],U3.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],U3.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],U3);
_.w(U3,"ytd-offer-content-renderer",function(){if(EXX!==void 0)return EXX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return EXX=D},{mode:1});var IO2;var LM=function(){return _.c.apply(this,arguments)||this};
_.J(LM,_.c);LM.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.GT.Object.defineProperties(LM.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.title)||!((v=this.data)==null||!v.description)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],LM.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],LM.prototype,"hasHeaderData",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],LM);
_.w(LM,"ytd-offer-section-renderer",function(){if(IO2!==void 0)return IO2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return IO2=D},{mode:1});var gX$;var ZP=function(){return _.c.apply(this,arguments)||this};
_.J(ZP,_.c);
ZP.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ZP.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],ZP);
_.w(ZP,"ytd-offer-selection-step-renderer",function(){if(gX$!==void 0)return gX$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return gX$=D},{mode:1});var kRm;var E3=function(){return _.c.apply(this,arguments)||this};
_.J(E3,_.c);E3.prototype.computeStyle=function(D){return D};
E3.prototype.computeImageWidth=function(D){return D==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.e([_.Y({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.n("design:type",String)],E3.prototype,"containerStyle",void 0);_.e([_.Y({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.n("design:type",String)],E3.prototype,"imageWidth",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],E3.prototype,"data",void 0);
_.e([_.m({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],E3);
_.w(E3,"ytd-confirmation-masthead-renderer",function(){if(kRm!==void 0)return kRm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kRm=D},{mode:1});var SR3;var I$=function(){return _.c.apply(this,arguments)||this};
_.J(I$,_.c);I$.prototype.computeStyle=function(D){return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],I$.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.n("design:type",String)],I$.prototype,"containerStyle",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],I$);
_.w(I$,"ytd-purchase-complete-detail-renderer",function(){if(SR3!==void 0)return SR3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return SR3=D},{mode:1});var JHr;var gH=function(){var D=_.c.apply(this,arguments)||this;D.scriptsAppended=!1;return D};
_.J(gH,_.c);gH.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"}}}};
gH.prototype.onDataChanged=function(){var D=this.get("data.gtmId");D&&(_.vt(D,_.eA("GL","")),this.setupConversionTracking())};
gH.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("noscript");D.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(D);this.scriptsAppended=!0}};
gH.prototype.onDataChanged=gH.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gH.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],gH.prototype,"scriptsAppended",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gH.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],gH);
_.w(gH,"ytd-purchase-complete-step-renderer",function(){if(JHr!==void 0)return JHr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return JHr=D},{mode:1});var paZ;var kS=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(kS,_.c);kS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kS.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kS.prototype,"darkerDarkTheme",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],kS);
_.w(kS,"ytd-ypc-transaction-error-message-renderer",function(){if(paZ!==void 0)return paZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return paZ=D},{mode:1});var lOZ;var Nkm;var SS=function(){var D=_.c.apply(this,arguments)||this;D.handlePhoneVerificationSuccess=function(v){if(D.isValidPhoneVerificationCompletionMessageEvent(v)){var h;((h=D.data)==null?0:h.nextStepCommand)&&D.ytComponentBehavior.resolveCommand(D.data.nextStepCommand)}};
return D};
_.J(SS,_.c);SS.prototype.isValidPhoneVerificationCompletionMessageEvent=function(D){if(D.data!=="yt-phone-verification-complete")return!1;D=_.$d(D.origin);return D!==null&&D.includes("youtube.com")};
SS.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
SS.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],SS.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],SS.prototype,"data",void 0);_.e([_.Ry({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],SS);
_.w(SS,"yt-feature-enablement-soft-entry-renderer",function(){if(Nkm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;lOZ===void 0&&(lOZ=document.createElement("template"));var a=lOZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Nkm=D}D=Nkm;return D},{mode:1});var YR2;var Bk2;var cHK;var Xam;var AHm=function(){return _.c.apply(this,arguments)||this};
_.J(AHm,_.c);_.e([_.Y(),_.n("design:type",Object)],AHm.prototype,"data",void 0);_.e([_.Ry({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],AHm);
_.w(AHm,"yt-benefits-item-renderer",function(){if(Xam===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;cHK===void 0&&(cHK=document.createElement("template"));var a=cHK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Xam=D}D=Xam;return D},{mode:2});var qRr;var b9C;var Ja=function(){return _.c.apply(this,arguments)||this};
_.J(Ja,_.c);Ja.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ja.prototype.computeisWithoutPadding=function(){var D;return((D=this.data)==null?void 0:D.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ja.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.n("design:type",Boolean)],Ja.prototype,"isWithoutPadding",void 0);_.e([_.Ry({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Ja);
_.w(Ja,"yt-benefits-section-renderer",function(){if(b9C===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;qRr===void 0&&(qRr=document.createElement("template"));var a=qRr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);b9C=D}D=b9C;return D},{mode:2});var pM=function(){return _.c.apply(this,arguments)||this};
_.J(pM,_.c);pM.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
pM.prototype.computeisUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pM.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.n("design:type",Boolean)],pM.prototype,"isUsingLargeWidth",void 0);_.e([_.Ry({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],pM);
_.w(pM,"yt-benefits-flow-step-renderer",function(){if(Bk2===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;YR2===void 0&&(YR2=document.createElement("template"));var a=YR2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Bk2=D}D=Bk2;return D},{mode:2});var dbm;var jMX;var lV=function(){return _.c.apply(this,arguments)||this};
_.J(lV,_.c);lV.prototype.checkIsUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.e([_.Y(),_.n("design:type",Object)],lV.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.n("design:type",Boolean)],lV.prototype,"isUsingLargeWidth",void 0);_.e([_.Ry({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],lV);
_.w(lV,"yt-confirmation-flow-step-renderer",function(){if(jMX===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;dbm===void 0&&(dbm=document.createElement("template"));var a=dbm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);jMX=D}D=jMX;return D},{mode:2});var sMC;var mbZ;var H9U=function(){return _.c.apply(this,arguments)||this};
_.J(H9U,_.c);_.e([_.Y(),_.n("design:type",Object)],H9U.prototype,"data",void 0);_.e([_.Ry({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],H9U);
_.w(H9U,"yt-info-flow-step-renderer",function(){if(mbZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;sMC===void 0&&(sMC=document.createElement("template"));var a=sMC;h.call(v,a.content.cloneNode(!0),D.content.firstChild);mbZ=D}D=mbZ;return D},{mode:2});var yHr;var wam;var esK=function(){return _.c.apply(this,arguments)||this};
_.J(esK,_.c);_.e([_.Y(),_.n("design:type",Object)],esK.prototype,"data",void 0);_.e([_.Ry({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],esK);
_.w(esK,"yt-info-list-flow-step-renderer",function(){if(wam===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;yHr===void 0&&(yHr=document.createElement("template"));var a=yHr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);wam=D}D=wam;return D},{mode:2});var nXU=_.H(function(D){var v=D.data;return _.F("styled-text-view-model",{class:_.S3("ytStyledTextViewModelHost",function(){return ndZ(v().fontAttributes)},function(){return exS(v().color)})},_.F(_.IY,{text:function(){return v().text},
ariaLabel:function(){var h,a,Q;return(Q=(h=v().accessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label)!=null?Q:""}}))},"Tg");
nXU.idomCompat=!0;var O9K=_.H(function(D){var v=function(){var Q,G,x,f;return(f=(x=(Q=D.alt)==null?void 0:Q.call(D))!=null?x:(G=D.data().accessibilityData)==null?void 0:G.label)!=null?f:""},h=function(){return D.data().imageWidth},a=function(){return D.data().imageHeight};
return _.F("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.F(_.z,{cond:function(){var Q=D.data();if(Q){var G,x,f;var C=((G=_.xd().resolve(_.PV(_.$5)))==null?0:G())?(x=Q.imageDark)!=null?x:Q.imageLight:(f=Q.imageLight)!=null?f:Q.imageDark}else C=void 0;return C},
then:function(Q){return _.F(_.PX,Object.assign({},D,{data:Q,alt:v,targetWidth:h,targetHeight:a,preserveHeight:!0,preserveWidth:!0}))}}))},"Ug");
O9K.idomCompat=!0;var Ne=_.H(function(D){var v=D.data;D=_.MK(function(){return v().slots},[]);
var h=_.MK(function(){return v().layoutProperties},{}),a=_.xd().resolve(_.Gh);
return _.F("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:sZS(h,a)},_.F(_.Xd,{each:D,keyBy:"INDEX"},function(Q){return _.F("div",{class:"ytContainerLayoutViewModelSlot",style:sZS(function(){return Q().layoutProperties},a)},_.F(_.c4,{data:function(){return Q().contents}},{containerLayoutViewModel:Ne,
badgeViewModel:_.c$,buttonViewModel:_.s$,styledTextViewModel:nXU,contentPreviewImageViewModel:function(G){return _.F(_.XE,{data:G.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(G){return _.F(O9K,{data:G.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Vg");
Ne.idomCompat=!0;var KK3=_.H(function(D){var v=D.data;var h=D.stateFns;var a=function(){var U=v(),L=U.productId;return!(!U.clearGroupId&&!L)},Q=function(){var U=v(),L=U.clearGroupId;
return(U=U.productId)?h().isProductSelected(U):L?h().getSelectedProductByGroupId(L)==null:!1},G=function(U){var L=v(),Z=L.clearGroupId;
if(L=L.productId)h().onProductSelected(L),U==null||U.forEach(function(E){_.r4(E)});
else if(Z)h().onClearGroupSelected(Z)},x=function(){var U=v(),L=U.clearGroupId;
if(U=U.productId){var Z;return"group:"+(((Z=h().getProductById(U))==null?void 0:Z.groupId)||"")}return L?"group:"+L:""},f=_.MK(function(){return v().header},[]),C=_.MK(function(){return v().body},[]);
return _.F("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.F(_.z,{cond:function(){return f().length>0||a()},
then:function(){return _.F("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.F("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.F(_.c4,{data:f},{containerLayoutViewModel:function(U){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(Ne,{data:U.data}))},
styledTextViewModel:function(U){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(nXU,{data:U.data}))}})),_.F(_.z,{cond:a,
then:function(){return _.F("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.F(_.Pe,{checked:Q,name:x,onChange:function(){G(v().onSelect)}}))}}))}}),_.F(_.z,{cond:function(){return C().length>0},
then:function(){return _.F("div",null,_.F(_.c4,{data:C},{containerLayoutViewModel:function(U){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(Ne,{data:U.data}))}}))}}))},"Wg");
KK3.idomCompat=!0;var Tk2=_.H(function(D){var v=D.data;var h=D.stateFns;return _.F("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.F(_.z,{cond:function(){return v().banner},
then:function(a){return _.F("div",{class:"ytPdpCardViewModelBanner"},_.F(_.IY,{text:a}))}}),_.F(_.c4,{data:function(){return v().sections}},{pdpCardSectionViewModel:function(a){a=a.data;
var Q={};return _.F("div",{class:_.S3("ytPdpCardViewModelSectionContainer",(Q.ytPdpCardViewModelShowDividers=function(){return v().showDividers},Q))},_.F(KK3,{data:a,
stateFns:h}))}}))},"Xg");
Tk2.idomCompat=!0;var RsS=_.H(function(D){var v=D.data;var h=D.isOverlay;D={};return _.F("pdp-masthead-view-model",{class:_.S3("ytPdpMastheadViewModelHost",(D.ytPdpMastheadViewModelIsOverlay=h,D))},_.F(_.c4,{data:function(){return v().image}},{contentPreviewImageViewModel:_.XE,
themedImageViewModel:function(a){return _.F(O9K,{data:a.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.F(_.z,{cond:function(){return v().title},
then:function(a){return _.F("h1",{class:"ytPdpMastheadViewModelHeading"},_.F(_.IY,{text:a,isOverlay:h}))}}),_.F(_.Xd,{each:function(){var a;
return(a=v().finePrint)!=null?a:[]}},function(a){return _.F("div",{class:"ytPdpMastheadViewModelFinePrint"},_.F(_.IY,{text:a,
isOverlay:h}))}))},"Yg");
RsS.idomCompat=!0;var i9S=_.H(function(D){var v=D.data;var h=D.stateFns;var a=function(){return"pdp-pricing-group-selector-"+v().pricingGroupAttributeIds},Q=_.MK(function(){return v().pricingGroupSelectorSectionHeader});
return _.F("pdp-pricing-group-selector-view-model",null,_.F(_.z,{cond:function(){return!!Q()},
then:function(){return _.F(_.c4,{data:Q},{sectionHeaderViewModel:function(G){G=G.data;var x={};return _.F("div",{class:_.S3("ytPdpPricingGroupSelectorViewModelSectionHeader",(x.ytPdpPricingGroupSelectorViewModelFullBleed=!0,x.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,x))},_.F(_.HS,{data:G}))}})}}),_.F("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.F(_.Xd,{each:function(){var G=h().getSelectedProductByGroupId(v().groupId);
if(!G)return _.H1(Error("Tj`"+v().groupId)),[];var x,f=(x=v().pricingGroupAttributeIds)!=null?x:[],C;if((C=G.pricingGroups)==null||!C.length||!f.length)return[];x=G.pricingGroups.filter(function(E){return f.length?E.pricingGroupAttributes.every(function(I){return f.includes(I)}):!1});
G=[];if(f.length>0){x=[].concat(_.j_(x));C=_.P(f);for(var U=C.next(),L={};!U.done;L={targetAttrId:void 0},U=C.next())L.targetAttrId=U.value,U=x.findIndex(function(E){return function(I){return I.pricingGroupAttributes.includes(E.targetAttrId)}}(L)),U!==-1&&(G.push(x[U]),x.splice(U,1))}var Z=h().getSelectedPricingGroupAttributesByGroupId(v().groupId);
return G.map(function(E){var I=!1;Z&&E.pricingGroupAttributes&&(I=K5(E.pricingGroupAttributes,Z));return{pricingGroup:E,isSelected:I}})},
keyBy:function(G){return G.pricingGroup.pricingGroupId}},function(G){return _.F("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.F("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.F(_.c4,{data:function(){return G().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Ne})),_.F("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.F(_.Pe,{checked:function(){return G().isSelected},
name:a,onClick:function(){var x=G().pricingGroup;h().onPricingGroupSelected(x.pricingGroupId);if(x=_.Rq(x.onSelectPricingGroup)){var f;(f=_.xd().resolve(_.fx))==null||f.resolveCommand(x)}}})))})))},"Zg");
i9S.idomCompat=!0;var WK2=_.H(function(D){var v=D.data;var h=D.stateFns;var a=function(){var x=h().getSelectedPricingOptions().map(function(U){return U.pricingOptionId}),f=h().getSelectedProductByGroupId(v().groupId);
if(!f)return _.H1(Error("Uj`"+v().groupId)),[];var C=h().getSelectedPricingGroupAttributesByGroupId(v().groupId);return RxK(f.pricingOptions,C,x)},Q=_.MK(function(){return v().pricingOptionSelectorSectionHeader}),G=function(){return a().length>1};
return _.F("pdp-pricing-option-selector-view-model",null,_.F(_.z,{cond:function(){return!!Q()&&G()},
then:function(){return _.F(_.c4,{data:Q},{sectionHeaderViewModel:function(x){x=x.data;var f={};return _.F("div",{class:_.S3("ytPdpPricingOptionSelectorViewModelSectionHeader",(f.ytPdpPricingOptionSelectorViewModelFullBleed=!0,f.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,f))},_.F(_.HS,{data:x}))}})}}),_.F(_.z,{cond:G,
then:function(){return _.F("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.F(_.Xd,{each:a,keyBy:"INDEX"},function(x){return _.F("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.F("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.F(_.c4,{data:function(){return x().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Ne})),_.F("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.F(_.Pe,{checked:function(){return x().isSelected},
onClick:function(){h().onPricingOptionSelected(x().pricingOption.pricingOptionId);var f=x().pricingOption.onSelectPricingOption;if(f=_.Rq(f)){var C;(C=_.xd().resolve(_.fx))==null||C.resolveCommand(f)}}})))}))}}))},"$g");
WK2.idomCompat=!0;var tgX=_.H(function(D){var v=D.data;var h=D.stateFns;return _.F("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.F(_.c4,{data:function(){var a,Q;return(Q=(a=h().getSelectedPricingOptions()[0])==null?void 0:a.primaryButton)!=null?Q:v().emptyStateButton}},{buttonViewModel:_.s$}))},"ah");
tgX.idomCompat=!0;var rHr=_.H(function(D){var v=D.stateFns;return _.F("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.F(_.c4,{data:function(){return v().getSelectedPricingOptions().flatMap(function(h){return h.summaryLines}).filter(function(h){return!!h})}},{containerLayoutViewModel:function(h){return _.F("div",{class:"ytPdpSummaryViewModelLineItem"},_.F(Ne,{data:h.data}))}}))},"bh");
rHr.idomCompat=!0;var uLC=_.H(function(D){function v(A){var d=x();_.xt(_.sy("pdpStateEntity",d,{key:d,selectedPricingOptions:A}))}
var h=D.data;var a=D.internalScrolling;var Q=D.stateFnsForTesting;var G=_.MK(function(){return h().allProducts},[]),x=_.MK(function(){return h().pdpStateEntityKey},""),f=_.l7(ixr,x),C=_.SM(function(){_.sY(!0);
var A;return(A=Q==null?void 0:Q())!=null?A:tOs(f,G,v)},void 0,"ryrrHe"),U=_.MK(function(){return h().body},[]),L=_.MK(function(){return h().columnBreakHints},[]),Z=function(){return h().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},E=function(){return Z()||h().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},I=_.SM(function(){var A=_.i7(h().background),d;
if(A==null?0:(d=A.sources)==null?0:d.length){var b=b===void 0?!0:b;A=_.vBL(void 0,A.sources,void 0,b,b?1E3:void 0,b?void 0:1E3)}else A=null;return A},void 0,"UVFJic");
D=_.NL({"--pdp-view-model-background":function(){return I()?"url("+I()+")":void 0}});
var S={};a=_.S3("ytPdpViewModelHost",(S.ytPdpViewModelHasBackground=function(){return E()||!!I()},S.ytPdpViewModelHasDarkBackground=E,S.ytPdpViewModelHasScrim=Z,S.ytPdpViewModelInternalScrolling=_.MK(a,!1),S));
var B=function(A){var d={};return _.S3("ytPdpViewModelItem",(d.ytPdpViewModelFullBleed=function(){return rOX(A())==="dividerViewModel"||rOX(A())==="sectionHeaderViewModel"},d.ytPdpViewModelNoVerticalPadding=function(){return rOX(A())==="sectionHeaderViewModel"},d))};
_.jA(function(){var A=h().onStartCommand;if(A&&(A=_.Rq(A))){var d;(d=_.xd().resolve(_.fx))==null||d.resolveCommand(A)}});
return _.F("pdp-view-model",{class:a,style:D},_.F("div",{class:"ytPdpViewModelColumnContainer"},_.F(_.Xd,{each:function(){return uHZ(U(),L())},
keyBy:"INDEX"},function(A){return _.F("div",{class:"ytPdpViewModelColumn"},_.F(_.c4,{data:A},{containerLayoutViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(Ne,{data:d}))},
dividerViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(_.T5$,{data:d}))},
pdpCardViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(Tk2,{data:d,
stateFns:C}))},
pdpMastheadViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(RsS,{data:d,
isOverlay:E}))},
pdpPricingGroupSelectorViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(i9S,{data:d,
stateFns:C}))},
pdpPricingOptionSelectorViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(WK2,{data:d,
stateFns:C}))},
pdpPrimaryButtonViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(tgX,{data:d,
stateFns:C}))},
pdpSummaryViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(rHr,{data:d,
stateFns:C}))},
sectionHeaderViewModel:function(d,b){d=d.data;return _.F("div",{class:B(function(){return A()[b()]})},_.F(_.HS,{data:d}))}}))})))},"ch");
uLC.idomCompat=!0;_.zh(uLC,"pdp-view-model",{props:{data:_.gj,stateFnsForTesting:_.C_,internalScrolling:_.C_}});var Dcb=_.H(function(D){var v=D.data;var h=D.className;var a=_.l7(_.v7,function(){return v().flowStateEntityKey});
return _.F("ytm-premium-purchase-button-renderer",{class:_.S3("ytPremiumPurchaseButtonRendererHost",h)},_.F(_.c4,{data:function(){var Q;return(Q=_.k(a(),vzS))==null?void 0:Q.primaryButtonOverride}},{buttonRenderer:function(Q){return _.F(_.gz,{data:Q.data,
className:h})},
buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,className:h})}}))},"dh");
Dcb.idomCompat=!0;var vR2=_.H(function(D){var v=D.data;D=D.className;var h=function(){return DH3(v().style)},a=_.S3("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",h),Q=_.S3("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",h);
return _.F("yt-flow-bottom-bar-renderer",{class:_.S3("yt-flow-bottom-bar-renderer",D,h)},_.F(_.c4,{data:function(){return v().secondaryButton}},{buttonRenderer:function(G){return _.F(_.gz,{data:G.data,
className:Q})},
buttonViewModel:function(G){return _.F(_.s$,{data:G.data,className:Q})},
premiumPurchaseButtonRenderer:function(G){return _.F(Dcb,{data:G.data,className:Q})}}),_.F(_.c4,{data:function(){return v().primaryButton}},{buttonRenderer:function(G){return _.F(_.gz,{data:G.data,
className:a})},
buttonViewModel:function(G){return _.F(_.s$,{data:G.data,className:a})},
premiumPurchaseButtonRenderer:function(G){return _.F(Dcb,{data:G.data,className:a})}}))},"eh");
vR2.idomCompat=!0;_.zh(vR2,"yt-flow-bottom-bar-renderer",{props:{data:_.gj,className:_.gj}});var hu2=_.H(function(D){var v=_.S3(D.className,"ytOfferSummaryRendererHost");return _.F("yt-offer-summary-renderer",{class:v},_.F("div",{class:"ytOfferSummaryRendererTextContainer"},_.F("div",{class:"ytOfferSummaryRendererEyebrowText"},_.F(_.IY,{text:function(){return D.data().eyebrowText}})),_.F("div",{class:"ytOfferSummaryRendererTitle"},_.F(_.IY,{text:function(){return D.data().title}})),_.F("div",{class:"ytOfferSummaryRendererSubtitle"},_.F(_.IY,{text:function(){return D.data().subtitle}})),_.F("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.F(_.Xd,{each:function(){var h;
return(h=D.data().featureListData)!=null?h:[]}},function(h){var a;
return _.F("div",{class:"ytOfferSummaryRendererFeatureList"},_.F(_.Y5,{icon:(a=h.icon)==null?void 0:a.iconType,active:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(h.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"}}}),_.F("div",{class:"ytOfferSummaryRendererFeatureListText"},_.F(_.IY,{text:h.text,
className:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.F("div",{class:"ytOfferSummaryRendererDescription"},_.F(_.IY,{text:function(){return D.data().description}}))))},"fh");_.zh(_.H(function(D){var v={};v=_.S3("ytOfferSummaryFlowStepRendererHost",(v.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=D.shouldDisableHeaderTopMargin,v));return _.F("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:v},_.F("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.F("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.F(_.IY,{text:function(){return D.data().header}})),_.F("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.F(_.IY,{text:function(){return D.data().subtitle}}))),_.F("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.F(_.c4,{data:function(){return D.data().offerSummary}},{offerSummaryRenderer:function(h){return _.F(hu2,{data:h.data,
className:D.flowClassName})}})))},"gh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.C_,
flowClassName:_.C_,flowStateEntityKey:_.C_,shouldDisableHeaderTopMargin:_.C_}});var aFd=_.H(function(D){var v=D.data;var h=D.className;var a=D.flowStateEntityKey;var Q=D.selectionStepStyle;D=_.Jd(function(C){var U=v(),L=a==null?void 0:a();C.target&&(C.stopPropagation(),C=L||"",L=_.v7(_.P8().getState(),C),U=Object.assign({},L,{premiumPurchaseFlowState:{selectedOptionId:U.optionId,primaryButtonOverride:U.primaryButtonOverride}}),_.P8().dispatch(_.Xe("flowStateEntity",C,U)));return!1});
var G=function(){return(a==null?void 0:a())||""},x=_.l7(_.v7,G);
_.jA(function(){var C=v(),U=G(),L=x();C.defaultSelected&&U!==""&&C.primaryButtonOverride&&hdb(C.optionId||"",U,C.primaryButtonOverride,L)});
var f={};return _.F("ytm-option-item-renderer",{"on:click":D,class:_.S3(h,"ytm-option-item-renderer",(f["ytm-option-item-renderer--lp2-style"]=function(){return(Q==null?void 0:Q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},f))},_.F("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.F("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var C=v(),U=G(),L=x();L=_.k(L,vzS);return(L?(L==null?void 0:L.selectedOptionId)||"":C.defaultSelected&&U!==""?(C==null?void 0:C.optionId)||"":"")===v().optionId},
name:("input"+_.iE(_.QP)).toString()})),_.F("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.F(_.c4,{data:function(){return v().titleBadge}},{badgeViewModel:function(C){return _.F(_.c$,{data:C.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.F(_.z,{cond:function(){return v().eyebrowText},
then:function(){return _.F("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.F(_.IY,{text:function(){return v().eyebrowText}}))}}),_.F("div",{class:"ytm-option-item-renderer__option-item-title"},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.F(_.IY,{text:function(){return v().subtitle}})),_.F(_.z,{cond:function(){return v().featureListData},
then:function(){return _.F("div",{class:"ytm-option-item-renderer__feature-list-data"},_.F(_.Xd,{each:function(){return v().featureListData||[]}},function(C){var U,L=(U=C.icon)==null?void 0:U.iconType;
a:switch(C.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":U="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":U="ytm-option-item-renderer__feature-list-icon-small";break a;default:U="ytm-option-item-renderer__feature-list-icon-default"}return _.F("div",{class:"ytm-option-item-renderer__feature-list"},_.F(_.Y5,{icon:L,className:U,active:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.F("div",{class:"ytm-option-item-renderer__feature-list-text"},_.F(_.IY,{text:C.text,
className:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.F("div",{class:"ytm-option-item-renderer__option-item-description"},_.F(_.IY,{text:function(){return v().description}}))))},"hh");var $cS=_.H(function(D){var v=D.data;var h=D.flowClassName;var a=D.flowStateEntityKey;var Q=D.selectionStepStyle;return _.F("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.F("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.F("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.F(_.IY,{text:function(){return v().title}}),_.F(_.c4,{data:function(){return v().titleBadge}},{badgeViewModel:function(G){return _.F(_.c$,{data:G.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.F(_.z,{cond:function(){return v().subtitle},
then:function(){return _.F("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.F(_.IY,{text:function(){return v().subtitle}}))}}),_.F(_.z,{cond:function(){return v().featureListData},
then:function(G){return _.F("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.F(_.Xd,{each:G},function(x){var f;return _.F("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.F(_.Y5,{icon:(f=x.icon)==null?void 0:f.iconType,active:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(x.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.F("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.F(_.IY,{text:x.text,
className:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.F(_.z,{cond:function(){return v().secondaryTitle},
then:function(){return _.F("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.F(_.IY,{text:function(){return v().secondaryTitle}}))}}),_.F(_.Xd,{each:function(){return v().sectionDisclaimers||[]}},function(G){return _.F("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.F(_.IY,{text:G}))})),_.F(_.c4,{data:function(){return v().optionItems}},{optionItemRenderer:function(G){return _.F("div",{class:"ytOptionSectionRendererOptionItem"},_.F(aFd,{data:G.data,
className:h,flowStateEntityKey:a,selectionStepStyle:Q}))}}),_.F(_.z,{cond:function(){return v().offerText},
then:function(){return _.F("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.F(_.IY,{text:function(){return v().offerText}}))}}))},"ih");
$cS.idomCompat=!0;var QrX=_.H(function(D){var v=D.data;var h=D.flowClassName;var a=D.flowStateEntityKey;D=D.isDesktop;var Q=function(){var U;return(U=v().flowStateEntityKey)!=null?U:a==null?void 0:a()},G=function(){return(Q==null?void 0:Q())||""},x=function(){return v().style},f=_.l7(_.v7,G);
_.jA(function(){var U=v(),L=G(),Z=f();!_.k(Z,vzS)&&U.noPreselect&&L!==""&&U.defaultButtonOverride&&hdb("default",L,U.defaultButtonOverride,Z)});
var C={};return _.F("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.S3("ytm-option-selection-flow-step-renderer",(C["ytm-option-selection-flow-step-renderer--desktop"]=D,C["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return v().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},C))},_.F("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"},
_.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.F(_.IY,{text:function(){return v().header}})),_.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.F(_.IY,{text:function(){return v().subtitle}}))),_.F(_.c4,{data:function(){return v().optionItems||[]}},{optionItemRenderer:function(U){return _.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.F(aFd,{data:U.data,
className:h,flowStateEntityKey:Q,selectionStepStyle:x}))},
optionSectionRenderer:function(U){return _.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.F($cS,{data:U.data,flowClassName:h,flowStateEntityKey:Q,selectionStepStyle:x}))}}))},"jh");
QrX.idomCompat=!0;_.zh(QrX,"yt-option-selection-flow-step-renderer",{props:{data:_.gj,flowClassName:_.gj,flowStateEntityKey:_.gj,isDesktop:_.gj}});_.YS=_.H(function(D){var v=_.fb(D,{type:1,disablePadding:!1,disablePrimaryButton:!1}),h=v.data,a=v.type;D=v.disablePadding;var Q=v.disablePrimaryButton,G=v.onClickPrimaryButton,x=function(){return h().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},f=function(){return{disabled:Q(),
state:Q()?"disabled":"active"}},C=function(){return h().leadingLabel||h().trailingLabel};
v={};return _.F("yt-panel-footer-view-model",{class:_.S3("yt-panel-footer-view-model",(v["yt-panel-footer-view-model--hide-divider"]=function(){return h().shouldHideDivider},v["yt-panel-footer-view-model--disable-padding"]=D,v))},_.F(_.z,{cond:C,
then:function(){var U={},L={};return _.F("div",{class:_.S3("yt-panel-footer-view-model__text-row",(U["yt-panel-footer-view-model--row-bottom-padding"]=function(){var Z=h();return!(!Z.leadingLabel&&!Z.trailingLabel||!Z.primaryButton&&!Z.secondaryButton)},U))},_.F(_.IY,{text:function(){return h().leadingLabel},
className:_.S3((L["yt-panel-footer-view-model--text-padding"]=C,L))}),_.F(_.IY,{text:function(){return h().trailingLabel}}))}}),_.F(_.z,{cond:x,
then:function(){var U={};return _.F("div",{class:"yt-panel-footer-view-model__button-stack"},_.F("div",{class:_.S3("yt-panel-footer-view-model__primary-button",(U["yt-panel-footer-view-model__button-stack--top-button"]=function(){return h().secondaryButton},U))},_.F(_.c4,{data:function(){return h().primaryButton}},{buttonViewModel:function(L){return _.F(_.s$,{data:L.data,
buttonOverrides:f,onClick:G})}})),_.F(_.c4,{data:function(){return h().secondaryButton}},{buttonViewModel:_.s$}))}}),_.F(_.z,{cond:function(){return!x()},
then:function(){var U={},L={},Z={};return _.F("div",{class:_.S3("yt-panel-footer-view-model__button-row",(U["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===a()},U))},_.F("div",{class:_.S3("yt-panel-footer-view-model__button-row--left-button",(L["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===a()},L["yt-panel-footer-view-model__button-row--hidden"]=function(){return!h().secondaryButton||0===a()},L["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===a()},L))},_.F(_.c4,{data:function(){return h().secondaryButton}},{buttonViewModel:_.s$})),_.F("div",{class:_.S3("yt-panel-footer-view-model__primary-button",(Z["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===a()||1===a()},Z["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===a()},Z))},_.F(_.c4,{data:function(){return h().primaryButton}},{buttonViewModel:function(E){return _.F(_.s$,{data:E.data,
buttonOverrides:f,onClick:G})}})))}}))},"kh");
_.YS.idomCompat=!0;_.GTm=_.H(function(D){D=_.fb(D,{disablePadding:!1});var v=D.data,h=D.disablePadding;D=_.G98(function(){return v().formId});
var a=D.submitForm,Q=D.isValid,G=D.isSubmitting;return _.F("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.F(_.c4,{data:function(){return v().panelFooter}},{panelFooterViewModel:function(x){return _.F(_.YS,{data:x.data,
onClickPrimaryButton:function(){a()},
disablePrimaryButton:function(){return!Q()||G()},
disablePadding:h})}}))},"lh");_.zh(_.GTm,"yt-form-footer-view-model",{props:{data:_.gj,disablePadding:_.gj}});var VCC=_.H(function(D){var v=_.g("enable_user_rating_web");return _.F("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.F(_.z,{cond:function(){var h;return(h=D.data())==null?void 0:h.image},
then:function(h){return _.F(_.PX,{data:h,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.F(_.IY,{text:function(){var h;
return(h=D.data())==null?void 0:h.title}})),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.F(_.IY,{text:function(){var h;
return(h=D.data())==null?void 0:h.subtitle}})),_.F(_.z,{cond:function(){return!v},
then:function(){return _.F(_.c4,{data:function(){var h;return(h=D.data())==null?void 0:h.viewTipsButton}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"mh");_.zh(VCC,"yt-contributor-zero-state-view-model",{props:{data:_.gj}});var P4Z=_.H(function(D){var v=function(){var h;return(h=D.data())==null?void 0:h.image};
return _.F("yt-featured-content-item-view-model",{class:_.S3("ytFeaturedContentItemViewModelHost")},_.F("div",{class:_.S3(function(){return v()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.F("div",{class:function(){return v()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.F(_.z,{cond:v,
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelImage"},_.F(_.c4,{data:function(){return D.data().image}},{themedImageViewModel:function(h){return _.F(O9K,{data:h.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.F(_.z,{cond:function(){var h;
return!v()&&((h=D.data())==null?void 0:h.iconName)},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelIcon"},_.F(_.Y5,{icon:function(){return D.data().iconName}}))}}),_.F("div",{class:"ytFeaturedContentItemViewModelContent"},_.F(_.z,{cond:function(){var h;
return(h=D.data())==null?void 0:h.title},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.F(_.IY,{text:function(){return D.data().title}}))}}),_.F(_.z,{cond:function(){var h;
return(h=D.data())==null?void 0:h.body},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.F(_.IY,{text:function(){return D.data().body}}))}})))))},"nh");var xcd=_.H(function(D){var v=function(){var Q;return ao$((Q=D.data())==null?void 0:Q.titleFontSize)},h=function(){var Q;
return $H3((Q=D.data())==null?void 0:Q.descriptionFontSize)},a=function(){var Q;
return((Q=D.data())==null?void 0:Q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.F("yt-landing-page-view-model",{class:_.S3("ytLandingPageViewModelHost",D.className)},_.F("div",{class:"ytLandingPageViewModelHeader"},_.F(_.z,{cond:function(){var Q;return(Q=D.data())==null?void 0:Q.bannerImage},
then:function(Q){return _.F("div",{class:"ytLandingPageViewModelHeaderImage"},_.F(_.c4,{data:function(){return Q()}},{imageBannerViewModel:function(G){return _.F(_.Cd,{data:G.data,
isPositionRelative:!0})}}))}}),_.F(_.z,{cond:function(){var Q;
return(Q=D.data())==null?void 0:Q.bannerAnimation},
then:function(Q){return _.F(_.ne,{data:function(){var G=Q();if(G==null?0:G.url){var x;G={path:(x=G==null?void 0:G.url)!=null?x:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(G==null?0:G.payload){var f;G={animationData:JSON.parse((f=G==null?void 0:G.payload)!=null?f:""),autoplay:!0,loop:!0,renderer:"svg"}}else G=void 0;return{animationConfig:G}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.F("div",{class:"ytLandingPageViewModelHeaderTitle"},_.F(_.z,{cond:function(){var Q;
return(Q=D.data())==null?void 0:Q.title},
then:function(Q){return _.F("div",{class:_.S3("ytLandingPageViewModelHeaderTitleContent",v)},_.F(_.IY,{text:function(){return Q()}}))}}),_.F(_.z,{cond:function(){var Q;
return(Q=D.data())==null?void 0:Q.description},
then:function(Q){var G={};return _.F(_.IY,{className:_.S3("ytLandingPageViewModelHeaderTitleDescription",h,(G.ytLandingPageViewModelHeaderTitleDescriptionMargin=a,G)),text:function(){return Q()}})}}))),_.F(_.z,{cond:function(){var Q,G;
return(Q=D.data())==null?void 0:(G=Q.featuredContentList)==null?void 0:G.length},
then:function(){return _.F("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.F(_.c4,{data:function(){return D.data().featuredContentList}},{featuredContentItemViewModel:function(Q){return _.F(P4Z,{data:Q.data})}}))}}),_.F(_.z,{cond:function(){var Q,G;
return(Q=D.data())==null?void 0:(G=Q.expandableContentList)==null?void 0:G.length},
then:function(){return _.F("div",{class:"ytLandingPageViewModelFaqSection"},_.F(_.c4,{data:function(){return D.data().expandableContentList}},{faqEntryViewModel:function(Q){return _.F("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.F(_.B5R,{data:Q.data}))}}))}}),_.F("div",{class:"ytLandingPageViewModelFooter"},_.F(_.z,{cond:function(){var Q;
return(Q=D.data())==null?void 0:Q.legalCopy},
then:function(Q){return _.F("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.F(_.IY,{text:function(){return Q()}}))}}),_.F(_.z,{cond:function(){var Q;
return(Q=D.data())==null?void 0:Q.actions},
then:function(Q){return _.F("div",null,_.F(_.c4,{data:function(){return Q()}},{flexibleActionsViewModel:function(G){return _.F(_.V8,{data:G.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"oh");_.zh(_.H(function(D){return _.F("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.F("div",{class:"ytLpSectionGroupViewModelContainer"},_.F(_.c4,{data:function(){return D.data().sections}},{landingPageViewModel:function(v){return _.F(xcd,{data:v.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"ph"),"yt-lp-section-group-view-model",{props:{data:_.gj}});var MCd=_.H(function(D){var v=D.data;var h=D.selectedKey;var a=D.onSelected;var Q=D.groupName;var G=function(){return v().text},x=function(){return v().attributedText},f=function(){return v().subtext},C=function(){return v().attributedSubtext},U=_.F("div",{class:"ytRadioButtonItemViewModelLabel"},_.F(_.z,{cond:G,
then:function(){return _.F("div",null,G)}}),_.F(_.z,{cond:x,
then:function(){return _.F(_.IY,{text:x})}}),_.F(_.z,{cond:f,
then:function(){return _.F("div",{class:"ytRadioButtonItemViewModelSubText"},f)}}),_.F(_.z,{cond:C,
then:function(){return _.F("div",{class:"ytRadioButtonItemViewModelSubText"},_.F(_.IY,{text:C}))}})),L=function(){if(x()){var E;
return(E=x())==null?void 0:E.content}return G()},Z=function(){if(C()){var E;
return(E=C())==null?void 0:E.content}return f()};
D={};return _.F("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.F(_.Pe,{name:Q,checked:function(){return!(h==null||!h()||v().key!==(h==null?void 0:h()))},
onChange:function(E){a==null||a(E.target,v(),Q==null?void 0:Q())},
labelRenderable:function(){return U},
ariaLabel:function(){return Z()?L()+", "+Z():L()},
className:_.S3((D.ytRadioButtonItemViewModelSubTitle=function(){return!!v().subtext},D))}))},"qh");_.fFI=_.H(function(D){var v=D.data;var h=D.onSelected;var a=D.selectedKey;var Q=D.groupName;var G=function(){return(Q==null?void 0:Q())||v().key};
return _.F("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.F("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.F(_.c4,{data:function(){return v().radioButtons}},{radioButtonItemViewModel:function(x){return _.F(MCd,{data:x.data,
onSelected:h,selectedKey:a,groupName:G})}})))},"rh");var C42=_.H(function(D){_.jA(function(){if(D.controlledMode()&&D.data().defaultSelected)_.mV(Error("Vj"));else{var G;!D.controlledMode()&&((G=D.selected)==null?0:G.call(D))&&_.mV(Error("Wj"))}});
var v=_.P(_.lL(function(){if(!D.controlledMode())return D.data().defaultSelected})),h=v.next().value,a=v.next().value,Q=function(){if(!D.controlledMode())return h();
var G;return(G=D.selected)==null?void 0:G.call(D)};
return _.F("yt-checkbox-item-view-model",{class:_.S3("ytCheckboxItemViewModelHost",D.className)},_.F(_.xD,{data:function(){var G=D.data(),x=Q();return{title:G.text,subtitle:G.subtext,superlabel:G.superlabel,isSelected:!!x,isDisabled:G.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(G){G.preventDefault();!D.controlledMode()&&a(!h());var x,f;(f=D.onTap)==null||f.call(D,!!Q(),D.data(),(x=D.groupName)==null?void 0:x.call(D))},
isCompact:D.isCompact}))},"sh");var oR3=_.H(function(D){var v=D.data;var h=D.controlledMode;var a=D.selectedKeys;var Q=D.onItemTap;var G=D.groupName;var x=function(){return(G==null?void 0:G())||v().key};
_.jA(function(){h()&&v().defaultSelectedKeys?_.mV(Error("Xj")):!h()&&(a==null?0:a())&&_.mV(Error("Yj"))});
D=_.P(_.lL(function(){if(!h())return v().defaultSelectedKeys}));
var f=D.next().value,C=D.next().value,U=function(L,Z,E){L=[];!h()&&Z.key&&(L=QeI(Z.key,f()||[]),C(L));Q==null||Q(Z,L,E)};
return _.F("yt-checkbox-group-view-model",{class:_.S3("ytCheckboxGroupViewModelHost")},_.F("fieldset",{class:_.S3("ytCheckboxGroupViewModelFieldset")},_.F(_.c4,{data:function(){return v().checkboxes}},{checkboxItemViewModel:function(L){var Z=L.data;
return _.F(C42,{data:Z,controlledMode:!0,selected:function(){var E=h()?(a==null?void 0:a())||[]:f()||[],I=Z().key;return I?E.includes(I):!1},
onTap:U,groupName:x})}})))},"th");var Bn=_.H(function(D){var v=_.l7(GmK,_.MK(function(){var f;return(f=D.data())==null?void 0:f.noteFeedEntityKey},"")),h=_.l7(ki2,_.MK(function(){var f;
return(f=D.data())==null?void 0:f.userRatingEntityKey},"")),a=_.g("enable_user_rating_web"),Q=function(){var f,C,U;
return((f=v())==null?0:f.contributorNote)?(C=v())==null?void 0:C.contributorNote:(U=D.data())==null?void 0:U.existingNote},G=function(){var f,C;
return!!h()&&!!VJI((f=h())==null?void 0:f.helpfulnessValue,(C=D.data())==null?void 0:C.noteData)};
if(a){var x={};return _.F("yt-note-view-model",{class:_.S3("ytNoteViewModelHostUserRating",(x.ytNoteViewModelHostUserRatingPublishedNote=function(){var f,C,U,L;return((f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.isPublished)&&!((U=D.data())==null?0:(L=U.noteData)==null?0:L.isUserRatingForm)},x))},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.F(_.z,{cond:function(){var f,C;
return(f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.isPinned},
then:function(){return _.F(_.Y5,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.F(_.z,{cond:function(){var f,C;return(f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.isPublished},
then:function(){return _.F(_.Y5,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.F(_.c4,{data:function(){var f;
return(f=D.data())==null?void 0:f.metadata}},{contentMetadataViewModel:_.Aj}),_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var f,C;
return(C=_.k((f=D.data())==null?void 0:f.metadata,_.uwM))==null?void 0:C.delimiter}),_.F(_.IY,{text:function(){var f;
return(f=Q())==null?void 0:f.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.F(_.z,{cond:function(){var f,C;return!((f=D.data())==null?0:(C=f.noteData)==null?0:C.isUserRatingForm)},
then:function(){return _.F(_.c4,{data:function(){var f,C,U,L,Z,E,I,S=!!((f=D.data())==null?0:(C=f.noteData)==null?0:C.isPinned);f=G();C=(U=D.data())==null?void 0:U.noteData;U=(L=v())==null?void 0:(Z=L.contributorNote)==null?void 0:Z.deleteAction;L=(E=D.data())==null?void 0:E.overflowButtonNoteWithRatingOnTapOverride;E=(I=D.data())==null?void 0:I.overflowButton;return S?PO3(C,U):f?{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:L}}:E}},{buttonViewModel:function(f){return _.F(_.s$,{data:f.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.F("div",{class:"ytNoteViewModelNoteContent"},_.F(_.IY,{text:function(){var f;
return(f=Q())==null?void 0:f.text}})),_.F(_.z,{cond:function(){var f,C,U,L;
return!((f=D.data())==null?0:(C=f.noteData)==null?0:C.isPinned)&&!((U=D.data())==null?0:(L=U.noteData)==null?0:L.isUserRatingForm)},
then:function(){return _.F(_.z,{cond:G,then:function(){return _.F("div",{class:"ytNoteViewModelUserRatingContainer"},_.F(_.IY,{text:function(){var f,C;return VJI((f=h())==null?void 0:f.helpfulnessValue,(C=D.data())==null?void 0:C.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.F(_.c4,{data:function(){var f;return(f=D.data())==null?void 0:f.userRatingButton}},{buttonViewModel:function(f){return _.F(_.s$,{data:f.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.F(_.z,{cond:function(){var f,C,U,L;
return!((f=D.data())==null?0:(C=f.noteData)==null?0:C.ignoreDivider)&&!((U=D.data())==null?0:(L=U.noteData)==null?0:L.isUserRatingForm)},
then:function(){return _.F("div",{class:"ytNoteViewModelDivider"},_.F(_.c4,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(f){return _.F(_.T5$,{data:f.data})}}))}}))}return _.F("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.F(_.z,{cond:function(){var f,C;return(f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.isPinned},
then:function(){return _.F(_.Y5,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.F(_.z,{cond:function(){var f,C;return(f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.isPublished},
then:function(){return _.F(_.Y5,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.F(_.z,{cond:function(){return a},
then:function(){return _.F(_.c4,{data:function(){var f;return(f=D.data())==null?void 0:f.metadata}},{contentMetadataViewModel:function(f){return _.F(_.Aj,{data:f.data})}})}}),_.F(_.IY,{text:function(){var f,C;
return(f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.headerText}}),_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.F(_.IY,{text:function(){var f,C;
return(f=D.data())==null?void 0:(C=f.noteData)==null?void 0:C.delimiter}})),_.F(_.IY,{text:function(){var f,C;
return(f=v())==null?void 0:(C=f.contributorNote)==null?void 0:C.publishedTimeText}})),_.F(_.c4,{data:function(){var f,C,U;
return PO3((f=D.data())==null?void 0:f.noteData,(C=v())==null?void 0:(U=C.contributorNote)==null?void 0:U.deleteAction)}},{buttonViewModel:function(f){return _.F(_.s$,{data:f.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.F("div",{class:"ytNoteViewModelNoteContent"},_.F(_.IY,{text:function(){var f,C;
return(f=v())==null?void 0:(C=f.contributorNote)==null?void 0:C.text}})))},"uh");
Bn.idomCompat=!0;_.zh(_.H(function(D){var v=_.MK(function(){var b;return(b=D.data())==null?void 0:b.flowStateEntityKey},""),h=_.l7(_.v7,v),a=_.l7(GmK,_.MK(function(){var b;
return(b=D.data())==null?void 0:b.noteFeedEntityKey},"")),Q=_.P(_.lL(function(){var b;
return(b=_.k(D.data().helpfulnessValue,_.r7))==null?void 0:b.defaultSelectedKey})),G=Q.next().value,x=Q.next().value;
Q=_.P(_.lL(function(){var b,W,K;return(K=_.k((b=_.k(D.data().helpfulnessValue,_.r7))==null?void 0:(W=b.radioButtons)==null?void 0:W.find(function(O){var R;return((R=_.k(O,cXU))==null?void 0:R.key)===G()}),cXU))==null?void 0:K.value}));
var f=Q.next().value,C=Q.next().value,U=function(b,W){x(W.key);C(W.value)},L=function(){var b,W;
return((b=f())==null?void 0:b.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((W=f())==null?void 0:W.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},Z=function(){var b,W;
return((b=f())==null?void 0:b.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((W=f())==null?void 0:W.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
Q=_.P(_.lL(function(){var b;return(b=_.k(D.data().helpfulReasons,BfC))==null?void 0:b.defaultSelectedKeys}));
var E=Q.next().value,I=Q.next().value,S=function(b){xHZ(b.key,E,I)};
Q=_.P(_.lL(function(){var b;return(b=_.k(D.data().notHelpfulReasons,BfC))==null?void 0:b.defaultSelectedKeys}));
var B=Q.next().value,A=Q.next().value,d=function(b){xHZ(b.key,B,A)};
_.jA(function(){var b,W,K;SzZ((b=D.data())==null?void 0:(W=b.userRatingFormSchema)==null?void 0:W.id,{isValid:function(){return!!G()},
formData:function(){var O=f(),R=COK(E(),_.k(D.data().helpfulReasons,BfC)),vA=COK(B(),_.k(D.data().notHelpfulReasons,BfC));O={helpfulnessValue:O==null?void 0:O.noteHelpfulnessValue};if(R){O.helpfulReasons=[];R=_.P(R);for(var f7=R.next();!f7.done;f7=R.next()){f7=f7.value;var xL=void 0;if((xL=f7)==null?0:xL.noteHelpfulReason)xL=void 0,O.helpfulReasons.push((xL=f7)==null?void 0:xL.noteHelpfulReason)}}if(vA)for(O.notHelpfulReasons=[],vA=_.P(vA),R=vA.next();!R.done;R=vA.next())if(R=R.value,f7=void 0,(f7=
R)==null?0:f7.noteNotHelpfulReason)f7=void 0,O.notHelpfulReasons.push((f7=R)==null?void 0:f7.noteNotHelpfulReason);return{userRatingFormData:O}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(K=_.k(h(),Zp3))==null?void 0:K.submitFormParams},onSubmitResult:function(){var O,R=(O=_.k(h(),Zp3))==null?void 0:O.userRatingEntityKey,vA;O={key:R,helpfulnessValue:(vA=f())==null?void 0:vA.noteHelpfulnessValue};R&&_.xt(_.Xe("contextNoteUserRatingEntityPayload",R,O));var f7;R=(f7=D.data())==null?void 0:f7.viewNoteFlowStepId;var xL;if((xL=a())==null||!xL.contributorNote){var kL;R=(kL=D.data())==null?void 0:kL.zeroStateFlowStepId}(f7=
Object.assign({},h()))&&R&&(f7.currentStepId=R,f7.stepIdStack=[R],_.xt(_.Xe("flowStateEntity",v(),f7)));f7=_.xd().resolve(_.fx);var Z4;(xL=(Z4=D.data())==null?void 0:Z4.ratingSubmittedSnackbarCommand)&&f7&&f7.resolveCommand(xL)},
disableDuringSubmission:!0})});
return _.F("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.F(_.c4,{data:function(){var b=_.k(h(),Zp3);if(b){var W;var K={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:b==null?void 0:(W=b.note)==null?void 0:W.headerText}]}],delimiter:"\u2022"}},existingNote:b.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else K=void 0;return K}},{noteViewModel:function(b){return _.F("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.F(Bn,{data:b.data}))}}),_.F(_.c4,{data:function(){var b;
return(b=D.data())==null?void 0:b.helpfulnessValue}},{radioButtonGroupViewModel:function(b){return _.F("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.F(_.fFI,{data:b.data,
onSelected:U,selectedKey:G}))}}),_.F(_.z,{cond:L,
then:function(){return _.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.F(_.IY,{text:function(){var b;return(b=D.data())==null?void 0:b.helpfulReasonQuestion}})),_.F(_.c4,{data:function(){var b;
return(b=D.data())==null?void 0:b.helpfulReasons}},{checkboxGroupViewModel:function(b){return _.F(oR3,{data:b.data,
onItemTap:S,selectedKeys:E,controlledMode:!0})}}))}}),_.F(_.z,{cond:Z,
then:function(){return _.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.F(_.IY,{text:function(){var b;return(b=D.data())==null?void 0:b.notHelpfulReasonQuestion}})),_.F(_.c4,{data:function(){var b;
return(b=D.data())==null?void 0:b.notHelpfulReasons}},{checkboxGroupViewModel:function(b){return _.F(oR3,{data:b.data,
onItemTap:d,selectedKeys:B,controlledMode:!0})}}))}}),_.F(_.z,{cond:function(){return!L()&&!Z()},
then:function(){return _.F(_.c4,{data:function(){var b;return(b=D.data())==null?void 0:b.helpfulNoteFeatures}},{alertBannerViewModel:function(b){return _.F("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.F(_.Dlt,{data:b.data}))}})}}))},"vh"),"yt-note-user-rating-view-model",{props:{data:_.gj}});_.zh(Bn,"yt-note-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=_.l7(GmK,_.MK(function(){var h;return(h=D.data())==null?void 0:h.noteFeedEntityKey},""));
return _.F("yt-notes-wrapper-view-model",{class:_.S3("ytNotesWrapperViewModelHost")},_.F(_.z,{cond:function(){var h,a,Q;return!((h=D.data())==null||!h.existingNotes)||!((a=D.data())==null||!a.currentNote)&&!((Q=v())==null||!Q.contributorNote)},
then:function(){return _.F(_.xf,null,_.F(_.c4,{data:function(){var h,a,Q,G;return((a=_.k((h=D.data())==null?void 0:h.currentNote,E_$))==null?0:(Q=a.noteData)==null?0:Q.isPublished)?(G=D.data())==null?void 0:G.currentNote:void 0}},{noteViewModel:function(h){return _.F(Bn,{data:h.data})}}),_.F(_.c4,{data:function(){var h;
return(h=D.data())==null?void 0:h.existingNotes}},{noteViewModel:function(h){var a=h.data;
return _.F(_.z,{cond:function(){var Q,G;return(Q=a())==null?void 0:(G=Q.noteData)==null?void 0:G.isPublished},
then:function(){return _.F(Bn,{data:a})}})}}),_.F(_.c4,{data:function(){var h,a,Q,G;
return((a=_.k((h=D.data())==null?void 0:h.currentNote,E_$))==null?0:(Q=a.noteData)==null?0:Q.isPublished)?void 0:(G=D.data())==null?void 0:G.currentNote}},{noteViewModel:function(h){return _.F(Bn,{data:h.data})}}),_.F(_.c4,{data:function(){var h;
return(h=D.data())==null?void 0:h.existingNotes}},{noteViewModel:function(h){var a=h.data;
return _.F(_.z,{cond:function(){var Q,G;return!((Q=a())==null?0:(G=Q.noteData)==null?0:G.isPublished)},
then:function(){return _.F(Bn,{data:a})}})}}))},
else:function(){return _.F(_.c4,{data:function(){var h;return(h=D.data())==null?void 0:h.zeroStateData}},{contributorZeroStateViewModel:VCC})}}))},"wh"),"yt-notes-wrapper-view-model",{props:{data:_.gj}});var cn=_.H(function(D){var v=_.fb(D,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),h=v.label,a=v.text,Q=v.placeholder,G=v.hint;D=v.rows;var x=v.overflowStyle,f=v.outline,C=v.disabled,U=v.disableNewLines,L=v.characterLimit,Z=v.validation,E=v.onInput,I=_.va("textarea");v=_.P(_.lL(function(){return a()}));
var S=v.next().value,B=v.next().value;v=_.P(_.Zq(!1,void 0,"u9PDq"));var A=v.next().value,d=v.next().value,b=function(){d(!0)},W=function(){d(!1)};
_.jA(function(){var s8=I.value,Xf=x(),dJ=S();Xf==="expand-vertically"&&dJ&&ozZ(s8);I.value.addEventListener("focusin",b);I.value.addEventListener("focusout",W)});
_.dq(function(){I.value.removeEventListener("focusin",b);I.value.removeEventListener("focusout",W)});
var K=function(){var s8;return(s8=Z())==null?void 0:s8.validate(S())},O=function(){return L()&&!K()&&S().length>L().maxChars},R=function(){return!!K()||O()};
v=_.Jd(function(s8){if(!s8.currentTarget)return!1;s8=s8.currentTarget;B(s8.value);x()==="expand-vertically"&&ozZ(s8);E==null||E(s8.value);return!0});
var vA=_.Jd(function(s8){U()&&s8.key==="Enter"&&s8.preventDefault();return!1}),f7=_.Jd(function(){I.value.focus()}),xL=function(){return Q()||h()},kL={},Z4={},S2={};
return _.F("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.F("div",{class:_.S3("ytStandardsTextareaShapeTextareaContainer",(kL.ytStandardsTextareaShapeTextareaContainerOutline=f,kL.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=C,kL.ytStandardsTextareaShapeTextareaContainerOutlineError=R,kL)),"on:click":f7},_.F("label",{class:_.S3("ytStandardsTextareaShapeLabel",(Z4.ytStandardsTextareaShapeLabelFocused=A,Z4.ytStandardsTextareaShapeLabelDisabled=C,Z4.ytStandardsTextareaShapeLabelError=
function(){return R()&&!C()},Z4.ytStandardsTextareaShapeLabelHidden=function(){return!A()&&!S()&&!!xL()},Z4))},h),_.F("div",{class:_.S3("ytStandardsTextareaShapePlaceholder",(S2.ytStandardsTextareaShapePlaceholderVisible=function(){return!A()&&!S()},S2)),
"aria-hidden":"true"},xL),_.F("textarea",{el:I,class:"ytStandardsTextareaShapeTextarea",rows:D,disabled:C,placeholder:xL,"on:input":v,"on:keydown":vA},S)),_.F(_.z,{cond:function(){return G()&&!R()},
then:function(){var s8={};return _.F("div",{class:_.S3("ytStandardsTextareaShapeHint",(s8.ytStandardsTextareaShapeHintDisabled=C,s8))},_.F("div",{class:"ytStandardsTextareaShapeHintHintMessage"},G))}}),_.F(_.z,{cond:K,
then:function(){return _.F(F3d,{disabled:C},_.F("div",{class:"ytStandardsTextareaShapeErrorMessage"},K))}}),_.F(_.z,{cond:L,
then:function(s8){return _.F(_.z,{cond:O,then:function(){return _.F(F3d,{disabled:C},_.F("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return s8().errorMessage}),_.F("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return S().length+"/"+s8().maxChars}))}})}}))},"xh");
cn.idomCompat={callbacks:{onInput:!0}};var F3d=_.H(function(D){var v={};return _.F("div",{class:_.S3("ytStandardsTextareaShapeError",(v.ytStandardsTextareaShapeErrorDisabled=D.disabled,v)),role:"alert"},_.F(_.Y5,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),D.children)},"yh");_.zuS=_.H(function(D){var v=D.data;return _.F("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.F(cn,{text:D.text,label:function(){var h;return(h=v().contentProperties)==null?void 0:h.labelText},
placeholder:function(){var h;return(h=v().contentProperties)==null?void 0:h.placeholderText},
hint:function(){var h;return(h=v().contentProperties)==null?void 0:h.hintText},
outline:function(){var h;return!((h=v().displayProperties)==null?0:h.hideBorder)},
overflowStyle:function(){var h;return((h=v().displayProperties)==null?0:h.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:D.disabled,disableNewLines:function(){var h;return(h=v().displayProperties)==null?void 0:h.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var h;return(h=v().displayProperties)==null?void 0:h.rows}}))},"zh");_.Ucr=_.H(function(D){var v=D.data;return _.F("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.F(cn,{text:D.text,label:function(){var h;return(h=v().contentProperties)==null?void 0:h.labelText},
placeholder:function(){var h;return(h=v().contentProperties)==null?void 0:h.placeholderText},
hint:function(){var h;return(h=v().contentProperties)==null?void 0:h.hintText},
outline:function(){var h;return!((h=v().displayProperties)==null?0:h.hideBorder)},
overflowStyle:function(){var h;return((h=v().displayProperties)==null?0:h.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var h;return(h=v().displayProperties)==null?void 0:h.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var h;return(h=v().displayProperties)==null?void 0:h.rows}}))},"Ah");var L3S=_.H(function(D){var v=_.P(_.lL(function(){var xL,kL;return((xL=D.data().structuredContextNoteFormSchema)==null?0:(kL=xL.initialValues)==null?0:kL.noteBody)?D.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),h=v.next().value,a=v.next().value;
v=_.P(_.lL(function(){D.data();return!1}));
var Q=v.next().value,G=v.next().value;v=_.P(_.lL(function(){D.data();return!1}));
var x=v.next().value,f=v.next().value;v=_.P(_.lL(function(){var xL,kL;return((xL=D.data().structuredContextNoteFormSchema)==null?0:(kL=xL.initialValues)==null?0:kL.timestamp)?D.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var C=v.next().value,U=v.next().value;v=_.P(_.lL(function(){D.data();return!1}));
var L=v.next().value,Z=v.next().value;v=_.P(_.lL(function(){var xL,kL;return((xL=D.data().structuredContextNoteFormSchema)==null?0:(kL=xL.initialValues)==null?0:kL.sources)?[D.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var E=v.next().value,I=v.next().value;v=_.P(_.lL(function(){D.data();return!1}));
var S=v.next().value,B=v.next().value;v=_.P(_.lL(function(){return!1}));
var A=v.next().value,d=v.next().value;_.jA(function(){var xL;_.JO2((xL=D.data().structuredContextNoteFormSchema)==null?void 0:xL.id,{isSubmitting:A,onSubmit:function(){d(!0);var kL=kmK(h(),C(),E(),D.data()),Z4=_.xd().resolve(_.fx);kL&&Z4&&Z4.resolveCommand(kL,{commandController:{onSuccess:function(){d(!1)}}})},
isValid:function(){return Q()&&!x()&&!L()&&!S()}})});
var b=function(xL){if(xL!==void 0&&(a(xL),!Q()&&xL.length>0&&G(!0),Q())){var kL=UHZ(D.data());if(kL){var Z4=kL.minLength;kL=kL.maxLength;Z4&&xL.length<Z4?f(!0):kL&&xL.length>kL?f(!0):f(!1)}}},W=function(xL){if(xL!==void 0){U(xL);
if(xL.length>0){var kL,Z4,S2,s8,Xf=ZLr((kL=D.data())==null?void 0:(Z4=kL.structuredContextNoteFormSchema)==null?void 0:(S2=Z4.fieldSchemas)==null?void 0:(s8=S2.timestamp)==null?void 0:s8.validationSchema);if(Xf&&(kL=Xf.regex)&&!(new RegExp(kL)).test(xL)){Z(!0);return}}Z(!1)}},K=function(xL){if(xL!==void 0){var kL=xL.split(/[ \n]/).map(function(Z4){return Z4.trim()});
I(kL);if(xL.length>0)for(xL=_.P(kL),kL=xL.next();!kL.done;kL=xL.next())if(!gzZ(kL.value)){B(!0);return}B(!1)}},O=function(){return{validate:function(xL){if(Q()){var kL=UHZ(D.data());
if(kL){var Z4=kL.minLength;kL=kL.translations;if(Z4&&xL.length<Z4)return kL==null?void 0:kL.minLengthErrorMessage}}}}},R=function(){var xL=UHZ(D.data()),kL=xL==null?void 0:xL.maxLength,Z4;
xL=xL==null?void 0:(Z4=xL.translations)==null?void 0:Z4.maxLengthErrorMessage;if(kL&&xL)return{maxChars:kL,errorMessage:xL}},vA=function(){return{validate:function(xL){if(xL){var kL,Z4,S2,s8,Xf=ZLr((kL=D.data())==null?void 0:(Z4=kL.structuredContextNoteFormSchema)==null?void 0:(S2=Z4.fieldSchemas)==null?void 0:(s8=S2.timestamp)==null?void 0:s8.validationSchema);
if(Xf&&(kL=Xf.regex,Xf=Xf.translations,kL&&!(new RegExp(kL)).test(xL)))return Xf==null?void 0:Xf.regexErrorMessage}}}},f7=function(){return{validate:function(xL){if(xL){var kL,Z4,S2,s8,Xf=Iod((kL=D.data())==null?void 0:(Z4=kL.structuredContextNoteFormSchema)==null?void 0:(S2=Z4.fieldSchemas)==null?void 0:(s8=S2.sources)==null?void 0:s8.validationSchema);
if(Xf&&(kL=Xf.translations,kL==null?0:kL.selectedErrorMessage))for(xL=xL.split(/[ \n]/).map(function(dJ){return dJ.trim()}),xL=_.P(xL),Z4=xL.next();!Z4.done;Z4=xL.next())if(!gzZ(Z4.value))return xL=void 0,(xL=kL)==null?void 0:xL.selectedErrorMessage}}}};
return _.F("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.c4,{data:function(){var xL;return(xL=D.data())==null?void 0:xL.noteContents}},{textFormFieldViewModel:function(xL){return _.F(_.Ucr,{data:xL.data,
onInput:b,validation:O,characterLimit:R})},
textFieldViewModel:function(xL){return _.F(_.zuS,{data:xL.data,onInput:b,validation:O,characterLimit:R})}})),_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.c4,{data:function(){var xL;
return(xL=D.data())==null?void 0:xL.noteTimestamp}},{textFormFieldViewModel:function(xL){return _.F(_.Ucr,{data:xL.data,
onInput:W,validation:vA})},
textFieldViewModel:function(xL){return _.F(_.zuS,{data:xL.data,onInput:W,validation:vA})}})),_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.c4,{data:function(){var xL;
return(xL=D.data())==null?void 0:xL.noteSources}},{textFormFieldViewModel:function(xL){return _.F(_.Ucr,{data:xL.data,
onInput:K,validation:f7})},
textFieldViewModel:function(xL){return _.F(_.zuS,{data:xL.data,onInput:K,validation:f7})}})))},"Bh");
L3S.idomCompat=!0;_.zh(L3S,"yt-structured-context-note-view-model",{props:{data:_.gj}});var ZmX=_.H(function(D){var v=_.P(_.lL(function(){var G;if((G=D.controlled)==null?0:G.call(D))return[];var x;return(((x=D.data())==null?void 0:x.chips)||[]).map(function(f){f=_.k(f,_.CH);if(f==null?0:f.selected)return SWX(f.chipValue)}).filter(function(f){return f!==void 0})})),h=v.next().value,a=v.next().value,Q=function(G){var x=SWX(G.chipValue);
if(x!==void 0){var f;if((f=D.controlled)==null?0:f.call(D))return void D.controlled().onTap(x);G=h().includes(x)?[].concat(_.j_(h().filter(function(U){return U!==x}))):[].concat(_.j_(h()),[x]);
a(G);var C;if((C=D.uncontrolled)==null?0:C.call(D))D.uncontrolled().onUpdate(G)}};
return _.F("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.F(_.Xd,{each:function(){return D.data().chips||[]}},function(G){return _.F("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.F(_.OQ4,{data:function(){return _.k(G,_.CH)},
selected:function(){var x;if(x=_.k(G,_.CH)){var f=SWX(x.chipValue);if(f!==void 0){var C;x=((C=D.controlled)==null?0:C.call(D))?D.controlled().selectedValues.includes(f):h().includes(f)}else x=void 0}else x=!1;return x},
callback:Q}))}))},"Ch");var ERm=_.H(function(D){var v=D.data;var h=function(){var f;return((f=v())==null?void 0:f.flowStateKey)||""},a=_.l7(_.v7,h),Q=function(){var f;
return(f=_.k(a(),IMC))==null?void 0:f.chips},G=function(f){if(f!==void 0){var C=Q()||[];
C=C.find(function(U){return U===f})?C.filter(function(U){return U!==f}):[].concat(_.j_(C),[f]);
C=Object.assign({},a(),{feedbackFormFlowState:Object.assign({},_.k(a(),IMC),{chips:C})});_.xt(_.Xe("flowStateEntity",h(),C))}},x=function(){var f;
return _.k((f=v())==null?void 0:f.inputBox,g_X)};
D=_.b2(function(f){var C=x();C=!(C==null?0:C.maxChars)||f.length<=C.maxChars;f=Object.assign({},a(),{feedbackFormFlowState:Object.assign({},_.k(a(),IMC),{detail:f}),abuseReportFlowState:Object.assign({},_.k(a(),tW),{navigationEnabled:C})});_.xt(_.Xe("flowStateEntity",h(),f))},150);
return _.F("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.F("div",{class:"ytFeedbackFormViewModelChips"},_.F(_.c4,{data:function(){var f;return(f=v())==null?void 0:f.chipSelection}},{chipSelectionFormFieldViewModel:function(f){return _.F(ZmX,{data:f.data,
controlled:function(){return{selectedValues:Q()||[],onTap:G}}})}})),_.F("div",{class:"ytFeedbackFormViewModelInputBox"},_.F(cn,{text:function(){var f;
return(f=_.k(a(),IMC))==null?void 0:f.detail},
placeholder:function(){var f;return((f=x())==null?void 0:f.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var f=x();if(f&&f.maxChars)return{maxChars:f.maxChars,errorMessage:f.maxCharsExceededErrorMessage||""}},
onInput:D})),_.F("div",{class:"ytFeedbackFormViewModelFooterText"},_.F(_.IY,{text:function(){return v().footerText}})))},"Dh");
ERm.idomCompat=!0;_.zh(ERm,"yt-feedback-form-view-model",{props:{data:_.gj}});var IF2=_.H(function(D){var v=D.data;var h=_.l7(gd3,function(){return v().flowStateKey||""}),a=function(){var Q;
_.r4((Q=_.k(h(),tW))==null?void 0:Q.navigationCommand)};
return _.F("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.F("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.F(_.c4,{data:function(){return v().cancelButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:a})}}),_.F(_.c4,{data:function(){var Q;
if(v().navButton){var G=Object;var x=G.assign,f=_.k(v().navButton,_.fH),C=((Q=_.k(h(),tW))==null?0:Q.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",U,L;Q=_.k((U=_.k(h(),tW))==null?void 0:U.navigationCommand,_.Tz);U=(L=_.k(Q,_.RB))==null?void 0:L.url;G={buttonViewModel:x.call(G,{},f,{state:C,iconName:U?"OPEN_IN_NEW":""})}}else G=void 0;return G}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:a})}})))},"Eh");
IF2.idomCompat=!0;_.zh(IF2,"yt-report-form-bottom-bar-view-model",{props:{data:_.gj}});var gRd=_.H(function(D){var v=D.nextStep;return _.F("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.F("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.F(_.Y5,{icon:function(){return v().iconName||""}})),_.F("div",null,_.F(_.IY,{text:function(){return v().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Fh"),kTd=_.H(function(D){var v=D.data;
var h,a=(h=_.xd().resolve(_.PV(_.$5)))==null?void 0:h(),Q=_.l7(_.v7,function(){return v().flowStateKey||""});
return _.F("yt-report-form-confirmation-page-view-model",{class:function(){var G;return((G=_.k(Q(),tW))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.F("div",{class:function(){var G;
return((G=_.k(Q(),tW))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.F(_.PX,{data:function(){return a&&v().imageDark?v().imageDark:v().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.F("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return v().confirmationHeader}),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.F(_.IY,{text:function(){return v().confirmationText}})),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.F(_.IY,{text:function(){return v().lawEnforcementText}})),
_.F("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return v().whatToExpectHeader}),_.F(_.z,{cond:function(){return v().nextSteps},
then:function(G){return _.F("div",null,_.F(_.Xd,{each:G},function(x){return _.F(gRd,{nextStep:x})}))}}),_.F(_.z,{cond:function(){return v().legalReportText},
then:function(G){return _.F("div",null,_.F(_.IY,{text:G,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gh");
kTd.idomCompat=!0;_.zh(kTd,"yt-report-form-confirmation-page-view-model",{props:{data:_.gj}});var SiX=_.H(function(D){var v=D.data;var h=function(){var G;return((G=_.k(v().inputBox,g_X))==null?void 0:G.maxChars)||500},a=function(){return v().flowStateKey||""},Q=_.l7(_.v7,a);
D=_.b2(function(G){G=Object.assign({},Q(),{flowFormState:{isValid:G.length<=h()},abuseReportFlowState:{userComments:G,navigationEnabled:!(G.length>h()),isReportFormDirty:!0}});_.P8().dispatch(_.sy("flowStateEntity",a(),G))},150);
_.jA(function(){var G=Object.assign({},Q(),{flowFormState:{isValid:!0}});_.P8().dispatch(_.sy("flowStateEntity",a(),G))});
return _.F("yt-report-form-details-page-view-model",{class:function(){var G;return((G=_.k(Q(),tW))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.F("h1",{class:function(){var G;
return((G=_.k(Q(),tW))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return v().detailsPageHeader}),_.F("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.F(_.IY,{text:function(){return v().bodyText}})),_.F("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.F(cn,{label:function(){var G;
return((G=_.k(v().inputBox,g_X))==null?void 0:G.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var G;return{errorMessage:((G=_.k(v().inputBox,g_X))==null?void 0:G.maxCharsExceededErrorMessage)||"",maxChars:h()}},
onInput:D})))},"Hh");
SiX.idomCompat=!0;_.zh(SiX,"yt-report-form-details-page-view-model",{props:{data:_.gj}});var JB3=_.H(function(D){var v=D.data;var h=function(){return v().flowStateKey||""},a=_.l7(_.v7,h),Q=function(){return _.k(a(),tW)};
return _.F("yt-report-form-reason-select-page-view-model",{class:function(){var G;return((G=Q())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.F("h1",{class:function(){var G;
return((G=Q())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return v().pageHeader}),_.F("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.F(_.IY,{text:function(){return v().bodyText}})),_.F("div",{class:function(){var G;
return((G=Q())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.F(_.fFI,{data:function(){return _.k(v().radioButtonGroup,_.r7)},
onSelected:function(G,x){G=Object.assign({},a(),{abuseReportFlowState:Object.assign({},Q(),{reasonKey:x.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:x.command})});_.xt(_.Xe("flowStateEntity",h(),G))},
selectedKey:function(){var G;return(G=Q())==null?void 0:G.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ih");
JB3.idomCompat=!0;_.zh(JB3,"yt-report-form-reason-select-page-view-model",{props:{data:_.gj}});var pTX=_.H(function(D){var v=D.data;var h,a=(h=_.xd().resolve(_.PV(_.$5)))==null?void 0:h();return _.F("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.F("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.F(_.PX,{data:function(){return a&&v().imageDark?v().imageDark:v().image},
alt:""})),_.F("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.F("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return v().header}),_.F(_.IY,{text:function(){return v().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Jh");
pTX.idomCompat=!0;_.zh(pTX,"yt-report-form-sign-in-page-view-model",{props:{data:_.gj}});_.lFK=(0,_.Hpr)(_.DP.talkToRecs,{talkToRecsStateSelector:function(D){return D}});_.zh(_.H(function(D){var v=D.data;var h=_.Th(_.lFK.talkToRecsStateSelector),a=function(){return v().titleSuperscript},Q=function(){return v().answersShelf},G=function(){return v().videoShelf},x=function(){var f7;
return(f7=v().textInputPlaceholder)==null?void 0:f7.content},f=function(){return v().showOpenTextInput},C=function(){var f7;
return(f7=v().textInputValue)==null?void 0:f7.content},U=function(){return v().isMultiTurnFlow?v().resetButtonViewModel:void 0},L="",Z=function(){return v().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
D=_.P(_.Zq("",void 0,"d5Wa4d"));var E=D.next().value,I=D.next().value;D=_.P(_.Zq(!1,void 0,"aIzK3e"));var S=D.next().value,B=D.next().value,A=function(){return{state:S()||E()?"active":"disabled",disabled:!(S()||E())}};
_.dM(function(){if(f()){C()&&I(C());var f7;if(!U()&&((f7=h())==null?0:f7.stepStates)){var xL;f7=Object.keys((xL=h())==null?void 0:xL.stepStates);xL=f7[f7.length-1];var kL,Z4;(xL=(kL=h().stepStates[xL])==null?void 0:(Z4=kL.userQuery)==null?void 0:Z4.userQuery)&&I(xL);_.xt(LVX())}}});
_.dq(function(){_.xt(LVX())});
var d=function(f7){var xL=v().onUpdateText;xL&&_.r4(xL,{form:{userQuery:f7}});I(f7)},b=_.b2(function(f7){d(f7.target.value.trim())},150),W=_.Jd(function(f7){var xL;
L=(xL=f7.target.value)==null?void 0:xL.trim();b(f7);return!1}),K=_.Jd(function(f7){f7.key==="Enter"&&(S()||E())&&(d(f7.target.value.trim()),R());
return!1}),O=function(f7,xL){B(xL);
if(xL){if(v().isMultiTurnFlow&&!L){var kL;d((kL=f7==null?void 0:f7.text)!=null?kL:"")}v().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&R()}else I(L)},R=function(){var f7=void 0,xL=_.k(v().nextButtonViewModel,_.fH),kL,Z4;
if(xL==null?0:(kL=xL.loggingDirectives)==null?0:(Z4=kL.clientVeSpec)==null?0:Z4.uiType){var S2,s8;f7=_.En((S2=xL.loggingDirectives)==null?void 0:(s8=S2.clientVeSpec)==null?void 0:s8.uiType)}(xL=v().onNextStepCommand)&&_.r4(xL,{clickedVisualElement:f7})};
D=_.va("yt-talk-to-recs-view-model");var vA={};return _.F("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:D},_.F("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.F(_.c4,{data:function(){return v().topCornerButton}},{buttonViewModel:_.s$})),_.F("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.F("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.F(_.IY,{text:function(){return v().title}}),_.F(_.z,{cond:a,
then:function(){return _.F("sup",{class:"ytwTalkToRecsSuperScript"},_.F(_.IY,{text:a}))}})),_.F("div",{class:"ytwTalkToRecsSubtitle"},_.F(_.IY,{text:function(){return v().subtitle}})),_.F("div",{class:"ytwTalkToRecsResultsShelf"},_.F(_.z,{cond:Q,
then:function(){return _.F(_.c4,{data:Q},{chipsShelfViewModel:function(f7){return _.F("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.F(_.VP,{data:f7.data,callback:O,selectionBehavior:Z}))}})}}),_.F(_.z,{cond:G,
then:function(){return _.F(_.c4,{data:G},{horizontalShelfViewModel:function(f7){return _.F("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.F(_.fd,{data:f7.data,thumbnailAspectRatio:0}))}})}})),_.F("div",{class:_.S3("ytwTalkToRecsRefinementContainer",(vA.ytwTalkToRecsBottomMargin=function(){return v().isMultiTurnFlow},vA))},_.F(_.z,{cond:f,
then:function(){return _.F("div",{class:"ytwTalkToRecsUserInputBox"},_.F("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:x,value:E,"on:input":W,"on:keyup":K,maxlength:200}))}}),_.F(_.c4,{data:function(){return v().isMultiTurnFlow?v().nextButtonViewModel:void 0}},{buttonViewModel:function(f7){return _.F("div",{class:"ytwTalkToRecsFlowControlButtons"},_.F(_.s$,{data:f7.data,
buttonOverrides:A}))}}),_.F(_.c4,{data:U},{buttonViewModel:function(f7){return _.F("div",{class:"ytwTalkToRecsFlowControlButtons"},_.F(_.s$,{data:f7.data,
onClick:function(){var xL=_.k(v().resetButtonViewModel,_.fH);d(E());(xL=xL==null?void 0:xL.onTap)&&_.r4(xL)}}))}}))))},"Kh"),"yt-talk-to-recs-view-model",{props:{data:_.gj}});var J22={sources:[{clientResource:{imageName:"CHECK"}}]};_.Ndm=_.H(function(D){var v=_.va("div");D=_.fb(D,{error:void 0});var h=D.data,a=D.error,Q=D.onSelected;D=_.P(_.lL(function(){return Nad(h())}));
var G=D.next().value,x=D.next().value;XKC(h,function(E){x(E);var I,S,B=loK((I=h().options)==null?void 0:(S=I[E])==null?void 0:S.value,h().type);Q==null||Q(B);v.value.focus()});
D=_.Jd(function(){if(!h().disabled){var E=h(),I=G(),S=v.value;E.options&&(E=pKr(E.options,I,E.label),_.xd().resolve(_.vM).openSheet({viewModel:E},S))}});
var f=_.JCf(),C=function(){return!!a()},U=function(){return!!h().disabled},L={},Z={};
return _.F("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.F("div",{class:_.S3("ytDropdownViewModelDropdownContainer",(L.ytDropdownViewModelDropdownContainerErrorBorder=C,L.ytDropdownViewModelDropdownContainerDisabled=U,L)),"on:click":D,el:v,role:"combobox",tabindex:0,"on:keydown":f,"aria-invalid":C,"aria-disabled":U,"aria-describedby":function(){return C()?"dropdown-view-model-error":void 0}},_.F("div",{class:"ytDropdownViewModelText"},YWU(h,C,G),BaI(h,G)),_.F("div",{class:_.S3("ytDropdownViewModelChevronDown",
(Z.ytDropdownViewModelChevronDownDisabled=U,Z))},_.F(_.Y5,{icon:"CHEVRON_DOWN"}))),c2$(h,a))},"Lh");_.zh(_.H(function(D){var v=D.data;var h=function(Q){var G=qW$(v());G.videoMetadata||(G.videoMetadata={});G.videoMetadata.sponsorshipsMetadata||(G.videoMetadata.sponsorshipsMetadata={});G.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Q)},a=function(Q){var G=qW$(v());
G.scheduledRedirectMetadata||(G.scheduledRedirectMetadata={});G.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Q)};
return _.F("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.F("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.F("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.F(_.IY,{text:function(){return v().title}}),_.F(_.Y5,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.F(_.IY,{text:function(){return v().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.F(_.c4,{data:function(){return v().tierChoices}},{dropdownViewModel:function(Q){return _.F("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.F(_.Ndm,{data:Q.data,
onSelected:h}))}}),_.F(_.c4,{data:function(){return v().startTimeChoices}},{dropdownViewModel:function(Q){return _.F("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.F(_.Ndm,{data:Q.data,
onSelected:a}))}}),_.F(_.IY,{text:function(){return v().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.F("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.F(_.c4,{data:function(){return v().scheduleButton}},{panelFooterViewModel:_.YS})))},"Mh"),"ytfz-schedule-fanzone-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;D=D.className===void 0?"":D.className;var h=_.l7(gd3,function(){return v().flowStateEntityKey||""}),a={};
a=_.S3("ytFlowBottomBarViewModelFlowBottomBarButtons",(a.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},a));
var Q={},G=_.S3("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",a,(Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Q));
Q={};var x=_.S3("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",a,(Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Q));
a={};a=_.S3("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(a.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},a.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},a.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return v().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
a));
D=_.S3("ytFlowBottomBarViewModelHost",D);return _.F("yt-flow-bottom-bar-view-model",{class:D},_.F(_.z,{cond:function(){var f;return(f=v())==null?void 0:f.textSection},
then:function(f){return _.F("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.F(_.IY,{text:f}))}}),_.F("div",{class:a},_.F(_.c4,{data:function(){return v().secondaryButton}},{buttonViewModel:function(f){return _.F(_.s$,{data:f.data,
className:x})}}),_.F(_.c4,{data:function(){return v().primaryButton}},{buttonViewModel:function(f){return _.F(_.s$,{data:f.data,
className:G,buttonOverrides:function(){var C;return{disabled:!((C=h())==null||!C.primaryButtonDisabled)}}})}})))},"Nh"),"yt-flow-bottom-bar-view-model",{props:{data:_.gj,
className:_.C_}});var YiK="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Xl=function(){var D=_.c.apply(this,arguments)||this;D.enableScrollingFix=!0;D.bottomBar=!1;D.fitContent=!1;return D};
_.J(Xl,_.c);_.V=Xl.prototype;_.V.ready=function(){_.g("enable_pdp_icon_prefetch")&&_.zlr(_.xd().resolve(_.ux),0,YiK)};
_.V.focus=function(D){this.topBar?_.v1(this.topBar,D):this.paperDialog.focus(D)};
_.V.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19147_scroller&&(this.JSC$19147_scroller.dialogElement=this.paperDialog,this.JSC$19147_scroller.attached&&typeof this.JSC$19147_scroller.attached==="function"&&this.JSC$19147_scroller.attached())};
_.V.onDataChanged=function(){var D;this.fitContent=!((D=this.data)==null||!D.fitContent);var v;this.bottomBar=!((v=this.data)==null||!v.bottomBar)};
_.V.onProgressChanged=function(){var D,v,h=((v=(D=this.data)==null?void 0:D.progress)!=null?v:0)*100;this.progressElement.style.width=h+"%"};
_.V.isProgressHidden=function(){var D;return!((D=this.data)==null?0:D.progress)};
_.V.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(D){return D&&!D.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
Xl.prototype.onProgressChanged=Xl.prototype.onProgressChanged;Xl.prototype.onDataChanged=Xl.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Xl.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Xl.prototype,"enableScrollingFix",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Xl.prototype,"bottomBar",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Xl.prototype,"fitContent",void 0);_.e([_.Br("#progress"),_.n("design:type",HTMLElement)],Xl.prototype,"progressElement",void 0);_.e([_.Br("#scroller"),_.n("design:type",Object)],Xl.prototype,"JSC$19147_scroller",void 0);_.e([_.Br("ytd-flow-top-bar-renderer"),_.n("design:type",HTMLElement)],Xl.prototype,"topBar",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xl.prototype,"onDataChanged",null);_.e([_.Ni("data.progress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xl.prototype,"onProgressChanged",null);_.e([_.m({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Xl);
_.w(Xl,"ytd-flow-step-renderer",function(){if(QM$!==void 0)return QM$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return QM$=D},{mode:1});var Aa=function(D){this.resolveCommand=D;this.steps={}},Bd3=function(D,v){v=_.P(v||[]);
for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=Object.values(h)[0],Q=void 0;if((Q=a)==null?0:Q.stepId)D.steps[a.stepId]=h}},ABd=function(D,v){var h,a,Q,G,x;
return _.M(function(f){if((h=D.state)==null||!h.currentStepId)return f.return(void 0);a=cBI(D);if(!a)return f.return(XTC(D));if(Q=_.k(a,_.p1I)){var C;((C=Q.screenLoggingData)==null?0:C.screenVeType)&&_.bl(_.c8(),Q.screenLoggingData.screenVeType);((G=Q)==null?0:G.onStepStartCommand)&&D.resolveCommand((x=Q)==null?void 0:x.onStepStartCommand,{})}if(Q&&v){C=Q;var U,L,Z,E;((U=v.flowLoggingData)==null?0:U.eventNamespace)&&((L=C.flowEventData)==null?0:L.eventType)&&((Z=C.flowEventData)==null?0:Z.eventMetadata)&&
((E=v.flowLoggingData)==null?0:E.flowType)&&(U=_.kV(v.flowLoggingData.eventNamespace,C.flowEventData.eventType,C.flowEventData.eventMetadata),_.SL(_.JQ(),U,v.flowLoggingData.flowType));v.steps&&!v.steps.includes(a)&&v.steps.push(a)}return f.return(a)})};
Aa.prototype.back=function(){var D;(D=this.state)!=null&&D.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Aa.prototype.handleUpdateFlowCommand=function(D){D.steps&&Bd3(this,D.steps);D.entityUpdateCommand&&this.resolveCommand(D.entityUpdateCommand,{});D.flowContinuationCommand&&(D=D.flowContinuationCommand)&&(this.getFlowContinuationCommand=D);this.awaitFlowContinuation&&(this.awaitFlowContinuation(cBI(this)),this.awaitFlowContinuation=void 0)};
Aa.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var XTC=function(D){return _.M(function(v){return D.getFlowContinuationCommand?v.return(new Promise(function(h){D.awaitFlowContinuation=h;D.getFlowContinuationCommand&&D.resolveCommand(D.getFlowContinuationCommand,{flow_state:D.state})})):v.return(Promise.resolve(void 0))})},cBI=function(D){var v;
if((v=D.state)!=null&&v.currentStepId)return D.steps[D.state.currentStepId]};
_.GT.Object.defineProperties(Aa.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.state)==null?void 0:D.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.state)!=null&&D.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(v,h){h.key&&h.value&&(v[h.key]=h.value);return v},{})}}});var qe=function(){var D=_.c.apply(this,arguments)||this;D.flowState=new Aa(function(v,h){h=h===void 0?{}:h;_.pb.instance.resolveCommand(v,{form:{form:h,element:D.hostElement}})});
D.initialState=!0;D.isLoading=!1;D.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};D.containsTalkToRecs=!1;return D};
_.J(qe,_.c);_.V=qe.prototype;_.V.onPopupClosed=function(D){D&&this.hostElement!==D.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.V.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.V.focus=function(D){var v=this;_.hD(function(){var h=_.ZW(v.hostElement).querySelector("ytd-flow-step-renderer");(h==null?0:h.topBar)?h.focus(D):v.topBar&&_.v1(v.topBar,D)},1)};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.V.computeTopBarHidden=function(D){var v;return!((v=_.k(D,_.p1I))==null||!v.topBarOverride)};
_.V.dataChanged=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1){((v=D.data)==null?0:v.steps)&&Bd3(D.flowState,D.data.steps);if((h=D.data)==null?0:h.flowContinuationCommand){var Q=D.flowState,G=D.data.flowContinuationCommand;G&&(Q.getFlowContinuationCommand=G)}return a.yield(ABd(D.flowState,D.data),2)}D.currentFlowStep=a.yieldResult;_.YI(a)})};
_.V.flowChanged=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1){if(!D.flow)return h.return();D.flowState.state=D.flow;D.isLoading=!0;return h.yield(ABd(D.flowState,D.data),2)}v=h.yieldResult;if(!v||D.flow.isLoading)return h.return();D.currentFlowStep=v;D.initialState=!1;D.isLoading=!1;D.autofocusAndRefit();D.updateContainsTalkToRecs();_.YI(h)})};
_.V.updateContainsTalkToRecs=function(){var D,v=(D=_.k(this.currentFlowStep,_.p1I))==null?void 0:D.content;this.containsTalkToRecs=!!v&&!!_.k(v,lM$)};
_.V.autofocusAndRefit=function(){var D=this,v=_.xd().resolve(_.PV(_.Xw)),h=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),a=document.querySelector("yt-report-form-confirmation-page-view-model"),Q=document.querySelector("yt-report-form-details-page-view-model"),G=document.querySelector("yt-report-form-reason-select-page-view-model"),x=document.querySelector("yt-contributor-zero-state-view-model"),
f=document.querySelector("yt-structured-context-note-view-model"),C=document.querySelector("yt-note-view-model");(!h&&v&&v.isKeyBoardInUse()||a||!h&&Q||!h&&G||x||f||C)&&_.hX(this.hostElement);_.$R(this,function(){_.F1(D.hostElement,"yt-refit")})};
_.V.handleUpdateFlowCommand=function(D){this.data&&(D=_.k(D,JXm),D.targetId===this.data.targetId&&(D.flowContinuationCommand&&(this.data.flowContinuationCommand=D.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(D),this.autofocusAndRefit()))};
_.V.handleFlowNextStepCommand=function(D){this.data&&this.flow&&this.flow.key&&(D=_.k(D,kCS),D.targetId===this.data.targetId&&(D=D.stepId||"",this.ytdReduxBehavior.dispatch(_.sy("flowStateEntity",this.flow.key,{currentStepId:D,stepIdStack:(this.flow.stepIdStack||[]).concat(D)}))))};
_.V.handleFlowPrevStepCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.k(D,S5C),D.targetId===this.data.targetId)){var v=[].concat(_.j_(this.flow.stepIdStack||[]));v.length>1?(v.pop(),this.ytdReduxBehavior.dispatch(_.sy("flowStateEntity",this.flow.key,{currentStepId:v[v.length-1],stepIdStack:v}))):D.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(D.onFirstStepCommand)}};
_.V.handleYpcCancelRecurrenceCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.k(D,X1I),D.targetId===this.data.targetId&&D.endpointCommand)){var v=_.k(this.flow,AXS);v&&_.k(D.endpointCommand,_.Wps)&&(_.k(D.endpointCommand,_.Wps).feedbackData=v.surveyFeedback);this.ytComponentBehavior.resolveCommand(D.endpointCommand)}};
_.V.handlePartialUpdateFlowStateEntity=function(D){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.sy("flowStateEntity",this.flow.key,D,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
qe.prototype.flowChanged=qe.prototype.flowChanged;qe.prototype.dataChanged=qe.prototype.dataChanged;qe.prototype.onPopupClosed=qe.prototype.onPopupClosed;_.e([_.l(_.Mm),_.n("design:type",Object)],qe.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],qe.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],qe.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],qe.prototype,"initialState",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],qe.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Object)],qe.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],qe.prototype,"currentFlowStep",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],qe.prototype,"onPopupClosed",null);_.e([_.Y({selectorArgs:["data.flowStateEntityKey"],selector:gd3}),_.n("design:type",Object)],qe.prototype,"flow",void 0);_.e([_.Br("ytd-flow-top-bar-renderer"),_.n("design:type",HTMLElement)],qe.prototype,"topBar",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],qe.prototype,"dataChanged",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],qe.prototype,"containsTalkToRecs",void 0);_.e([_.qi("flow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],qe.prototype,"flowChanged",null);_.e([_.m({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],qe);
_.qiS=_.Zp()(qe,"ytd-flow-root-renderer",function(){if($bs!==void 0)return $bs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return $bs=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var bmX;var iA=null;_.zh(_.H(function(D){return _.F("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.F("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.F(_.IY,{text:function(){return D.data().text}}),_.F("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Oh"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.gj}});var dc3=_.H(function(D){var v=D.playerControlsProps;var h=D.isShortsPage;return _.F("yt-bigboard",null,_.F(_.z,{cond:function(){return v().isDragging},
then:function(){return _.F("div",{class:"ytBigboardStoryboardHost"},_.F(_.GS2,{progressBarProps:v,isShortsPage:h}))}}))},"Ph");
dc3.idomCompat=!0;_.bV={ACCOUNT_LABEL:WI("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:WI("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:WI("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:WI("AD_BADGE_HINT"),AD_BADGE_TEXT:WI("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:WI("ALL_CHANNELS_LABEL"),AMBIENT_MODE:WI("AMBIENT_MODE"),AMBIENT_MODE_OFF:WI("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:WI("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:WI("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:WI("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:WI("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:WI("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:WI("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:WI("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:WI("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:WI("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:WI("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:WI("AUTO_ZOOM","Auto zoom"),BACK:WI("BACK"),CANCEL:WI("CANCEL"),CHANNEL_SWITCHER_LABEL:WI("CHANNEL_SWITCHER_LABEL"),CLOSE:WI("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:WI("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:WI("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:WI("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:WI("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:WI("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:WI("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:WI("COMMENT_MODAL_CONTENT"),CONFIRM_OK:WI("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:WI("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:WI("COPIED_TO_CLIPBOARD"),COPY:WI("COPY"),COPY_DEBUG_INFO:WI("COPY_DEBUG_INFO"),COPY_EMBED_CODE:WI("COPY_EMBED_CODE"),
COPY_LINK_LABEL:WI("COPY_LINK_LABEL"),COPY_VIDEO_URL:WI("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:WI("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:WI("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:WI("DELETE_FROM_DOWNLOADS"),DIALOG:WI("DIALOG"),DONE:WI("DONE"),DOWNLOAD:WI("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:WI("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:WI("FLAG_CONFIRM"),FLAG_CONTENT:WI("FLAG_CONTENT"),FLAG_LABEL:WI("FLAG_LABEL"),FLAG_TITLE:WI("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:WI("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:WI("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:WI("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:WI("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:WI("HIDE_SEARCH_FILTERS_LABEL"),HOME:WI("HOME","Home"),INVALID_RESPONSE_RECEIVED:WI("INVALID_RESPONSE_RECEIVED"),LIBRARY:WI("LIBRARY","Library"),LISTENING:WI("LISTENING"),LOADING:WI("LOADING"),LONG_PRESS_MIC_TO_SPEAK:WI("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:WI("LOOP"),MENU_DESKTOP:WI("MENU_DESKTOP"),
MENU_EXIT:WI("MENU_EXIT"),MENU_FEEDBACK:WI("MENU_FEEDBACK"),MENU_HELP:WI("MENU_HELP"),MENU_IMPRESSUM:WI("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:WI("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:WI("MENU_SETTINGS"),MENU_SIGN_IN:WI("MENU_SIGN_IN"),MENU_TITLE:WI("MENU_TITLE"),MENU_YOUR_DATA:WI("MENU_YOUR_DATA"),MORE_INFO:WI("MORE_INFO"),MORE_OPTIONS:WI("MORE_OPTIONS"),MUTE_VOLUME:WI("MUTE_VOLUME"),NEW_PLAYLIST:WI("NEW_PLAYLIST"),NEXT_VIDEO:WI("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:WI("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:WI("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:WI("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:WI("NOT_FOUND_TITLE"),NO_DOWNLOADS:WI("NO_DOWNLOADS"),NO_MIC_INPUT:WI("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:WI("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:WI("OOPS_MESSAGE"),OPEN_APP:WI("OPEN_APP"),OPEN_YOUTUBE:WI("OPEN_YOUTUBE"),PAUSE:WI("PAUSE"),PLAY:WI("PLAY"),PLAYER_CAPTION:WI("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:WI("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:WI("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:WI("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:WI("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:WI("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:WI("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:WI("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:WI("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:WI("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:WI("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:WI("PLAYER_MINIMIZE"),PLAYER_NEXT:WI("PLAYER_NEXT"),PLAYER_PAUSE:WI("PLAYER_PAUSE"),PLAYER_PLAY:WI("PLAYER_PLAY"),
PLAYER_PREVIOUS:WI("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:WI("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:WI("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:WI("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:WI("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:WI("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:WI("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:WI("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:WI("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:WI("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:WI("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:WI("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:WI("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:WI("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:WI("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:WI("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:WI("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:WI("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:WI("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:WI("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:WI("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:WI("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:WI("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:WI("PLAY_ALL"),PLEASE_FIX_ERRORS:WI("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:WI("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:WI("PREVIOUS_VIDEO"),PRIVACY_POLICY:WI("PRIVACY_POLICY"),RELOAD:WI("RELOAD"),REQUIRED_LABEL:WI("REQUIRED_LABEL"),SAVE_PLAYLIST:WI("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:WI("SCRUB_SLIDE_USER_EDU"),SEARCH:WI("SEARCH","Search"),
SEARCH_APPEND_LABEL:WI("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:WI("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:WI("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:WI("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:WI("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:WI("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:WI("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:WI("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:WI("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:WI("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:WI("SEEK_SLIDER"),SETTINGS_LABEL:WI("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:WI("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:WI("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:WI("SHOW_LESS"),SHOW_MORE:WI("SHOW_MORE"),SHOW_PLAYER_CONTROLS:WI("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:WI("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:WI("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:WI("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:WI("SIGN_IN_ON_WEB"),STABLE_VOLUME:WI("STABLE_VOLUME"),STABLE_VOLUME_OFF:WI("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:WI("STABLE_VOLUME_ON"),STATS_FOR_NERDS:WI("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:WI("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:WI("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:WI("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:WI("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:WI("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:WI("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:WI("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:WI("TIMESTAMP_SECONDS"),TOGGLE_OFF:WI("TOGGLE_OFF"),TOGGLE_ON:WI("TOGGLE_ON"),TRENDING:WI("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:WI("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:WI("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:WI("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:WI("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:WI("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:WI("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:WI("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:WI("VIDEO_LINK_LABEL")};var jrC=_.H(function(D){var v=D.playerApi;D=_.va("button",function(a){_.SE(a,36843)});
var h=WI("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.F("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.F("button",{el:D,class:"ytPlayerControlsJumpForwardButtonButton",title:h,"aria-label":h,"on:click":_.Jd(function(){_.JW(36843);v&&v().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.F("span",null,_.F(_.Y5,{icon:"FAST_FORWARD"}))))},"Qh");var srC=_.H(function(D){var v=D.appApi;D=_.va("button",function(a){_.SE(a,62946)});
var h=WI("OPEN_IN_MINIPLAYER");return _.F("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.F("button",{el:D,class:"ytMiniplayerButtonButton",title:h,"aria-label":h,"on:click":_.Jd(function(){_.JW(62946);var a,Q;(Q=(a=v()).openInMiniplayer)==null||Q.call(a);return!1})},_.F(_.Y5,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Rh");var mcr=_.H(function(D){var v=D.playerApi;D=_.va("button",function(G){_.SE(G,142812)});
var h=_.P(_.Zq(!1,void 0,"eOMRAb")),a=h.next().value,Q=h.next().value;h=function(){return WI("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(a()?1:2)})};
return _.F("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.F("button",{el:D,class:"ytPlaybackSpeedButtonButton",title:h,"aria-label":h,"on:click":_.Jd(function(){_.JW(142812);if(v){var G=v(),x=a();G.setPlaybackRate(x?1:2);Q(!a())}return!1})},_.F("span",null,_.F(_.Y5,{icon:function(){return a()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Sh");var Hmm=_.H(function(D){var v=D.title;var h=D.ariaLabel;var a=D.icon;var Q=D.command;var G=D.veType;D=_.va("button",function(x){G&&_.SE(x,G())});
return _.F("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.F("button",{el:D,class:"ytdThumbnailOverlayButtonButton",title:v,"aria-label":h,"on:click":_.Jd(function(){G&&_.JW(G());Q&&_.xd().resolve(_.fx).resolveCommand(Q())})},_.F(_.Y5,{icon:a})))},"Th");var yg="";var yBK=_.H(function(D){var v=D.playerControlsProps,h=D.onClickFn;D=_.SM(function(){var G=v(),x=-1;G.captionsAvailable&&(x=G.captionsEnabled?1:0);return x},void 0,"MZ0Wqe");
var a=_.SM(function(){var G=v();return G.captionsAvailable?_.p1(G.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.p1("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Q=_.SM(function(){var G=v();
G=G.captionsAvailable?G.captionsEnabled:void 0;return G},void 0,"fhuQRe");
return _.F("yt-closed-captions-toggle-button",null,_.F(_.OJC,{captionIconType:D,ariaLabel:a,ariaPressed:Q,onClick:function(G){var x=v();if(x.captionsAvailable){var f=x.playerApi;if(f){var C=x.playerApi;if(C){var U=yg;if(U){C=C.getOption("captions","track");var L;yg=(L=C?C.displayName:null)!=null?L:U}else _.kK(C)?(U=_.ua2(C),yg=U.length?(L=pVZ(U))?L.displayName:U[0].displayName:""):yg=""}lXr(f);_.g("mweb_disable_set_state_captions_killswitch")&&x.setState({captionsEnabled:!x.captionsEnabled})}}var Z,
E;(E=(Z=x.appApi).showCaptionsToggleToast)==null||E.call(Z,x);h==null||h(G)},
isOverlay:!0}))},"Uh");var wTS=_.H(function(D){var v=D.data;return _.F("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.F(_.fn,{data:function(){return{type:17,text:_.IaL(v().label)}}}))},"Vh");var euC=_.H(function(D){var v=_.S3("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return D.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return D.size()==="small"?D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.F("animated-seek-arrows",{class:_.S3("ytPlayerControlsAnimatedSeekArrowsHost")},_.F("span",{class:v}),_.F("span",{class:v}),_.F("span",{class:v}))},"Wh");
euC.idomCompat=!0;var nR3=_.H(function(){var D=_.p1("PLAYER_SECONDS",{seconds_placeholder:"30"}),v=_.P(_.Zq(!1,void 0,"iRJu8c")),h=v.next().value,a=v.next().value,Q=_.P(_.Zq(!1,void 0,"MPnizf"));v=Q.next().value;var G=Q.next().value;Q={};var x=_.S3("jumpForwardOverlayOverlay",(Q.jumpForwardOverlayOverlayHidden=v,Q));_.jA(function(){var f=null,C=null,U=function(){f!==null&&_.c7().cancelJob(f);C!==null&&_.c7().cancelJob(C);G(!0);a(!0);_.I3(_.c7(),function(){G(!1)});
f=_.I3(_.c7(),function(){G(!0);C=_.I3(_.c7(),function(){a(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",U);_.dq(function(){window.removeEventListener("jump-forward-clicked",U)})});
return _.F("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.F(_.z,{cond:h,then:function(){return _.F("div",{class:x},_.F(euC,{direction:1,size:"large"}),_.F("div",null,D))}}))},"Xh");var OmC=_.bV.MUTE_VOLUME,K3$=_.bV.UNMUTE_VOLUME,TdK=_.H(function(D){var v=D.muteIconType;var h=D.onClick;var a=D.useOutlineIcon;var Q=D.useDelhiIcons;D=_.va("button",function(f){_.SE(f,28662)});
var G=function(){var f=v(),C=a==null?void 0:a(),U=Q==null?void 0:Q(),L="",Z="";switch(f){case -1:case 0:L=C?"VOLUME_OFF":U?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";Z=K3$;break;case 1:L=C?"VOLUME_UP_OUTLINE":U?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";Z=OmC;break;case 2:L=C?"VOLUME_DOWN_OUTLINE":U?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";Z=OmC;break;default:_.K4(f)}return{iconName:L,ariaLabel:Z}},x=function(){return G().ariaLabel};
return _.F("ytm-mute-button",{class:"ytmMuteButtonHost"},_.F("button",{el:D,class:"ytmMuteButtonButton",title:x,"aria-label":x,"on:click":_.Jd(function(f){_.JW(28662);h==null||h(f);return!1})},_.F("span",null,_.F(_.Y5,{icon:function(){return G().iconName}}))))},"Yh");var Ru3=_.H(function(D){var v=D.volumeProps;var h=D.onClickFn;var a=D.useOutlineIcon;var Q=D.useDelhiIcons;return _.F("yt-mute-toggle-button",null,_.F(TdK,{muteIconType:function(){var G=v();return G.volumeMuted||G.volume===0?0:G.volume>50?1:2},
onClick:function(G){var x=v().playerApi;x&&(x.isMuted()?x.unMute():x.mute(!1));h==null||h(G)},
useOutlineIcon:function(){return!(a==null||!a())},
useDelhiIcons:function(){return!(Q==null||!Q())}}))},"Zh");
Ru3.idomCompat=!0;var imr=_.H(function(D){var v=D.data;var h=_.va("ytm-paid-content-overlay-renderer");return _.F("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:h,"on:animationend":_.Jd(function(){h.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.F(_.Ak,{command:function(){return v().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.F(_.z,{cond:function(){var a;return(a=v().icon)==null?void 0:a.iconType},
then:function(){return _.F("span",null,_.F(_.Y5,{icon:function(){var a;return(a=v().icon)==null?void 0:a.iconType}}))}}),_.F("div",{class:"ytmPaidContentOverlayText"},_.F(_.IY,{text:function(){return v().text}})),_.F(_.z,{cond:function(){return v().navigationEndpoint},
then:function(){return _.F(_.Y5,{icon:"CHEVRON_RIGHT"})}})))},"$h");
imr.idomCompat=!0;var Wdr=[].concat(_.j_([{register:function(D){var v=GCC(D),h;(h=D().playerApi)==null||h.addEventListener("onVolumeChange",v);return function(){}}},
{register:function(D){var v=Vj3(D);D=D().playerApi;D==null||D.addEventListener("captionschanged",v);D==null||D.addEventListener("captionssettingschanged",v);D==null||D.addEventListener("onCaptionsTrackListChanged",v);return function(){}}},
{register:function(D){if(!_.g("mweb_screenreader_accessible_player"))return function(){};
var v=PDI(D),h=document.querySelector("video");h==null||h.addEventListener("touchend",v);return function(){h==null||h.removeEventListener("touchend",v)}}},
{register:function(D){if(!_.g("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var v=PDI(D),h=document.querySelector("video");h==null||h.addEventListener("focus",v);return function(){h==null||h.removeEventListener("focus",v)}}}]),[{register:function(D){var v=hlr(D),h;
(h=D().playerApi)==null||h.addEventListener("onStateChange",v);return function(){}}},
{register:function(D){var v=aM$(D),h;(h=D().playerApi)==null||h.addEventListener("onPlaybackRateChange",v);return function(){}}},
{register:function(D){var v=$YK(D),h;(h=D().playerApi)==null||h.addEventListener("onVideoDataChange",v);return function(){}}},
{register:function(D){var v=QBr(D),h,a;(h=D())==null||(a=h.playerApi)==null||a.addEventListener("onVideoProgress",v);return function(){}}}]);var W3s=_.H(function(D){var v=D.data;var h=function(){return _.p1("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+v().playbackRate})};
return _.F(_.z,{cond:function(){return v().playbackRate&&v().playbackRate!==1},
then:function(){return _.F("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.F("div",{class:"ytPlaybackRateOverlayOverlay"},_.F(euC,{direction:1,size:"small"}),_.F("div",{class:"ytPlaybackRateOverlayLabel"},h)))}})},"bi");var tCX=_.H(function(D){var v=D.data;return _.F("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.F(_.z,{cond:function(){var h,a=(h=v())==null?void 0:h.playerResponse,Q;return a==null?void 0:(Q=a.paidContentOverlay)==null?void 0:Q.paidContentOverlayRenderer},
then:function(h){return _.F(imr,{data:h})}}))},"di"),rBr=_.H(function(D){var v=D.props;
var h=D.data;var a=D.options;var Q=function(){var U,L,Z,E;return(U=h())==null?void 0:(L=U.playerResponse)==null?void 0:(Z=L.playerConfig)==null?void 0:(E=Z.inlinePlaybackConfig)==null?void 0:E.showAudioControls},G=function(){var U,L;
if(Q()&&((U=a())==null?void 0:(L=U.additionalButton)==null?void 0:L.button)!==void 0){var Z,E,I;U=(Z=h())==null?void 0:(E=Z.playerApi)==null?void 0:(I=E.getSize())==null?void 0:I.height;if(!(U===void 0||U<180)){var S,B;return(S=a())==null?void 0:(B=S.additionalButton)==null?void 0:B.button}}},x=function(){var U,L;
return(U=a())==null?void 0:(L=U.additionalButton)==null?void 0:L.thumbnailOverlayButtonRenderers},f=function(){var U,L;
return(U=a())==null?void 0:(L=U.additionalButton)==null?void 0:L.thumbnailOverlayButtonViewModels},C=function(){var U=[_.F(Ru3,{volumeProps:v}),
_.F(yBK,{playerControlsProps:v})];G()===1&&U.push(_.F(jrC,{playerApi:function(){return v().playerApi}}));
G()===2&&U.push(_.F(srC,{appApi:function(){return v().appApi}}));
G()===3&&U.push(_.F(mcr,{playerApi:function(){return v().playerApi}}));
var L=x();if(G()===4&&L){L=_.P(L);for(var Z=L.next(),E={};!Z.done;E={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$593:void 0},Z=L.next()){Z=Z.value;E.tooltip$jscomp$2=Z.tooltip;var I=void 0,S=void 0;E.ariaLabel$jscomp$20=((I=Z.accessibility)==null?void 0:(S=I.accessibilityData)==null?void 0:S.label)||E.tooltip$jscomp$2;I=void 0;E.icon$jscomp$51=(I=Z.icon)==null?void 0:I.iconType;E.command$jscomp$593=Z.command;E.tooltip$jscomp$2&&E.ariaLabel$jscomp$20&&E.icon$jscomp$51&&
U.push(_.F(Hmm,{title:function(B){return function(){return B.tooltip$jscomp$2}}(E),
ariaLabel:function(B){return function(){return B.ariaLabel$jscomp$20}}(E),
icon:function(B){return function(){return B.icon$jscomp$51}}(E),
command:function(B){return function(){return B.command$jscomp$593}}(E)}))}}L=f();
if(G()===4&&L)for(L=_.P(L),Z=L.next(),E={};!Z.done;E={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$594:void 0},Z=L.next())Z=Z.value,E.tooltip$jscomp$3=Z.title,E.ariaLabel$jscomp$21=Z.accessibilityText||E.tooltip$jscomp$3,E.icon$jscomp$52=Z.iconName,E.command$jscomp$594=_.Rq(Z.onTap),E.tooltip$jscomp$3&&E.ariaLabel$jscomp$21&&E.icon$jscomp$52&&U.push(_.F(Hmm,{title:function(B){return function(){return B.tooltip$jscomp$3}}(E),
ariaLabel:function(B){return function(){return B.ariaLabel$jscomp$21}}(E),
icon:function(B){return function(){return B.icon$jscomp$52}}(E),
command:function(B){return function(){return B.command$jscomp$594}}(E)}));
return U};
return _.F(_.z,{cond:Q,then:function(){return _.F("div",{class:"ytInlinePlayerControlsTopRightControls"},_.F(_.Xd,{each:C},function(U){return _.F("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.F("div",{class:"ytInlinePlayerControlsButtonIcon"},U))}))}})},"ei"),vEX=_.H(function(D){var v=D.props;
var h=D.data;var a=D.options;D={};D=_.S3("ytInlinePlayerControlsBottomRightControls",(D.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Q;return Mjs(h(),a())&&((Q=a())==null?void 0:Q.insetProgressBar)&&(v().isHovering||v().isDragging)},D));
return _.F("div",{class:D},_.F(un$,{data:h}),_.F(_.z,{cond:function(){var Q;return!((Q=a())==null?0:Q.hideTimeDisplay)},
then:function(){return _.F(DFS,{props:v,data:h})}}))},"fi"),un$=_.H(function(D){var v=D.data;
return _.F(_.c4,{data:function(){var h;return Rdd((h=v())==null?void 0:h.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:wTS})},"gi"),DFS=_.H(function(D){var v=D.props;
var h=D.data;return _.F(_.z,{cond:function(){return v().isLive},
then:function(){return _.F(hyr,null)},
else:function(){return _.F(aD$,{props:v,data:h})}})},"hi"),aD$=_.H(function(D){var v=D.props;
var h=D.data;var a=_.SM(function(){var Q;return iLS((Q=h())==null?void 0:Q.thumbnailOverlays)},void 0,"tLs0gd");
return _.F("div",{class:_.S3("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.bV.PLAYER_TIME_ELAPSED+" "+_.fuL(v().playedTime)}},_.F(_.fn,{data:function(){var Q=_.fuL(v().videoDuration-v().playedTime);
return Object.assign({},{type:17,text:Q},a())}}))},"ii"),hyr=_.H(function(){var D=_.S3("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.F("div",{class:D},_.F(_.fn,{data:{type:18,text:_.bV.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ji"),$FC=_.H(function(D){var v=D.props;
var h=D.data;var a=D.options;return _.F(_.CWr,{progressBarProps:v,config:function(){var Q,G=_.k((Q=h())==null?void 0:Q.multiMarkersPlayerBar,_.g$R),x;Q=((x=a())==null?0:x.insetProgressBar)?2:1;var f;x=(f=a())==null?void 0:f.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Q,chapterData:G,isInlinePlayback:!0,doSeekOnClick:x,playheadDotBehavior:x?1:0}}})},"ki");_.zh(_.H(function(D){var v=D.data;var h=D.appApi;var a=D.options;var Q=v_b(v,xYd(h));D={};h={};return _.F("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.F("div",{class:_.S3("ytInlinePlayerControlsDarkenedOverlay",(D.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Q().isHovering},D))}),_.F(nR3,null),_.F(W3s,{data:Q}),_.F(tCX,{data:v}),_.F(dc3,{playerControlsProps:Q,
isShortsPage:!1}),_.F("div",{class:_.S3((h.ytInlinePlayerControlsControlsHidden=function(){return Q().isDragging},h))},_.F(rBr,{props:Q,
data:v,options:a}),_.F(vEX,{props:Q,data:v,options:a})),_.F(_.z,{cond:function(){return Mjs(v(),a())},
then:function(){return _.F($FC,{props:Q,data:v,options:a})}}))},"ci"),"yt-inline-player-controls",{props:{data:_.gj,
appApi:_.C_,options:_.gj}});var dH=function(){var D=_.c.apply(this,arguments)||this;D.opts=null;D.playerControlsData=null;D.playerControlsAppApi={openInMiniplayer:function(){D.openInMiniplayer()}};
D.playerControlsOptions={};D.noAnimation=!1;D.playbackIntentTriggered=!1;D.positionData=null;D.hidden=!0;D.active=!1;D.playing=!1;D.videoPreviewDataIndex=0;D.JSC$19205_playerPromise=null;D.player=null;D.enableAudioControls=!1;D.hasBeenUnmuted=!1;D.captionsHaveBeenTurnedOff=!1;D.JSC$19205_playerEvents=new Map;D.videoPreviewFetchRequest=null;D.scheduledPreviewEndJobId=null;D.JSC$19205_preventProgressSaveTimer=null;D.watchEndpointStartTimeUpdaterInterval=null;D.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};D.windowOnBlurFn=function(){D.deactivate()};
return D};
_.J(dH,_.c);_.V=dH.prototype;
_.V.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.V.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19205_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19205_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19205_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19205_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.pZ(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.pZ(this,this.onScroll))};
_.V.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.pZ(this,this.onScroll))};
_.V.onPageTypeChange=function(){this.deactivate()};
_.V.onWindowResized=function(){this.deactivate()};
_.V.onCaptionsChanged=function(D){D=!!D.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!D);this.setCaptionSize()};
_.V.setCaptionSize=function(){var D;if(this.active&&!this.captionsHaveBeenTurnedOff&&((D=this.player)==null?0:D.getCaptionWindowContainerId())){var v;(v=this.player)==null||v.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.V.currentPageAllowed=function(){return!this.isWatchPage};
_.V.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.g("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var D=this.positionData,v=D.initialTopPosition,h=D.initialHorizontalPosition;_.SB(this.hostElement,{"--ytd-video-preview-translate-left":D.finalHorizontalPosition-h+"px","--ytd-video-preview-translate-top":D.finalTopPosition-v+"px","--ytd-video-preview-original-top-position":v+
"px","--ytd-video-preview-original-horizontal-position":h+"px","--ytd-video-preview-initial-scale":"scale("+D.initialScale+")","--ytd-video-preview-width":D.videoPreviewWidth+"px","--ytd-video-preview-height":D.videoPreviewHeight+"px"});return!0};
_.V.isOutOfBounds=function(D){var v=D.initialHorizontalPosition+12;D=v+D.videoPreviewWidth>window.innerWidth;return v<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&v<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&v<72||D};
_.V.handleOpenVideoPreviewAction=function(D){var v=this,h;return _.M(function(a){if(!v.currentPageAllowed())return a.return(0);v.opts=D;return(h=v.alignVideoPreviewForAnimation(D.thumbnail))?a.return(v.activate()):a.return(0)})};
_.V.onMouseLeave=function(D){var v,h;(v=this.opts)==null||(h=v.mouseleaveCallback)==null||h.call(v);this.shouldDeactivateOnMouseLeave(D)&&this.deactivate()};
_.V.onScroll=function(){var D,v;((D=this.opts)==null?0:D.isAutoplay)&&((v=this.opts)==null?0:v.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.V.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.HK.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.V.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.V.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",dH.JSC$19204_DEFAULT_CLICK_LOCATION_BEHAVIOR,dH.JSC$19204_CLICK_LOCATION_ID_MAP)};
_.V.shouldDeactivateOnMouseLeave=function(D){D=D.relatedTarget;if(!D)return!0;var v;return(v=this.opts)!=null&&v.mediaRenderer?!_.EI(this.opts.mediaRenderer).contains(D):!0};
_.V.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.V.onPlaybackStart=function(){var D=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19205_preventProgressSaveTimer=
_.I3(_.HK,function(){D.resetPreventProgressSaveTimer()},1E4);
var v;if((v=this.opts)==null?0:v.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.I3(_.HK,function(){D.hasMultipleVideoPreviews()?D.startPlaybackForNextVideo():D.deactivate()},this.opts.videoPreviewDurationMs);
var h;this.player.setGlobalCrop(((h=this.opts)==null?0:h.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.V.getRoundedCornersSize=function(){var D;if((D=this.opts)==null?0:D.roundedCornersSize){var v;return(v=this.opts)==null?void 0:v.roundedCornersSize}var h;if((h=this.opts)==null?0:h.enableRounding){var a;if(((a=this.opts)==null?void 0:a.thumbnailSize)==="small")return 1;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="medium")return 2;var G;if(((G=this.opts)==null?void 0:G.thumbnailSize)==="large")return 3}return _.g("web_imp_inset_progress_bar")?3:0};
_.V.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.V.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.V.onMediaContainerClick=function(D){this.isShortcutClick(D)||(this.navigateToWatch(D),D.preventDefault(),D.stopPropagation())};
_.V.activate=function(){var D=this,v,h,a,Q,G,x,f,C,U;return _.M(function(L){switch(L.nextAddress){case 1:if(!D.currentPageAllowed())return L.return(0);h=(v=D.videoPreviewData)==null?void 0:v.inlinePlaybackEndpoint;a=_.uL.instance;if(!h||!a)return L.return(0);D.playbackIntentTriggered=!0;((Q=D.opts)==null?0:Q.mediaRenderer)&&((G=D.opts)==null||!G.isAutoplay)&&nzd(D.opts.mediaRenderer,function(){D.deactivate()});
_.$R(D,function(){D.revealPreviewUi()});
x={};_.g("enable_unknown_lact_fix_on_html5")&&(_.xd().resolve(_.qL),x.lact=_.x_());D.videoPreviewFetchRequest=seb(a,D.getInlinePlaybackRequestData(D.videoPreviewData),x);_.gE(L,2);return L.yield(D.videoPreviewFetchRequest,4);case 4:f=L.yieldResult;if(((C=f)==null?void 0:(U=C.playabilityStatus)==null?void 0:U.status)==="OK")return L.return(D.handlePlayerResponse(f));throw Error("$j");case 2:_.NS(L),D.deactivate();case 3:return L.return(1)}})};
_.V.getInlinePlaybackRequestData=function(D){var v,h=_.g("web_imp_player_mute_params")?((v=this.opts)==null?void 0:v.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:D.inlinePlaybackEndpoint,startPlaybackInMutedState:h}};
_.V.handlePlayerResponse=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z,E;return _.M(function(I){if(I.nextAddress==1){h=v.getInlinePlaybackVideoId();if(!(((a=D)==null?0:(Q=a.videoDetails)==null?0:Q.videoId)&&v.currentPageAllowed()&&v.playbackIntentTriggered&&v.opts&&h))return v.deactivate(),I.return(0);if(D.videoDetails.videoId!==h)return I.return(0);v.enableAudioControls=!!((G=D.playerConfig)==null?0:(x=G.inlinePlaybackConfig)==null?0:x.showAudioControls);D.trackingParams=v.getInlinePlaybackTrackingParams();
if(!v.inlinePlayer)return I.return(0);f={};if(U=_.k((C=v.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint,_.hP))f.watch_endpoint=U;if(v.videoPreviewData){var S,B=(S=_.k(v.videoPreviewData.inlinePlaybackEndpoint,_.hP))==null?void 0:S.startTimeSeconds;B!==void 0&&(D.playerConfig||(D.playerConfig={}),D.playerConfig.playbackStartConfig||(D.playerConfig.playbackStartConfig={}),D.playerConfig.playbackStartConfig.startPosition||(D.playerConfig.playbackStartConfig.startPosition={}),D.playerConfig.playbackStartConfig.startSeconds=
B,D.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(B*1E3))}v.inlinePlayer.loadVideoWithPlayerResponse(D,f);if(v.JSC$19205_playerPromise)return I.jumpTo(2);v.JSC$19205_playerPromise=v.inlinePlayer.getPlayerPromise();return I.yield(v.JSC$19205_playerPromise,3)}I.nextAddress!=2&&(L=I.yieldResult,L.setInlinePreview(!0),Z=!_.g("web_imp_theater_bugfix"),L.setSizeStyle(!1,Z),v.ytPlayerListenerBehavior.listenToPlayerEvents(L,v.JSC$19205_playerEvents),v.player=L,_.F1(v.hostElement,
"player-api-ready"));((E=v.opts)==null?0:E.showPlayerControls)&&v.videoPreviewData&&v.player&&(v.playerControlsData={playerResponse:D,isInlinePlayback:!0,thumbnailOverlays:v.videoPreviewData.thumbnailOverlays,playerApi:v.player},v.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!v.unroundCornersForPlayback,additionalButton:v.getAdditionalButtonType(v.videoPreviewData.thumbnailOverlays)});return I.return(2)})};
_.V.revealPreviewUi=function(){var D=this;this.playbackIntentTriggered&&_.xAc(this,function(){D.hasThumbnailPositionChangedSinceTriggered()||(D.updateActiveState(!0),D.noAnimation=!1)})};
_.V.hasThumbnailPositionChangedSinceTriggered=function(){var D=this.positionData,v=this.getThumbnailPositionData();return(D==null?void 0:D.initialTopPosition)!==(v==null?void 0:v.initialTopPosition)||(D==null?void 0:D.initialHorizontalPosition)!==(v==null?void 0:v.initialHorizontalPosition)};
_.V.getThumbnailPositionData=function(){var D,v;if((v=this.opts)==null||!v.thumbnail)return null;v=this.opts.thumbnail;var h=((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?!1:!0;var a=v.getBoundingClientRect();D=a.width;v=a.height;var Q=a.top+window.scrollY;a=a.left+window.scrollX;var G=h?Math.ceil(D):D;h=h?Math.ceil(v):v;var x=D/G;D={initialScale:x,initialTopPosition:Q-12*x,finalTopPosition:Q-12-(h-v)/2,initialHorizontalPosition:a-(12+(G-D)/2),finalHorizontalPosition:a-12-(G-D)/
2,videoPreviewWidth:G,videoPreviewHeight:h};return D};
_.V.updateActiveState=function(D){this.active=D;this.ytdReduxBehavior.dispatch(_.oG({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:D}))};
_.V.stopPlayer=function(D){D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(D)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.HK.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.V.deactivate=function(D){D=D===void 0?{}:D;D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;iA&&(iA.disconnect(),iA=null);this.stopPlayer({resetWatchEndpointStartTime:D});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.V.isValidThumbnailOverlayButton=function(D,v){D=D.thumbnailOverlayButtonRenderer;var h;return!!D&&!!D.tooltip&&!((h=D.icon)==null||!h.iconType)&&v.includes(D.icon.iconType)};
_.V.isValidThumbnailOverlayButtonViewModel=function(D,v){var h;D=_.k((h=D.thumbnailOverlayButtonViewModel)==null?void 0:h.overlayButton,_.fH);return!!D&&!!D.title&&!!D.iconName&&v.includes(D.iconName)};
_.V.getAdditionalButtonType=function(D){var v=this;if(_.g("web_imp_fastforward_button"))return{button:1};if(_.g("web_imp_miniplayer_button"))return{button:2};if(_.g("web_imp_playback_speed_button"))return{button:3};var h=["BOX_STACK_3"],a=(D||[]).filter(function(G){return v.isValidThumbnailOverlayButton(G,h)}).map(function(G){return G.thumbnailOverlayButtonRenderer});
if(a.length)return{button:4,thumbnailOverlayButtonRenderers:a};var Q=["BOX_STACK_3"];D=(D||[]).filter(function(G){return v.isValidThumbnailOverlayButtonViewModel(G,Q)}).map(function(G){return _.k(G.thumbnailOverlayButtonViewModel.overlayButton,_.fH)});
if(D.length)return{button:4,thumbnailOverlayButtonViewModels:D}};
_.V.allowCaptions=function(){var D;return!((D=this.opts)==null?0:D.forceCaptionsOff)};
_.V.allowUnmuting=function(){var D;return this.enableAudioControls&&!((D=this.opts)==null?0:D.forceMutedVolume)};
_.V.beginStartTimeUpdater=function(){var D=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Ez(function(){D.updateWatchEndpointStartTime()},1E3)};
_.V.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.V.resetPreventProgressSaveTimer=function(){this.JSC$19205_preventProgressSaveTimer!==null&&(_.HK.cancelJob(this.JSC$19205_preventProgressSaveTimer),this.JSC$19205_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.V.updateWatchEndpointStartTime=function(D){var v=this.videoPreviewData;if(this.player&&v!=null&&v.inlinePlaybackEndpoint&&!this.JSC$19205_preventProgressSaveTimer){D=D?0:Math.floor(this.player.getCurrentTime());var h=_.k(v.navigationEndpoint,_.hP);h&&(h.startTimeSeconds=D);if(v=_.k(v.inlinePlaybackEndpoint,_.hP))v.startTimeSeconds=D}};
_.V.isShortcutClick=function(D){return!!D&&(D.ctrlKey||D.shiftKey||D.metaKey)};
_.V.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.V.openInMiniplayer=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1){h=(v=D.videoPreviewData)==null?void 0:v.navigationEndpoint;if(!h)return a.return();_.eh().lockupActivation=!0;return a.yield(_.dQm(_.xd().resolve(_.Ok),h),2)}_.eh().userActivation=!0;_.YI(a)})};
_.V.navigateToWatch=function(D){var v,h=(v=this.videoPreviewData)==null?void 0:v.navigationEndpoint;if(h){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(h,D,!0);else{var a;_.g("web_thumbnail_to_watch_transition")&&((a=this.opts)==null?0:a.thumbnail)&&_.AYs(_.xd().resolve(_.KN),this.opts.thumbnail);_.F1(this.hostElement,"yt-navigate",{endpoint:h})}this.deactivate()}};
_.V.getInlinePlaybackVideoId=function(){var D,v;return(v=_.k((D=this.videoPreviewData)==null?void 0:D.inlinePlaybackEndpoint,_.hP))==null?void 0:v.videoId};
_.V.getInlinePlaybackTrackingParams=function(){var D,v;return(D=this.videoPreviewData)==null?void 0:(v=D.inlinePlaybackEndpoint)==null?void 0:v.clickTrackingParams};
_.V.hasMultipleVideoPreviews=function(){var D;return!!(((D=this.opts)==null?0:D.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.V.startPlaybackForNextVideo=function(){var D;(D=this.opts)!=null&&D.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.GT.Object.defineProperties(dH.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null?0:D.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null||!D.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var D;if(Array.isArray((D=this.opts)==null?void 0:D.videoPreviewData)){var v;return(v=this.opts)==null?void 0:v.videoPreviewData[this.videoPreviewDataIndex]}var h;return(h=this.opts)==null?void 0:h.videoPreviewData}}});
dH.prototype.onIsAdsVideoChange=dH.prototype.onIsAdsVideoChange;dH.prototype.onInlinePreviewIsEnabledChange=dH.prototype.onInlinePreviewIsEnabledChange;dH.prototype.optsChanged=dH.prototype.optsChanged;dH.prototype.onMouseLeave=dH.prototype.onMouseLeave;dH.JSC$19204_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);dH.JSC$19204_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"}];
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],dH.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],dH.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],dH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],dH.prototype,"componentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],dH.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.c0.YtSparklesClickLocationBehavior),_.n("design:type",Object)],dH.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dH.prototype,"opts",void 0);
_.e([_.Y(),_.n("design:type",Object)],dH.prototype,"playerControlsData",void 0);_.e([_.Y(),_.n("design:type",Object)],dH.prototype,"playerControlsAppApi",void 0);_.e([_.Y(),_.n("design:type",Object)],dH.prototype,"playerControlsOptions",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],dH.prototype,"noAnimation",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],dH.prototype,"hidden",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],dH.prototype,"active",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],dH.prototype,"playing",void 0);_.e([_.Y({selector:_.ILr}),_.n("design:type",Boolean)],dH.prototype,"inlinePreviewIsEnabled",void 0);_.e([_.Y(),_.n("design:type",String)],dH.prototype,"pagePath",void 0);_.e([_.Y({selector:_.Lqo}),_.n("design:type",Boolean)],dH.prototype,"isWatchPage",void 0);
_.e([_.N("videoPreviewData"),_.n("design:type",Object),_.n("design:paramtypes",[])],dH.prototype,"thumbnailData",null);_.e([_.N("opts","active"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dH.prototype,"hidePlayerControls",null);_.e([_.N("opts"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dH.prototype,"isAdsVideo",null);
_.e([_.N("opts"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dH.prototype,"roundedCornersSmall",null);_.e([_.N("opts"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dH.prototype,"roundedCornersMedium",null);_.e([_.N("opts"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dH.prototype,"roundedCornersLarge",null);
_.e([_.N("opts"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dH.prototype,"unroundCornersForPlayback",null);_.e([_.N("opts","videoPreviewDataIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],dH.prototype,"videoPreviewData",null);_.e([_.Y(),_.n("design:type",Object)],dH.prototype,"videoPreviewDataIndex",void 0);_.e([_.Br("#inline-player"),_.n("design:type",Object)],dH.prototype,"inlinePlayer",void 0);
_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],dH.prototype,"onMouseLeave",null);_.e([_.qi("opts"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dH.prototype,"optsChanged",null);_.e([_.qi("inlinePreviewIsEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dH.prototype,"onInlinePreviewIsEnabledChange",null);
_.e([_.Ni("isAdsVideo"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dH.prototype,"onIsAdsVideoChange",null);_.e([_.m({is:"ytd-video-preview",disableElementRegistration:!0})],dH);
_.w(dH,"ytd-video-preview",function(){if(bmX!==void 0)return bmX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return bmX=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var rco,ufB,D1z;rco=function(D){return _.g("kevlar_watch_cinematics_invisible")||D.fullscreen&&_.g("kevlar_watch_cinematics_invisible_in_fullscreen")||D.theater&&!D.fullscreen&&_.g("kevlar_watch_cinematics_invisible_in_theater")};
ufB=function(){var D=document.createElement("canvas"),v=D.getContext("2d");if(!v)throw Error("Io");_.Wu(D,{position:"absolute",width:"100%",height:"100%"});return{element:D,context:v}};
D1z=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.g("kevlar_watch_cinematics_css_blur")};
_.vpw=function(D,v,h){return Math.abs(D-v)<=(h||1E-6)};
_.hMf=function(D,v){return D==v?!0:D&&v?D.width==v.width&&D.height==v.height:!1};_.aJQ=new _.z0("notificationActionRenderer");var $1m=function(D){var v=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.gT;this.element.addEventListener("load",function(){v.loaded=!0;v.resolver.resolve(v.element)});
this.element.addEventListener("error",function(){v.failed=!0});
this.element.src=D};var Q40=function(D,v){this.image=D;this.frame=v};
Q40.prototype.drawToCanvas=function(D,v){var h=this.frame.width/this.frame.columns,a=this.frame.height/this.frame.rows,Q=v.offsetX,G=v.offsetY;rco(v)?(D.fillStyle=v.fullscreen?"#000":"#0f0f0f",D.fillRect(Q,G,(v==null?void 0:v.width)||h,(v==null?void 0:v.height)||a)):D.drawImage(this.image,this.frame.column*h,this.frame.row*a,h,a,Q,G,(v==null?void 0:v.width)||h,(v==null?void 0:v.height)||a)};
var Gyz=function(D){this.color=D};
Gyz.prototype.drawToCanvas=function(D,v){var h=v.offsetX,a=v.offsetY,Q=v.width,G=v.height;D.fillStyle=rco(v)?v.fullscreen?"#000":"#0f0f0f":this.color;D.fillRect(h,a,Q,G)};var Lu=function(D,v){_.yl.call(this);this.playerApi=v;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.lU(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Vtf(this,D);PsB(this);this.update()};
_.J(Lu,_.yl);Lu.prototype.addEventListeners=function(){var D=this,v=function(){D.update()},h=function(Q){D.paused||(Q.type==="newdata"&&(D.mosaics.clear(),x1R(D),ZH(D)),PsB(D),D.update())},a=function(){D.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",v);this.playerApi.addEventListener("onVideoDataChange",h);this.playerApi.addEventListener("onStateChange",a);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoProgress",v);D.playerApi.removeEventListener("onVideoDataChange",h);D.playerApi.removeEventListener("onStateChange",a)})};
var Vtf=function(D,v){D.cinematicContainerRenderer!==v&&(D.cinematicContainerRenderer=v,x1R(D),ZH(D),D.colorStoreUpdateJobId=_.HK.addLowPriorityJob(function(){var h;if((h=D.cinematicContainerRenderer.colorStore)!=null&&h.sampledColors){h=Infinity;for(var a=_.P(D.cinematicContainerRenderer.colorStore.sampledColors),Q=a.next();!Q.done;Q=a.next()){Q=Q.value;var G=Number(Q.key);G!==0&&G<h&&(h=G);G=_.uu(Q.value);D.colorStore.set(Q.key,G)}D.colorStoreTimeInterval=h}}))},x1R=function(D){D.colorStoreUpdateJobId&&
(_.HK.cancelJob(D.colorStoreUpdateJobId),D.colorStoreUpdateJobId=void 0);
D.colorStore.clear();D.currentStoryboardColor=void 0},Mtf=function(D,v){var h;
return(h=D.getStoryboardFrame(v))==null?void 0:h.url};
Lu.prototype.onPlayerStateChange=function(){this.update()};
Lu.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var PsB=function(D){var v=D.getStoryboardFrame(0);v&&(v=new _.lU(v.width/v.columns,v.height/v.rows),_.hMf(D.currentStoryboardSize,v)||(D.currentStoryboardSize=v,D.publish("STORYBOARD_SIZE_CHANGED",D.currentStoryboardSize)))},fJR=function(D,v){D.currentStoryboardIndex=v;
D.pendingStoryboardIndex=NaN;v=D.getStoryboardFrame(D.currentStoryboardIndex);D.currentStoryboard=new Q40(D.mosaics.get(v.url).element,v);D.publish("STORYBOARD_CHANGED",D.currentStoryboard);D.lastUpdateTime=(0,_.xz)()};
Lu.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var ZH=function(D){D.currentStoryboardIndex=NaN;D.pendingStoryboardIndex=NaN;D.currentStoryboard&&(D.currentStoryboard=void 0,D.publish("STORYBOARD_CHANGED",void 0));D.lastUpdateTime=NaN};
Lu.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)ZH(this);else{var D=this.playerApi.getPlayerState(1);if(D===-1||D===5||D===0)ZH(this);else if(isNaN(this.lastUpdateTime)||!((0,_.xz)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(D=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){D=""+Math.round(D*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var v=this.colorStore.get(D);v?v!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=v,this.currentStoryboard=new Gyz(v),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.xz)()):(_.yR(new _.XH("Could not find color for timestamp: "+D,this.cinematicContainerRenderer)),ZH(this))}else ZH(this);else Csm(this,D)}};
var Csm=function(D,v){var h=D.getStoryboardFrameIndex(v);if(h!==D.currentStoryboardIndex&&h!==D.pendingStoryboardIndex){v=Mtf(D,h);var a=D.mosaics.get(v);a?a.loaded&&fJR(D,h):(D.pendingStoryboardIndex=h,h=new $1m(v),D.mosaics.set(v,h),h.resolver.promise.then(function(){if(!D.isDisposed()&&!D.paused&&!isNaN(D.pendingStoryboardIndex)){var Q=Mtf(D,D.pendingStoryboardIndex);if(Q){var G;(G=D.mosaics.get(Q))!=null&&G.loaded&&fJR(D,D.pendingStoryboardIndex)}else ZH(D)}}))}};
Lu.prototype.getStoryboardFrameIndex=function(D){var v=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(D,v)};
Lu.prototype.getStoryboardFrame=function(D){var v=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,h,a;return((a=(h=this.playerApi).getStoryboardFrame)==null?void 0:a.call(h,D,v))||null};
Lu.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var I2=function(D,v,h,a){a=a===void 0?!1:a;_.AN.call(this);this.cinematicContainerRenderer=v;this.playerApi=h;this.theater=this.fullscreen=!1;var Q;this.ambientLightThemeEnabled=!a&&!!(v==null?0:(Q=v.config)==null?0:Q.enableInLightTheme);this.ambientFullscreenEnabled=a&&_.g("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=a&&_.g("web_cinematic_theater_mode");this.container=document.createElement("div");D.appendChild(this.container);var G;if(_.g("web_cinematic_theater_mode")||_.g("web_cinematic_fullscreen")||
(v==null?0:(G=v.config)==null?0:G.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);opR(this);D=this.ambientV2Container||this.container;this.backCanvas=ufB();this.frontCanvas=ufB();D.appendChild(this.backCanvas.element);D.appendChild(this.frontCanvas.element);this.storyboardManager=new Lu(v,this.playerApi);_.Ia(this,this.storyboardManager);this.addEventListeners();FRf(this)?zMo(this,100+EJ(this)*3*2,100+EJ(this)*3*2):U1f(this);
LRo(this,this.storyboardManager.currentStoryboard)};
_.J(I2,_.AN);var opR=function(D){D.ambientV2Container?Z4H(D):(_.Wu(D.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+EpB(D)+", "+IJR(D)+")"}),D1z()&&_.Wu(D.container,"filter","blur("+_.oZ("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Z4H=function(D){if(D.ambientV2Container){var v=D.playerApi.getVideoAspectRatio();
_.Wu(D.container,{"aspect-ratio":""+v,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Wu(D.ambientV2Container,{"aspect-ratio":""+v,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+EpB(D)+", "+IJR(D)+")"});D1z()&&_.Wu(D.ambientV2Container,"filter","blur("+_.oZ("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
I2.prototype.setFullscreen=function(D,v){this.fullscreen=D;this.theater=!!v;opR(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),D=this.storyboardManager.currentStoryboard,gpQ(this),D&&kyR(this,D)};
I2.prototype.addEventListeners=function(){var D=this,v=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Q){LRo(D,Q)}),h=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){U1f(D)});
this.addOnDisposeCallback(function(){D.storyboardManager.unsubscribeByKey(v);D.storyboardManager.unsubscribeByKey(h)});
if(this.ambientV2Container){var a=function(){Z4H(D)};
this.playerApi.addEventListener("onVideoDataChange",a);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoDataChange",a)})}};
var U1f=function(D){if(!FRf(D)){var v=D.storyboardManager.currentStoryboardSize;isNaN(v.width)||isNaN(v.height)||zMo(D,Number(v.width)+EJ(D)*3*2,Number(v.height)+EJ(D)*3*2)}},zMo=function(D,v,h){D.backCanvas.element.width=v;
D.backCanvas.element.height=h;D.frontCanvas.element.width=v;D.frontCanvas.element.height=h},FRf=function(D){return D.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},LRo=function(D,v,h){h=h===void 0?!1:h;
var a=D.frontCanvas.element.getAnimations()[0];a?(a.pause(),D.backCanvas.context.globalAlpha=Number(getComputedStyle(D.frontCanvas.element).opacity),D.frontCanvas.element.style.opacity="0",a.finish()):D.backCanvas.context.globalAlpha=1;D.backCanvas.context.drawImage(D.frontCanvas.element,0,0,D.backCanvas.element.width,D.backCanvas.element.height);gpQ(D);v&&kyR(D,v);v=v?D.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.oZ("cinematic_watch_fade_out_duration",500);a=_.oZ("cinematic_watch_transition_frame_rate")/
1E3;var Q={};a&&(Q={easing:"steps("+Math.round(v*a)+")"});(h===void 0?0:h)||D.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:v,iterations:1},Q));D.frontCanvas.element.style.opacity="1"},gpQ=function(D){var v=D.ambientLightThemeEnabled||D.ambientTheaterModeEnabled,h=D.ambientLightThemeEnabled||D.ambientFullscreenEnabled;
D.frontCanvas.context.fillStyle=D.theater&&v||D.fullscreen&&h?"#000":"#0f0f0f";D1z()||(D.frontCanvas.context.filter="blur(0)");D.frontCanvas.context.fillRect(0,0,D.frontCanvas.element.width,D.frontCanvas.element.height)},kyR=function(D,v){D1z()||(D.frontCanvas.context.filter="blur("+EJ(D)+"px)");
D.frontCanvas.context.globalAlpha=D.fullscreen&&D.ambientFullscreenEnabled||D.theater&&D.ambientTheaterModeEnabled?_.oZ("cinematic_watch_effect_letterbox_opacity",.4):_.oZ("cinematic_watch_effect_opacity",.4);var h={offsetX:EJ(D)*3,offsetY:EJ(D)*3,theater:D.theater,fullscreen:D.fullscreen};FRf(D)&&(h.width=100,h.height=100);v.drawToCanvas(D.frontCanvas.context,h);D.frontCanvas.context.globalAlpha=1},EJ=function(D){var v;
return(v=D.cinematicContainerRenderer.config.blurStrength)!=null?v:5},EpB=function(D){var v,h;
if((D.fullscreen||D.theater)&&((v=D.cinematicContainerRenderer.config)==null?0:(h=v.watchFullscreenConfig)==null?0:h.colorSourceWidthMultiplier))return D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var a;return(a=D.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?a:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier},IJR=function(D){var v,h;
if((D.fullscreen||D.theater)&&((v=D.cinematicContainerRenderer.config)==null?0:(h=v.watchFullscreenConfig)==null?0:h.colorSourceHeightMultiplier))return D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var a;return(a=D.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?a:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
I2.prototype.disposeInternal=function(){_.AN.prototype.disposeInternal.call(this);this.container.remove()};
I2.prototype.clear=function(){LRo(this,void 0,!0)};
I2.prototype.pause=function(){this.storyboardManager.pause()};var SFf;SFf=_.qA(function(){var D,v,h=!((v=(D=document.createElement("canvas")).getContext)==null||!v.call(D,"2d")),a;D=!((a=CSS)==null||!a.supports("filter: blur(0)"));a=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Q;return h&&D&&a&&!((Q=CSS)==null||!Q.supports("aspect-ratio: 1 / 1"))});
_.g_=function(D,v){_.yl.call(this);this.container=D;this.playerApi=v;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=JbH(this);this.update()};
_.J(_.g_,_.yl);_.pmY=function(D){var v=document.documentElement.hasAttribute("dark");D.isDarkModeEnabled=v;D.update()};
_.lJo=function(D,v){D.settingEnabled=v;D.update()};
_.g_.prototype.setFullscreen=function(D,v){this.fullscreen=D;this.theater=!!v;this.update()};
_.NJ3=function(D,v){D.cinematicContainerRenderer=v;D.cinematicContainerRenderer&&(D.cinematicsVe=_.En(D.isShorts()?227858:159022),_.de(_.c8(),D.cinematicsVe),D.loggingClientData={watchCinematicContainerData:{presentationStyle:D.cinematicContainerRenderer.presentationStyle}});D.update()};
_.g_.prototype.isShorts=function(){var D,v;return((D=this.cinematicContainerRenderer)==null?void 0:(v=D.config)==null?void 0:v.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.g_.prototype.isAllowed=function(){var D;if(D=SFf()){var v,h,a;D=((h=this.cinematicContainerRenderer)==null?void 0:h.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((a=this.cinematicContainerRenderer)==null||!a.colorStore)||((v=this.cinematicContainerRenderer)==null?void 0:v.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(D)if(_.g("web_cinematics_pausing")){var Q,G;D=this.isDarkModeEnabled||!!((Q=this.cinematicContainerRenderer)==
null?0:(G=Q.config)==null?0:G.enableInLightTheme)}else{var x,f;Q=!!((x=this.cinematicContainerRenderer)==null?0:(f=x.config)==null?0:f.enableInLightTheme)&&(_.eA("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);D=this.isDarkModeEnabled||Q}if(x=D){var C,U;x=!((U=(C=this.prefersReducedMotionQuery)==null?void 0:C.matches)!=null&&U)}return x};
_.YFR=function(D){(D=D.currentCinematicEffect)!=null&&(D=D.storyboardManager,D.paused=!1,PsB(D),D.update())};
_.g_.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var JbH=function(D){if(!_.g("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var v=window.matchMedia("(prefers-reduced-motion: reduce)"),h=function(){D.update()};
v.addListener(h);D.addOnDisposeCallback(function(){v.removeListener(h)});
return v}};
_.g_.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var D=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new I2(this.container,D,this.playerApi,this.isDarkModeEnabled),_.Ia(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var v=this.currentCinematicEffect;v.cinematicContainerRenderer!==
D&&(v.cinematicContainerRenderer=D,Vtf(v.storyboardManager,D),opR(v));D=_.YE();_.BU(0,194,!0);D.save();D=_.wd();this.cinematicsVe&&D&&_.DU(D,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(D=_.wd(),this.cinematicsVe&&D&&_.vf(D,[this.cinematicsVe],!1,this.loggingClientData),_.V5(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.GT.Object.defineProperties(_.g_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var JcK;var pAz;_.yT({_template:function(){if(pAz!==void 0)return pAz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=
D.content,h=v.insertBefore;JcK===void 0&&(JcK=document.createElement("template"));var a=JcK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return pAz=D},
is:"tp-yt-iron-pages",behaviors:[_.iN,_.Qs],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var kMZ;_.SmZ=function(){if(_.g("kevlar_home_skeleton")&&!kMZ){var D=document.querySelector("#home-page-skeleton");D&&(_.ea("hgcr"),_.Np(D),kMZ=!0)}};
kMZ=!1;_.vz=new _.z0("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Q2r,Vrm,P$U,xTr,MrI,fHd,C$2,ohd,zar,UT2,EhZ,ghs,SJs,IHr,LaS,Zu3,lHX;_.$Td=function(D,v,h){v=v===void 0?5:v;if(v!==0){var a=typeof D==="function"?D():document.querySelector(D);a?(h==null?0:h.enableSmartFocus)?_.exq(a):a.focus():setTimeout(function(){_.$Td(D,v-1,h)},500)}};
Q2r=function(D){return String.raw.apply(String,[{raw:D}].concat(_.j_(_.Kz.apply(1,arguments).map(function(v){return v instanceof Array?v.join(""):v}))))};
Vrm=function(D){var v=_.Kz.apply(1,arguments),h=v.length;if(!Array.isArray(D)||!Array.isArray(D.raw)||D.length!==D.raw.length||!_.ufM&&D===D.raw||!(_.ufM&&!_.D14||_.bH(D))||h+1!==D.length)throw new TypeError("$");return new GVI(Object.freeze({strings:Object.freeze(D),args:Object.freeze(v)}))};
P$U=function(D){return _.On7(_.n3L(D&16777215))<.5};
xTr=function(D,v,h){var a=h.minimumRowsOfVideosBetweenSections===void 0?1:h.minimumRowsOfVideosBetweenSections;return D<(h.minimumRowsOfVideosAtStart===void 0?2:h.minimumRowsOfVideosAtStart)||v!==null&&D-v<=a?!1:!0};
MrI=function(D,v){var h=0,a=0;D=_.P(D);for(var Q=D.next();!Q.done;Q=D.next()){var G=Q.value;if(G.richItemRenderer)G.richItemRenderer.rowIndex=a,G.richItemRenderer.colIndex=h++,h===v&&(h=0,a++);else if(G.richGroupRenderer&&G.richGroupRenderer.numColumns!==void 0)G.richGroupRenderer.rowIndex=a,G.richGroupRenderer.colIndex=h,h+=G.richGroupRenderer.numColumns,h===v&&(h=0,a++);else if(G.richSectionRenderer){var x=Q=void 0;if(G=_.k((Q=G)==null?void 0:(x=Q.richSectionRenderer)==null?void 0:x.content,_.Mn9))G.rowIndex=
a++}}};
fHd=function(D,v){var h=v.contentElement;v=v.rendererToTagNameMap;if(h&&v&&v.size!==0){for(var a=new Map,Q=_.P(h.children),G=Q.next();!G.done;G=Q.next()){G=G.value;var x=G.tagName.toLowerCase(),f=a.get(x);f||(f=[],a.set(x,f));f.push(G)}if(a.size!==0)for(Q=Math.min(D.length,h.children.length),G=new Map,x=0;x<Q;x++){f=Object.keys(D[x])[0];f=v.get(f);if(!f)break;var C=G.get(f);C===void 0&&(C=0,G.set(f,C));var U=a.get(f);if(!U||C>=U.length)break;G.set(f,C+1);f=U[C];C=h.children[x];C!==f&&(_.o3=!0,_.FZ.set(f,
!0),h.insertBefore(f,C),_.FZ.delete(f),_.o3=!1)}}};
C$2=function(D,v,h,a,Q,G,x){a=a===void 0?{}:a;if(!D||!D.length)return{orderedContent:[]};D=D.slice();var f=[],C=[];Q=null;for(var U=0,L=function(W){C.sort(function(R,vA){return vA.skippedOnRow-R.skippedOnRow});
for(var K,O=(K=C.shift())==null?void 0:K.content;O;)!O.richSectionRenderer&&W||f.push(O),K=void 0,O=(K=C.shift())==null?void 0:K.content},Z=void 0,E=void 0,I=new Set;D.length>0||C.length>0;){for(var S=[],B=v;B>0;){var A=void 0,d=void 0,b=(d=C[0]&&C[0].skippedOnRow<U?(A=C.shift())==null?void 0:A.content:void 0)!=null?d:D.shift();
if(!b)break;if(b.richItemRenderer)A=b.richItemRenderer.targetId,d=void 0,A&&((d=x)==null?0:d.has(A))&&(d=x.get(A),!Z||d&&d.timestamp>Z.timestamp)&&(Z=d,E&&I.add(E),E=A),S.push(b),B--;else if(b.richGroupRenderer&&b.richGroupRenderer.numColumns!==void 0)b.richGroupRenderer.numColumns<=B?(S.push(b),B-=b.richGroupRenderer.numColumns):B===v&&b.richGroupRenderer.numColumns>v?(S.push({richGroupRenderer:Object.assign({},b.richGroupRenderer,{numColumns:v})}),B=0):C.push({content:b,skippedOnRow:U});else if(b.richSectionRenderer)if(xTr(U,
Q,a)&&B===v){f.push(b);Q=U;U++;continue}else C.push({content:b,skippedOnRow:U});else if(b.continuationItemRenderer){L(!0);f.push(b);B=0;break}if(B===0)f.push.apply(f,_.j_(S));else if(!h&&D.length===0){L(!1);f.push.apply(f,_.j_(S));B=0;break}}U++;Z&&(f.push(Z.content),U++);E=Z=void 0}MrI(f,v);G&&fHd(f,G);return{orderedContent:f,pinnedContentNotShownTargetIds:I}};
ohd=function(){return _.Kz.apply(0,arguments).flat().filter(function(D){return D}).join(";")};
zar=function(){return Vrm(FaZ,ohd.apply(null,_.j_(_.Kz.apply(0,arguments))))};
UT2=function(D){switch(D){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
EhZ=function(D,v){if(v){var h=_.Gb().getState().entities.flowStateEntity,a=LaS(D),Q=[v];a&&a!==v&&Q.push(a);var G=!0,x;if(h&&D.flowStateEntityKey&&((x=h[D.flowStateEntityKey])==null?void 0:x.primaryButtonDisabled)!==void 0){var f;G=!((f=h[D.flowStateEntityKey])==null||!f.primaryButtonDisabled)}Zu3(D,a!=null?a:v,Q,G)}};
ghs=function(D){return _.Oe(_.Gb(),function(v){return v.entities.flowStateEntity},function(v,h){if(D.flowStateEntityKey){var a,Q=v==null?void 0:(a=v[D.flowStateEntityKey])==null?void 0:a.currentStepId,G;
h=h==null?void 0:(G=h[D.flowStateEntityKey])==null?void 0:G.currentStepId;G=_.Gb().getState().talkToRecs;if(Q&&Q!==h){var x;v=(v==null?void 0:(x=v[D.flowStateEntityKey])==null?void 0:x.stepIdStack)||Object.keys(G.stepStates);x=!IHr(G==null?void 0:G.stepStates[Q]);Zu3(D,Q,v,x)}}})};
SJs=function(D){return _.Oe(_.Gb(),kVX,function(v){var h=LaS(D);if(h){var a=Object.keys(v.stepStates);v=!IHr(v==null?void 0:v.stepStates[h]);Zu3(D,h,a,v)}})};
IHr=function(D){var v=Object.keys((D==null?void 0:D.selectionStates)||{}).reduce(function(G,x){return G||(D==null?void 0:D.selectionStates[x].isSelected)},!1),h,a,Q=!!(D==null?0:(h=D.userQuery)==null?0:(a=h.userQuery)==null?0:a.trim());
return v||Q};
LaS=function(D){if(D.flowStateEntityKey){var v,h,a=(v=_.Gb().getState().entities.flowStateEntity)==null?void 0:(h=v[D.flowStateEntityKey])==null?void 0:h.currentStepId;if(a)return a}};
Zu3=function(D,v,h,a){_.Gb().dispatch(_.Xe("flowStateEntity",D.flowStateEntityKey,{currentStepId:v,stepIdStack:h,key:D.flowStateEntityKey,primaryButtonDisabled:a}))};
_.JZr=function(D,v){return _.gR(D.entities,"youchatPendingResponseEntity",v)};
_.p6Z=function(D){return function(v){_.xt(_.Xe("youchatPendingResponseEntity",D,{entityKey:D,isPendingResponse:v}))}};
lHX=function(D){D==null||D.addEventListener("DOMLoaded",function(){D.goToAndPlay(D.totalFrames-48,!0)})};
_.G3=function(D){this.__isSoyCss=!0;this.css=Q2r.apply(null,[D.strings].concat(_.j_(D.args)))};
_.G3.prototype.toString=function(){return this.css};
var GVI=function(){_.G3.apply(this,arguments)};
_.J(GVI,_.G3);var FaZ=_.DK(["",""]);var N_X;var YJd;_.yT({_template:function(){if(YJd!==void 0)return YJd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
var v=D.content,h=v.insertBefore;N_X===void 0&&(N_X=document.createElement("template"));var a=N_X;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return YJd=D},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var B_U=new _.z0("flowRootRenderer");var cZm=new _.z0("chipsShelfViewModel");var X6Z=new _.z0("responsiveContainerConfiguration");_.AZs=new _.z0("engagementPanelSectionListRenderer");var qJC=function(){this.horizontal=!1},buK=function(D,v){D.horizontal=v};
qJC.prototype.position=function(D,v,h,a){a=a===void 0?1:a;D=this.delta(D)*a+v;a=Math.max(v,h);return D>=Math.min(v,h)&&D<=a?D:h};
qJC.prototype.axis=function(D){D=this.direction(D);return D==="up"||D==="down"?"Y":"X"};var d5=function(D,v,h){v=v===void 0?_.rh():v;this.target=D;this.manager=v;this.touchAction=h;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
d5.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(_.j_(this.events)));for(var D=_.P(this.events),v=D.next();!v.done;v=D.next())this.listen(v.value)}};
d5.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.j_(this.events)));for(var D=_.P(this.events),v=D.next();!v.done;v=D.next())this.unlisten(v.value)}};
d5.prototype.listen=function(D){this.eventMap[D]&&this.target.addEventListener(D,this.eventMap[D])};
d5.prototype.unlisten=function(D){this.eventMap[D]&&this.target.removeEventListener(D,this.eventMap[D])};var jH=function(){qJC.apply(this,arguments)};
_.J(jH,qJC);jH.prototype.direction=function(D){var v=D.detail;D=v.deltaY;v=v.deltaX;return D&&!this.horizontal?D>0?"down":"up":v&&this.horizontal?v>0?"right":"left":"none"};
jH.prototype.distance=function(D){return Math.abs(this.delta(D))};
jH.prototype.delta=function(D){var v=this.direction(D),h=D.detail;D=h.deltaX;h=h.deltaY;return v==="up"||v==="down"?h||0:D||0};
jH.prototype.velocity=function(D){var v=this.direction(D),h=D.detail;D=h.velocityX;h=h.velocityY;return Math.abs(v==="up"||v==="down"?h||0:D||0)};_.sb=function(D,v,h,a,Q,G){Q=Q===void 0?new jH:Q;G=G===void 0?_.rh():G;d5.call(this,v,G,a);var x=this;this.element=D;this.target=v;this.config=h;this.input=Q;this.manager=G;this.events=["panstart","panmove","panend"];this.onPanStart=function(){x.config.draggingClass&&x.element.classList.add(x.config.draggingClass);x.config.startAction&&x.config.startAction()};
this.onPanMove=function(f){var C=dTS(x,f);if(C){x.move(f,C);C.fade&&x.fade(f,C);var U=x.input.direction(f);C.moveAction&&C.moveAction(j2s(x,f,C),U)}};
this.onPanEnd=function(f){var C,U,L,Z,E,I;return _.M(function(S){if(S.nextAddress==1){x.animationRequestId&&cancelAnimationFrame(x.animationRequestId);x.animationRequestId=void 0;C=dTS(x,f);if(!C)return S.return();U=C;L=U.triggerAction;Z=U.fade;E=U.disableFinish;I=U.translateBack;var B=x.input.velocity(f),A=x.input.distance(f),d=x.threshold(C);return B>.3&&A>10||A>d?E?S.jumpTo(6):Z?S.yield(s22(x,f),6):S.yield(mTU(x,f,C),6):I?S.yield(x.translateBack(f),3):S.jumpTo(3)}S.nextAddress!=3&&L&&L();x.config.draggingClass&&
x.element.classList.remove(x.config.draggingClass);x.reset();_.YI(S)})};
D=Object.keys(h.triggers);this.directions=new Set(D);buK(this.input,this.directions.has("right")||this.directions.has("left"))};
_.J(_.sb,d5);_.sb.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var dTS=function(D,v){v=D.input.direction(v);return D.config.triggers[v]};
_.sb.prototype.move=function(D,v){var h=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var a=h.input.axis(D),Q=h.input.position(D,h.config.startPosition,v.endPosition,v.moveRatio||1);h.element.style.transform="translate"+a+"("+Q+"px)";h.animationRequestId=void 0}))};
var j2s=function(D,v,h){var a=h.moveRatio||1;h=Math.abs(D.config.startPosition-h.endPosition);return Math.min(D.input.distance(v)*a,h)/h};
_.sb.prototype.fade=function(D,v){var h=v.endOpacity;D=j2s(this,D,v);D>0&&(this.element.style.opacity=""+(((h||0)-1)*D+1))};
_.sb.prototype.threshold=function(D){return D.threshold?D.threshold:Math.abs(D.endPosition-this.config.startPosition)/3};
var mTU=function(D,v,h){var a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1)return a=D.input.delta(v)+D.config.startPosition,Q=D.input.axis(v),G=h,x=G.endPosition,f=G.transitionEndPosition,U=(C=f)!=null?C:x,L.yield(D.element.animate([{transform:"translate"+Q+"("+a+"px)"},{transform:"translate"+Q+"("+U+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+Q+"("+U+"px)";_.YI(L)})};
_.sb.prototype.translateBack=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1){if(!v.element.style.transform)return Q.return();h=v.input.axis(D);a=v.config.startPosition;return Q.yield(v.element.animate([{transform:v.element.style.transform},{transform:"translate"+h+"("+a+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}v.element.style.transform="translate"+h+"("+a+"px)";_.YI(Q)})};
var s22=function(D,v){var h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return h=D.input.delta(v)+D.config.startPosition,a=D.input.axis(v),Q=h+70,G=D.element.style.opacity===""?1:D.element.style.opacity,x.yield(D.element.animate([{transform:"translate"+a+"("+h+"px)",opacity:G},{transform:"translate"+a+"("+Q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+a+"("+Q+"px)";D.element.style.opacity="0";_.YI(x)})};var mX=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;D.scrollRate=3;D.autoScrollAnimationStart=0;D.autoScrollPaused=!1;D.autoScrollRafId=0;return D};
_.J(mX,_.XS);_.V=mX.prototype;_.V.created=function(){var D=this;this.boundAutoScrollHandler=function(v){D.autoScroll(v)}};
_.V.detached=function(){this.hostElement.removeEventListener("mouseout",_.pZ(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.pZ(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.pZ(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.V.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.pZ(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.pZ(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.pZ(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.pZ(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.pZ(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.pZ(this,this.endAutoScroll)),this.endAutoScroll())};
_.V.autoScroll=function(D){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=D);var v;if(v=!this.autoScrollPaused&&this.scrollTarget)v=this.scrollTarget,v=v.scrollHeight-v.scrollTop!==v.clientHeight;v&&(v=1E3/this.scrollRate,D-=this.autoScrollAnimationStart,D>v&&(this.scrollTarget.scrollTop+=Math.ceil(D/v),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.V.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.V.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
mX.prototype.autoScrollEnabledChanged=mX.prototype.autoScrollEnabledChanged;_.e([_.Y(),_.n("design:type",Object)],mX.prototype,"scrollRate",void 0);_.e([_.Y(),_.n("design:type",Object)],mX.prototype,"scrollTarget",void 0);_.e([_.Y(),_.n("design:type",Boolean)],mX.prototype,"autoScrollEnabled",void 0);_.e([_.Ni("autoScrollEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mX.prototype,"autoScrollEnabledChanged",null);_.e([_.AV()],mX);_.Hud=[mX.prototype];var yZX;var HP=function(){var D=_.c.apply(this,arguments)||this;D.buttonUpdate=_.g("web_button_rework");D.dismissButtonOverrides=_.g("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;D.forceDarkTheme=!1;D.forceLightTheme=!1;D.dynamicTextHeight=94;D.hasOverflowButton=!1;D.isInfeedModernization=!1;return D};
_.J(HP,_.c);_.V=HP.prototype;_.V.computeUrlImg=function(D){if(D)return _.L_(D.thumbnails)};
_.V.getLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.V.getLogoClassName=function(D){return this.logoWithPadding(D)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.V.logoWithPadding=function(D){var v,h;return(D=(v=D.thumbnails)==null?void 0:(h=v[0])==null?void 0:h.height)&&D%31===0?!0:!1};
_.V.sendImpressionEndpoints=function(D){D.impressionEndpoints&&_.L1(this.hostElement,D.impressionEndpoints)};
_.V.observeBasicPalette=function(){var D,v,h=(D=this.data)==null?void 0:(v=D.colorData)==null?void 0:v.basicColorPaletteData;h?_.sA(this.hostElement,h):_.sA(this.hostElement,{})};
_.V.observeDataChanged=function(){var D;this.dynamicTextHeight=((D=this.data)==null?0:D.supplementalText)?74:94;var v;this.hasSupplementalText=!((v=this.data)==null||!v.supplementalText);if(_.g("web_button_rework")){var h,a,Q,G;D=(h=this.data)==null?void 0:(a=h.actionButton)==null?void 0:(Q=a.buttonRenderer)==null?void 0:(G=Q.colorData)==null?void 0:G.basicColorPaletteData;var x,f,C;if(!((x=this.data)==null?0:(f=x.actionButton)==null?0:(C=f.buttonRenderer)==null?0:C.style)&&D){this.computeIsInfeedModernization(this.data)||
(D.borderColor=D.foregroundTitleColor);var U,L;this.set("data.actionButton.buttonRenderer",_.sV.unsafeClone((U=this.data)==null?void 0:(L=U.actionButton)==null?void 0:L.buttonRenderer))}}};
_.V.observeDataForCounterfactual=function(){if(_.g("kevlar_banner_cf_extra_logging")){var D;((D=this.data)==null?0:D.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.V.computeSupplementalStyle=function(){var D;if((D=this.data)!=null&&D.supplementalText){var v,h,a;if((v=this.data)==null?0:(h=v.colorData)==null?0:(a=h.basicColorPaletteData)==null?0:a.foregroundActivatedColor)return D=_.rT(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+D+"; --yt-endpoint-hover-color:"+D+"; --yt-endpoint-visited-color:"+D+"; --yt-formatted-string-bold-font-weight:700;"}};
_.V.computeForcedDarkTheme=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.actionButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.style,Q,G,x;D=P$U(((Q=this.data)==null?void 0:(G=Q.colorData)==null?void 0:(x=G.basicColorPaletteData)==null?void 0:x.backgroundColor)||0);return a&&D};
_.V.computeForcedLightTheme=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.actionButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.style,Q,G,x;D=!P$U(((Q=this.data)==null?void 0:(G=Q.colorData)==null?void 0:(x=G.basicColorPaletteData)==null?void 0:x.backgroundColor)||0);return a&&D};
_.V.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.V.computeHasTitle=function(D){return!!D.title};
_.V.computeTitleMaxFontSize=function(D){return this.computeHasOverflowButton(D)?28:64};
_.V.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.V.computeIsInfeedModernization=function(){var D,v,h,a,Q=(D=this.data)==null?void 0:(v=D.actionButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:(a=h.colorData)==null?void 0:a.basicColorPaletteData;return(Q==null?void 0:Q.backgroundColor)===452984831||(Q==null?void 0:Q.backgroundColor)===218103808};
HP.prototype.observeDataForCounterfactual=HP.prototype.observeDataForCounterfactual;HP.prototype.observeDataChanged=HP.prototype.observeDataChanged;HP.prototype.observeBasicPalette=HP.prototype.observeBasicPalette;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],HP.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],HP.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],HP.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],HP.prototype,"buttonUpdate",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],HP.prototype,"hasSupplementalText",void 0);_.e([_.Y(),_.n("design:type",Object)],HP.prototype,"dismissButtonOverrides",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.n("design:type",Boolean)],HP.prototype,"hasTitle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.n("design:type",Object)],HP.prototype,"forceDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.n("design:type",Object)],HP.prototype,"forceLightTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],HP.prototype,"dynamicTextHeight",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.n("design:type",Object)],HP.prototype,"hasOverflowButton",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.n("design:type",Object)],HP.prototype,"isInfeedModernization",void 0);_.e([_.Ni("data.colorData.basicColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HP.prototype,"observeBasicPalette",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HP.prototype,"observeDataChanged",null);_.e([_.Ni("data.isVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HP.prototype,"observeDataForCounterfactual",null);_.e([_.m({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],HP);
_.w(HP,"ytd-banner-promo-renderer",function(){if(yZX!==void 0)return yZX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden$="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yZX=D},{mode:1});var w63;var ea$;var nh$;var yN=function(){return _.c.apply(this,arguments)||this};
_.J(yN,_.c);_.e([_.Y(),_.n("design:type",Object)],yN.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.e([_.m({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],yN);
_.w(yN,"ytd-hashtag-grid-tile-renderer",function(){if(nh$!==void 0)return nh$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nh$=D},{mode:1});var w5=function(){return _.c.apply(this,arguments)||this};
_.J(w5,_.c);w5.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
w5.prototype.updateRichGridTrendingHashtagsVisibility=function(){var D,v;if(((D=this.data)==null||!D.isExpanded)&&(v=this.data)!=null&&v.tiles){D=this.data.tiles.length;v=D>this.richGridItemsPerRow?this.richGridItemsPerRow+1:D;var h=Math.ceil(D/v);this.fullyVisibleRows=D%v===1&&h===2?1:Math.min(h,2);this.isShowMoreVisible=this.fullyVisibleRows<h}};
w5.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
w5.prototype.updateRichGridTrendingHashtagsVisibility=w5.prototype.updateRichGridTrendingHashtagsVisibility;_.e([_.Y(),_.n("design:type",Object)],w5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Number)],w5.prototype,"fullyVisibleRows",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],w5.prototype,"isShowMoreVisible",void 0);_.e([_.Y({selector:_.wR,value:0}),_.n("design:type",Number)],w5.prototype,"richGridItemsPerRow",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],w5.prototype,"ytdReduxBehavior",void 0);_.e([_.Ni("data","richGridItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],w5.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.e([_.m({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],w5);
_.w(w5,"ytd-hashtag-grid-shelf-renderer",function(){if(ea$!==void 0)return ea$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ea$=D},{mode:1});var Our;var KaC;var eH=function(){var D=_.c.apply(this,arguments)||this;D.visibleVideos=[];D.hiddenVideos=[];D.modern=_.g("web_modern_buttons");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(eH,_.c);_.V=eH.prototype;_.V.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.V.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"}}}};
_.V.dataChanged=function(){var D=this;this.requestElementsPerRow();var v,h;this.currentColorPalette=this.isDarkTheme?(v=this.data)==null?void 0:v.darkColorData:(h=this.data)==null?void 0:h.lightColorData;var a;if((a=this.currentColorPalette)==null?0:a.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.$R(this,function(){D.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.computeIsFirstFeedItem=function(D){return D};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.V.getCurrentLogo=function(D,v){if(D)return v?D.darkLogoImage:D.lightLogoImage};
_.V.computeTitleStyle=function(D){var v;if((v=this.data)!=null&&v.title&&D&&D.textPrimary!==void 0)return"color:"+_.rT(D.textPrimary)+";"};
_.V.computeSubtitleStyle=function(D){var v;if((v=this.data)!=null&&v.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.rT(D.textSecondary)+";"};
_.V.computeDismissIconStyle=function(D){if(this.data&&this.data.dismissButton&&D&&D.textPrimary!==void 0)return"--yt-button-color:"+_.rT(D.textPrimary)+";"};
_.V.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.rT(D.textPrimary)+";--yt-spec-icon-active-other:"+_.rT(D.textPrimary)+";"};
_.V.computeBackgroundStyle=function(D){if(D&&this.data){var v="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var h=_.L_((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);h&&(v+='background-image:url("'+h+'");')}D.backgroundColor!==void 0&&(v+="background-color:"+_.uu(D.backgroundColor)+";");return v}};
_.V.computeButton=function(){var D,v=Object.assign({},_.k((D=this.data)==null?void 0:D.showMoreButton,_.Vi));if(this.modern&&v){v.style="STYLE_MONO_OUTLINE";var h;if(D=(h=this.currentColorPalette)==null?void 0:h.textPrimary)v.colorData={basicColorPaletteData:{foregroundTitleColor:D,borderColor:D}}}return v};
_.V.shouldShowBottomButton=function(D,v){return!(D==null?0:D.header)&&!(D==null||!D.primaryButton)&&v<3};
_.V.checkExpanded=function(D){this.isExpanded=D&&D.content?this.hiddenVideos.length===0:!0};
_.V.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.V.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.V.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.V.computeHasSectionHeader=function(D){return!!D.header};
_.V.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var v;((v=this.data.dismissButton)==null?0:v.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var h,a;((h=this.data)==null?0:(a=h.primaryButton)==null?0:a.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.V.setVisibleVideos=function(D){if(this.data&&this.data.content)if(this.data.content.length){var v=this.data.content.length;this.data.header?D?(this.visibleVideos=this.data.content.slice(0,Math.min(v,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(v,this.slimItemsPerRow),v)):(this.visibleVideos=this.data.content.slice(0,Math.min(v,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(v,this.elementsPerRow),v)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(v,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(v,this.elementsPerRow),v)):(this.visibleVideos=this.data.content.slice(0,Math.min(v,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(v,this.elementsPerRow-1),v))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.V.setHasMovieRenderer=function(){var D;if((D=this.data)!=null&&D.content){var v;this.hasMovieRenderer=!!_.k((v=this.data)==null?void 0:v.content[0],_.oM9)}else this.hasMovieRenderer=!1};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
_.V.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var D=_.P(this.hiddenMediaRenderers),v=D.next();!v.done;v=D.next())v.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(D=_.ZW(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&D.focus()}};
_.V.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.V.logoWithPadding=function(D){var v,h,a;return(D=(v=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(h=v.thumbnails)==null?void 0:(a=h[0])==null?void 0:a.height)&&D%31===0?!0:!1};
_.V.onUpdateElementsPerRowAction=function(D,v,h){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D);h&&this.slimItemsPerRow!==h&&(this.slimItemsPerRow=h)};
eH.prototype.slimItemsPerRowChanged=eH.prototype.slimItemsPerRowChanged;eH.prototype.elementsPerRowChanged=eH.prototype.elementsPerRowChanged;eH.prototype.dataChanged=eH.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],eH.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],eH.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],eH.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],eH.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],eH.prototype,"currentColorPalette",void 0);_.e([_.Y(),_.n("design:type",Array)],eH.prototype,"visibleVideos",void 0);_.e([_.Y(),_.n("design:type",Array)],eH.prototype,"hiddenVideos",void 0);
_.e([_.Y(),_.n("design:type",Object)],eH.prototype,"primaryButton",void 0);_.e([_.Y({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],eH.prototype,"elementsPerRow",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],eH.prototype,"isDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],eH.prototype,"isExpanded",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],eH.prototype,"largeTitle",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],eH.prototype,"hasMovieRenderer",void 0);_.e([_.Y(),_.n("design:type",Number)],eH.prototype,"slimItemsPerRow",void 0);_.e([_.Y(),_.n("design:type",Boolean)],eH.prototype,"showLightVideoMetadata",void 0);_.e([_.Y(),_.n("design:type",Boolean)],eH.prototype,"showDarkVideoMetadata",void 0);_.e([_.Y(),_.n("design:type",Number)],eH.prototype,"videoMetadataColor",void 0);
_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],eH.prototype,"miniMode",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.n("design:type",Boolean)],eH.prototype,"isFirstFeedItem",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.n("design:type",Boolean)],eH.prototype,"hasSectionHeader",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],eH.prototype,"roundedContainer",void 0);_.e([_.cr("#visible-video-container ytd-rich-grid-media"),_.n("design:type",Array)],eH.prototype,"visibleMediaRenderers",void 0);_.e([_.cr("#hidden-video-container ytd-rich-grid-media"),_.n("design:type",Array)],eH.prototype,"hiddenMediaRenderers",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],eH.prototype,"modern",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eH.prototype,"dataChanged",null);_.e([_.Ni("elementsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eH.prototype,"elementsPerRowChanged",null);_.e([_.Ni("slimItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eH.prototype,"slimItemsPerRowChanged",null);
_.e([_.m({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],eH);
_.w(eH,"ytd-brand-video-shelf-renderer",function(){if(KaC!==void 0)return KaC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return KaC=D},{mode:1});var T_U;var nQ=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(nQ,_.c);_.V=nQ.prototype;_.V.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.V.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"}}}};
_.V.dataChanged=function(){this.requestElementsPerRow();var D,v;this.currentColorPalette=this.isDarkTheme?(D=this.data)==null?void 0:D.darkColorData:(v=this.data)==null?void 0:v.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.V.computeIsFirstFeedItem=function(D){return D};
_.V.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(D),this.updateButtonPalette())};
_.V.shouldShowThumbnailInMetadata=function(D){return D<=1};
_.V.computeVideoMetadataColor=function(){if(this.data){var D;if((D=this.currentColorPalette)==null?0:D.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.V.computeTitleStyle=function(D){var v;if((v=this.data)!=null&&v.title&&D&&D.textPrimary!==void 0)return"color:"+_.rT(D.textPrimary)+";"};
_.V.computeSubtitleStyle=function(D){var v;if((v=this.data)!=null&&v.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.rT(D.textSecondary)+";"};
_.V.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.rT(D.textPrimary)+";--yt-spec-icon-active-other:"+_.rT(D.textPrimary)+";"};
_.V.computeBackgroundStyle=function(D){if(D&&this.data){var v="";D.backgroundColor!==void 0&&(v+="background-color:"+_.uu(D.backgroundColor)+";");return v}};
_.V.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.V.updateButtonPalette=function(){if(this.data){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer){var v;if((v=this.currentColorPalette)==null?0:v.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var h;((h=this.currentColorPalette)==null?0:h.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)})}}};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
_.V.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.V.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
nQ.prototype.elementsPerRowChanged=nQ.prototype.elementsPerRowChanged;nQ.prototype.dataChanged=nQ.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],nQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],nQ.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nQ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],nQ.prototype,"currentColorPalette",void 0);_.e([_.Y(),_.n("design:type",Object)],nQ.prototype,"primaryButton",void 0);
_.e([_.Y({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],nQ.prototype,"elementsPerRow",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],nQ.prototype,"isDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],nQ.prototype,"titleSize",void 0);_.e([_.Y(),_.n("design:type",Number)],nQ.prototype,"videoMetadataColor",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],nQ.prototype,"miniMode",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.n("design:type",Boolean)],nQ.prototype,"isFirstFeedItem",void 0);_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],nQ.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.n("design:type",Boolean)],nQ.prototype,"hasOverflowButton",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nQ.prototype,"dataChanged",null);_.e([_.Ni("elementsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nQ.prototype,"elementsPerRowChanged",null);_.e([_.m({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],nQ);
_.w(nQ,"ytd-brand-video-singleton-renderer",function(){if(T_U!==void 0)return T_U;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return T_U=D},{mode:_.E_("kevlar_poly_si_batch_j070")?1:2});var Ram;var iud=_.H(function(D){var v=D.data;return _.F(_.PX,{data:function(){return v().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(v().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var h=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":h=88;break a;default:h=88}return h},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return v().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"zl"),trU=_.H(function(D){var v=D.metadataRow;
var h=D.delimiter;return _.F(_.Xd,{each:function(){return v().textParts||[]},
keyBy:"INDEX"},function(a,Q){return _.F(_.xf,null,_.F(_.IY,{text:a,noWrap:!0,userInput:!0}),_.F(Wa2,{delimiter:h,max:function(){return v().textParts.length},
index:Q}))})},"Al"),Wa2=_.H(function(D){var v=D.delimiter;
var h=D.max;var a=D.index;return _.F(_.z,{cond:function(){return(v==null?void 0:v())&&h()-1>a()},
then:function(){return _.F("span",null,v)}})},"Bl"),rZX=_.H(function(D){var v=D.data;
D={};return _.F("yt-profile-page-header-information-view-model",{class:_.S3("profilePageHeaderInformationViewModelHost",(D.profilePageHeaderInformationViewModelMobile=!1,D))},_.F(_.z,{cond:function(){return v().onTap},
then:function(){return _.F(_.Ak,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.Rq(v().onTap)}},_.F(_.c4,{data:function(){return v().thumbnail}},{profilePageHeaderThumbnailViewModel:iud}))},
else:function(){return _.F("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.F(_.c4,{data:function(){return v().thumbnail}},{profilePageHeaderThumbnailViewModel:iud}))}}),_.F("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.F(_.z,{cond:function(){return v().onTap},
then:function(){return _.F(_.c4,{data:function(){return v().title}},{profilePageHeaderTitleViewModel:function(h){var a=h.data;
return _.F(_.Ak,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.Rq(a().onTap)}},_.F(_.IY,{text:function(){return a().title}}))}})},
else:function(){return _.F(_.c4,{data:function(){return v().title}},{profilePageHeaderTitleViewModel:function(h){var a=h.data;
return _.F(_.IY,{text:function(){return a().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.F(_.c4,{data:function(){return v().metadata}},{profilePageHeaderMetadataViewModel:function(h){var a=h.data;
return _.F(_.z,{cond:function(){return a().metadataRows},
then:function(Q){return _.F("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.F(_.Xd,{each:Q,keyBy:"INDEX"},function(G,x){return _.F(_.xf,null,_.F(trU,{metadataRow:G,delimiter:" \u2022 "}),_.F(Wa2,{delimiter:" \u2022 ",max:function(){return Q().length},
index:x}))}))}})}})))},"Cl");
rZX.idomCompat=!0;_.zh(rZX,"yt-profile-page-header-information-view-model",{props:{data:_.gj}});var Ob=function(){return _.c.apply(this,arguments)||this};
_.J(Ob,_.c);Ob.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ob.prototype,"data",void 0);_.e([_.m({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Ob);
_.w(Ob,"ytd-effect-pivot-header-view-model",function(){if(Ram!==void 0)return Ram;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Ram=
D},{mode:1});var uGd;var KQ=function(){return _.c.apply(this,arguments)||this};
_.J(KQ,_.c);KQ.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KQ.prototype,"data",void 0);_.e([_.m({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],KQ);
_.w(KQ,"ytd-source-pivot-header-renderer",function(){if(uGd!==void 0)return uGd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return uGd=D},{mode:1});_.DZU=_.H(function(D){var v=D.data;var h=function(){var a;return _.wp((a=v())==null?void 0:a.rendererContext)};
D={};return _.F("content-list-item-view-model",{el:_.ML(_.eb(function(){return v().rendererContext})),
class:_.S3("ytContentListItemViewModelHost",(D.ytContentListItemViewModelTappable=h,D)),role:function(){return h()?"listitem":void 0},
tabindex:function(){return h()?0:void 0}},_.F("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.F("div",{class:"ytContentListItemViewModelImageContainer"},_.F(_.z,{cond:function(){return v().image},
then:function(a){return _.F(_.PX,{data:a,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.F(_.c4,{data:function(){var a;
return(a=v())==null?void 0:a.avatar}},{avatarViewModel:_.Q2})),_.F("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.F("div",{class:_.S3("ytContentListItemViewModelTitle",function(){a:{switch(v().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var a="ytContentListItemViewModelProminentTitle";
break a}a=void 0}return a})},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:"ytContentListItemViewModelMetadata"},_.F(_.c4,{data:function(){return v().metadata}},{contentMetadataViewModel:function(a){return _.F(_.Aj,{data:a.data,
layout:1})}})))),_.F("div",{class:"ytContentListItemViewModelActionButton"},_.F(_.c4,{data:function(){var a;
return(a=v())==null?void 0:a.actionButton}},{buttonViewModel:_.s$,
toggleButtonViewModel:_.$$})))},"Dl");var v1m=_.H(function(D){var v=function(){return D.data().background},h=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},a=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.F("yt-card-view-model",{el:_.ML(_.eb(function(){return D.data().rendererContext})),
class:_.S3("ytCardViewModelHost",D.className)},_.F(_.qk,{contentId:function(){return D.data().contentId}},function(){return _.F("div",{class:_.S3("ytCardViewModelCardViewModelInner",function(){return UT2(D.data().cardStyle)},function(){var Q;
a:{switch((Q=D.data().cardState)==null?void 0:Q.selectionState){case "CARD_SELECTION_STATE_SELECTED":Q="ytCardViewModelSelected";break a}Q=void 0}return Q})},_.F(_.c4,{data:v},{cinematicContainerViewModel:function(Q){return _.F(_.OlM,{data:Q.data})}}),_.F("div",{class:"ytCardViewModelContentWrapper"},_.F(_.z,{cond:function(){return!h()},
then:function(){var Q={};return _.F("div",{class:"ytCardViewModelTopContentContainer"},_.F("div",{class:"ytCardViewModelTopContent"},_.F(_.c4,{data:function(){return D.data().topContent}},{contentListItemViewModel:function(G){return _.F(_.DZU,{data:G.data})}})),_.F("div",{class:_.S3("ytCardViewModelInlineTrailingAction",(Q.ytCardViewModelInlineCenterTrailingAction=a,Q))},_.F(_.c4,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(G){return _.F(_.s$,{data:G.data})}})))}}),
_.F("div",{class:"ytCardViewModelBodyContent"},_.F(_.c4,{data:function(){return D.data().bodyContent}},{contentListItemViewModel:_.DZU,
listItemViewModel:_.xD,linearLayoutViewModel:_.aut,descriptionPreviewViewModel:_.mo}))),_.F(_.z,{cond:function(){return h()},
then:function(){return _.F("div",{class:"ytCardViewModelOverlayTrailingAction"},_.F(_.c4,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data})}}))}}))}))},"El");_.zh(v1m,"yt-card-view-model",{props:{data:_.gj,className:_.gj}});var kVX=_.lFK.talkToRecsStateSelector;_.zh(_.H(function(D){var v=function(){return _.k(D.data().flowRoot,B_U)};
_.jA(function(){var h=v(),a=function(){},Q=function(){};
if(h){var G,x,f,C=((f=_.k((G=v())==null?void 0:(x=G.steps)==null?void 0:x[0],_.p1I))==null?void 0:f.stepId)||"";EhZ(h,C);a=ghs(h);Q=SJs(h)}_.dq(function(){var U=v();U&&_.Gb().dispatch(_.Xe("flowStateEntity",U.flowStateEntityKey));a();a=function(){};
Q();Q=function(){}})});
return _.F("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.F(_.qk,{contentId:function(){return D.data().contentId}},function(){return _.F("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.F(_.z,{cond:v,
then:function(h){return _.F(_.qiS,{data:h})}}))}))},"Fl"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.gj}});_.zh(_.H(function(){return _.F("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.F("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.F("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.F(_.APC,null)),_.F(_.wbR,{data:{rows:1},isExploreHub:!0}))},"Gl"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.zh(_.H(function(D){var v=D.data;var h=D.standardUnitMinWidth;D=_.P((0,_.Ke4)(v));var a=D.next().value,Q=D.next().value,G=function(){var f,C=(f=a())==null?void 0:f.contents;return C==null||C.length===0},x=function(){Q(Object.assign({},a(),{contents:[]}))};
return _.F("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.ML(_.Mb({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var f=_.k(v().chipsShelf,cZm);if(f!=null&&f!=null&&f.autoselectChipOnVisible){var C,U,L=_.k(f==null?void 0:(C=f.contents)==null?void 0:C[(U=f.autoselectedChipIndex)!=null?U:0],_.CH);L&&L.tapCommand&&_.r4(L.tapCommand)}}}))},_.F(_.qk,{contentId:function(){return v().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.F("div",null,_.F("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.F(_.c4,{data:function(){return v().header}},{sectionHeaderViewModel:function(f){return _.F(_.HS,{data:f.data,
disableHorizontalPadding:!0})}})),_.F("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.F(_.c4,{data:function(){return v().chipsShelf}},{chipsShelfViewModel:function(f){return _.F(_.VP,{data:f.data,
callback:x,selectionBehavior:1})}})),_.F("div",null,_.F(_.z,{cond:G,
then:function(){return _.F("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.F(_.wbR,{data:{rows:1},isExploreHub:!0}))}}),_.F(_.c4,{data:function(){var f;
return(f=a())==null?void 0:f.contents}},{richShelfRenderer:function(f){return _.F(_.rYJ,{data:f.data,
isInnerShelf:!0,standardUnitMinWidth:h})}})))}))},"Hl"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.gj,
standardUnitMinWidth:_.gj}});var T1=function(){return _.c.apply(this,arguments)||this};
_.J(T1,_.c);
T1.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
T1.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.e([_.l(_.Mm),_.n("design:type",Object)],T1.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],T1.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],T1.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Number)],T1.prototype,"standardUnitMinWidth",void 0);_.e([_.m({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],T1);
_.w(T1,"ytd-rich-section-renderer",function(){if(Our!==void 0)return Our;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Our=D},{mode:_.E_("kevlar_poly_si_batch_j029")?
1:2});_.zh(_.WVr,"yt-profile-identity-info-view-model",{props:{data:_.gj,hideDivider:_.gj,isChannelInfoCard:_.gj}});_.zh(_.uVJ,"yt-page-header-view-model",{props:{data:_.gj,noPadding:_.gj,enableBanner:_.gj,cinematicContainerTopbarOffset:_.gj,allowCinematicContainerOverflow:_.gj,displayAsSidebar:_.gj,displayAsPanel:_.gj,alwaysUseMediumTextDescription:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=function(){var Q;return(Q=v().numColumns)!=null?Q:2},a=function(){return h()>1?3:2};
D={};return _.F("ytd-rich-grid-group",{class:_.S3("ytdRichGridGroupHost",(D.ytdRichGridGroupHostFirstColumn=function(){return v().colIndex===0},D)),
style:_.NL({"--ytd-rich-grid-group-num-columns":h,"--ytd-rich-grid-items-per-group":a})},_.F("div",{class:"ytdRichGridGroupContents"},_.F(_.c4,{data:function(){var Q;return(Q=v().contents)==null?void 0:Q.slice(0,a())}},{richItemRenderer:function(Q){return _.F(_.Wy$,{data:Q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Il"),"ytd-rich-grid-group",{props:{data:_.gj}});var R7=function(){var D=_.c.apply(this,arguments)||this;D.resizeOnObserverInit=!1;D.isInlinePreviewDisabled=_.g("web_disable_inline_preview");D.disableStickyFilterBar=!1;D.transparentBackgroundChipsBar=!1;D.hideChipsBar=!1;D.isWatchDefaultLayout=!0;D.continuationShowButton=!1;D.rowReducedHorizontalMargin=!1;D.useCompactList=!1;D.manualDownloadsPresent=!1;D.smartDownloadsPresent=!1;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;
D.elementsPerRow=4;D.typographyBump=!1;D.slimItemsPerRow=1;D.pageLoadingFromNavigation=!1;D.resizeObserver=null;D.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};D.rendererToTagNameMap=new Map(Object.entries(D.contentMapping()).map(function(v){var h=
_.P(v);v=h.next().value;h=h.next().value;return[v,h.component]}));
D.insertedContent=new Map;return D};
_.J(R7,_.c);_.V=R7.prototype;_.V.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var D=_.P(_.ZW(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),v=D.next();!v.done;v=D.next())v.value.useCompactList=this.useCompactList};
_.V.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var D=_.P(_.ZW(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),v=D.next();!v.done;v=D.next())v=v.value,v.sizing=this.sizing,v.typographyBump=this.typographyBump};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.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]]"}}}};
_.V.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}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.pZ(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21932_throttledOnResize=new _.tn(this.resizeObserved,_.oZ("rich_grid_resize_delay_ms",50),this)};
_.V.detached=function(){var D;(D=this.resizeObserver)==null||D.disconnect();document.removeEventListener("yt-page-type-changed",_.pZ(this,this.onPageChange))};
_.V.insertRichSection=function(D){var v=D.richItemTargetId;D=D.richSectionRendererToInsert;v&&D&&(this.insertedContent.set(v,{content:D,timestamp:Date.now()}),this.reflowContent())};
_.V.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeIsInlinePreviewEnabled=function(D,v,h){return _.g("web_disable_inline_preview")?!1:!h&&_.fMb({miniplayerIsActive:D,miniplayerPlaybackState:v})};
_.V.computeSizing=function(){var D=_.EjA(this.data);if(D||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return D?this.useCompactList?"COMPACT":D:this.miniMode?"COMPACT":"STANDARD"};
_.V.updateItemMinAndMaxWidth=function(){var D=_.oZ("rich_grid_max_item_width",500);D>0&&_.SB(this.hostElement,{"--ytd-rich-grid-item-max-width":D+"px"});var v;D=this.getRichItemMinWidth((v=this.hostElement)==null?void 0:v.clientWidth);D>0&&_.SB(this.hostElement,{"--ytd-rich-grid-item-min-width":D+"px"})};
_.V.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.V.resizeObserved=function(){_.U9(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.V.onPageChange=function(){var D=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.U9(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.HK.addJob(function(){D.pageLoadingFromNavigation=!1;D.setMasthead();D.maybeSetBigYoodle();D.forceRefreshAndLog();D.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.V.dataChanged=function(){var D=this;_.U9(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.$R(this,function(){D.updateRichItemGridPositions();D.contentsElement&&_.SB(D.hostElement,{"--ytd-rich-grid-content-offset-top":D.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.V.initResizeObserver=function(){var D=this;if(window.ResizeObserver){var v;(v=this.resizeObserver)==null||v.disconnect();var h=!1;this.resizeObserver=new ResizeObserver(function(){if(h){var a;(a=D.resizeObserver)==null||a.disconnect();var Q;(Q=D.JSC$21932_throttledOnResize)==null||Q.fire();requestAnimationFrame(function(){var x;(x=D.JSC$21932_throttledOnResize)==null||x.fire();D.initResizeObserver()})}else if(h=!0,D.resizeOnObserverInit){var G;
(G=D.JSC$21932_throttledOnResize)==null||G.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.V.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.U9(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.updateElementsPerRow=function(){_.U9(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.oG({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.oG({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.V.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.V.onRichShelfRendererCollapse=function(D){if(this.shownItems){var v=D.detail;D=this.shownItems.findIndex(function(a){var Q,G;return((G=_.k(a==null?void 0:(Q=a.richSectionRenderer)==null?void 0:Q.content,_.Mn9))==null?void 0:G.trackingParams)===v});
var h=D+1;D<0||h>=this.contentsElement.children.length||!this.shownItems[h].richItemRenderer||this.contentsElement.children[h].scrollIntoView({behavior:"smooth",block:"start"})}};
_.V.onSoftReloadPage=function(){this.scrollUpToTop()};
_.V.handleRerenderDownloadsData=function(){_.g("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.V.handlePlaylistRemoveVideosAction=function(D){var v;if(((v=_.k(D,_.NI$))==null?0:v.setVideoIds)&&this.data&&this.data.contents){D=_.k(D,_.NI$).setVideoIds;for(v=this.data.contents.length-1;v>=0;){var h=_.k(this.data.contents[v],_.TX);(h=h&&_.k(h.content,_.GF))&&h.setVideoId&&D.includes(h.setVideoId)&&this.splice("data.contents",v,1);v--}this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".richItemRenderer.index",_.aX(String(D+1)))};
_.V.hasTopRowInlinePlayableVideoWithEndorsement=function(D){var v;return!((v=D.slice(0,this.getItemsPerRow()))==null||!v.some(function(h){var a;h=_.k(h==null?void 0:(a=h.richItemRenderer)==null?void 0:a.content,_.xG);var Q;return(h==null?void 0:h.inlinePlaybackEndpoint)&&(h==null?void 0:(Q=h.thumbnailOverlays)==null?void 0:Q.some(function(G){return G.thumbnailOverlayEndorsementRenderer}))}))};
_.V.refreshGridLayoutNew=function(D,v,h,a){var Q=a.postsPerRow;var G=a.slimItemsPerRow;var x=a.gameCardsPerRow;a=a.miniGameCardsPerRow;var f;if((f=this.data)==null||!f.contents||!this.containerWidth)return!1;var C;if((C=this.data.responsiveContainerConfiguration)==null?0:C.responsiveSize){var U=_.We4(this.data.responsiveContainerConfiguration,this.containerWidth),L;f=_.Rg(Object.assign({},U,{standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&U.isCompactList)}else f=_.Rg({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(U=this.data)==null?void 0:U.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=f.typographyBump;L=!1;if(D||this.elementsPerRow!==f.numItems||this.postsPerRow!==Q||this.slimItemsPerRow!==G||this.gameCardsPerRow!==
x||this.miniGameCardsPerRow!==a||this.gutter!==f.gutter)L=this.elementsPerRow!==f.numItems,this.elementsPerRow=f.numItems,this.postsPerRow=Q,this.slimItemsPerRow=G,this.gameCardsPerRow=x,this.miniGameCardsPerRow=a,this.gutter=f.gutter,this.itemWidth=f.itemWidth,this.reflowContent(v),_.SB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":f.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(h);this.ytdReduxBehavior.dispatch(_.oG({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:f.maxContainerWidth}));return L};
_.V.refreshGridLayout=function(D,v){var h,a=(h=this.hostElement)==null?void 0:h.clientWidth;this.containerWidth=this.adjustRichGridWidth(a,!0);var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return D&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(D=!0,this.pendingForceReflow=!1);h=this.getRichItemMinWidth(a);var G=this.isShortsPanel?146:194,x=this.getMiniGameCardMinWidth(),f=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;a=h=this.calcElementsPerRow(h,
f);(Q=h<=3&&this.miniModeAllowed())&&(h=this.calcElementsPerRow(240,4));var C=this.calcMaxSlimElementsPerRow(h,f,this.isDefaultGrid);f=this.calcElementsPerRow(G,C);var U=this.calcElementsPerRow(this.isCompactGrid?G:154,C);G=this.calcElementsPerRow(this.isCompactGrid?G:x,C);x=!1;if(this.sizing)return this.refreshGridLayoutNew(D,v,Q,{postsPerRow:a,slimItemsPerRow:f,gameCardsPerRow:U,miniGameCardsPerRow:G});if(D||this.elementsPerRow!==h||this.postsPerRow!==a||this.slimItemsPerRow!==f||this.gameCardsPerRow!==
U||this.miniGameCardsPerRow!==G)x=this.elementsPerRow!==h,this.elementsPerRow=h,this.postsPerRow=a,this.slimItemsPerRow=f,this.gameCardsPerRow=U,this.miniGameCardsPerRow=G,this.reflowContent(v),this.updateElementsPerRow(),_.SB(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)&&_.SB(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Q);_.U9(this.hostElement,"yt-rich-grid-layout-refreshed");return x};
_.V.getRichItemMinWidth=function(D){var v=_.oZ("rich_grid_min_item_width",310);if(!_.g("kevlar_disable_min_width_override")){var h,a;v=(a=(h=this.data)==null?void 0:h.minItemWidth)!=null?a:v}return v+_.Ca2(D)};
_.V.calcMaxSlimElementsPerRow=function(D,v,h){return(h===void 0?0:h)?D===1?2:D%2===0?D/2*3:D+2:v*2};
_.V.adjustRichGridWidth=function(D,v){var h=_.g("disable_rich_grid_guide_compensation");if(!this.isWatch&&!h){h=_.xd().resolve(_.PV(_.zJ));var a=h==null?void 0:h.guideElement;if(!(!h||h.getData()||a!=null&&a.opened||h.getMiniGuideVisible()))if(h.canFitPersistentGuide(D)&&h.getGuideExpandsAutomatically()){var Q,G,x=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(G=Q.getPropertyValue("--app-drawer-width"))==null?void 0:G.replace("px",""));D-=x||0}else if(h.canFitMiniGuide(D)){var f;
Q=Number((x=window.getComputedStyle(this.hostElement))==null?void 0:(f=x.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:f.replace("px",""));D-=Q||0}}D>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(D-=v?32:48));return D};
_.V.calcElementsPerRow=function(D,v){var h=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),a=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((h+a)/(D+a))||1,v)};
_.V.reflowContent=function(D){var v=this;if(!this.isReflowing){this.isReflowing=!0;var h,a,Q=!!((h=this.data)==null?0:(a=h.contents)==null?0:a.some(function(f){return _.k(f,_.aQ)}));
h=this.getItemsPerRow();var G;a=(G=this.data)==null?void 0:G.reflowOptions;D&&(_.ea("rgr_s"),_.$R(this,function(){_.ea("rgr_nrf")}));
D={};(G=_.ZW(this.hostElement).querySelector("#contents"))&&(D={contentElement:G,rendererToTagNameMap:this.rendererToTagNameMap});G=(G=this.data.contents)?G.slice():[];Q=C$2(G,h,Q,a,this.getRichGridStyle(),D,this.insertedContent);var x=Q.orderedContent;if(Q=Q.pinnedContentNotShownTargetIds)for(Q=_.P(Q),h=Q.next();!h.done;h=Q.next())this.insertedContent.delete(h.value);Q=function(){v.shownItems=x;v.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(x),_.$R(this,Q)):Q()}};
_.V.getFirstRowItems=function(D){for(var v=[],h=0;h<D.length;h++){var a=void 0,Q=void 0,G=void 0,x=void 0,f=void 0,C=void 0;if(((a=D[h])==null?void 0:(Q=a.richItemRenderer)==null?void 0:Q.rowIndex)===0||((G=D[h])==null?void 0:(x=G.richGroupRenderer)==null?void 0:x.rowIndex)===0||((f=D[h])==null?void 0:(C=f.richSectionRenderer)==null?void 0:C.rowIndex)===0)v.push(D[h]);else break}return v};
_.V.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.V.resetInsertedContentIfNeeded=function(){(_.g("web_explore_hub_on_hover")||_.g("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.V.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.V.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.V.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.V.terminateVideoPreview=function(){_.U9(this.hostElement,"yt-terminate-video-preview-action")};
_.V.updateRichItemGridPositions=function(){var D={gridData:{gridColumnCount:this.elementsPerRow}},v;((v=this.data)==null?0:v.trackingParams)&&(v=_.wd())&&_.$Z(v,_.d4(this.data.trackingParams),D);_.U9(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.miniModeAllowed=function(){return this.isChannelPage};
_.V.getMiniGameCardMinWidth=function(){return 154};
_.V.updateMiniMode=function(D){this.miniMode=this.miniModeAllowed()&&D;this.ytdReduxBehavior.dispatch(_.oG({type:"SET_RICH_GRID_MINI_MODE",payload:D}))};
_.V.isCurrentPage=function(){return location.pathname===this.pagePath};
_.V.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var D=_.xd().resolve(_.P4).getCurrentPage();D&&D.setScrollTop(0)}};
_.V.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.V.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.V.maybeSetBigYoodle=function(){var D,v=(D=this.data)==null?void 0:D.bigYoodle;this.bigYoodleData!==v&&(this.bigYoodleData=v)};
_.V.setMasthead=function(){var D;((D=this.data)==null?0:D.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.V.getRichGridStyle=function(){var D,v;return(v=(D=this.data)==null?void 0:D.style)!=null?v:"RICH_GRID_STYLE_UNKNOWN"};
_.V.onIsShortsGridChange=function(){var D=this.ytdReduxBehavior,v=D.dispatch,h=this.getRichGridStyle();v.call(D,_.oG({type:"SET_RICH_GRID_STYLE",payload:h}))};
_.GT.Object.defineProperties(R7.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var D=_.xd().resolve(_.P4).getCurrentPage(),v,h,a;return(((v=this.data)==null?void 0:v.targetId)==="browse-feedFEsfv_audio_pivot"||_.g("web_enable_channel_pivot_panel")&&((h=this.data)==null?void 0:h.targetId)==="browse-feedFEsfv_channel_pivot"||_.g("web_enable_effect_pivot_panel")&&((a=this.data)==null?void 0:a.targetId)==="browse-feedFEsfv_effect_pivot")&&(D==null?void 0:D.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.g("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.xd().resolve(_.P4).getCurrentPage())==null?void 0:D.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.xd().resolve(_.P4).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?0:D.enableContentSpecificAspectRatio)||((v=this.data)==null?0:(h=v.responsiveContainerConfiguration)==null?0:h.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.oZ("web_continuation_handler_margin",0):0}}});
R7.prototype.onIsShortsGridChange=R7.prototype.onIsShortsGridChange;R7.prototype.onReloadContinuationFinish=R7.prototype.onReloadContinuationFinish;R7.prototype.reflowContent=R7.prototype.reflowContent;R7.prototype.handleRerenderDownloadsData=R7.prototype.handleRerenderDownloadsData;R7.prototype.onRichShelfRendererCollapse=R7.prototype.onRichShelfRendererCollapse;R7.prototype.onRequestElementsPerRow=R7.prototype.onRequestElementsPerRow;R7.prototype.contentLengthChanged=R7.prototype.contentLengthChanged;
R7.prototype.dataChanged=R7.prototype.dataChanged;R7.prototype.onSizingChange=R7.prototype.onSizingChange;R7.prototype.onUseCompactListChange=R7.prototype.onUseCompactListChange;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],R7.prototype,"ironResizableBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],R7.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],R7.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],R7.prototype,"componentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],R7.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],R7.prototype,"miniMode",void 0);_.e([_.Y({value:[]}),_.n("design:type",Array)],R7.prototype,"shownItems",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],R7.prototype,"isReflowing",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],R7.prototype,"isFilteredFeed",void 0);_.e([_.Y({selector:_.zFc}),_.n("design:type",Boolean)],R7.prototype,"guideIsExpanded",void 0);
_.e([_.Y({selectorArgs:["entitySelectorType"],selector:function(D,v){if(_.g("kevlar_modern_downloads_page")&&v&&v!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(v){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":v=D.entities;var h=_.s4(v),a=_.m6(v),Q=_.qH4(D),G=_.AUL(D),x=_.bh4(D),f=_.Ql8(v),C=_.Xh(h),U=_.Hf(v);return _.e88(h,a,f,_.xyo(v),Q,G,C,U,x,_.jl7(D),_.O4(D));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return D=_.s4(D.entities),_.OPL(D);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return D=
_.hFO(D.entities),_.Keo(D);default:_.yR(new _.XH("Error: entitySelectorType defined but not matched in selector.",D,v))}}}),
_.n("design:type",Object)],R7.prototype,"entityDrivenRichGridData",void 0);_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"resizeOnObserverInit",void 0);_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"bigYoodleData",void 0);_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"mastheadData",void 0);_.e([_.Y(),_.n("design:type",Boolean)],R7.prototype,"isInlinePreviewDisabled",void 0);_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"disableStickyFilterBar",void 0);
_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"transparentBackgroundChipsBar",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],R7.prototype,"hideChipsBar",void 0);_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"isWatchDefaultLayout",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],R7.prototype,"continuationShowButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],R7.prototype,"rowReducedHorizontalMargin",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],R7.prototype,"useCompactList",void 0);_.e([_.Y({selector:function(D){return _.m6(D.entities).length>0}}),
_.n("design:type",Object)],R7.prototype,"manualDownloadsPresent",void 0);_.e([_.Y({selector:function(D){return _.s4(D.entities).length>0}}),
_.n("design:type",Object)],R7.prototype,"smartDownloadsPresent",void 0);_.e([_.Y({selector:_.O4}),_.n("design:type",Object)],R7.prototype,"isOnline",void 0);_.e([_.Y({selector:_.AUL}),_.n("design:type",Object)],R7.prototype,"shouldRenderDownloadsBanner",void 0);_.e([_.Y({selector:_.jl7}),_.n("design:type",Object)],R7.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.e([_.Y({selector:_.qH4}),_.n("design:type",Object)],R7.prototype,"hasOptedIntoSmartDownloads",void 0);
_.e([_.Ni("useCompactList"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"onUseCompactListChange",null);_.e([_.Ni("sizing","typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"onSizingChange",null);_.e([_.Y({selector:_.gmL}),_.n("design:type",Number)],R7.prototype,"miniplayerPlaybackState",void 0);_.e([_.Y({selector:_.eq}),_.n("design:type",Boolean)],R7.prototype,"miniplayerIsActive",void 0);
_.e([_.Y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.n("design:type",Boolean)],R7.prototype,"isInlinePreviewEnabled",void 0);_.e([_.Y({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.n("design:type",String)],R7.prototype,"sizing",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],R7.prototype,"elementsPerRow",void 0);
_.e([_.Y(),_.n("design:type",Object)],R7.prototype,"typographyBump",void 0);_.e([_.Y(),_.n("design:type",Number)],R7.prototype,"itemWidth",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],R7.prototype,"headerElement",void 0);_.e([_.Br("#contents"),_.n("design:type",HTMLElement)],R7.prototype,"contentsElement",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"dataChanged",null);
_.e([_.qi("data.contents.length"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"contentLengthChanged",null);_.e([_.lc("yt-request-elements-per-row"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"onRequestElementsPerRow",null);
_.e([_.lc("yt-rich-shelf-renderer-collapse"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],R7.prototype,"onRichShelfRendererCollapse",null);_.e([_.qi("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"handleRerenderDownloadsData",null);
_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],R7.prototype,"entitySelectorType",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isSub",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isWatch",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isShortsPanel",null);_.e([_.Y({reflectToAttribute:!0}),_.N("isWatch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"reducedTopMargin",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data","isWatch","isWatchDefaultLayout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"noTopMargin",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("isInlinePreviewEnabled","shownItems"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"topRowEndorsement",null);_.e([_.N("data.header"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"hideHeader",null);_.e([_.lc("yt-rich-grid-reflow"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean]),_.n("design:returntype")],R7.prototype,"reflowContent",null);
_.e([_.lc("yt-reload-continuation-finish"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"onReloadContinuationFinish",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isSlimGrid",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isShortsGrid",null);
_.e([_.N("data","isSlimGrid","isShortsGrid"),_.Y(),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"noRichItemGutterMargins",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isShortsGridSlim",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isCompactGrid",null);
_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"isDefaultGrid",null);_.e([_.N("data.targetId"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"hideChipsBarOnWatch",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"onIsShortsGridChange",null);
_.e([_.N("data.enableContentSpecificAspectRatio"),_.Y(),_.n("design:type",Boolean),_.n("design:paramtypes",[])],R7.prototype,"force16By9ThumbnailAspectRatio",null);_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],R7.prototype,"continuationTriggerOffset",null);_.e([_.m({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],R7);
_.w(R7,"ytd-rich-grid-renderer",function(){if(w63!==void 0)return w63;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return w63=D},{mode:2});var hHm=_.H(function(D){return _.F("yt-feedback-prompt-view-model",{class:_.S3("ytFeedbackPromptViewModelHost",D.className)},_.F(_.z,{cond:function(){return D.data().text},
then:function(v){return _.F(_.IY,{text:v})}}),_.F("div",{class:"ytFeedbackPromptViewModelButtons"},_.F(_.c4,{data:function(){return D.data().likeButton}},{likeButtonViewModel:_.x3}),_.F(_.c4,{data:function(){return D.data().dislikeButton}},{dislikeButtonViewModel:_.PM})))},"Jl");var avs=_.H(function(D){var v=D.thumbsUp,h=D.thumbsDown,a=D.rightAlignThumbs;D=_.P(_.Zq(!1,void 0,"OxPsH"));var Q=D.next().value,G=D.next().value;D=_.P(_.Zq(!1,void 0,"V5vWne"));var x=D.next().value,f=D.next().value;D={};return _.F("div",{class:_.S3("ytwThumbsUpDownThumbs",(D.ytwThumbsUpDownRightAlign=function(){return a==null?void 0:a()},D))},_.F(_.$$,{data:v,
onToggle:function(C){G(C);x()&&f(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}),_.F(_.$$,{data:h,
onToggle:function(C){f(C);Q()&&G(!1)},
buttonShapeOverrides:function(){return{toggled:x()}}}))},"Kl");
avs.idomCompat=!0;var QJ2=_.H(function(D){var v=function(){return D.data().pendingStateEntityKey||""},h=_.l7(_.JZr,v),a=function(){var f;
if(!(f=D.disabled())){var C;f=!((C=h())==null||!C.isPendingResponse)}return f},Q=_.P(_.Zq(zar(""),void 0,"NwQXfe")),G=Q.next().value,x=Q.next().value;
_.dM(function(){requestAnimationFrame(function(){var f=D.data().onShowAnimationMs||0;f=f>0?zar("--chip-animation-duration: "+f+"ms;"):zar("");x(f)})});
return _.F("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:G},_.F(_.Xd,{each:function(){return D.data().chipData||[]},
keyBy:"REFERENCE"},function(f){return _.F($ZZ,{data:f,disabled:a,pendingStateKey:v,onError:D.onError})}))},"Ll"),$ZZ=_.H(function(D){var v=_.$X("button"),h=_.P(_.Zq(!0,void 0,"G4GPGe")),a=h.next().value,Q=h.next().value,G=function(){return D.data().text.content},x=function(){return D.data().transparentWhenLoading},f=_.Jd(function(C){var U,L,Z,E,I,S,B,A;
return _.M(function(d){switch(d.nextAddress){case 1:C.stopPropagation();if(D.disabled())return d.return();L=String(Math.floor(((U=_.gp())==null?void 0:U.getCurrentTime())||0)*1E3);Z="youchat-"+Date.now();E=function(){_.iP(D.data().onClick||{});var b={continuationCommand:{token:D.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},W={inputComposerFormData:{clientMessageId:Z,playerOffsetMs:L}};return new Promise(function(K,O){_.iP(b,{form:{formData:W},commandController:{onSuccess:function(R,
vA){K(vA)},
onServerError:function(R,vA){O(vA.error)}}})})};
I=_.p6Z(D.pendingStateKey());I(!0);_.$Td("#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");Q(!1);_.gE(d,2);return d.yield(E(),4);case 4:_.rl(d,3);break;case 2:S=_.NS(d),(A=(B=D).onError)==null||A.call(B,S);case 3:I(!1),_.YI(d)}})});
return _.F(_.z,{cond:a,then:function(){return _.F("div",{class:"ytwYouChatChipsDataChipWrapper"},_.F("button",{el:v,class:"ytwYouChatChipsDataChip","data-disabled":D.disabled,"data-transparent-loading":x,"on:click":f,tabindex:0},G))}})},"Ml");var GM3=_.H(function(D){var v=D.data;var h=D.initiallyExpanded;var a=function(){var U;return(U=v().conversationResourceData)==null?void 0:U.learningGuideData};
D=_.P(_.lL(function(){var U;return(U=h==null?void 0:h())!=null?U:!1}));
var Q=D.next().value,G=D.next().value,x=function(){G(!0)},f=_.SM(function(){var U,L;
return(L=(U=a())==null?void 0:U.sections)!=null?L:[]},void 0,"aPRmH"),C=_.SM(function(){return f().length>4},void 0,"PUPDyc");
D=_.SM(function(){var U;return!Q()&&C()&&(U=a())!=null&&U.expandButton?f().slice(0,4):f()},void 0,"wUz4Ud");
return _.F("yt-conversation-resource-view-model",{class:_.S3("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.F(_.c4,{data:D},{expandableMetadataViewModel:_.zJd}),_.F(_.z,{cond:function(){return C()&&!Q()},
then:function(){return _.F("div",{id:"showMoreButton"},_.F(_.c4,{data:function(){var U;return(U=a())==null?void 0:U.expandButton}},{buttonViewModel:function(U){return _.F(_.s$,{data:U.data,
onClick:x})}}))}}))},"Nl");var Vzm=_.H(function(D){var v=function(){var b;return(b=D.data().text)==null?void 0:b.content},h=function(){var b,W;
return(b=D.data().webData)==null?void 0:(W=b.textResult)==null?void 0:W.content},a=_.xd().resolve(_.Gh),Q=_.ke(),G=function(){return D.data().chatResponseStyle},x=function(){return!D.data().transparentBackground},f=function(){return D.data().rightAlignThumbs},C=function(){return D.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||D.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},U=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:C()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:D.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},L=function(){var b;
return D.data().webData||((b=D.data().text)==null?void 0:b.content)||D.data().videoResultsData||D.data().conversationResourceViewModel||D.data().quiz||D.data().richContent},Z=function(){return!!D.data().sectionHeader||L()},E=function(){var b;
return(b=D.data().videoResultsData)==null?void 0:b.videoShelf},I=function(){var b;
return(b=D.data().webData)==null?void 0:b.sourcesShelf},S=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||G()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:D.data().thumbsDownViewModel&&D.data().thumbsUpViewModel},B=function(){return _.k(D.data().thumbsUpViewModel,_.oA)},A=function(){return _.k(D.data().thumbsDownViewModel,_.oA)};
_.dM(function(){requestAnimationFrame(function(){var b;(b=D.shouldAnimateIcon)!=null&&b.call(D)&&lHX(Q.lottieEl)})});
var d={};return _.F("you-chat-item-view-model",{class:_.S3("ytwYouChatItemViewModelYouChatItemViewModel",(d.ytwYouChatItemViewModelColumnLayout=function(){return C()},d)),
"data-target-id":function(){return D.data().id||""}},_.F(_.z,{cond:function(){return D.data().removeIcon?!1:Z()},
then:function(){var b={};return _.F("div",{"aria-hidden":"true"},_.F(_.ne,{className:_.S3("ytwYouChatItemViewModelIcon",(b.ytwYouChatItemViewModelRtl=a==="rtl",b.ytwYouChatItemViewModelHidden=function(){return!(D.data().hideIcon||G()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||G()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:Z())},b)),
animationName:"YOUCHAT_ICON",data:U,animationRef:Q}))}}),_.F(_.z,{cond:Z,
then:function(){var b={};return _.F("div",{class:_.S3("ytwYouChatItemViewModelHost",(b.ytwYouChatItemViewModelHostNoPadding=function(){return!!D.data().sectionHeader&&!L()},b.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
b.ytwYouChatItemViewModelGradientBackground=x,b)),
role:"alert"},_.F(_.z,{cond:v,then:function(W){return _.F(_.oD,{text:W,wrapCodeBlocks:!0})}}),_.F(_.c4,{data:function(){return D.data().sectionHeader}},{sectionHeaderViewModel:function(W){var K={};
return _.F(_.HS,{data:W.data,className:_.S3("ytwYouChatItemViewModelSectionHeader",(K.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!D.data().sectionHeader&&!L()},K)),
forceSmallLayout:!0})}}),_.F(_.z,{cond:h,
then:function(W){return _.F(_.oD,{text:W,wrapCodeBlocks:!0})}}),_.F(_.z,{cond:E,
then:function(){return _.F("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.F(_.c4,{data:function(){var W;return(W=D.data().videoResultsData)==null?void 0:W.videoShelf}},{horizontalShelfViewModel:function(W){return _.F(_.fd,{data:W.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.F(_.z,{cond:I,
then:function(){return _.F("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.F(_.c4,{data:function(){var W;return(W=D.data().webData)==null?void 0:W.sourcesShelf}},{horizontalShelfViewModel:function(W){return _.F(_.fd,{data:W.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.F(_.c4,{data:function(){return D.data().conversationResourceViewModel}},{conversationResourceViewModel:GM3}),_.F(_.c4,{data:function(){return D.data().quiz}},{learningJourneyQuizViewModel:_.c7J}),_.F(_.c4,{data:function(){return D.data().richContent}},{cardViewModel:v1m,
linearLayoutViewModel:_.aut}),_.F(_.z,{cond:S,then:function(){return _.F(avs,{thumbsUp:B,thumbsDown:A,rightAlignThumbs:f})}}))}}),_.F(_.z,{cond:function(){return D.data().chipsData},
then:function(b){return _.F(QJ2,{data:b,disabled:D.pending,onError:D.onError})}}))},"Ol");
Vzm.idomCompat={callbacks:{onError:!0,onSend:!0}};var P_r=_.H(function(D){var v=function(){return D.data().choiceSelectedText},h=function(){return D.data().hasGradientBackground},a={};
return _.F("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.F(_.z,{cond:v,then:function(){return _.F("div",{class:"ytYouChatUserTurnChoiceSelected"},_.F(_.IY,{text:v}))}}),_.F("div",{class:_.S3("ytYouChatUserTurnUserMessage",(a.ytYouChatUserTurnGradientContainer=h,a.ytYouChatUserTurnDefaultContainer=function(){return!h()},a))},function(){return D.data().text}))},"Pl");var xZK=_.H(function(D){var v=_.P((0,_.iPR)(D.data)).next().value;return _.F("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return D.data().targetId||""}},_.F(_.c4,{data:function(){return D.data().header}},{chipBarViewModel:_.KXm}),_.F(_.c4,{data:function(){return v().contents}},{accordionViewModel:_.blm,
alertBannerViewModel:_.Dlt,chatLoadingViewModel:_.q9b,chatUserTurnViewModel:P_r,feedbackPromptViewModel:hHm,gridShelfViewModel:function(h){return _.F(_.r4p,{data:h.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.luJ,linearLayoutViewModel:_.aut,lockupViewModel:function(h){return _.F(_.sp,{data:h.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:D.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.HS,videoOverviewViewModel:_.nTF,youChatItemViewModel:function(h){return _.F(Vzm,{data:h.data,pending:!1})}}))},"Ql");_.zh(_.H(function(D){var v=_.P((0,_.iPR)(D.data)).next().value,h=_.va("yt-section-list-renderer"),a=_.P(_.Zq(void 0,void 0,"boqAXd")),Q=a.next().value,G=a.next().value,x=function(){var f;return _.k((f=D.data().sectionListLayoutConfiguration)==null?void 0:f.layoutConfiguration,X6Z)};
_.jA(function(){var f,C=(f=h.value)==null?void 0:f.clientWidth;if(x()){f=x();var U=f.responsiveSize;C=C<528?"CONTAINER_SIZE_NARROW":C<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var L=_.P(f.responsiveMap||[]);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.containerSize===C){L=Z.containerType;break b}L=void 0}if(L&&U){b:{if(L==="CONTAINER_TYPE_VERTICAL_LIST")if(U==="RESPONSIVE_SIZE_STANDARD"){if(C!=="CONTAINER_SIZE_NARROW"){Z="50%";break b}}else{Z=C==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}Z=void 0}f={responsiveSize:U,containerSize:C,containerType:L,force16By9ThumbnailAspectRatio:!f.enableContentSpecificAspectRatio,contentPreviewWidth:Z,fullbleed:(L==="CONTAINER_TYPE_VERTICAL_LIST"||L==="CONTAINER_TYPE_GRID")&&C==="CONTAINER_SIZE_NARROW"&&!1}}else f=void 0}else f=void 0;G(f)});
return _.F("yt-section-list-renderer",{class:_.S3("ytSectionListRendererHost",D.className),el:h,"data-target-id":function(){return D.data().targetId||""}},_.F(_.c4,{data:function(){return v().contents}},{itemSectionRenderer:function(f){return _.F(xZK,{data:f.data,
containerLayoutConfig:Q})}}))},"Rl"),"yt-section-list-renderer",{props:{data:_.gj,
className:_.C_}});var Mzr;var fvr;var C_b=function(){return _.c.apply(this,arguments)||this};
_.J(C_b,_.c);_.e([_.Y(),_.n("design:type",Object)],C_b.prototype,"data",void 0);_.e([_.Ry({is:"yt-alert-renderer",disableElementRegistration:!0})],C_b);
_.w(C_b,"yt-alert-renderer",function(){if(fvr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Mzr===void 0&&(Mzr=document.createElement("template"));var a=Mzr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);fvr=D}D=fvr;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ZJI;ZJI=function(D,v,h,a){h||(D?a&&(a.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||a.WINDOW_SIZE_CHANGED&&(v.width!==window.innerWidth||v.height!==window.innerHeight)||a.SAFARI_ABORTED_BY_NEW_TRANSITION&&D instanceof DOMException&&D.name==="AbortError"&&D.message.includes("Old view transition aborted by new view transition"))||_.mV(D):_.mV(Error("rj")))};
_.Ef2=function(D,v){v=v===void 0?{}:v;var h,a,Q,G,x,f,C,U,L,Z,E,I,S;return _.M(function(B){switch(B.nextAddress){case 1:h=v;a=h.shouldWrap===void 0?!0:h.shouldWrap;Q=h.skipTransitionTimeoutMs===void 0?300:h.skipTransitionTimeoutMs;G=h.beforeTransition;x=h.afterTransition;if(!a||!document.startViewTransition||document.visibilityState==="hidden")return B.return(D());f={width:window.innerWidth,height:window.innerHeight};C=!1;(U=G)==null||U();_.gE(B,2);L=document.startViewTransition(D);Z=setTimeout(function(){L.skipTransition();
C=!0},Q);
return B.yield(L.ready,4);case 4:return clearTimeout(Z),B.yield(L.finished,5);case 5:clearTimeout(Z);(E=x)==null||E();_.rl(B,0);break;case 2:I=_.NS(B),(S=x)==null||S(),ZJI(I,f,C,v.ignoredErrors),_.YI(B)}})};
_.I0$=function(D,v,h){D.persistentPanelContainerMap.set(h,v)};
_.zD=function(){for(var D=Array(36),v=0,h,a=0;a<36;a++)a==8||a==13||a==18||a==23?D[a]="-":a==14?D[a]="4":(v<=2&&(v=33554432+Math.random()*16777216|0),h=v&15,v>>=4,D[a]=_.z6F[a==19?h&3|8:h]);return D.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 gfs=_.DK(['<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>']),
k3r=_.rAy(gfs);k3r.setAttribute("style","display: none;");document.head.appendChild(k3r.content);_.Ux=_.YWo(function(D){var v=_.l9("DIV");D&&(v.className=D);v.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";D=_.l9("DIV");_.WmR(D,"200px","200px");v.appendChild(D);document.body.appendChild(v);D=v.offsetWidth-v.clientWidth;_.Np(v);return D});var SMm;var J$$;var L5=function(){var D=_.c.apply(this,arguments)||this;D.icon=null;return D};
_.J(L5,_.c);L5.prototype.dismiss=function(){_.F1(this.hostElement,"yt-live-chat-error-message-dismiss")};
L5.prototype.computeIcon=function(D){return D&&D.iconType?"yt-icons:"+D.iconType.toLowerCase():"yt-icons:close"};
_.e([_.Y(),_.n("design:type",Object)],L5.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon(data.icon)"}),_.n("design:type",Object)],L5.prototype,"icon",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],L5);
_.w(L5,"yt-live-chat-error-message-renderer",function(){if(J$$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;SMm===void 0&&(SMm=document.createElement("template"));var a=SMm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);J$$=D}D=J$$;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var dIH,jUR,sUM,mIK,H3m,nCQ,TrQ,RZY,i3d,WmM,t$K,rrd,H6,uXK,DfM,vow,hBM,afz,$f3,QmB,GKz,VRw,PHw,xfM,MRz,ffR,CHY,ooH,FMQ,zBz,Ufd,LMQ,Zzf,Eof,IfR,goY,J33,lfo,YQw,B0w,c3Y,Xdo,kKH,SQB,bzz,dfo,jmY,smH,mfM,Hz3,y30,A3w,eBz;
dIH=function(D,v,h,a){var Q=!1,G={contentId:void 0,contentType:"video"};v=_.P(Object.entries(v));for(var x=v.next();!x.done;x=v.next()){var f=_.P(x.value);x=f.next().value;f=f.next().value;D.includes(x)&&!h.has(f)?(G.contentId=f,h.add(f),Q=!0):x==="contentType"?f==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(G.contentType="playlist"):typeof f==="object"&&f!==null&&dIH(D,f,h,a)}Q&&a.push(G)};
jUR=function(D,v){return _.gR(D.entities,"liveReactionsDataEntity",v)};
sUM=function(D,v){D=_.gR(D.entities,"booleanEntity",v);return!(!D||!D.value)};
mIK=function(D,v){var h=_.wd();h&&D&&_.tP(h,_.d4(D),v)};
H3m=function(D,v){return _.gR(D.entities,"timedMarkersListSyncEntity",v)};
_.yrY=function(D){return D.watch.isWatchActive};
_.ws3=function(D){return _.n_(D)||_.OA(D)||_.TCc(D)};
_.eZz=function(D){return!_.ws3(D)};
_.ma=function(D){return D.watch.watchScrollTop};
nCQ=function(D){return D.watch.isLiveChatCollapsed};
_.O3B=function(){_.g("web_watch_log_theater_mode")&&_.f8o("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Kmf=function(D,v,h){if(!D.includes("START_TIME_PLACEHOLDER")||!D.includes("END_TIME_PLACEHOLDER"))return D;var a=new Date(0),Q=new Date(0);a.setUTCMilliseconds(v);Q.setUTCMilliseconds(h);return D.replace("START_TIME_PLACEHOLDER",_.D6(a,7)).replace("END_TIME_PLACEHOLDER",_.D6(Q,7))};
TrQ=function(D,v){return _.gR(D.entities,"booleanEntity",v)};
RZY=function(){return function(D){_.xt(_.Xe("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:D}))}};
i3d=function(D){switch(D){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
WmM=function(D,v,h){var a=_.Rq(h);D&&v&&a&&D.getPlayerPromise().then(function(Q){_.Z5o(a)&&_.s5();(new _.Dh(Q)).executeCommand(a,v);_.g("continue_playback_on_desktop_companion_click")||Q.pauseVideo()})};
t$K=function(D){var v=_.Mq(),h;if(h=_.T3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var a;h=(a=h())==null?void 0:a.layoutId}else h=null;WmM(v,h,D)};
rrd=function(D){var v=_.Mq(),h;if(h=_.T3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var a;h=(a=h())==null?void 0:a.layoutId}else h=null;WmM(v,h,D)};
H6=function(D,v){var h=D<0?"-":"";D=Math.abs(D);var a=Math.floor(D/3600),Q=Math.floor(D)%3600,G=Math.floor(Q/60);Q=Math.floor(Q)%60;var x="";(v===void 0?0:v)&&(x="."+Math.round((D-Math.floor(D))*10));return a>0?h+a+":"+(G<10?"0"+G:""+G)+":"+(Q<10?"0"+Q:""+Q)+x:h+G+":"+(Q<10?"0"+Q:""+Q)+x};
uXK=function(D){var v=D.match(/[^0-9:\.]/g);if(v&&v.length>0)return null;D=D.split(":");if(D.length===0||D.length>3)return null;v=1;for(var h=0;D.length>0;){var a=D.pop();if(a===void 0)break;var Q=Number(a);if(a===""||isNaN(Q))return null;h+=Q*v;v*=60}return h};
DfM=function(D,v,h,a){D=Math.max(h,D);v=Math.min(v,a-h);D+v>a?(h=a,D=h-v):h=D+v;return{start:D,end:h}};
vow=function(D,v,h,a,Q,G){D<h?D=h:D+Q>a&&(D=a-Q);v>a&&(v=a);v=Math.min(D+G,Math.max(D+Q,v));return{start:D,end:v}};
hBM=function(D,v,h,a,Q,G){v>a?v=a:v-Q<h&&(v=h+Q);D<h&&(D=h);D=Math.min(v-Q,Math.max(v-G,D));return{start:D,end:v}};
afz=function(D){return _.g("web_transcript_cue_id_killswitch")?String(D):"ytd-transcript-renderer_"+D};
$f3=function(D){return _.g("web_transcript_cue_id_killswitch")?!0:D.startsWith("ytd-transcript-renderer")};
QmB=function(D){var v=_.Mq(),h;if(h=_.T3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var a;h=(a=h())==null?void 0:a.layoutId}else h=null;WmM(v,h,D)};
GKz=function(D){D.style.height="auto";D.style.height=Math.min(D.scrollHeight||20,80)+"px"};
VRw=function(D,v,h){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:v,hasGradientBackground:h}}],insertByPositionInSection:{sectionTargetId:D,position:"INSERTION_POSITION_LAST"}}}]}}}};
PHw=function(D){var v=_.Mq(),h;h=(h=_.T3("yt.www.ads.eventcache.getLastCompanionData"))?(h=h())&&h.layoutId:null;WmM(v,h,D)};
xfM=function(D){var v=_.Mq(),h;h=(h=_.T3("yt.www.ads.eventcache.getLastCompanionData"))?(h=h())&&h.layoutId:null;WmM(v,h,D)};
MRz=function(D){if(D.simpleText)return[{text:D.simpleText}];var v;return(v=D.runs)!=null?v:[]};
ffR=function(D){var v=D.startEndTimeTemplate,h=D.startTimeUtcMillis;D=D.endTimeUtcMillis;if(v&&h&&D)return _.aX(_.Kmf(_.$V(v),Number(h),Number(D)))};
CHY=function(D,v){var h,a,Q=D==null?void 0:(h=D.viewCount)==null?void 0:(a=h.videoViewCountRenderer)==null?void 0:a.shortViewCount;if(!v&&Q)return Q;var G,x;return D==null?void 0:(G=D.viewCount)==null?void 0:(x=G.videoViewCountRenderer)==null?void 0:x.viewCount};
ooH=function(D,v){var h=D==null?void 0:D.relativeDateText;return!v&&h?[h,!0]:[D==null?void 0:D.dateText,!1]};
FMQ=function(D,v,h,a,Q){a=a===void 0?"":a;Q=Q===void 0?!1:Q;var G=CHY(D,v),x=_.P(ooH(D,v)),f=x.next().value;x=x.next().value;v=v?D==null?void 0:D.sponsorsOnlyFirstTimeLongText:D==null?void 0:D.sponsorsOnlyFirstTimeShortText;var C=[];h&&G&&C.push(G);!h&&x||!f||C.push(f);D=[Q?D==null?void 0:D.subtitle:void 0].concat(_.j_(C),[v,D==null?void 0:D.stationName,D==null?void 0:D.rating,D?ffR(D):void 0,D==null?void 0:D.upNextProgramText,D==null?void 0:D.superTitleLink]).filter(function(U){return!!U});
h={runs:[]};for(Q=0;Q<D.length;Q++)h.runs.push.apply(h.runs,_.j_(MRz(D[Q]))),Q<D.length-1&&h.runs.push({text:" "+a+" "});return h};
zBz=function(D){return D.filter(function(v){return!_.k(v,_.vi)})};
Ufd=function(D){var v,h,a,Q;if(D=D==null?void 0:(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.results)==null?void 0:(Q=a.results)==null?void 0:Q.contents){var G,x;return(x=(G=D.find(function(f){return!!f.videoPrimaryInfoRenderer}))==null?void 0:G.videoPrimaryInfoRenderer)==null?void 0:x.updatedMetadataEndpoint}};
LMQ=function(D,v){var h;return(h=D.sourceConfigs)==null?void 0:h.find(function(a){return a.videoId===v})};
Zzf=function(D){return D==="End of video"||D==="End of playlist"};
Eof=function(D){var v,h,a,Q;return(v=D.getWatchNextResponse())==null?void 0:(h=v.contents)==null?void 0:(a=h.twoColumnWatchNextResults)==null?void 0:(Q=a.playlist)==null?void 0:Q.playlist};
IfR=function(D){var v,h,a,Q,G,x;return(v=Eof(D))==null?void 0:(h=v.playlistButtons)==null?void 0:(a=h.menuRenderer)==null?void 0:(Q=a.topLevelButtons)==null?void 0:(G=Q[0])==null?void 0:(x=G.playlistLoopButtonRenderer)==null?void 0:x.playlistLoopStateEntityKey};
goY=function(D){var v=_.xd().resolve(_.fh),h;return(v=(h=_.k(v.getAutoplayEndpoint(),_.hP))==null?void 0:h.playlistId)&&v===D};
J33=function(D,v,h,a,Q){function G(){_.HK.cancelJob(ye);var x=kKH(v,h/D.getPlaybackRate()),f=x.hours,C=x.minutes;x=(x.seconds*1E3||6E4)/D.getPlaybackRate();D.setVideoTimeLeft(SQB(f,C));a&&D.getPlayerState()!==0&&D.setSleepTimerTimeLeft(SQB(f,C,!0));(f>0||C>0)&&!Q&&(ye=_.b7(_.HK,G,x))}
_.HK.cancelJob(ye);ye=_.b7(_.HK,G)};
lfo=function(D,v,h){function a(){_.HK.cancelJob(pdQ);var Q=kKH(v,h),G=Q.hours;Q=Q.minutes;var x=6E4/D.getPlaybackRate();if(G>0||Q>0)D.setSleepTimerTimeLeft(SQB(G,Q,!0)),pdQ=_.b7(_.HK,a,x)}
_.HK.cancelJob(pdQ);pdQ=_.b7(_.HK,a)};
YQw=function(D,v){var h=D.getVolume()/(v/500),a=function(Q){_.HK.cancelJob(N0M);var G=Math.floor(Q-h);D.setVolume(G,!1);G>0&&(N0M=_.b7(_.HK,function(){a(G)},500))};
_.HK.cancelJob(N0M);N0M=_.b7(_.HK,function(){a(D.getVolume())})};
B0w=function(D,v){_.HK.cancelJob(N0M);v&&D.syncVolume()};
c3Y=function(){var D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.p1("SLEEP_TIMER_DISRUPTED")}}}}};_.xd().resolve(_.fx).resolveCommand(D)};
Xdo=function(D){return(D.getDuration()-D.getProgressState().current)*1E3};
kKH=function(D,v){D=D+v-(0,_.xz)();if(D<=0)return{hours:0,minutes:0,seconds:0};var h=new A3w(0,0,0,0,0,0,D);D=h.getHours();v=h.getMinutes();h=h.getSeconds();h!==0&&v++;v!==0&&v%60===0&&(D++,v=0);return{hours:D,minutes:v,seconds:h}};
SQB=function(D,v,h){return D>0&&v>0?h?_.p1("TIME_LEFT_HOURS_MINUTES",{hours:D.toString(),minutes:v.toString()}):_.p1("TIME_HOURS_MINUTES",{hours:D.toString(),minutes:v.toString()}):D>0?h?_.l1("TIME_LEFT_HOURS",D):_.l1("TIME_HOURS",D):h?_.p1("TIME_LEFT_MINUTES",{minutes:v.toString()}):_.p1("TIME_MINUTES",{minutes:v.toString()})};
bzz=function(D,v){if(D.timelyActions)return D.timelyActions.find(function(h){var a;return((a=_.k(h,qQw))==null?void 0:a.cueRangeId)===v})};
dfo=function(D){var v=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.JF(D);D.keyMap_.forEach(function(h,a){_.wc(v,a)||this.remove(a)},D)};
jmY=function(D,v){D.reloadContinuationItemsCommandMatcher=v};
smH=function(){var D=_.xd().resolve(_.P4),v=[];dIH(["videoId","contentId"],D.data,new Set,v);return v};
mfM=function(){return smH().filter(function(D){return D.contentType==="video"}).map(function(D){return D.contentId}).filter(function(D){return D!==void 0})};
_.w_=function(D,v){D.insertBefore(v,D.childNodes[0]||null)};
Hz3=function(D){if(D>=48&&D<=57||D>=96&&D<=106||D>=65&&D<=90||_.La&&D==0)return!0;switch(D){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.U1;default:return!1}};
y30=function(D){if(D.altKey&&!D.ctrlKey||D.metaKey||D.keyCode>=112&&D.keyCode<=123)return!1;if(Hz3(D.keyCode))return!0;switch(D.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.U1;default:return D.keyCode<166||D.keyCode>183}};
A3w=function(D,v,h,a,Q,G,x){this.date=typeof D==="number"?new Date(D,v||0,h||1,a||0,Q||0,G||0,x||0):new Date(D&&D.getTime?D.getTime():_.M6())};
_.fa(A3w,_.wm);_.V=A3w.prototype;_.V.getHours=function(){return this.date.getHours()};
_.V.getMinutes=function(){return this.date.getMinutes()};
_.V.getSeconds=function(){return this.date.getSeconds()};
_.V.getMilliseconds=function(){return this.date.getMilliseconds()};
_.V.getUTCDay=function(){return this.date.getUTCDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.V.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.V.setHours=function(D){this.date.setHours(D)};
_.V.setMinutes=function(D){this.date.setMinutes(D)};
_.V.setSeconds=function(D){this.date.setSeconds(D)};
_.V.setMilliseconds=function(D){this.date.setMilliseconds(D)};
_.V.setUTCHours=function(D){this.date.setUTCHours(D)};
_.V.setUTCMinutes=function(D){this.date.setUTCMinutes(D)};
_.V.setUTCSeconds=function(D){this.date.setUTCSeconds(D)};
_.V.setUTCMilliseconds=function(D){this.date.setUTCMilliseconds(D)};
_.V.add=function(D){_.wm.prototype.add.call(this,D);D.hours&&this.setUTCHours(this.date.getUTCHours()+D.hours);D.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+D.minutes);D.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+D.seconds)};
_.V.JSC$11334_toIsoString=function(D){var v=_.wm.prototype.JSC$11334_toIsoString.call(this,D);return D?v+"T"+_.UO(this.getHours(),2)+":"+_.UO(this.getMinutes(),2)+":"+_.UO(this.getSeconds(),2):v+"T"+_.UO(this.getHours(),2)+_.UO(this.getMinutes(),2)+_.UO(this.getSeconds(),2)};
_.V.equals=function(D){return this.getTime()==D.getTime()};
_.V.toString=function(){return this.JSC$11334_toIsoString()};
_.V.clone=function(){var D=new A3w(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.wdf=function(D){return _.oG({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:D}})};
eBz=new _.z0("imageTileRenderer");var no0=new _.z0("adGridCardCollectionViewModel");var Oz3=new _.z0("carouselTitleViewModel");var KMQ=new _.z0("ctaCarouselItemViewModel");var T0R=new _.z0("textFieldViewModel");_.RBK=new _.z0("engagementPanelHeaderShowNavigationButtonCommand");var izM=new _.z0("hideEngagementPanelScrimAction");var WMd=new _.z0("setActivePanelItemAction");var tRK=new _.z0("showEngagementPanelScrimAction");var r3d=new _.z0("updateEngagementPanelAction");var uYH=new _.z0("updateSearchInVideoResultsAction");var DSf=new _.z0("transcriptCueGroupRenderer");var vIK=new _.z0("transcriptCueRenderer");var hJz=new _.z0("transcriptFooterRenderer");var axw=new _.z0("engagementPanelAdSubtitleRenderer");var $Sm=new _.z0("videoDescriptionFantasySectionViewModel");var Q9K=new _.z0("deleteClipEngagementPanelCommand");var Geo=new _.z0("loopCommand");var V_o=new _.z0("changeCreatorEndscreenVisibilityCommand");var PzM=new _.z0("liveChatCallForQuestionsRenderer");var xSR=new _.z0("updateTimedMarkersSyncObserverCommand");var qQw=new _.z0("timelyActionViewModel");var M_Q=new _.z0("timelyActionsOverlayViewModel");var fxY=new _.z0("repeatChapterCommand");var Czd=new _.z0("watchPlayerOverflowMenuCommand");var oIH=new _.z0("compositeVideoOverlayRenderer");var Fkw=new _.z0("sortFilterSubMenuRenderer");var zJK=new _.z0("switchListItemViewModel");var USY=new _.z0("inputComposerViewModel");var Lkm=new _.z0("transcriptEditSegmentCommand");var ZfQ=new _.z0("transcriptUpdateSegmentTextCommand");var EIQ=new _.z0("transcriptSearchBoxRenderer");var Ixo=new _.z0("transcriptSegmentListRenderer");var gIo=new _.z0("transcriptSegmentRenderer");_.keH=new _.z0("updateDateTextAction");var SXQ=new _.z0("updateTitleAction");var Jwf=new _.z0("updateViewershipAction");var ppM=new _.z0("carouselLockupRenderer");var er=new _.z0("expandableVideoDescriptionBodyRenderer");var lxw=new _.z0("videoDescriptionHeaderRenderer");var NE0=new _.z0("videoDescriptionYouchatSectionViewModel");_.nu=_.oZ("kevlar_watch_page_horizontal_margin",24);_.YXB=_.oZ("kevlar_watch_page_columns_top_padding",24);_.BEK=426+_.nu*2;_.OJ=_.oZ("kevlar_watch_two_column_width_threshold",1E3);_.cwd=_.nu*2;_.XpY=_.oZ("kevlar_watch_secondary_width",402);_.AwR=_.oZ("kevlar_watch_max_player_width",1280);_.qXM=_.oZ("kevlar_watch_flexy_metadata_height",136);_.bfH=_.cwd+310+_.nu;_.dSz=_.cwd+360+_.nu;var j9m={PAUSE_CHAT:18};var s9m;var mSf;var Ku=function(){return _.c.apply(this,arguments)||this};
_.J(Ku,_.c);Ku.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ku.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var D=_.k(this.data.button,_.fH);D&&(D.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.GT.Object.defineProperties(Ku,{template:{configurable:!0,enumerable:!0,get:function(){if(mSf===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;s9m===void 0&&(s9m=document.createElement("template"));var a=s9m;h.call(v,a.content.cloneNode(!0),D.content.firstChild);mSf=D}D=mSf;return D}}});
_.e([_.l(_.fe),_.n("design:type",Object)],Ku.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({selectorArgs:["data.enabledEntityKey"],selector:sUM,observer:"onEnabledChange"}),_.n("design:type",Boolean)],Ku.prototype,"enabled",void 0);_.e([_.Y(),_.n("design:type",Object)],Ku.prototype,"data",void 0);_.e([_.Ry({is:"yt-disableable-button-view-model",noInjection:!0})],Ku);var HfH;var ywM;var wpf=["transVert01","transVert02","transVert03"],eJY="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),TV=function(){var D=_.c.apply(this,arguments)||this;D.emojiManager=_.Ua;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};D.reactionBuckets=[];D.noEmojiIdentifier="NO_EMOJI";return D};
_.J(TV,_.c);_.V=TV.prototype;_.V.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.V.desktopFountainEmojiSizePxChanged=function(){_.SB(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.V.createUserReactionAnimation=function(D){this.createEmojiAnimation(D,!0)};
_.V.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var D;((D=this.data)==null?0:D.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Xe("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.j_(this.emojiContainer.children)).forEach(function(v){v.remove()})};
_.V.detached=function(){this.cleanupFountain()};
_.V.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var D;this.reactionBuckets=_.sV.unsafeClone((D=this.emojiFountainData)==null?void 0:D.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.V.processEmojiBucket=function(D){var v=this;if(this.reactionBuckets&&!(D>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var h=this.reactionBuckets[D];this.generateEmojiAnimations(h);if(D<this.reactionBuckets.length-1){var a;if(h==null?0:(a=h.duration)==null?0:a.seconds)this.emojiBucketTimerId=setTimeout(function(){v.processEmojiBucket(D+1)},Number(h.duration.seconds)*1E3)}}};
_.V.generateEmojiAnimations=function(D){var v=this,h=this.getRandomEmojiIdFromBucketWithOverride(D);if(h&&h!==this.noEmojiIdentifier){var a=0;D.targetEps?(a=this.linearInterpolateBounded(1,20,100,12,D.emojiSizeIndex||0),this.createEmojiAnimation(h,!1,D.emojiAnimationMs,a),a=this.getEmojiDelayMsFromTargetEps(D.targetEps)):(this.createEmojiAnimation(h),a=this.getEmojiDelayMsFromDistribution(D.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){v.generateEmojiAnimations(D)},a)}};
_.V.getRandomEmojiIdFromBucketWithOverride=function(D){if(!(D&&D.reactionsData&&D.reactionsData.length&&D.totalReactions))return this.noEmojiIdentifier;for(var v=D.totalReactions,h=1,a=_.P(D.reactionsData),Q=a.next();!Q.done;Q=a.next())Q=Q.value,(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&Q.reactionCount&&(v-=Q.reactionCount,h-=Q.reactionWeightOverride);a=!0;h<0&&(a=!1,v=D.totalReactions,h=1);if(a&&h>0&&v===0)if(h===1){Q=0;for(var G=_.P(D.reactionsData),x=G.next();!x.done;x=G.next())x=
x.value,x.reactionCount&&x.reactionCount>0&&Q++;Q=1/Q;G=_.P(D.reactionsData);for(x=G.next();!x.done;x=G.next())x.value.reactionWeightOverride=Q}else for(Q=1/(1-h),G=_.P(D.reactionsData),x=G.next();!x.done;x=G.next())x=x.value,x.reactionWeightOverride&&(x.reactionWeightOverride*=Q);Q=Math.random();G=0;x=_.P(D.reactionsData);for(var f=x.next();!f.done;f=x.next())if(f=f.value,f.reactionCount&&(G=(f.reactionWeightOverride||f.reactionWeightOverride===0)&&a?G+f.reactionWeightOverride:G+h*f.reactionCount/
v,G>Q&&(f.reactionCount--,D.totalReactions--,f=this.reactionItemToEmojiString(f),f!==this.noEmojiIdentifier)))return f;return this.noEmojiIdentifier};
_.V.reactionItemToEmojiString=function(D){if(D.unicodeEmojiId)return D.unicodeEmojiId;if(D.emoteId)return D.emoteId;if(D.videoReactionType)switch(D.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.V.createEmojiAnimation=function(D,v,h,a){v=v===void 0?!1:v;this.lastEmojiRequestedForTesting=D;var Q=D.startsWith("yt-icons:"),G=_.Fc(this.emojiManager,D);if(G||Q){var x=document.createElement("emoji");x.classList.add("yt-emoji-fountain-view-model");x.classList.add(wpf[Math.floor(Math.random()*wpf.length)]);var f=document.createElement("div");f.classList.add("yt-emoji-fountain-view-model");f.classList.add("horizontal-container");f.classList.add(eJY[Math.floor(Math.random()*eJY.length)]);v?(h=document.createElement("div"),
h.classList.add("user-reaction-bubble"),h.classList.add("yt-emoji-fountain-view-model"),f.appendChild(h)):(h&&(x.style.animationDuration=h+"ms",f.style.animationDuration=h+"ms"),a&&(x.style.width=a+"px",x.style.height=a+"px"));Q?(Q=document.createElement("yt-icon"),Q.polymerController.icon=D,a&&(Q.style.width=a+"px",Q.style.height=a+"px"),D=Q):D=this.emojiManager.createEmoji(G,!1);D.classList.add("yt-emoji-fountain-view-model");f.appendChild(D);x.appendChild(f);this.emojiContainer.appendChild(x);
x.addEventListener("animationend",function(){x.remove()});
var C,U;if((C=this.data)==null?0:(U=C.loggingDirectives)==null?0:U.trackingParams)v=v?_.En(183501):_.En(183500),mIK(this.data.loggingDirectives.trackingParams,v),_.uUr(v);setTimeout(function(){x&&x.remove()},2E3)}};
_.V.getEmojiDelayMsFromDistribution=function(D){return Math.random()*(D||1)*1E3};
_.V.getEmojiDelayMsFromTargetEps=function(D){return Math.random()*2*(1/D)*1E3};
_.V.linearInterpolateBounded=function(D,v,h,a,Q){Q=Math.min(Math.max(Q,D),h);return(v*(h-Q)+a*(Q-D))/(h-D)};
TV.prototype.onEmojiFountainDataEntityUpdate=TV.prototype.onEmojiFountainDataEntityUpdate;TV.prototype.desktopFountainEmojiSizePxChanged=TV.prototype.desktopFountainEmojiSizePxChanged;TV.prototype.isActiveChanged=TV.prototype.isActiveChanged;_.e([_.Y(),_.n("design:type",_.oS)],TV.prototype,"emojiManager",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],TV.prototype,"ytLiveChatReduxBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],TV.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TV.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(D,v){return _.gR(D.entities,"emojiFountainDataEntity",v)}}),
_.n("design:type",Object)],TV.prototype,"emojiFountainData",void 0);_.e([_.Y(),_.n("design:type",Boolean)],TV.prototype,"isActive",void 0);_.e([_.Ni("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TV.prototype,"isActiveChanged",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],TV.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",String)],TV.prototype,"lastEmojiRequestedForTesting",void 0);
_.e([_.Y({value:function(){return _.oZ("desktop_fountain_emoji_size_px",20)}}),
_.n("design:type",Number)],TV.prototype,"desktopFountainEmojiSizePx",void 0);_.e([_.Ni("desktopFountainEmojiSizePx"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TV.prototype,"desktopFountainEmojiSizePxChanged",null);_.e([_.Br("#emoji-container"),_.n("design:type",HTMLElement)],TV.prototype,"emojiContainer",void 0);
_.e([_.Ni("emojiFountainData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TV.prototype,"onEmojiFountainDataEntityUpdate",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],TV);
_.w(TV,"yt-emoji-fountain-view-model",function(){if(ywM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;HfH===void 0&&(HfH=document.createElement("template"));var a=HfH;h.call(v,a.content.cloneNode(!0),D.content.firstChild);ywM=D}D=ywM;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var nIR;var Ofz;var R2=function(){return _.c.apply(this,arguments)||this};
_.J(R2,_.c);R2.prototype.onChoiceChanged=function(){this.data&&_.SB(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
R2.prototype.onChoiceChanged=R2.prototype.onChoiceChanged;_.e([_.Y(),_.n("design:type",Object)],R2.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R2.prototype,"onChoiceChanged",null);_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],R2);
_.w(R2,"yt-live-chat-banner-poll-choice",function(){if(Ofz===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;nIR===void 0&&(nIR=document.createElement("template"));var a=nIR;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Ofz=D}D=Ofz;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Kk3;var TEo;var i$=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_button_rework_with_live");D.small=!1;return D};
_.J(i$,_.c);i$.prototype.computeIsSmall=function(){var D;return((D=this.buttonOverrides)==null?void 0:D.size)==="S"};
i$.prototype.computeId=function(){return this.data&&this.data.targetId};
_.e([_.l(_.Ce.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],i$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",String)],i$.prototype,"id",void 0);_.e([_.Y(),_.n("design:type",Object)],i$.prototype,"buttonOverrides",void 0);_.e([_.Y(),_.n("design:type",Object)],i$.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],i$.prototype,"modern",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.n("design:type",Object)],i$.prototype,"small",void 0);_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-button"})],i$);
_.w(i$,"yt-live-chat-button",function(){if(TEo===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Kk3===void 0&&(Kk3=document.createElement("template"));var a=Kk3;h.call(v,a.content.cloneNode(!0),D.content.firstChild);TEo=D}D=TEo;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var RJm;var ifm;var W6=function(){var D=_.c.apply(this,arguments)||this;D.inCollapsedBanner=!1;D.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};D.questionButtonOverrides={style:"mono",type:"filled"};return D};
_.J(W6,_.c);_.V=W6.prototype;_.V.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]]"}}}}}};
_.V.onContextMenuButtonClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
_.V.onYtRendererstamperFinished=function(){this.menuButton=_.ZW(this.hostElement).querySelector("#menu-button")};
_.V.dataChanged=function(){var D,v;if((v=_.k((D=this.data)==null?void 0:D.overflowMenuButton,_.Vi))==null?0:v.command)this.data.contextMenuEndpoint=_.k(this.data.overflowMenuButton,_.Vi).command};
_.V.onButtonClick=function(){var D,v=_.k((D=this.data)==null?void 0:D.askQuestionButton,_.Vi);if(v){if(v.trackingParams&&(D=_.d4(v.trackingParams))){var h=_.wd();h&&_.hA(h,D)}_.F1(this.hostElement,"innertube-command",v.command)}};
W6.prototype.onYtRendererstamperFinished=W6.prototype.onYtRendererstamperFinished;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],W6.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],W6.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Y({observer:"dataChanged"}),_.n("design:type",Object)],W6.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],W6.prototype,"inCollapsedBanner",void 0);_.e([_.Y(),_.n("design:type",Object)],W6.prototype,"buttonOverrides",void 0);_.e([_.Y(),_.n("design:type",Object)],W6.prototype,"questionButtonOverrides",void 0);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W6.prototype,"onYtRendererstamperFinished",null);
_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],W6);
_.w(W6,"yt-live-chat-call-for-questions-renderer",function(){if(ifm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;RJm===void 0&&(RJm=document.createElement("template"));var a=RJm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);ifm=D}D=ifm;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Wkz={};Wkz.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var D=this;window.requestAnimationFrame(function(){D.restoreFocusNode_||(D.restoreFocusNode_=document.activeElement);var v=_.lSb(D.hostElement);v.length&&v[v.length-1].focus()})},
isAttachedChanged_:function(D,v){D?this.focusChild_():v&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(D){this.hidden||_.Pr(D).indexOf(this.hostElement)!==-1||(D.stopPropagation(),this.focusChild_())}};var t_Y;var rwm;var tZ=function(){return _.c.apply(this,arguments)||this};
_.J(tZ,_.c);tZ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
tZ.prototype.onClick=function(D){D.target!==this.confirmButton&&D.target!==this.cancelButton&&(this.hidden=!0)};
_.e([_.Br("#confirm_button"),_.n("design:type",Object)],tZ.prototype,"confirmButton",void 0);_.e([_.Br("#cancel_button"),_.n("design:type",Object)],tZ.prototype,"cancelButton",void 0);_.e([_.Y(),_.n("design:type",uyf)],tZ.prototype,"data",void 0);_.e([_.Y({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],tZ.prototype,"hidden",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(Wkz.YtLiveChatDialogBehavior),_.n("design:type",Object)],tZ.prototype,"ytLiveChatDialogBehavior",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],tZ);
var uyf=_.w(tZ,"yt-live-chat-dialog-renderer",function(){if(rwm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;t_Y===void 0&&(t_Y=document.createElement("template"));var a=t_Y;h.call(v,a.content.cloneNode(!0),D.content.firstChild);rwm=D}D=rwm;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var DVf;var vJm,h3w=function(){if(vJm!==void 0)return vJm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;DVf===void 0&&(DVf=document.createElement("template"));var a=DVf;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return vJm=D};var a3Q;var $VB;var r_=function(){var D=_.c.apply(this,arguments)||this;D.tooltip=null;D.data=null;D.id="";D.active=!1;D.icon="";D.disabled=!1;D.showTooltip=!1;D.useToggledActiveState=!0;D.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return D};
_.J(r_,_.c);_.V=r_.prototype;
_.V.dataChanged=function(){var D;((D=this.data)==null?0:D.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.kU)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var v;if((v=this.data)==null?0:v.disabled)this.disabled=!0};
_.V.computeId=function(D){return D};
_.V.computeIcon=function(D,v){if(!D)return"";if(this.useToggledActiveState)return"yt-icons:"+D.toLowerCase();var h,a;return v&&((h=this.data)==null?0:(a=h.toggledIcon)==null?0:a.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+D.toLowerCase()};
_.V.logPDGEntryPoint=function(){_.w0u(_.kV("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")};
_.V.immediatelyShowTooltip=function(){var D=_.ZW(this.hostElement).querySelector("#tooltip");D.animationDelay=0;D.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};D.show()};
_.V.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.V.onClick=function(D){var v;((v=this.data)==null?0:v.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),D.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.F1(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.V.computeShowTooltip=function(D,v){return!!(D&&D.tooltip&&v)};
_.V.maybeUpdateTooltipText=function(){var D=this,v;if((v=this.data)==null?0:v.tooltip){var h=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.kU)(D.tooltip).textContent=h},250)}};
_.V.handleLiveChatActions=function(D){var v=this;D.length&&(this.id!=="creator"&&this.id!=="product-picker"||D.forEach(function(h){(h=v.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",h))&&h.durationSec===h.fullDurationSec&&v.startBubble(v.colorFromDecimal(h.startBackgroundColor))}))};
_.V.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.V.startBubble=function(D){_.SB(this.hostElement,{"--yt-live-chat-monetization-button-glow":D});this.hostElement.setAttribute("bubble","")};
_.V.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.V.colorFromDecimal=function(D){typeof D==="string"&&(D=Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
r_.prototype.onAnimationEnd=r_.prototype.onAnimationEnd;r_.prototype.disabledChanged=r_.prototype.disabledChanged;r_.prototype.dataChanged=r_.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],r_.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.Ce.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],r_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],r_.prototype,"data",void 0);_.e([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",Object)],r_.prototype,"id",void 0);_.e([_.Y({notify:!0,reflectToAttribute:!0}),_.n("design:type",Object)],r_.prototype,"active",void 0);
_.e([_.Y({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.n("design:type",Object)],r_.prototype,"icon",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],r_.prototype,"disabled",void 0);_.e([_.Y({computed:"computeShowTooltip(data, disabled)"}),_.n("design:type",Object)],r_.prototype,"showTooltip",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],r_.prototype,"useToggledActiveState",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r_.prototype,"dataChanged",null);_.e([_.Ni("disabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r_.prototype,"disabledChanged",null);_.e([_.lc("animationend"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],r_.prototype,"onAnimationEnd",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],r_);
_.w(r_,"yt-live-chat-icon-toggle-button-renderer",function(){if($VB===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;a3Q===void 0&&(a3Q=document.createElement("template"));var a=a3Q;h.call(v,a.content.cloneNode(!0),D.content.firstChild);$VB=D}D=$VB;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var QPM;var GYf;var u$=function(){return _.c.apply(this,arguments)||this};
_.J(u$,_.c);u$.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e([_.Y(),_.n("design:type",Object)],u$.prototype,"data",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],u$);
_.w(u$,"yt-live-chat-message-input-prompt-header-renderer",function(){if(GYf===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;QPM===void 0&&(QPM=document.createElement("template"));var a=QPM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);GYf=D}D=GYf;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var V93;var PU3;var xV3;var M9K;var f3Q;var CUo;var oJR=function(){return _.c.apply(this,arguments)||this};
_.J(oJR,_.c);_.e([_.Y(),_.n("design:type",Object)],oJR.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],oJR);
_.w(oJR,"yt-live-chat-message-subtext-renderer",function(){if(CUo===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;f3Q===void 0&&(f3Q=document.createElement("template"));var a=f3Q;h.call(v,a.content.cloneNode(!0),D.content.firstChild);CUo=D}D=CUo;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Dv=function(){var D=_.c.apply(this,arguments)||this;D.subtextOnBottom=!1;D.buttonOverrides={style:"mono",type:"tonal"};return D};
_.J(Dv,_.c);Dv.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Dv.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Dv.prototype,"subtextOnBottom",void 0);_.e([_.Y(),_.n("design:type",Object)],Dv.prototype,"buttonOverrides",void 0);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Dv);
_.w(Dv,"yt-live-chat-message-renderer",function(){if(M9K===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;xV3===void 0&&(xV3=document.createElement("template"));var a=xV3;h.call(v,a.content.cloneNode(!0),D.content.firstChild);M9K=D}D=M9K;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var FOz;var z3z;var v5=function(){var D=_.c.apply(this,arguments)||this;D.isRemovable=!1;D.hasPrefilledText=!1;D.isInputDirty=!1;D.overCharacterLimit=!1;D.underCharacterLimit=!1;D.showErrorMessage=!1;return D};
_.J(v5,_.c);_.V=v5.prototype;_.V.computeId=function(){return this.data.id};
_.V.computeInputData=function(){return this.data.inputData};
_.V.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.V.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.V.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.V.getLiveChatRichMessageInput=function(){return _.ZW(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.V.clearInput=function(){_.ZW(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.V.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.V.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.V.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.V.handleTextInputCharCountChanged=function(D){D=D.detail&&D.detail.characterCount;D!==void 0&&(this.characterCount=D,D!==0&&(this.isInputDirty=!0))};
_.V.onInputFocusOut=function(){this.isInputDirty=!0};
_.V.onClickCloseButton=function(){_.F1(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
v5.prototype.handleTextInputCharCountChanged=v5.prototype.handleTextInputCharCountChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],v5.prototype,"data",void 0);_.e([_.Y({computed:"computeId(data.id)"}),_.n("design:type",String)],v5.prototype,"id",void 0);_.e([_.Y({computed:"computeInputData(data.inputData)"}),_.n("design:type",Object)],v5.prototype,"inputData",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.n("design:type",Object)],v5.prototype,"isRemovable",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.n("design:type",Object)],v5.prototype,"hasPrefilledText",void 0);_.e([_.Y({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.n("design:type",Number)],v5.prototype,"charactersRemaining",void 0);
_.e([_.Y(),_.n("design:type",Number)],v5.prototype,"characterCount",void 0);_.e([_.Y(),_.n("design:type",Object)],v5.prototype,"isInputDirty",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.n("design:type",Object)],v5.prototype,"overCharacterLimit",void 0);_.e([_.Y({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.n("design:type",Object)],v5.prototype,"underCharacterLimit",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.n("design:type",Object)],v5.prototype,"showErrorMessage",void 0);_.e([_.lc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],v5.prototype,"handleTextInputCharCountChanged",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],v5);
_.w(v5,"yt-live-chat-poll-editor-input",function(){if(z3z===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;FOz===void 0&&(FOz=document.createElement("template"));var a=FOz;h.call(v,a.content.cloneNode(!0),D.content.firstChild);z3z=D}D=z3z;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var UVm;var LOR;var ZTR={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},h5=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_button_rework_with_live");D.closeButtonOverrides={iconPosition:"icon-only"};D.startButtonOverrides={style:"mono",type:"filled"};D.addOptionButtonOverrides={style:"mono",type:"text"};return D};
_.J(h5,_.c);_.V=h5.prototype;
_.V.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"}}}}};
_.V.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var D;_.k((D=this.data)==null?void 0:D.startButton,_.Vi)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.computeId=function(){return this.data&&this.data.id||""};
_.V.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.V.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.V.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.V.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.V.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var D=0;D<this.pollEditorInfoWithDefaults.minPollOptions;D++)this.addPollOptionData()};
_.V.getIsValidPoll=function(){var D=this;if(!this.pollEditorInfoWithDefaults)return!1;var v=this.pollEditorInfoWithDefaults,h=v.minPollOptionChars,a=v.maxPollOptionChars,Q=v.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>v.maxPollQuestionChars)return!1;v=_.ZW(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(v).every(function(G,x){G=G.characterCount;!G&&Q[x]&&(G=D.ytRendererBehavior.getSimpleString(Q[x]).length);return G!==void 0&&G>=h&&G<=a})};
_.V.isValidPollChanged=function(){var D;_.k((D=this.data)==null?void 0:D.startButton,_.Vi)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.addPollOptionData=function(){var D=this.pollEditorInfoWithDefaults,v=D.maxPollOptionChars,h=D.optionPlaceholderText,a=D.customOptionPlaceholderText,Q=D.pollOptionData;this.currentNumPollOptions>=D.maxPollOptions||(D={liveChatPollOptionInput:{inputData:{placeholder:a[this.currentNumPollOptions]||h,maxCharacterLimit:v},maxCharacterLimit:v,minCharacterLimit:D.minPollOptionChars,hasPrefilledText:!!a[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=D.minPollOptions}},Q.charCountErrorText&&
(D.liveChatPollOptionInput.charCountErrorText=Q.charCountErrorText),Q.charsRemainingAltLabel&&(D.liveChatPollOptionInput.charsRemainingAltLabel=Q.charsRemainingAltLabel),Q.removeOptionAltText&&(D.liveChatPollOptionInput.removeOptionAltText=Q.removeOptionAltText),this.push("pollOptionsData",D),Q=Array.from(_.ZW(_.ZW(this.hostElement).querySelector("#poll-options")).children),Q.forEach(function(G,x){G.polymerController.set("data.id",x)}),_.ZW(Q[Q.length-1]).querySelector("#input").focus())};
_.V.getPollOptionInputValues=function(){var D=this,v=[],h=_.ZW(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),a=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(h).forEach(function(Q,G){var x=null;Q=Q.getLiveChatRichMessageInput();var f;(Q==null?0:(f=Q.textSegments)==null?0:f.length)?x=_.WX(Q):a[G]&&(x=D.formattedStringToLiveChatRichMessageInput(a[G]));v.push(x)});
return v};
_.V.requestCreateAndStartPoll=function(D){var v=this.getPollOptionInputValues();if(!v.some(function(a){return!a})){v={optionText:v};
var h=_.ZW(_.ZW(this.hostElement).querySelector("#poll-question")).firstChild;h&&h.liveChatRichMessageInput&&(v.questionText=_.WX(h.liveChatRichMessageInput));_.L1(this.hostElement,[D,v])}};
_.V.selectedChanged=function(){if(this.selected){var D=_.ZW(_.ZW(this.hostElement).querySelector("#start-button")).firstElementChild;if(D){var v;(v=_.ZW(D).querySelector("#button")||_.EI(D).querySelector("button"))==null||v.focus()}}};
_.V.handleTextInputChanged=function(D){var v;((v=D.target)==null?void 0:v.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=D.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.V.handleStartButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),(D=D.detail.args[1])&&this.requestCreateAndStartPoll(D))};
_.V.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(D){this.createPollRequestInFlight=!1;(D=D.detail&&D.detail.data)&&D.success&&(_.F1(this.hostElement,"picker-cancelled"),_.zU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.V.onCloseClick=function(){_.F1(this.hostElement,"picker-cancelled");_.zU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.V.handlePollEditorInputClosed=function(D){var v=this.pollOptionsData.findIndex(function(h){return h.liveChatPollOptionInput.id===D.detail.id});
this.splice("pollOptionsData",v,1);this.isValidPoll=this.getIsValidPoll()};
_.V.onPickerCancelled=function(){this.reset()};
_.V.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var D=_.ZW(_.ZW(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.setLiveChatRichMessageInput(null);if(D=_.ZW(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){D=_.P(Array.from(D));for(var v=D.next();!v.done;v=D.next())v.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.V.formattedStringToLiveChatRichMessageInput=function(D){return D.simpleText?{text_segments:[D.simpleText]}:{text_segments:D.runs}};
_.GT.Object.defineProperties(h5.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(ZTR,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
h5.prototype.onPickerCancelled=h5.prototype.onPickerCancelled;h5.prototype.handlePollEditorInputClosed=h5.prototype.handlePollEditorInputClosed;h5.prototype.handleServiceRequestCompleted=h5.prototype.handleServiceRequestCompleted;h5.prototype.handleServiceRequestSent=h5.prototype.handleServiceRequestSent;h5.prototype.handleTextInputChanged=h5.prototype.handleTextInputChanged;h5.prototype.selectedChanged=h5.prototype.selectedChanged;h5.prototype.isValidPollChanged=h5.prototype.isValidPollChanged;
h5.prototype.shouldInitializePollChanged=h5.prototype.shouldInitializePollChanged;h5.prototype.dataChanged=h5.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],h5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],h5.prototype,"modern",void 0);
_.e([_.Y(),_.n("design:type",Object)],h5.prototype,"closeButtonOverrides",void 0);_.e([_.Y(),_.n("design:type",Object)],h5.prototype,"startButtonOverrides",void 0);_.e([_.Y(),_.n("design:type",Object)],h5.prototype,"addOptionButtonOverrides",void 0);_.e([_.Y({computed:"computeId(data.id)",reflectToAttribute:!0}),_.n("design:type",String)],h5.prototype,"id",void 0);_.e([_.Y({value:function(){return[]}}),
_.n("design:type",Array)],h5.prototype,"pollOptionsData",void 0);_.e([_.N("pollEditorInfoWithDefaults"),_.n("design:type",Object),_.n("design:paramtypes",[])],h5.prototype,"pollQuestionData",null);_.e([_.Y({value:0}),_.n("design:type",Number)],h5.prototype,"pollQuestionCharacterCount",void 0);_.e([_.N("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.n("design:type",Object),_.n("design:paramtypes",[])],h5.prototype,"pollQuestionCharactersRemaining",null);
_.e([_.Y({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.n("design:type",Boolean)],h5.prototype,"overQuestionCharacterLimit",void 0);_.e([_.N("data.pollEditorInfo"),_.n("design:type",Object),_.n("design:paramtypes",[])],h5.prototype,"pollEditorInfoWithDefaults",null);_.e([_.Y({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.n("design:type",Number)],h5.prototype,"currentNumPollOptions",void 0);
_.e([_.Y({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.n("design:type",Boolean)],h5.prototype,"hasMaxNumPollOptions",void 0);_.e([_.N("pollEditorInfoWithDefaults","pollOptionsData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],h5.prototype,"shouldInitializePoll",null);_.e([_.Y(),_.n("design:type",Object)],h5.prototype,"isValidPoll",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],h5.prototype,"createPollRequestInFlight",void 0);_.e([_.Y(),_.n("design:type",Object)],h5.prototype,"selected",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.n("design:type",Boolean)],h5.prototype,"showQuestionErrorMessage",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h5.prototype,"dataChanged",null);_.e([_.Ni("shouldInitializePoll"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h5.prototype,"shouldInitializePollChanged",null);_.e([_.Ni("isValidPoll"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h5.prototype,"isValidPollChanged",null);
_.e([_.Ni("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h5.prototype,"selectedChanged",null);_.e([_.lc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],h5.prototype,"handleTextInputChanged",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h5.prototype,"handleServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],h5.prototype,"handleServiceRequestCompleted",null);
_.e([_.lc("yt-live-chat-poll-editor-input-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],h5.prototype,"handlePollEditorInputClosed",null);_.e([_.lc("picker-cancelled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h5.prototype,"onPickerCancelled",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],h5);
_.w(h5,"yt-live-chat-poll-editor-panel-renderer",function(){if(LOR===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;UVm===void 0&&(UVm=document.createElement("template"));var a=UVm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);LOR=D}D=LOR;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var EJB;var I30;var aJ=function(){return _.c.apply(this,arguments)||this};
_.J(aJ,_.c);aJ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
aJ.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.GT.Object.defineProperties(aJ.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var D,v;return(D=this.data)==null?void 0:(v=D.title)==null?void 0:v.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.Rq((D=this.data)==null?void 0:D.onTapCommand)}}});
_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],aJ.prototype,"ytEndpointBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],aJ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],aJ.prototype,"itemId",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aJ.prototype,"hasPromotion",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],aJ.prototype,"innertubeCommand",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],aJ);
_.w(aJ,"yt-live-chat-product-picker-panel-item-view-model",function(){if(I30===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;EJB===void 0&&(EJB=document.createElement("template"));var a=EJB;h.call(v,a.content.cloneNode(!0),D.content.firstChild);I30=D}D=I30;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var gJf;var kYw;var $1=function(){var D=_.c.apply(this,arguments)||this;D.id="product-picker";D.selected=!1;D.closeButtonId="close-button";D.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return D};
_.J($1,_.c);_.V=$1.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var D=_.ZW(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");D.length&&D[0].focus()};
_.V.onCloseBuyFlow=function(){_.F1(this.hostElement,"picker-cancelled")};
_.V.onCloseClick=function(){_.F1(this.hostElement,"picker-cancelled");var D;((D=this.data)==null?0:D.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.closeButton,_.fH))};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.F1(this.hostElement,"picker-cancelled")};
$1.prototype.observeSelected=$1.prototype.observeSelected;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$1.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$1.prototype,"id",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$1.prototype,"selected",void 0);_.e([_.Y(),_.n("design:type",Object)],$1.prototype,"closeButtonId",void 0);_.e([_.Ni("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$1.prototype,"observeSelected",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],$1);
_.w($1,"yt-live-chat-product-picker-panel-view-model",function(){if(kYw===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;gJf===void 0&&(gJf=document.createElement("template"));var a=gJf;h.call(v,a.content.cloneNode(!0),D.content.firstChild);kYw=D}D=kYw;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var SVf;var J1d;var Qq=function(){var D=_.c.apply(this,arguments)||this;D.iconId="";D.icon="";D.disabled=!1;D.systemIcons=_.g("kevlar_system_icons");return D};
_.J(Qq,_.c);_.V=Qq.prototype;_.V.computeIconId=function(D){return D&&D.icon&&D.icon.iconType?D.icon.iconType.toLowerCase():""};
_.V.computeIcon=function(D){return D&&D.icon&&D.icon.iconType?(D=D.icon.iconType.toLowerCase(),(D.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+D):""};
_.V.computeDisabled=function(D){return!!D};
_.V.computeCommand=function(D,v){return v?void 0:D};
_.V.computeTooltip=function(D,v){return v&&D?D:""};
_.V.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.GT.Object.defineProperties(Qq.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D="",v,h,a;if((v=this.data)==null?0:(h=v.text)==null?0:(a=h.runs)==null?0:a.length)D=this.data.text.runs[0].text||"";else{var Q,G;if((Q=this.data)==null?0:(G=Q.text)==null?0:G.simpleText)D=this.data.text.simpleText}var x,f,C;if((x=this.data)==null?0:(f=x.subtext)==null?0:(C=f.runs)==null?0:C.length)D&&(D+=". "),D+=this.data.subtext.runs[0].text||"";else{var U,L;if((U=this.data)==null?0:(L=U.subtext)==
null?0:L.simpleText)D&&(D+=". "),D+=this.data.subtext.simpleText}return D}}});
_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],Qq.prototype,"ytEndpointBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Qq.prototype,"data",void 0);_.e([_.Y({computed:"computeIconId(data)",reflectToAttribute:!0}),_.n("design:type",Object)],Qq.prototype,"iconId",void 0);
_.e([_.Y({computed:"computeIcon(data)",reflectToAttribute:!0}),_.n("design:type",Object)],Qq.prototype,"icon",void 0);_.e([_.Y({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.n("design:type",Object)],Qq.prototype,"disabled",void 0);_.e([_.Y({computed:"computeCommand(data.command, disabled)"}),_.n("design:type",Object)],Qq.prototype,"command",void 0);_.e([_.Y({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.n("design:type",String)],Qq.prototype,"tooltip",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Qq.prototype,"systemIcons",void 0);_.e([_.N("data.text","data.subtext"),_.Y(),_.n("design:type",String),_.n("design:paramtypes",[])],Qq.prototype,"ariaLabel",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Qq);
_.w(Qq,"yt-live-chat-product-button-renderer",function(){if(J1d===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;SVf===void 0&&(SVf=document.createElement("template"));var a=SVf;h.call(v,a.content.cloneNode(!0),D.content.firstChild);J1d=D}D=J1d;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var pWB;var l3o;var GM=function(){var D=_.c.apply(this,arguments)||this;D.selected=!1;D.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return D};
_.J(GM,_.c);_.V=GM.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.computeId=function(D){return D.id||""};
_.V.onCloseClick=function(){_.F1(this.hostElement,"picker-cancelled")};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var D=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");D.length&&D[0].focus()};
_.V.onCloseBuyFlow=function(){_.F1(this.hostElement,"picker-cancelled")};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.F1(this.hostElement,"picker-cancelled")};
GM.prototype.observeSelected=GM.prototype.observeSelected;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GM.prototype,"data",void 0);
_.e([_.Y({computed:"computeId(data)",reflectToAttribute:!0}),_.n("design:type",String)],GM.prototype,"id",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],GM.prototype,"selected",void 0);_.e([_.Ni("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GM.prototype,"observeSelected",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],GM);
_.w(GM,"yt-live-chat-product-picker-renderer",function(){if(l3o===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;pWB===void 0&&(pWB=document.createElement("template"));var a=pWB;h.call(v,a.content.cloneNode(!0),D.content.firstChild);l3o=D}D=l3o;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var NDM;var YVM;var BDw;var c1m;var Vq=function(){return _.c.apply(this,arguments)||this};
_.J(Vq,_.c);Vq.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()};
Vq.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Vq.prototype.created=function(){this.ids={background:_.zD(),maskOne:_.zD(),maskTwo:_.zD(),gradient:_.zD(),largeBackground:_.zD(),largeGradientOne:_.zD(),largeGradientTwo:_.zD(),largeGradientPath:_.zD()}};
Vq.prototype.maybeLoadAnimationBackground=Vq.prototype.maybeLoadAnimationBackground;_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Vq.prototype,"useLargeBackground",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Vq.prototype,"useAnimationBackground",void 0);_.e([_.Y({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.n("design:type",Boolean)],Vq.prototype,"useRegularBackground",void 0);
_.e([_.Y(),_.n("design:type",Object)],Vq.prototype,"ids",void 0);_.e([_.Y(),_.n("design:type",Object)],Vq.prototype,"lottieAnimation",void 0);_.e([_.Br("#animation-background"),_.n("design:type",HTMLDivElement)],Vq.prototype,"animationBackground",void 0);_.e([_.Ni("useAnimationBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Vq.prototype,"maybeLoadAnimationBackground",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Vq);
_.w(Vq,"yt-live-interactivity-component-background",function(){if(c1m===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;BDw===void 0&&(BDw=document.createElement("template"));var a=BDw;h.call(v,a.content.cloneNode(!0),D.content.firstChild);c1m=D}D=c1m;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var P5=function(){var D=_.c.apply(this,arguments)||this;D.characterCount=0;D.showInputErrorMessage=!1;D.startQnaRequestInFlight=!1;D.modern=_.g("web_button_rework_with_live");D.buttonOverrides={style:"mono",type:"filled"};D.closeButtonOverrides={iconPosition:"icon-only"};D.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return D};
_.J(P5,_.c);_.V=P5.prototype;
_.V.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]]"}}}}}};
_.V.onCharacterCountChanged=function(D){var v,h,a,Q,G=(h=_.k(this==null?void 0:(v=this.data)==null?void 0:v.creatorCallForQuestions,PzM))==null?void 0:(a=h.inputField)==null?void 0:(Q=a.liveChatTextInputFieldRenderer)==null?void 0:Q.maxCharacterLimit,x,f;G!=null&&(D==null?void 0:(x=D.detail)==null?void 0:x.characterCount)!=null&&_.k(this==null?void 0:(f=this.data)==null?void 0:f.startButton,_.Vi)&&(v=D.detail.characterCount>G,this.set("data.startButton.buttonRenderer.isDisabled",D.detail.characterCount===
0||v),this.showInputErrorMessage=v)};
_.V.onCloseClick=function(){_.F1(this.hostElement,"picker-cancelled");_.zU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onPickerCancelled=function(){var D=_.ZW(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.setLiveChatRichMessageInput(null)};
_.V.handleOpenQnaStartPanel=function(){var D=_.ZW(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.focus()};
_.V.handleStartButtonAction=function(D){var v=this;if(D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),D=D.detail.args[1])){var h=_.ZW(this.hostElement).querySelector("#qna-creator-text-input-field"),a;(h==null?0:(a=h.liveChatRichMessageInput)==null?0:a.textSegments)&&h.liveChatRichMessageInput.textSegments.length!==0&&(a={rich_message:_.WX(h.liveChatRichMessageInput)},_.L1(this.hostElement,[D,a]).then(function(){_.F1(v.hostElement,"picker-cancelled")}))}};
_.V.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(D){var v;D=D==null?void 0:(v=D.detail)==null?void 0:v.data;(D==null?0:D.actions)&&D.actions.length>0?this.startQnaRequestInFlight=!1:_.zU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
P5.prototype.handleServiceRequestError=P5.prototype.handleServiceRequestError;P5.prototype.handleServiceRequestCompleted=P5.prototype.handleServiceRequestCompleted;P5.prototype.handleServiceRequestSent=P5.prototype.handleServiceRequestSent;P5.prototype.onPickerCancelled=P5.prototype.onPickerCancelled;P5.prototype.onCharacterCountChanged=P5.prototype.onCharacterCountChanged;_.e([_.Y(),_.n("design:type",Object)],P5.prototype,"characterCount",void 0);
_.e([_.Y(),_.n("design:type",Object)],P5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],P5.prototype,"showInputErrorMessage",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],P5.prototype,"startQnaRequestInFlight",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],P5.prototype,"modern",void 0);_.e([_.Y(),_.n("design:type",Object)],P5.prototype,"buttonOverrides",void 0);
_.e([_.Y(),_.n("design:type",Object)],P5.prototype,"closeButtonOverrides",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],P5.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.l(_.LO.YtLiveChatItemBehavior),_.n("design:type",_.Zw)],P5.prototype,"ytLiveChatItemBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],P5.prototype,"ytActionHandlerBehavior",void 0);_.e([_.lc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],P5.prototype,"onCharacterCountChanged",null);_.e([_.lc("picker-cancelled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P5.prototype,"onPickerCancelled",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P5.prototype,"handleServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],P5.prototype,"handleServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],P5.prototype,"handleServiceRequestError",null);_.e([_.m({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],P5);
_.w(P5,"yt-live-chat-qna-start-panel-renderer",function(){if(YVM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;NDM===void 0&&(NDM=document.createElement("template"));var a=NDM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);YVM=D}D=YVM;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var XWw;var A1f;var x1=function(){return _.c.apply(this,arguments)||this};
_.J(x1,_.c);x1.prototype.dismiss=function(){_.F1(this.hostElement,"yt-live-chat-error-message-dismiss")};
x1.prototype.edit=function(){_.F1(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.e([_.Y(),_.n("design:type",Object)],x1.prototype,"data",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],x1);
_.w(x1,"yt-live-chat-text-actions-error-message-renderer",function(){if(A1f===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;XWw===void 0&&(XWw=document.createElement("template"));var a=XWw;h.call(v,a.content.cloneNode(!0),D.content.firstChild);A1f=D}D=A1f;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var qVd;var bTQ;var dVM;var jPm;var MZ=function(){var D=_.c.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.J(MZ,_.c);MZ.prototype.sendReaction=function(){var D,v,h=((D=this.data)==null?void 0:D.emojiId)||((v=this.data)==null?void 0:v.emoteId),a;h&&((a=this.data)==null?0:a.shouldTriggerAnimation)&&_.zU(this.hostElement,"yt-create-user-reaction-animation",[h]);var Q;(D=_.Rq((Q=this.data)==null?void 0:Q.onTap))&&_.lP(D,this.hostElement);this.showNewnessDot&&_.zU(this.hostElement,"yt-hide-newness-dot")};
MZ.prototype.onClick=function(D){(!D||D.clientX||D.clientY)&&this.sendReaction()};
MZ.prototype.onKeyDown=function(D){D.key!=="Enter"&&D.key!==" "||D.repeat||this.sendReaction()};
_.GT.Object.defineProperties(MZ.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!(((D=this.data)==null?0:D.emojiId)||((v=this.data)==null?0:v.emoteId))}}});
_.e([_.Y(),_.n("design:type",Object)],MZ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MZ.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],MZ.prototype,"newnessDotEligible",void 0);_.e([_.N("data.maybeShowNewnessDot"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],MZ.prototype,"showNewnessDot",null);_.e([_.N("data.emojiId","data.emoteId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],MZ.prototype,"useYtImage",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],MZ);
_.w(MZ,"yt-reaction-control-panel-button-view-model",function(){if(jPm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;dVM===void 0&&(dVM=document.createElement("template"));var a=dVM;h.call(v,a.content.cloneNode(!0),D.content.firstChild);jPm=D}D=jPm;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var sPo;var mVM;var fR=function(){var D=_.c.apply(this,arguments)||this;D.reactionControlPanelExpanded=!1;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.J(fR,_.c);_.V=fR.prototype;_.V.expandedButtonsChanged=function(){var D,v;_.SB(this.hostElement,{"--expanded-buttons-height":((v=(D=this.expandedButtonsData)==null?void 0:D.length)!=null?v:0)*36+"px"})};
_.V.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}}};
_.V.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.V.onMouseLeave=function(){var D=this;this.collapseTimer=setTimeout(function(){D.reactionControlPanelExpanded=!1},500)};
_.V.onFocusIn=function(){this.onMouseEnter()};
_.V.onFocusOut=function(){this.onMouseLeave()};
_.V.onCollapsedButtonFocusIn=function(){var D=this;setTimeout(function(){var v;(v=D.expandedButtons.querySelector("button"))==null||v.focus()},100)};
_.V.onCollapsedButtonFocusOut=function(D){D.stopPropagation()};
_.GT.Object.defineProperties(fR.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var D,v;return _.sV.unsafeClone((D=this.liveReactionsData)==null?void 0:D.emojiButtonData)||((v=this.data)==null?void 0:v.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((D=this.data)==null||!D.maybeShowNewnessDot)}}});
fR.prototype.expandedButtonsChanged=fR.prototype.expandedButtonsChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],fR.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fR.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fR.prototype,"reactionControlPanelExpanded",void 0);_.e([_.Y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:jUR}),_.n("design:type",Object)],fR.prototype,"liveReactionsData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fR.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],fR.prototype,"newnessDotEligible",void 0);
_.e([_.N("liveReactionsData","data.expandedButtons"),_.n("design:type",Object),_.n("design:paramtypes",[])],fR.prototype,"expandedButtonsData",null);_.e([_.N("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.Y({reflectToAttribute:!0}),_.n("design:type",Object),_.n("design:paramtypes",[])],fR.prototype,"showNewnessDot",null);_.e([_.Br("#expanded-buttons"),_.n("design:type",HTMLElement)],fR.prototype,"expandedButtons",void 0);
_.e([_.Ni("expandedButtonsData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fR.prototype,"expandedButtonsChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],fR);
_.w(fR,"yt-reaction-control-panel-view-model",function(){if(mVM===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;sPo===void 0&&(sPo=document.createElement("template"));var a=sPo;h.call(v,a.content.cloneNode(!0),D.content.firstChild);mVM=D}D=mVM;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var CR=new _.OW("yt-live-chat"),HTd=Date.parse("2024-7-24"),oJ=function(){var D=_.c.apply(this,arguments)||this;D.emojiManager=_.Ua;D.newnessDotEligible=!1;D.newnessDotImpressionCounted=!1;D.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return D};
_.J(oJ,_.c);_.V=oJ.prototype;_.V.emojiCustomizationEnabledChanged=function(){var D;((D=this.data)==null?0:D.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((D=CR.getCreationTime("emoji-customization-count"))&&D<HTd&&CR.set("emoji-customization-count","0"),D=Number(CR.get("emoji-customization-count"))||0,D<3&&(this.newnessDotEligible=!0,CR.set("emoji-customization-count",(D+1).toString())),this.newnessDotImpressionCounted=!0)};
_.V.hideNewnessDot=function(){this.newnessDotEligible=!1;CR.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.V.handleReactionsMute=function(D){var v=_.wd(),h=_.En(206221),a={checkboxData:{state:D?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};v&&_.hA(v,h,a);this.reactionsMuted=D};
_.V.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.V.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}}};
_.GT.Object.defineProperties(oJ.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return(!((D=this.liveReactionsData)==null||!D.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
oJ.prototype.liveReactionsSettingChanged=oJ.prototype.liveReactionsSettingChanged;oJ.prototype.emojiCustomizationEnabledChanged=oJ.prototype.emojiCustomizationEnabledChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.fe),_.n("design:type",Object)],oJ.prototype,"ytLiveChatReduxBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],oJ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],oJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",_.oS)],oJ.prototype,"emojiManager",void 0);_.e([_.Y(),_.n("design:type",Object)],oJ.prototype,"newnessDotEligible",void 0);_.e([_.Y(),_.n("design:type",Object)],oJ.prototype,"newnessDotImpressionCounted",void 0);
_.e([_.Y({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:sUM}),_.n("design:type",Boolean)],oJ.prototype,"liveReactionsSetting",void 0);_.e([_.Y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:jUR}),_.n("design:type",Object)],oJ.prototype,"liveReactionsData",void 0);_.e([_.Y({value:function(){var D=_.g("enable_lwe_web_mute"),v=CR.get("allow-reactions");return v===void 0?!1:!v&&D}}),
_.n("design:type",Boolean)],oJ.prototype,"reactionsMuted",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],oJ.prototype,"liveReactionsEnabled",null);_.e([_.Ni("data.emojiCustomizationEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oJ.prototype,"emojiCustomizationEnabledChanged",null);
_.e([_.Ni("liveReactionsEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oJ.prototype,"liveReactionsSettingChanged",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],oJ);
_.w(oJ,"yt-reaction-control-panel-overlay-view-model",function(){if(bTQ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;qVd===void 0&&(qVd=document.createElement("template"));var a=qVd;h.call(v,a.content.cloneNode(!0),D.content.firstChild);bTQ=D}D=bTQ;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var y1Y={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(D){var v=this.$.pickers.selected;if(v){_.ZW(this.hostElement).removeAttribute(v+"-open");var h="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(h="#picker-buttons",v==="emoji"&&_.ZW(this.hostElement).querySelector("#emoji-picker-button")&&(h="#emoji-picker-button"));if(h=_.ZW(this.hostElement).querySelector(h).querySelector("#"+v))h.active=!1}h=D;v==D&&(h=null);v!=
D&&_.ZW(this.hostElement).setAttribute(D+"-open","");this.$.pickers.selected=h;_.zU(this.hostElement,"yt-live-chat-picker-changed",[h])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var F4=function(){var D=_.c.apply(this,arguments)||this;D.numSentMessages=0;D.timeoutDurationMs=0;D.timeoutMs=0;D.lastTimeoutTimeMs=0;D.pendingMessageId="";D.hasFiredInitialFocusActions=!1;D.isBeforeFocusEnabled=!0;D.id="";D.characterCount=0;D.maxCharacterLimit=0;D.remainingCharacterCount=0;D.inputExpanded=!1;D.buttonOverrides={iconPosition:"icon-only"};D.inReplyPanel=!1;D.countdownRatio=0;D.isTooltipVisible=!1;D.tooltipTimeout=1E4;D.systemIcons=_.g("kevlar_system_icons");D.tallerEmojiPicker=_.g("live_chat_taller_emoji_picker");
D.sendReplyMessageInFlight=!1;D.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};D.onResize=function(){D.maybeToggleCharacterCount()};
return D};
_.J(F4,_.c);_.V=F4.prototype;
_.V.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"}}}};
_.V.attached=function(){window.addEventListener("resize",this.onResize)};
_.V.detached=function(){window.removeEventListener("resize",this.onResize)};
_.V.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.V.sendMessage=function(){var D=this,v,h,a,Q;return _.M(function(G){if(D.sendDisabled)return G.return();D.isTooltipVisible&&_.zU(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(D.data.sendButton&&D.data.sendButton.buttonRenderer){D.input.completeEmojis();v=D.data.sendButton.buttonRenderer.serviceEndpoint;if(!v)return G.return();a=((h=_.k(v,_.D9F))==null?void 0:h.clientIdPrefix)||"";Q={client_message_id:a+String(D.numSentMessages++),rich_message:_.WX(D.input.liveChatRichMessageInput)};
D.pendingMessageId=Q.client_message_id;D.inReplyPanel&&(D.sendReplyMessageInFlight=!0);_.L1(D.hostElement,[v,Q]);D.input.setLiveChatRichMessageInput(null)}_.YI(G)})};
_.V.handleSendButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),this.sendMessage())};
_.V.onSendCompleted=function(D,v){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(D=this.get("timeoutDurationUsec",v.data))&&this.handleTimeout(Number(D)/1E3);this.errorMessage=this.get("errorMessage",v.data);this.pendingMessageId=""};
_.V.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.zU(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.V.handlePickerButtonToggle=function(D){D=D.detail.targetId;this.ytPickerBehavior.togglePicker_(D);if(D==="emoji")this.input.focus();else if(D==="qna-start-panel"){var v,h;(v=_.ZW(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(h=v.querySelector("#qna-creator-text-input-field"))==null||h.focus()}};
_.V.onComponentReplaced=function(D){var v,h;D.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((v=D.replacement.liveChatMessageInputRenderer)==null?0:(h=v.headerRenderer)==null?0:h.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.V.onEmojiSelect=function(D){this.input.focus();this.input.insertEmoji(D.detail)};
_.V.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.V.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.zU(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.zU(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.V.onOpenPopupAction=function(D,v){var h=this;v===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.zU(h.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.V.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.V.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.V.focusChanged=function(){this.maybeToggleCharacterCount()};
_.V.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var D=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",D>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.V.computeId=function(){return this.data&&this.data.targetId||""};
_.V.computeSendDisabled=function(D,v,h,a){D=!!(!D||v&&D>v||a);(v=_.ZW(this.hostElement).querySelector("#send-button"))&&v.children.length&&(v.children[0].disabled=D);return D};
_.V.handleTimeout=function(D){this.timeoutDurationMs=this.timeoutMs=D;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.V.updateTimeout=function(D){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(D-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=D,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.V.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.V.onErrorMessageEdit=function(D){this.input.setLiveChatRichMessageInput(D.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.V.errorMessageChanged=function(){var D=this;_.hD(function(){_.zU(D.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.V.computeAuthorNameColor=function(D){var v;if(_.g("live_chat_author_name_color_usernames")&&(D==null?0:(v=D.authorName)==null?0:v.simpleText))return _.VUI(_.PJi(D.authorName.simpleText));if(_.g("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.VUI(_.g4(D.authorSeedColorArgb));if(_.g("live_chat_colored_usernames"))return"#cc0000";var h;return _.g("live_chat_simple_color_usernames")&&(D==null?0:(h=D.authorName)==null?0:h.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.g4(D.authorUsernameColorDark):_.g4(D.authorUsernameColorLight):""};
_.V.onIsTooltipVisibleChanged=function(){var D=_.ZW(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){D.hidden=!1;D.setAttribute("role","alert")},0):(D.hidden=!0,D.removeAttribute("role"))};
_.V.onFocusedChanged=function(D){this.inputFocused=D.detail.value};
_.GT.Object.defineProperties(F4.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.pickers)==null?void 0:v.find(function(h){return h.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return D?this.ytRendererBehavior.getSimpleString(D):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
F4.prototype.onIsTooltipVisibleChanged=F4.prototype.onIsTooltipVisibleChanged;F4.prototype.errorMessageChanged=F4.prototype.errorMessageChanged;F4.prototype.onErrorMessageEdit=F4.prototype.onErrorMessageEdit;F4.prototype.onErrorMessageDismiss=F4.prototype.onErrorMessageDismiss;F4.prototype.focusChanged=F4.prototype.focusChanged;F4.prototype.characterCountChanged=F4.prototype.characterCountChanged;F4.prototype.onEmojiSelect=F4.prototype.onEmojiSelect;F4.prototype.handlePickerButtonToggle=F4.prototype.handlePickerButtonToggle;
F4.prototype.onSendError=F4.prototype.onSendError;F4.prototype.onSendCompleted=F4.prototype.onSendCompleted;F4.prototype.sendMessage=F4.prototype.sendMessage;F4.prototype.dataChanged=F4.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(y1Y.YtPickerBehavior),_.n("design:type",Object)],F4.prototype,"ytPickerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Ce.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],F4.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"hasFiredInitialFocusActions",void 0);
_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"isBeforeFocusEnabled",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"data",void 0);_.e([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",Object)],F4.prototype,"id",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"characterCount",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"maxCharacterLimit",void 0);
_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"remainingCharacterCount",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F4.prototype,"inputExpanded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],F4.prototype,"inputFocused",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],F4.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.e([_.Y(),_.n("design:type",_.g2)],F4.prototype,"participantsManager",void 0);
_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"buttonOverrides",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F4.prototype,"inReplyPanel",void 0);_.e([_.N("characterCount, maxCharacterLimit, countdownActive"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F4.prototype,"sendDisabled",null);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"countdownRatio",void 0);
_.e([_.N("countdownRatio"),_.n("design:type",Number),_.n("design:paramtypes",[])],F4.prototype,"countdownStrokeDashOffset",null);_.e([_.N("countdownRatio"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F4.prototype,"countdownActive",null);_.e([_.N("data.interactionMessage"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F4.prototype,"hasInteractionMessage",null);
_.e([_.N("data.emojiPickerButton"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F4.prototype,"hasEmojiPickerButton",null);_.e([_.N("data, characterCount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F4.prototype,"showAvatar",null);_.e([_.N("data.pickers"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F4.prototype,"hasProductPickerPanelViewModel",null);
_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"errorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"genericErrorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"isTooltipVisible",void 0);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"tooltipTimeout",void 0);_.e([_.N("data.onInitialFocusCommand"),_.n("design:type",String),_.n("design:paramtypes",[])],F4.prototype,"tooltipMessage",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F4.prototype,"systemIcons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F4.prototype,"tallerEmojiPicker",void 0);_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],F4.prototype,"authorNameColor",null);_.e([_.Y(),_.n("design:type",Object)],F4.prototype,"sendReplyMessageInFlight",void 0);_.e([_.Br("#input"),_.n("design:type",_.T89)],F4.prototype,"input",void 0);
_.e([_.Br("#count"),_.n("design:type",HTMLElement)],F4.prototype,"count",void 0);_.e([_.Br("#input-container"),_.n("design:type",HTMLElement)],F4.prototype,"inputContainer",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"dataChanged",null);_.e([_.lc("yt-live-chat-send-message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],F4.prototype,"sendMessage",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[Event,_.QL]),_.n("design:returntype")],F4.prototype,"onSendCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"onSendError",null);
_.e([_.lc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],F4.prototype,"handlePickerButtonToggle",null);_.e([_.lc("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],F4.prototype,"onEmojiSelect",null);
_.e([_.Ni("characterCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"characterCountChanged",null);_.e([_.Ni("inputFocused"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"focusChanged",null);_.e([_.lc("yt-live-chat-error-message-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"onErrorMessageDismiss",null);
_.e([_.lc("yt-live-chat-error-message-edit"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],F4.prototype,"onErrorMessageEdit",null);_.e([_.Ni("errorMessage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"errorMessageChanged",null);_.e([_.Ni("isTooltipVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],F4.prototype,"onIsTooltipVisibleChanged",null);
_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],F4);
_.w(F4,"yt-live-chat-message-input-renderer",function(){if(PU3===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;V93===void 0&&(V93=document.createElement("template"));var a=V93;h.call(v,a.content.cloneNode(!0),D.content.firstChild);PU3=D}D=PU3;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var wWw;var e30;var zM=function(){var D=_.c.apply(this,arguments)||this;D.systemIcons=_.g("kevlar_system_icons");D.firedOnClickCommand=!1;D.inReplyPanel=!1;return D};
_.J(zM,_.c);
zM.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"}}}};
zM.prototype.onButtonToggle=function(D){D.target.disabled||this.ytPickerBehavior.togglePicker_(D.detail.targetId)};
zM.prototype.onClick=function(){var D=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.zU(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return D.firedOnClickCommand=!1},5E3))};
_.GT.Object.defineProperties(zM.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.panels)==null?void 0:v.find(function(h){return h.liveChatProductPickerPanelViewModel}))!==void 0}}});
zM.prototype.onButtonToggle=zM.prototype.onButtonToggle;_.e([_.l(y1Y.YtPickerBehavior),_.n("design:type",Object)],zM.prototype,"ytPickerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zM.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],zM.prototype,"systemIcons",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Object)],zM.prototype,"firedOnClickCommand",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],zM.prototype,"inReplyPanel",void 0);_.e([_.N("data.pickers"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],zM.prototype,"hasProductPickerPanelViewModel",null);
_.e([_.lc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],zM.prototype,"onButtonToggle",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],zM);
_.w(zM,"yt-live-chat-restricted-participation-renderer",function(){if(e30===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;wWw===void 0&&(wWw=document.createElement("template"));var a=wWw;h.call(v,a.content.cloneNode(!0),D.content.firstChild);e30=D}D=e30;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Um=function(){var D=_.c.apply(this,arguments)||this;D.genericErrorMessage=_.aX("Error, try again.");D.inReplyPanel=!1;D.hideBorder=!1;return D};
_.J(Um,_.c);Um.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}}}}}};
_.GT.Object.defineProperties(Um,{template:{configurable:!0,enumerable:!0,get:function(){return h3w()}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Um.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Um.prototype,"genericErrorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],Um.prototype,"inReplyPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Um.prototype,"hideBorder",void 0);
_.e([_.Ry({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Um);_.w(Um,"yt-live-chat-engagement-panel-input-renderer",function(){return h3w()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var nJ3,OTK;nJ3=_.En(115994);OTK=_.En(115993);_.LR=function(D,v,h){var a=this;var Q=h.dragDownAction;this.layer=0;this.JSC$22580_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return a.dragDownAction()}}}};
this.JSC$22580_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return a.dragDownAction()}}}};
this.fullscreen=!1;var G=_.c8();_.jh(G,nJ3,this.layer);_.jh(G,OTK,this.layer);this.dragDownAction=function(){Q();_.r1(G,{visualElement:a.fullscreen?nJ3:OTK})};
this.gesture=new _.sb(D,v,this.getConfig(!1),"pandown");this.attach()};
_.LR.prototype.attach=function(){this.gesture.attach()};
_.LR.prototype.detach=function(){this.gesture.detach()};
_.LR.prototype.update=function(D){this.fullscreen=D;var v=this.gesture;D=this.getConfig(D);v.config=D};
_.LR.prototype.getConfig=function(D){return D?this.JSC$22580_watchFullScreenConfig:this.JSC$22580_watchConfig};var KOd={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(D){if(D&&D.length==1&&Array.isArray(D[0].loggingUrls)){D=_.sV.unsafeClone(D[0]);var v=this.macros||{},h=this.getAdModuleClient_();if(!h)return _.E9();D.loggingUrls.forEach(function(a){if(a.baseUrl){var Q=a.baseUrl;var G=v;G=G===void 0?{}:G;Q=h.getOptions().includes("replaceUrlMacros")?_.CZ9(h,"replaceUrlMacros",{url:Q,additionalMapping:G}):Q;a.baseUrl=Q}},this);
D=[D]}return _.L1(this.hostElement,D)},
getAdModuleClient_:function(){var D=_.Mq(this);return D?(D=D.getPlayer())?new _.Dh(D):null:null}}]};var TDf;var Zv=function(){var D=_.c.apply(this,arguments)||this;D.isCollapsed=!1;D.modernPanels=_.g("kevlar_watch_modern_panels");D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return D};
_.J(Zv,_.c);_.V=Zv.prototype;_.V.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.onDonateTap=function(){var D=this.get("data.donateButton.buttonRenderer.command");if(D){var v=_.wd(),h=this.get("data.donateButton.buttonRenderer.trackingParams");v&&h&&_.hA(v,_.d4(h));this.ytOpenPopupBehavior.openPopup(D)}};
_.V.onShowMore=function(){this.isCollapsed=!1;var D=_.wd(),v=this.get("data.expandButton.buttonRenderer.trackingParams");D&&v&&_.hA(D,_.d4(v))};
_.V.onShowLess=function(){this.isCollapsed=!0};
_.V.dataChanged=function(){_.SB(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.handleUpdate=function(D){if(D=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",D))this.set("data.startLabel",D.startLabel),this.set("data.endLabel",D.endLabel),this.set("data.progress",D.progress),this.set("data.amountRaisedLabel",D.amountRaisedLabel),this.dataChanged()};
_.V.handleOpenPopupAction=function(D){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",D)&&_.zU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.V.computeHeaderBackgroundUrl=function(D,v){if(D)return v?D.headerBackgroundDarkUrl:D.headerBackgroundUrl};
_.V.isProgressBarVisible=function(D){return!(!D||D.progress===void 0)};
_.V.headerBackgroundClass=function(){return _.eA("HTML_DIR")==="rtl"?"flip":""};
Zv.prototype.dataChanged=Zv.prototype.dataChanged;_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],Zv.prototype,"ytOpenPopupBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Zv.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Zv.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Zv.prototype,"isCollapsed",void 0);_.e([_.Y({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.n("design:type",String)],Zv.prototype,"headerBackgroundUrl",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Zv.prototype,"isDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Zv.prototype,"modernPanels",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zv.prototype,"dataChanged",null);_.e([_.m({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Zv);
_.w(Zv,"ytd-donation-shelf-renderer",function(){if(TDf!==void 0)return TDf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return TDf=D},{mode:1});var R3K;var iTH=function(){return _.c.apply(this,arguments)||this};
_.J(iTH,_.c);_.e([_.Y(),_.n("design:type",Object)],iTH.prototype,"data",void 0);_.e([_.m({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],iTH);
_.w(iTH,"ytd-donation-unavailable-renderer",function(){if(R3K!==void 0)return R3K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return R3K=D},{mode:1});var WOB;var Em=function(){return _.c.apply(this,arguments)||this};
_.J(Em,_.c);Em.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Em.prototype,"data",void 0);_.e([_.m({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Em);
_.w(Em,"ytd-limited-state-message-renderer",function(){if(WOB!==void 0)return WOB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return WOB=D},{mode:1});var t9Y;var IJ=function(){return _.c.apply(this,arguments)||this};
_.J(IJ,_.c);IJ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
IJ.prototype.onTap=function(D){var v=this.data&&this.data.endpoint;v&&!_.Gf(_.Pr(D),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.F1(this.hostElement,"yt-navigate",{endpoint:v})};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],IJ.prototype,"data",void 0);_.e([_.m({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],IJ);
_.w(IJ,"ytd-autotagging-metadata-renderer",function(){if(t9Y!==void 0)return t9Y;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return t9Y=D},{mode:1});var r10;var gB=function(){return _.c.apply(this,arguments)||this};
_.J(gB,_.c);gB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gB.prototype,"data",void 0);_.e([_.m({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],gB);
_.w(gB,"ytd-autotagging-metadata-row-renderer",function(){if(r10!==void 0)return r10;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return r10=D},{mode:1});var uxm;var DpK;var k1=function(){var D=_.c.apply(this,arguments)||this;D.engagementPanelContent=!1;return D};
_.J(k1,_.c);k1.prototype.computeHasDividerLine=function(D,v){return D&&!v};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],k1.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.n("design:type",Boolean)],k1.prototype,"hasDividerLine",void 0);_.e([_.Y(),_.n("design:type",Object)],k1.prototype,"engagementPanelContent",void 0);
_.e([_.m({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],k1);
_.w(k1,"ytd-metadata-row-header-renderer",function(){if(DpK!==void 0)return DpK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DpK=D},{mode:1});var vqz;var Sz=function(){return _.c.apply(this,arguments)||this};
_.J(Sz,_.c);Sz.prototype.computeHasDividerLine=function(D){return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Sz.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.n("design:type",Boolean)],Sz.prototype,"hasDividerLine",void 0);_.e([_.m({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Sz);
_.w(Sz,"ytd-metadata-row-renderer",function(){if(vqz!==void 0)return vqz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return vqz=D},{mode:1});var hPw;var acm=function(){return _.c.apply(this,arguments)||this};
_.J(acm,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],acm.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],acm.prototype,"data",void 0);_.e([_.m({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],acm);
_.w(acm,"ytd-metadata-with-image-row-renderer",function(){if(hPw!==void 0)return hPw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return hPw=D},{mode:1});var $pH;var J5=function(){var D=_.c.apply(this,arguments)||this;D.rounded=!0;D.fixie=!1;D.fullWidth=!1;return D};
_.J(J5,_.c);_.V=J5.prototype;_.V.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onDataChanged=function(){var D=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(v){D.onEndpointLinkKeyPress(v)}))};
_.V.onEndpointLinkKeyPress=function(D){D.target===this.endpointLink&&D.keyCode===13&&_.F1(this.hostElement,"click")};
_.V.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var D;if((D=this.data)==null?0:D.endpoint)_.ZD(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.V.onYtNavigate=function(D){this.endpointHref||(D.stopPropagation(),D.preventDefault())};
_.V.onInformationButtonContainerClick=function(D){D.target.id!=="information-button-container"&&(D.stopPropagation(),D.preventDefault())};
_.V.computeStyle=function(D){return D};
_.V.computeIsThumbnailStyle=function(D){return D==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.V.computeThumbnailWidth=function(D){switch(D){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.V.computeThumbnailObjectFit=function(D){switch(D){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.GT.Object.defineProperties(J5.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
J5.prototype.onYtNavigate=J5.prototype.onYtNavigate;J5.prototype.onClick=J5.prototype.onClick;J5.prototype.onDataChanged=J5.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],J5.prototype,"componentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],J5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],J5.prototype,"componentStyle",void 0);_.e([_.Y({computed:"computeIsThumbnailStyle(data.style)"}),_.n("design:type",Boolean)],J5.prototype,"isThumbnailStyle",void 0);_.e([_.Y({computed:"computeThumbnailObjectFit(data.style)"}),_.n("design:type",String)],J5.prototype,"thumbnailObjectFit",void 0);
_.e([_.Y({computed:"computeThumbnailWidth(data.style)"}),_.n("design:type",Number)],J5.prototype,"thumbnailWidth",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],J5.prototype,"rounded",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],J5.prototype,"fixie",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],J5.prototype,"fullWidth",void 0);_.e([_.Br("#endpoint-link"),_.n("design:type",HTMLAnchorElement)],J5.prototype,"endpointLink",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],J5.prototype,"onDataChanged",null);_.e([_.N("data.endpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],J5.prototype,"endpointHref",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],J5.prototype,"onClick",null);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],J5.prototype,"onYtNavigate",null);_.e([_.m({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],J5);
_.w(J5,"ytd-rich-metadata-renderer",function(){if($pH!==void 0)return $pH;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return $pH=D},{mode:_.E_("kevlar_poly_si_batch_j075")?1:2});var QaH;var pR=function(){var D=_.c.apply(this,arguments)||this;D.fixie=!1;D.fullWidth=!1;return D};
_.J(pR,_.c);pR.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
pR.prototype.computeHasDividerLine=function(D){return D};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pR.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.n("design:type",Boolean)],pR.prototype,"hasDividerLine",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pR.prototype,"fixie",void 0);_.e([_.Y(),_.n("design:type",Object)],pR.prototype,"fullWidth",void 0);
_.e([_.m({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],pR);
_.w(pR,"ytd-rich-metadata-row-renderer",function(){if(QaH!==void 0)return QaH;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QaH=D},{mode:1});var l_=function(){var D=_.c.apply(this,arguments)||this;D.engagementPanelContent=!1;D.fixie=!1;D.fullWidth=!1;return D};
_.J(l_,_.c);
l_.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"}}}};
l_.prototype.computeCollapsibleItems=function(D,v,h){return D===void 0||v===void 0||h===void 0||h?[]:D.slice(v)};
l_.prototype.computeAlwaysShownItems=function(D,v){return D&&D.length?D.slice(0,v):[]};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],l_.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],l_.prototype,"collapsed",void 0);
_.e([_.Y({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.n("design:type",Array)],l_.prototype,"alwaysShownItems",void 0);_.e([_.Y({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.n("design:type",Array)],l_.prototype,"collapsibleItems",void 0);_.e([_.Y(),_.n("design:type",Object)],l_.prototype,"engagementPanelContent",void 0);_.e([_.Y(),_.n("design:type",Object)],l_.prototype,"fixie",void 0);
_.e([_.Y(),_.n("design:type",Object)],l_.prototype,"fullWidth",void 0);_.e([_.m({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],l_);
_.w(l_,"ytd-metadata-row-container-renderer",function(){if(uxm!==void 0)return uxm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uxm=D},{mode:1});var GQK;var NZ=function(){var D=_.c.apply(this,arguments)||this;D.currentPageUrl="";D.baseUrl="";D.isHiddenByUser=null;D.hidden=!1;D.showAboveScrim=!1;D.watchNextGrid=_.g("kevlar_watch_grid");D.modernButtons=_.g("web_modern_buttons");D.roundedContainer=!0;D.noBorder=!1;D.roundBackground=!_.g("live_chat_round_background_killswitch");D.overflowHideChat=_.g("live_chat_overflow_hide_chat");D.forceDarkTheme=!1;D.theaterWatchWhile=!1;D.isListeningForPlayerProgress=!1;D.JSC$22616_playerEvents=new Map;D.isFrameReady=
!1;D.player=null;D.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return D};
_.J(NZ,_.c);_.V=NZ.prototype;_.V.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.U9(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.V.created=function(){var D=this;this.handleIframeEventListener=function(v){D.handleIframeEvent(v)};
this.handleKeyboardEventListener=function(v){D.handleKeyboardEvent(v)};
this.JSC$22616_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22616_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22616_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22616_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22616_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.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()};
_.V.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};
_.V.computeBaseUrl=function(D){var v="/live_chat";this.isChatReplay()&&(v="/live_chat_replay");return _.EG(_.Z5(_.LX(_.tN(D),v),null),"").toString()};
_.V.dataChanged=function(){_.g("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.V.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var D=this.url;if(this.isChatReplay()&&this.player){var v=Math.floor(this.player.getProgressState().current*1E3);D=_.Dq(_.tN(D),"playerOffsetMs",v.toString()).toString()}v=this.chatframe;try{var h=D==="about:blank"?_.vp$:_.nz(D),a=v.contentDocument.location,Q=_.TK(h);Q!==void 0&&a.replace(Q)}catch(G){v.src=D}}};
_.V.collapsedChanged=function(){_.F1(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.V.handleIframeEvent=function(D){if(D&&this.baseUrl.startsWith(D.origin)&&D.source===this.chatframe.contentWindow&&_.Ro(D.data))if(D.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(D);else if(D.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(D.data["yt-show-feedback-dialog"]){var v=_.xd().resolve(_.PV(_.ccs));if(v){var h=D.ports,a;h&&h.length&&(a=function(){h[0].postMessage({})});
D=D.data["yt-show-feedback-dialog"];v.showFeedbackDialog(D.customProductData,D.feedbackContent,a,D.bucket)}}else if(D.data["yt-show-survey"])_.F1(this.hostElement,"yt-show-survey",D.data["yt-show-survey"]);else if(D.data["yt-purchase-membership"])_.xd().resolve(_.fx).resolveCommand(D.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(D.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(D.data["yt-tunnel-out-live-service-request"]);else if(D.data["yt-user-activity"])_.P1();
else if(D.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(D.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(D.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(D.data["yt-open-popup"]);else if(D.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(D.data["yt-log-flow-logging-event-command"]);else if(D.data["yt-hide-live-chat"])this.onShowHideChat();else D.data["yt-report-moderation-state-log"]&&
this.player&&(v={cpn:this.player.getVideoData().cpn},_.jj("liveChatBeingModerated",v))};
_.V.attachLiveChatResponseVeTrackingParams=function(D){D=_.d4(D);var v=_.wd(),h=_.T3("liveChatRenderer.trackingParams",this.data);v&&h&&_.tP(v,_.d4(h),D)};
_.V.handleBuyflowMessages=function(D){var v=D.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,h=D.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,a=D.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Fyf(_.Qf(_.VT),v.replace(/-/g,"+").replace(/_/g,"/"),function(Q){D.ports[0].postMessage({success:!0,buyFlowResponse:Q})},void 0,function(Q){D.ports[0].postMessage({success:!1,
error:Q&&Q.message||"Buyflow rejected without error."})},_.YE().get("hl"),void 0,function(){D.ports[0].postMessage({closed:!0})},h,a)};
_.V.setupPlayerProgressRelay=function(){var D=this;if(!this.isListeningForPlayerProgress){var v=_.fj();v!=null&&v.getPlayerPromise&&(v.getPlayerPromise().then(function(h){D.playerApiReady(h)}),this.isListeningForPlayerProgress=!0)}};
_.V.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.V.playerApiReady=function(D){this.setPlayer(D)};
_.V.playerProgressHandler=function(){if(this.player){var D=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":D.current})}};
_.V.playerAdStartHandler=function(D){this.postToContentWindow({"yt-player-ad-start":D})};
_.V.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.V.playerStateChangeHandler=function(D){this.postToContentWindow({"yt-player-state-change":D})};
_.V.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22616_playerEvents);D&&(this.player=D,this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22616_playerEvents),_.F1(this.hostElement,"player-api-ready"))};
_.V.liveChatPageUrl=function(D,v,h,a){return!h||v?"about:blank":h.liveChatRenderer?(v=_.tN(this.currentPageUrl).JSC$10036_queryData_,dfo(v),D=_.tN(D),v.add("continuation",h.liveChatRenderer.continuations[0].reloadContinuationData.continuation),h=_.sL()==="USER_INTERFACE_THEME_DARK",(a||h)&&v.add("dark_theme","true"),_.Z5(D,v),a=_.tN(D.toString()),h=a.JSC$10036_queryData_,"SESSION_INDEX"in _.y7&&(h.add("authuser",_.eA("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.y7&&h.add("pageId",_.eA("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.y7&&h.add("sdc",_.eA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),a.toString()):""};
_.V.isCollapsed=function(D,v){return v!==null?v:this.isChatReplay()||D&&D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!0:D?D.liveChatRenderer?D.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.g("live_chat_hide_premiere_replay_message")||D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.V.isHidden=function(D,v,h){var a=v&&v.conversationBarRenderer&&v.conversationBarRenderer.availabilityMessage,Q=v&&v.liveChatRenderer&&v.liveChatRenderer.showHideButton,G=v&&v.liveChatRenderer&&v.liveChatRenderer.showButton;return h&&D&&!a&&!G||!h&&D&&!a&&!Q?!0:v&&v.liveChatRenderer&&v.liveChatRenderer.initialDisplayState?v.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.V.computeButtonOverride=function(D,v){if(D&&v)return{type:"outline"}};
_.V.setCollapsedState=function(D){_.k(D,_.LGJ)&&((this.isHiddenByUser=!!_.k(D,_.LGJ).collapsed)||_.zU(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.V.forwardReduxActionToIframe=function(D){this.postToContentWindow({"yt-live-chat-forward-redux-action":D})};
_.V.onLoopRangeChange=function(D){this.showAboveScrim=!(D==null||!D.postId)};
_.V.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.V.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.V.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.V.sendDarkThemePostMessage=function(D){this.postToContentWindow({"yt-live-chat-set-dark-theme":D})};
_.V.onLiveChatBuyFlowCallback=function(D){this.postToContentWindow({"yt-live-chat-buy-flow-callback":D})};
_.V.handleKeyboardEvent=function(D){(0,_.sV.containsValue)(j9m,D.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:D.type,keyCode:D.keyCode}})};
_.V.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.V.postToContentWindow=function(D){if(this.isFrameReady)try{var v=window.location.protocol+"//"+window.location.host,h;(h=this.chatframe)!=null&&h.contentWindow?this.chatframe.contentWindow.postMessage(D,v):_.yR(new _.XH("Tried posting a message to an iframe with no content window",D))}catch(a){_.mV(a)}};
_.V.shouldHideChatFrame=function(D){return D&&_.g("hide_live_chat_button_when_collapsed")};
_.GT.Object.defineProperties(NZ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.g("live_chat_overflow_hide_chat")||_.g("web_watch_chat_hide_button_killswitch"))return _.g("live_chat_overflow_hide_chat");var D,v,h,a;return!!((D=this.data)==null?0:(v=D.liveChatRenderer)==null?0:(h=v.header)==null?0:(a=h.liveChatHeaderRenderer)==null?0:a.collapseButton)}}});
NZ.prototype.collapsedChanged=NZ.prototype.collapsedChanged;NZ.prototype.urlChanged=NZ.prototype.urlChanged;NZ.prototype.dataChanged=NZ.prototype.dataChanged;NZ.prototype.onShowHideChat=NZ.prototype.onShowHideChat;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],NZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],NZ.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],NZ.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],NZ.prototype,"ytOpenPopupBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],NZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],NZ.prototype,"currentPageUrl",void 0);
_.e([_.Y({computed:"computeBaseUrl(currentPageUrl,data)"}),_.n("design:type",Object)],NZ.prototype,"baseUrl",void 0);_.e([_.Y({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.n("design:type",String)],NZ.prototype,"url",void 0);_.e([_.Y(),_.n("design:type",Object)],NZ.prototype,"isHiddenByUser",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.n("design:type",Object)],NZ.prototype,"hidden",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.n("design:type",Boolean)],NZ.prototype,"collapsed",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.n("design:type",Boolean)],NZ.prototype,"hideChatFrame",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NZ.prototype,"showAboveScrim",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NZ.prototype,"watchNextGrid",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],NZ.prototype,"modernButtons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NZ.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NZ.prototype,"noBorder",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],NZ.prototype,"roundBackground",void 0);
_.e([_.Y({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.n("design:type",Object)],NZ.prototype,"toggleButtonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],NZ.prototype,"overflowHideChat",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NZ.prototype,"forceDarkTheme",void 0);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],NZ.prototype,"enableShowWithoutHideChatButton",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NZ.prototype,"theaterWatchWhile",void 0);_.e([_.Br("#chatframe"),_.n("design:type",HTMLIFrameElement)],NZ.prototype,"chatframe",void 0);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NZ.prototype,"onShowHideChat",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NZ.prototype,"dataChanged",null);
_.e([_.Ni("url"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NZ.prototype,"urlChanged",null);_.e([_.Ni("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NZ.prototype,"collapsedChanged",null);_.e([_.m({is:"ytd-live-chat-frame",disableElementRegistration:!0})],NZ);
_.w(NZ,"ytd-live-chat-frame",function(){if(GQK!==void 0)return GQK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return GQK=D},{mode:1});var VeQ;var Y1=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};return D};
_.J(Y1,_.c);Y1.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=_.rT(this.data.backgroundColor)))};
Y1.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var D=this.getFormattedStringLoggingDirectives(this.data.headline);D&&this.rendererBehavior.logExplicitClick(D)}};
Y1.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var D=this.getFormattedStringLoggingDirectives(this.data.description);D&&this.rendererBehavior.logExplicitClick(D)}};
Y1.prototype.getFormattedStringLoggingDirectives=function(D){return D&&D.runs&&D.runs.length>0&&D.runs[0]&&D.runs[0].loggingDirectives?D.runs[0].loggingDirectives:null};
Y1.prototype.dataChanged=Y1.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Y1.prototype,"rendererBehavior",void 0);_.e([_.l(KOd.YtMacroReplacementBehavior),_.n("design:type",Object)],Y1.prototype,"macroReplacementBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Y1.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Y1.prototype,"navigationEndpoint",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Y1.prototype,"enableColors",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Y1.prototype,"modern",void 0);_.e([_.Y(),_.n("design:type",Object)],Y1.prototype,"buttonOverrides",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Y1.prototype,"dataChanged",null);_.e([_.m({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Y1);
_.w(Y1,"ytd-action-basic-immersive-content-renderer",function(){if(VeQ!==void 0)return VeQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return VeQ=D},{mode:1});var P9R;var xpQ;var B5=function(){return _.c.apply(this,arguments)||this};
_.J(B5,_.c);B5.prototype.dataChanged=function(){var D;((D=this.data)==null?void 0:D.backgroundColor)!==void 0&&_.SB(this.hostElement,{"--bgu-color":_.rT(this.data.backgroundColor)})};
B5.prototype.onImageTileClick=function(){var D;((D=this.data)==null?0:D.navigationEndpoint)&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var v;((v=this.data)==null?0:v.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.GT.Object.defineProperties(B5.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?void 0:D.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var D,v,h;if(((D=this.data)==null?void 0:(v=D.detailsLine)==null?void 0:v.texts)!=null&&((h=this.data)==null?void 0:h.detailsLine.texts.length)>0){var a;return(a=this.data)==null?void 0:a.detailsLine.texts.map(function(Q){return Q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var D,v,h;if(((D=this.data)==null?void 0:(v=D.optionalDetailsLine)==null?void 0:v.texts)!=null&&((h=this.data)==null?void 0:h.optionalDetailsLine.texts.length)>0){var a;return(a=this.data)==null?void 0:a.optionalDetailsLine.texts.map(function(Q){return Q.text}).join("")}return null}}});
B5.prototype.dataChanged=B5.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],B5.prototype,"rendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],B5.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],B5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.backgroundColor"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],B5.prototype,"hasBackgroundColor",null);
_.e([_.N("data.objectFit"),_.n("design:type",Object),_.n("design:paramtypes",[])],B5.prototype,"getObjectFit",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.tileRenderingStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],B5.prototype,"hasTileMetadata",null);_.e([_.N("data.detailsLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],B5.prototype,"getSecondaryDetails",null);
_.e([_.N("data.optionalDetailsLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],B5.prototype,"getOptionalDetails",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B5.prototype,"dataChanged",null);_.e([_.m({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],B5);
_.w(B5,"ytd-image-tile-renderer",function(){if(xpQ!==void 0)return xpQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xpQ=D},{mode:1});var MeR;var c5=function(){return _.c.apply(this,arguments)||this};
_.J(c5,_.c);c5.prototype.getOpenLinkIcon=function(){return _.g("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
c5.prototype.onSitelinkTap=function(){_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.g("kevlar_command_handler_migration_killswitch"))_.ZD(this.hostElement,this.data.clickCommands,this.hostElement);else for(var D=_.P(this.data.clickCommands),v=D.next();!v.done;v=D.next())this.ytComponentBehavior.resolveCommand(v.value)};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],c5.prototype,"rendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],c5.prototype,"data",void 0);_.e([_.m({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],c5);
_.w(c5,"ytd-sitelink-renderer",function(){if(MeR!==void 0)return MeR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return MeR=D},{mode:1});var X4=function(){var D=_.c.apply(this,arguments)||this;D.paddingFix=_.g("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.J(X4,_.c);X4.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"}}}};
X4.prototype.dataChanged=function(){var D=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(v){v.clickTrackingParams&&delete v.clickTrackingParams;D.ytMacroReplacementBehavior.sendServiceRequestAction([v])})};
X4.prototype.shouldHideFooter=function(D){return!(D&&_.g("use_ads_engagement_panel_desktop_footer_cta"))};
_.GT.Object.defineProperties(X4.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((v=this.data)==null?void 0:v.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(h){var a;return(a=_.k(h,eBz))==null?void 0:a.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((v=this.data)==null?void 0:v.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(h){var a;return((a=_.k(h,eBz))==null?void 0:a.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
X4.prototype.dataChanged=X4.prototype.dataChanged;_.e([_.l(KOd.YtMacroReplacementBehavior),_.n("design:type",Object)],X4.prototype,"ytMacroReplacementBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],X4.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],X4.prototype,"paddingFix",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.imageTileRenderers"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],X4.prototype,"removeBorderFromImageTiles",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.imageTileRenderers"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],X4.prototype,"useFooteredMetadataRenderingStyle",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X4.prototype,"dataChanged",null);_.e([_.m({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],X4);
_.w(X4,"ytd-action-engagement-panel-content-renderer",function(){if(P9R!==void 0)return P9R;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return P9R=D},{mode:1});var fcz;var C9H=_.H(function(D){var v=D.data;var h=D.customCommandResolver;return _.F("ad-grid-card-image-full-metadata-view-model",{class:function(){var a;return((a=v().interaction)==null?0:a.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},h)),
"aria-label":function(){var a,Q;return(a=v().interaction)==null?void 0:(Q=a.accessibility)==null?void 0:Q.label}},_.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(a){return _.F(_.el,{data:a.data,
customCommandResolver:h})}})),_.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.F(_.z,{cond:function(){return v().headline},
then:function(a){return _.F(_.IY,{text:a,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.F(_.z,{cond:function(){return v().detailsLine},
then:function(a){return _.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.F(_.c4,{data:a},{adDetailsLineViewModel:function(Q){return _.F(_.dz,{data:Q.data,customCommandResolver:h,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.F(_.z,{cond:function(){return v().secondaryDetailsLine},
then:function(a){return _.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.F(_.c4,{data:a},{adDetailsLineViewModel:function(Q){return _.F(_.dz,{data:Q.data,customCommandResolver:h,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"dm");var oqf=_.H(function(D){var v=D.data;var h=D.customCommandResolver;return _.F("ad-grid-card-image-view-model",{class:function(){var a;return((a=v().interaction)==null?0:a.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},h)),
"aria-label":function(){var a,Q;return(a=v().interaction)==null?void 0:(Q=a.accessibility)==null?void 0:Q.label}},_.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(a){return _.F(_.el,{data:a.data,
customCommandResolver:h})}}),_.F("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.F(_.c4,{data:function(){return v().adCardBadge}},{adCardBadgeViewModel:_.HoR})))},"em");var FSo=_.H(function(D){var v=D.data;var h=D.customCommandResolver;return _.F("ad-grid-card-text-view-model",{class:function(){var a;return((a=v().interaction)==null?0:a.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},h)),
"aria-label":function(){var a,Q;return(a=v().interaction)==null?void 0:(Q=a.accessibility)==null?void 0:Q.label}},_.F("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.F(_.z,{cond:function(){return v().title},
then:function(a){return _.F(_.IY,{text:a,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.F("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.F(_.Xd,{each:function(){var a;
return((a=v())==null?void 0:a.descriptions)||[]},
keyBy:"INDEX"},function(a){return _.F(_.IY,{text:a,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.F("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.F(_.c4,{data:function(){return v().moreInfoButton}},{adButtonViewModel:function(a){return _.F(_.B$,{data:a.data,
customCommandResolver:h})}})))},"fm");var zPR=_.H(function(D){var v=D.data;var h=D.customCommandResolver;var a=D.adGridCardCollectionStyle;return _.F("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(Q){var G,x=(G=v().interaction)==null?void 0:G.onFirstVisible;Q&&x&&_.r4(x)},
showOption:_.Nk})),style:function(){return"grid-template-columns: repeat("+i3d(a?a():v().style)+", minmax(0, 1fr));"}},_.F(_.c4,{data:function(){var Q;
return(Q=v())==null?void 0:Q.gridCards}},{adGridCardImageViewModel:function(Q){return _.F(oqf,{data:Q.data,
customCommandResolver:h})},
adGridCardImageFullMetadataViewModel:function(Q){return _.F(C9H,{data:Q.data,customCommandResolver:h})},
adGridCardTextViewModel:function(Q){return _.F(FSo,{data:Q.data,customCommandResolver:h})}}))},"gm");_.zh(_.H(function(D){var v=D.data;return _.F("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.ML(_.Mb({visibilityCallback:function(h){var a,Q=(a=v().interaction)==null?void 0:a.onFirstVisible;h&&Q&&_.r4(Q)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},t$K))},_.F("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.F(_.z,{cond:_.Kx2("(min-width: "+((0,_.Ux)()+_.OJ)+"px)"),
then:function(){return _.F(_.c4,{data:function(){return v().adGridCardCollection}},{adGridCardCollectionViewModel:function(h){return _.F(zPR,{data:h.data,
customCommandResolver:t$K})}})},
else:function(){return _.F(_.c4,{data:function(){return v().adGridCardCollection}},{adGridCardCollectionViewModel:function(h){return _.F(zPR,{data:h.data,
customCommandResolver:t$K,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.F("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.F(_.c4,{data:function(){return v().adButton}},{adButtonViewModel:function(h){return _.F(_.B$,{data:h.data,
customCommandResolver:t$K})}})))},"hm"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;return _.F("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.ML(_.Mb({visibilityCallback:function(h){var a,Q=(a=v().interaction)==null?void 0:a.onFirstVisible;h&&Q&&_.r4(Q)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},rrd))},_.F("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.F(_.c4,{data:function(){if(_.Kx2("(min-width: "+((0,_.Ux)()+_.OJ)+"px)")())var h=v().adGridCardCollection;
else{h=Object.assign({},_.k(v().adGridCardCollection,no0));var a;h.gridCards!==void 0&&((a=h.gridCards)==null?void 0:a.length)>1?h.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":h.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";h={adGridCardCollectionViewModel:h}}return h}},{adGridCardCollectionViewModel:function(h){return _.F(zPR,{data:h.data,
customCommandResolver:rrd})}})),_.F("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.F(_.c4,{data:function(){return v().adButton}},{adButtonViewModel:function(h){return _.F(_.B$,{data:h.data,
customCommandResolver:rrd})}})))},"im"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.gj}});var A5=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return D};
_.J(A5,_.c);_.V=A5.prototype;_.V.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"}}}};
_.V.attached=function(){this.getDataFromPlayerAndRender()};
_.V.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.V.getDataFromPlayerAndRender=function(){var D=this,v=_.Mq(this.hostElement);v&&v.getPlayerPromise().then(function(h){D.getCachedDataAndListen(h)})};
_.V.getCachedDataAndListen=function(D){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=D)};
_.V.resolveCachedActions=function(){var D=_.T3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(D=D&&D())&&!_.sV.isEmpty(D)&&this.sendUpdateEngagementPanelAction(D);(D=(D=_.T3("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&D())&&!_.sV.isEmpty(D)&&this.sendChangeEngagementPanelVisibilityAction(D);(D=(D=_.T3("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&D())&&!_.sV.isEmpty(D)&&this.sendScrollToEngagementPanelCommand(D)};
_.V.sendUpdateEngagementPanelAction=function(D){var v;_.zU(this.hostElement,"yt-update-engagement-panel-action",[(v=_.sV.get(D,"action"))!=null?v:D])};
_.V.sendChangeEngagementPanelVisibilityAction=function(D){_.zU(this.hostElement,"yt-change-engagement-panel-visibility-action",[D])};
_.V.sendScrollToEngagementPanelCommand=function(D){_.zU(this.hostElement,"yt-scroll-to-engagement-panel-command",[D])};
_.V.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.g("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.yR(Error("So"))};
A5.prototype.dataChanged=A5.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],A5.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],A5.prototype,"componentBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],A5.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],A5.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],A5.prototype,"player",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],A5.prototype,"dataChanged",null);_.e([_.m({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],A5);
_.w(A5,"ytd-ads-engagement-panel-content-renderer",function(){if(fcz!==void 0)return fcz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return fcz=D},{mode:1});var Upd;var qZ=function(){var D=_.c.apply(this,arguments)||this;D.player=null;D.JSC$22653_playerEvents=new Map;D.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return D};
_.J(qZ,_.c);_.V=qZ.prototype;_.V.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]]"}}}}}};
_.V.created=function(){this.player=null;this.JSC$22653_playerEvents=new Map;this.JSC$22653_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22653_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22653_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22653_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.attached=function(){var D=this,v=_.Mq();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));v&&v.getPlayerPromise().then(function(h){D.setPlayer(h);D.set("isPageLoad",!1)})};
_.V.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22653_playerEvents);this.set("player",D);D&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22653_playerEvents),D.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.V.onLoopRangeChange=function(D){var v=_.xd().resolve(_.PV(_.P4));if((!v||v.isOnWatch())&&this.hostElement.clientHeight){var h;!D&&((h=this.data)==null?0:h.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.V.onVideoProgress=function(D){var v,h,a=((v=this.player)==null?void 0:(h=v.getPresentingPlayerType)==null?void 0:h.call(v))===2;this.isAdPlaying!==a&&this.set("isAdPlaying",a);var Q;if(!a&&(Q=this.player)!=null&&Q.getLoopRange()){h=this.player.getLoopRange();v=h.startTimeMs;h=h.endTimeMs;a=this.player.getProgressState(1).seekableStart;var G;v<a*1E3&&((G=this.data)==null?0:G.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
D=h<D*1E3;var x;((x=this.player)==null?0:x.getLoopRange())&&D&&this.player.seekTo(v/1E3)}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onYtDeleteClipEngagementPanelCommand=function(D){_.k(D,Q9K).command&&this.ytComponentBehavior.resolveCommand(_.k(D,Q9K).command)};
_.GT.Object.defineProperties(qZ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.aX("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],qZ.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],qZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],qZ.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qZ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],qZ.prototype,"isAdPlaying",void 0);_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],qZ.prototype,"isPageLoad",void 0);_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],qZ.prototype,"isDarkTheme",void 0);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],qZ.prototype,"voteCount",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],qZ.prototype,"channelEndpoint",null);_.e([_.N("channelEndpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],qZ.prototype,"channelHref",null);_.e([_.m({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],qZ);
_.w(qZ,"ytd-clip-attribution-renderer",function(){if(Upd!==void 0)return Upd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Upd=D},{mode:1});var LSf;var b_=function(){var D=_.c.apply(this,arguments)||this;D.player=null;D.JSC$22658_playerEvents=new Map;return D};
_.J(b_,_.c);_.V=b_.prototype;_.V.created=function(){this.player=null;this.JSC$22658_playerEvents=new Map;this.JSC$22658_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22658_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22658_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V.attached=function(){var D=this,v=_.Mq();v&&v.getPlayerPromise().then(function(h){D.setPlayer(h);D.set("isPageLoad",!1)})};
_.V.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22658_playerEvents);this.set("player",D);if(D){this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22658_playerEvents);var v;(D==null?void 0:(v=D.getPresentingPlayerType)==null?void 0:v.call(D))===2&&this.playerAdStartHandler()}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onVideoProgress=function(){var D,v,h=((D=this.player)==null?void 0:(v=D.getPresentingPlayerType)==null?void 0:v.call(D))===2;this.isAdPlaying!==h&&this.set("isAdPlaying",h)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],b_.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],b_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],b_.prototype,"isAdPlaying",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],b_.prototype,"isPageLoad",void 0);_.e([_.m({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],b_);
_.w(b_,"ytd-clip-section-footer-renderer",function(){if(LSf!==void 0)return LSf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return LSf=D},{mode:1});var Z0Q;var EqY;var Ic3=function(){return _.c.apply(this,arguments)||this};
_.J(Ic3,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ic3.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ic3.prototype,"data",void 0);_.e([_.m({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Ic3);
_.w(Ic3,"ytd-clip-ad-state-renderer",function(){if(EqY!==void 0)return EqY;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return EqY=D},{mode:1});var gqd;var dB=function(){var D=_.c.apply(this,arguments)||this;D.value="";D.valid=!1;D.userChangedValue=!1;D.disabled=!1;D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return D};
_.J(dB,_.c);_.V=dB.prototype;_.V.detached=function(){this.userChangedValue=!1};
_.V.handleKeyDown=function(D){if(_.U1)var v=13;else _.v1I&&_.La?v=13:v=13;D.keyCode===v&&D.preventDefault()};
_.V.handleInput=function(){var D=_.ZW(this.hostElement).querySelector("#title");if(D){var v=(D.value||"").replace(/\r|\n/g," ");this.set("value",v);D.value=v;this.valid=D.validate();this.userChangedValue=!0}};
_.V.handleBlur=function(){this.valid=_.ZW(this.hostElement).querySelector("#title").validate()};
_.V.onValueChanged=function(){_.F1(this.hostElement,"title-changed",{title:this.value})};
_.V.onValidChanged=function(){_.F1(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.V.setInput=function(D,v){var h=_.ZW(this.hostElement).querySelector("#title");h&&(h.value=D,this.handleInput(),v&&(h.invalid=!1,this.valid=!0))};
_.V.onClipCreationDisable=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable=function(){this.set("disabled",!1)};
_.V.onClipCreationVisibilityChange=function(D){var v=this;D.visible?requestAnimationFrame(function(){var h;((h=_.ZW(v.hostElement).querySelector("#title"))==null?void 0:h.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
dB.prototype.onValidChanged=dB.prototype.onValidChanged;dB.prototype.onValueChanged=dB.prototype.onValueChanged;dB.prototype.handleBlur=dB.prototype.handleBlur;dB.prototype.handleInput=dB.prototype.handleInput;dB.prototype.handleKeyDown=dB.prototype.handleKeyDown;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],dB.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],dB.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],dB.prototype,"value",void 0);_.e([_.Y(),_.n("design:type",Object)],dB.prototype,"valid",void 0);_.e([_.Y(),_.n("design:type",Object)],dB.prototype,"userChangedValue",void 0);_.e([_.Y(),_.n("design:type",Object)],dB.prototype,"disabled",void 0);_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],dB.prototype,"handleKeyDown",null);
_.e([_.lc("input"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"handleInput",null);_.e([_.lc("blur"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"handleBlur",null);_.e([_.Ni("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"onValueChanged",null);
_.e([_.Ni("valid"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"onValidChanged",null);_.e([_.m({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],dB);
_.w(dB,"ytd-clip-creation-text-input-renderer",function(){if(gqd!==void 0)return gqd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return gqd=D},{mode:1});var kQQ;var SNH;var JNH;var pQw;var lc0;var jz=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};D.pendingStoryboardImages_={};D.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];D.tickLabelInterval=30;D.mediumTickInterval=5;D.largeTickInterval=15;D.aboveRulerHeight=32;D.rulerHeight=50;D.smallTickHeight=4;D.mediumTickHeight=8;D.largeTickHeight=16;D.mediaListeners_=
{};return D};
_.J(jz,_.c);_.V=jz.prototype;_.V.attached=function(){var D=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(v){v=_.P(["screen and (min-resolution: "+v+")","screen and (max-resolution: "+v+")"]);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=window.matchMedia(h);a&&(D.mediaListeners_[h]=D.updatePixelRatio_.bind(D),a.addEventListener?a.addEventListener("change",D.mediaListeners_[h]):a.addListener?a.addListener(D.mediaListeners_[h]):delete D.mediaListeners_[h])}})};
_.V.detached=function(){this.setPlayer(null);for(var D=_.P(Object.keys(this.mediaListeners_)),v=D.next();!v.done;v=D.next()){var h=v.value;v=this.mediaListeners_[h];(h=window.matchMedia(h))&&(h.removeEventListener?h.removeEventListener("change",v):h.removeListener&&h.removeListener(v))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.V.onVisibilityChangedAction_=function(D){var v=this;D.visible&&!this.player_&&(D=_.Mq())&&D.getPlayerPromise().then(function(h){v.setPlayer(h)})};
_.V.setPlayer=function(D){D&&this.set("player_",D)};
_.V.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.V.setUpCanvas_=function(){var D=this.rulerWidth,v=this.devicePixelRatio_,h=this.visible;this.set("canvasReady_",!1);if(h&&v!==0){h=this.aboveRulerHeight+this.rulerHeight;var a=_.ZW(this.hostElement).querySelector("#ticks");a.width=D*v;a.height=h*v;a.style.width=D+"px";a.style.height=h+"px";a.getContext("2d").scale(v,v);this.set("canvasReady_",!0)}};
_.V.drawRuler_=function(D,v,h,a,Q,G,x,f,C,U,L,Z){D&&h&&v&&(D=_.ZW(this.hostElement).querySelector("#ticks"),v=D.getContext("2d"),v.clearRect(0,0,D.width,D.height),v.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),v.lineWidth=2,v.beginPath(),v.moveTo(0,this.aboveRulerHeight),v.lineTo(D.width,this.aboveRulerHeight),v.moveTo(0,D.height),v.lineTo(D.width,D.height),v.stroke(),this.drawRulerTicks_(D,G,Q,a),this.drawStoryboardImages_(D,h,G,Q,a),v.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
v.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(x-G,a,!1),this.rulerHeight),h=this.timeToPixels_(f-G,a,!1),v.fillRect(h,this.aboveRulerHeight,D.width-h,this.rulerHeight),this.drawSpeedLines_(D,G,Z))};
_.V.drawRulerTicks_=function(D,v,h,a){var Q=D.getContext("2d");Q.save();Q.lineWidth=1;for(var G=Math.floor(Math.max(0,v-this.tickLabelInterval));G<v+h;G++){Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var x=(G-v)*a;Q.beginPath();Q.moveTo(x,D.height);var f=this.smallTickHeight;G%this.largeTickInterval===0?f=this.largeTickHeight:G%this.mediumTickInterval===0&&(f=this.mediumTickHeight);Q.lineTo(x,D.height-f);Q.stroke();G%this.tickLabelInterval===0&&(Q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Q.fillText(H6(G),x+4,12),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.moveTo(x,0),Q.lineTo(x,this.aboveRulerHeight),Q.stroke())}Q.restore()};
_.V.percentToHex_=function(D){D=Math.round(D*255).toString(16);D.length<2&&(D="0"+D);return D};
_.V.drawSpeedLines_=function(D,v,h){var a=D.getContext("2d");a.save();var Q=Math.min(25,Math.abs(h)-15)/25,G=D.width*.3*Q,x=D.width*-.3,f=D.width*1.3,C=this.aboveRulerHeight;D=D.height;var U=Math.round(4*Q),L=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");L.length<7&&(L="#"+L.substring(1,4).repeat(2));var Z=this.percentToHex_(.5+Q/2);Z=L+Z;L+="00";if(Q>0)for(Q=0;Q<U;Q++){var E=x+Math.random()*(f-x),I=C+Math.random()*(D-C),S=G+v%G,B=a.createLinearGradient(E,I,E+S,I);
h<0?(B.addColorStop(0,Z),B.addColorStop(.4,Z),B.addColorStop(.9,L)):(B.addColorStop(.1,L),B.addColorStop(.6,Z),B.addColorStop(1,Z));a.strokeStyle=B;a.lineWidth=1;a.beginPath();a.moveTo(E,I);a.lineTo(E+S,I);a.stroke()}a.restore()};
_.V.getStoryboardForTime_=function(D,v,h){h===void 0&&(h=v.getNumberOfStoryboardLevels()-1);D=v.getStoryboardFrameIndex(D,h);return v.getStoryboardFrame(D,h)};
_.V.drawStoryboardImages_=function(D,v,h,a,Q){if(!this.disabled){D=D.getContext("2d");var G=this.getStoryboardForTime_(0,v);if(G){var x=G.width/G.columns;G=G.height/G.rows;var f=x/G,C=this.rulerHeight*f;C=this.tickLabelInterval*(f<this.tickLabelInterval*Q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Q/C):Math.round(C/(this.tickLabelInterval*Q)));var U=C*Q,L=this.rulerHeight,Z=U/this.rulerHeight,E=Math.floor(Math.max(0,h-C));for(E-=E%C;E<h+a;E+=C){var I=this.getStoryboardForTime_(E,v),S=this.getPreloadedStoryboard_(I.url);
if(S){var B=(E-h)*Q,A=this.aboveRulerHeight,d=I.column*x,b=I.row*G;if(f<Z){var W=L/(U/f);I=x;W*=G;b+=(G-W)/2}else I=U/(L*f)*x,W=G,d+=(x-I)/2;D.drawImage(S,d,b,I,W,B,A,U,L)}else this.fetchStoryboardImage_(I)}}}};
_.V.getPreloadedStoryboard_=function(D){return this.storyboardImages_.find(function(v){if(v.src==D)return!0;var h=v.src.indexOf(D);return h!=-1&&h==v.src.length-D.length})};
_.V.fetchStoryboardImage_=function(D){var v=this,h=this.getPreloadedStoryboard_(D.url),a=this.pendingStoryboardImages_[D.url];h||a!==void 0||(h=new Promise(function(Q){var G=new Image(D.width,D.height);G.src=D.url;G.onload=function(){Q(G)};
G.onerror=function(){Q(null)}}),this.pendingStoryboardImages_[D.url]=h,h.then(function(Q){Q&&v.push("storyboardImages_",Q);
return Q}).finally(function(){delete v.pendingStoryboardImages_[D.url]}))};
_.V.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.V.timeToPixels_=function(D,v,h){D*=v;return h===void 0||h?D+"px":D};
_.V.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
jz.prototype.drawRuler_=jz.prototype.drawRuler_;jz.prototype.setUpCanvas_=jz.prototype.setUpCanvas_;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],jz.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],jz.prototype,"start",void 0);_.e([_.Y({value:30}),_.n("design:type",Number)],jz.prototype,"end",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],jz.prototype,"visible",void 0);_.e([_.Y(),_.n("design:type",Object)],jz.prototype,"player_",void 0);_.e([_.Y(),_.n("design:type",Number)],jz.prototype,"tickSpacing",void 0);_.e([_.Y(),_.n("design:type",Number)],jz.prototype,"windowSizeSec",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],jz.prototype,"rulerWidth",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],jz.prototype,"rulerShift",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],jz.prototype,"canvasReady_",void 0);_.e([_.Y({value:function(){return[]}}),
_.n("design:type",Array)],jz.prototype,"storyboardImages_",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],jz.prototype,"disabled",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],jz.prototype,"forceRender_",void 0);_.e([_.Y({value:1}),_.n("design:type",Number)],jz.prototype,"devicePixelRatio_",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],jz.prototype,"windowSpeed",void 0);
_.e([_.Ni("visible","devicePixelRatio_","rulerWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jz.prototype,"setUpCanvas_",null);
_.e([_.Ni("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.n("design:returntype")],jz.prototype,"drawRuler_",null);_.e([_.Ry({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],jz);
_.w(jz,"yt-clip-creation-scrubber-canvas",function(){if(lc0===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);lc0=D}D=lc0;return D},
{mode:2});var NWY;var YNd;var sm=function(){var D=_.c.apply(this,arguments)||this;D.start=0;D.end=30;D.visible=!1;D.draggingLeft_=!1;D.draggingRight_=!1;D.draggingRuler_=!1;D.draggingWindow_=!1;D.seekableStart=0;D.seekableEnd=0;D.rulerWidth_=0;D.rulerShift_=0;D.windowSlideSpeed=0;D.disabled=!1;D.initialized=!1;D.durationAccessibilityLabel="";D.activeLoopRange_=!1;D.rulerDragMouseStart_=0;D.rulerDragRulerStart_=0;D.rulerDragStartTime_=0;D.rulerDragEndTime_=0;D.dragMouseLastX_=0;D.scrollInterval_=null;D.scrubberVe_=null;D.boundHandlers_=
{};D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.J(sm,_.c);_.V=sm.prototype;
_.V.created=function(){var D=this;this.JSC$22671_playerEvents=new Map;this.JSC$22671_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22671_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22671_playerEvents.set("onStateChange",this.onStateChange_);var v={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(v).forEach(function(h){D.boundHandlers_[h]=v[h].bind(D)})};
_.V.attached=function(){this.activeLoopRange_=!1;_.ZW(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ZW(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.En(156731)};
_.V.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ZW(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ZW(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.V.onVisibilityChangedAction_=function(D){var v=this;D.visible&&!this.player_&&(D=_.Mq())&&D.getPlayerPromise().then(function(h){v.setPlayer(h)})};
_.V.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22671_playerEvents);D&&(this.set("player_",D),this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22671_playerEvents))};
_.V.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.beginHandleDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=D.clientX,D.target===_.ZW(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():D.target===_.ZW(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.V.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.V.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.V.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.V.beginRulerDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=D.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.V.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.V.beginWindowScroll_=function(){var D=this;this.scrollInterval_=setInterval(function(){var v=D.windowSlideSpeed;if(v=_.vpw(D.start,D.boundedRulerStartLimit_())?v-.1:_.vpw(D.end,D.boundedRulerEndLimit_())?v+.1:0){var h=D.capRulerOffset_(D.rulerShift_+v);h==D.rulerShift_?v=0:(D.set("rulerShift_",h),_.F1(D.hostElement,"set-fixed-length-range",{start:D.start+v,duration:D.end-D.start}))}D.set("windowSlideSpeed",v)},33)};
_.V.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.V.endDrag_=function(){this.logClick();var D=void 0;this.draggingRight_?D=this.end-1:this.draggingLeft_&&(D=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,D);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.V.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.V.updateRulerSize_=function(){this.set("rulerWidth_",_.ZW(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.V.handleMouseDrag_=function(D){D.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(D):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(D):this.draggingWindow_&&this.handleWindowDrag_(D))};
_.V.handleRulerDrag_=function(D){D=this.pixelsToTime_(D.clientX-this.rulerDragMouseStart_);D=this.capRulerOffset_(this.rulerDragRulerStart_-D);this.set("rulerShift_",D);var v=this.rulerDragStartTime_-(this.rulerDragRulerStart_-D);_.F1(this.hostElement,"set-fixed-length-range",{start:v,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-D)-v})};
_.V.handleWindowDrag_=function(D){var v=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(v);_.F1(this.hostElement,"set-fixed-length-range",{start:this.start+D,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.capRulerOffset_=function(D){var v=this.seekableStart-this.pixelsToTime_(16),h=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(v,D),h)};
_.V.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.V.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.V.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.V.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.V.handleWindowHandleDrag_=function(D){var v=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(v);if(this.draggingLeft_){var h=this.start+D;var a=this.end}else this.draggingRight_&&(h=this.start,a=this.end+D);_.F1(this.hostElement,"set-range",{start:h,end:a,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.onVideoProgress_=function(D){this.disabled||(D=this.timeToPixels_(D-this.rulerShift_,this.tickSpacing_),_.ZW(this.hostElement).querySelector("#playhead").style.transform="translateX("+D+")")};
_.V.onClipCreationDisable_=function(){this.endDrag_()};
_.V.timeToPixels_=function(D,v,h){D*=v;return h===void 0||h?D+"px":D};
_.V.pixelsToTime_=function(D){return D/this.tickSpacing_};
_.V.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.centerRuler_=function(D,v,h){this.set("rulerShift_",this.capRulerOffset_(D+(v-D)/2-h/2))};
_.V.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.V.updateLoopRange_=function(D,v,h,a,Q,G,x){D&&(v&&a&&!h?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(D.pauseVideo(),D.seekTo(Q,!1,void 0,void 0,50)):this.draggingRight_?(D.pauseVideo(),D.seekTo(G-.1,!1,void 0,void 0,50)):(x!==void 0?D.seekTo(x,!0,void 0,void 0,50):(v=D.getCurrentTime(),v<Q||v>G?D.seekTo(Q,!0,void 0,void 0,50):D.seekTo(v,!0,void 0,void 0,50)),D.playVideo()),D.setLoopRange({startTimeMs:Q*1E3,endTimeMs:G*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(D.getCurrentTime())):
this.activeLoopRange_&&(D.setLoopRange(null),this.activeLoopRange_=!1))};
_.V.updateHandles_=function(){_.ZW(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ZW(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.V.updateRuler_=function(){var D=this.end,v=this.start,h=this.draggableStartLimit_(),a=this.draggableEndLimit_();(v<h-.001||D>a+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.computeDurationLabel_=function(D,v){return D?D.replace("$clip_length",parseFloat(v).toFixed(1)):""};
_.V.computeDuration_=function(D,v){return this.isValidTime_(D)&&this.isValidTime_(v)&&D<v?v-D:0};
_.V.isValidTime_=function(D){return isNaN(parseFloat(D))||D<0?!1:this.player_?D>=this.seekableStart&&D<=this.seekableEnd:!0};
_.V.computeWindowSizeSec_=function(D,v,h){return Math.min((D||12E4)/1E3,h-v)};
_.V.computeTickSpacing_=function(D,v){return v?v/D:1};
_.V.onDragStateChanged_=function(){_.F1(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.V.centerRangeOnTime_=function(D){var v=this.duration;D=DfM(D-v/2,v,this.seekableStart,this.seekableEnd);_.F1(this.hostElement,"set-fixed-length-range",{start:D.start,duration:D.end-D.start})};
_.V.nearlyLessThan_=function(D,v,h){return D+(h===void 0?1E-6:h)<v};
_.V.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var D=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(D,this.start)||this.nearlyLessThan_(this.end,D))&&this.centerRangeOnTime_(D)}};
_.V.onStateChange_=function(D){this.visible&&!this.disabled&&D==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.V.computeDragState_=function(D,v,h,a){return D?"left":v?"right":h?"ruler":a?"window":"none"};
_.V.logClick=function(){var D=_.wd(),v=_.yC();D&&v&&this.scrubberVe_&&(_.g("combine_ve_grafts")?_.de(_.c8(),this.scrubberVe_,v):_.tP(D,v,this.scrubberVe_),_.hA(D,this.scrubberVe_))};
sm.prototype.onDragStateChanged_=sm.prototype.onDragStateChanged_;sm.prototype.updateRuler_=sm.prototype.updateRuler_;sm.prototype.updateHandles_=sm.prototype.updateHandles_;sm.prototype.onUpdateLoopRange=sm.prototype.onUpdateLoopRange;sm.prototype.onInitializedChanged_=sm.prototype.onInitializedChanged_;sm.prototype.onVisibleChanged_=sm.prototype.onVisibleChanged_;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],sm.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",Object)],sm.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"start",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"end",void 0);_.e([_.Y({computed:"computeDuration_(start, end)"}),_.n("design:type",Number)],sm.prototype,"duration",void 0);
_.e([_.Y(),_.n("design:type",String)],sm.prototype,"lengthTemplate",void 0);_.e([_.Y({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.n("design:type",String)],sm.prototype,"durationLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"visible",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"player_",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"draggingLeft_",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"draggingRight_",void 0);
_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"draggingRuler_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Object)],sm.prototype,"draggingWindow_",void 0);_.e([_.Y({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.n("design:type",Number)],sm.prototype,"tickSpacing_",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"seekableStart",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"seekableEnd",void 0);
_.e([_.Y(),_.n("design:type",Number)],sm.prototype,"windowSizeMs",void 0);_.e([_.Y({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.n("design:type",Number)],sm.prototype,"windowSizeSec_",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"rulerWidth_",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"rulerShift_",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"windowSlideSpeed",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sm.prototype,"disabled",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"initialized",void 0);_.e([_.Y(),_.n("design:type",Object)],sm.prototype,"durationAccessibilityLabel",void 0);_.e([_.Y({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.n("design:type",String)],sm.prototype,"dragState",void 0);
_.e([_.Ni("visible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"onVisibleChanged_",null);_.e([_.Ni("initialized"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"onInitializedChanged_",null);_.e([_.Ni("player_","visible","disabled","initialized","start","end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"onUpdateLoopRange",null);
_.e([_.Ni("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"updateHandles_",null);_.e([_.Ni("start","end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"updateRuler_",null);
_.e([_.Ni("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"onDragStateChanged_",null);_.e([_.Ry({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],sm);
_.w(sm,"yt-clip-creation-scrubber-view",function(){if(YNd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;NWY===void 0&&(NWY=document.createElement("template"));var a=NWY;h.call(v,a.content.cloneNode(!0),D.content.firstChild);YNd=D}D=YNd;return D},{mode:2});var m$=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};D.startHighlightTimeout=0;D.endHighlightTimeout=0;return D};
_.J(m$,_.c);_.V=m$.prototype;_.V.attached=function(){var D=this;this.startInput.addEventListener("input",function(v){return D.handleStartInput_(v)});
this.endInput.addEventListener("input",function(v){return D.handleEndInput_(v)});
this.startInput.addEventListener("focusout",function(v){return D.handleStartBlur_(v)});
this.endInput.addEventListener("focusout",function(v){return D.handleEndBlur_(v)})};
_.V.setPlayer=function(D){this.set("player_",D)};
_.V.onSetFixedLengthRange_=function(D){var v=D.detail;D=v.start;var h=v.duration,a=v.startLimit;v=v.endLimit;a||(a=this.seekableStart_);v||(v=this.seekableEnd_);D=DfM(D,h,a,v);this.start=D.start;this.end=D.end};
_.V.onSetRange_=function(D){var v=D.detail;D=v.start;var h=v.end,a=v.startLimit;v=v.endLimit;a||(a=this.seekableStart_);v||(v=this.seekableEnd_);if(D=vow(D,h,a,v,this.minLengthSec,this.maxLengthSec))this.start=D.start,this.end=D.end};
_.V.updateInputs_=function(){var D=this.end,v=this.start;this.startInput.focused||(this.startInput.value=H6(v,!0));this.endInput.focused||(this.endInput.value=H6(D,!0))};
_.V.handleStartInput_=function(D){D=uXK(D.target.value);if(D===null)this.set("startValid",!1);else{var v=this.end,h=vow(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);h?(this.set("endWillUpdate",h.end!==v),this.set("startValid",h.start===D)):this.set("startValid",!1)}};
_.V.handleEndInput_=function(D){D=uXK(D.target.value);if(D===null)this.set("endValid",!1);else{var v=this.start,h=hBM(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);h?(this.set("startWillUpdate",h.start!==v),this.set("endValid",h.end===D)):this.set("endValid",!1)}};
_.V.handleStartBlur_=function(D){D=uXK(D.target.value);D===null?this.startInput.value=H6(this.start,!0):this.forceUpdateInputs_(vow(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.handleEndBlur_=function(D){D=uXK(D.target.value);D===null?this.endInput.value=H6(this.end,!0):this.forceUpdateInputs_(hBM(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.forceUpdateInputs_=function(D){D&&(this.start=D.start,this.end=D.end);this.startInput.value=H6(this.start,!0);this.endInput.value=H6(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.V.initializeClipRange_=function(){var D=this.seekableEnd_,v=this.seekableStart_,h=this.visible_,a=this.player_;if(!a||!h||v===null||!D)this.set("initialized",!1);else if(!this.initialized){var Q=a.getCurrentTime(),G=this.getDefaultLengthSec_();h=a.getVideoData();var x=a.getPlayerState()==1,f=h.isLive;G=Math.min(G,D-v);Q=Math.max(0,Q);D=f?hBM(Q-G,Q,v,D,this.minLengthSec,this.maxLengthSec):x?DfM(Q-G/2,G,v,D):DfM(Q,G,v,D);this.start=D.start;this.end=D.end;this.set("initialized",!0);h.isLive&&a.seekTo(D.start);
this.startInput.value=H6(this.start,!0);this.endInput.value=H6(this.end,!0)}};
_.V.onStartChanged_=function(){var D=this;_.F1(this.hostElement,"start-changed",{start:this.start});var v;isNaN((v=this.oldStart)!=null?v:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){D.set("highlightStart",!1);D.startHighlightTimeout=0;D.oldStart=D.start},3E3))};
_.V.onEndChanged_=function(){var D=this;_.F1(this.hostElement,"end-changed",{end:this.end});var v;isNaN((v=this.oldEnd)!=null?v:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){D.set("highlightEnd",!1);D.endHighlightTimeout=0;D.oldEnd=D.end},3E3))};
_.V.onVisibilityChangedAction_=function(D){var v=this;this.set("visible_",D.visible);this.visible_&&!this.player_&&(D=_.Mq())&&D.getPlayerPromise().then(function(h){v.setPlayer(h)})};
_.V.computeMinLengthSec_=function(D){return D/1E3||5};
_.V.computeMaxLengthSec_=function(D){return D/1E3||60};
_.V.computeDefaultLengthSec_=function(D){return D/1E3};
_.V.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.V.computeSeekableStart_=function(D,v){return D&&v?D.getProgressState(1).seekableStart:0};
_.V.computeSeekableEnd_=function(D,v){return D&&v?D.getProgressState(1).seekableEnd:0};
_.V.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.V.onDragState_=function(D){this.set("highlightStart",D.detail.startChanging);this.set("highlightEnd",D.detail.endChanging)};
m$.prototype.onDragState_=m$.prototype.onDragState_;m$.prototype.onEndChanged_=m$.prototype.onEndChanged_;m$.prototype.onStartChanged_=m$.prototype.onStartChanged_;m$.prototype.initializeClipRange_=m$.prototype.initializeClipRange_;m$.prototype.updateInputs_=m$.prototype.updateInputs_;m$.prototype.onSetRange_=m$.prototype.onSetRange_;m$.prototype.onSetFixedLengthRange_=m$.prototype.onSetFixedLengthRange_;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],m$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],m$.prototype,"data",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],m$.prototype,"start",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],m$.prototype,"startValid",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],m$.prototype,"startWillUpdate",void 0);_.e([_.Y({value:30}),_.n("design:type",Number)],m$.prototype,"end",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],m$.prototype,"endValid",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],m$.prototype,"endWillUpdate",void 0);_.e([_.Y({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.n("design:type",Number)],m$.prototype,"minLengthSec",void 0);
_.e([_.Y({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.n("design:type",Number)],m$.prototype,"maxLengthSec",void 0);_.e([_.Y({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.n("design:type",Number)],m$.prototype,"defaultLengthSec",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],m$.prototype,"visible_",void 0);_.e([_.Y(),_.n("design:type",Object)],m$.prototype,"player_",void 0);
_.e([_.Y({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.n("design:type",Number)],m$.prototype,"seekableStart_",void 0);_.e([_.Y({computed:"computeSeekableEnd_(player_, visible_)"}),_.n("design:type",Number)],m$.prototype,"seekableEnd_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],m$.prototype,"initialized",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],m$.prototype,"disabled",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],m$.prototype,"highlightStart",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],m$.prototype,"highlightEnd",void 0);_.e([_.Br("#start"),_.n("design:type",HTMLInputElement)],m$.prototype,"startInput",void 0);_.e([_.Br("#end"),_.n("design:type",HTMLInputElement)],m$.prototype,"endInput",void 0);
_.e([_.lc("set-fixed-length-range"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],m$.prototype,"onSetFixedLengthRange_",null);_.e([_.lc("set-range"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],m$.prototype,"onSetRange_",null);_.e([_.Ni("start","end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m$.prototype,"updateInputs_",null);
_.e([_.Ni("player_","visible_","seekableStart_","seekableEnd_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m$.prototype,"initializeClipRange_",null);_.e([_.Ni("start"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m$.prototype,"onStartChanged_",null);_.e([_.Ni("end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m$.prototype,"onEndChanged_",null);
_.e([_.lc("clips-drag-state"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],m$.prototype,"onDragState_",null);_.e([_.Ry({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],m$);
_.w(m$,"yt-clip-creation-scrubber-renderer",function(){if(pQw===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;JNH===void 0&&(JNH=document.createElement("template"));var a=JNH;h.call(v,a.content.cloneNode(!0),D.content.firstChild);pQw=D}D=pQw;return D},{mode:2});var H5=function(){var D=_.c.apply(this,arguments)||this;D.player_=null;D.JSC$22685_playerEvents=new Map;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.J(H5,_.c);_.V=H5.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$22685_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22685_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22685_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22685_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.V.detached=function(){this.setPlayer(null)};
_.V.onVisibilityChangedAction_=function(D){var v=this,h;if((h=this.data)==null?0:h.externalVideoId){var a;this.videoId=(a=this.data)==null?void 0:a.externalVideoId}this.getPlayer().then(function(Q){if(D.visible)v.returnTime=Q.getCurrentTime(),v.isAtLiveHead=Q.getProgressState().isAtLiveHead;else{var G=v.returnTime;v.isAtLiveHead&&(G=Number.POSITIVE_INFINITY);Q.seekTo(G,void 0,void 0,void 0,51)}})};
_.V.getPlayer=function(){var D=this;if(!this.player_){var v=_.Mq();if(v)return v.getPlayerPromise().then(function(h){D.setPlayer(h);return h})}return Promise.resolve(this.player_)};
_.V.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22685_playerEvents);if(D){this.player_=D;var v;((v=this.data)==null?0:v.externalVideoId)||this.set("videoId",D.getVideoData().video_id||"");var h;(D==null?void 0:(h=D.getPresentingPlayerType)==null?void 0:h.call(D))===2&&(this.set("isAdPlaying",!0),_.zU(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22685_playerEvents)}};
_.V.ready=function(){_.ZW(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.V.onTitleChanged_=function(D){this.set("titleValue",D.detail.title)};
_.V.onStartChanged_=function(D){this.set("start",D.detail.start)};
_.V.onEndChanged_=function(D){this.set("end",D.detail.end)};
_.V.onTitleValidChanged_=function(D){this.set("titleValid",D.detail.valid)};
_.V.onStartValidChanged_=function(D){this.set("startValid",D.detail.valid)};
_.V.onEndValidChanged_=function(D){this.set("endValid",D.detail.valid)};
_.V.onVideoDataChange_=function(){var D;if((D=this.data)==null||!D.externalVideoId){var v;this.set("videoId",((v=this.player_)==null?void 0:v.getVideoData().video_id)||"")}};
_.V.computeFormValid_=function(D,v,h,a){return!!(D&&v&&h&&a)};
_.V.computeCancelButton_=function(D,v,h){return D&&_.k(D,_.Vi)?{buttonRenderer:Object.assign({},_.k(D,_.Vi),{isDisabled:v||h})}:null};
_.V.computeSubmitButton_=function(D,v,h){return D&&_.k(D,_.Vi)?{buttonRenderer:Object.assign({},_.k(D,_.Vi),{command:void 0,isDisabled:!this.formValid||v||h})}:null};
_.V.computeSubmitCommand_=function(D){return D||null};
_.V.onSubmit_=function(D){var v=this;D.stopPropagation();D.preventDefault();this.submitCommand_&&(D={},D.comment_text=this.titleValue,D.clip_external_video_id=this.videoId,D.clip_offset_ms=parseInt(this.start*1E3,10),D.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.L1(this.hostElement,[this.submitCommand_,D]).then(function(){v.set("isLoading_",!1)},function(){v.set("isLoading_",!1)}))};
_.V.playerAdStartHandler_=function(){_.zU(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler_=function(){_.zU(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.V.onVideoProgress_=function(){var D=this;this.getPlayer().then(function(v){var h,a=(v==null?void 0:(h=v.getPresentingPlayerType)==null?void 0:h.call(v))===2;D.isAdPlaying!==a&&(a?D.playerAdStartHandler_():D.playerAdEndHandler_())})};
H5.prototype.onEndValidChanged_=H5.prototype.onEndValidChanged_;H5.prototype.onStartValidChanged_=H5.prototype.onStartValidChanged_;H5.prototype.onTitleValidChanged_=H5.prototype.onTitleValidChanged_;H5.prototype.onEndChanged_=H5.prototype.onEndChanged_;H5.prototype.onStartChanged_=H5.prototype.onStartChanged_;H5.prototype.onTitleChanged_=H5.prototype.onTitleChanged_;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],H5.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",Object)],H5.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],H5.prototype,"data",void 0);_.e([_.Y({value:""}),_.n("design:type",String)],H5.prototype,"titleValue",void 0);
_.e([_.Y({value:!1}),_.n("design:type",Boolean)],H5.prototype,"titleValid",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],H5.prototype,"start",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],H5.prototype,"startValid",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],H5.prototype,"end",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],H5.prototype,"endValid",void 0);_.e([_.Y({value:""}),_.n("design:type",String)],H5.prototype,"videoId",void 0);
_.e([_.Y({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.n("design:type",Boolean)],H5.prototype,"formValid",void 0);_.e([_.Y({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.n("design:type",Object)],H5.prototype,"submitButton_",void 0);_.e([_.Y({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.n("design:type",Object)],H5.prototype,"submitCommand_",void 0);
_.e([_.Y({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.n("design:type",Object)],H5.prototype,"cancelButton_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],H5.prototype,"isLoading_",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],H5.prototype,"isAdPlaying",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],H5.prototype,"returnTime",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],H5.prototype,"isAtLiveHead",void 0);
_.e([_.lc("title-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H5.prototype,"onTitleChanged_",null);_.e([_.lc("start-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H5.prototype,"onStartChanged_",null);_.e([_.lc("end-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H5.prototype,"onEndChanged_",null);
_.e([_.lc("title-valid-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H5.prototype,"onTitleValidChanged_",null);_.e([_.lc("start-valid-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H5.prototype,"onStartValidChanged_",null);_.e([_.lc("end-valid-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],H5.prototype,"onEndValidChanged_",null);
_.e([_.Ry({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],H5);
_.w(H5,"yt-clip-creation-renderer",function(){if(SNH===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;kQQ===void 0&&(kQQ=document.createElement("template"));var a=kQQ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);SNH=D}D=SNH;return D},{mode:2});var yq=function(){return _.c.apply(this,arguments)||this};
_.J(yq,_.c);yq.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"}}}};
yq.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(D){return D.hasOwnProperty("clipCreationRenderer")})&&_.zU(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
yq.prototype.onPanelContentVisibleChanged=yq.prototype.onPanelContentVisibleChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.U$.YtVisibilityBehavior),_.n("design:type",Object)],yq.prototype,"ytVisibilityBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],yq.prototype,"ytdReduxBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],yq.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],yq.prototype,"panelContentVisible",void 0);_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yq.prototype,"onPanelContentVisibleChanged",null);_.e([_.m({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],yq);
_.w(yq,"ytd-clip-section-renderer",function(){if(Z0Q!==void 0)return Z0Q;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Z0Q=D},{mode:1});var BWw;var wB=function(){return _.c.apply(this,arguments)||this};
_.J(wB,_.c);_.V=wB.prototype;
_.V.onKeyDown=function(D){if(this.snippetElements.length!==0&&(D=D.keyCode,D===38||D===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);D===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.sk(this.highlightedIndex,-1,this.snippetElements.length);D=this.snippetElements.length;var v=this.highlightedIndex%D;this.highlightedIndex=v*D<0?v+D:v;D=this.snippetElements[this.highlightedIndex];this.highlightSnippet(D);this.ensureVisible(D)}};
_.V.onKeyUp=function(D){var v=this;y30(D)&&(D.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.HK.cancelJob(this.inputTimerId),this.inputTimerId=_.HK.addLowPriorityJob(function(){v.typedValue&&(v.fetchSnippets(v.typedValue),v.logInputGesture(v.data))},1E3))};
_.V.onClick=function(D){(D=_.KmJ(D.target,null,"snippet-item"))&&this.selectSnippet(D)};
_.V.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.V.ready=function(){var D=this;this.inputElement.addEventListener("focus",function(){D.snippetsWrapper.style.removeProperty("display")})};
_.V.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.V.getSourceTimelines=function(){if(!this.data)return[];var D=[];if(this.data.searchInVideoSources)for(var v=_.P(this.data.searchInVideoSources),h=v.next();!h.done;h=v.next())h=h.value,h==="SEARCH_IN_VIDEO_SOURCE_ASR"?D.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):h==="SEARCH_IN_VIDEO_SOURCE_OCR"&&D.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return D};
_.V.fetchSnippets=function(D){var v=_.zU(this.hostElement,"yt-get-current-video-id-action")[0],h=this.getSourceTimelines();D={getSearchInVideoCommand:{externalVideoId:v,query:D!=null?D:"",sourceTimelines:h},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})};
_.V.filterSnippets=function(D,v){var h=this;if(v){this.filteredSnippets=(0,_.sV.unsafeClone)(D);var a=RegExp(_.LDA(v),"i");this.filteredSnippets=this.filteredSnippets.filter(function(x){return a.test(h.ytRendererBehavior.getSimpleString(x.snippet))});
D=_.P(this.filteredSnippets);for(var Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var G=this.ytRendererBehavior.getSimpleString(Q.snippet);Q.snippet={runs:[{text:G.substring(0,G.toLowerCase().indexOf(v))},{text:G.substring(G.toLowerCase().indexOf(v),G.toLowerCase().indexOf(v)+v.length),bold:!0},{text:G.substring(G.toLowerCase().indexOf(v)+v.length,G.length)}]}}}else this.filteredSnippets=D};
_.V.onUpdateSearchInVideoResults=function(D){if(!(this.snippets.length>0)){var v,h,a;if((a=(v=_.k(D,uYH))==null?void 0:(h=v.results)==null?void 0:h.length)!=null&&a){var Q;this.filteredSnippets=this.snippets=((Q=_.k(D,uYH))==null?void 0:Q.results).map(function(G){var x,f,C;return{startMs:G==null?void 0:(x=G.searchInVideoResultRenderer)==null?void 0:x.startMs,startTimeText:G==null?void 0:(f=G.searchInVideoResultRenderer)==null?void 0:f.startTimeText,snippet:G==null?void 0:(C=G.searchInVideoResultRenderer)==
null?void 0:C.snippet}})}}};
_.V.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};
_.V.highlightSnippet=function(D){D.classList.add("highlighted")};
_.V.removeSnippetHighlight=function(D){D.classList.remove("highlighted")};
_.V.selectSnippet=function(D){this.typedValue=String(D.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(D);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.V.ensureVisible=function(D){var v=this.snippetsWrapper.scrollTop,h=v+this.snippetsWrapper.clientHeight,a=D.offsetTop-this.snippetsWrapper.offsetTop;D=a+D.clientHeight;a<v?this.snippetsWrapper.scrollTop-=v-a:D>h&&(this.snippetsWrapper.scrollTop+=D-h)};
_.V.seekPlayer=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1){if(!D)return a.jumpTo(0);v=Number(D.dataset.startOffset);return a.yield(_.fj().getPlayerPromise(),3)}h=a.yieldResult;h.seekTo(v/1E3,!0);h.wakeUpControls();_.YI(a)})};
_.V.logInputGesture=function(D){var v=_.wd();v&&(D==null?0:D.trackingParams)&&_.aG(v,_.d4(D.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.V.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("typed-value-changed",this.typedValue))};
_.V.updateTypedValueFromBinding=function(D){this.typedValue=D.currentTarget.value};
wB.prototype.typedValueChangedForBinding=wB.prototype.typedValueChangedForBinding;wB.prototype.dataChanged=wB.prototype.dataChanged;wB.prototype.panelContentVisibleChanged=wB.prototype.panelContentVisibleChanged;wB.prototype.onClick=wB.prototype.onClick;wB.prototype.onKeyUp=wB.prototype.onKeyUp;wB.prototype.onKeyDown=wB.prototype.onKeyDown;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],wB.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wB.prototype,"data",void 0);_.e([_.Y({value:[]}),_.n("design:type",Array)],wB.prototype,"snippets",void 0);_.e([_.Y({value:[]}),_.n("design:type",Array)],wB.prototype,"filteredSnippets",void 0);_.e([_.Y({value:[]}),_.n("design:type",Array)],wB.prototype,"snippetElements",void 0);
_.e([_.Br("#siv-input"),_.n("design:type",HTMLElement)],wB.prototype,"inputElement",void 0);_.e([_.Br("#siv-snippets-wrapper"),_.n("design:type",HTMLElement)],wB.prototype,"snippetsWrapper",void 0);_.e([_.Y(),_.n("design:type",String)],wB.prototype,"typedValue",void 0);_.e([_.Y({value:-1}),_.n("design:type",Number)],wB.prototype,"highlightedIndex",void 0);_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[_.AJ]),_.n("design:returntype")],wB.prototype,"onKeyDown",null);
_.e([_.lc("keyup"),_.n("design:type",Function),_.n("design:paramtypes",[_.AJ]),_.n("design:returntype")],wB.prototype,"onKeyUp",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wB.prototype,"onClick",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],wB.prototype,"panelContentVisible",void 0);
_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wB.prototype,"panelContentVisibleChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wB.prototype,"dataChanged",null);_.e([_.Ni("typedValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wB.prototype,"typedValueChangedForBinding",null);
_.e([_.m({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],wB);
_.w(wB,"ytd-search-in-video-renderer",function(){if(BWw!==void 0)return BWw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return BWw=D},{mode:1});var cNK;var ez=function(){return _.c.apply(this,arguments)||this};
_.J(ez,_.c);ez.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
ez.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]]"}}}}}};
ez.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,v,h,a,Q=(v=_.k((D=this.data)==null?void 0:D.onClickCommand,_.HF))==null?void 0:(h=v.item)==null?void 0:(a=h.notificationTextRenderer)==null?void 0:a.successResponseText;Q&&_.r_O(this.hostElement,Q)}};
_.GT.Object.defineProperties(ez.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return this.isProductPlaceholder&&((D=this.data)==null?void 0:(v=D.hiddenProductOptions)==null?void 0:v.showDropCountdown)&&!!((h=this.data)==null?0:(a=h.hiddenProductOptions)==null?0:a.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isProductPlaceholder&&!((D=this.data)==null?0:D.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null?0:D.priceReplacementText)&&!((v=this.data)==null||!v.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ez.prototype,"componentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ez.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("isProductPlaceholder"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"useCenterLayoutContainer",null);_.e([_.Y({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],ez.prototype,"buttonOverride",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"isProductPlaceholder",null);
_.e([_.N("isProductPlaceholder"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"showDropCountdown",null);_.e([_.N("isProductPlaceholder","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"showBrandName",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"showPriceReplacementText",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"showPrice",null);
_.e([_.N("isProductPlaceholder"),_.n("design:type",Object),_.n("design:paramtypes",[])],ez.prototype,"showMetadata",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],ez);
_.w(ez,"ytd-product-list-item-renderer",function(){if(cNK!==void 0)return cNK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return cNK=D},{mode:1});var XQH;var nR=function(){return _.c.apply(this,arguments)||this};
_.J(nR,_.c);nR.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
nR.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
nR.prototype.panelContentVisibleChanged=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return D.playerApi?h.jumpTo(2):h.yield(_.fj().getPlayerPromise(),3);h.nextAddress!=2&&(D.playerApi=h.yieldResult);(v=D.playerApi)==null||v.productsInVideoVisibilityUpdated(!!D.panelContentVisible);_.YI(h)})};
nR.prototype.panelContentVisibleChanged=nR.prototype.panelContentVisibleChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],nR.prototype,"panelContentVisible",void 0);_.e([_.Y(),_.n("design:type",Object)],nR.prototype,"data",void 0);
_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],nR.prototype,"panelContentVisibleChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],nR);
_.w(nR,"ytd-product-list-renderer",function(){if(XQH!==void 0)return XQH;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return XQH=D},{mode:1});var ANm;var Om=function(){var D=_.c.apply(this,arguments)||this;D.hideTimestamps=!!_.nq("hide-transcript-timestamps");D.currentCueIndex=-1;D.flatCues=[];D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};D.TEST_ONLY={getFlatCues:function(){return D.flatCues}};
return D};
_.J(Om,_.c);_.V=Om.prototype;_.V.hideTimestampsChanged=function(){_.eL("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.dataChanged=function(){var D;if((D=this.data)!=null&&D.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;D=_.P(this.data.cueGroups);for(var v=D.next();!v.done;v=D.next()){v=_.P(_.k(v.value,DSf).cues);for(var h=v.next();!h.done;h=v.next())this.flatCues.push(Number(_.k(h.value,vIK).startOffsetMs))}}};
_.V.onYtPlayerTimeChanged=function(D){if(!(D<0)){for(var v=this.currentCueIndex,h=v;;){var a=h>=0?this.flatCues[h]/1E3:-1;if(D+.5<a)--h;else if(a=h+1<this.flatCues.length?this.flatCues[h+1]/1E3:Infinity,D+.5>a)h+=1;else break}h!==v&&(v>=0&&((D=this.getCueElement(v))&&D.classList.remove("active"),(v=this.getCueGroupElement(v))&&v.classList.remove("active")),(v=this.getCueElement(h))&&v.classList.add("active"),(v=this.getCueGroupElement(h))&&v.classList.add("active"),this.currentCueIndex=h,this.isHovered||
this.scrollElementToTop(h))}};
_.V.scrollElementToTop=function(D){D=this.getCueElement(D>=3?D-3:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.getCueElement=function(D){return _.ZW(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[D]+'"]')};
_.V.getCueGroupElement=function(D){return(D=this.getCueElement(D))&&D.parentElement?D.parentElement.parentElement:null};
_.V.onTap=function(D){var v=_.xU(D);D.target.classList.contains("cue")&&this.seekCueElement(v)};
_.V.onKeyPress=function(D){D.keyCode==13&&(D=_.KmJ(D.target,null,"cue"))&&this.seekCueElement(D)};
_.V.seekCueElement=function(D){D=Number(D.getAttribute("start-offset"));_.zU(this.hostElement,"yt-transcript-player-seek",[D/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
Om.prototype.onMouseLeave=Om.prototype.onMouseLeave;Om.prototype.onMouseEnter=Om.prototype.onMouseEnter;Om.prototype.onKeyPress=Om.prototype.onKeyPress;Om.prototype.onTap=Om.prototype.onTap;Om.prototype.dataChanged=Om.prototype.dataChanged;Om.prototype.hideTimestampsChanged=Om.prototype.hideTimestampsChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Om.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Om.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Om.prototype,"hideTimestamps",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Om.prototype,"isHovered",void 0);_.e([_.Ni("hideTimestamps"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Om.prototype,"hideTimestampsChanged",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Om.prototype,"dataChanged",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Om.prototype,"onTap",null);_.e([_.lc("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Om.prototype,"onKeyPress",null);
_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Om.prototype,"onMouseEnter",null);_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Om.prototype,"onMouseLeave",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Om);
_.w(Om,"ytd-transcript-body-renderer",function(){if(ANm!==void 0)return ANm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ANm=D},{mode:1});var qNd;var KR=function(){var D=_.c.apply(this,arguments)||this;D.darkerPanels=_.g("web_watch_darker_panels");return D};
_.J(KR,_.c);KR.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KR.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],KR.prototype,"darkerPanels",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],KR);
_.w(KR,"ytd-transcript-footer-renderer",function(){if(qNd!==void 0)return qNd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return qNd=D},{mode:1});var b0H;var dpw;var TM=function(){var D=_.c.apply(this,arguments)||this;D.systemIcons=_.g("kevlar_system_icons");D.showClearButton=!1;return D};
_.J(TM,_.c);_.V=TM.prototype;_.V.handleInput=function(D){var v=this;D.target.value.length?_.aq(this,"ytdTranscriptSearchBoxSearch",function(){v.emitSearchEvent(D)},500):(_.oxf(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=D.target.value.length>0};
_.V.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.V.handleClick=function(){var D,v=(D=this.data)==null?void 0:D.trackingParams;v&&_.mj(_.c8(),v)};
_.V.handleClear=function(){_.oxf(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var D,v,h=(v=_.k((D=this.data)==null?void 0:D.clearButton,_.Vi))==null?void 0:v.trackingParams;h&&_.mj(_.c8(),h);this.clear()};
_.V.emitSearchEvent=function(D){_.F1(this.hostElement,"yt-transcript-search-box-search",{query:D.target.value});var v,h;(D=(h=_.k((v=this.data)==null?void 0:v.searchButton,_.Vi))==null?void 0:h.trackingParams)&&_.mj(_.c8(),D)};
_.V.emitClearEvent=function(){_.F1(this.hostElement,"yt-transcript-search-box-clear")};
_.GT.Object.defineProperties(TM.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ZW(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TM.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],TM.prototype,"systemIcons",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],TM);
_.w(TM,"ytd-transcript-search-box-renderer",function(){if(dpw!==void 0)return dpw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return dpw=D},{mode:1});var jaf;var sa3;var RJ=function(){return _.c.apply(this,arguments)||this};
_.J(RJ,_.c);RJ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var D,v;this.sectionHeaderAriaLabel=(D=this.data)==null?void 0:(v=D.accessibility)==null?void 0:v.accessibilityData.label}};
RJ.prototype.fireSelectedEvent=function(D){_.F1(this.hostElement,"ytd-transcript-section-header",{startMs:D})};
RJ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
RJ.prototype.handleKeyPress=function(D){this.data&&D.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.GT.Object.defineProperties(RJ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.data)==null?void 0:D.enableTappableTranscriptHeader)!=null?v:!1}}});
RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],RJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],RJ.prototype,"sectionHeaderAriaLabel",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],RJ.prototype,"enableTappableTranscriptHeader",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RJ.prototype,"dataChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],RJ);
_.w(RJ,"ytd-transcript-section-header-renderer",function(){if(sa3!==void 0)return sa3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return sa3=D},{mode:1});var mpw;var H03;var i_=function(){var D=_.c.apply(this,arguments)||this;D.isEditMode=!1;D.touchCaptionsEnabled=!1;D.deleteCaptionCorrectionPopupCommand=null;D.voteCaptionCorrectionPopupCommand=null;D.roundedContainer=!0;D.mouseOver=!1;D.textChanged=!1;D.messages={suggest_correction:_.p1("suggest_correction",void 0,"Edit caption"),suggested_caption:_.p1("suggested_caption",void 0,"Suggested caption"),submit_correction:_.p1("submit_correction",void 0,"Submit for review"),cancel_correction:_.p1("cancel_correction",
void 0,"Cancel"),replay_segment:_.p1("replay_segment",void 0,"Re-play segment"),delete_correction:_.p1("delete_correction",void 0,"Delete correction")};D.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return D};
_.J(i_,_.c);_.V=i_.prototype;_.V.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)};
_.V.handleDelete=function(D){if(this.deleteCaptionCorrectionPopupCommand){var v=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);v&&this.ytdOpenPopupBehavior.openPopup(v);D.stopPropagation()}};
_.V.handleSubmit=function(D){if(this.data&&this.data.submitCaptionCorrectionCommand&&(D.stopPropagation(),this.textChanged)){var v;D=(v=_.k(this.data.submitCaptionCorrectionCommand,_.CKt))==null?void 0:v.params;v=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:D,correctionText:String(this.ironTextAreaElement.value),originalText:_.$V(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(v);this.isEditMode=!1}};
_.V.handleUpdateSegmentText=function(D){(D=_.k(D,ZfQ))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&(D.userCorrection&&(this.editedText=D.userCorrection),D.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.$V(this.data.snippet)),D.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=D.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=D.voteCaptionCorrectionPopupCommand?
D.voteCaptionCorrectionPopupCommand:null,D.accessibility&&(this.segmentAriaLabel=D.accessibility.accessibilityData.label))};
_.V.handleCancel=function(D){this.isEditMode=!1;D.stopPropagation();this.logClientVe(159409)};
_.V.handleEditSegmentCommand=function(D){(D=_.k(D,Lkm))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&this.handleEdit()};
_.V.handleEditButtonClick=function(D){this.data&&(this.handleEdit(),D.stopPropagation())};
_.V.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var D;(D=this.ironTextAreaElement.textarea)==null||D.focus();this.logClientVe(159407)}};
_.V.handleMouseEnter=function(){this.mouseOver=!0};
_.V.handleMouseLeave=function(){this.mouseOver=!1};
_.V.handleReplay=function(D){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),D.stopPropagation(),this.logClientVe(159408))};
_.V.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()))};
_.V.handleKeypress=function(D){this.data&&(this.isEditMode?D.stopPropagation():this.isEnterPress(D)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(D)&&this.logClientVe(138758))};
_.V.handleTextboxClick=function(D){D.stopPropagation()};
_.V.handleTextboxKeydown=function(D){this.isControlEnterPress(D)?this.handleSubmit(D):D.key==="Escape"&&this.handleCancel(D)};
_.V.handleTextboxKeyup=function(){this.textChanged=_.$V(this.latestText)!==String(this.ironTextAreaElement.value)};
_.V.fireSelectedEvent=function(D){_.F1(this.hostElement,"yt-transcript-segment-selected",{startMs:D})};
_.V.fireReplayEvent=function(D,v){_.F1(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(D-100,0),endMs:v})};
_.V.fireEditEvent=function(D,v){_.F1(this.hostElement,"yt-transcript-segment-edit",{startMs:D,endMs:v})};
_.V.isEnterPress=function(D){return D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13?!0:!1};
_.V.isControlEnterPress=function(D){var v=D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13;return(D.ctrlKey||D.metaKey)&&v};
_.V.isCopyPress=function(D){var v=D.ctrlKey;return D.key==="c"&&v};
_.V.logClick=function(){var D,v=(D=this.data)==null?void 0:D.trackingParams;v&&_.mj(_.c8(),v)};
_.V.logClientVe=function(D){_.se(_.c8(),_.En(D))};
_.GT.Object.defineProperties(i_.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}}});
i_.prototype.handleMouseLeave=i_.prototype.handleMouseLeave;i_.prototype.handleMouseEnter=i_.prototype.handleMouseEnter;i_.prototype.dataChanged=i_.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],i_.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],i_.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],i_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],i_.prototype,"isEditMode",void 0);_.e([_.Y(),_.n("design:type",Object)],i_.prototype,"touchCaptionsEnabled",void 0);_.e([_.Y(),_.n("design:type",Object)],i_.prototype,"editedText",void 0);_.e([_.Y(),_.n("design:type",Object)],i_.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.e([_.Y(),_.n("design:type",Object)],i_.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.e([_.Y(),_.n("design:type",String)],i_.prototype,"segmentAriaLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],i_.prototype,"roundedContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],i_.prototype,"mouseOver",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],i_.prototype,"textChanged",void 0);_.e([_.Y(),_.n("design:type",Object)],i_.prototype,"messages",void 0);
_.e([_.Br("#suggestion"),_.n("design:type",Object)],i_.prototype,"ironTextAreaElement",void 0);_.e([_.N("data","editedText"),_.n("design:type",Object),_.n("design:paramtypes",[])],i_.prototype,"latestText",null);_.e([_.N("touchCaptionsEnabled","isEditMode"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],i_.prototype,"enableEditButton",null);
_.e([_.N("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],i_.prototype,"enableUndoButton",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i_.prototype,"dataChanged",null);_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i_.prototype,"handleMouseEnter",null);
_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i_.prototype,"handleMouseLeave",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],i_);
_.w(i_,"ytd-transcript-segment-renderer",function(){if(H03!==void 0)return H03;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return H03=D},{mode:1});var W5=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};D.isError=!1;D.darkerPanels=_.g("web_watch_darker_panels");D.useParentMaxHeight=_.g("web_watch_transscript_use_parent_max_height");D.segmentOffsets=[];D.segmentIndex=-1;return D};
_.J(W5,_.c);_.V=W5.prototype;_.V.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"}}}}};
_.V.segmentsChanged=function(){this.updateOffsets()};
_.V.onYtPlayerTimeChanged=function(D){for(var v=this.segmentIndex,h=v;;){if(h>=0){var a=this.segmentOffsets[h].start;var Q=this.segmentOffsets[h].isAutoScrollable}else a=-1,Q=!0;var G=D+.5;if(!Q){a=h+1<this.segmentOffsets.length?this.segmentOffsets[h+1].start:Infinity;if(G>=a){h+=1;continue}h=-1;break}if(G<a)a=h-1>=0&&this.segmentOffsets[h-1].isAutoScrollable,Q=h===0||a?1:2,h-=Q;else if(Q=h+1<this.segmentOffsets.length&&this.segmentOffsets[h+1].isAutoScrollable?1:2,a=h+Q<this.segmentOffsets.length?
this.segmentOffsets[h+Q].start:Infinity,G>a)h+=Q;else{if(h<0)break;h<this.segmentOffsets.length&&G>this.segmentOffsets[h].end&&(h=-1);break}}if(v!==h){if(v>=0){var x;(x=this.getSegmentElement(v))==null||x.classList.remove("active")}this.segmentIndex=h;if(!(h<0)){var f;(f=this.getSegmentElement(h))==null||f.classList.add("active");this.isHovered||this.scrollElementToTop(h)}}};
_.V.handleSegmentEdit=function(D){D.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=D.target,_.zU(this.hostElement,"yt-transcript-player-edit",[D.detail.startMs/1E3,D.detail.endMs/1E3]))};
_.V.handleSegmentSelected=function(D){_.zU(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.V.handleSegmentReplay=function(D){_.zU(this.hostElement,"yt-transcript-player-replay",[D.detail.startMs/1E3,D.detail.endMs/1E3])};
_.V.handleSectionHeaderSelected=function(D){_.zU(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.onRetryButtonClick=function(){_.F1(this.hostElement,"transcript-retry-button-click")};
_.V.getSegmentElement=function(D){return _.ZW(this.hostElement).querySelector(":nth-child("+(D+1)+")")};
_.V.scrollElementToTop=function(D){D=this.getSegmentElement(D>=2?D-2:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(D){var v,h=(v=D.transcriptSegmentRenderer)!=null?v:D.transcriptSectionHeaderRenderer;return{start:Number(h.startMs)/1E3,end:Number(h.endMs)/1E3,isAutoScrollable:D.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.V.clearHighlightedSegments=function(){var D=_.ZW(this.hostElement);D=_.P(D.querySelectorAll("ytd-transcript-segment-renderer"));for(var v=D.next();!v.done;v=D.next())v.value.classList.remove("active")};
_.GT.Object.defineProperties(W5.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.searchResultSegments)||((v=this.data)==null?void 0:v.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
W5.prototype.onMouseLeave=W5.prototype.onMouseLeave;W5.prototype.onMouseEnter=W5.prototype.onMouseEnter;W5.prototype.handleSectionHeaderSelected=W5.prototype.handleSectionHeaderSelected;W5.prototype.handleSegmentReplay=W5.prototype.handleSegmentReplay;W5.prototype.handleSegmentSelected=W5.prototype.handleSegmentSelected;W5.prototype.handleSegmentEdit=W5.prototype.handleSegmentEdit;W5.prototype.segmentsChanged=W5.prototype.segmentsChanged;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],W5.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],W5.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],W5.prototype,"isError",void 0);
_.e([_.Y(),_.n("design:type",Object)],W5.prototype,"noResultLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],W5.prototype,"darkerPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],W5.prototype,"useParentMaxHeight",void 0);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],W5.prototype,"segments",null);
_.e([_.N("segments","noResultLabel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],W5.prototype,"displayNoResults",null);_.e([_.Ni("segments"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W5.prototype,"segmentsChanged",null);_.e([_.lc("yt-transcript-segment-edit"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],W5.prototype,"handleSegmentEdit",null);
_.e([_.lc("yt-transcript-segment-selected"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],W5.prototype,"handleSegmentSelected",null);_.e([_.lc("yt-transcript-segment-replay"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],W5.prototype,"handleSegmentReplay",null);
_.e([_.lc("ytd-transcript-section-header"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],W5.prototype,"handleSectionHeaderSelected",null);_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W5.prototype,"onMouseEnter",null);_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W5.prototype,"onMouseLeave",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],W5);
_.w(W5,"ytd-transcript-segment-list-renderer",function(){if(mpw!==void 0)return mpw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return mpw=D},{mode:1});var t5=function(){var D=_.c.apply(this,arguments)||this;D.hideTimestamps=!!_.nq("hide-transcript-timestamps");D.isLoadingTranscripts=!1;D.darkerPanels=_.g("web_watch_darker_panels");D.isError=!1;D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return D};
_.J(t5,_.c);_.V=t5.prototype;_.V.headerChanged=function(){var D,v;this.baseGetTranscriptsCommand=(v=_.k((D=this.data)==null?void 0:D.header,EIQ))==null?void 0:v.onTextChangeCommand};
_.V.bodyChanged=function(){var D=this.getBodyRenderer();D&&(D.initialSegments&&(this.initialTranscriptsRenderer=D),D.noResultLabel&&(this.noResultLabel=D.noResultLabel),D.retryLabel&&(this.retryLabel=D.retryLabel))};
_.V.detached=function(){this.clearSearchBoxText()};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.V.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"}}}};
_.V.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.V.fireSearch=function(D){var v=this;if(D){var h=D.detail.query;if(this.baseGetTranscriptsCommand){var a;D=(a=_.k(this.baseGetTranscriptsCommand,_.LJM))==null?void 0:a.params;var Q;a=_.k((Q=this.data)==null?void 0:Q.footer,hJz);var G;if((Q=(G=_.k(a==null?void 0:a.languageMenu,Fkw))==null?void 0:G.subMenuItems)&&Q.length>0&&(G=Q.find(function(C){return C.selected}))){var x,f;
D=(x=G.continuation)==null?void 0:(f=x.reloadContinuationData)==null?void 0:f.continuation}x=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:D,searchQuery:h}});this.ytComponentBehavior.resolveCommand(x,{commandController:{onServerError:function(){v.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});jmY(this.ytContinuationHandlerBehavior,function(){return h===v.getCurrentSearchBoxText()})}}};
_.V.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.V.onRetryButtonClick=function(){this.isError=!1;var D={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:D}))};
_.V.hideTimestampsChanged=function(){_.eL("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.handleSignalActionCopyTranscript=function(){var D=this,v=this.getBodyRenderer();v&&(v=((v==null?void 0:v.searchResultSegments)||(v==null?void 0:v.initialSegments)||[]).map(function(h){return _.k(h,gIo)}).filter(function(h){return!!h}).map(function(h){return{snippet:h.snippet||{runs:[{text:""}]},
startTimeText:h.startTimeText||{simpleText:""}}}).map(function(h){var a=(h.snippet.runs||[]).reduce(function(Q,G){return Q+G.text},"");
return D.hideTimestamps?a:h.startTimeText.simpleText+" "+a}).join("\n"),this.copyToClipboard(v))};
_.V.copyToClipboard=function(D){navigator.clipboard&&navigator.clipboard.writeText(D)};
_.V.getCurrentSearchBoxText=function(){var D;return(D=this.searchBox)==null?void 0:D.value};
_.V.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.V.getBodyRenderer=function(){var D;return _.k((D=this.data)==null?void 0:D.body,Ixo)};
_.V.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.GT.Object.defineProperties(t5.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ZW(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
t5.prototype.hideTimestampsChanged=t5.prototype.hideTimestampsChanged;t5.prototype.searchCleared=t5.prototype.searchCleared;t5.prototype.fireSearch=t5.prototype.fireSearch;t5.prototype.onReloadContinuationFinish=t5.prototype.onReloadContinuationFinish;t5.prototype.bodyChanged=t5.prototype.bodyChanged;t5.prototype.headerChanged=t5.prototype.headerChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],t5.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],t5.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],t5.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],t5.prototype,"hideTimestamps",void 0);
_.e([_.Y(),_.n("design:type",Object)],t5.prototype,"isLoadingTranscripts",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],t5.prototype,"darkerPanels",void 0);_.e([_.Y(),_.n("design:type",Object)],t5.prototype,"isError",void 0);_.e([_.Ni("data.header"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t5.prototype,"headerChanged",null);
_.e([_.qi("data.body"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t5.prototype,"bodyChanged",null);_.e([_.lc("yt-reload-continuation-finish"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t5.prototype,"onReloadContinuationFinish",null);_.e([_.lc("yt-transcript-search-box-search"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],t5.prototype,"fireSearch",null);
_.e([_.lc("yt-transcript-search-box-clear"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t5.prototype,"searchCleared",null);_.e([_.Ni("hideTimestamps"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t5.prototype,"hideTimestampsChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],t5);
_.w(t5,"ytd-transcript-search-panel-renderer",function(){if(jaf!==void 0)return jaf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return jaf=D},{mode:1});var rB=function(){var D=_.c.apply(this,arguments)||this;D.player=null;D.playerPollJobId=0;return D};
_.J(rB,_.c);_.V=rB.prototype;_.V.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.V.onLoadReloadContinuation=function(D){_.g("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:D.target.data.continuation}}):(D={clickTrackingParams:D.target.data.clickTrackingParams,getTranscriptEndpoint:{params:D.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}}))};
_.V.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"}}}};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.V.attached=function(){this.updatePlayerListening()};
_.V.detached=function(){this.updatePlayerListening()};
_.V.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.V.startPlayerListening=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return(v=_.Mq())?h.yield(v.getPlayerPromise(),2):h.return();D.player=h.yieldResult;D.playerPollJobId=_.HK.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3);
D.player.addEventListener("onCueRangeEnter",function(a){D.onCueRangeEnter(a)});
D.player.addEventListener("onCueRangeExit",function(a){D.onCueRangeExit(a)});
D.player.addEventListener("onStateChange",function(a){D.onPlayerStateChange(a)});
D.player.addEventListener("SEEK_TO",function(a){D.onPlayerSeek(a)});
_.YI(h)})};
_.V.getPlayerVideoProgress=function(){var D=this;_.HK.cancelJob(this.playerPollJobId);if(this.player){var v=this.player.getCurrentTime();_.zU(this.hostElement,"yt-player-time-changed",[v])}this.playerPollJobId=_.HK.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3)};
_.V.stopPlayerListening=function(){this.player=null;_.HK.cancelJob(this.playerPollJobId)};
_.V.onPlayerStateChange=function(D){D===2&&this.removePendingCue()};
_.V.onPlayerSeek=function(D){var v;if(v=this.pendingReplayCueId)v=this.pendingReplayCueId,v=D===(_.g("web_transcript_cue_id_killswitch")?Number(v):Number(v.split("_")[1]));v||this.removePendingCue()};
_.V.onCueRangeEnter=function(D){$f3(D)&&(this.pendingReplayCueId=D)};
_.V.onCueRangeExit=function(D){$f3(D)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.V.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.V.onYtTranscriptPlayerSeek=function(D){this.player&&this.player.seekTo(D,!0)};
_.V.onYtTranscriptPlayerReplay=function(D,v){this.player&&(this.player.addCueRange(afz(D),D,v),this.player.seekTo(D,!0),this.player.playVideo())};
_.V.onYtTranscriptPlayerEdit=function(D,v){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(afz(D),D,v),this.player.seekTo(D,!0))};
rB.prototype.onLoadReloadContinuation=rB.prototype.onLoadReloadContinuation;rB.prototype.panelContentVisibleChanged=rB.prototype.panelContentVisibleChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],rB.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],rB.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rB.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],rB.prototype,"panelContentVisible",void 0);_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rB.prototype,"panelContentVisibleChanged",null);
_.e([_.lc("yt-load-reload-continuation"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],rB.prototype,"onLoadReloadContinuation",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],rB);
_.w(rB,"ytd-transcript-renderer",function(){if(b0H!==void 0)return b0H;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return b0H=D},{mode:1});var yNR;var wQ0;var u_=function(){return _.c.apply(this,arguments)||this};
_.J(u_,_.c);u_.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ZD(this.hostElement,[this.data.clickCommand],this.hostElement))};
u_.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Ux)()+_.OJ)+"px)"};
u_.prototype.updateShouldHideFromBinding=function(D){this.shouldHide=D.detail.value};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],u_.prototype,"rendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],u_.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],u_.prototype,"shouldHide",void 0);_.e([_.m({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],u_);
_.w(u_,"ytd-ad-engagement-panel-banner-renderer",function(){if(wQ0!==void 0)return wQ0;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wQ0=D},{mode:_.E_("kevlar_poly_si_batch_j070")?1:2});var ePf;var D9=function(){var D=_.c.apply(this,arguments)||this;D.modernPanels=_.g("kevlar_watch_modern_panels");D.buttonUpdate=_.g("web_modern_buttons");D.adsSemanticText=_.g("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.J(D9,_.c);D9.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.e([_.Y(),_.n("design:type",Object)],D9.prototype,"data",void 0);_.e([_.Y({computed:"computeHideDefaultAdBadge(data)"}),_.n("design:type",Boolean)],D9.prototype,"hideDefaultAdBadge",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D9.prototype,"modernPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D9.prototype,"buttonUpdate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],D9.prototype,"adsSemanticText",void 0);
_.e([_.m({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],D9);
_.w(D9,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(ePf!==void 0)return ePf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ePf=D},{mode:1});var nqB;var vo=function(){var D=_.c.apply(this,arguments)||this;D.darkerPanels=_.g("web_watch_darker_panels");D.enableSqueezebackPanels=_.g("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");D.modernPanels=_.g("kevlar_watch_modern_panels");D.headerClickListener=function(v){D.onHeaderClick(v)};
D.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return D};
_.J(vo,_.c);_.V=vo.prototype;_.V.computeAdsInfoButton=function(){if(_.g("web_modern_buttons")){var D,v;return(v=_.k((D=this.data)==null?void 0:D.subtitleComplex,axw))==null?void 0:v.adInfoRenderer}};
_.V.updateHeaderClickListener=function(){var D,v,h;((D=this.data)==null?0:D.navigationEndpoint)||((v=this.data)==null?0:v.onClickCommand)||_.k((h=this.data)==null?void 0:h.visibilityButton,_.Pi)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.V.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}}}}}};
_.V.collapsedChanged=function(){var D;(D=this.data)!=null&&D.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.g("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.V.focus=function(D){var v=this;this.titleElement&&_.HK.addJob(function(){_.v1(v.titleElement,D)},0,500)};
_.V.computeTitleAriaLabel=function(D){var v=[];if(D.title){var h,a;v.push(this.ytRendererBehavior.getSimpleString(D.title)||((h=D.title.accessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label))}D.contextualInfo&&v.push(this.ytRendererBehavior.getSimpleString(D.contextualInfo));return v.join(" ")};
_.V.onHeaderClick=function(D){this.shouldTriggerHeaderClick(D)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ZD(this.hostElement,[this.data.onClickCommand],this.hostElement)):(D=this.getVisibilityToggleButton())&&D.click())};
_.V.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var D=_.k(this.data.visibilityButton,_.Vi)||_.k(this.data.visibilityButton,_.Pi);D&&this.ytRendererBehavior.logExplicitClick(D)}};
_.V.getVisibilityToggleButton=function(){var D=_.ZW(this.hostElement).querySelector("#visibility-button").firstElementChild;return(D==null?void 0:D.is)==="ytd-toggle-button-renderer"?D:null};
_.V.shouldTriggerHeaderClick=function(D){return!_.Gf(_.Pr(D),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.V.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(D){D=_.k(D,_.RBK);this.targetId&&(D==null?void 0:D.targetId)===this.targetId&&(D=D.navigationButton)&&this.set("data.navigationButton",D)};
_.GT.Object.defineProperties(vo.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!!(((D=this.entity)==null?0:D.isActionButtonHidden)||this.hideActionButton)}}});
vo.prototype.collapsedChanged=vo.prototype.collapsedChanged;vo.prototype.updateHeaderClickListener=vo.prototype.updateHeaderClickListener;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],vo.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],vo.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vo.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],vo.prototype,"targetId",void 0);_.e([_.Y(),_.n("design:type",Boolean)],vo.prototype,"collapsed",void 0);_.e([_.Y(),_.n("design:type",Boolean)],vo.prototype,"hideActionButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],vo.prototype,"shortsPanel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],vo.prototype,"liveChatEngagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],vo.prototype,"learningChatEngagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],vo.prototype,"darkerPanels",void 0);_.e([_.Br("#title"),_.n("design:type",HTMLElement)],vo.prototype,"titleElement",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],vo.prototype,"headerElement",void 0);
_.e([_.Y({computed:"computeAdsInfoButton(data)"}),_.n("design:type",Object)],vo.prototype,"adsInfoButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],vo.prototype,"enableSqueezebackPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],vo.prototype,"enableAnchoredPanel",void 0);_.e([_.Y({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(D,v){return _.gR(D.entities,"engagementPanelTitleHeaderEntity",v)}}),
_.n("design:type",Object)],vo.prototype,"entity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],vo.prototype,"modernPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],vo.prototype,"adsSemanticText",null);_.e([_.Ni("data","data.navigationEndpoint","data.onClickCommand"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vo.prototype,"updateHeaderClickListener",null);
_.e([_.qi("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vo.prototype,"collapsedChanged",null);_.e([_.N("entity","hideActionButton"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],vo.prototype,"isActionButtonHidden",null);_.e([_.m({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],vo);
_.w(vo,"ytd-engagement-panel-title-header-renderer",function(){if(nqB!==void 0)return nqB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return nqB=D},{mode:1});var O03;var hG=function(){return _.c.apply(this,arguments)||this};
_.J(hG,_.c);hG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hG.prototype,"data",void 0);_.e([_.m({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],hG);
_.w(hG,"ytd-macro-markers-info-item-renderer",function(){if(O03!==void 0)return O03;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return O03=D},{mode:1});var KSf;var as=function(D,v,h,a,Q,G){_.AN.call(this);var x=this;this.JSC$22787_containerElement=D;this.hostElement=v;this.supportedSyncItems=h;this.syncEntityKey=a;this.options=Q;this.renderLazyListItems=G;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;TWo(this);RP3(this);this.JSC$22787_scrollAnimation=new _.Uu(function(f){D.scrollTop=f});
_.Ia(this,this.JSC$22787_scrollAnimation);this.addOnDisposeCallback(function(){i0K(x,!1);x.activeItem&&x.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.J(as,_.AN);var TWo=function(D){var v=_.Oe(_.xd().resolve(_.Mv),function(h){return h.entities.markersEngagementPanelSyncEntity||{}},function(h,a){var Q;
if(h[D.syncEntityKey]!==a[D.syncEntityKey]&&((Q=h[D.syncEntityKey])==null?void 0:Q.activeItemIndex)!==void 0)if(a=h[D.syncEntityKey].activeItemIndex,h=D.getItemByIndex(a)){if(WSm(D,h),D.contentVisible)if(D.browsingMode){var G;((G=D.options)==null?void 0:G.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(G=ted(D),h.offsetTop<D.JSC$22787_containerElement.clientHeight+D.JSC$22787_containerElement.scrollTop&&G&&!D.activeItemBelowSyncPosition&&i0K(D,!1));rNH(D)}else D.scrollToItem(h)}else _.yR(new _.XH("Could not find "+
D.supportedSyncItems+" sync child to set active.",a,D.JSC$22787_containerElement.querySelectorAll(D.supportedSyncItems).length))});
D.unsubscribeFromTimedMarkersListSyncEntity=v;D.addOnDisposeCallback(v);u6M(D)},u6M=function(D){var v=_.xd().resolve(_.Mv);
v=_.F5c(v.getState(),D.syncEntityKey);(v==null?void 0:v.activeItemIndex)!==void 0&&(v=D.getItemByIndex(v.activeItemIndex))&&WSm(D,v)},RP3=function(D){var v=new _.tn(D.onScroll,50,D);
_.Ia(D,v);var h=function(){v.fire()};
D.JSC$22787_containerElement.addEventListener("scroll",h);D.addOnDisposeCallback(function(){D.JSC$22787_containerElement.removeEventListener("scroll",h)})};
as.prototype.getItemByIndex=function(D){var v;(v=this.renderLazyListItems)==null||v.call(this,D);v=this.JSC$22787_containerElement.querySelectorAll(this.supportedSyncItems);if(v.length>D)return v[D]};
var WSm=function(D,v){D.activeItem&&D.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));v.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));D.activeItem=v};
as.prototype.scrollToItem=function(D){D=this.getScrollPositionForItem(D);this.JSC$22787_containerElement.scrollTop!==D&&this.JSC$22787_scrollAnimation.start(this.JSC$22787_containerElement.scrollTop,D,300)};
as.prototype.getScrollPositionForItem=function(D){if(this.JSC$22787_containerElement.querySelectorAll(this.supportedSyncItems)[0]===D)return 0;var v,h=((v=this.options)==null?0:v.percentOffset)?this.JSC$22787_containerElement.clientHeight*this.options.percentOffset:0;D=_.nT(D).y+this.JSC$22787_containerElement.scrollTop-(_.nT(this.JSC$22787_containerElement).y+h);return Math.max(0,Math.min(D,this.JSC$22787_containerElement.scrollHeight-this.JSC$22787_containerElement.offsetHeight))};
as.prototype.onScroll=function(){this.activeItemBelowSyncPosition=ted(this);if(this.activeItem&&!this.JSC$22787_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22787_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var D;switch((D=this.options)==null?void 0:D.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":DxM(this,!vHK(this));rNH(this);break;default:DxM(this,!0)}}};
var DxM=function(D,v){var h,a;_.M(function(Q){if(Q.nextAddress==1){if(D.browsingMode)return Q.return();D.browsingMode=!0;v&&D.hostElement.classList.add("browsing-mode");D.playerExitBrowsingModeListener=function(){i0K(D,!1)};
return Q.yield(_.Ig(),2)}h=Q.yieldResult;(a=h)==null||a.addEventListener("SEEK_TO",D.playerExitBrowsingModeListener);_.YI(Q)})},i0K=function(D,v){v=v===void 0?!0:v;
D.browsingMode&&(D.browsingMode=!1,D.hostElement.classList.remove("browsing-mode"),v&&D.scrollToItem(D.activeItem),hro(D))},hro=function(D){var v,h;
_.M(function(a){if(a.nextAddress==1)return D.playerExitBrowsingModeListener?a.yield(_.Ig(),3):a.jumpTo(0);v=a.yieldResult;(h=v)==null||h.removeEventListener("SEEK_TO",D.playerExitBrowsingModeListener);D.playerExitBrowsingModeListener=void 0;_.YI(a)})},rNH=function(D){var v;
((v=D.options)==null?void 0:v.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(vHK(D)?D.hostElement.classList.remove("browsing-mode"):D.activeItem&&D.hostElement.classList.add("browsing-mode"))},ted=function(D){if(!D.activeItem)return!1;
var v,h=((v=D.options)==null?0:v.percentOffset)?D.JSC$22787_containerElement.clientHeight*D.options.percentOffset:0;return D.activeItem.offsetTop>=D.JSC$22787_containerElement.scrollTop+h},vHK=function(D){if(!D.activeItem)return!1;
var v=D.activeItem.offsetTop+14<=D.JSC$22787_containerElement.scrollTop+D.JSC$22787_containerElement.clientHeight;return D.activeItem.offsetTop+D.activeItem.clientHeight-14>=D.JSC$22787_containerElement.scrollTop&&v};
as.prototype.panelContentVisibleChanged=function(D){(this.contentVisible=D)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var aqo=function(D,v){D.syncEntityKey=v;var h;(h=D.unsubscribeFromTimedMarkersListSyncEntity)==null||h.call(D);TWo(D)},$xY=function(D,v){D.options=v};var $A=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return D};
_.J($A,_.c);_.V=$A.prototype;_.V.detached=function(){var D;(D=this.scrollController)==null||D.dispose();this.scrollController=void 0};
_.V.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"}}}};
_.V.dataChanged=function(){var D=this;_.$R(this,function(){if(D.scrollController){var v;(v=D.scrollController)==null||i0K(v,!1);var h,a,Q;(a=D.scrollController)==null||aqo(a,(Q=(h=D.data)==null?void 0:h.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key");var G,x,f;(f=D.scrollController)==null||$xY(f,{percentOffset:(G=D.data)==null?void 0:G.selectedItemAlignmentPercentOffset,floatingPillType:(x=D.data)==null?void 0:x.floatingPillType})}else{var C,U,L,Z;D.scrollController=
new as(D.contents,D.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(Z=(C=D.data)==null?void 0:C.syncModelEntityKey)!=null?Z:"default-macro-markers-list-renderer-entity-key",{percentOffset:(U=D.data)==null?void 0:U.selectedItemAlignmentPercentOffset,floatingPillType:(L=D.data)==null?void 0:L.floatingPillType},function(E){D.renderLazyListItems(E)})}D.scrollController.panelContentVisibleChanged(!!D.panelContentVisible)})};
_.V.computeButtonShape=function(){var D=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){D.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.V.renderLazyListItems=function(D){for(var v=this.contents.children,h=0,a=0;a<v.length;a++){var Q=void 0;(Q=v[a].ytLazyListBehavior)==null||Q.fillRemainingListItems();var G=void 0,x=void 0;Q=_.k((G=this.data)==null?void 0:(x=G.contents)==null?void 0:x[a],_.Tey);x=G=void 0;if((G=Q)==null?0:(x=G.contents)==null?0:x.length)h+=Q.contents.length;if(h>=D)break}};
_.V.handleSetActivePanelItemAction=function(D){if((D=_.k(D,WMd))&&this.panelTargetId===D.panelTargetId){D=D.itemIndex;var v,h,a=(h=(v=this.data)==null?void 0:v.syncModelEntityKey)!=null?h:"default-macro-markers-list-renderer-entity-key",Q;((Q=this.syncEntity)==null?void 0:Q.activeItemIndex)!==D&&this.ytdReduxBehavior.dispatch(_.Xe("markersEngagementPanelSyncEntity",a,{key:a,activeItemIndex:D}))}};
_.V.onSyncClick=function(){var D;(D=this.scrollController)==null||i0K(D)};
_.V.panelContentVisibleChanged=function(){var D;(D=this.scrollController)==null||D.panelContentVisibleChanged(!!this.panelContentVisible)};
$A.prototype.panelContentVisibleChanged=$A.prototype.panelContentVisibleChanged;$A.prototype.dataChanged=$A.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],$A.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],$A.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$A.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],$A.prototype,"useCustomColors",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],$A.prototype,"panelTargetId",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],$A.prototype,"panelContentVisible",void 0);
_.e([_.Br("#contents"),_.n("design:type",HTMLElement)],$A.prototype,"contents",void 0);_.e([_.Y({selectorArgs:["data.syncModelEntityKey"],selector:_.F5c}),_.n("design:type",Object)],$A.prototype,"syncEntity",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$A.prototype,"dataChanged",null);
_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$A.prototype,"panelContentVisibleChanged",null);_.e([_.m({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],$A);
_.w($A,"ytd-macro-markers-list-renderer",function(){if(KSf!==void 0)return KSf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return KSf=D},{mode:1});var Quw;var Qj=function(){return _.c.apply(this,arguments)||this};
_.J(Qj,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Qj.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Qj.prototype,"data",void 0);_.e([_.m({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Qj);
_.w(Qj,"ytd-error-corrections-section-item-renderer",function(){if(Quw!==void 0)return Quw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Quw=D},{mode:1});var GSQ;var G2=function(){return _.c.apply(this,arguments)||this};
_.J(G2,_.c);G2.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],G2.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],G2.prototype,"data",void 0);_.e([_.m({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],G2);
_.w(G2,"ytd-error-corrections-section-renderer",function(){if(GSQ!==void 0)return GSQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return GSQ=D},{mode:1});var VMH;var Vj=function(){return _.c.apply(this,arguments)||this};
_.J(Vj,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Vj.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Vj.prototype,"data",void 0);_.e([_.m({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Vj);
_.w(Vj,"ytd-topic-link-renderer",function(){if(VMH!==void 0)return VMH;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return VMH=D},{mode:1});var PWf;var Po=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("kevlar_modern_sd_v2");D.modernLockupV2=_.g("modernize_structured_description_playlist_lockups_v2");return D};
_.J(Po,_.c);Po.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Po.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Po.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Po.prototype,"modernLockupV2",void 0);
_.e([_.m({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Po);
_.w(Po,"ytd-video-description-course-section-renderer",function(){if(PWf!==void 0)return PWf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return PWf=D},{mode:1});var xxw;var xA=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("kevlar_modern_sd_v2");return D};
_.J(xA,_.c);xA.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xA.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xA.prototype,"modern",void 0);_.e([_.m({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],xA);
_.w(xA,"ytd-video-description-files-section-renderer",function(){if(xxw!==void 0)return xxw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return xxw=D},{mode:1});var MM0;var M7=function(){return _.c.apply(this,arguments)||this};
_.J(M7,_.c);M7.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],M7.prototype,"data",void 0);_.e([_.m({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],M7);
_.w(M7,"ytd-video-description-gaming-section-renderer",function(){if(MM0!==void 0)return MM0;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return MM0=D},{mode:1});var fqQ;var fi=function(){var D=_.c.apply(this,arguments)||this;D.isExpanded=!1;return D};
_.J(fi,_.c);fi.prototype.computeHasDefaultMetadataEndpoint=function(D){var v;D=D==null?void 0:(v=D.defaultMetadata)==null?void 0:v.runs;return!(!D||D.length!==1||!D[0].navigationEndpoint)};
fi.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.GT.Object.defineProperties(fi.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fi.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],fi.prototype,"isExpanded",void 0);_.e([_.Y({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],fi.prototype,"hasDefaultMetadataEndpoint",void 0);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fi.prototype,"isExpandable",null);_.e([_.N("data","isExpandable","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fi.prototype,"showExpandedMetadata",null);_.e([_.m({is:"ytd-info-row-renderer",disableElementRegistration:!0})],fi);
_.w(fi,"ytd-info-row-renderer",function(){if(fqQ!==void 0)return fqQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fqQ=D},{mode:1});var CW3;var Ci=function(){var D=_.c.apply(this,arguments)||this;D.currentIndex=0;D.supportComponentResize=!0;D.modern=_.g("kevlar_modern_sd_v2");D.JSC$22817_lastScrollContainerWidth=NaN;return D};
_.J(Ci,_.c);_.V=Ci.prototype;
_.V.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"}}}};
_.V.getItemsPath=function(){return"videoLockups"};
_.V.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.V.onIronResize=function(){this.updateVideoLockupStyles()};
_.V.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.V.updateVideoLockupStyles=function(){var D;this.JSC$22817_scrollContainer!==void 0&&(D=this.videoLockups)!=null&&D.length&&(D=this.JSC$22817_scrollContainer.clientWidth,D!==this.JSC$22817_lastScrollContainerWidth&&(this.JSC$22817_lastScrollContainerWidth=D,_.SB(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(D*.8,415)+"px"}),_.F1(this.hostElement,"iron-resize")))};
_.GT.Object.defineProperties(Ci.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var D=[],v;if((v=this.data)==null||!v.carouselLockups)return D;v=_.P(this.data.carouselLockups);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0;((a=_.k(h,ppM))==null?0:a.videoLockup)&&D.push(_.k(h,ppM).videoLockup)}return D}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoLockups)==null||!D.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var D=[],v;if((v=this.data)==null||!v.carouselLockups)return D;var h;return(h=_.k(this.data.carouselLockups[this.scrollCount],ppM))==null?void 0:h.infoRows}}});
Ci.prototype.dataChanged=Ci.prototype.dataChanged;Ci.prototype.onIronResize=Ci.prototype.onIronResize;Ci.prototype.hiddenChanged=Ci.prototype.hiddenChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ci.prototype,"componentBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],Ci.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ci.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ci.prototype,"inlineStructuredDescription",void 0);_.e([_.Y({value:2}),_.n("design:type",Number)],Ci.prototype,"initialCount",void 0);_.e([_.Y(),_.n("design:type",Object)],Ci.prototype,"currentIndex",void 0);
_.e([_.Y(),_.n("design:type",Number)],Ci.prototype,"scrollCount",void 0);_.e([_.Y(),_.n("design:type",Object)],Ci.prototype,"supportComponentResize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ci.prototype,"contentHidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ci.prototype,"modern",void 0);_.e([_.Br("#scroll-container"),_.n("design:type",HTMLDivElement)],Ci.prototype,"JSC$22817_scrollContainer",void 0);
_.e([_.Ni("contentHidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ci.prototype,"hiddenChanged",null);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Ci.prototype,"videoLockups",null);_.e([_.N("videoLockups"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ci.prototype,"hasVideoLockups",null);
_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ci.prototype,"onIronResize",null);_.e([_.N("data","scrollCount"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ci.prototype,"infoRows",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ci.prototype,"dataChanged",null);_.e([_.m({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Ci);
_.w(Ci,"ytd-video-description-music-section-renderer",function(){if(CW3!==void 0)return CW3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return CW3=D},{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var oHd;var F8=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("kevlar_modern_sd_v2");return D};
_.J(F8,_.c);F8.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.e([_.Y({}),_.n("design:type",Object)],F8.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],F8.prototype,"modern",void 0);_.e([_.m({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],F8);
_.w(F8,"ytd-video-description-transcript-section-renderer",function(){if(oHd!==void 0)return oHd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return oHd=D},{mode:1});var FtY;_.zh(_.H(function(D){var v=_.l7(_.a8L,function(){return D.data().firstProviderLinkStatusEntityKey}),h=_.l7(_.a8L,function(){return D.data().secondProviderLinkStatusEntityKey}),a=function(){var Q,G;
return((Q=v())==null?void 0:Q.linked)||((G=h())==null?void 0:G.linked)};
return _.F("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.F(_.IY,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return D.data().sectionTitle}}),_.F(_.IY,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return a()?D.data().connectedMessage:D.data().notConnectedMessage}}),_.F(_.z,{cond:a,
then:function(){return _.F(_.c4,{data:function(){return D.data().connectedButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.F(_.z,{cond:function(){return!a()},
then:function(){return _.F(_.c4,{data:function(){return D.data().notConnectedButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"jm"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;return _.F("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.F("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.F(_.IY,{text:function(){return v().sectionTitle}})),_.F("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.F(_.IY,{text:function(){return v().bodyHeader}})),_.F("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.F(_.IY,{text:function(){return v().bodyText}})),_.F(_.z,{cond:function(){return v().attributionText},
then:function(){return _.F("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.F(_.IY,{text:function(){return v().attributionText}}))}}))},"km"),"how-this-was-made-section-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){return _.F("yt-video-description-youchat-section-view-model",{class:_.S3("ytVideoDescriptionYouchatSectionViewModelHost")},_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.F(_.IY,{text:function(){return D.data().sectionTitle}})),_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.F(_.IY,{text:function(){return D.data().subHeaderText}})),_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.F(_.s$,{data:function(){return _.k(D.data().primaryButton,
_.fH)}})))},"lm"),"yt-video-description-youchat-section-view-model",{props:{data:_.gj}});var z2=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return D};
_.J(z2,_.c);_.V=z2.prototype;
_.V.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}}}}}};
_.V.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.V.dataChanged=function(){var D,v;this.hasDescriptionOnly=!(((D=this.data)==null?void 0:(v=D.items)==null?void 0:v.length)!==1||!_.k(this.data.items[0],er))};
_.V.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.V.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.V.autoFocusDescription=function(){var D;((D=_.xd().resolve(_.PV(_.Xw)))==null?0:D.isKeyBoardInUse())&&this.description&&_.hX(this.description)};
_.V.resize=function(){if(_.g("kevlar_disable_sd_resize"))this.JSC$22826_cardList&&_.F1(this.JSC$22826_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.F1(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.F1(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.V.scrollToSection=function(D){if(D=this.getSectionElement(D))_.zU(this.hostElement,"yt-scroll-to-watch-element",[D]),D.focus()};
_.V.getSectionElement=function(D){switch(D){case "infocards-item-section":var v;return(v=this.infocardsSection)!=null?v:null;case "transcript-item-section":var h;return(h=this.transcriptSection)!=null?h:null;case "how-this-was-made-section-item-section":var a;return(a=this.howThisWasMadeSection)!=null?a:null;case "files-item-section":var Q;return(Q=this.filesSection)!=null?Q:null;default:return null}};
_.V.handleSetActiveItemAction=function(D){var v=_.k(D,WMd),h=v&&(v==null?void 0:v.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22826_cardList;if(v&&h){D=this.currentActiveChapter;var a=this.currentActiveProblem;v=h==null?void 0:h.getItemByIndex(v.itemIndex);var Q=h=!0;v&&(v.active=!0,v.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(h=D!==v,Q=!1,this.currentActiveChapter=v):(v==null?void 0:v.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(h=!1,Q=a!==v,this.currentActiveProblem=v));D&&h&&(D.active=!1);a&&Q&&(a.active=!1)}};
_.GT.Object.defineProperties(z2.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.g("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
z2.prototype.onYtExpanderMoreTapped=z2.prototype.onYtExpanderMoreTapped;z2.prototype.onHiddenChanged=z2.prototype.onHiddenChanged;z2.prototype.dataChanged=z2.prototype.dataChanged;z2.prototype.panelContentVisibleChanged=z2.prototype.panelContentVisibleChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],z2.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],z2.prototype,"ironResizableBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],z2.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],z2.prototype,"panelContentVisible",void 0);_.e([_.Y(),_.n("design:type",Boolean)],z2.prototype,"hasDescriptionOnly",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],z2.prototype,"inlineStructuredDescription",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],z2.prototype,"hidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],z2.prototype,"shortsPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],z2.prototype,"videoSummary",void 0);_.e([_.Y(),_.n("design:type",Object)],z2.prototype,"merchShelf",void 0);
_.e([_.N("videoSummary"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z2.prototype,"showVideoSummary",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],z2.prototype,"engagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],z2.prototype,"watchWhileSdp",void 0);_.e([_.Br("ytd-expandable-video-description-body-renderer"),_.n("design:type",Object)],z2.prototype,"description",void 0);
_.e([_.Br("ytd-horizontal-card-list-renderer"),_.n("design:type",Object)],z2.prototype,"JSC$22826_cardList",void 0);_.e([_.Br("ytd-horizontal-card-list-renderer[center-items]"),_.n("design:type",Object)],z2.prototype,"problemWalkthroughCardList",void 0);_.e([_.Br("ytd-shelf-renderer"),_.n("design:type",Object)],z2.prototype,"shelfSection",void 0);_.e([_.Br("ytd-video-description-music-section-renderer"),_.n("design:type",Object)],z2.prototype,"musicMetadataSection",void 0);
_.e([_.Br("ytd-video-description-infocards-section-renderer"),_.n("design:type",Object)],z2.prototype,"infocardsSection",void 0);_.e([_.Br("ytd-video-description-transcript-section-renderer"),_.n("design:type",Object)],z2.prototype,"transcriptSection",void 0);_.e([_.Br("how-this-was-made-section-view-model"),_.n("design:type",Object)],z2.prototype,"howThisWasMadeSection",void 0);_.e([_.Br("ytd-video-description-files-section-renderer"),_.n("design:type",Object)],z2.prototype,"filesSection",void 0);
_.e([_.Ni("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z2.prototype,"panelContentVisibleChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z2.prototype,"dataChanged",null);_.e([_.Ni("hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z2.prototype,"onHiddenChanged",null);
_.e([_.lc("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z2.prototype,"onYtExpanderMoreTapped",null);_.e([_.m({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],z2);
_.w(z2,"ytd-structured-description-content-renderer",function(){if(FtY!==void 0)return FtY;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return FtY=D},{mode:2});var zrY;var Uxw;var Ug=function(){return _.c.apply(this,arguments)||this};
_.J(Ug,_.c);Ug.prototype.computeAriaLabel=function(D){var v,h;return(D==null?void 0:(v=D.accessibility)==null?void 0:(h=v.accessibilityData)==null?void 0:h.label)||_.p1("LOADING",void 0,"Loading")};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ug.prototype,"data",void 0);_.e([_.Y({computed:"computeAriaLabel(data)"}),_.n("design:type",String)],Ug.prototype,"ariaLabel",void 0);_.e([_.Ry({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Ug);
_.w(Ug,"yt-content-loading-renderer",function(){if(Uxw===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;zrY===void 0&&(zrY=document.createElement("template"));var a=zrY;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Uxw=D}D=Uxw;return D},{mode:_.E_("kevlar_poly_si_batch_j043")?1:2});_.zh(_.H(function(D){var v=_.P(_.Zq(!1,void 0,"OZMtVb")),h=v.next().value,a=v.next().value;v=_.P(_.Zq(!1,void 0,"qWERsf"));var Q=v.next().value,G=v.next().value;_.jA(function(){var C=_.k(D.data().collaboratePlaylistCollaborationSetting,zJK);C&&a(C.switchedOnByDefault);var U=_.k(D.data().allowNewCollaboratorsPlaylistCollaborationSetting,zJK);U&&G(U.switchedOnByDefault);if(!C&&!U||!C&&D.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")a(!0),G(!0)});
var x=function(C){a(C);G(C);var U=D.data().playlistCollaborationEntityKey||"";var L=_.P8().getState();(L=_.gR(L.entities,"playlistCollaborationEntity",U))&&(L==null?void 0:L.isCollaborative)===C||_.P8().dispatch(_.Xe("playlistCollaborationEntity",U,Object.assign({},L,{isCollaborative:C})))},f=function(C){G(C)};
return _.F("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.F("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.F(_.c4,{data:function(){return D.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(C){return _.F(_.oT$,{data:C.data,
onSwitch:x})}})),_.F(_.z,{cond:h,
then:function(){return _.F(_.xf,null,_.F("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.F(_.c4,{data:function(){return D.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(C){return _.F(_.oT$,{data:C.data,
onSwitch:f,overrideDisabled:!1})}})),_.F(_.z,{cond:Q,
then:function(){return _.F("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.F(_.c4,{data:function(){return D.data().copyLinkButton}},{buttonViewModel:_.s$}))}}),_.F("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.F(_.c4,{data:function(){return D.data().playlistCollaborators}},{contentListItemViewModel:_.DZU})))}}))},"mm"),"playlist-collaboration-view-model",{props:{data:_.gj}});var LtQ=_.H(function(D){var v=D.data;var h=D.customCommandResolver;return _.F(_.xf,null,_.F("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.F(_.c4,{data:function(){return v().adAvatar}},{adAvatarViewModel:function(a){return _.F(_.mRJ,{data:a.data,
customCommandResolver:h})}})),_.F("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.F(_.z,{cond:function(){return v().headline},
then:function(a){return _.F(_.IY,{text:a,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.F("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.F(_.c4,{data:function(){return v().adBadge}},{adBadgeViewModel:function(a){return _.F(_.bF,{data:a.data,
hasDot:function(){return v().primaryDetailsLine!==void 0},
customCommandResolver:h,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.F(_.c4,{data:function(){return v().primaryDetailsLine}},{adDetailsLineViewModel:function(a){return _.F(_.dz,{data:a.data,
customCommandResolver:h,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"nm"),ZV3=_.H(function(D){var v=D.data;
var h=D.customCommandResolver;return _.F("ad-avatar-lockup-view-model",{class:function(){var a;return((a=v().interaction)==null?0:a.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.ML(_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk}),_.Tf(function(){return v().interaction},h)),
"aria-label":function(){var a,Q;return(a=v().interaction)==null?void 0:(Q=a.accessibility)==null?void 0:Q.label}},_.F(_.A$,null,_.F(_.Bv,{when:function(){return v().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.F(LtQ,{data:v,
customCommandResolver:h})}),_.F(_.cv,null,function(){return null})))},"om");_.zh(_.H(function(D){var v=D.data;var h=D.panelContentVisibility;D=_.Mb({visibilityCallback:function(G){var x,f=(x=v().interaction)==null?void 0:x.onFirstVisible;G&&f&&_.r4(f)},
showOption:_.Nk});var a=_.Tf(function(){return v().interaction},QmB);
_.mt(function(){var G,x;if(x=_.T3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;x=(f=x())==null?void 0:f.onLayoutVisibleCallback}else x=null;(G=x)==null||G()},"pm");
var Q=function(){return h()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.F("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.ML(D,a)},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.F(_.z,{cond:_.Kx2("(min-width: "+((0,_.Ux)()+_.OJ)+"px) or (max-width: 600px)"),then:function(){return _.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(G){return _.F(_.el,{data:G.data,
targetHeight:80,customCommandResolver:QmB})}})}})),_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.F(_.c4,{data:function(){return v().adAvatarLockup}},{adAvatarLockupViewModel:function(G){return _.F(ZV3,{data:G.data,
customCommandResolver:QmB})}})),_.F(_.z,{cond:Q,
then:function(){return _.F(_.c4,{data:function(){return v().adButton}},{adButtonViewModel:function(G){return _.F(_.B$,{data:G.data,
customCommandResolver:QmB})}})},
else:function(){return _.F(_.c4,{data:function(){return v().menu}},{buttonViewModel:_.s$})}}),_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.F(_.c4,{data:function(){var G=_.k(v().toggleButton,_.oA);
return{toggleButtonViewModel:Object.assign({},G,{isTogglingDisabled:!0,isToggled:Q()})}}},{toggleButtonViewModel:_.$$})))))},"qm"),"panel-ad-header-image-lockup-view-model",{props:{data:_.gj,
panelContentVisibility:_.gj}});_.zh(_.H(function(D){var v=function(){return _.k(D.data().inputComposerViewModel,USY)},h=_.Th(_.W4.currentPageSubTypeSelector),a=_.P(_.Zq(!1,void 0,"tZvFae")),Q=a.next().value,G=a.next().value;
a=_.P(_.Zq(!1,void 0,"yUp6Be"));var x=a.next().value,f=a.next().value,C=function(){if(!x()){var xL;(xL=_.gp())==null||xL.removeCueRange("aic-proactive");G(!1);f(!0);xL={continuationCommand:{token:v().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var kL={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:vA()}};_.iP(xL,{form:{formData:kL}})}},U=function(){var xL=_.gp();
if(xL&&!Q()&&!x()){var kL=xL.getDuration();kL>60&&(xL.addCueRange("aic-proactive",kL-60,kL-20),G(!0))}},L=function(){var xL;
return((xL=v())==null?void 0:xL.youchatPendingResponseEntityKey)||""},Z=_.l7(_.JZr,L),E=function(){var xL;
return!((xL=Z())==null||!xL.isPendingResponse)};
a=_.P(_.Zq(!0,void 0,"Uj99ef"));var I=a.next().value,S=a.next().value,B=function(){return v().sectionTargetId||"youchat_messages_section"};
a=_.$X("yt-chat-input-view-model");var A=_.va("textarea"),d=_.l7(TrQ,"chat_input_view_model_state"),b=RZY(),W=function(){var xL;return!((xL=d())==null||!xL.value)},K=function(){return D.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},O=function(xL){_.LV(function(){_.Ye.remove(xL);
b(!1);if(K()){var kL;(kL=_.gp())==null||kL.removeCueRange("aic-proactive");G(!1);f(!1)}var Z4;if(K()&&((Z4=v())==null?0:Z4.welcomeFeatureContinuation)){var S2;((S2=v())==null?0:S2.setPendingResponseOnWelcome)&&_.p6Z(L())(!0);kL={continuationCommand:{token:v().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};Z4={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:vA()}};_.iP(kL,{form:{formData:Z4}})}})},R=function(){var xL=_.gp();
xL&&(xL.addEventListener("onStateChange",U),xL.addEventListener("onCueRangeEnter",C))},vA=function(){if(_.g("enable_ai_companion")){var xL=_.xd().resolve(_.PV(_.y3r));
switch(h()){case "watch":var kL,Z4;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(kL=_.gp())==null?void 0:(Z4=kL.getVideoData())==null?void 0:Z4.video_id};case "search":var S2,s8;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(S2=xL==null?void 0:mfM())!=null?S2:[],entityId:(s8=(new URLSearchParams(window.location.search)).get("search_query"))!=null?s8:void 0};case "companion-canvas":var Xf;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(Xf=xL==null?void 0:mfM())!=null?Xf:[]}}}};
_.jA(function(){var xL;if(!W()&&((xL=v())==null?0:xL.welcomeFeatureContinuation)){var kL;((kL=v())==null?0:kL.setPendingResponseOnWelcome)&&_.p6Z(L())(!0);xL={continuationCommand:{token:v().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var Z4;kL=String(Math.floor(((Z4=_.gp())==null?void 0:Z4.getCurrentTime())||0)*1E3);Z4={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:kL}};_.iP(xL,{form:{formData:Z4}});b(!0)}var S2=B(),s8=_.xd().resolve(_.PV(_.WC)),
Xf=function(){_.g("enable_ai_companion")?O(S2):(_.Ye.remove(S2),b(!1))},dJ=function(){_.LV(function(){return K()&&h()==="watch"})&&R()};
Z4=_.g("enable_ai_companion")?!K():!0;s8==null||s8.addEventListener("yt-navigate-start",Xf,{once:Z4});s8==null||s8.addEventListener("yt-navigate-finish",dJ,{once:Z4});_.dq(function(){s8==null||s8.removeEventListener("yt-navigate-start",Xf);s8==null||s8.removeEventListener("yt-navigate-finish",dJ);var R4=_.gp();R4&&(R4.removeEventListener("onCueRangeEnter",C),R4.removeEventListener("onStateChange",U),R4.removeCueRange("aic-proactive"))})});
var f7=function(){var xL=A.value.value;A.value.value="";GKz(A.value);var kL,Z4=((kL=v())==null?void 0:kL.enableGradientColorBg)||!1;kL=VRw(B(),xL,Z4);_.iP(kL);var S2=_.p6Z(L()),s8;_.r4(((s8=v())==null?void 0:s8.onSubmitCommand)||{});S2(!0);var Xf;s8=String(Math.floor(((Xf=_.gp())==null?void 0:Xf.getCurrentTime())||0)*1E3);var dJ;Xf={continuationCommand:{token:(dJ=v())==null?void 0:dJ.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};xL={inputComposerFormData:{clientMessageId:"youchat-"+
Date.now(),userInputText:xL,playerOffsetMs:s8,pageContext:vA()}};_.iP(Xf,{form:{formData:xL},commandController:{onSuccess:function(){S2(!1)},
onServerError:function(){var R4=B();_.iP({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:R4}}]}}});S2(!1)}}})};
return _.F("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:a},_.F("div",{class:"chatInputViewModelChatInputWrapper"},_.F("form",{class:"chatInputViewModelChatInputForm"},_.F("textarea",{class:"chatInputViewModelChatInput",el:A,"on:keydown":_.Jd(function(xL){var kL=E()||!1;GKz(A.value);kL||xL.key!=="Enter"||xL.shiftKey||(xL.preventDefault(),f7());return!1}),
"on:keyup":_.Jd(function(){S(A.value.value.length===0);return!1}),
placeholder:function(){var xL,kL;var Z4=_.k((kL=v())==null?void 0:kL.inputFormField,T0R);return Z4==null?void 0:(xL=Z4.contentProperties)==null?void 0:xL.placeholderText},
rows:1}),_.F(_.s$,{data:function(){return _.k(D.data().sendButton,_.fH)},
onClick:function(xL){xL.preventDefault();f7();S(A.value.value.length===0)},
buttonOverrides:function(){return{disabled:I()||E()}}})),_.F(_.IY,{className:"chatInputViewModelChatDisclaimer",
text:function(){var xL;return(xL=_.k(D.data().disclaimer,_.R$4))==null?void 0:xL.text}})))},"rm"),"yt-chat-input-view-model",{props:{data:_.gj}});var EHY=["engagement-panel-clip-create","engagement-panel-clip-view"],Iqw=0,Li=function(){var D=_.c.apply(this,arguments)||this;var v;D.headerData=(v=D.data)==null?void 0:v.header;D.darkerPanels=_.g("web_watch_darker_panels");D.matchContentTheme=_.g("web_watch_panel_content_match_theme");D.disableAutoFill=!1;D.isFullscreen=!1;D.isTheaterMode=!1;D.modernPanels=_.g("kevlar_watch_modern_panels");D.liveChatReplyPanel=!1;D.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");D.disableBackdropFilter=
_.g("web_disable_backdrop_filter");D.isPersistentPanel=!1;D.trackEngagementPanelVisibility=_.g("web_watch_track_engagement_panel_visibility");D.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return D};
_.J(Li,_.c);_.V=Li.prototype;
_.V.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(D){var v;return(D==null?void 0:(v=D.webComponentHint)==null?void 0:v.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"}}}};
_.V.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var D;if((D=this.hostElement.parentElement)==null?0:D.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.V.detached=function(){this.updateTheaterDisablement()};
_.V.showPanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.HK.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.V.maybeScrollToItemSection=function(D){var v=this,h,a=D==null?void 0:(h=D.sectionListEngagementPanelExtras)==null?void 0:h.scrollToItemSectionIdentifier;a&&_.HK.addJob(function(){var Q;(Q=v.sectionListRendererElement)==null||Q.scrollToItemSection(a)},8)};
_.V.hidePanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.HK.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.V.updatePanel=function(D,v,h,a){var Q=this;if((D=D==null?void 0:D.engagementPanelSectionListRenderer)||a){if(D){a=D.header;var G=D.content,x=D.footer;(D=D.targetId)&&this.set("data.targetId",D);a&&this.set("data.header",a);G&&this.set("data.content",G);x&&this.set("data.footer",x)}else a&&(D=a.content,G=a.secondaryHeaderContent,(a=a.targetId)&&this.set("data.targetId",a),D&&this.set("data.content",D),G&&(this.secondaryHeaderData=G));this.updateChildVisibilityProperties();if(v){var f;_.g("kevlar_update_panel_focus_scroll_killswitch")||
(f={preventScroll:!0});this.focus(f)}_.$R(this,function(){_.F1(Q.hostElement,"yt-refit");Q.maybeScrollToItemSection(h)})}};
_.V.computeHeaderData=function(){var D,v=(0,_.sV.unsafeClone)((D=this.data)==null?void 0:D.header);if(v){D=new _.z0(Object.keys(v)[0]);var h=_.k(v,D),a=_.k(this.secondaryHeaderData,D);a&&_.eQ(v,D,Object.assign({},a,h))}return v};
_.V.getReloadContinuation=function(){var D,v,h,a=_.P(((D=this.data)==null?void 0:(v=D.content)==null?void 0:(h=v.sectionListRenderer)==null?void 0:h.continuations)||[]);for(D=a.next();!D.done;D=a.next())if(D=D.value,D.reloadContinuationData)return D.reloadContinuationData.continuation};
_.V.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var D;((D=this.data)==null?0:D.targetId)&&(D=this.contentElement.firstElementChild)&&D.setAttribute("panel-target-id",this.data.targetId)};
_.V.forwardPopupClosedToFlowRootRenderer=function(){var D=_.ZW(this.hostElement).querySelector("ytd-flow-root-renderer");if(D)D.onPopupClosed()};
_.V.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var D;if(!EHY.includes((D=this.theaterDisablementPanelIdentifier)!=null?D:""))if(D=_.g("web_watch_imax_theater_mode")&&this.isTheaterMode,D=_.g("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D,_.g("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||D){var v;this.visibility=(v=this.data)==null?void 0:v.visibility;var h;this.trackEngagementPanelVisibility&&((h=this.data)==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var a,Q,G,x;this.contentEmpty=!!(((a=this.data)==null?0:(Q=a.content)==null?0:Q.structuredDescriptionContentRenderer)&&Object.keys((G=this.data)==null?void 0:(x=G.content)==null?void 0:
x.structuredDescriptionContentRenderer).length===0);(v=_.xd().resolve(_.De))&&v.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.V.isTheaterModeChanged=function(){_.g("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.isFullscreenChanged=function(){_.g("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.focus=function(D){if(this.header)this.header.focus(D);else{var v;(v=_.ZW(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||v.focus(D)}};
_.V.visibilityChanged=function(){if(!_.g("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var D=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",v=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",a=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=a||!this.lastVisibility,G,x,f,C=((G=this.data)==null?void 0:(x=G.identifier)==null?void 0:
x.tag)||((f=this.data)==null?void 0:f.panelIdentifier);if(D&&Q){var U;((U=this.data)==null?0:U.onShowCommands)&&_.ZD(this.hostElement,this.data.onShowCommands,this.hostElement);C&&_.Gb().dispatch(_.oG({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:C}}))}else if(v&&h){var L;((L=this.data)==null?0:L.onHideCommands)&&_.ZD(this.hostElement,this.data.onHideCommands,this.hostElement);C&&_.Gb().dispatch(_.oG({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:C}}))}D&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*Iqw++));_.g("kevlar_watch_focus_on_engagement_panels")&&D&&a&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.V.notifyVisibilityChanged=function(D){var v;_.U9(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,D,(v=this.data)==null?void 0:v.targetId])};
_.V.updateTheaterDisablement=function(){if(!_.g("kevlar_watch_theater_disablement_killswitch")){var D=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&EHY.includes(D)&&!_.g("watch_next_grid_ignore_disallowed_panels")){var v=_.n_(_.Gb().getState()),h=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";D!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():h?(this.originalTheaterState===void 0&&(this.originalTheaterState=v,this.theaterDisablementPanelIdentifier=
D),v&&_.zU(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.V.clearTheaterDisablement=function(){_.zU(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.V.updateChildVisibilityProperties=function(){this.hostElement||_.g("kevlar_panel_property_init_killswitch")||this._enableProperties();var D=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=D);var v,h=(v=this.headerElement)==null?void 0:v.firstElementChild;if(h&&!this.adHeaderImageLockupViewModel){v=D==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";h.collapsed=v;h=_.ZW(h).querySelector("#visibility-button");if(!h)return;(h=h.firstElementChild)&&
h.polymerController.is==="ytd-toggle-button-renderer"&&h.polymerController.data.isToggled!==v&&h.polymerController.set("data.isToggled",v)}var a;if(v=(a=this.contentElement)==null?void 0:a.firstElementChild)if(D&&D!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")v.removeAttribute("panel-content-visible");else{v.setAttribute("panel-content-visible","");var Q;(Q=v.markDirty)==null||Q.call(v)}};
_.V.onYtChangeEngagementPanelVisibilityAction=function(D){var v=this,h,a=(h=this.data)==null?void 0:h.targetId,Q,G,x;h=((Q=this.data)==null?void 0:(G=Q.identifier)==null?void 0:G.tag)||((x=this.data)==null?void 0:x.panelIdentifier);var f=_.k(D,_.SGJ),C;D=a&&(f==null?void 0:f.targetId)===a||h&&(f==null?void 0:(C=f.panelIdentifier)==null?void 0:C.tag)===h;this.dialog&&D&&(f==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(a==="engagement-panel-comments-section"?_.zU(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.zU(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",h]));!_.g("kevlar_use_engagement_panel_management_component")&&D&&(a=f.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!a?_.HK.addJob(function(){v.visibility=f.visibility},2,this.hideDelayMs):this.visibility=f.visibility,f.visibility&&this.notifyVisibilityChanged(f.visibility))};
_.V.onYtScrollToEngagementPanelCommand=function(D){var v,h=(v=this.data)==null?void 0:v.targetId,a,Q,G;v=((a=this.data)==null?void 0:(Q=a.identifier)==null?void 0:Q.tag)||((G=this.data)==null?void 0:G.panelIdentifier);D=_.k(D,_.dC4);var x;(h&&(D==null?void 0:D.targetId)===h||v&&(D==null?void 0:(x=D.panelIdentifier)==null?void 0:x.tag)===v)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.zU(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.V.attachVEs=function(D){var v,h;(D==null?0:(v=D.content)==null?0:(h=v.productListRenderer)==null?0:h.trackingParams)&&_.c8().graftServerVe(D.content.productListRenderer.trackingParams);var a,Q;(D==null?0:(a=D.content)==null?0:(Q=a.transcriptRenderer)==null?0:Q.trackingParams)&&_.c8().graftServerVe(D.content.transcriptRenderer.trackingParams)};
_.V.onYtUpdateEngagementPanelAction=function(D){var v,h=(v=this.data)==null?void 0:v.targetId;D=_.k(D,r3d);h&&(D==null?void 0:D.targetId)===h&&(this.updatePanel({engagementPanelSectionListRenderer:{header:D==null?void 0:D.header,content:D==null?void 0:D.content}},!1),this.attachVEs(D))};
_.V.onYtShowEngagementPanelScrimAction=function(D){var v,h=(v=this.data)==null?void 0:v.targetId;D=_.k(D,tRK);h&&(D==null?void 0:D.engagementPanelTargetId)===h&&(this.scrimmed=!0)};
_.V.onYtHideEngagementPanelScrimAction=function(D){var v,h=(v=this.data)==null?void 0:v.targetId;D=_.k(D,izM);h&&(D==null?void 0:D.engagementPanelTargetId)===h&&(this.scrimmed=!1)};
_.V.getIdentifier=function(){var D,v,h;return((D=this.data)==null?void 0:D.panelIdentifier)||((v=this.data)==null?void 0:(h=v.identifier)==null?void 0:h.tag)};
_.V.getSurface=function(){var D,v;return(D=this.data)==null?void 0:(v=D.identifier)==null?void 0:v.surface};
_.GT.Object.defineProperties(Li.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var D=this.getIdentifier();return D==="engagement-panel-youchat"||D==="PAyouchat"}}});
Li.prototype.visibilityChanged=Li.prototype.visibilityChanged;Li.prototype.isFullscreenChanged=Li.prototype.isFullscreenChanged;Li.prototype.isTheaterModeChanged=Li.prototype.isTheaterModeChanged;Li.prototype.dataChanged=Li.prototype.dataChanged;Li.prototype.forwardPopupClosedToFlowRootRenderer=Li.prototype.forwardPopupClosedToFlowRootRenderer;Li.prototype.onYtRendererstamperFinished=Li.prototype.onYtRendererstamperFinished;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Li.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Li.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],Li.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"data",void 0);
_.e([_.Y({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.n("design:type",Object)],Li.prototype,"headerData",void 0);_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"secondaryHeaderData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"visibility",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"contentEmpty",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"scrimmed",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"dialog",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"dropdown",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"darkerPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"matchContentTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"disableAutoFill",void 0);
_.e([_.Y({reflectToAttribute:!0,value:_.g("optimal_reading_width_comments_ep")}),_.n("design:type",Boolean)],Li.prototype,"optimalReadingWidthComments",void 0);_.e([_.Y(),_.n("design:type",Number)],Li.prototype,"hideDelayMs",void 0);_.e([_.Y({selector:_.OA,reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"isFullscreen",void 0);_.e([_.Y({selector:_.n_,reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"isTheaterMode",void 0);
_.e([_.Y(),_.n("design:type",Number)],Li.prototype,"showDelayMs",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.targetId"),_.n("design:type",Object),_.n("design:paramtypes",[])],Li.prototype,"targetId",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Li.prototype,"webSize",null);_.e([_.Y(),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Li.prototype,"hideFooterBorder",null);
_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"isWatch",void 0);_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"originalTheaterState",void 0);_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"theaterDisablementPanelIdentifier",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"modernPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"isWatchWhilePanel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"shortsPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"liveChatEngagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Li.prototype,"learningChatEngagementPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"liveChatReplyPanel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"enableAnchoredPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"disableBackdropFilter",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Li.prototype,"isPersistentPanel",void 0);_.e([_.Y(),_.n("design:type",Object)],Li.prototype,"trackEngagementPanelVisibility",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],Li.prototype,"headerElement",void 0);
_.e([_.Br("#header > *"),_.n("design:type",HTMLElement)],Li.prototype,"header",void 0);_.e([_.Br("ytd-section-list-renderer"),_.n("design:type",Object)],Li.prototype,"sectionListRendererElement",void 0);_.e([_.Br("panel-ad-header-image-lockup-view-model"),_.n("design:type",HTMLElement)],Li.prototype,"adHeaderImageLockupViewModel",void 0);_.e([_.Br("#content"),_.n("design:type",HTMLElement)],Li.prototype,"contentElement",void 0);
_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Li.prototype,"onYtRendererstamperFinished",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Li.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.e([_.qi("data","isFullscreen","isTheaterMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Li.prototype,"dataChanged",null);
_.e([_.Ni("isTheaterMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Li.prototype,"isTheaterModeChanged",null);_.e([_.Ni("isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Li.prototype,"isFullscreenChanged",null);_.e([_.Ni("visibility"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Li.prototype,"visibilityChanged",null);
_.e([_.m({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Li);
_.w(Li,"ytd-engagement-panel-section-list-renderer",function(){if(yNR!==void 0)return yNR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yNR=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var gHz;var Z9=function(){var D=_.c.apply(this,arguments)||this;D.lastRenderedPanelIds=new Set;D.visiblePanels=[];D.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.J(Z9,_.c);_.V=Z9.prototype;_.V.dataChanged=function(){if(this.data){for(var D=[],v=_.P(this.data),h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0,Q=void 0,G=(a=h)==null?void 0:(Q=a.engagementPanelSectionListRenderer)==null?void 0:Q.visibility;Q=a=void 0;((a=h)==null?0:(Q=a.engagementPanelSectionListRenderer)==null?0:Q.targetId)&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&D.push(h)}this.visiblePanels=D}else this.visiblePanels=[]};
_.V.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}}};
_.V.withoutVisiblePanelById=function(D){return this.visiblePanels.filter(function(v){var h;return((h=v.engagementPanelSectionListRenderer)==null?void 0:h.targetId)!==D})};
_.V.onYtChangeEngagementPanelVisibilityAction=function(D){var v=this,h=_.k(D,_.SGJ);if(this.data&&(h==null?0:h.targetId)&&(h==null?0:h.visibility)){var a,Q=(a=this.data.find(function(x){var f;return((f=x.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===h.targetId}))==null?void 0:a.engagementPanelSectionListRenderer;
if(Q){var G=this.withoutVisiblePanelById(h.targetId);h.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(D=this.data.find(function(x){var f;return((f=x.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===h.targetId}))&&(G=[D].concat(_.j_(G)));
this.hideDelayMs&&h.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.length===0?_.HK.addJob(function(){Q.visibility=h.visibility;v.visiblePanels=G},10,this.hideDelayMs):(Q.visibility=h.visibility,this.visiblePanels=G);
_.U9(this.hostElement,"yt-engagement-panels-visible-changed",[G])}}};
_.V.onRendererstamperFinished=function(){var D=new Set(this.visiblePanels.map(function(v){var h;return(h=v.engagementPanelSectionListRenderer)==null?void 0:h.targetId}));
this.handlePanelVisibilityChange(D,this.lastRenderedPanelIds);this.lastRenderedPanelIds=D};
_.V.handlePanelVisibilityChange=function(D,v){D=D===void 0?new Set:D;v=v===void 0?new Set:v;if(this.data)for(var h=_.P(this.data),a=h.next();!a.done;a=h.next()){a=a.value;var Q=void 0,G=void 0,x=(Q=a)==null?void 0:(G=Q.engagementPanelSectionListRenderer)==null?void 0:G.targetId;if(x&&(Q=v.has(x),G=D.has(x),x=void 0,!Q&&G?(G=Q=void 0,x=(Q=a)==null?void 0:(G=Q.engagementPanelSectionListRenderer)==null?void 0:G.onShowCommands):Q&&!G&&(G=Q=void 0,x=(Q=a)==null?void 0:(G=Q.engagementPanelSectionListRenderer)==
null?void 0:G.onHideCommands),x))for(a=_.P(x),x=a.next();!x.done;x=a.next())this.ytComponentBehavior.resolveCommand(x.value)}};
Z9.prototype.onRendererstamperFinished=Z9.prototype.onRendererstamperFinished;Z9.prototype.dataChanged=Z9.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Z9.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Z9.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Z9.prototype,"lastRenderedPanelIds",void 0);_.e([_.Y(),_.n("design:type",Number)],Z9.prototype,"hideDelayMs",void 0);_.e([_.Y(),_.n("design:type",Array)],Z9.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Array)],Z9.prototype,"visiblePanels",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Z9.prototype,"isWatchWhilePanel",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z9.prototype,"dataChanged",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z9.prototype,"onRendererstamperFinished",null);_.e([_.m({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Z9);
_.w(Z9,"ytd-watch-engagement-panels",function(){if(gHz!==void 0)return gHz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return gHz=D},{mode:1});var kSw;var Eg=function(){return _.c.apply(this,arguments)||this};
_.J(Eg,_.c);Eg.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.VM(_.ZW(this.hostElement).querySelector("#text"),_.PSp(_.fbF,this.data.companionLegalText))};
Eg.prototype.computeAutoScrollEnabled=function(D,v){return D&&!v};
Eg.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Eg.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Eg.prototype.expandedChanged=Eg.prototype.expandedChanged;Eg.prototype.dataChanged=Eg.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Hud),_.n("design:type",Object)],Eg.prototype,"ytdAutoScrollBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Eg.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Eg.prototype,"expanded",void 0);
_.e([_.Y({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.n("design:type",Boolean)],Eg.prototype,"autoScrollEnabled",void 0);_.e([_.Y(),_.n("design:type",String)],Eg.prototype,"expanderIcon",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Eg.prototype,"dataChanged",null);
_.e([_.Ni("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Eg.prototype,"expandedChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Eg);
_.w(Eg,"ytd-companion-legal-text-renderer",function(){if(kSw!==void 0)return kSw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kSw=D},{mode:1});var SYQ;var Is=function(){var D=_.c.apply(this,arguments)||this;D.buttonUpdate=_.g("web_modern_buttons");D.kevlarWatchGrid=_.g("kevlar_watch_grid");D.centerAlignDescription=_.g("action_companion_center_align_description");D.truncateDomain=_.g("action_companion_truncate_domain");D.enableMonoStyle=_.g("enable_default_mono_cta_migration_web_client");return D};
_.J(Is,_.c);_.V=Is.prototype;_.V.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.V.getOnLayoutVisibleCallback=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.V.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Is.JSC$22876_DEFAULT_AD_BADGE_RENDERER);var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.V.getButtonRenderer=function(D){return D.actionButton&&_.k(D.actionButton,_.Vi)?(delete _.k(D.actionButton,_.Vi).navigationEndpoint,_.k(D.actionButton,_.Vi)):{}};
_.V.onClick=function(D){var v=this;if((!_.g("web_modern_buttons")||!_.Gf(_.Pr(D),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){D=_.Mq();var h=this.getLayoutId();D&&h&&_.g("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(a){(new _.Dh(a)).executeCommand(v.data.navigationEndpoint,h)}):_.g("kevlar_companion_resolve_command_killswitch")?_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.zU(this.hostElement,"yt-companion-ad-clicked",["action-companion",h])}};
_.GT.Object.defineProperties(Is.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?0:(v=D.detailsLine)==null?0:(h=v.adRating)==null?0:h.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return((D=this.data)==null?0:(v=D.detailsLine)==null?0:(h=v.adRating)==null?0:(a=h.ratingIcon)==null?0:a.iconType)?_.SQ(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return((D=this.data)==null?0:(v=D.detailsLine)==null?0:(h=v.texts)==null?0:(a=h[0])==null?0:a.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?0:(v=D.description)==null?0:v.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var D=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return D?D.indexOf("/default_banner")!==-1:!0}}});
Is.prototype.onClick=Is.prototype.onClick;Is.prototype.dataChanged=Is.prototype.dataChanged;Is.JSC$22876_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p1("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Is.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Is.prototype,"rendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Is.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Is.prototype,"buttonUpdate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Is.prototype,"kevlarWatchGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Is.prototype,"centerAlignDescription",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Is.prototype,"truncateDomain",void 0);
_.e([_.Y({computed:"computeButtonOverride(buttonUpdate)"}),_.n("design:type",Object)],Is.prototype,"buttonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Is.prototype,"enableMonoStyle",void 0);_.e([_.N("data.detailsLine.adRating.ratingText"),_.n("design:type",Object),_.n("design:paramtypes",[])],Is.prototype,"getRating",null);_.e([_.N("getRating"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Is.prototype,"computeRatingHidden",null);
_.e([_.N("data.detailsLine.adRating.ratingIcon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],Is.prototype,"iconType",null);_.e([_.N("data.detailsLine.texts.0.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],Is.prototype,"getDetailsLine",null);_.e([_.N("getDetailsLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Is.prototype,"computeDetailsLineHidden",null);
_.e([_.N("data.description.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],Is.prototype,"getDescriptionText",null);_.e([_.N("getDescriptionText"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Is.prototype,"computeDescriptionTextHidden",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Is.prototype,"interactionLoggingClientData",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Is.prototype,"hideBanner",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Is.prototype,"dataChanged",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Is.prototype,"onClick",null);_.e([_.m({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Is);
_.w(Is,"ytd-action-companion-ad-renderer",function(){if(SYQ!==void 0)return SYQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return SYQ=D},{mode:_.E_("kevlar_poly_si_batch_j067")?1:2});var Jh0;var plf;var gA=function(){var D=_.c.apply(this,arguments)||this;D.buttonUpdate=_.g("web_modern_buttons");D.hideLegacyBanner=_.g("enable_dsa_one_click_ata_translators_infeed_elements");D.adInfoButtonStyle="mono";D.adInfoButtonType="text";D.noDotAdBadge=!0;return D};
_.J(gA,_.c);_.V=gA.prototype;_.V.getOnLayoutVisibleCallback=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.V.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var D=this.data.image.thumbnail.thumbnails[0];this.imageSrc=D.url?_.nz(D.url):void 0;this.imageWidth=D.width||0;this.imageHeight=D.height||0}this.data.clickthroughEndpoint&&_.k(this.data.clickthroughEndpoint,_.RB)&&(D=_.k(this.data.clickthroughEndpoint,_.RB).url,_.g("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
D||"":D?(D=_.nz(D),this.clickThroughUrl=_.mM(D)):this.clickThroughUrl=void 0);(D=this.getOnLayoutVisibleCallback())&&D()}};
_.V.onClick=function(D){_.Gf(_.Pr(D),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(D)};
_.V.handleClick=function(){var D=this;this.data&&this.data.clickthroughEndpoint&&(_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(v){D.macroReplacementBehavior.sendServiceRequestAction([v])}),_.zU(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.V.onLoad=function(){_.U9(this.hostElement,"yt-refit-popups-action")};
_.GT.Object.defineProperties(gA.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
gA.prototype.onLoad=gA.prototype.onLoad;gA.prototype.onClick=gA.prototype.onClick;gA.prototype.dataChanged=gA.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gA.prototype,"rendererBehavior",void 0);_.e([_.l(KOd.YtMacroReplacementBehavior),_.n("design:type",Object)],gA.prototype,"macroReplacementBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gA.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],gA.prototype,"buttonUpdate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],gA.prototype,"hideLegacyBanner",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],gA.prototype,"adInfoButtonStyle",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],gA.prototype,"adInfoButtonType",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],gA.prototype,"macros",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],gA.prototype,"interactionLoggingClientData",null);_.e([_.Y(),_.n("design:type",String)],gA.prototype,"clickThroughUrl",void 0);_.e([_.Y(),_.n("design:type",_.d0)],gA.prototype,"imageSrc",void 0);_.e([_.Y(),_.n("design:type",Number)],gA.prototype,"imageWidth",void 0);_.e([_.Y(),_.n("design:type",Number)],gA.prototype,"imageHeight",void 0);_.e([_.Y(),_.n("design:type",Object)],gA.prototype,"noDotAdBadge",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gA.prototype,"dataChanged",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],gA.prototype,"onClick",null);_.e([_.lc("load"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gA.prototype,"onLoad",null);_.e([_.m({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],gA);
_.w(gA,"ytd-image-companion-renderer",function(){if(plf!==void 0)return plf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return plf=D},{mode:_.E_("kevlar_poly_si_batch_j067")?1:2});var lqz;var kA=function(){return _.c.apply(this,arguments)||this};
_.J(kA,_.c);_.V=kA.prototype;_.V.dataChanged=function(){this.set("data.adBadge",kA.JSC$22885_DEFAULT_AD_BADGE_RENDERER);if(this.data){var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.V.getOnLayoutVisibleCallback=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.V.onCompanionClicked=function(D){this.data&&(D.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.zU(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.V.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var D=_.Mq(),v=this.getLayoutId(),h=this.data.clickToAdvSiteEndpoint;D&&v&&_.g("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(a){(new _.Dh(a)).executeCommand(h,v)}):_.F1(this.hostElement,"yt-navigate",{endpoint:h})}};
_.V.sendTrackingPings=function(D){if(D&&D.length!==0&&D[0].loggingUrls&&(D=D[0].loggingUrls.map(this.getBaseUrl)))for(var v=0;v<D.length;v++)_.WK(D[v])};
_.V.getBaseUrl=function(D){return D.baseUrl||""};
_.GT.Object.defineProperties(kA.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.T3("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
kA.prototype.onCompanionClicked=kA.prototype.onCompanionClicked;kA.prototype.dataChanged=kA.prototype.dataChanged;kA.JSC$22885_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p1("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kA.prototype,"data",void 0);_.e([_.Br("#title"),_.n("design:type",HTMLElement)],kA.prototype,"shopTitle",void 0);
_.e([_.qi("data.impressionEndpoints"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kA.prototype,"dataChanged",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],kA.prototype,"interactionLoggingClientData",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],kA.prototype,"onCompanionClicked",null);
_.e([_.m({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],kA);
_.w(kA,"ytd-shopping-companion-renderer",function(){if(lqz!==void 0)return lqz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return lqz=D},{mode:1});_.zh(_.H(function(D){var v=D.data;D=_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk});var h=_.Tf(function(){return v().interaction},PHw);
_.mt(function(){var a,Q;Q=(Q=_.T3("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(a=Q)==null||a()},"sm");
return _.F("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Jd(function(a){_.U9(a.currentTarget,"yt-refit-popups-action")}),
el:_.ML(D,h),"aria-label":function(){var a,Q;return(a=v().interaction)==null?void 0:(Q=a.accessibility)==null?void 0:Q.label}},_.F("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(a){return _.F(_.el,{data:a.data,
targetHeight:80,customCommandResolver:PHw})}})),_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.F(_.c4,{data:function(){return v().adBadge}},{adBadgeViewModel:function(a){return _.F(_.bF,{data:a.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.F(_.c4,{data:function(){return v().menu}},{buttonViewModel:_.s$}))))},"tm"),"banner-image-layout-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;D=_.Mb({visibilityCallback:function(a){var Q,G=(Q=v().interaction)==null?void 0:Q.onFirstVisible;a&&G&&_.r4(G)},
showOption:_.Nk});var h=_.Tf(function(){return v().interaction},xfM);
_.mt(function(){var a,Q;Q=(Q=_.T3("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(a=Q)==null||a()},"um");
return _.F("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.ML(D,h)},_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.F(_.c4,{data:function(){return v().adImage}},{adImageViewModel:function(a){return _.F(_.el,{data:a.data,
targetHeight:80,customCommandResolver:xfM})}})),_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.F(_.c4,{data:function(){return v().adAvatarLockup}},{adAvatarLockupViewModel:function(a){return _.F(ZV3,{data:a.data,
customCommandResolver:xfM})}})),_.F(_.c4,{data:function(){return v().adButton}},{adButtonViewModel:function(a){return _.F(_.B$,{data:a.data,
customCommandResolver:xfM})}}),_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.F(_.c4,{data:function(){return v().menu}},{buttonViewModel:_.s$}))))},"vm"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.gj}});var Nqm={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"},S0=function(){var D=_.c.apply(this,arguments)||this;D.updateCompanionDataJobId=0;D.contentVideoId=null;D.player=null;D.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return D};
_.J(S0,_.c);_.V=S0.prototype;_.V.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Nqm}}};
_.V.attached=function(){var D=this,v=_.Mq();v&&v.getPlayerPromise().then(function(h){D.getCachedDataAndListen(h)})};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.V.updateRendererStamper=function(){var D={};if(this.data)for(var v in Nqm)if(this.data[v]){D[v]=this.data[v];break}if(this.oneofRenderer!=void 0||Object.keys(D).length)this.oneofRenderer=D};
_.V.getCachedDataAndListen=function(D){var v=this.retrieveCachedCompanionData();v&&Object.keys(v).length&&this.receiveCompanionData(v);this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=D};
_.V.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};
_.V.receiveCompanionData=function(D){D&&Object.keys(D).length?(this.contentVideoId=D.contentVideoId,this.setCompanionData(D)):this.setCompanionData(D)};
_.V.setCompanionData=function(D){this.cancelPendingCompanionAdJobs();if(D){this.updateCompanionDataJobId=0;for(var v in Nqm)Nqm.hasOwnProperty(v)&&(this.data[v]=void 0);D.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",D.shoppingCompanionCarouselRenderer):D.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",D.imageCompanionAdRenderer):D.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",D.actionCompanionAdRenderer),_.U9(this.hostElement,
"yt-hide-unlimited-offer-module"),_.U9(this.hostElement,"yt-hide-tvfilm-offer-module")):D.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",D.bannerImageLayoutViewModel):D.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",D.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.V.dataChanged=function(){var D=this,v=_.Mq();v?v.getPlayerPromise().then(function(h){D.contentVideoId&&h.getVideoUrl().includes("v="+D.contentVideoId)||(D.cancelPendingCompanionAdJobs(),D.updateRendererStamper())}):_.Wv(Error("To"))};
_.V.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.HK.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.V.handleCompanionAdClicked=function(D,v){this.player.onAdUxClicked(D,v);this.player.pauseVideo()};
S0.prototype.dataChanged=S0.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],S0.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],S0.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],S0.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],S0.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],S0.prototype,"oneofRenderer",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],S0.prototype,"dataChanged",null);_.e([_.m({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],S0);
_.w(S0,"ytd-companion-slot-renderer",function(){if(Jh0!==void 0)return Jh0;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Jh0=D},{mode:_.E_("kevlar_poly_si_batch_j067")?
1:2});var YY0;var JG=function(){return _.c.apply(this,arguments)||this};
_.J(JG,_.c);JG.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
JG.prototype.dataChanged=JG.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],JG.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],JG.prototype,"companionSlotData",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JG.prototype,"dataChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],JG);
_.w(JG,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(YY0!==void 0)return YY0;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return YY0=D},{mode:1});var Bq0;var pi=function(){var D=_.c.apply(this,arguments)||this;D.skinnyMode=!1;D.COMPACT_EVENT_COUNT=4;D.onShelfToggleButtonTap=function(){D.logTap(D.data);D.showingMore=!D.showingMore};
D.onShelfToggleButtonFocus=function(){D.showingMore||(D.logTap(D.data),D.showingMore=!0,_.$R(D,function(){var v=D.COMPACT_EVENT_COUNT-1,h;(h=_.ZW(D.hostElement).querySelector("#event-"+v))==null||h.focus()}))};
return D};
_.J(pi,_.c);_.V=pi.prototype;_.V.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.V.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.V.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.pZ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.pZ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.pZ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.pZ(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.pZ(this.infoTooltip,this.infoTooltip.hide))};
_.V.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.pZ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.pZ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.pZ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.pZ(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.pZ(this.infoTooltip,this.infoTooltip.hide))};
_.V.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)};
_.V.onShowingMoreChanged=function(){var D;this.showingMoreChanged((D=this.showingMore)!=null?D:!1)};
_.V.showingMoreChanged=function(D){var v=this.get("data.events")||[];this.set("restEvents",v.slice(1,D?v.length:this.COMPACT_EVENT_COUNT).map(function(h){return h.ticketEventRenderer}));
v.slice(0,D?v.length:this.COMPACT_EVENT_COUNT).forEach(function(h){var a=_.wd();h=h.ticketEventRenderer.trackingParams;_.yC()&&a&&h&&(h=_.d4(h),a&&_.u1(a,h))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.V.computeAriaLabel=function(D){return D.subtitle1+", "+D.subtitle2};
_.V.logTap=function(D){_.yC()&&this.ytRendererBehavior.logExplicitClick(D)};
_.V.isKeyboardAction=function(D){return this.get("detail.x",D)===0&&this.get("detail.y",D)===0};
_.V.onFirstEventTap=function(D){D.target&&this.handleTap(D.target,this.firstEvent,this.isKeyboardAction(D))};
_.V.onTicketLinkTap=function(D){D.target&&this.handleTap(D.target,D.model.item,this.isKeyboardAction(D))};
_.V.handleTap=function(D,v,h){if(v.buttonCommand)if(v.hasMultipleOffers)Object.assign(_.k(v.buttonCommand,_.Oc),{properties:{source:h?"keyboard":"tap"}}),this.logTap(v),this.popupPositionTarget=D,_.ZD(this.hostElement,[v.buttonCommand],this.hostElement);else{var a;if((a=_.k(v.buttonCommand,_.RB))==null?0:a.url)this.logTap(v),_.Dx(window,_.k(v.buttonCommand,_.RB).url)}};
pi.prototype.onShowingMoreChanged=pi.prototype.onShowingMoreChanged;pi.prototype.dataChanged=pi.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pi.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],pi.prototype,"firstEvent",void 0);_.e([_.Y(),_.n("design:type",Object)],pi.prototype,"restEvents",void 0);_.e([_.Y(),_.n("design:type",String)],pi.prototype,"imageUrl",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],pi.prototype,"showingMore",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],pi.prototype,"canShowMore",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pi.prototype,"skinnyMode",void 0);_.e([_.Y(),_.n("design:type",HTMLElement)],pi.prototype,"popupPositionTarget",void 0);_.e([_.Br("#banner-info-tooltip"),_.n("design:type",Object)],pi.prototype,"infoTooltip",void 0);
_.e([_.Br("#info-container"),_.n("design:type",HTMLElement)],pi.prototype,"infoContainer",void 0);_.e([_.Br("#shelf-toggler"),_.n("design:type",HTMLElement)],pi.prototype,"shelfToggleButton",void 0);_.e([_.Br("#separator"),_.n("design:type",HTMLDivElement)],pi.prototype,"separator",void 0);_.e([_.Y(),_.n("design:type",String)],pi.prototype,"shelfTogglerLabelText",void 0);_.e([_.Y(),_.n("design:type",String)],pi.prototype,"shelfTogglerIcon",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pi.prototype,"dataChanged",null);_.e([_.qi("showingMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pi.prototype,"onShowingMoreChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],pi);
_.w(pi,"ytd-ticket-shelf-renderer",function(){if(Bq0!==void 0)return Bq0;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Bq0=D},{mode:1});var ch3;var XlQ;var Ahw=function(){return _.c.apply(this,arguments)||this};
_.J(Ahw,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ahw.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ahw.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Ahw);
_.w(Ahw,"ytd-comments-entry-point-message-renderer",function(){if(XlQ!==void 0)return XlQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return XlQ=D},{mode:1});var qYM;var lk=function(){return _.c.apply(this,arguments)||this};
_.J(lk,_.c);_.GT.Object.defineProperties(lk.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.teaserAvatar)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lk.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lk.prototype,"hasAvatar",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],lk);
_.w(lk,"ytd-comments-entry-point-teaser-renderer",function(){if(qYM!==void 0)return qYM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return qYM=D},{mode:1});var bVf;var dxf=function(){return _.c.apply(this,arguments)||this};
_.J(dxf,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dxf.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dxf.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],dxf);
_.w(dxf,"ytd-comments-simplebox-renderer",function(){if(bVf!==void 0)return bVf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return bVf=D},{mode:1});var N7=function(){var D=_.c.apply(this,arguments)||this;D.fullHeight=!_.g("comment_teaser_full_height_kill_switch")&&_.g("kevlar_watch_grid");return D};
_.J(N7,_.c);N7.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"}}}};
N7.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
N7.prototype.onTap=function(){var D=this.tapCommand;D&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(D))};
N7.prototype.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.GT.Object.defineProperties(N7.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.onTap)return this.data.onTap;var v,h;if(((v=this.data)==null?0:v.teaserContent)||((h=this.data)==null?0:h.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
N7.prototype.onKeyUp=N7.prototype.onKeyUp;N7.prototype.onTap=N7.prototype.onTap;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],N7.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],N7.prototype,"fullHeight",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"tapCommand",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"simpleboxPlaceholder",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N7.prototype,"hasSimpleboxPlaceholder",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"simpleboxAvatar",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"teaserContent",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N7.prototype,"hasTeaserContent",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"teaserAvatar",null);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N7.prototype,"hasTeaserAvatar",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"messageText",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N7.prototype,"contentRenderer",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N7.prototype,"hasContents",null);
_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N7.prototype,"hasContentRenderer",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N7.prototype,"onTap",null);_.e([_.lc("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[_.AJ]),_.n("design:returntype")],N7.prototype,"onKeyUp",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],N7);
_.w(N7,"ytd-comments-entry-point-header-renderer",function(){if(ch3!==void 0)return ch3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return ch3=D},{mode:1});var juM;_.zh(_.mJy,"yt-animated-rolling-number",{props:{numberText:_.gj,numberValue:_.gj,heightPx:_.gj,fontSizeMultiplier:_.gj,shouldAnimate:_.gj,forceRollUp:_.gj}});var sum=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),mxw={numberText:"",heightPx:2*sum,shouldAnimate:!1},YA=function(){var D=_.c.apply(this,arguments)||this;D.usingAnimatedComponents=!0;D.wasDetailed=!1;D.JSC$22922_browserSupportsAnimation=_.g("web_supports_animations_api");D.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};D.detailed=!1;D.shouldAnimate=!1;D.viewCountProps=mxw;D.dateTextProps=
mxw;D.metadataBadgesInDescription=_.g("web_metadata_badges_in_description");return D};
_.J(YA,_.c);_.V=YA.prototype;_.V.resetAnimationState=function(){this.shouldAnimate=!1};
_.V.updateDynamicMetadata=function(){if(this.JSC$22922_browserSupportsAnimation){if(!this.detailed){var D,v,h,a;var Q=(D=this.videoPrimaryInfoRenderer)==null?void 0:(v=D.viewCount)==null?void 0:(h=v.videoViewCountRenderer)==null?void 0:(a=h.extraShortViewCount)==null?void 0:a.simpleText;var G,x,f,C;var U=(G=this.videoPrimaryInfoRenderer)==null?void 0:(x=G.viewCount)==null?void 0:(f=x.videoViewCountRenderer)==null?void 0:(C=f.shortViewCount)==null?void 0:C.simpleText}if(!U){var L,Z,E,I;Q=(L=this.videoPrimaryInfoRenderer)==
null?void 0:(Z=L.viewCount)==null?void 0:(E=Z.videoViewCountRenderer)==null?void 0:(I=E.unlabeledViewCountValue)==null?void 0:I.simpleText;var S,B,A,d;U=(S=this.videoPrimaryInfoRenderer)==null?void 0:(B=S.viewCount)==null?void 0:(A=B.videoViewCountRenderer)==null?void 0:(d=A.viewCount)==null?void 0:d.simpleText}var b,W,K;D=Number((b=this.videoPrimaryInfoRenderer)==null?void 0:(W=b.viewCount)==null?void 0:(K=W.videoViewCountRenderer)==null?void 0:K.originalViewCount);var O,R;b=(O=this.videoPrimaryInfoRenderer)==
null?void 0:(R=O.relativeDateText)==null?void 0:R.simpleText;var vA;O=!((vA=this.videoPrimaryInfoRenderer)==null||!vA.relativeDateText);if(Q&&U&&D&&(b||!O)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;vA=U.split(new RegExp("("+Q+")"));Q=_.aX(vA[0]);var f7;U={numberText:(f7=vA[1])!=null?f7:"",numberValue:D,heightPx:2*sum,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var xL;f7=((xL=vA[2])!=null?xL:"")+"  ";this.setViewCount(U,Q,_.aX(f7));
if(!this.detailed&&O){Q=b.split(/(\d+)/);xL=_.aX(Q[0]);var kL;f7={numberText:(kL=Q[1])!=null?kL:"",heightPx:2*sum,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Z4;kL=((Z4=Q[2])!=null?Z4:"")+"  ";this.setDateText(f7,xL,_.aX(kL))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.V.setViewCount=function(D,v,h){_.$V(v)!==_.$V(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=v);this.viewCountProps.numberText!==(D==null?void 0:D.numberText)&&(this.viewCountProps=D||mxw);_.$V(h)!==_.$V(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=h)};
_.V.setDateText=function(D,v,h){_.$V(v)!==_.$V(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=v);this.dateTextProps.numberText!==(D==null?void 0:D.numberText)&&(this.dateTextProps=D||mxw);_.$V(h)!==_.$V(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=h)};
_.V.onYtUpdateViewershipAction=function(D){this.videoPrimaryInfoRenderer&&(_.k(D,Jwf).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.k(D,Jwf).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.k(D,Jwf).viewCount)))};
_.V.onYtUpdateDateTextAction=function(D){if(this.videoPrimaryInfoRenderer){D=_.k(D,_.keH).dateText;this.shouldAnimate=!0;var v;((v=this.videoPrimaryInfoRenderer)==null?0:v.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",D):this.set("videoPrimaryInfoRenderer.dateText",D)}};
_.GT.Object.defineProperties(YA.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return FMQ(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.$V(FMQ(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.$V(this.viewCountPreNumberText),this.viewCountProps.numberText,_.$V(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.$V(this.dateTextPreNumberText),this.dateTextProps.numberText,_.$V(this.dateTextPostNumberText)].join("")}}});
YA.prototype.updateDynamicMetadata=YA.prototype.updateDynamicMetadata;YA.prototype.resetAnimationState=YA.prototype.resetAnimationState;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],YA.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],YA.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],YA.prototype,"videoPrimaryInfoRenderer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"detailed",void 0);_.e([_.Y(),_.n("design:type",Object)],YA.prototype,"shouldAnimate",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"viewCountPreNumberText",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"viewCountProps",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"viewCountPostNumberText",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"dateTextPreNumberText",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"dateTextProps",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"dateTextPostNumberText",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YA.prototype,"metadataBadgesInDescription",void 0);_.e([_.N("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.n("design:type",Object),_.n("design:paramtypes",[])],YA.prototype,"infoText",null);
_.e([_.N("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.n("design:type",String),_.n("design:paramtypes",[])],YA.prototype,"descriptionInfoTooltipText",null);_.e([_.N("detailed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YA.prototype,"showDescriptionInfoTooltip",null);
_.e([_.N("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.n("design:type",String),_.n("design:paramtypes",[])],YA.prototype,"animatedViewCountAccessibilityLabel",null);_.e([_.N("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.n("design:type",String),_.n("design:paramtypes",[])],YA.prototype,"animatedDateTextAccessibilityLabel",null);
_.e([_.Ni("videoPrimaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YA.prototype,"resetAnimationState",null);_.e([_.Ni("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YA.prototype,"updateDynamicMetadata",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-watch-info-text"})],YA);
_.w(YA,"ytd-watch-info-text",function(){if(juM!==void 0)return juM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return juM=D},{mode:1});var HVH;var yh3="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var wlB=_.H(function(D){var v=D.data;var h=D.setTapCommand;_.bW(function(){var a=_.Rq(v().onTap);h(a)},"Hj6Srd");
return _.F("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2}),_.F("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.F("span",null,function(){return v().simpleboxText})))},"xm");var erf=_.H(function(D){return _.F("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.F(_.z,{cond:function(){return _.k(D.data().avatar,_.nj)},
then:function(v){return _.F(_.Q2,{data:v,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.F("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.F(_.IY,{text:function(){return D.data().teaserText}})))},"ym");var nHH=_.H(function(D){var v=D.data;var h=D.setTapCommand;_.bW(function(){var a=_.Rq(v().onTap);h(a)},"IlZFqc");
return _.F("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.F(_.c4,{data:function(){return v().teasers}},{commentsEntryPointTeaserViewModel:erf}))},"Am");var OVH=_.H(function(D){var v=D.data;var h=D.setTapCommand;_.bW(function(){var a=_.Rq(v().onTap);h(a)},"sYe8ye");
return _.F("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.F(_.IY,{text:function(){return v().messageText}}))},"Cm");var KtH=_.H(function(D){var v=D.data;var h=D.setTapCommand;var a=D.isDisabled;_.bW(function(){var Q=(a==null?0:a())?void 0:_.Rq(v().onTap);h(Q)},"GZxRqd");
return _.F("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.F(_.Y5,{icon:function(){return v().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.F(_.z,{cond:function(){return v().image},
then:function(Q){return _.F(_.PX,{data:Q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.F(_.IY,{text:function(){return v().text},
className:function(){return v().image||v().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.F(_.c4,{data:function(){return v().button}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:a==null?void 0:a()}}})}}))},"Em");var Tqd=_.H(function(D){var v=D.data;var h=D.itemIndex;var a=D.selectedIndex;var Q=D.indexUpdatedCallback;var G=D.observer;D=D.title;var x=_.va("yt-carousel-item-view-model",function(Z){G&&G().observe(Z)}),f=function(Z){h()===a()&&Q(Z)},C=_.Th(nCQ),U=_.Th(_.RTf),L=function(){var Z,E,I;
return((Z=v())==null?void 0:Z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!C()||((E=v())==null?void 0:E.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&U().includes("PAposts_by_host")||((I=v())==null?void 0:I.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&U().includes("PAyouchat")};
return _.F("yt-carousel-item-view-model",{el:x,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":D},_.F(_.c4,{data:function(){var Z,E;return(E=(Z=_.k(v().carouselItem,KMQ))==null?void 0:Z.textCarousel)!=null?E:v().carouselItem}},{textCarouselItemViewModel:function(Z){return _.F(KtH,{data:Z.data,
setTapCommand:f,isDisabled:L})},
commentTeaserCarouselItemViewModel:function(Z){return _.F(nHH,{data:Z.data,setTapCommand:f})},
commentInputBoxCarouselItemViewModel:function(Z){return _.F(wlB,{data:Z.data,setTapCommand:f})},
commentsEntryPointMessageViewModel:function(Z){return _.F(OVH,{data:Z.data,setTapCommand:f})}}))},"Fm");var Rr3=_.H(function(D){var v=D.numDots;var h=D.activeIndex;return _.F("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.F(_.Xd,{each:function(){return Array.from({length:v()})},
keyBy:"INDEX"},function(a,Q){return _.F("div",{class:function(){var G={};return _.sn("ytCarouselDotsShapeDot",(G.ytCarouselDotsShapeDotActive=Q===h(),G))}})}))},"Gm");var iVo=_.H(function(D){var v=D.data;var h=D.handleCarouselNavigation;var a=D.numItems;var Q=D.selectedIndex;var G=function(){return{disabled:Q()===0}},x=function(){return{disabled:Q()===a()-1}};
return _.F("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.F("div",null,_.F("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return v().title}),_.F(_.z,{cond:function(){return v().subtitle},
then:function(f){return _.F("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return v().subtitleAccessibilityText}},f)}})),_.F(_.z,{cond:function(){return a()>1},
then:function(){return _.F("div",{class:"ytCarouselTitleViewModelNavigation"},_.F(Rr3,{numDots:a,activeIndex:Q}),_.F(_.z,{cond:function(){return v().previousButton},
then:function(f){return _.F(_.c4,{data:f},{buttonViewModel:function(C){return _.F(_.s$,{data:C.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return h(-1)},
buttonOverrides:G})}})}}),_.F(_.z,{cond:function(){return v().nextButton},
then:function(f){return _.F(_.c4,{data:f},{buttonViewModel:function(C){return _.F(_.s$,{data:C.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return h(1)},
buttonOverrides:x})}})}}))}}))},"Hm");_.zh(_.H(function(D){var v=D.data;var h,a=_.va("yt-video-metadata-carousel-view-model"),Q=_.va("div",function(O){var R=function(){var vA=O.offsetWidth*B(),f7=24*(B()-1);E(vA+f7)};
R();window.ResizeObserver&&(h=new ResizeObserver(R),h.observe(O))}),G=_.eA("HTML_DIR")==="rtl",x=!1,f=0,C=0;
D=_.P(_.Zq(0,void 0,"M49TDf"));var U=D.next().value,L=D.next().value;D=_.P(_.Zq(0,void 0,"zLIok"));var Z=D.next().value,E=D.next().value;D=_.P(_.Zq(!1,void 0,"bhelhc"));var I=D.next().value,S=D.next().value,B=function(){var O,R,vA;return(vA=(O=v())==null?void 0:(R=O.carouselTitles)==null?void 0:R.length)!=null?vA:0},A=function(){Q.value&&Q.value.scrollLeft!==f&&L((G?Q.value.scrollLeft<f:Q.value.scrollLeft>f)?Math.min(U()+1,B()-1):Math.max(U()-1,0))},d;
window.IntersectionObserver&&(d=new IntersectionObserver(function(O){O=_.P(O);for(var R=O.next();!R.done;R=O.next())if(R.value.isIntersecting){if(x){x=!1;break}A()}else L(C)},{threshold:.2}));
_.bW(function(){if(Q.value){var O=(G?-1:1)*(Z()/B()+12)*(I()&&d?C:U());typeof Q.value.scrollTo==="function"?Q.value.scrollTo({left:O,behavior:"smooth"}):Q.value.scrollLeft=O;f=O;C=I()&&d?C:U()}},"s9rbgc");
var b,W=function(O){b=O};
_.dq(function(){var O;(O=h)==null||O.disconnect();var R;(R=d)==null||R.disconnect()});
var K=function(O){O=U()+O;O>=0&&O<B()&&(x=!0,L(O))};
return _.F("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:a,"on:click":_.Jd(function(O){if(_.H4(_.ms(O),a.value,["BUTTON".toString()])||!b)return!1;_.xd().resolve(_.fx).resolveCommand(b,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Jd(function(){S(!0);return!1}),
"on:touchend":_.Jd(function(){d||A();S(!1);return!1}),
hidden:function(){var O,R;return!((O=v())==null?0:(R=O.carouselItems)==null?0:R.length)}},_.F("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.F(_.z,{cond:function(){return v().carouselTitles},
then:function(O){return _.F(_.c4,{data:function(){return O()[I()&&d?C:U()]}},{carouselTitleViewModel:function(R){return _.F(iVo,{data:R.data,
handleCarouselNavigation:K,numItems:B,selectedIndex:U})}})}})),_.F("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Q},_.F("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+Z()+"px;"}},_.F(_.z,{cond:function(){return v().carouselItems},
then:function(O){return _.F(_.Xd,{each:O},function(R,vA){return _.F(_.c4,{data:function(){return R}},{carouselItemViewModel:function(f7){return _.F(Tqd,{data:f7.data,
itemIndex:vA,selectedIndex:U,indexUpdatedCallback:W,observer:d,title:function(){a:{var xL=vA();var kL,Z4=(kL=v())==null?void 0:kL.carouselTitles;if(Z4&&(xL=Z4[xL])){var S2;xL=(S2=_.k(xL,Oz3))==null?void 0:S2.title;break a}xL=void 0}return xL}})}})})}}))))},"Jm"),"yt-video-metadata-carousel-view-model",{props:{data:_.gj}});var Wt0=_.g("web_action_buttons_update_owner_width")?32:12,Bo=function(){var D=_.c.apply(this,arguments)||this;D.isHovering=!1;D.enableColorSampling=_.g("web_delhi_colorful_sd");D.metadataBadgesInDescription=_.g("web_metadata_badges_in_description");D.descriptionCollapsed=!0;D.useFadedScrimDescription=_.g("kevlar_enable_faded_scrim_on_description");D.skinnyMode=!1;D.playlist=!1;D.isDark=document.documentElement.hasAttribute("dark");D.disableVideoOwnerOnTap=_.g("swatchie_video_owner_on_tap_ks");D.swatcherooDelayLoad=
_.g("swatcheroo_enable_ghost_cards");D.primaryMenuWidth=0;D.videoId="";D.titleHeadlineXs=_.g("web_watch_typography_title_headline_xs");D.titleHeadlineS=_.g("web_watch_typography_title_headline_s");D.titleHeadlineM=_.g("web_watch_typography_title_headline_m");D.titleHashtagBlackLinkified=_.g("web_title_hashtag_black_linkified");D.titleHashtagGreyLinkified=_.g("web_title_hashtag_grey_linkified");D.actionButtonsUpdateOwnerWidth=_.g("web_action_buttons_update_owner_width");D.shouldForceIconOnly=!1;D.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};D.isFullscreen=!1;D.isTheaterMode=!1;return D};
_.J(Bo,_.c);_.V=Bo.prototype;_.V.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.V.updateOwnerAndDescriptionPosition=function(){_.g("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.w_(this.bottomRowElement,this.ownerElement)):(_.w_(this.bottomRowElement,this.descriptionElement),_.w_(this.topRowElement,this.ownerElement)))};
_.V.titleOnTap=function(D){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var v;((v=window.getSelection())==null?0:v.toString().length)||this.handleExpandDescriptionCommands()}};
_.V.videoOwnerOnTap=function(D){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.V.detached=function(){var D=this,v;return _.M(function(h){(v=D.resizeObserver)==null||v.disconnect();_.YI(h)})};
_.V.maybeAttachResizeObserver=function(){var D=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.tn(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){D.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.V.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var D=this.hostElement.clientWidth,v=Math.max(this.largerItemWrap?400:350,D/2-Wt0);_.g("web_action_buttons_update_owner_width")&&(v=this.ownerElement.clientWidth+Wt0);this.actionsOnSeparateLine=this.primaryMenuWidth>D-v?!0:!1}};
_.V.stripAttributedDescription=function(D){return{content:D.content.replace(/[\r\n]{2,}/g,"\n")}};
_.V.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.g("web_modern_buttons"),forceIconButton:!_.g("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:_.g("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"}}}};
_.V.videoPrimaryInfoRendererChanged=function(){var D;if((D=this.videoPrimaryInfoRenderer)==null?0:D.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.V.videoSecondaryInfoRendererChanged=function(){var D,v;(v=(D=this.descriptionInlineExpander).collapse)==null||v.call(D);this.descriptionExpandClientVe=_.En(110509);this.descriptionCollapseClientVe=_.En(110510);D=_.wd();v=_.yC();D&&v&&(_.g("combine_ve_grafts")?(_.de(_.c8(),this.descriptionExpandClientVe,v),_.de(_.c8(),this.descriptionCollapseClientVe,v)):_.rK(D,v,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.V.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.V.updateTopLevelIconsOnly=function(){var D=this;_.g("top_level_update_killswitch")||this.menu&&_.HK.addLowPriorityJob(function(){D.menu.topLevelIconsOnly=D.skinnyMode},_.oZ("swathceroo_delay_flexible_menu_update",100))};
_.V.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.g("web_action_buttons_minimize_subscribe")};
_.V.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.V.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.V.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.V.onYtTextInlineExpanderExpandedChanged=function(){if(!_.g("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var D,v;(v=(D=this.structuredDescriptionContentRendererElement).resize)==null||v.call(D)}};
_.V.onRenderStamperFinished=function(D){(D==null?void 0:D.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.V.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.V.onYtExpanderLessTapped=function(){var D,v=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showLessCommand;v&&this.ytComponentBehavior.resolveCommand(v)};
_.V.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.V.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.V.onDescriptionClick=function(D){if(!_.Gf(_.Pr(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var v;((v=window.getSelection())==null?0:v.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.g("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.V.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.V.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.V.logCollapseClick=function(){var D=_.wd();D&&this.descriptionCollapseClientVe&&_.hA(D,this.descriptionCollapseClientVe)};
_.V.logExpandClick=function(){var D=_.wd();D&&this.descriptionExpandClientVe&&_.hA(D,this.descriptionExpandClientVe)};
_.V.collapseDescription=function(){this.descriptionCollapsed=!0};
_.V.scrollToTopOfContainer=function(){_.zU(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.V.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.V.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.V.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.V.resize=function(){if(this.descriptionInlineExpander){var D,v;(v=(D=this.descriptionInlineExpander).resize)==null||v.call(D)}else _.yR(new _.XH("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var h;(h=this.menu)==null||h.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.V.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var D,v,h,a,Q=_.g("web_action_buttons_update_owner_width")?(h=(D=_.ZW(this.menu).querySelector("#button-shape"))==null?void 0:D.clientWidth)!=null?h:0:(a=(v=_.ZW(this.menu).querySelector("#button"))==null?void 0:v.clientWidth)!=null?a:0,G,x;D=((x=(G=_.ZW(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:G.clientWidth)!=null?x:0)+8+Q;var f,C;Q=(C=(f=_.ZW(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:f.children.length)!=null?C:2;D<=8*Q||(this.primaryMenuWidth=D)}};
_.V.onYtUpdateTitleAction=function(D){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.k(D,SXQ).title)};
_.V.onYtUpdateDescriptionAction=function(D){if(D=_.k(D,_.Lp$)){var v,h=!((v=this.videoSecondaryInfoRenderer)==null||!v.attributedDescription);D.isEmpty||!D.description&&!D.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):D.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",D.attributedDescription):D.description&&(h?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.nb(D.description)):this.set("videoSecondaryInfoRenderer.description",D.description))}};
_.V.onYtDarkModeToggledAction=function(D){this.isDark=D};
_.V.registerPanel=function(){if(!_.g("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var D=_.g("web_watch_imax_theater_mode")&&this.isTheaterMode;D=_.g("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D;var v=_.xd().resolve(_.De);v&&!D&&v.registerPanel("engagement-panel-structured-description",this)}};
_.V.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.V.parseColorSamplingData=function(){var D;if(_.g("web_delhi_colorful_sd")&&((D=this.structuredDescriptionContentRenderer)==null?0:D.items)&&(D=this.structuredDescriptionContentRenderer.items.find(function(Q){return!!_.k(Q,er)}))){var v,h;
this.hoverColor={lightTheme:(v=_.k(D,er))==null?void 0:v.lightThemeColorPalette,darkTheme:(h=_.k(D,er))==null?void 0:h.darkThemeColorPalette};var a;this.hoverText=(a=_.k(D,er))==null?void 0:a.colorSampledDescriptionBodyText}};
_.V.updateHoverColor=function(){if(_.g("web_delhi_colorful_sd")){var D=this.hoverColor,v={},h;D=(h=this.isDark?D==null?void 0:D.darkTheme:D==null?void 0:D.lightTheme)!=null?h:{};h=_.P(yh3);for(var a=h.next();!a.done;a=h.next()){a=a.value;var Q=D[a];v["--yt-saturated-"+_.pm(a)]=Q?_.uu(Q):"initial"}_.SB(this.hostElement,v)}};
_.V.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.V.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.V.showPanel=function(D){this.expandDescription();var v=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;v.resize();var h,a=D==null?void 0:(h=D.sectionListEngagementPanelExtras)==null?void 0:h.scrollToItemSectionIdentifier;a?_.HK.addJob(function(){v==null||v.scrollToSection(a)},8):this.scrollToTopOfContainer()};
_.V.isVisible=function(){return!this.descriptionCollapsed};
_.V.getReloadContinuation=function(){};
_.V.hidePanel=function(){};
_.V.updatePanel=function(){};
_.GT.Object.defineProperties(Bo.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var D;return _.g("web_delhi_colorful_sd")&&(D=this.structuredDescriptionContentRenderer)!=null&&D.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(v){return!_.k(v,er)&&!_.k(v,lxw)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.structuredDescriptionContentRendererComputed)!=null&&D.items){var v;D=_.P((v=this.structuredDescriptionContentRendererComputed)==null?void 0:v.items);for(v=D.next();!v.done;v=D.next())if(v=_.k(v.value,_.M8F))return v}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoPrimaryInfoRenderer)==null?0:D.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!!((D=this.videoSecondaryInfoRenderer)==null?0:(v=D.owner)==null?0:(h=v.videoOwnerRenderer)==null?0:h.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var D,v;if((D=this.videoSecondaryInfoRenderer)==null?0:(v=D.attributedDescription)==null?0:v.content){var h,a;return(a=this.stripAttributedDescription((h=this.videoSecondaryInfoRenderer)==null?void 0:h.attributedDescription))!=null?a:{runs:[]}}}if(_.g("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Q,G,x,f;return(f=(x=(Q=this.videoSecondaryInfoRenderer)==
null?void 0:Q.description)!=null?x:(G=this.videoSecondaryInfoRenderer)==null?void 0:G.attributedDescription)!=null?f:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.headerRuns)!=null?v:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentsEntryPointHeaderRenderer)==null||!D.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoMetadataCarousel)==null||!D.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.oZ("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var D,v,h=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(v=D.metadataRowContainer)==null?void 0:v.metadataRowContainerRenderer);if(h&&h.rows&&h.collapsedItemCount!==void 0&&!(h.rows.length<=h.collapsedItemCount))return h.rows=h.rows.slice(h.collapsedItemCount),h.collapsedItemCount=0,h}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var D,v,h=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(v=D.metadataRowContainer)==null?void 0:v.metadataRowContainerRenderer);if(h&&h.rows&&h.collapsedItemCount!==void 0)return h.rows=h.rows.slice(0,h.collapsedItemCount),h.collapsedItemCount=h.rows.length,h}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!((D=this.structuredDescriptionContentRendererComputed)==null?0:(v=D.items)==null?0:v.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var D;return(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.videoSecondaryInfoRenderer)==null?0:(v=D.owner)==null?0:(h=v.videoOwnerRenderer)==null?0:h.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return!!((D=this.videoPrimaryInfoRenderer)==null?0:(v=D.videoActions)==null?0:(h=v.menuRenderer)==null?0:(a=h.flexibleItems)==null?0:a.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Q0(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Q0(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var D=this;if(_.g("web_title_hashtag_grey_delinkified")){var v,h=_.sV.unsafeClone((v=this.videoPrimaryInfoRenderer)==null?void 0:v.title);(v=h==null?void 0:h.runs)&&v.forEach(function(a){if(a==null?0:a.navigationEndpoint)a.textColor=4284506208,D.isDark&&(a.textColor=4289374890)});
return h}return(h=this.videoPrimaryInfoRenderer)==null?void 0:h.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.g("web_title_hashtag_black_delinkified")||_.g("web_title_hashtag_grey_delinkified")}}});
Bo.prototype.updateHoverColor=Bo.prototype.updateHoverColor;Bo.prototype.parseColorSamplingData=Bo.prototype.parseColorSamplingData;Bo.prototype.resetDescriptionState=Bo.prototype.resetDescriptionState;Bo.prototype.registerPanel=Bo.prototype.registerPanel;Bo.prototype.onYtExpanderLessTapped=Bo.prototype.onYtExpanderLessTapped;Bo.prototype.onYtExpanderMoreTapped=Bo.prototype.onYtExpanderMoreTapped;Bo.prototype.onRenderStamperFinished=Bo.prototype.onRenderStamperFinished;
Bo.prototype.onYtTextInlineExpanderExpandedChanged=Bo.prototype.onYtTextInlineExpanderExpandedChanged;Bo.prototype.onYtTextInlineExpanderCollapseClicked=Bo.prototype.onYtTextInlineExpanderCollapseClicked;Bo.prototype.onYtTextInlineExpanderExpandClicked=Bo.prototype.onYtTextInlineExpanderExpandClicked;Bo.prototype.moveActionsElement=Bo.prototype.moveActionsElement;Bo.prototype.updateShouldForceIconOnly=Bo.prototype.updateShouldForceIconOnly;Bo.prototype.updateTopLevelIconsOnly=Bo.prototype.updateTopLevelIconsOnly;
Bo.prototype.structuredDescriptionContentRendererChanged=Bo.prototype.structuredDescriptionContentRendererChanged;Bo.prototype.videoSecondaryInfoRendererChanged=Bo.prototype.videoSecondaryInfoRendererChanged;Bo.prototype.videoPrimaryInfoRendererChanged=Bo.prototype.videoPrimaryInfoRendererChanged;Bo.prototype.maybeUpdateActionsOnSeparateLine=Bo.prototype.maybeUpdateActionsOnSeparateLine;Bo.prototype.updateOwnerAndDescriptionPosition=Bo.prototype.updateOwnerAndDescriptionPosition;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Bo.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Bo.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],Bo.prototype,"ytdReduxBehavior",void 0);_.e([_.Br("#above-the-fold"),_.n("design:type",HTMLElement)],Bo.prototype,"aboveTheFoldContainer",void 0);_.e([_.Br("#menu ytd-menu-renderer"),_.n("design:type",Object)],Bo.prototype,"menu",void 0);_.e([_.Br("#description-inline-expander"),_.n("design:type",Object)],Bo.prototype,"descriptionInlineExpander",void 0);
_.e([_.Br("#faded-structured-description"),_.n("design:type",Object)],Bo.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.e([_.Br("#structured-description"),_.n("design:type",Object)],Bo.prototype,"structuredDescriptionContentRendererElement",void 0);_.e([_.Br("#title"),_.n("design:type",HTMLElement)],Bo.prototype,"titleElement",void 0);_.e([_.Br("#description"),_.n("design:type",HTMLElement)],Bo.prototype,"descriptionElement",void 0);
_.e([_.Br("#description-interaction"),_.n("design:type",Object)],Bo.prototype,"descriptionInteraction",void 0);_.e([_.Br("#owner"),_.n("design:type",HTMLElement)],Bo.prototype,"ownerElement",void 0);_.e([_.Br("#top-row"),_.n("design:type",HTMLElement)],Bo.prototype,"topRowElement",void 0);_.e([_.Br("#bottom-row"),_.n("design:type",HTMLElement)],Bo.prototype,"bottomRowElement",void 0);_.e([_.Br("#actions"),_.n("design:type",HTMLElement)],Bo.prototype,"actionsElement",void 0);
_.e([_.Br("#bottom-actions"),_.n("design:type",HTMLElement)],Bo.prototype,"bottomActionsElement",void 0);_.e([_.Br("#ytd-watch-info-text"),_.n("design:type",Object)],Bo.prototype,"watchInfoTextElement",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"videoPrimaryInfoRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"videoSecondaryInfoRenderer",void 0);
_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"commentsEntryPointHeaderRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"videoMetadataCarousel",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"structuredDescriptionContentRenderer",void 0);_.e([_.N("structuredDescriptionContentRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"structuredDescriptionContentRendererComputed",null);
_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"videoSummary",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"merchShelf",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"infoPanelBelowMetadata",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"hoverColor",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"hoverText",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"isHovering",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"enableColorSampling",void 0);_.e([_.N("structuredDescriptionContentRendererComputed"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"productShelf",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"metadataBadgesInDescription",void 0);_.e([_.N("videoPrimaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"shouldHideBadges",null);
_.e([_.N("productShelf","descriptionCollapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"shouldShowProductShelf",null);_.e([_.Y(),_.n("design:type",Boolean)],Bo.prototype,"isWatchFlexy",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"descriptionCollapsed",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bo.prototype,"useFadedScrimDescription",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"skinnyMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("videoSecondaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"largerItemWrap",null);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"playlist",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"clarifyBox",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"playerAds",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],Bo.prototype,"isDark",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bo.prototype,"actionsOnSeparateLine",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"disableVideoOwnerOnTap",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"swatcherooDelayLoad",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Bo.prototype,"suppressTopLevelMetadataRows",void 0);
_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"primaryMenuWidth",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"videoId",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"titleHeadlineXs",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"titleHeadlineS",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"titleHeadlineM",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"titleHashtagBlackLinkified",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"titleHashtagGreyLinkified",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.e([_.Y(),_.n("design:type",Object)],Bo.prototype,"shouldForceIconOnly",void 0);
_.e([_.qi("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"updateOwnerAndDescriptionPosition",null);_.e([_.qi("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.e([_.N("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"descriptionText",null);_.e([_.N("videoSecondaryInfoRenderer.headerRuns"),_.n("design:type",Array),_.n("design:paramtypes",[])],Bo.prototype,"headerRuns",null);
_.e([_.Y({value:!1}),_.N("commentsEntryPointHeaderRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"hasTeaser",null);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.N("videoMetadataCarousel"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"hasTeaserCarousel",null);_.e([_.Y({value:3}),_.N("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"descriptionMaxLines",null);
_.e([_.N("videoSecondaryInfoRenderer.metadataRowContainer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"collapsibleMetadataRows",null);_.e([_.N("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"alwaysVisibleMetadataRows",null);
_.e([_.N("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"hasInlineStructuredDescription",null);_.e([_.N("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"showInlineStructuredDescription",null);
_.e([_.N("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"descriptionExpandCommand",null);_.e([_.N("videoSecondaryInfoRenderer.owner"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"videoOwnerCommand",null);_.e([_.Y({reflectToAttribute:!0}),_.N("videoPrimaryInfoRenderer.videoActions"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"flexMenuEnabled",null);
_.e([_.Y({selector:_.OA,reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"isFullscreen",void 0);_.e([_.Y({selector:_.n_,reflectToAttribute:!0}),_.n("design:type",Object)],Bo.prototype,"isTheaterMode",void 0);_.e([_.N("descriptionText","useFadedScrimDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"showAttributedStringDescription",null);
_.e([_.N("descriptionText","useFadedScrimDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"showFormattedStringDescription",null);_.e([_.N("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bo.prototype,"showFadedStructuredDescription",null);
_.e([_.qi("videoPrimaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"videoPrimaryInfoRendererChanged",null);_.e([_.N("videoPrimaryInfoRenderer.title"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"videoTitle",null);_.e([_.N("videoPrimaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bo.prototype,"noEndpoints",null);
_.e([_.qi("videoSecondaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"videoSecondaryInfoRendererChanged",null);_.e([_.Ni("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"structuredDescriptionContentRendererChanged",null);
_.e([_.Ni("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"updateTopLevelIconsOnly",null);_.e([_.Ni("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"updateShouldForceIconOnly",null);_.e([_.Ni("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"moveActionsElement",null);
_.e([_.lc("yt-text-inline-expander-expand-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"onYtTextInlineExpanderExpandClicked",null);_.e([_.lc("yt-text-inline-expander-collapse-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.e([_.lc("yt-text-inline-expander-expanded-changed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Bo.prototype,"onRenderStamperFinished",null);
_.e([_.lc("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"onYtExpanderMoreTapped",null);_.e([_.lc("yt-expander-less-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"onYtExpanderLessTapped",null);
_.e([_.Ni("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"registerPanel",null);_.e([_.Ni("videoSecondaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"resetDescriptionState",null);
_.e([_.Ni("structuredDescriptionContentRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"parseColorSamplingData",null);_.e([_.Ni("hoverColor","isDark"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bo.prototype,"updateHoverColor",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Bo);
_.w(Bo,"ytd-watch-metadata",function(){if(HVH!==void 0)return HVH;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <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');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return HVH=D},{mode:2});_.$do=function(D){_.AN.call(this);this.JSC$22947_watchApi=D;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;tMY(this);rhB(this);uod(this);DdM(this);vfz(this);hjz(this);a0Q(this)};
_.J(_.$do,_.AN);var uod=function(D){var v=function(){_.g("kevlar_is_pupi_enabled")||co(D)};
D.JSC$22947_watchApi.getRoot().addEventListener("yt-player-updated",v);D.addOnDisposeCallback(function(){D.JSC$22947_watchApi.getRoot().removeEventListener("yt-player-updated",v)})},vfz=function(D){if(_.g("kevlar_endscreen_auto_theater_mode")){var v=D.JSC$22947_watchApi.subscribeToActiveChanged(function(){QtK(D)},!1);
D.addOnDisposeCallback(v)}},tMY=function(D){var v,h,a,Q,G;
_.M(function(x){if(x.nextAddress==1)return x.yield(D.JSC$22947_watchApi.playerApi,2);v=x.yieldResult;h=function(f){f=!!f;G3m(D)&&(f=f?2:1,_.Jp.getInstance().setState(f,!0,!1))};
a=function(f){f&&_.eZz(_.Gb().getState())&&(_.zU(D.JSC$22947_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),D.temporaryTheaterMode=!0)};
Q=function(f){_.g("kevlar_player_update_autonav_on_new_data")&&f.type==="newdata"&&(_.g("kevlar_is_pupi_enabled")||co(D))};
G=function(f){D.onPlayerStateChange(f)};
_.g("kevlar_endscreen_auto_theater_mode")&&v.addEventListener("onAutonavCancelled",a);v.addEventListener("onAutonavChangeRequest",h);v.addEventListener("onVideoDataChange",Q);v.addEventListener("onStateChange",G);D.addOnDisposeCallback(function(){v.removeEventListener("onAutonavChangeRequest",h);v.removeEventListener("onVideoDataChange",Q);v.removeEventListener("onStateChange",G);_.g("kevlar_endscreen_auto_theater_mode")&&v.removeEventListener("onAutonavCancelled",a)});
_.YI(x)})},rhB=function(D){D.JSC$22947_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){D.autonavCancelledBySignal=!0;
_.g("kevlar_is_pupi_enabled")||co(D)});
D.JSC$22947_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(v,h,a){h&&co(D,a)});
D.JSC$22947_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){G3m(D)&&_.Jp.getInstance().setState(2,!0,!0)});
D.JSC$22947_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){G3m(D)&&_.Jp.getInstance().setState(1,!0,!0)});
D.addOnDisposeCallback(function(){D.JSC$22947_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");D.JSC$22947_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");D.JSC$22947_watchApi.unregisterActionHandler("yt-enable-autoplay-command");D.JSC$22947_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},DdM=function(D){var v=D.JSC$22947_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a0Q(D)}),h=D.JSC$22947_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){hjz(D)});
D.addOnDisposeCallback(function(){D.JSC$22947_watchApi.unsubscribeByKey(v);D.JSC$22947_watchApi.unsubscribeByKey(h)})},a0Q=function(D){D.autonavCancelledBySignal=!1;
_.g("kevlar_is_pupi_enabled")||co(D)},hjz=function(D){var v=D.JSC$22947_watchApi.getWatchNextResponse(),h,a;
var Q=(v=(a=_.k(v==null?void 0:(Q=v.playerOverlays)==null?void 0:(h=Q.playerOverlayRenderer)==null?void 0:h.autonavToggle,_.Iws))==null?void 0:a.enabled)?2:1;_.g("kevlar_is_pupi_enabled")?_.Jp.getInstance().setState(Q,!1,!1):co(D);_.g("web_persist_server_autonav_state_on_client")&&typeof v==="boolean"&&_.D98(Q===2)},G3m=function(D){if(D.autonavCancelledBySignal)return!1;
var v,h,a,Q;return!!((v=D.JSC$22947_watchApi.getWatchNextResponse())==null?0:(h=v.contents)==null?0:(a=h.twoColumnWatchNextResults)==null?0:(Q=a.autoplay)==null?0:Q.autoplay)};
_.$do.prototype.onPlayerStateChange=function(D){if(D===0){D=!_.Jp.getInstance().isAutoplaySetExplicitly();var v=this.JSC$22947_watchApi.getWatchNextResponse(),h,a,Q,G;v=_.k(v==null?void 0:(h=v.contents)==null?void 0:(a=h.twoColumnWatchNextResults)==null?void 0:(Q=a.autoplay)==null?void 0:(G=Q.autoplay)==null?void 0:G.autoplayExplicitChoiceDialogRenderer,_.sAJ);G3m(this)&&D&&v&&_.pb.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:v},popupType:"DIALOG"}})}else QtK(this)};
var QtK=function(D){D.temporaryTheaterMode&&(D.temporaryTheaterMode=!1,_.zU(D.JSC$22947_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},co=function(D,v){v=v===void 0?!1:v;
var h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$22947_watchApi.playerApi,2);h=a.yieldResult;G3m(D)?h.setAutonavState(_.Jp.getInstance().getState(),v):h.setAutonavState(1,v);_.YI(a)})};var VAM={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"};_.xdY=function(D){_.AN.call(this);var v=this;this.JSC$22952_watchApi=D;var h=this.JSC$22952_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Pym(v)});
this.addOnDisposeCallback(function(){v.JSC$22952_watchApi.unsubscribeByKey(h)});
Pym(this)};
_.J(_.xdY,_.AN);var Pym=function(D){var v=D.JSC$22952_watchApi.getPlayerResponse(),h=D.JSC$22952_watchApi.getWatchNextResponse();if(!_.xQ8(v==null?void 0:v.playabilityStatus,h==null?void 0:h.playerOverlays)){var a;var Q=v==null?void 0:(a=v.playabilityStatus)==null?void 0:a.errorScreen}D.JSC$22952_watchApi.provideRenderingData("ERROR_SCREEN",Q)};var MAB=_.H(function(D){var v=D.data;D=_.g("web_watch_video_details_hide_subtitle");var h=_.g("web_watch_video_details_single_line_title"),a=_.Jd(function(){var f=v().onTap;f&&_.xd().resolve(_.fx).resolveCommand(f)}),Q={},G={},x={};
return _.F("yt-player-overlay-video-details-renderer",{class:_.S3("ytPlayerOverlayVideoDetailsRendererHost",(Q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.g("web_watch_video_details_transparent_background"),Q)),"on:click":a,role:"button"},_.F("h2",{class:_.S3("ytPlayerOverlayVideoDetailsRendererTitle",(G.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return h},G))},_.F(_.IY,{text:function(){return v().title}})),_.F("div",{class:_.S3("ytPlayerOverlayVideoDetailsRendererSubtitle",
(x.ytPlayerOverlayVideoDetailsRendererHideSubtitle=D,x))},_.F(_.IY,{text:function(){return v().subtitle}})))},"Km");var X8={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},f0B=_.H(function(D){var v=D.data;var h=_.Th(_.OA),a=_.g("web_watch_action_bar_resize_buttons"),Q=_.g("web_watch_video_action_dsdvb"),G=_.g("delhi_modern_web_player_icons")&&!_.g("enable_web_delhi_icons");D=_.g("delhi_modern_web_player_disable_frosted_glass");var x=_.g("delhi_modern_web_player_compact_video_actions_controls"),
f=_.g("web_player_quick_action_buttons_icon_only"),C=function(){var L=a&&!h(),Z={};x?Z.size="S":L&&(Z.size="M");f&&(Z.iconPosition="icon-only");if(Object.keys(Z).length!==0)return Z},U={};
return _.F("yt-player-quick-action-buttons",{class:_.S3("ytPlayerQuickActionButtonsHost",(U.ytPlayerQuickActionButtonsHostCompactControls=function(){return!h()||x},U.ytPlayerQuickActionButtonsHostDisableBackdropFilter=D,U))},_.F(_.Xd,{each:function(){var L=v();
if(G){L=JSON.parse(JSON.stringify(L));for(var Z=_.P(L),E=Z.next();!E.done;E=Z.next()){var I=E.value,S=void 0;E=_.k((S=_.k(I,_.hp))==null?void 0:S.toggleButtonViewModel,_.oA);var B=void 0;S=_.k((B=_.k(I,_.vi))==null?void 0:B.toggleButtonViewModel,_.oA);B=_.k(I,_.fH);I=_.k(I,_.oA);if(E)S=_.k(E.defaultButtonViewModel,_.fH),E=_.k(E.toggledButtonViewModel,_.fH),S&&S.iconName&&(S.iconName=X8[S.iconName]),E&&E.iconName&&(E.iconName=X8[E.iconName]);else if(S)E=_.k(S.defaultButtonViewModel,_.fH),S=_.k(S.toggledButtonViewModel,
_.fH),E&&E.iconName&&(E.iconName=X8[E.iconName]),S&&S.iconName&&(S.iconName=X8[S.iconName]);else if(B)B.iconName&&(B.iconName=X8[B.iconName]);else if(I){E=_.k(I.defaultButtonViewModel,_.fH);S=_.k(I.toggledButtonViewModel,_.fH);I=void 0;if((I=E)==null?0:I.iconName)E.iconName=X8[E.iconName];E=void 0;if((E=S)==null?0:E.iconName)S.iconName=X8[S.iconName]}}}Q&&(L=zBz(L));return L}},function(L){return _.F(_.c4,{data:function(){return L}},{buttonViewModel:function(Z){return _.F(_.s$,{data:Z.data,
buttonOverrides:C})},
likeButtonViewModel:function(Z){return _.F(_.x3,{data:Z.data,buttonShapeOverrideables:C})},
dislikeButtonViewModel:function(Z){return _.F(_.PM,{data:Z.data,buttonShapeOverrideables:C})},
toggleButtonViewModel:function(Z){return _.F(_.$$,{data:Z.data,buttonShapeOverrides:C})}})}))},"Lm");_.ofM=function(D){_.AN.call(this);var v=this;this.JSC$22956_watchApi=D;D=_.P(_.Zq({},void 0,"n9wCVe"));this.quickActionsViewModel=D.next().value;this.setQuickActionsViewModel=D.next().value;D=_.P(_.Zq({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=D.next().value;this.setPlayerOverlayVideoDetailsRenderer=D.next().value;var h=this.JSC$22956_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Cyd(v)});
this.addOnDisposeCallback(function(){v.JSC$22956_watchApi.unsubscribeByKey(h)});
Cyd(this)};
_.J(_.ofM,_.AN);
var Cyd=function(D){var v,h,a,Q,G,x,f,C,U,L,Z,E,I,S;_.M(function(B){if(B.nextAddress==1)return B.yield(D.JSC$22956_watchApi.playerApi,2);v=B.yieldResult;h=D.JSC$22956_watchApi.getWatchNextResponse();G=(a=h)==null?void 0:(Q=a.playerOverlays)==null?void 0:Q.playerOverlayRenderer;f=_.k((x=G)==null?void 0:x.fullscreenQuickActionsBar,_.ZHy);(U=(C=D).setQuickActionsViewModel)==null||U.call(C,f||{});f&&F9R(D,v);E=(L=G)==null?void 0:(Z=L.videoDetails)==null?void 0:Z.playerOverlayVideoDetailsRenderer;(S=(I=
D).setPlayerOverlayVideoDetailsRenderer)==null||S.call(I,E||{});E&&zjf(D,v);_.YI(B)})},F9R=function(D,v){if(!D.quickActionButtonsContainer)if(v.setFullscreenQuickActions){D.quickActionButtonsContainer=document.createElement("div");
v.setFullscreenQuickActions(D.quickActionButtonsContainer);var h=function(){return D.quickActionsViewModel().quickActionButtons||[]},a=_.by(D.quickActionButtonsContainer,function(){return _.F(f0B,{data:h})},"Mm");
D.addOnDisposeCallback(function(){v.setFullscreenQuickActions(void 0);a()})}else _.yR(new _.XH("setFullscreenQuickActions not defined",{playerApi:Object.keys(v),
isReady:v.isReady(),appState:v.getAppState()}))},zjf=function(D,v){if(!D.playerOverlayVideoDetailsRendererContainer)if(v.setPlayerOverlayVideoDetailsRenderer){D.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
v.setPlayerOverlayVideoDetailsRenderer(D.playerOverlayVideoDetailsRendererContainer);var h=_.by(D.playerOverlayVideoDetailsRendererContainer,function(){return _.F(MAB,{data:D.playerOverlayVideoDetailsRenderer})},"Nm");
D.addOnDisposeCallback(function(){v.setPlayerOverlayVideoDetailsRenderer(void 0);h()})}else _.yR(new _.XH("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(v),
isReady:v.isReady(),appState:v.getAppState()}))};_.AG=function(D){_.AN.call(this);var v=this;this.JSC$22962_watchApi=D;this.JSC$22962_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;D=_.Oe(_.Gb(),_.OA,function(h){v.onFullscreenChanged(h)});
this.addOnDisposeCallback(D);D=_.Oe(_.Gb(),_.ma,function(h){v.onWatchScroll(h)});
this.addOnDisposeCallback(D);_.g("kevlar_watch_while_v2")&&(D=_.Oe(_.Gb(),_.eq,function(h){Udm(v,h)}),this.addOnDisposeCallback(D));
L9H(this);ZJf(this);EfQ();this.onWatchScroll(_.ma(_.Gb().getState()));_.nJ("START_IN_FULL_WINDOW_MODE")&&this.JSC$22962_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.J(_.AG,_.AN);var L9H=function(D){D.JSC$22962_watchApi.registerActionHandler("yt-fullscreen-change-action",function(v){var h=D.JSC$22962_watchApi.isActive();v&&!h||_.Gb().dispatch(_.oG({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!v}}))});
D.addOnDisposeCallback(function(){D.JSC$22962_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},ZJf=function(D){var v,h;
_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$22962_watchApi.playerApi,2);v=a.yieldResult;h=function(){D.onFullerscreenEduClicked()};
v.addEventListener("onFullerscreenEduClicked",h);D.addOnDisposeCallback(function(){v.removeEventListener("onFullerscreenEduClicked",h)});
_.YI(a)})};
_.AG.prototype.onFullscreenChanged=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return v.isFullscreen=!!_.xE(),a.yield(v.JSC$22962_watchApi.playerApi,2);h=a.yieldResult;v.JSC$22962_miniplayerActive||h.setFauxFullscreen(v.isFullscreen);if(D&&(v.JSC$22962_watchApi.focusOnPlayer(),!v.fullerscreenEduButtonShownThisPlayback)){v.fullerscreenEduButtonShownThisPlayback=!0;var Q=_.nq("yt-fullerscreen-edu-button-shown-count")||0;_.eL("yt-fullerscreen-edu-button-shown-count",Q+1,31536E3);
v.updateFullerscreenEduButtonSubtleModeState()}_.YI(a)})};
var Udm=function(D,v){var h;_.M(function(a){if(a.nextAddress==1)return D.JSC$22962_miniplayerActive=v,a.yield(D.JSC$22962_watchApi.playerApi,2);h=a.yieldResult;h.setFauxFullscreen(!D.JSC$22962_miniplayerActive&&D.isFullscreen);_.YI(a)})};
_.AG.prototype.onWatchScroll=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1)return _.g("external_fullscreen_with_edu")?Q.yield(v.JSC$22962_watchApi.playerApi,2):Q.return();h=Q.yieldResult;a=D<=0;v.shouldShowFullerscreenEdu!==a&&(v.shouldShowFullerscreenEdu=a,h.updateFullerscreenEduButtonVisibility(!v.shouldShowFullerscreenEdu));_.YI(Q)})};
_.AG.prototype.onFullerscreenEduClicked=function(){this.JSC$22962_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var D=_.nq("yt-fullerscreen-edu-button-click-count")||0;_.eL("yt-fullerscreen-edu-button-click-count",D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.AG.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var D=this,v,h,a,Q,G,x;return _.M(function(f){if(f.nextAddress==1)return v=_.nq("yt-fullerscreen-edu-button-click-count")||0,h=_.nq("yt-fullerscreen-edu-button-shown-count")||0,a=_.oZ("external_fullscreen_button_click_threshold"),Q=_.oZ("external_fullscreen_button_shown_threshold"),G=v>=a||h>=Q,f.yield(D.JSC$22962_watchApi.playerApi,2);x=f.yieldResult;x.updateFullerscreenEduButtonSubtleModeState(G);_.YI(f)})};
_.AG.prototype.disposeInternal=function(){_.AN.prototype.disposeInternal.call(this);var D=_.xE();_.g("kevlar_exit_fullscreen_leaving_watch")&&D&&_.MF(D)};
var EfQ=function(){if(_.g("web_watch_add_viewport_meta_tag")){var D=document.querySelector("meta[name=viewport]"),v=document.head;v&&!D&&(D=document.createElement("meta"),D.name="viewport",D.content="width=device-width, initial-scale=1.0, viewport-fit=cover",v.appendChild(D))}};_.gfd=function(D){_.AN.call(this);var v=this;this.JSC$22965_watchApi=D;this.jobId=0;this.pendingRequestId=void 0;var h=this.JSC$22965_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I0R(v)});
this.addOnDisposeCallback(function(){v.JSC$22965_watchApi.unsubscribeByKey(h)});
I0R(this)};
_.J(_.gfd,_.AN);var k30=function(D){_.HK.cancelJob(D.jobId);D.pendingRequestId=void 0},I0R=function(D){k30(D);
var v=Ufd(D.JSC$22965_watchApi.getWatchNextResponse());if(v){var h=250,a,Q=(a=_.k(v,_.Lq4))==null?void 0:a.initialDelayMs;_.g("web_watch_updated_metadata_server_initial_delay")&&Q&&(h=Q);D.jobId=_.HK.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(v)},h)}};
_.gfd.prototype.fetchUpdatedMetadata=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d;return _.M(function(b){switch(b.nextAddress){case 1:v&&(a={continuation:v});if(!_.g("web_get_updated_metadata_fantasy_panel_continuation_params")){b.jumpTo(2);break}Q=_.xd().resolve(_.De);G="PAsports_fantasy";return b.yield(Q.isVisible(G,!0),3);case 3:b.yieldResult&&(U=(f=(x=Q).getUpdatePanelContinuationData)==null?void 0:(C=f.call(x,G))==null?void 0:C.updatePanelContinuationRequest)&&(a||(a={}),a.clientParams=
{panelContinuationParams:{panelContinuation:U}});case 2:L=_.xd().resolve(_.RX);if(!L)return _.mV(Error("Uo")),b.return();Z={};h.pendingRequestId=Z;return b.yield(_.v4(L,D,a),4);case 4:E=b.yieldResult;if(Z!==h.pendingRequestId)return b.return();B=(I=E)==null?void 0:(S=I.continuation)==null?void 0:S.timedContinuationData;((A=B)==null?0:A.continuation)&&((d=B)==null?0:d.timeoutMs)&&(h.jobId=_.HK.addLowPriorityJob(function(){return h.fetchUpdatedMetadata(D,B.continuation)},B.timeoutMs));
_.YI(b)}})};
_.gfd.prototype.disposeInternal=function(){_.AN.prototype.disposeInternal.call(this);k30(this)};var SMM=_.H(function(D){var v=_.Jd(function(){var a=D.data().videoId;if(D.active())a=_.xZ(a),_.xd().resolve(_.fx).resolveCommand(a);else{var Q=D.playerApi(),G=Q.getAvailableAudioTracks(),x,f,C=(x=D.sourceVideoConfig().audioTracks)==null?void 0:(f=x.find(function(U){return U.isDefaultForSource}))==null?void 0:f.id;
if(G=G.find(function(U){return U.getLanguageInfo().getId()===C}))Q.setAudioTrack(G,!0),Q.setCompositeParam({activeVideoId:a}),D.setActiveSourceId(a)}}),h={};
return _.F("ytw-composite-source-video-overlay",{class:_.S3("ytwCompositeSourceVideoOverlayHost",(h.ytwCompositeSourceVideoOverlayActive=D.active,h.ytwCompositeSourceVideoOverlayInteracting=D.interacting,h)),style:_.NL({left:function(){var a;return((a=D.data().topLeftCornerX)!=null?a:0)*100+"%"},
top:function(){var a;return((a=D.data().topLeftCornerY)!=null?a:0)*100+"%"},
width:function(){var a;return((a=D.data().width)!=null?a:0)*100+"%"},
height:function(){var a;return((a=D.data().height)!=null?a:0)*100+"%"}}),
"on:click":v},_.F("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Om");var J$R=_.H(function(D){var v=_.P(_.lL(function(){var x,f=(x=D.data().sources)==null?void 0:x.find(function(C){return C.isActive});
if(f)return f.videoId})),h=v.next().value,a=v.next().value;
v=_.P(_.Zq(!1,void 0,"yNRzwd"));var Q=v.next().value,G=v.next().value;return _.F("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Jd(function(){G(!0)}),
"on:mouseout":_.Jd(function(){G(!1)})},_.F(_.z,{cond:function(){return D.data().sources},
then:function(x){return _.F(_.Xd,{each:x},function(f){return _.F(SMM,{data:f,active:function(){return f.videoId===h()},
setActiveSourceId:a,interacting:Q,playerApi:D.playerApi,sourceVideoConfig:function(){return LMQ(D.compositeVideoConfig(),f.videoId)}})})}}))},"Pm");_.NMR=function(D){_.AN.call(this);this.JSC$22981_watchApi=D;D=_.P(_.Zq({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=D.next().value;this.setCompositeVideoOverlayRenderer=D.next().value;D=_.P(_.Zq({},void 0,"OlaJpc"));this.compositeVideoConfig=D.next().value;this.setCompositeVideoConfig=D.next().value;pvf(this);l0Y(this)};
_.J(_.NMR,_.AN);var pvf=function(D){var v=D.JSC$22981_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){l0Y(D)});
D.addOnDisposeCallback(function(){D.JSC$22981_watchApi.unsubscribeByKey(v)})},YMH=function(D){var v;
return _.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$22981_watchApi.playerApi,2);v=h.yieldResult;v.setCompositeVideoOverlayRendererComponent(D.container);_.YI(h)})},BMd=function(D){var v;
return _.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$22981_watchApi.playerApi,2);v=h.yieldResult;v.setCompositeVideoOverlayRendererComponent(void 0);_.YI(h)})},c$z=function(D){var v,h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$22981_watchApi.playerApi,2);v=a.yieldResult;D.container=document.createElement("div");h=_.by(D.container,function(){return _.F(J$R,{data:D.compositeVideoOverlayRenderer,compositeVideoConfig:D.compositeVideoConfig,playerApi:v})},"Qm");
D.addOnDisposeCallback(h);_.YI(a)})},l0Y=function(D){var v,h,a,Q,G,x,f,C;
_.M(function(U){return U.nextAddress==1?(v=D.JSC$22981_watchApi.getPlayerResponse(),G=_.k((h=v)==null?void 0:(a=h.overlay)==null?void 0:(Q=a.playerControlsOverlayRenderer)==null?void 0:Q.compositeVideoOverlay,oIH),C=(x=v)==null?void 0:(f=x.playerConfig)==null?void 0:f.compositeVideoConfig,G&&D.setCompositeVideoOverlayRenderer(G),C&&D.setCompositeVideoConfig(C),G&&C?D.container?U.jumpTo(6):U.yield(c$z(D),6):XvB(D)?U.yield(BMd(D),0):U.jumpTo(0)):XvB(D)?U.jumpTo(0):U.yield(YMH(D),0)})},XvB=function(D){var v;
return!((v=D.container)==null||!v.parentElement)};
_.NMR.prototype.disposeInternal=function(){XvB(this)&&BMd(this);_.AN.prototype.disposeInternal.call(this)};_.jtf=function(D){_.AN.call(this);var v=this;this.JSC$22987_watchApi=D;var h=this.JSC$22987_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var a=v.JSC$22987_watchApi.getPlayerResponse();if(a){var Q,G;if(a=_.k((Q=a.endscreen)==null?void 0:(G=Q.endscreenRenderer)==null?void 0:G.hideButton,_.oA)){var x;(x=v.setEndscreenHideButton)==null||x.call(v,a);A$f(v)}}});
this.addOnDisposeCallback(function(){v.JSC$22987_watchApi.unsubscribeByKey(h)});
D=_.P(_.Zq({},void 0,"ER3tqb"));this.endscreenHideButton=D.next().value;this.setEndscreenHideButton=D.next().value;qMB(this);bJw(this);ddM(this)};
_.J(_.jtf,_.AN);
var A$f=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return D.creatorEndscreenHideButtonContainer?a.return():a.yield(D.JSC$22987_watchApi.playerApi,2);v=a.yieldResult;D.creatorEndscreenHideButtonContainer=document.createElement("div");_.vl(D.creatorEndscreenHideButtonContainer,!1);v.setCreatorEndscreenHideButton(D.creatorEndscreenHideButtonContainer);h=_.by(D.creatorEndscreenHideButtonContainer,function(){return _.F(_.$$,{data:D.endscreenHideButton,useOutlinedIcon:!0})},"Rm");
D.addOnDisposeCallback(function(){h();var Q;(Q=v)==null||Q.setCreatorEndscreenHideButton(void 0)});
_.YI(a)})},qMB=function(D){var v,h;
_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$22987_watchApi.playerApi,2);v=a.yieldResult;h=function(){D.creatorEndscreenHideButtonContainer&&_.vl(D.creatorEndscreenHideButtonContainer,!0)};
v.addEventListener("endscreenelementshown",h);D.addOnDisposeCallback(function(){var Q;(Q=v)==null||Q.removeEventListener("endscreenelementshown",h)});
_.YI(a)})},bJw=function(D){var v=function(){D.creatorEndscreenHideButtonContainer&&_.vl(D.creatorEndscreenHideButtonContainer,!1)},h=D.JSC$22987_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",v),a=D.JSC$22987_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",v);
D.addOnDisposeCallback(function(){D.JSC$22987_watchApi.unsubscribeByKey(h);D.JSC$22987_watchApi.unsubscribeByKey(a)})},ddM=function(D){D.JSC$22987_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(v){var h=_.k(v,V_o);
D.JSC$22987_watchApi.playerApi.then(function(a){a==null||a.setCreatorEndscreenVisibility(!!h.hide)})});
D.addOnDisposeCallback(function(){D.JSC$22987_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.mdQ=function(D){_.AN.call(this);this.JSC$22993_watchApi=D;stH(this)};
_.J(_.mdQ,_.AN);var stH=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$22993_watchApi.playerApi,2);v=a.yieldResult;h=function(Q){_.Gb().dispatch(_.oG({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Q}}))};
v.addEventListener("onRetroModeChanged",h);D.addOnDisposeCallback(function(){v.removeEventListener("onRetroModeChanged",h)});
_.YI(a)})};var pdQ=0,ye=0,N0M=0;var HJd;HJd=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.q7=function(D){_.AN.call(this);this.JSC$22998_watchApi=D;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;y$w(this)};
_.J(_.q7,_.AN);
var y$w=function(D){var v,h,a;_.M(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$22998_watchApi.playerApi,2);v=Q.yieldResult;if(D.isDisposed())return Q.return();D.sessionStorage=_.EJZ("yt-sleep-timer");D.sessionStorage||_.yR(new _.XH("SessionStorage for Sleep Timer is undefined."));((h=D.sessionStorage)==null?void 0:h.get("yt-sleep-timer"))==="true"&&(c3Y(),(a=D.sessionStorage)==null||a.remove("yt-sleep-timer"),v.syncVolume());wvY(D,v);ejQ(D,v);nfH(D,v);_.YI(Q)})},wvY=function(D,v){var h=function(U){D.onSleepTimerSettingsChanged(U,
v)},a=function(U){D.onPlayerStateChange(U,v)},Q=function(){D.onLoopChange(v)},G=function(){D.onCloseMiniplayer(v)},x=function(){J33(v,(0,_.xz)(),Xdo(v),D.selectedOption==="End of video",v.getPlayerState()!==1)},f=function(){D.onSeekComplete(v)},C=function(){_.HK.cancelJob(ye);
var U=v.getCurrentTime()>=v.getDuration(),L=D.selectedOption==="End of video"||D.selectedOption==="End of playlist"&&!goY(D.playlistId);U&&L&&OJo(D,v)};
v.addEventListener("onSleepTimerSettingsChanged",h);v.addEventListener("onLoopChange",Q);v.addEventListener("onLoopRangeChange",Q);v.addEventListener("onStateChange",a);v.addEventListener("onCloseMiniplayer",G);v.addEventListener("onSleepTimerFeatureAvailable",x);v.addEventListener("SEEK_COMPLETE",f);v.addEventListener("onAdStart",C);D.addOnDisposeCallback(function(){v.removeEventListener("onSleepTimerSettingsChanged",h);v.removeEventListener("onLoopChange",Q);v.removeEventListener("onLoopRangeChange",
Q);v.removeEventListener("onStateChange",a);v.removeEventListener("onCloseMiniplayer",G);v.removeEventListener("onSleepTimerFeatureAvailable",x);v.removeEventListener("SEEK_COMPLETE",f);v.removeEventListener("onAdStart",C)})},ejQ=function(D,v){var h=D.JSC$22998_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var a=v.getVideoData().video_id,Q,G=(Q=Eof(D.JSC$22998_watchApi))==null?void 0:Q.playlistId;
D.pauseAutonavPlayback&&(v.pauseVideo(),v.syncVolume(),D.pauseAutonavPlayback=!1);if(D.selectedOption==="End of video"&&a!==D.videoId)bk(D,v);else{if(D.selectedOption==="End of playlist"){Q=goY(D.playlistId);if(G!==D.playlistId){bk(D,v);break a}Q?Q&&K90(D,v):TMm(D,v)}D.videoId=a;D.playlistId=G}}});
D.addOnDisposeCallback(function(){D.JSC$22998_watchApi.unsubscribeByKey(h)})},nfH=function(D,v){var h=_.xd().resolve(_.Mv),a=_.Oe(h,_.Zh7,function(G){G&&D.selectedOption!=="Off"&&bk(D,v)}),Q=D.JSC$22998_watchApi.subscribeToActiveChanged(function(G){var x,f;
return _.M(function(C){if(C.nextAddress==1)return C.yield(_.eh().navigationFinishPromise,2);x=!_.s_p();f=_.xd().resolve(_.Ok).isMiniplayerActive();G||!Zzf(D.selectedOption)||f||x||bk(D,v);_.YI(C)})},!1);
h=_.Oe(h,function(G){return G.entities.playlistLoopStateEntity||{}},function(G){G=G===void 0?{}:G;
var x=IfR(D.JSC$22998_watchApi);if(x){var f;((f=G[x])==null?void 0:f.state)==="PLAYLIST_LOOP_STATE_ALL"&&Zzf(D.selectedOption)&&bk(D,v)}});
D.addOnDisposeCallback(a);D.addOnDisposeCallback(h);D.addOnDisposeCallback(Q)};
_.q7.prototype.onSleepTimerSettingsChanged=function(D,v){switch(D){case "Off":this.selectedOption!=="Off"&&bk(this,v);break;case "End of video":case "End of playlist":RjR(this,D,v);break;default:RjR(this,D,v,HJd.get(D))}};
_.q7.prototype.onLoopChange=function(D){(D.getLoopVideo()||D.getLoopRange())&&Zzf(this.selectedOption)&&bk(this,D)};
_.q7.prototype.onCloseMiniplayer=function(D){Zzf(this.selectedOption)&&bk(this,D)};
var RjR=function(D,v,h,a){iJm(D,h);D.selectedOption=v;D.videoId=h.getVideoData().video_id;D.playlistId="";var Q;(Q=D.sessionStorage)==null||Q.set("yt-sleep-timer","true");D.adjustmentsCount++;J33(h,(0,_.xz)(),Xdo(h),D.selectedOption==="End of video");if(D.selectedOption==="End of video")TMm(D,h),W9d(D,h);else if(D.selectedOption==="End of playlist"){W9d(D,h);var G,x;D.playlistId=(x=(G=Eof(D.JSC$22998_watchApi))==null?void 0:G.playlistId)!=null?x:"";goY(D.playlistId)||TMm(D,h)}else a&&(D.presetFadeSchedulerId=
_.b7(_.HK,function(){YQw(h,15E3)},a-15E3),D.presetPauseSchedulerId=_.b7(_.HK,function(){OJo(D,h)},a),lfo(h,(0,_.xz)(),a))},OJo=function(D,v){if(D.JSC$22998_watchApi.isActive()){var h={dismissDialogEndpoint:{}};
var a={commandExecutorCommand:{commands:[h,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};h={buttonViewModel:{title:_.p1("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:h}}};a={buttonViewModel:{title:_.p1("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:a}}};var Q={dialogHeaderViewModel:{headline:{content:_.p1("SLEEP_TIMER_ENDED_TITLE")}}},
G={basicContentViewModel:{paragraphs:[{text:{content:_.p1("SLEEP_TIMER_ENDED_TEXT")}}]}};h={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Q,content:G,footer:{panelFooterViewModel:{primaryButton:h,secondaryButton:a,shouldHideDivider:!0}}}}}}};_.xd().resolve(_.fx).resolveCommand(h,{form:{element:D}})}else c3Y();tAm(D,!1);r$H(D,v);v.pauseVideo();_.Jp.getInstance().getState()===2&&v.getPlayerState()===5&&(D.pauseAutonavPlayback=!0)},bk=function(D,v){tAm(D,!0);
r$H(D,v);c3Y()},r$H=function(D,v){iJm(D,v);
D.selectedOption="Off";D.videoId="";D.playlistId="";D.adjustmentsCount=0;var h;(h=D.sessionStorage)==null||h.remove("yt-sleep-timer");_.HK.cancelJob(pdQ);v.resetSleepTimerMenuSettings()},tAm=function(D,v){v={timer_length_adjustment_times_during_session:D.adjustmentsCount-1,
is_session_cancelled:v};switch(D.selectedOption){case "Off":v.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":v.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":v.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:v.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",v.option_duration_in_minutes=HJd.get(D.selectedOption)/6E4}_.jj("sleepTimerSessionFinishEvent",v)};
_.q7.prototype.onPlayerStateChange=function(D,v){D===1?J33(v,(0,_.xz)(),Xdo(v),this.selectedOption==="End of video"):D===0?(_.HK.cancelJob(ye),v.setVideoTimeLeft(SQB(0,0))):D===2&&_.HK.cancelJob(ye);this.selectedOption==="End of video"?D===0?OJo(this,v):D===2&&B0w(v):this.selectedOption!=="End of playlist"||goY(this.playlistId)||(D===0?OJo(this,v):D===2&&B0w(v))};
_.q7.prototype.onSeekComplete=function(D){D.getPlayerState()===2&&J33(D,(0,_.xz)(),Xdo(D),this.selectedOption==="End of video",!0)};
_.q7.prototype.onCueRangeEnter=function(D,v){D==="sleep-timer-fade-audio"&&YQw(v,(v.getDuration()-v.getProgressState().current)*1E3)};
_.q7.prototype.onCueRangeExit=function(D,v){D==="sleep-timer-fade-audio"&&v.getPlayerState()!==0&&B0w(v,!0)};
var TMm=function(D,v){v.addCueRange("sleep-timer-fade-audio",v.getDuration()-15,v.getDuration());v.addEventListener("onCueRangeEnter",function(h){D.onCueRangeEnter(h,v)});
v.addEventListener("onCueRangeExit",function(h){D.onCueRangeExit(h,v)})},K90=function(D,v){v.removeCueRange("sleep-timer-fade-audio");
v.removeEventListener("onCueRangeEnter",function(h){D.onCueRangeEnter(h,v)});
v.removeEventListener("onCueRangeExit",function(h){D.onCueRangeExit(h,v)})},iJm=function(D,v){Zzf(D.selectedOption)?K90(D,v):(_.HK.cancelJob(D.presetPauseSchedulerId),_.HK.cancelJob(D.presetFadeSchedulerId),D.presetPauseSchedulerId=0,D.presetFadeSchedulerId=0);
B0w(v,!0)},W9d=function(D,v){v.setLoop(!1);
v.setLoopVideo(!1);v.setLoopRange(null);(D=IfR(D.JSC$22998_watchApi))&&_.xd().resolve(_.Mv).dispatch(_.Xe("playlistLoopStateEntity",D,{key:D,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.hxQ=function(D){_.AN.call(this);this.JSC$23001_watchApi=D;udd(this);DM0(this);vdK(this);D=D.getRoot();if(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-grid")D.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.O3B();_.g("web_watch_log_theater_mode_cookie_state")&&_.l8.get("wide","0")==="1"&&_.f8o("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.J(_.hxQ,_.AN);var udd=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23001_watchApi.playerApi,2);v=a.yieldResult;h=function(Q){aXm(D,!!Q)};
v.addEventListener("SIZE_CLICKED",h);D.addOnDisposeCallback(function(){v.removeEventListener("SIZE_CLICKED",h)});
_.YI(a)})},DM0=function(D){D.JSC$23001_watchApi.registerActionHandler("yt-toggle-theater-mode",function(v,h){aXm(D,v,h===void 0?!0:h)});
D.addOnDisposeCallback(function(){D.JSC$23001_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.hxQ.prototype.getState=function(){return _.n_(_.Gb().getState())};
var aXm=function(D,v,h){h=h===void 0?!0:h;var a,Q,G,x=_.g("enable_player_resize_transition")&&!!D.JSC$23001_watchApi.getWatchNextResponse()&&!((a=D.JSC$23001_watchApi.getWatchNextResponse())==null?0:(Q=a.contents)==null?0:(G=Q.twoColumnWatchNextResults)==null?0:G.conversationBar);_.Ef2(function(){_.Gb().dispatch(_.oG({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:v}}));_.g("theater_mode_scroll_to_top_killswitch")||D.JSC$23001_watchApi.scrollWatchTo(0,!1);_.xE()&&_.g("external_fullscreen")&&_.MF(document.documentElement);
vdK(D);h&&_.NM("wide",v?"1":"0",-1);_.zU(D.JSC$23001_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);D.JSC$23001_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:v});v&&_.O3B()},{shouldWrap:x})},vdK=function(D){var v;
_.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$23001_watchApi.playerApi,2);v=h.yieldResult;v.setSizeStyle(!0,D.getState());_.YI(h)})};var GiB=function(D){_.AN.call(this);var v=this;this.playerApi=D;this.timeToPanelSyncKeyMap={};var h;if(D==null?0:(h=D.isReady)==null?0:h.call(D)){h=_.Oe(_.xd().resolve(_.Mv),function(Q){return Q.entities.timedMarkersListSyncEntity||{}},function(Q,G){Q=Q===void 0?{}:Q;
G=G===void 0?{}:G;for(var x=_.P(Object.keys(G)),f=x.next();!f.done;f=x.next())f=f.value,Q[f]!==G[f]&&$MK(v,G[f]);G=_.P(Object.keys(Q));for(x=G.next();!x.done;x=G.next())x=x.value,f=Q[x],v.timeToPanelSyncKeyMap[x]&&QZY(v,f)});
this.addOnDisposeCallback(h);var a=function(Q){v.onCueRangeEnter(Q)};
D.addEventListener("onCueRangeEnter",a);this.addOnDisposeCallback(function(){var Q;(Q=D.removeEventListener)==null||Q.call(D,"onCueRangeEnter",a)})}};
_.J(GiB,_.AN);
var QZY=function(D,v){var h,a;if((h=D.playerApi)==null?0:(a=h.isReady)==null?0:a.call(h)){var Q;if((h=v==null?void 0:(Q=v.timedListData)==null?void 0:Q.sections)&&v!=null&&v.key)for(Q=_.P(h),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.timedSyncDataList&&h.sectionId)for(a=0;a<h.timedSyncDataList.length;a++){var G=h.timedSyncDataList[a];G.syncItemId&&D.playerApi.addCueRange(h.sectionId+"_"+v.key+"_"+G.syncItemId,Number(G.videoTimeMs)/1E3,a===h.timedSyncDataList.length-1?0x8000000000000:Number(h.timedSyncDataList[a+
1].videoTimeMs)/1E3)}}},$MK=function(D,v){var h,a;
if((h=D.playerApi)==null?0:(a=h.isReady)==null?0:a.call(h)){var Q;if((h=v==null?void 0:(Q=v.timedListData)==null?void 0:Q.sections)&&v!=null&&v.key)for(Q=_.P(h),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.timedSyncDataList&&h.sectionId){a=_.P(h.timedSyncDataList);for(var G=a.next();!G.done;G=a.next())G=G.value,G.syncItemId&&D.playerApi.removeCueRange(h.sectionId+"_"+v.key+"_"+G.syncItemId)}}};
GiB.prototype.onCueRangeEnter=function(D){for(var v=_.P(Object.keys(this.timeToPanelSyncKeyMap)),h=v.next();!h.done;h=v.next()){h=h.value;var a=_.P(D.split("_"+h+"_")),Q=a.next().value;a=a.next().value;if(Q&&a){D=_.xd().resolve(_.Mv);v=this.timeToPanelSyncKeyMap[h];var G=_.F5c(D.getState(),v);h=VO0(h,Q,a);if(h===-1)break;h={activeSyncId:a,activeItemIndex:h,activeSectionInfo:{sectionIdentifier:Q}};G?D.dispatch(_.sy("markersEngagementPanelSyncEntity",v,h)):D.dispatch(_.Xe("markersEngagementPanelSyncEntity",
v,Object.assign({},{key:v},h)));break}}};
var VO0=function(D,v,h){var a=_.xd().resolve(_.Mv),Q,G;D=(Q=H3m(a.getState(),D))==null?void 0:(G=Q.timedListData)==null?void 0:G.sections;if(!D)return-1;Q=0;G=_.P(D);for(D=G.next();!D.done;D=G.next()){D=D.value;a=D.timedSyncDataList||[];if(D.sectionId===v)return v=a.findIndex(function(x){return x.syncItemId===h}),v===-1?v:Q+v;
Q+=a.length}return-1};_.MOf=function(D){_.AN.call(this);var v=this;this.JSC$23014_watchApi=D;this.unresolvedCommands=[];this.JSC$23014_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(h){P8Q(v,h)});
this.addOnDisposeCallback(function(){v.JSC$23014_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
xMR(this)};
_.J(_.MOf,_.AN);var xMR=function(D){var v;_.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$23014_watchApi.playerApi,2);v=h.yieldResult;if(D.isDisposed())return h.return();D.timedSyncObserver=new GiB(v);D.unresolvedCommands.length&&(D.unresolvedCommands.forEach(function(a){return P8Q(D,a)}),D.unresolvedCommands=[]);
_.Ia(D,D.timedSyncObserver);_.YI(h)})},P8Q=function(D,v){if(D.timedSyncObserver){var h=_.k(v,xSR);
if(h&&h.timedSyncEntityKey&&h.panelSyncEntityKey){D=D.timedSyncObserver;v=h.timedSyncEntityKey;var a=h.panelSyncEntityKey;h=!!h.isEnabled;h=h===void 0?!0:h;var Q=_.xd().resolve(_.Mv);Q=H3m(Q.getState(),v);h?D.timeToPanelSyncKeyMap[v]||(D.timeToPanelSyncKeyMap[v]=a,QZY(D,Q)):(delete D.timeToPanelSyncKeyMap[v],$MK(D,Q))}}else D.unresolvedCommands.push(v)};var fXo=_.H(function(D){var v=D.data,h=D.maybeLogSmartSkipClientData,a=null,Q=null,G=_.g("web_enable_auto_focus_for_timely_action_button"),x=function(){a=document.activeElement},f=function(){v().smartSkipMetadata&&(a=document.activeElement,_.$Td(function(){return Q}))},C=function(L){if(v().smartSkipMetadata&&(!L||L.key!=="Enter")){a&&a.isConnected&&(_.$Td(function(){return a}),a=null);
var Z;(Z=Q)==null||Z.blur()}};
D=_.Jd(function(){h==null||h(!0,v());return!1});
var U=_.ML(_.eb(function(){return v().rendererContext},{onTap:function(L,Z){Z({disableClickTracking:!0})}}),_.Mb({visibilityCallback:function(L){if(G)L?Q&&v().smartSkipMetadata&&(f(),document.addEventListener("focusin",x)):(document.removeEventListener("focusin",x),C());
else if(L){L=_.yL(v().rendererContext);var Z=Number(v().maxVisibleDurationMilliseconds),E,I=(E=_.k(v().rendererContext,_.BO))==null?void 0:E.label;L&&Z&&I&&(E={label:I,command:L,durationMs:Z},_.xd().resolve(_.vI).enqueue(E))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.dM(function(){if(G){var L;if((Q=(L=U.value)==null?void 0:L.querySelector("button"))&&v().smartSkipMetadata){var Z;(Z=U.value)==null||Z.addEventListener("keydown",C)}}});
_.dq(function(){G&&(Q&&v().smartSkipMetadata&&Q.removeEventListener("keydown",C),document.removeEventListener("focusin",x),C())});
return _.F("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:U,"on:click":D},_.F(_.c4,{data:function(){return v().content}},{buttonViewModel:_.s$}))},"Sm");var C8K=_.H(function(D){var v=D.data,h=D.playerApi,a=_.xd().resolve(_.V$K);D=_.P(_.lL(function(){v()}));
var Q=D.next().value,G=D.next().value,x=function(){return bzz(v(),Q())},f=function(U,L){var Z,E,I=(Z=_.k(L==null?void 0:L.rendererContext,_.Xp))==null?void 0:(E=Z.loggingDirectives)==null?void 0:E.trackingParams;
if((L=L==null?void 0:L.smartSkipMetadata)&&L.loggingData&&(E=L.loggingData,L=E.algorithmId,Z=E.startMilliseconds,E=E.endMilliseconds,L&&Z!==void 0&&E!==void 0)){var S,B;U={smartSkipData:Object.assign({},{versionName:L,startMediaTimeMs:Z,endMediaTimeMs:E},U&&{userInteractionMediaTimeMs:(Math.floor(((S=_.Mq())==null?void 0:(B=S.getPlayer())==null?void 0:B.getCurrentTime())||0)*1E3).toString()})};S=_.wd();var A;I&&(A=_.d4(I));S&&A&&_.$Z(S,A,U)}},C=function(U,L){var Z=bzz(v(),U);
if(Z){var E=_.k(Z,qQw),I;if(I=L)I=h(),Z=_.k(Z,qQw),I=Z!=null&&Z.smartSkipMetadata?!(I==null?0:I.isSameMarkerTypeVisible((Z==null?void 0:Z.smartSkipMetadata.markerKey)||"")):!0;if(I){var S,B;(E==null?0:(S=E.smartSkipMetadata)==null?0:(B=S.loggingData)==null?0:B.isCounterfactual)||(f(!1,E),G(U))}else L||Q()!==U||G(void 0)}};
_.bW(function(){var U=v().timelyActions;if(U){U=_.P(U);for(var L=U.next();!L.done;L=U.next()){L=_.k(L.value,qQw);var Z=void 0;(Z=L)!=null&&Z.cueRangeId&&a.timelyActionsMap.set(L.cueRangeId,C)}_.dq(function(){a.timelyActionsMap.clear()})}},"PSaw4c");
return _.F("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.F(_.c4,{data:x},{timelyActionViewModel:function(U){return _.F(fXo,{data:U.data,maybeLogSmartSkipClientData:function(){f(!0,_.k(x(),qQw))}})}}))},"Um");_.FbK=function(D){_.AN.call(this);this.JSC$23026_watchApi=D;D=_.P(_.Zq({},void 0,"UN7k5e"));this.timelyActionsOverlay=D.next().value;this.setTimelyActionsOverlay=D.next().value;odd(this)};
_.J(_.FbK,_.AN);var odd=function(D){var v,h,a,Q;_.M(function(G){if(G.nextAddress==1)return zxM(D),UMQ(D),D.timelyActionsContainer=document.createElement("div"),G.yield(D.JSC$23026_watchApi.playerApi,2);v=G.yieldResult;(a=(h=v).insertTimelyActionUi)==null||a.call(h,D.timelyActionsContainer);Q=_.by(D.timelyActionsContainer,function(){return _.F(C8K,{data:D.timelyActionsOverlay,playerApi:v})},"Vm");
D.addOnDisposeCallback(Q);_.YI(G)})},UMQ=function(D){var v=D.JSC$23026_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zxM(D)});
D.addOnDisposeCallback(function(){D.JSC$23026_watchApi.unsubscribeByKey(v)})},zxM=function(D){var v=D.JSC$23026_watchApi.getWatchNextResponse();
if(v){var h,a;if(v=_.k((h=v.playerOverlays)==null?void 0:(a=h.playerOverlayRenderer)==null?void 0:a.timelyActionsOverlayViewModel,M_Q)){var Q;(Q=D.setTimelyActionsOverlay)==null||Q.call(D,v)}}};_.Zxw=function(D){_.AN.call(this);this.JSC$23030_watchApi=D;LbQ(this)};
_.J(_.Zxw,_.AN);var LbQ=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23030_watchApi.playerApi,2);v=a.yieldResult;h=function(Q){_.pb.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.k(Q,_.aJQ)},popupType:"TOAST"}})};
v.addEventListener("onYtShowToast",h);D.addOnDisposeCallback(function(){v.removeEventListener("onYtShowToast",h)});
_.YI(a)})};var Ed3,kiQ,NlY,IXf,gdz,lX0,JOQ,pVB,Yzf,cOQ;Ed3=!1;_.SzB=function(D){_.AN.call(this);this.JSC$23033_watchApi=D;this.fullscreen=this.theater=!1;IXf(this);gdz(this);kiQ(this)};
_.J(_.SzB,_.AN);kiQ=function(D){var v,h,a;_.M(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$23033_watchApi.playerApi,2);v=Q.yieldResult;if(D.isDisposed())return Q.return();h=D.JSC$23033_watchApi.getElement("CINEMATICS");if(!h)return Q.return();D.JSC$23033_cinematicController=new _.g_(h,v);_.Ia(D,D.JSC$23033_cinematicController);_.pmY(D.JSC$23033_cinematicController);JOQ(D,_.hbO());a=D.JSC$23033_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(G){pVB(D,G)});
D.addOnDisposeCallback(function(){D.JSC$23033_watchApi.unsubscribeByKey(a)});
lX0(D);pVB(D,D.JSC$23033_cinematicController.isAllowed());NlY(D);Yzf(D);_.YI(Q)})};
NlY=function(D){D.fullscreen=_.OA(_.Gb().getState());D.theater=_.n_(_.Gb().getState());_.Blf(D,D.fullscreen,D.theater);var v=_.Oe(_.Gb(),_.OA,function(a){D.fullscreen=a;_.Blf(D,D.fullscreen,D.theater)}),h=_.Oe(_.Gb(),_.n_,function(a){D.theater=a;
_.Blf(D,D.fullscreen,D.theater)});
D.addOnDisposeCallback(v);D.addOnDisposeCallback(h)};
IXf=function(D){var v=D.JSC$23033_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lX0(D)});
D.addOnDisposeCallback(function(){D.JSC$23033_watchApi.unsubscribeByKey(v)})};
gdz=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23033_watchApi.playerApi,2);v=a.yieldResult;h=function(Q){JOQ(D,Q)};
v.addEventListener("cinematicSettingsToggleChange",h);D.addOnDisposeCallback(function(){v.removeEventListener("cinematicSettingsToggleChange",h)});
_.YI(a)})};
lX0=function(D){var v=D.JSC$23033_watchApi.getWatchNextResponse(),h;v=_.k(v==null?void 0:(h=v.pageVisualEffects)==null?void 0:h[0],_.vz);var a;(a=D.JSC$23033_cinematicController)==null||_.NJ3(a,v)};
JOQ=function(D,v){var h;(h=D.JSC$23033_cinematicController)==null||_.lJo(h,v);cOQ(D)};
pVB=function(D,v){var h;_.M(function(a){if(a.nextAddress==1)return _.g("kevlar_watch_cinematics_invisible")&&(v=!1),a.yield(D.JSC$23033_watchApi.playerApi,2);h=a.yieldResult;h.updateCinematicSettings(v);cOQ(D);_.YI(a)})};
Yzf=function(D){var v=_.YE();if(_.g("kevlar_measure_ambient_mode_idle")&&!v.getFlag(192)&&!Ed3){Ed3=!0;var h=_.c1(_.HK,function(){_.xd().resolve(_.LO$).start(1E4)},5E3);
D.addOnDisposeCallback(function(){_.HK.cancelJob(h);_.xd().resolve(_.LO$).stop()})}};
_.Blf=function(D,v,h){D.fullscreen=v;D.theater=h;var a;(a=D.JSC$23033_cinematicController)==null||a.setFullscreen(D.fullscreen,D.theater);if(_.g("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(D.theater||D.fullscreen){var Q;(Q=D.JSC$23033_cinematicController)==null||_.YFR(Q)}else if((D=D.JSC$23033_cinematicController)!=null){var G;(G=D.currentCinematicEffect)==null||G.pause()}};
cOQ=function(D){if(_.g("web_cinematic_theater_mode")||_.g("web_cinematic_fullscreen")){var v;D.JSC$23033_watchApi.getRoot().toggleCinematicsActive(!((v=D.JSC$23033_cinematicController)==null||!v.isEnabled()))}};_.bxM=function(D){_.AN.call(this);var v=this;this.JSC$23036_watchApi=D;this.commentsReady=!1;this.setCommentsJobId=0;D=_.Oe(_.Gb(),_.ma,function(){XVf(v)});
this.addOnDisposeCallback(D);var h=this.JSC$23036_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){AOB(v)}),a=this.JSC$23036_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){AOB(v)});
this.addOnDisposeCallback(function(){v.JSC$23036_watchApi.unsubscribeByKey(h);v.JSC$23036_watchApi.unsubscribeByKey(a)});
var Q=function(){_.g("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&qzY(v,"false")};
this.JSC$23036_watchApi.getRoot().addEventListener("yt-page-data-will-update",Q);this.addOnDisposeCallback(function(){v.JSC$23036_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Q)});
AOB(this)};
_.J(_.bxM,_.AN);var AOB=function(D){D.commentsReady=!1;_.HK.cancelJob(D.setCommentsJobId);D.setCommentsJobId=_.c1(_.HK,function(){XVf(D)},1E3)},XVf=function(D){if(!D.commentsReady){_.ea("cmi");
_.HK.cancelJob(D.setCommentsJobId);var v,h,a,Q,G=(v=D.JSC$23036_watchApi.getWatchNextResponse())==null?void 0:(h=v.contents)==null?void 0:(a=h.twoColumnWatchNextResults)==null?void 0:(Q=a.results)==null?void 0:Q.results.contents;v=void 0;if(G&&G.length)for(G=_.P(G),h=G.next();!h.done;h=G.next())if(h=h.value,Q=a=void 0,((a=h)==null?void 0:(Q=a.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"){_.g("web_watch_provide_undefined_comments")?v=h.itemSectionRenderer:D.JSC$23036_watchApi.provideRenderingData("COMMENTS",
h.itemSectionRenderer);qzY(D,"true");break}_.g("web_watch_provide_undefined_comments")&&D.JSC$23036_watchApi.provideRenderingData("COMMENTS",v);D.commentsReady=!0;D.JSC$23036_watchApi.dispatchEvent("yt-watch-comments-ready")}},qzY=function(D,v){var h;
(h=D.JSC$23036_watchApi.getElement("COMMENTS"))==null||h.setAttribute("canScheduleJobs",v)};_.Hx0=function(D){_.AN.call(this);var v=this;this.JSC$23039_watchApi=D;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.g("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.g("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.g("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.oZ("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)dMz(this);
else{var h=this.JSC$23039_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){jZw(v);dA(v)}),a=this.JSC$23039_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){j0(v);
dA(v)});
this.JSC$23039_watchApi.getRoot().is==="ytd-watch-grid"&&_.g("swatcheroo_pbs_load_grid")&&(sZH(this),mM3(this));this.addOnDisposeCallback(function(){v.JSC$23039_watchApi.unsubscribeByKey(h);v.JSC$23039_watchApi.unsubscribeByKey(a);_.HK.cancelJob(v.provideRichGridJobId)});
jZw(this);j0(this)}};
_.J(_.Hx0,_.AN);var dMz=function(D){var v=D.JSC$23039_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){D.providePlayerJobId=_.LK(_.HK,function(){jZw(D);dA(D)},D.provideAllDataDelayMs)}),h=D.JSC$23039_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){D.provideWatchNextJobId=_.LK(_.HK,function(){j0(D);
dA(D)},D.provideAllDataDelayMs)}),a=D.JSC$23039_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){D.provideWatchNextJobId=_.LK(_.HK,function(){j0(D);
dA(D)},D.provideAllDataDelayMs)});
D.JSC$23039_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.c1(_.HK,function(){jZw(D);j0(D);dA(D)},100)});
D.JSC$23039_watchApi.addPageDisposeJob(function(){_.HK.cancelJob(D.provideWatchNextJobId);_.HK.cancelJob(D.providePlayerJobId)});
D.addOnDisposeCallback(function(){D.JSC$23039_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");D.JSC$23039_watchApi.unsubscribeByKey(v);D.JSC$23039_watchApi.unsubscribeByKey(h);D.JSC$23039_watchApi.unsubscribeByKey(a);_.HK.cancelJob(D.providePlayerJobId);_.HK.cancelJob(D.provideWatchNextJobId)});
jZw(D);j0(D)},jZw=function(D){var v=D.JSC$23039_watchApi.getPlayerResponse(),h,a,Q=(a=v==null?void 0:(h=v.playabilityStatus)==null?void 0:h.messageRenderers)!=null?a:[],G,x;
v=(x=v==null?void 0:(G=v.playabilityStatus)==null?void 0:G.messages)!=null?x:[];G=_.P(v);for(x=G.next();!x.done;x=G.next())Q.push({alertRenderer:{text:_.aX(x.value),type:"WARNING"}});D.JSC$23039_watchApi.provideRenderingData("ALERTS",Q)},j0=function(D){var v=[],h,a,Q,G=D.JSC$23039_watchApi.getWatchNextResponse(),x,f,C,U,L=G==null?void 0:(x=G.contents)==null?void 0:(f=x.twoColumnWatchNextResults)==null?void 0:(C=f.results)==null?void 0:(U=C.results)==null?void 0:U.contents;
if(L)for(x=_.P(L),f=x.next();!f.done;f=x.next())if(f=f.value,f.videoPrimaryInfoRenderer)var Z=f;else if(f.videoSecondaryInfoRenderer){var E=f;U=C=void 0;f=Object.assign({},(C=f.videoSecondaryInfoRenderer)==null?void 0:(U=C.metadataRowContainer)==null?void 0:U.metadataRowContainerRenderer);if(f.rows&&f.collapsedItemCount!==void 0){f.rows=f.rows.slice(0,f.collapsedItemCount).filter(function(VK){return!!VK.richMetadataRowRenderer});
f.collapsedItemCount=f.rows.length;var I={metadataRowContainerRenderer:f}}}else if(f.merchandiseShelfRenderer)var S=f;else if(f.ticketShelfRenderer)var B=f;else if(f.expandableMetadataRenderer)var A=f;else if(f.itemSectionRenderer)if(C=f.itemSectionRenderer.contents,U=void 0,D.directlyProvideComments&&((U=f.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section")_.ea("cmi"),D.JSC$23039_watchApi.provideRenderingData("COMMENTS",f.itemSectionRenderer);else if(C)for(f=_.P(C),C=
f.next();!C.done;C=f.next())if(C=C.value,C.commentsEntryPointHeaderRenderer)var d=C;else if(C.clarificationRenderer||C.infoPanelContainerRenderer||C.infoPanelContentRenderer||C.emergencyOneboxRenderer){v.push(C);var b=b||!!E}else C.limitedStateMessageRenderer?a=C:C.videoMetadataCarouselViewModel&&(Q=C);if(_.g("web_watch_merch_in_sd_when_ticket_shelf_present")&&S&&B){var W=S;S=void 0}if(D.provideWatchNextSecondaryResults){var K,O,R;D.JSC$23039_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
G==null?void 0:(K=G.contents)==null?void 0:(O=K.twoColumnWatchNextResults)==null?void 0:(R=O.secondaryResults)==null?void 0:R.secondaryResults)}if(D.JSC$23039_watchApi.getRoot().is==="ytd-watch-grid"){var vA,f7;D.JSC$23039_watchApi.provideRenderingData("LIVE_CHAT",G==null?void 0:(vA=G.contents)==null?void 0:(f7=vA.twoColumnWatchNextResults)==null?void 0:f7.conversationBar)}var xL,kL,Z4,S2;(K=G==null?void 0:(xL=G.contents)==null?void 0:(kL=xL.twoColumnWatchNextResults)==null?void 0:(Z4=kL.secondaryResults)==
null?void 0:(S2=Z4.secondaryResults)==null?void 0:S2.offerModule)&&(K.donationShelfRenderer||K.donationUnavailableRenderer)&&D.JSC$23039_watchApi.getRoot().is!=="ytd-watch-grid"&&(h=K);xL=D.JSC$23039_watchApi.getPlayerResponse();if(!xL||!_.xQ8(xL.playabilityStatus,G==null?void 0:G.playerOverlays)){var s8;if(G==null?0:(s8=G.contents)==null?0:s8.singleColumnWatchNextResults){var Xf,dJ;var R4=G==null?void 0:(Xf=G.contents.singleColumnWatchNextResults.results)==null?void 0:(dJ=Xf.results)==null?void 0:
dJ.contents}else{var sF,rc,I4,q1;s8=!!(L==null?0:(sF=L[0])==null?0:(rc=sF.itemSectionRenderer)==null?0:(I4=rc.contents)==null?0:(q1=I4[0])==null?0:q1.backgroundPromoRenderer);var jt,rr;sF=!!(G==null?0:(jt=G.contents)==null?0:(rr=jt.twoColumnWatchNextResults)==null?0:rr.secondaryResults);s8&&!sF&&(R4=L)}}L=v[0];jt=v[1];b&&v.length===1&&(jt=L,L=void 0);D.JSC$23039_watchApi.provideRenderingData("PRIMARY_INFO",Z);D.JSC$23039_watchApi.provideRenderingData("SECONDARY_INFO",E);D.JSC$23039_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
d);D.JSC$23039_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Q);D.JSC$23039_watchApi.provideRenderingData("CLARIFICATION",L);D.JSC$23039_watchApi.provideRenderingData("RICH_METADATA",I);D.JSC$23039_watchApi.provideRenderingData("MERCH_SHELF",S);_.g("web_watch_merch_in_sd_when_ticket_shelf_present")&&D.JSC$23039_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",W);D.JSC$23039_watchApi.provideRenderingData("TICKET_SHELF",B);D.JSC$23039_watchApi.provideRenderingData("LIMITED_STATE",a);D.JSC$23039_watchApi.getRoot().is!==
"ytd-watch-grid"&&D.JSC$23039_watchApi.provideRenderingData("DONATION_SHELF",h);D.JSC$23039_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",R4);D.JSC$23039_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",jt);D.JSC$23039_watchApi.provideRenderingData("EXPANDABLE_METADATA",A);if(D.swatcherooProvideAllDataOnScheduledJob){var Zb,VO,Pm,Yp,C3,ZJ;Z=G==null?void 0:(Zb=G.contents)==null?void 0:(VO=Zb.twoColumnWatchNextResults)==null?void 0:(Pm=VO.secondaryResults)==null?void 0:(Yp=Pm.secondaryResults)==
null?void 0:(C3=Yp.results)==null?void 0:(ZJ=C3[0])==null?void 0:ZJ.richGridRenderer;D.JSC$23039_watchApi.provideRenderingData("RICH_GRID_RENDERER",Z)}};
_.Hx0.prototype.hasCompanionAds=function(D){var v,h;return(h=D==null?void 0:(v=D.adPlacements)==null?void 0:v.some(function(a){var Q,G,x,f;return(a==null?void 0:(Q=a.adPlacementRenderer)==null?void 0:(G=Q.renderer)==null?void 0:G.actionCompanionAdRenderer)||(a==null?void 0:(x=a.adPlacementRenderer)==null?void 0:(f=x.renderer)==null?void 0:f.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?h:!1};
var dA=function(D){if(!_.g("swaterdoo_ps_wn_handle_ks")){D.swatcherooProvideAllDataOnScheduledJob||mM3(D,3E3);var v=D.JSC$23039_watchApi.getPlayerResponse(),h,a,Q,G,x,f=(h=D.JSC$23039_watchApi.getWatchNextResponse())==null?void 0:(a=h.contents)==null?void 0:(Q=a.twoColumnWatchNextResults)==null?void 0:(G=Q.secondaryResults)==null?void 0:(x=G.secondaryResults)==null?void 0:x.offerModule;v=D.hasCompanionAds(v);var C,U;h=(f==null?void 0:(C=f.tvfilmOfferModuleRenderer)==null?void 0:C.clientShouldSuppressIfCompanionAdDisplayed)||
(f==null?void 0:(U=f.unlimitedOfferModuleRenderer)==null?void 0:U.suppressIfCompanionAds);C=v&&h;D.JSC$23039_watchApi.getRoot().is==="ytd-watch-grid"&&D.JSC$23039_watchApi.provideRenderingData("OFFER_MODULE",C?void 0:f)}},mM3=function(D,v){_.g("swatcheroo_pbs_load_grid")&&(D.provideRichGridJobId&&_.HK.cancelJob(D.provideRichGridJobId),D.provideRichGridJobId=_.LK(_.HK,function(){D.provideRichGridJobId=0;
var h,a,Q,G,x,f,C,U=(h=D.JSC$23039_watchApi.getWatchNextResponse())==null?void 0:(a=h.contents)==null?void 0:(Q=a.twoColumnWatchNextResults)==null?void 0:(G=Q.secondaryResults)==null?void 0:(x=G.secondaryResults)==null?void 0:(f=x.results)==null?void 0:(C=f[0])==null?void 0:C.richGridRenderer;U&&D.JSC$23039_watchApi.provideRenderingData("RICH_GRID_RENDERER",U)},v))},sZH=function(D){var v,h;
_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23039_watchApi.playerApi,2);v=a.yieldResult;h=function(){D.onPlaybackStart()};
v.addEventListener("onPlaybackStartExternal",h);D.addOnDisposeCallback(function(){v.removeEventListener("onPlaybackStartExternal",h)});
_.YI(a)})};
_.Hx0.prototype.onPlaybackStart=function(){mM3(this)};_.wVd=function(D){_.AN.call(this);var v=this;this.JSC$23052_watchApi=D;D.playerApi.then(function(h){v.player=h});
this.gestures=new _.LR(this.JSC$23052_watchApi.getRoot(),D.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.yrY(_.Gb().getState())&&_.ma(_.Gb().getState())<=0)if(_.OA(_.Gb().getState())){var h;(h=v.player)==null||h.toggleFullscreen()}else _.zU(v.JSC$23052_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
yOd(this)};
_.J(_.wVd,_.AN);var yOd=function(D){var v=_.Oe(_.Gb(),_.OA,function(h){D.onFullscreenChanged(h)});
D.addOnDisposeCallback(v);v=_.Oe(_.Gb(),_.ma,function(h){D.gestures&&(h>0?D.gestures.detach():D.gestures.attach())});
D.addOnDisposeCallback(v)};
_.wVd.prototype.onFullscreenChanged=function(D){this.gestures&&this.gestures.update(D)};_.ndB=function(D){_.AN.call(this);var v=this;this.JSC$23055_watchApi=D;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(D.subscribeToActiveChanged(function(h){v.onActiveChanged(h)}));
exH(this)};
_.J(_.ndB,_.AN);var OxK=function(D){if(_.g("swatcheroo_page_dispose_all_watch_data"))D.pageDisposalDataTypes=Object.values(VAM).filter(function(h){return h!=="PLAYLIST"});
else if(_.g("swatcheroo_page_dispose_rich_grid")){var v;(v=D.pageDisposalDataTypes)==null||v.push("RICH_GRID_RENDERER")}},exH=function(D){_.g("swatcheroo_enable_ghost_cards")&&(OxK(D),D.JSC$23055_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.HK.cancelJob(D.clearDataJobId);
D.clearDataJobId=0}),D.runPageDisposeJob=function(){var v=_.xd().resolve(_.P4).getDestinationPageType()==="watch";
D.clearDataJobId=_.LK(_.HK,D.runClearDataJob,v?0:_.oZ("web_watch_delay_page_dispose_ms",1E4))},D.runClearDataJob=function(){KbQ(D)},D.runOnYtNavigateAwayFinish=function(){D.clearDataJobId&&(_.HK.cancelJob(D.clearDataJobId),D.clearDataJobId=0,KbQ(D))},document.addEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish),D.JSC$23055_watchApi.addPageDisposeJob(D.runPageDisposeJob),D.addOnDisposeCallback(function(){D.JSC$23055_watchApi.removePageDisposeJob(D.runPageDisposeJob);
D.JSC$23055_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish)}))},KbQ=function(D){D.pageDisposalDataTypes.forEach(function(v){D.JSC$23055_watchApi.provideRenderingData(v,void 0)});
D.clearDataJobId=0};
_.ndB.prototype.onActiveChanged=function(D){D&&((D=document.querySelector("#watch-page-skeleton"))&&_.Np(D),Tl3(this),document.body.removeAttribute("no-y-overflow"),_.nJ("IS_SHELL_LOAD")&&_.SmZ())};
var Tl3=function(D){_.M(function(v){if(v.nextAddress==1)return v.yield(D.JSC$23055_watchApi.playerApi,2);_.Ri();_.YI(v)})};var Rxw;Rxw=_.g("kevlar_watch_while_counterfactual")?0:.25;_.rOY=function(D){_.AN.call(this);this.JSC$23058_watchApi=D;this.JSC$23058_watchWhileEnabled=_.g("kevlar_watch_while_v2");this.pipEnabled=_.g("web_enable_pip_on_miniplayer");ix0(this);WbB(this);tOd(this)};
_.J(_.rOY,_.AN);var ix0=function(D){D.JSC$23058_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){uHB(D)});
D.addOnDisposeCallback(function(){D.JSC$23058_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},WbB=function(D){var v,h;
_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23058_watchApi.playerApi,2);v=a.yieldResult;h=function(){uHB(D)};
v.addEventListener("onCollapseMiniplayer",h);D.addOnDisposeCallback(function(){v.removeEventListener("onCollapseMiniplayer",h)});
_.YI(a)})},tOd=function(D){var v=D.JSC$23058_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&v&&D.JSC$23058_watchWhileEnabled&&(D.playerIntersectionObserver=new IntersectionObserver(function(h){D.handleIntersect(h)},{threshold:[Rxw]}),D.playerIntersectionObserver.observe(v),D.addOnDisposeCallback(function(){var h;
(h=D.playerIntersectionObserver)==null||h.disconnect()}))},uHB=function(D){var v,h,a;
_.M(function(Q){if(Q.nextAddress==1){v=_.xd().resolve(_.P4);h=v.data;a=_.j6(h.response,!1,h.playerResponse);_.eh().miniplayerButtonActivation=!0;if(D.pipEnabled)return _.eh().watchPipActivation=!0,Q.jumpTo(2);_.xd().resolve(_.Ok).collapse();return Q.yield(_.eh().navigationFinishPromise,2)}if(Q.nextAddress!=4)return _.eh().currentEndpoint=a.watchEndpoint||null,Q.yield(_.xd().resolve(_.Ok).activate(D.JSC$23058_watchApi.getElement("PLAYER"),a,h),4);_.eh().userActivation=!0;_.YI(Q)})};
_.rOY.prototype.handleIntersect=function(D){DHz(this,D[D.length-1])};
var DHz=function(D,v){D.watchWhileJobId&&_.HK.cancelJob(D.watchWhileJobId);D.watchWhileJobId=_.HK.addLowPriorityJob(function(){var h,a;return _.M(function(Q){if(Q.nextAddress==1)return D.watchWhileJobId=void 0,h=_.xd().resolve(_.Ok),v.intersectionRatio>Rxw?h.isMiniplayerActive()?Q.yield(h.deactivate(),0):Q.jumpTo(0):(a=!h.isMiniplayerActive())?Q.yield(vzH(D),5):Q.jumpTo(4);Q.nextAddress!=4&&(a=Q.yieldResult);if(!a)return Q.jumpTo(0);_.eh().watchWhileActivation=!0;return Q.yield(hdf(D),0)})},100)},
vzH=function(D){return _.M(function(v){return v.nextAddress==1?_.g("kevlar_watch_while_paused")?v.return(!0):v.yield(D.isPlayerPlaying(),2):v.return(v.yieldResult)})};
_.rOY.prototype.isPlayerPlaying=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$23058_watchApi.playerApi,2);v=h.yieldResult;return h.return(v.getPlayerStateObject().isPlaying)})};
var hdf=function(D){var v,h;return _.M(function(a){v=_.xd().resolve(_.P4).data;h=_.j6(v.response,!1,v.playerResponse);_.eh().currentEndpoint=h.watchEndpoint||null;return a.yield(_.xd().resolve(_.Ok).activate(D.JSC$23058_watchApi.getElement("PLAYER"),h,v),0)})};_.Qef=function(D){_.AN.call(this);this.JSC$23062_watchApi=D;aoR(this);$Hz(this)};
_.J(_.Qef,_.AN);var $Hz=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23062_watchApi.playerApi,2);v=a.yieldResult;h=function(Q){var G;Q.sessionData&&Q.sessionData.itct&&(G=Q.sessionData.itct);var x=Q.watchEndpoint;if(x&&Q.sessionData&&Q.sessionData.autonav)x=_.csc(x,G);else{var f;x=_.xZ(Q.videoId,(f=Q.listId)!=null?f:void 0,G)}G={endpoint:x};Q.sessionData&&(G.tempData=Q.sessionData);D.JSC$23062_watchApi.dispatchEvent("yt-navigate",G)};
v.addEventListener("onPlayVideo",h);D.addOnDisposeCallback(function(){v.removeEventListener("onPlayVideo",h)});
_.YI(a)})},aoR=function(D){var v=function(h){D.onYtNavigate(h)};
D.JSC$23062_watchApi.getRoot().addEventListener("yt-navigate",v);D.addOnDisposeCallback(function(){D.JSC$23062_watchApi.getRoot().removeEventListener("yt-navigate",v)})};
_.Qef.prototype.onYtNavigate=function(D){var v=this,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){if(Z.nextAddress==1){if(!((h=D.detail)==null?0:(a=h.endpoint)==null?0:a.watchEndpoint))return Z.return();Q=D.detail.endpoint.watchEndpoint;G=v.JSC$23062_watchApi.getWatchNextResponse();f=_.k((x=G)==null?void 0:x.currentVideoEndpoint,_.hP);if(!f)return Z.return();if(Q.videoId!==f.videoId||Q.playlistId&&Q.playlistId!==f.playlistId||typeof Q.startTimeSeconds!=="number")return Z.jumpTo(0);D.stopPropagation();
(C=_.g("kevlar_watch_while_v2")&&!_.g("kevlar_watch_while_counterfactual"))&&_.xd().resolve(_.Ok).isMiniplayerActive()||v.JSC$23062_watchApi.scrollWatchTo(0,!0);return Z.yield(v.JSC$23062_watchApi.playerApi,3)}U=Z.yieldResult;L=Q.startTimeSeconds;U.seekTo(L,void 0,void 0,void 0,84);U.wakeUpControls();L<U.getDuration()&&U.playVideo();_.YI(Z)})};_.VJf=function(D){_.AN.call(this);var v=this;this.JSC$23065_watchApi=D;var h=this.JSC$23065_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Gmw(v)});
this.addOnDisposeCallback(function(){v.JSC$23065_watchApi.unsubscribeByKey(h)});
Gmw(this);_.g("enable_ai_companion")&&(D=this.JSC$23065_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.I0$(_.xd().resolve(_.a8),D,"WATCH")};
_.J(_.VJf,_.AN);var Gmw=function(D){var v=D.JSC$23065_watchApi.getWatchNextResponse();if(v){var h,a=[].concat(_.j_((h=v==null?void 0:v.engagementPanels)!=null?h:[]));a.unshift.apply(a,_.j_(POz(v)));D.JSC$23065_watchApi.provideRenderingData("ENGAGEMENT_PANELS",a)}},xHB=function(D){var v,h,a,Q=(v=D.engagementPanels)==null?void 0:(h=v.find(function(I){var S;
return((S=I.engagementPanelSectionListRenderer)==null?void 0:S.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(a=h.engagementPanelSectionListRenderer.content)==null?void 0:a.structuredDescriptionContentRenderer,G;
if(_.k(Q==null?void 0:(G=Q.items)==null?void 0:G.find(function(I){return!!_.k(I,NE0)}),NE0))return!0;
var x,f,C,U;if(D=(((x=D.contents)==null?void 0:(f=x.twoColumnWatchNextResults)==null?void 0:(C=f.results)==null?void 0:(U=C.results)==null?void 0:U.contents)||[]).find(function(I){return I.videoPrimaryInfoRenderer})){var L,Z,E;
return(((L=D.videoPrimaryInfoRenderer)==null?void 0:(Z=L.videoActions)==null?void 0:(E=Z.menuRenderer)==null?void 0:E.flexibleItems)||[]).some(function(I){I=_.k(I,_.HHy);if(!I)return!1;var S,B;I=(S=I.topLevelButton)==null?void 0:(B=S.buttonViewModel)==null?void 0:B.onTap;if(!I)return!1;S=_.Rq(I);if(!S)return!1;var A;return((A=_.k(S,_.qh))==null?void 0:A.panelIdentifier)==="PAyouchat"})}return!1},POz=function(D){var v=[];
if(!_.g("web_watch_inject_placeholder_fantasy_panel_killswitch")){var h,a,Q,G=(h=D.engagementPanels)==null?void 0:(a=h.find(function(f){var C;return((C=f.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=a.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,x;
_.k(G==null?void 0:(x=G.items)==null?void 0:x.find(function(f){return!!_.k(f,$Sm)}),$Sm)&&(h=_.WUA("PAsports_fantasy"),h.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",v.push(h))}xHB(D)&&(D=_.WUA("PAyouchat"),D.engagementPanelSectionListRenderer.targetId="PAyouchat",D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",v.push(D));
return v};_.fo3=function(D){_.AN.call(this);this.JSC$23068_watchApi=D;MJf(this)};
_.J(_.fo3,_.AN);var MJf=function(D){D.JSC$23068_watchApi.registerActionHandler("yt-loop-command",function(v){COw(D,v)});
D.JSC$23068_watchApi.registerActionHandler("yt-repeat-chapter-command",function(v){ozB(D,v)});
D.addOnDisposeCallback(function(){D.JSC$23068_watchApi.unregisterActionHandler("yt-loop-command");D.JSC$23068_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},COw=function(D,v){var h;
_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23068_watchApi.playerApi,2);h=a.yieldResult;_.k(v,Geo).loop?(h.setLoopRange({startTimeMs:Number(_.k(v,Geo).startTimeMs),endTimeMs:Number(_.k(v,Geo).endTimeMs),postId:_.k(v,Geo).postId,type:"clips"}),h.playVideo()):h.setLoopRange(null);_.YI(a)})},ozB=function(D,v){var h,a;
_.M(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$23068_watchApi.playerApi,2);h=Q.yieldResult;a=_.k(v,fxY).repeat;a==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(h.setLoopRange({startTimeMs:Number(_.k(v,fxY).startTimeMs),endTimeMs:Number(_.k(v,fxY).endTimeMs),type:"repeatChapter"}),h.playVideo()):a==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&h.setLoopRange(null);_.YI(Q)})};_.zdR=function(D){_.AN.call(this);this.JSC$23073_watchApi=D;Fdd(this)};
_.J(_.zdR,_.AN);var Fdd=function(D){D.JSC$23073_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(v){UHB(D,v)});
D.addOnDisposeCallback(function(){D.JSC$23073_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},UHB=function(D,v){var h,a,Q,G,x,f,C,U,L,Z,E;
_.M(function(I){if(I.nextAddress==1)return I.yield(D.JSC$23073_watchApi.playerApi,2);h=I.yieldResult;if(G=(Q=(a=_.k(v,Czd))==null?void 0:a.highlightedMenuItemKey)!=null?Q:"")(f=(x=h).highlightSettingsMenuItem)==null||f.call(x,G);if(L=(U=(C=_.k(v,Czd))==null?void 0:C.openMenuItemKey)!=null?U:"")(E=(Z=h).openSettingsMenuItem)==null||E.call(Z,L);_.YI(I)})};var LdH=_.IG("/youtube/app/watch/player_state","playerStateEntity");_.sg=function(D){_.AN.call(this);this.JSC$23076_watchApi=D;ZL0(this)};
_.J(_.sg,_.AN);var Ez3=function(D){switch(D){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},ZL0=function(D){var v,h,a,Q;
_.M(function(G){if(G.nextAddress==1)return G.yield(D.JSC$23076_watchApi.playerApi,2);v=G.yieldResult;if(D.isDisposed())return G.return();h=function(x){D.onPlayerStateChange(x)};
a=function(x){D.onAdStateChange(x)};
Q=function(){D.onAdSkip()};
v.addEventListener("onStateChange",h);v.addEventListener("onAdStateChange",a);v.addEventListener("onAdSkip",Q);D.addOnDisposeCallback(function(){v.removeEventListener("onStateChange",h);v.removeEventListener("onAdStateChange",a);v.removeEventListener("onAdSkip",Q)});
_.YI(G)})},IoK=function(D){var v=_.P8(),h=v.dispatch;
a:switch(D.adsState){case -1:case 0:var a="ADS_STATE_NONE";break a;case 1:case 2:case 3:a="ADS_STATE_PLAYING";break a;default:a="ADS_STATE_UNKNOWN"}h.call(v,_.Xe("playerStateEntity",LdH,{key:LdH,playerState:Ez3(D.playerState),adsState:a,videoId:D.videoId}))};
_.sg.prototype.onPlayerStateChange=function(D){var v=this,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(v.JSC$23076_watchApi.playerApi,2);h=a.yieldResult;if(v.isDisposed())return a.return();v.playerState=D;v.videoId=h.getVideoData().video_id;IoK(v);_.YI(a)})};
_.sg.prototype.onAdStateChange=function(D){this.adsState=D;IoK(this)};
_.sg.prototype.onAdSkip=function(){this.adsState=0;IoK(this)};_.kmw=function(D){_.AN.call(this);var v=this;this.JSC$23080_watchApi=D;this.enableExternalPlaylistPanelInPlayer=_.g("delhi_web_player_use_external_playlist_panel");_.xd().resolve(_.fh).setPlayer(this.JSC$23080_watchApi.getElement("PLAYER"));D=this.JSC$23080_watchApi.subscribeToActiveChanged(function(h){v.onActiveChanged(h)});
this.addOnDisposeCallback(D);gzB(this)};
_.J(_.kmw,_.AN);var gzB=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return D.enableExternalPlaylistPanelInPlayer?a.yield(D.JSC$23080_watchApi.playerApi,2):a.return();v=a.yieldResult;h=function(){if(D.playlistPanelElement)D.playlistPanelElement.onToggleExpanded()};
v.addEventListener("onToggleExternalPlaylistPanel",h);D.addOnDisposeCallback(function(){v.removeEventListener("onToggleExternalPlaylistPanel",h)});
_.YI(a)})};
_.kmw.prototype.onActiveChanged=function(D){var v=this,h=_.xd().resolve(_.fh),a=function(){SWY(v)};
D?(this.playlistPanelElement=this.JSC$23080_watchApi.getElement("PLAYLIST_PANEL"))?(h.setPlaylistComponent(this.playlistPanelElement),h.addEventListener("yt-playlist-data-updated",a),this.addOnDisposeCallback(function(){h.removeEventListener("yt-playlist-data-updated",a)}),SWY(this)):_.Wv(Error("Vo")):(h.removeEventListener("yt-playlist-data-updated",a),h.cancelVideoSkip())};
var SWY=function(D){var v=_.xd().resolve(_.fh);D.JSC$23080_watchApi.provideRenderingData("PLAYLIST",v.getPlaylistData())};_.mH=function(D){_.AN.call(this);var v=this;this.JSC$23083_watchApi=D;this.onPageScroll=function(){v.scrollThrottle.fire();v.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.tn(this.onThrottledScroll,200,this);_.Ia(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.tn(this.onMastheadThrottledScroll,50,this);_.Ia(this,this.mastheadScrollThrottle);this.animation=new _.Uu(function(h){v.JSC$23083_watchApi.getRoot().setScrollTop(h)});
D=_.Oe(_.Gb(),_.OA,function(){v.onFullscreenChanged()});
this.addOnDisposeCallback(D);J2Q(this);pK0(this);this.onThrottledScroll()};
_.J(_.mH,_.AN);
_.mH.prototype.onFullscreenChanged=function(){var D=this,v=this.JSC$23083_watchApi.getRoot();!this.pageScrollElement&&v.pageScrollElement?(this.pageScrollElement=v.pageScrollElement,v.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){D.pageScrollElement&&D.pageScrollElement.removeEventListener("scroll",D.onPageScroll)})):this.pageScrollElement&&!v.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var J2Q=function(D){window.addEventListener("scroll",D.onPageScroll);D.addOnDisposeCallback(function(){window.removeEventListener("scroll",D.onPageScroll)})},pK0=function(D){D.JSC$23083_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(v){a:{var h;
if(h=D.JSC$23083_watchApi.getRoot().contains(v)&&!D.animation.isAnimating()){h=v.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var a,Q,G=(v==null?void 0:(a=v.parentElement)==null?void 0:(Q=a.parentElement)==null?void 0:Q.id)==="fixed-secondary";h=!(h&&G)}if(h){if(_.g("kevlar_watch_scroll_manager_absolute_offset_killswitch"))a=v.offsetTop;else for(a=0,Q=v;Q!==null;)a+=Q.offsetTop,a-=Q.scrollTop,Q=Q.offsetParent;Q=a;a=Q-24;v=Q+v.offsetHeight+24;Q=D.JSC$23083_watchApi.getRoot().getPageScrollingElement();
h=D.JSC$23083_watchApi.getRoot().getScrollTop();G=h+Q.clientHeight-56;if(a<h+56)v=a-56;else if(v>G)v-=Q.clientHeight;else break a;D.scrollWatchTo(Math.max(0,v),!0)}}});
D.addOnDisposeCallback(function(){D.JSC$23083_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.mH.prototype.onThrottledScroll=function(){var D=_.Gb(),v=D.dispatch,h=this.JSC$23083_watchApi.getRoot().getScrollTop();v.call(D,_.oG({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:h}}))};
_.mH.prototype.onMastheadThrottledScroll=function(){this.JSC$23083_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23083_watchApi.getRoot().getScrollTop())};
_.mH.prototype.scrollWatchTo=function(D,v){(v===void 0?0:v)?this.animation.start(this.JSC$23083_watchApi.getRoot().getScrollTop(),Math.max(0,D),500):this.JSC$23083_watchApi.getRoot().setScrollTop(D)};_.YWm=function(D){_.AN.call(this);var v=this;this.JSC$23086_watchApi=D;var h=this.JSC$23086_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){low(v)}),a=this.JSC$23086_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NaK(v)});
this.addOnDisposeCallback(function(){v.JSC$23086_watchApi.unsubscribeByKey(h);v.JSC$23086_watchApi.unsubscribeByKey(a)});
low(this);NaK(this)};
_.J(_.YWm,_.AN);
var low=function(D){var v,h,a,Q=(a=(v=D.JSC$23086_watchApi.getPlayerResponse())==null?void 0:(h=v.videoDetails)==null?void 0:h.title)!=null?a:"";D.JSC$23086_watchApi.dispatchEvent("yt-update-title",Q)},NaK=function(D){var v,h,a,Q,G,x,f,C=(f=((x=(v=D.JSC$23086_watchApi.getWatchNextResponse())==null?void 0:(h=v.contents)==null?void 0:(a=h.twoColumnWatchNextResults)==null?void 0:(Q=a.results)==null?void 0:(G=Q.results)==null?void 0:G.contents)!=null?x:[]).find(function(U){return!!U.videoPrimaryInfoRenderer}))==null?
void 0:f.videoPrimaryInfoRenderer;
(v=_.$V(C==null?void 0:C.title))&&D.JSC$23086_watchApi.dispatchEvent("yt-update-title",v)};_.c2R=function(D){_.AN.call(this);this.JSC$23089_watchApi=D;Baf(this)};
_.J(_.c2R,_.AN);var Baf=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23089_watchApi.playerApi,2);v=a.yieldResult;h=function(){D.onYpcContentRequest()};
v.addEventListener("onYpcContentRequest",h);D.addOnDisposeCallback(function(){v.removeEventListener("onYpcContentRequest",h)});
_.YI(a)})};
_.c2R.prototype.onYpcContentRequest=function(){var D,v,h,a,Q,G=(D=this.JSC$23089_watchApi.getWatchNextResponse())==null?void 0:(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.secondaryResults)==null?void 0:(Q=a.secondaryResults)==null?void 0:Q.offerModule,x,f,C,U;D=(U=(C=(f=(x=G==null?void 0:G.episodeOfferModuleRenderer)!=null?x:G==null?void 0:G.movieOfferModuleRenderer)!=null?f:G==null?void 0:G.unlimitedOfferModuleRenderer)!=null?C:G==null?void 0:G.liveOfferModuleRenderer)!=
null?U:G==null?void 0:G.tvfilmOfferModuleRenderer;var L,Z,E;G=(E=G==null?void 0:(L=G.tvfilmOfferModuleRenderer)==null?void 0:(Z=L.actionButtons)==null?void 0:Z.length)!=null?E:0;Z=Math.max(G-1,0);var I,S,B;L=(B=D==null?void 0:(I=D.offerButton)==null?void 0:I.buttonRenderer)!=null?B:D==null?void 0:(S=D.actionButtons)==null?void 0:S[Z].buttonRenderer;var A,d;(I=(d=(A=L==null?void 0:L.navigationEndpoint)!=null?A:L==null?void 0:L.serviceEndpoint)!=null?d:L==null?void 0:L.command)&&_.pb.instance.resolveCommand(I)};
}catch(e){_._DumpException(e)}
try{
var C1s,xFS,VaS;_.P1S=function(){var D=_.sV.clone(GUb),v;return(new _.IB(function(h,a){D.onSuccess=function(Q){_.hkL(Q)?h(new VaS(Q)):a(new _.jS("Request failed, status="+_.Uz(Q),"net.badstatus",Q))};
D.onError=function(Q){a(new _.jS("Unknown request error","net.unknown",Q))};
D.onTimeout=function(Q){a(new _.jS("Request timed out","net.timeout",Q))};
v=_.kd("//googleads.g.doubleclick.net/pagead/id",D)})).thenCatch(function(h){if(h instanceof _.Oy){var a;
(a=v)==null||a.abort()}return _.H8(h)})};
_.Ma2=function(D){a:{var v="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(v="EMBEDDED_PLAYER_MODE_PFL");var h=D.raw_embedded_player_response;if(!h&&(D=D.embedded_player_response))try{h=JSON.parse(D)}catch(Q){break a}if(h)b:for(var a in xFS)if(xFS[a]==h.embeddedPlayerMode){v=xFS[a];break b}}return v==="EMBEDDED_PLAYER_MODE_PFL"};
_.fD2=function(){if(_.g("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.b6A())return Error("uf");var D=_.eA("PLAYER_VARS",{});if(_.sV.get(D,"privembed",!1)=="1")return Error("vf");if(_.Ma2(D))return Error("wf")};
C1s=function(D){switch(D){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.K4(D,"unknown result type")}};
_.oEr=function(D,v,h){v=_.HCL[v];h={detected:D===0,source:v.aQQ,detectionResult:C1s(D),contentCpn:h};_.jj("biscottiBasedDetection",h);_.NSM.increment(v.aQQ,D);v.ysJ!==void 0&&_.wM("CATSTAT",_.s1c(D,v))};
_.s3=function(D,v){var h={};h.key=D;h.value=v;return _.Ie8().then(function(a){return new Promise(function(Q,G){try{var x=a.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(h);x.onsuccess=function(){Q()};
x.onerror=function(){G()}}catch(f){G(f)}})})};
_.zyb=function(){var D=_.oZ("user_engagement_experiments_rate_limit_ms"),v=Fns.get("last-user-engagement-exp-trigger-timestamp");return!v||(0,_.xz)()>=v+D?(Fns.set("last-user-engagement-exp-trigger-timestamp",(0,_.xz)()),!0):!1};
_.mW=function(D,v,h,a,Q){v=v===void 0?null:v;h=h===void 0?null:h;a=a===void 0?null:a;Q=Q===void 0?null:Q;D={youThereEventType:D};h&&(D.lactThresholdMs=h.lactThresholdMs,D.mediaPosSec=h.promptDelaySec,D.lactServerRequestMs=h.lactServerRequestMs,D.triggerReason=h.triggerReason);Q!=null&&(D.renderingMediaPosSec=Math.round(Q));v||(v=_.wd());v&&(D.clientScreenNonce=v);a&&(D.clientPlaybackNonce=a);_.jj("youThere",D)};
xFS={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"};VaS=function(D){this.xhr=D};
_.jS=function(D,v,h){_.hc.call(this,D+", errorCode="+v);this.errorCode=v;this.xhr=h;this.name="PromiseAjaxError"};
_.J(_.jS,_.hc);var GUb={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Fns=new _.OW("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.QNU=function(D){return _.oG({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:D})};
}catch(e){_._DumpException(e)}
try{
var e0,aMR,QB0,GCo,Vjz,PDf,Mjd,E_R,IMo,g_Y,xYK,$Yw,FVR,o_Y,JXM;_.hl3=function(){var D=window.location.hash;D.charAt(0)==="#"&&(D=D.charAt(1)==="!"?D.substring(2):D.substring(1));return _.uy(D)};
e0=function(D,v,h){var a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(v(),2);a=Q.yieldResult;h(a,D);_.YI(Q)})};
aMR=function(){return _.M(function(D){return D.nextAddress==1?D.yield((_.fD2()!==void 0?_.H8(Error("xf")):_.P1S()).then(function(){return 1},function(v){if(v.message==="Biscotti id is disabled")return 3;
_.yR("Failed fetching bid");return 0}),2):D.return(D.yieldResult)})};
QB0=function(){var D=_.Cq("YXZlbi1lbWJlZC1wbGF5ZXIjaXZrdHA0ZWx5OW5ueXQtaA=="),v=_.Cq("NHFqaWZyYW1lI2s2dHU2bW1kdQ==");return document.querySelector(v+$Yw+D)?0:1};
GCo=function(){return _.J9u(_.EH)};
Vjz=function(){return _.p0u()===0?0:_.lZc()};
PDf=function(){return _.X07(_.Kpc([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Mjd=function(){return _.Umq(xYK)};
_.fMf=function(D){_.M(function(v){switch(v.nextAddress){case 1:return v.yield(e0("b.f_",aMR,D),2);case 2:return v.yield(e0("j.s_",_.F_2,D),3);case 3:return v.yield(e0("r.s_",_.fZu,D),4);case 4:return v.yield(e0("e.h_",Mjd,D),5);case 5:if(!_.g("ab_det_sc_inj")){v.jumpTo(6);break}return v.yield(e0("s.i_",_.kJr,D),6);case 6:if(_.g("ab_deg_unex_thr")){v.jumpTo(8);break}return v.yield(e0("a.o_",_.IZu,D),8);case 8:if(_.g("ks_get_o_pp")){v.jumpTo(10);break}return v.yield(e0("g.o_",_.EiA,D),10);case 10:if(_.g("ks_det_gpbl")){v.jumpTo(12);
break}return v.yield(e0("p.i_",_.ZC8,D),12);case 12:return v.yield(e0("f.i_",_.Dmo,D),14);case 14:return v.yield(e0("a.b_",_.xmL,D),15);case 15:return v.yield(e0("p.m_",_.aZq,D),16);case 16:if(!_.g("ab_det_el_h_v2")){v.jumpTo(17);break}return v.yield(e0("n.h_",PDf,D),17);case 17:return v.yield(e0("o.p_",GCo,D),19);case 19:return v.yield(e0("e.i_",QB0,D),20);case 20:if(_.g("ab_det_apm"))return v.yield(e0("o.a_",Vjz,D),0);v.jumpTo(0)}})};
_.CD0=function(D,v){D={videoId:D};v&&(D.playlistId=v);return D};
_.zl0=function(){if(_.b6A()){var D=_.eA("PLAYER_VARS",{});if(_.sV.get(D,"privembed",!1)!="1"&&!_.Ma2(D)){var v=function(){o_Y=!0;"google_ad_status"in window?_.wM("DCLKSTAT",1):_.wM("DCLKSTAT",2)};
try{_.i4(_.O7b,v)}catch(h){}FVR.push(_.HK.addLowPriorityJob(function(){if(!(o_Y||"google_ad_status"in window)){try{_.l$2(_.O7b.toString(),v)}catch(h){}o_Y=!0;_.wM("DCLKSTAT",3)}},5E3))}}};
_.UYY=function(D,v,h){h=h===void 0?!1:h;var a=Math.max(D.width,_.BEK);if(_.g("kevlar_watch_feed_big_thumbs")&&D.width>=1550-_.Ux()&&D.height>=800)a-=_.dSz;else if(D.width>=_.OJ){var Q=_.cwd+_.XpY+_.nu;_.g("kevlar_watch_feed_big_thumbs")&&(Q=_.bfH);a-=Q}else a-=_.cwd;a=Math.min(a,_.AwR);Q=240;h&&(Q=380);v<.5624||(!_.g("kevlar_watch_flexy_disable_small_window_sizing")&&(D.height<630&&D.width>=657||D.height>=630&&D.width>=_.OJ&&D.width<1327)?Q=360:!_.g("kevlar_watch_flexy_disable_large_window_sizing")&&
D.height>=630&&D.width>=1327&&(Q=480));var G=Math.min(a*v,D.height-(56+_.YXB+_.qXM));G=Math.max(G,Q);v<1?a=G/v:D.width>=_.OJ&&(a=_.UYY(D,.5625,h).width);return new _.lU(Math.round(a),Math.round(G))};
_.LVY=function(D){var v=0;D.indexOf("h")!=-1&&(D=D.split("h"),v=D[0]*60*60,D=D[1]);D.indexOf("m")!=-1&&(D=D.split("m"),v=D[0]*60+v,D=D[1]);D.indexOf("s")!=-1?(D=D.split("s"),v=D[0]*1+v):v=D*1+v;return v};
_.Zpz=function(){_.oZ("service_worker_push_logged_out_prompt_watches")!=-1&&_.HI("WatchCount").then(function(D){D>=100||_.s3("WatchCount",D+1)})};
E_R=function(D){var v=D.externalVideoId||"";return v?D.isShortsEligible?"https://www.youtube.com/shorts/"+v:"https://www.youtube.com/watch?v="+v:""};
IMo=function(D){var v=[];D.viewCount&&v.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:D.viewCount});D.likeCount&&v.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:D.likeCount});return v};
g_Y=function(D){var v,h,a={"@context":"https://schema.org","@type":"VideoObject",description:_.$V(D.description),duration:"PT"+(D.lengthSeconds||"0")+"S",embedUrl:D.embed?D.embed.iframeUrl:"",name:_.$V(D.title),thumbnailUrl:((v=D.thumbnail)==null?void 0:(h=v.thumbnails)==null?void 0:h.map(function(L){return L&&L.url||""}))||[],
uploadDate:D.publishDate};_.g("mweb_video_schema_id_killswitch")||(a["@id"]=E_R(D));v=IMo(D);v.length&&(a.interactionStatistic=v);D.category&&(a.genre=D.category);D.ownerChannelName&&(a.author=D.ownerChannelName);D.liveBroadcastDetails&&(a.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:D.liveBroadcastDetails.startTimestamp,endDate:D.liveBroadcastDetails.endTimestamp}]);if(D.learningResource){D=D.learningResource;a["@type"]=["VideoObject","LearningResource"];var Q;if((Q=D.learningResourceType)==
null?0:Q.length)a.learningResourceType=D.learningResourceType[0];var G;if((G=D.educationalAlignment)==null?0:G.length)a.educationalAlignment={"@type":"AlignmentObject",targetName:D.educationalAlignment[0]};var x;if((x=D.educationalLevel)==null?0:x.length){Q=D.educationalLevel[0];var f;if((f=D.educationalLevelCountry)==null?0:f.length)Q+=" ("+D.educationalLevelCountry+")";a.educationalLevel=Q}var C,U;if(((C=D.learningResourceType)==null?0:C.length)&&D.learningResourceType[0]==="Problem walkthrough"&&
((U=D.problemDescriptions)==null?0:U.length))for(a.hasPart=[],f=_.P(D.problemDescriptions),C=f.next();!C.done;C=f.next())Q=C.value,C=Q.problemDescriptionText,U=Q.startOffset,Q=Q.url,C&&U!==void 0&&Q&&a.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:C,text:C,startOffset:U,url:Q})}return a};
_.kCH=function(D){return _.oG({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:D}})};
xYK=[[["aW1hcnkjYmE1OWYzd3FyazdrcHI=",null,null],[null,["dHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNlcXRyamQ1ZjNseXF5dGQt","MXFzdHlsZS1zY29wZSNoNHE4bmN4ZnQ4"],null],["bnZtYXN0aGVhZC1hZCN5MW9yZ2hjdjk3",["aC1ncmlkLXJlbmRlcmVyIzVzYzFkcTEzaHJ0dHl0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyI2xmNG91aTZvcjR6aXl0ZC1yaWM=","OWlzdHlsZS1zY29wZSNhNmx3bnhqamV0"],null],[null,["LXJlbmRlcmVyI3ZqMGI0bzFjcmgydHl0ZC1iYW5uZXItcHJvbW8=","ejFzdHlsZS1zY29wZSNza2c3Nmh1Yjky"],null],[null,["dGQtYWQtc2xvdC1yZW5kZXJlciN3bzVsczI0aDFtcHV5"],
null]],[["dThpM2wzdjcxanBsYXllci1hZHMjMg==",null,null]],[["Yzd1djc5eDhkZXNjcmlwdGlvbi1pbm5lciN3Zm01",null,null],[null,null,"bGYtcmVuZGVyZXIjN2p6ZDZuaGoycWJweXRkLW1lcmNoLXNoZQ=="],["I3k2ZWNvdzdhYnA0Zm1haW4=",["bGYtcmVuZGVyZXIjZ28ydm5vcGs2Y3ZieXRkLW1lcmNoLXNoZQ=="],null]]];$Yw="#";FVR=[];o_Y=!1;_.S5o=["engagement-panel-ads"];JXM=new _.z0("updateSentimentBarStateCommand");_.p1f=new _.z0("showSurveyCommand");_.ni=new _.z0("changeMarkersVisibilityCommand");var Nf3,Y5d,AXH,X1f,cXm,Og;_.lMR=function(D,v){this.playerProvider_=D;this.actionSenderElement_=v;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.lMR.prototype.reset=function(){Nf3(this);this.isUserPredictedAbsent_=!1};
Nf3=function(D,v){!D.youThereData_||D.showWarningJob_||v!==void 0&&v||(_.mW("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.wd(),D.youThereData_,D.clientPlaybackNonce_),_.s5());_.HK.cancelJob(D.showWarningJob_);D.showWarningJob_=0;_.HK.cancelJob(D.showBlockingWarningJob_);D.showBlockingWarningJob_=0;_.HK.cancelJob(D.pausePlaybackJob_);D.pausePlaybackJob_=0;D.youThereData_=null;D.clientPlaybackNonce_=void 0;D.inYouThereFlow_=!1};
_.Bfo=function(D,v){var h,a,Q;_.M(function(G){if(G.nextAddress==1)return D.reset(),G.yield(D.playerProvider_().getPlayerPromise(),2);h=G.yieldResult;D.clientPlaybackNonce_=h.getVideoData().cpn;D.youThereData_=v.configData.youThereData;if(!D.youThereData_)return G.return();if(D.youThereData_.triggerReason&&D.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.zyb())return _.mW("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.wd(),D.youThereData_,D.clientPlaybackNonce_),G.return();a=D.youThereData_.promptDelaySec;
Q=h.getCurrentTime();D.showWarningJob_=_.HK.addLowPriorityJob(function(){return _.M(function(x){D.showWarningJob_=0;return x.yield(Y5d(D),0)})},Math.max(a-Q,0)*1E3);
_.YI(G)})};
Y5d=function(D){var v,h,a,Q,G,x;return _.M(function(f){if(f.nextAddress==1)return f.yield(D.playerProvider_().getPlayerPromise(),2);if(f.nextAddress!=3)return v=f.yieldResult,h=v.getCurrentTime(),f.yield(cXm(D),3);a=f.yieldResult;if(!a||!D.youThereData_)return f.return();if(_.g("check_user_lact_at_prompt_shown_time_on_web")&&(Q=parseInt(D.youThereData_.lactThresholdMs,10),_.x_()<Q))return _.mW("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.wd(),D.youThereData_,D.clientPlaybackNonce_),f.return();if(D.youThereData_.playbackPauseDelayMs<=
0)return X1f(D),f.return();!_.g("external_fullscreen")&&(G=_.xE())&&(D.ignoreFullscreenExitUserActivity_=!0,_.HK.addLowPriorityJob(function(){D.ignoreFullscreenExitUserActivity_=!1},2E3),_.MF(G));
D.youThereData_.showToastWarningPrompt&&(Og(D,D.youThereData_.showWarningActions),D.inYouThereFlow_=!0,_.mW("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.wd(),D.youThereData_,D.clientPlaybackNonce_,h),_.mW("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.wd(),D.youThereData_,D.clientPlaybackNonce_,h));x=0;D.youThereData_.blockingPromptDelayMs&&(x=D.youThereData_.blockingPromptDelayMs);D.showBlockingWarningJob_=_.HK.addLowPriorityJob(function(){return _.M(function(C){D.showBlockingWarningJob_=0;return C.yield(AXH(D),
0)})},x);
_.YI(f)})};
AXH=function(D){var v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield(cXm(D),2);v=Q.yieldResult;if(!D.youThereData_)return Q.return();v&&(D.youThereData_.showBlockingWarningAction&&(_.mW("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.wd(),D.youThereData_,D.clientPlaybackNonce_),(h=_.k(D.youThereData_.showBlockingWarningAction,_.IN))?Og(D,h.commands):Og(D,[D.youThereData_.showBlockingWarningAction]),D.inYouThereFlow_=!0),a=D.youThereData_.playbackPauseDelayMs,D.pausePlaybackJob_=
_.HK.addLowPriorityJob(function(){return _.M(function(G){D.pausePlaybackJob_=0;return G.yield(X1f(D),0)})},a));
_.YI(Q)})};
X1f=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(cXm(D),2);v=h.yieldResult;if(!D.youThereData_)return h.return();v&&(_.mW("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.wd(),D.youThereData_,D.clientPlaybackNonce_),Og(D,D.youThereData_.showPausedActions),D.inYouThereFlow_=!0);_.YI(h)})};
_.lMR.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var D=_.k(this.youThereData_.userActiveDuringFlowAction,_.IN);D?Og(this,D.commands):Og(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.mW("YOU_THERE_EVENT_TYPE_LACT_RESET",_.wd(),this.youThereData_,this.clientPlaybackNonce_),_.s5());Nf3(this,!0)}_.q5f(this,!1)};
_.bpB=function(D){_.mW("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.wd(),D.youThereData_,D.clientPlaybackNonce_)};
cXm=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(D.playerProvider_().getPlayerPromise(),2);v=a.yieldResult;h=v.getPlayerState();return a.return(h==-1||h==1||h==3)})};
_.q5f=function(D,v){var h;_.M(function(a){if(a.nextAddress==1){if(D.isUserPredictedAbsent_==v)return a.jumpTo(0);D.isUserPredictedAbsent_=v;return a.yield(D.playerProvider_().getPlayerPromise(),3)}h=a.yieldResult;h.setUserEngagement(v);v&&_.mW("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.wd(),D.youThereData_,D.clientPlaybackNonce_);_.YI(a)})};
Og=function(D,v){if(_.g("handle_service_request_actions")||_.g("kevlar_youthere_service_endpoint_actions_killswitch"))_.ZD(D.actionSenderElement_,v,D.actionSenderElement_);else{v=_.P(v);for(var h=v.next();!h.done;h=v.next())h=h.value,h.commandMetadata&&h.commandMetadata.webCommandMetadata&&h.commandMetadata.webCommandMetadata.sendPost?_.L1(D.actionSenderElement_,[h]):_.ZD(D.actionSenderElement_,[h],D.actionSenderElement_)}};var dYB;var jB3;var Ki=function(){var D=_.c.apply(this,arguments)||this;D.systemIcons=_.g("kevlar_system_icons");D.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return D};
_.J(Ki,_.c);Ki.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var D=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(D=this.data.percentIfLiked||0,this.activated=!0):(D=this.data.percentIfIndifferent||0,this.activated=!1);_.ZW(this.hostElement).querySelector("#like-bar").style.width=D+"%"}};
Ki.prototype.handleUpdateSentimentBarStateCommand=function(D){this.data&&this.set("data.likeStatus",_.k(D,JXM).likeStatus)};
Ki.prototype.observeLikeStatus=Ki.prototype.observeLikeStatus;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Ki.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ki.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ki.prototype,"activated",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ki.prototype,"systemIcons",void 0);_.e([_.Ni("data.likeStatus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ki.prototype,"observeLikeStatus",null);_.e([_.m({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ki);
_.w(Ki,"ytd-sentiment-bar-renderer",function(){if(jB3!==void 0)return jB3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jB3=D},{mode:1});var sBH;var T2=function(){var D=_.c.apply(this,arguments)||this;D.small=!0;return D};
_.J(T2,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],T2.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],T2.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],T2.prototype,"small",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],T2);
_.w(T2,"ytd-video-view-count-renderer",function(){if(sBH!==void 0)return sBH;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return sBH=D},{mode:_.E_("kevlar_poly_si_batch_j080")?1:2});var Rs=function(){var D=_.c.apply(this,arguments)||this;D.infoFormattedStrings=[];D.wrapVideoActions=_.g("kevar_watch_wrap_video_actions");D.hideSentimentBar=_.g("kevlar_watch_hide_sentiment_bar");D.actionMap={};return D};
_.J(Rs,_.c);_.V=Rs.prototype;_.V.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.g("web_modern_buttons"),forceIconButton:!_.g("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.V.dataChanged=function(){_.g("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.V.computeInfoFormattedStrings=function(D){if(!D)return[];var v=[];D.dateText&&v.push(D.dateText);D.stationName&&v.push(D.stationName);D.rating&&v.push(D.rating);D.startEndTimeTemplate&&D.startTimeUtcMillis&&D.endTimeUtcMillis&&v.push(_.aX(_.Kmf(_.$V(D.startEndTimeTemplate),Number(D.startTimeUtcMillis),Number(D.endTimeUtcMillis))));D.upNextProgramText&&v.push(D.upNextProgramText);return v};
_.V.scheduleInitialUpdatedMetadataRequest=function(){var D,v=(D=this.data)==null?void 0:D.updatedMetadataEndpoint;if(v){var h;D=Number((h=_.k(v,_.Lq4))==null?void 0:h.initialDelayMs);h=isNaN(D)?250:D;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),h)}};
_.V.setSentimentBarWidth=function(){var D=this;_.$R(this,function(){var v=_.ZW(D.hostElement).querySelector("ytd-menu-renderer");if(v){v=v.topLevelButtons;for(var h=0,a=0;a<v.length;a++){var Q=v[a],G=D.get("toggleButtonSupportedData.toggleButtonIdData.id",Q.data);if(G==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||G==="TOGGLE_BUTTON_ID_TYPE_LIKE")h+=Q.clientWidth+8;else break}h&&(D.sentiment.style.width=h-8+" px")}})};
_.V.fetchUpdatedMetadata=function(D){var v;D&&(v={continuation:D});var h;(D=(h=this.data)==null?void 0:h.updatedMetadataEndpoint)&&_.xd().resolve(_.fx).resolveCommand(D,{form:Object.assign({},v,{element:this.hostElement})})};
_.V.onYtServiceRequestSent=function(D,v){v.endpoint&&_.k(v.endpoint,_.nS)&&(this.hasUpdateSentimentBarStateCommands()&&!_.g("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.k(v.endpoint,_.nS).status),this.setSentimentBarWidth())};
_.V.hasUpdateSentimentBarStateCommands=function(){var D,v,h,a,Q=(a=(D=this.data)==null?void 0:(v=D.videoActions)==null?void 0:(h=v.menuRenderer)==null?void 0:h.topLevelButtons)!=null?a:[];D=_.P(Q);for(v=D.next();!v.done;v=D.next()){v=v.value;Q=a=h=void 0;var G=(h=v.toggleButtonRenderer)==null?void 0:(a=h.toggleButtonSupportedData)==null?void 0:(Q=a.toggleButtonIdData)==null?void 0:Q.id;if(G==="TOGGLE_BUTTON_ID_TYPE_LIKE"||G==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){a=h=void 0;v=(a=_.k((h=v.toggleButtonRenderer)==
null?void 0:h.defaultServiceEndpoint,_.IN))==null?void 0:a.commands;if(!v)break;v=_.P(v);for(h=v.next();!h.done;h=v.next())if(_.k(h.value,JXM))return!0}}return!1};
_.V.onYtServiceRequestCompleted=function(D,v){var h;(D=(h=v.data)==null?void 0:h.loggingDirectives)&&_.PCL(_.c8(),D);this.get("continuation.timedContinuationData",v.data)&&this.data&&this.data.updatedMetadataEndpoint&&(v=v.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,v.continuation),v.timeoutMs))};
_.V.computeHasDateText=function(D){return!!D&&!!D.dateText};
_.GT.Object.defineProperties(Rs.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return!((a=(D=this.data)==null?void 0:(v=D.videoActions)==null?void 0:(h=v.menuRenderer)==null?void 0:h.flexibleItems)==null||!a.length)}}});
Rs.prototype.onYtServiceRequestCompleted=Rs.prototype.onYtServiceRequestCompleted;Rs.prototype.onYtServiceRequestSent=Rs.prototype.onYtServiceRequestSent;Rs.prototype.dataChanged=Rs.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Rs.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Rs.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.lt.YtTaskEmitterBehavior),_.n("design:type",Object)],Rs.prototype,"ytTaskEmitterBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Rs.prototype,"data",void 0);_.e([_.Y({computed:"computeInfoFormattedStrings(data)"}),_.n("design:type",Array)],Rs.prototype,"infoFormattedStrings",void 0);
_.e([_.Y({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Rs.prototype,"hasDateText",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Rs.prototype,"wrapVideoActions",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Rs.prototype,"hideSentimentBar",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Rs.prototype,"flexMenuEnabled",null);
_.e([_.Br("#sentiment"),_.n("design:type",Object)],Rs.prototype,"sentiment",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rs.prototype,"dataChanged",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Rs.prototype,"onYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Rs.prototype,"onYtServiceRequestCompleted",null);
_.w(Rs,"ytd-video-primary-info-renderer",function(){if(dYB===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);dYB=D}D=dYB;return D},{mode:1});var mYQ;var ik=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.J(ik,_.c);_.V=ik.prototype;_.V.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"}}}};
_.V.dataChanged=function(){var D;this.descriptionToggled=!((D=this.data)==null||!D.defaultExpanded);var v;this.collapsed=this.descriptionAlwaysCollapsed||!((v=this.data)==null?0:v.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.En(110509);this.showLessClientVe=_.En(110510);D=_.wd();v=_.yC();D&&v&&_.rK(D,v,[this.showMoreClientVe,this.showLessClientVe])};
_.V.onYtExpanderMoreTapped=function(){var D,v=(D=this.data)==null?void 0:D.showMoreCommand;v&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(v);(D=_.wd())&&this.showMoreClientVe&&_.hA(D,this.showMoreClientVe)};
_.V.onYtExpanderLessTapped=function(){var D=_.wd();D&&this.showLessClientVe&&_.hA(D,this.showLessClientVe);var v;(D=(v=this.data)==null?void 0:v.showLessCommand)&&this.componentBehavior.resolveCommand(D)};
_.V.handleUpdateDateTextAction=function(D){this.data&&this.data.dateText&&this.set("data.dateText",_.k(D,_.keH).dateText)};
_.V.handleUpdateDescriptionAction=function(D){if(D=_.k(D,_.Lp$))D.isEmpty||!D.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.nb(D.description)):this.set("data.description",D.description)};
_.V.onYtChangeEngagementPanelVisibilityAction=function(D){if(_.g("web_structured_description_show_more")||_.g("web_engagement_panel_open_description")){var v,h=(v=_.k(D,_.SGJ))==null?void 0:v.targetId,a;D=((a=_.k(D,_.SGJ))==null?void 0:a.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";h==="engagement-panel-structured-description"&&D&&(this.descriptionToggled=!0)}};
_.V.updateCollapsedFromBinding=function(D){this.collapsed=D.detail.value};
_.V.updateDescriptionToggledFromBinding=function(D){this.descriptionToggled=D.detail.value};
_.V.updateCanCollapseFromBinding=function(D){this.canCollapse=D.detail.value};
_.GT.Object.defineProperties(ik.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.metadataRowContainer)==null?void 0:v.metadataRowContainerRenderer;return!!h&&!!h.rows&&h.rows.length>h.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
ik.prototype.onYtExpanderLessTapped=ik.prototype.onYtExpanderLessTapped;ik.prototype.onYtExpanderMoreTapped=ik.prototype.onYtExpanderMoreTapped;ik.prototype.dataChanged=ik.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],ik.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ik.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ik.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ik.prototype,"collapsed",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ik.prototype,"descriptionToggled",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],ik.prototype,"canCollapse",void 0);_.e([_.Y(),_.n("design:type",Object)],ik.prototype,"subscribeButtonData",void 0);_.e([_.Y(),_.n("design:type",Number)],ik.prototype,"descriptionCollapsedHeight",void 0);_.e([_.Y(),_.n("design:type",Object)],ik.prototype,"structuredDescriptionContentRenderer",void 0);_.e([_.Y({value:function(){return _.g("web_watch_description_always_collapsed")}}),
_.n("design:type",Boolean)],ik.prototype,"descriptionAlwaysCollapsed",void 0);_.e([_.Br("#description"),_.n("design:type",HTMLDivElement)],ik.prototype,"description",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ik.prototype,"dataChanged",null);_.e([_.lc("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ik.prototype,"onYtExpanderMoreTapped",null);
_.e([_.lc("yt-expander-less-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ik.prototype,"onYtExpanderLessTapped",null);_.e([_.N("data.metadataRowContainer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ik.prototype,"metadataCollapsible",null);_.e([_.N("data","structuredDescriptionContentRenderer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ik.prototype,"hasInlineStructuredDescription",null);
_.e([_.N("data.attributedDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ik.prototype,"hasAttributedDescription",null);_.e([_.N("hasInlineStructuredDescription","collapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ik.prototype,"loadStructuredDescription",null);_.e([_.N("data","structuredDescriptionContentRenderer","collapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ik.prototype,"showInlineStructuredDescription",null);
_.e([_.N("data","hasInlineStructuredDescription","metadataCollapsible"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ik.prototype,"descriptionAlwaysCollapsible",null);
_.w(ik,"ytd-video-secondary-info-renderer",function(){if(mYQ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden$="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);mYQ=D}D=mYQ;return D},{mode:2});var Hp3;var Wo=function(){return _.c.apply(this,arguments)||this};
_.J(Wo,_.c);Wo.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:_.g("web_modern_buttons"),forceIconButton:!_.g("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Wo.prototype.activate=function(D){D.appendTo(this.player);D.getPlayerPromise().then(function(v){v.setMinimized(!0)});
this.active=!0};
Wo.prototype.deactivate=function(){var D=this.player.firstElementChild;D.getPlayerPromise().then(function(v){v.setMinimized(!1)});
this.active=!1;return D};
Wo.prototype.onScrollUpTap=function(){var D=_.xd().resolve(_.P4).getCurrentPage();D&&D.setScrollTop(0)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Wo.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Wo.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Wo.prototype,"active",void 0);
_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.n("design:type",Boolean)],Wo.prototype,"darkLaunch",void 0);_.e([_.Br("#player"),_.n("design:type",HTMLDivElement)],Wo.prototype,"player",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Wo);
_.w(Wo,"ytd-miniplayer-bar-renderer",function(){if(Hp3!==void 0)return Hp3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Hp3=D},{mode:1});_.zh(_.H(function(D){var v=_.va("script");_.bW(function(){var h;if(h=JSON)h=g_Y(D.data()),h=_.$I(JSON.stringify(h).replace(/</g,"\\u003C"));var a=D.data(),Q=_.$V(a.title).trim().length===0,G=!a.publishDate||a.publishDate.trim().length===0,x,f,C,U,L=!((x=a.thumbnail)==null?0:(f=x.thumbnails)==null?0:f.length)||!((C=a.thumbnail)==null?0:C.thumbnails[0].url)||((U=a.thumbnail)==null?void 0:U.thumbnails[0].url.trim().length)===0;v.value&&h&&!(Q||G||L)&&_.QM(v.value,h)},"Vy9K7b");
return _.F("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.F("script",{el:v,type:"application/ld+json"}))},"Xm"),"player-microformat-renderer",{props:{data:_.C_}});
}catch(e){_._DumpException(e)}
try{
var A20,qWR,dHw;_.XKo=function(D){return D.watch.watchWindowSize};
A20=function(D,v){var h=document.querySelector(D);h?v(h):setTimeout(function(){A20(D,v)},1E3)};
qWR=function(D,v,h,a){if(D.isLockupToWatchTransitionEnabled){if(v){var Q={};Q=(Q["watch-next-appears"]="player-watch-next-loaded",Q);Q["lockup-to-watch"]=D.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";D.viewTransitionCoordinator.registerElement(v,Q)}h&&(v={},D.viewTransitionCoordinator.registerElement(h,(v["lockup-to-watch"]="below-lockup-to-watch",v["watch-next-appears"]="below-watch-next-loaded",v)));a&&(h={},D.viewTransitionCoordinator.registerElement(a,
(h["watch-next-appears"]="secondary-watch-next-loaded",h)))}};
_.bLM=function(D){return _.oG({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:D}})};
dHw=new _.z0("webWatchNextResponseExtensionData");var sef=function(D){_.AN.call(this);var v=this;this.JSC$23093_watchApi=D;this.observer=null;var h=this.JSC$23093_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jeH(v)});
this.addOnDisposeCallback(function(){v.JSC$23093_watchApi.unsubscribeByKey(h);v.observer&&(v.observer.disconnect(),v.observer=null)});
jeH(this)};
_.J(sef,_.AN);
var jeH=function(D){var v,h,a,Q;_.M(function(G){if(G.nextAddress==1){D.observer&&(D.observer.disconnect(),D.observer=null);v=D.JSC$23093_watchApi.getWatchNextResponse();if(!v)return G.return();h=_.k(v,dHw);return((a=h)==null?0:a.enableCreatorChatbot)&&h.creatorChannelId?G.yield((0,_.W28)("NSzT5"),3):G.jumpTo(0)}Q=_.pUK;Q(h.creatorChannelId);A20("ytd-watch-metadata",function(x){D.observer=new MutationObserver(function(){var f,C;(f=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(C=f.closest("yt-button-view-model.ytd-menu-renderer"))==null||C.remove()});
D.observer.observe(x,{childList:!0,subtree:!0})});
_.YI(G)})};var HLQ=function(D){_.AN.call(this);this.JSC$23097_watchApi=D;mHf(this)};
_.J(HLQ,_.AN);var mHf=function(D){_.M(function(v){if(v.nextAddress==1)return v.yield(y2K(D),2);wKw(D);_.YI(v)})},y2K=function(D){var v,h,a,Q;
return _.M(function(G){if(G.nextAddress==1)return G.yield(D.JSC$23097_watchApi.playerApi,2);v=G.yieldResult;D.JSC$23097_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){edM(D)});
h=D.JSC$23097_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wKw(D)});
a=function(x){D.onCueRangeEnter(x)};
v.addEventListener("onCueRangeEnter",a);Q=function(x){D.onCueRangeExit(x)};
v.addEventListener("onCueRangeExit",Q);D.addOnDisposeCallback(function(){D.JSC$23097_watchApi.unsubscribeByKey(h);v.removeEventListener("onCueRangeEnter",a);v.removeEventListener("onCueRangeExit",Q)});
_.YI(G)})},nzK=function(D){var v,h,a,Q,G,x,f,C,U;
return(G=(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.results)==null?void 0:(Q=a.results)==null?void 0:Q.contents)==null?void 0:(x=G.find(function(L){var Z,E,I;return(Z=L.itemSectionRenderer)==null?void 0:(E=Z.contents)==null?void 0:(I=E[0])==null?void 0:I.shoppingTimelyShelfViewModel}))==null?void 0:(f=x.itemSectionRenderer)==null?void 0:(C=f.contents)==null?void 0:(U=C[0])==null?void 0:U.shoppingTimelyShelfViewModel},wKw=function(D){var v;
_.M(function(h){if(h.nextAddress==1)return(v=D.JSC$23097_watchApi.getWatchNextResponse())?h.yield(edM(D),2):h.return();D.shoppingTimelyShelfViewModel=nzK(v);OLz(D);Kdo(D);_.YI(h)})},OLz=function(D){var v,h=(v=D.shoppingTimelyShelfViewModel)==null?void 0:v.offerIdToVariants;
h&&(v=h.filter(function(a){return a.key&&a.value}).map(function(a){return[a.key,
a.value]}),D.variantsMap=new Map(v))},Kdo=function(D){var v,h,a,Q,G,x;
_.M(function(f){if(f.nextAddress==1)return(h=(v=D.shoppingTimelyShelfViewModel)==null?void 0:v.cueRanges)?f.yield(D.JSC$23097_watchApi.playerApi,2):f.return();a=f.yieldResult;D.cueRanges=h;Q=_.P(h);for(G=Q.next();!G.done;G=Q.next())x=G.value,x.startTime!==void 0&&x.endTime!==void 0&&x.id!==void 0&&a.addCueRange("shopping_timely_shelf"+x.id,TaH(x.startTime),TaH(x.endTime));_.YI(f)})},TaH=function(D){return Number(D.seconds||0)+(D.nanos||0)/1E9};
HLQ.prototype.onCueRangeEnter=function(D){if(D.startsWith("shopping_timely_shelf")){var v=D.substring(21),h,a;D=(h=this.variantsMap)==null?void 0:(a=h.get(v))==null?void 0:a.shelf;if(_.g("web_enable_shopping_timely_shelf_client_overwrite")){var Q,G,x,f,C;h=D==null?void 0:(Q=D.shoppingTimelyShelfContentViewModel)==null?void 0:(G=Q.button)==null?void 0:(x=G[1])==null?void 0:(f=x.buttonViewModel)==null?void 0:(C=f.onTap)==null?void 0:C.innertubeCommand;var U,L;if(h==null?0:(U=h.menuEndpoint)==null?0:
(L=U.menu)==null?0:L.menuRenderer)h.openPopupAction=h.menuEndpoint,h.openPopupAction.popup=h.openPopupAction.menu,h.openPopupAction.popup.menuPopupRenderer=h.openPopupAction.popup.menuRenderer,h.openPopupAction.popupType="DROPDOWN",delete h.menuEndpoint,delete h.openPopupAction.menu,delete h.openPopupAction.popup.menuRenderer;Q=D==null?void 0:D.shoppingTimelyShelfContentViewModel;if(Q!=null&&Q.button)for(G=_.P(Q.button),f=G.next();!f.done;f=G.next())x=void 0,(f=(x=f.value)==null?void 0:x.buttonViewModel)&&
!f.onTap&&(x=void 0,f.onTap=(x=Q.rendererContext)==null?void 0:x.commandContext.onTap)}D&&this.JSC$23097_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",D)}};
HLQ.prototype.onCueRangeExit=function(D){D.startsWith("shopping_timely_shelf")&&this.JSC$23097_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var edM=function(D){var v,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return x.yield(D.JSC$23097_watchApi.playerApi,2);v=x.yieldResult;if(D.cueRanges)for(h=_.P(D.cueRanges),a=h.next();!a.done;a=h.next())Q=a.value,Q.id&&(G="shopping_timely_shelf"+Q.id,v.removeCueRange(G));D.JSC$23097_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});D.shoppingTimelyShelfViewModel=void 0;D.cueRanges=void 0;D.variantsMap=void 0;_.YI(x)})};var r2H=function(D){_.AN.call(this);var v=this;this.JSC$23104_watchApi=D;D=_.Oe(_.Gb(),_.TCc,function(){RdK(v)});
this.addOnDisposeCallback(D);D=_.Oe(_.Gb(),_.XKo,function(){RdK(v)});
this.addOnDisposeCallback(D);iLH(this);Wd3(this);tJM()};
_.J(r2H,_.AN);var iLH=function(D){var v=function(a){_.Gb().dispatch(_.wdf(a.matches))},h=window.matchMedia("(max-width: "+(999+_.Ux())+"px)");
h.addListener(v);D.addOnDisposeCallback(function(){h.removeListener(v)});
v(h)},Wd3=function(D){D.JSC$23104_watchApi.registerActionHandler("yt-window-resized",function(){tJM()});
D.addOnDisposeCallback(function(){D.JSC$23104_watchApi.unregisterActionHandler("yt-window-resized")})},tJM=function(){var D=_.XT();
_.Gb().dispatch(_.oG({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:D.width,height:D.height}}}))},RdK=function(D){var v;
_.M(function(h){if(h.nextAddress==1)return h.yield(D.JSC$23104_watchApi.playerApi,2);v=h.yieldResult;v.setSize(NaN,NaN);_.YI(h)})};var ukY=function(D){_.AN.call(this);var v=_.xd().resolve(_.KN);qWR(v,D.getElement("PLAYER_CONTAINER"),D.getElement("BELOW_THE_PLAYER"),D.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var h=D.getElement("PLAYER_CONTAINER"),a=D.getElement("BELOW_THE_PLAYER"),Q=D.getElement("SECONDARY");v.isLockupToWatchTransitionEnabled&&(h&&_.Kj(v.viewTransitionCoordinator,h),a&&_.Kj(v.viewTransitionCoordinator,a),Q&&_.Kj(v.viewTransitionCoordinator,Q))})};
_.J(ukY,_.AN);_.Ho=function(D){_.yl.call(this);var v=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return v.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(h){v.initOrDisposeActiveModules(h)}));
this.onAttached()};
_.J(_.Ho,_.yl);_.V=_.Ho.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(D){return this.rootElement.getElement(D)};
_.V.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(D,v){var h=this;if(_.g("web_watch_controller_reg_multiple_handlers_killswitch")){var a={};_.rf(_.iD.getInstance(),(a[D]=v,a),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),a={},_.rf(_.iD.getInstance(),(a[D]=function(){var Q=_.Kz.apply(0,arguments);return(h.actionHandlers.get(D)||[]).map(function(G){return G.apply(null,_.j_(Q))})},a),this.getRoot())),this.actionHandlers.get(D).push(v)};
_.V.unregisterActionHandler=function(D){if(_.g("web_watch_controller_reg_multiple_handlers_killswitch")){var v={};_.uD(_.iD.getInstance(),(v[D]=!0,v),this.getRoot())}else(v=this.actionHandlers.get(D))?(v.pop(),v.length===0&&(v={},_.uD(_.iD.getInstance(),(v[D]=!0,v),this.getRoot()),this.actionHandlers.delete(D))):_.yR(new _.XH("Attempted to unregister an action handler which is not registered.",D))};
_.V.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ccA(this.rootElement.pageDisposeJobs,D)};
_.V.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.e2(this.rootElement.pageDisposeJobs,D)};
_.V.dispatchEvent=function(D,v){_.F1(this.rootElement,D,v)};
_.V.provideRenderingData=function(D,v){this.rootElement.provideRenderingData(D,v)};
_.V.scrollWatchTo=function(D,v){var h;(h=this.watchScrollManager)==null||h.scrollWatchTo(D,v)};
_.V.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.$R(D,function(){if(D&&D.firstElementChild){var v=D.querySelector(".html5-video-player");v&&(_.Yi(_.xd().resolve(_.qL)),v.focus())}else _.yR(Error("Wo"))})};
_.V.subscribeToActiveChanged=function(D,v){v=v===void 0?!0:v;var h=_.Oe(_.Gb(),_.yrY,function(a){D(a)});
v&&D(_.yrY(_.Gb().getState()));return h};
_.V.isActive=function(){return _.yrY(_.Gb().getState())};
_.V.onAttached=function(){var D=_.g("external_fullscreen");_.g("use_unified_flag_accessor")&&(D=_.xd().resolve(_.rwU).retriever.getFlag(_.dx1));(D||_.nJ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var DY0=function(D){return D.getRoot().is==="ytd-watch-flexy"||D.getRoot().is==="ytd-watch-grid"},yj=function(D){return D.getRoot().is==="ytd-watch-fixie"};
_.Ho.prototype.initPersistentModules=function(){if(yj(this)||DY0(this)&&_.g("kevlar_watch_flexy_theater_manager")){var D=new _.hxQ(this);_.Ia(this,D)}D=new _.ndB(this);_.Ia(this,D);D=new _.AG(this);_.Ia(this,D);D=new _.Hx0(this);_.Ia(this,D);D=new _.sg(this);_.Ia(this,D);D=new _.q7(this);_.Ia(this,D);if(yj(this)||DY0(this)&&_.g("kevlar_watch_flexy_playlist_manager"))D=new _.kmw(this),_.Ia(this,D);_.g("web_thumbnail_to_watch_transition")&&(D=new ukY(this),_.Ia(this,D))};
_.Ho.prototype.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.mH(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Qef(this)),_.g("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new HLQ(this)),this.activeModules.push(new _.$do(this)),yj(this)&&this.activeModules.push(new r2H(this)),this.activeModules.push(new _.YWm(this)),this.activeModules.push(new _.rOY(this)),(yj(this)||_.g("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.xdY(this)),this.activeModules.push(new _.fo3(this)),(yj(this)||_.g("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.c2R(this)),(yj(this)||_.g("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Zxw(this)),_.g("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.SzB(this),this.activeModules.push(this.watchCinematicManager)),_.g("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.zdR(this)),_.g("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.wVd(this)),D=_.g("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.g("kevlar_watch_flexy_comments_manager")&&!D&&this.activeModules.push(new _.bxM(this)),_.g("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gfd(this)),this.activeModules.push(new _.MOf(this)),this.activeModules.push(new _.VJf(this)),_.g("web_enable_timely_actions")&&this.activeModules.push(new _.FbK(this)),_.g("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.jtf(this)),_.g("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.NMR(this)),_.g("web_fullscreen_components")&&this.activeModules.push(new _.ofM(this)),_.g("web_player_rtr_ctrls")&&this.activeModules.push(new _.mdQ(this)),_.g("enable_creator_chatbot")&&this.activeModules.push(new sef(this))):(_.PQ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Ho.prototype.disposeInternal=function(){_.yl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.GT.Object.defineProperties(_.Ho.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var p52,aT,lv2,NBX,BB3,c5s,YmU,X5X;p52=function(){var D=_.cU();D.info||(D.info={});return D.info};
aT=function(D){return Math.round(_.b1()+D)};
lv2=function(){var D;if(_.g("csi_use_performance_navigation_timing")){var v,h,a,Q=_.qF==null?void 0:(D=_.qF.getEntriesByType)==null?void 0:(v=D.call(_.qF,"navigation"))==null?void 0:(h=v[0])==null?void 0:(a=h.toJSON)==null?void 0:a.call(h);Q?(Q.requestStart=aT(Q.requestStart),Q.responseEnd=aT(Q.responseEnd),Q.redirectStart=aT(Q.redirectStart),Q.redirectEnd=aT(Q.redirectEnd),Q.domainLookupEnd=aT(Q.domainLookupEnd),Q.connectStart=aT(Q.connectStart),Q.connectEnd=aT(Q.connectEnd),Q.responseStart=aT(Q.responseStart),
Q.secureConnectionStart=aT(Q.secureConnectionStart),Q.domainLookupStart=aT(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,D=Q):D=_.qF.timing}else D=_.g("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.qF.timing)):_.qF.timing;return D};
NBX=function(){if(_.qF.getEntriesByType){var D=_.qF.getEntriesByType("paint");if(D=_.j2(D,function(h){return h.name==="first-paint"}))return aT(D.startTime)}var v;
_.g("csi_use_performance_navigation_timing")?v=_.qF.getEntriesByType("first-paint")[0].startTime:v=_.qF.timing.msFirstPaint;return v?Math.max(0,v):0};
BB3=function(){var D=window.location.protocol,v=_.qF.getEntriesByType("resource");v=_.op(v,function(h){return h.name.indexOf(D+"//fonts.gstatic.com/s/")===0});
(v=YmU(v,function(h,a){return a.duration>h.duration?a:h}))&&v.startTime>0&&v.responseEnd>0&&(_.dK("wffs",aT(v.startTime)),_.dK("wffe",aT(v.responseEnd)))};
c5s=function(D,v){D=document.querySelector(D);if(!D)return!1;var h="",a=D.nodeName;a==="SCRIPT"?(h=D.src,h||(h=D.getAttribute("data-timing-href"))&&(h=window.location.protocol+h)):a==="LINK"&&(h=D.href);_.vp(document)&&D.setAttribute("nonce",_.vp(document));return h?(D=_.qF.getEntriesByName(h))&&D[0]&&(D=D[0],h=_.b1(),_.dK("rsf_"+v,h+Math.round(D.fetchStart)),_.dK("rse_"+v,h+Math.round(D.responseEnd)),D.transferSize!==void 0&&D.transferSize===0)?!0:!1:!1};
_.A5S=function(D,v){_.KJ(function(){_.AP("").info.actionType=D;v&&_.wM("TIMING_AFT_KEYS",v);_.wM("TIMING_ACTION",D);var h=_.pq7(_.eA("TIMING_INFO",{}));Object.keys(h).length>0&&_.ja(h);h={isNavigation:!0,actionType:_.CNq(_.eA("TIMING_ACTION"))};var a=_.eA("PREVIOUS_ACTION");a&&(h.previousAction=_.CNq(a));if(a=_.eA("CLIENT_PROTOCOL"))h.httpProtocol=a;if(a=_.eA("CLIENT_TRANSPORT"))h.transportProtocol=a;(a=_.wd())&&a!=="UNDEFINED_CSN"&&(h.clientScreenNonce=a);a=_.Jxu();if(a===1||a===-1)h.isVisible=!0;
a=_.$9O().loadType==="cold";var Q=p52();a||(a=Q.yt_lt==="cold");if(a){h.loadType="cold";a=p52();Q=lv2();var G=_.b1(),x=_.eA("CSI_START_TIMESTAMP_MILLIS",0);x>0&&!_.g("embeds_web_enable_csi_start_override_killswitch")&&(G=x);G&&(_.dK("srt",Q.responseStart),a.prerender!==1&&_.LB2(G));a=NBX();a>0&&_.dK("fpt",a);a=lv2();a.isPerformanceNavigationTiming&&_.ja({performanceNavigationTiming:!0},void 0);_.dK("nreqs",a.requestStart,void 0);_.dK("nress",a.responseStart,void 0);_.dK("nrese",a.responseEnd,void 0);
a.redirectEnd-a.redirectStart>0&&(_.dK("nrs",a.redirectStart,void 0),_.dK("nre",a.redirectEnd,void 0));a.domainLookupEnd-a.domainLookupStart>0&&(_.dK("ndnss",a.domainLookupStart,void 0),_.dK("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(_.dK("ntcps",a.connectStart,void 0),_.dK("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=_.b1()&&a.connectEnd-a.secureConnectionStart>0&&(_.dK("nstcps",a.secureConnectionStart,void 0),_.dK("ntcpe",a.connectEnd,void 0));_.qF&&"getEntriesByType"in
_.qF&&BB3();a=[];if(document.querySelector&&_.qF&&_.qF.getEntriesByName)for(var f in X5X)X5X.hasOwnProperty(f)&&(Q=X5X[f],c5s(f,Q)&&a.push(Q));if(a.length>0)for(h.resourceInfo=[],f=_.P(a),a=f.next();!a.done;a=f.next())h.resourceInfo.push({resourceCache:a.value})}_.ja(h);h=_.X1();h.preLoggedGelInfos||(h.preLoggedGelInfos=[]);f=h.preLoggedGelInfos;h=_.GL7();a=void 0;for(Q=0;Q<f.length;Q++)if(G=f[Q],G.loadType){a=G.loadType;break}if(_.$9O().loadType==="cold"&&(h.loadType==="cold"||a==="cold")){a=_.QRi();
Q=_.X1();Q=Q.gelTicks?Q.gelTicks:Q.gelTicks={};for(var C in a)if(!(C in Q))if(typeof a[C]==="number")_.dK(C,_.s9(C));else if(_.g("log_repeated_ytcsi_ticks"))for(G=_.P(a[C]),x=G.next();!x.done;x=G.next())x=x.value,_.dK(C.slice(1),x);C={};a=!1;f=_.P(f);for(Q=f.next();!Q.done;Q=f.next())a=Q.value,_.Km(h,a),_.Km(C,a),a=!0;a&&_.ja(C)}_.B3q(!0);C=_.eA("TIMING_ACTION");_.T3("ytglobal.timingready_")&&C&&_.m9q()&&_.YBr()&&_.kLo()})()};
YmU=function(D,v){return Array.prototype.reduce.call(D,v,{duration:0})};
X5X={'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 qmK={};qmK.YtVisibilityRootBehavior=[_.ZdJ.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.V5(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.eA("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var D=_.eA("INNERTUBE_CLIENT_NAME")!=="WEB";_.g("kevlar_use_vimio_behavior")&&D&&_.LEJ()}}];_.$T={};_.$T.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(D){D.detail.contextProvider=this;D.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
qmK.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.hn();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(D){var v=this;this.pageCount+=1;_.g("kevlar_use_vimio_behavior")&&(_.eA("INNERTUBE_CLIENT_NAME")==="WEB"?_.HK.addJob(function(){v.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(D)},
loadPage_:function(D){this.data=D},
ytPageBehaviorActiveObserver_:function(D){var v=this;_.g("kevlar_use_vimio_behavior")&&(D?_.eA("INNERTUBE_CLIENT_NAME")==="WEB"?_.HK.addJob(function(){v.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(D){if(!this.setScrollTopJobId_){var v=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){v.setScrollTopJobId_=0;var h=_.xd().resolve(_.PV(_.qL));h&&_.Yi(h);this.getPageScrollingElement().scrollTop=D}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Hu(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var J5d;var h7=function(){var D=_.c.apply(this,arguments)||this;D.playerListenerConfig=null;D.actionMap={"yt-show-watch-page-survey":"openSurvey"};return D};
_.J(h7,_.c);_.V=h7.prototype;_.V.dataChanged=function(){var D=this,v=_.Mq();v&&v.getPlayerPromise().then(function(a){D.maybeRemovePlayerListeners(a)});
var h=this.data&&this.data.survey;h&&((h=(h=h.singleOptionSurveyRenderer||h.checkboxSurveyRenderer||h.multiStageSurveyRenderer)&&h.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(v,h):this.openSurvey())};
_.V.triggerWatchPageSurvey=function(D,v){var h=this,a,Q,G,x,f,C,U,L,Z;return _.M(function(E){if(E.nextAddress==1)return D?E.yield(D.getPlayerPromise(),2):E.return();h.player=E.yieldResult;if(!h.player)return E.return();a={};Q=_.P(v);for(G=Q.next();!G.done;G=Q.next())x=G.value,f=_.P(h.createEventListenerPair(x)),C=f.next().value,U=f.next().value,L=C,Z=U,L&&Z&&(a[L]=Z,h.ytPlayerListenerBehavior.listenToPlayerEvent(h.player,L,Z));h.playerListenerConfig=a;_.YI(E)})};
_.V.createEventListenerPair=function(D){var v=D.playbackEventTrigger;return v?this.handlePlaybackTrigger(v):(D=D.watchTimeTrigger)?this.handleWatchTimeTrigger(D):[void 0,void 0]};
_.V.handleWatchTimeTrigger=function(D){var v=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var h=D.videoWatchFraction,a=D.watchTimeSec;return a&&h?["onVideoProgress",function(){v.player&&v.isWatchTimeConditionMet(v.player,h,a)&&v.showSurvey()}]:[void 0,
void 0]};
_.V.isWatchTimeConditionMet=function(D,v,h){var a=D.getProgressState(),Q=a.current-this.lastKnownPlaybackPosition;Q<5&&(this.accumulatedMediaTime+=Q);this.lastKnownPlaybackPosition=a.current;a=Math.round(this.accumulatedMediaTime/a.duration*1E3)/1E3;return D.getPresentingPlayerType&&D.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>h||a>v)};
_.V.handlePlaybackTrigger=function(D){var v=this;D=D.playbackEvent;if(D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var h="onStateChange";var a=function(Q){Q===0&&v.showSurvey()}}else D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(h="onVideoProgress",a=function(Q){v.player&&v.player.getPresentingPlayerType&&v.player.getPresentingPlayerType()===1&&Q&&v.showSurvey()}):D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(h="onAdEnd",a=this.showSurvey);
return[h,a]};
_.V.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.V.openSurvey=function(){var D=this,v=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.QNU(!!v));_.HK.addJob(function(){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:v}})},0,0)};
_.V.maybeRemovePlayerListeners=function(D){if(this.playerListenerConfig){for(var v=_.P(Object.keys(this.playerListenerConfig)),h=v.next();!h.done;h=v.next())h=h.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(D,h,this.playerListenerConfig[h]);this.playerListenerConfig=null}};
h7.prototype.dataChanged=h7.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],h7.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],h7.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],h7.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],h7.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],h7.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],h7.prototype,"playerListenerConfig",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],h7.prototype,"lastKnownPlaybackPosition",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],h7.prototype,"accumulatedMediaTime",void 0);_.e([_.Y(),_.n("design:type",Object)],h7.prototype,"player",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],h7.prototype,"dataChanged",null);_.e([_.m({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],h7);
_.w(h7,"ytd-survey-trigger-renderer",function(){if(J5d!==void 0)return J5d;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return J5d=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var gC3=new _.z0("promotedSparklesWebRenderer");var kdR=new _.z0("relatedChipCommand");var S2K;var JrQ;var XG=function(){return _.c.apply(this,arguments)||this};
_.J(XG,_.c);XG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XG.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],XG);
_.w(XG,"ytd-compact-tvfilm-entry-point-renderer",function(){if(JrQ!==void 0)return JrQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return JrQ=D},{mode:1});var ps0;var lbM;var NrY;var AZ=function(){return _.c.apply(this,arguments)||this};
_.J(AZ,_.c);AZ.prototype.ready=function(){this.initializeDefs()};
AZ.prototype.initializeDefs=function(){var D=this.meta.byKey("yt-icons"),v=_.ZW(D).querySelector("#star"),h=_.ZW(D).querySelector("#star_half");D=_.ZW(D).querySelector("#star_border");v&&this.defs.appendChild(v.cloneNode(!0));h&&this.defs.appendChild(h.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0))};
AZ.prototype.percentChanged=function(){for(var D=this.rating;D.firstChild;)D.removeChild(D.firstChild);var v=Math.round(this.percent/10);D=Math.floor(v/2);v%=2;var h=5-D-v;this.appendStars("star",D,0);this.appendStars("star_half",v,D);this.appendStars("star_border",h,D+v)};
AZ.prototype.appendStars=function(D,v,h){for(var a=0;a<v;a++){var Q=(18+this.spacing)*(a+h),G=document.createElementNS("http://www.w3.org/2000/svg","use");_.IXb(G,"#"+D);G.setAttribute("x",""+Q);G.setAttribute("y","0");this.rating.appendChild(G)}};
AZ.prototype.percentChanged=AZ.prototype.percentChanged;_.e([_.Br("#defs"),_.n("design:type",HTMLElement)],AZ.prototype,"defs",void 0);_.e([_.Br("#rating"),_.n("design:type",HTMLElement)],AZ.prototype,"rating",void 0);_.e([_.Y(),_.n("design:type",Number)],AZ.prototype,"percent",void 0);_.e([_.Y({value:6}),_.n("design:type",Number)],AZ.prototype,"spacing",void 0);_.e([_.Y({value:_.yk.create("iron-meta",{type:"iconset"})}),_.n("design:type",_.OB)],AZ.prototype,"meta",void 0);
_.e([_.Ni("percent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AZ.prototype,"percentChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-ratings"})],AZ);
_.w(AZ,"ytd-ratings",function(){if(NrY!==void 0)return NrY;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return NrY=D},{mode:1});var Y2M=function(){return _.c.apply(this,arguments)||this};
_.J(Y2M,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Y2M.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Y2M.prototype,"data",void 0);_.e([_.m({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Y2M);
_.w(Y2M,"ytd-offer-review-renderer",function(){if(lbM!==void 0)return lbM;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return lbM=D},{mode:1});var qT=function(){var D=_.c.apply(this,arguments)||this;D.badges=[{textBadge:{label:_.aX("CC")}}];return D};
_.J(qT,_.c);_.V=qT.prototype;_.V.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.V.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(D&&D.commandMetadata&&_.k(D.commandMetadata,_.Kr)&&_.k(D.commandMetadata,_.Kr).fireAutomatically)_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}});else{var v;D&&((v=_.k(D,_.Kr))==null?0:v.fireAutomatically)&&_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})}};
_.V.isEmptyContent=function(D){return this.isStorefrontEntryPointEmpty(D)&&this.shouldHideOfferModule(D)};
_.V.isStorefrontEntryPointEmpty=function(D){return!D||!D.storefrontEntryPoint};
_.V.shouldHideOfferModule=function(D){return!!D.hideVideoDetails};
_.V.isOfferModuleNavigationInactive=function(D){return!D.navigationEndpoint&&!D.serviceEndpoint};
_.V.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
qT.prototype.dataChanged=qT.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qT.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.n("design:type",Boolean)],qT.prototype,"hidden",void 0);
_.e([_.Y(),_.n("design:type",Object)],qT.prototype,"badges",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qT.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],qT);
_.w(qT,"ytd-movie-offer-module-renderer",function(){if(ps0!==void 0)return ps0;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ps0=D},{mode:1});var BrY;var crY=function(){return _.c.apply(this,arguments)||this};
_.J(crY,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],crY.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],crY.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],crY);
_.w(crY,"ytd-media-masthead-renderer",function(){if(BrY!==void 0)return BrY;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return BrY=D},{mode:1});var Xsf;_.zh(_.ilb,"course-metadata-view-model",{props:{data:_.C_,isOverlay:_.C_}});var b$=function(){var D=_.c.apply(this,arguments)||this;D.isMetadataVisible=!1;D.modernPanels=_.g("kevlar_watch_modern_panels");D.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return D};
_.J(b$,_.c);_.V=b$.prototype;
_.V.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"}}}}};
_.V.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.V.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.V.expanderChanged=function(){var D;if((D=this.data)==null?0:D.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.V.isExpandButtonToggled=function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.expandMetadataButton,_.oA))==null?void 0:v.isToggled};
_.V.onVisibilityButtonClick=function(){var D;if((D=this.data)==null?0:D.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.V.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
b$.prototype.expanderChanged=b$.prototype.expanderChanged;b$.prototype.dataChanged=b$.prototype.dataChanged;b$.prototype.descriptionChanged=b$.prototype.descriptionChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l([_.ed.YtActionHandlerBehavior]),_.n("design:type",Object)],b$.prototype,"actionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],b$.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],b$.prototype,"isMetadataVisible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],b$.prototype,"modernPanels",void 0);_.e([_.Br("#expander"),_.n("design:type",Object)],b$.prototype,"expander",void 0);_.e([_.Ni("data.description"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],b$.prototype,"descriptionChanged",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],b$.prototype,"dataChanged",null);_.e([_.Ni("isMetadataVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],b$.prototype,"expanderChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],b$);
_.w(b$,"ytd-tvfilm-offer-module-renderer",function(){if(Xsf!==void 0)return Xsf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Xsf=D},{mode:2});var ArK;var d_=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return D};
_.J(d_,_.c);d_.prototype.dataChanged=function(){this.hostElement.hidden=!1};
d_.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
d_.prototype.onThumbnailTap=function(D){this.data&&this.data.serviceEndpoint&&(_.xd().resolve(_.fx).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),D.stopPropagation())};
d_.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
d_.prototype.dataChanged=d_.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],d_.prototype,"rendererBehaviors",void 0);_.e([_.l([_.ed.YtActionHandlerBehavior]),_.n("design:type",Object)],d_.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],d_.prototype,"data",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],d_.prototype,"dataChanged",null);_.e([_.m({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],d_);
_.w(d_,"ytd-unlimited-offer-module-renderer",function(){if(ArK!==void 0)return ArK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ArK=D},{mode:1});var q2m;var b3B;var jr=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return D};
_.J(jr,_.c);jr.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
jr.prototype.handleRelatedChipCommand=function(D){D=_.k(D,kdR);var v=D.contents;v?_.U9(this.hostElement,"yt-item-section-replace-action",[v,D.targetSectionIdentifier]):_.U9(this.hostElement,"yt-item-section-continuation-action",[D.continuationData,D.targetSectionIdentifier])};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],jr.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jr.prototype,"data",void 0);_.e([_.Ry({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],jr);
_.w(jr,"yt-related-chip-cloud-renderer",function(){if(b3B===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;q2m===void 0&&(q2m=document.createElement("template"));var a=q2m;h.call(v,a.content.cloneNode(!0),D.content.firstChild);b3B=D}D=b3B;return D},{mode:2});var sJ=function(){var D=_.c.apply(this,arguments)||this;D.isTwoColumns=!0;D.watchFeedBigThumbs=_.g("kevlar_watch_feed_big_thumbs");D.watchFeedBigThumbsOnLockup=_.g("web_watch_next_big_thumbs");D.watchNextGridHideChips=_.g("kevlar_watch_grid_hide_chips");D.eligibleToSwitchToGrid=_.g("web_watch_eligible_to_switch_to_grid");D.disableShortsShelfHeightOverride=_.g("web_shorts_wn_shelf_ratio_tuning");D.isWatchNextGrid=!1;D.reuseComponents=!_.g("kevlar_watch_grid");D.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return D};
_.J(sJ,_.c);_.V=sJ.prototype;
_.V.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.g("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}}};
_.V.getItemsPath=function(){return"data.results"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.V.created=function(){this.ytLazyListBehavior.initialCount=1};
_.V.ready=function(){_.SB(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%"})};
_.V.resultsChanged=function(){if(this.data&&this.data.results){for(var D=this.data.results,v=null,h=null,a=0;a<D.length;a++)D[a].relatedChipCloudRenderer?v=D[a].relatedChipCloudRenderer:D[a].itemSectionRenderer&&(h=D[a].itemSectionRenderer);if(v&&h)for(this.set("data.continuations",[]),D=_.k(v.content,_.e$s).chips,v=0;v<D.length;v++)if(a=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",D[v]),a.loadCached||!a.contents){a.contents=h.contents;break}}};
_.V.dataChanged=function(){var D=this,v;if((v=this.data)!=null&&v.results&&this.hasAllowedInstreamAd(this.playerData)){if(v=this.data.results.filter(function(f){return!!f.promotedSparklesWebRenderer})){for(var h=0;h<v.length;h++){var a=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",v[h]);
if(a)for(var Q=0;Q<a.length;Q++)a[Q]&&a[Q].baseUrl&&_.WK(a[Q].baseUrl)}this.set("data.results",this.data.results.filter(function(f){return!f.promotedSparklesWebRenderer}))}if(v=this.data.results.filter(function(f){return!!D.getSparklesAd(f)})){v=_.P(v);
for(Q=v.next();!Q.done;Q=v.next())if(a=h=void 0,Q=(h=this.getSparklesAd(Q.value))==null?void 0:(a=h.errorCommand)==null?void 0:a.loggingUrls)for(h=_.P(Q),a=h.next();!a.done;a=h.next())(a=a.value)&&a.baseUrl&&_.WK(a.baseUrl);var G,x;this.set("data.results",(G=this.data)==null?void 0:(x=G.results)==null?void 0:x.filter(function(f){return!f.adSlotRenderer}))}}};
_.V.getSparklesAd=function(D){var v,h;D=_.k((v=D.adSlotRenderer)==null?void 0:(h=v.fulfillmentContent)==null?void 0:h.fulfilledLayout,_.krm);return _.k(D==null?void 0:D.renderingContent,gC3)};
_.V.hasAllowedInstreamAd=function(D){D=this.get("adPlacements",D)||[];for(var v=0;v<D.length;v++){var h=this.get("adPlacementRenderer.config.adPlacementConfig",D[v]);if(h&&h.suppressDisplayAd)return!0}return!1};
_.V.computeHideUnlimitedOfferModule=function(D,v){return D&&D.offerModule&&v&&D.offerModule.unlimitedOfferModuleRenderer&&D.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(v)?!0:!1};
_.V.hideUnlimitedOfferModuleChanged=function(){var D=_.ZW(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");D&&(D.hidden=this.hideUnlimitedOfferModule)};
_.V.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var v;(v=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||v.forEach(function(h){h.containerType=D})}};
_.V.computeHideTvfilmOfferModule=function(D,v){var h,a;return!!((D==null?0:(h=D.offerModule)==null?0:(a=h.tvfilmOfferModuleRenderer)==null?0:a.clientShouldSuppressIfCompanionAdDisplayed)&&v&&this.hasCompanionAds(v))};
_.V.hideTvfilmOfferModuleChanged=function(){var D=_.ZW(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");D&&(D.hidden=this.hideTvfilmOfferModule)};
_.V.hasCompanionAds=function(D){D=this.get("adPlacements",D)||[];for(var v=0;v<D.length;v++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",D[v]))return!0;var h=void 0,a=void 0,Q=void 0;if(!_.g("web_watch_top_banner_companion_check_killswitch")&&((h=D[v])==null?0:(a=h.adPlacementRenderer)==null?0:(Q=a.renderer)==null?0:Q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.V.hasSuppressedResults=function(D){return D==null?!0:D.filter(function(v){return!v.continuationItemRenderer&&!v.compactPromotedVideoRenderer&&!v.promotedSparklesWebRenderer}).length===0};
_.V.computeShowButton=function(D,v){return this.isWatchNextGrid?D:D||this.hasSuppressedResults(v)};
_.V.showButtonChanged=function(){if(this.isWatchNextGrid){var D=_.ZW(this.hostElement).querySelector("ytd-rich-grid-renderer");D&&this.showButton!==null&&(D.continuationShowButton=this.showButton)}else{D=_.ZW(this.hostElement).querySelector("yt-next-continuation");var v=_.ZW(this.hostElement).querySelector("ytd-continuation-item-renderer"),h=_.ZW(this.hostElement).querySelector("ytd-item-section-renderer");D&&(D.showButton=this.showButton);v&&(v.showButton=this.showButton);h&&(h.continuationShowButton=
this.showButton)}};
_.V.continuationTap=function(D){var v;if(((v=this.data)==null?void 0:v.continuations)!=null&&D.target.tagName==="TP-YT-PAPER-BUTTON")for(D=this.data.continuations,v=0;v<D.length;v++)D[v].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(D[v].nextContinuationData||{})};
_.V.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("shown-items-changed",this.shownItems))};
_.GT.Object.defineProperties(sJ.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.shownItems)==null||!D.some(function(v){return!!v.lockupViewModel||v.compactVideoRenderer}))}}});
sJ.prototype.shownItemsChangedForBinding=sJ.prototype.shownItemsChangedForBinding;sJ.prototype.showButtonChanged=sJ.prototype.showButtonChanged;sJ.prototype.hideTvfilmOfferModuleChanged=sJ.prototype.hideTvfilmOfferModuleChanged;sJ.prototype.updateLockupContainerTypes=sJ.prototype.updateLockupContainerTypes;sJ.prototype.hideUnlimitedOfferModuleChanged=sJ.prototype.hideUnlimitedOfferModuleChanged;sJ.prototype.dataChanged=sJ.prototype.dataChanged;sJ.prototype.resultsChanged=sJ.prototype.resultsChanged;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],sJ.prototype,"ytLazyListBehavior",void 0);_.e([_.l(_.Zh.YtNextContinuationBehavior),_.n("design:type",Object)],sJ.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.l(_.LU),_.n("design:type",Object)],sJ.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],sJ.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],sJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],sJ.prototype,"playerData",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],sJ.prototype,"autoFill",void 0);_.e([_.Y({value:60}),_.n("design:type",Number)],sJ.prototype,"targetFramerate",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sJ.prototype,"isTwoColumns",void 0);_.e([_.Y(),_.n("design:type",Object)],sJ.prototype,"shownItems",void 0);_.e([_.Y({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.n("design:type",Boolean)],sJ.prototype,"hideUnlimitedOfferModule",void 0);_.e([_.Y({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.n("design:type",Boolean)],sJ.prototype,"hideTvfilmOfferModule",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sJ.prototype,"watchFeedBigThumbs",void 0);_.e([_.Y(),_.n("design:type",Object)],sJ.prototype,"watchFeedBigThumbsOnLockup",void 0);_.e([_.Y(),_.n("design:type",Object)],sJ.prototype,"watchNextGridHideChips",void 0);_.e([_.Y(),_.n("design:type",Object)],sJ.prototype,"eligibleToSwitchToGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sJ.prototype,"disableShortsShelfHeightOverride",void 0);
_.e([_.Y({selector:_.K_,reflectToAttribute:!0}),_.n("design:type",Object)],sJ.prototype,"isGridViewEnabled",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sJ.prototype,"showMoreButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sJ.prototype,"isWatchNextGrid",void 0);_.e([_.Y({computed:"computeShowButton(showMoreButton, data.results)"}),_.n("design:type",Boolean)],sJ.prototype,"showButton",void 0);
_.e([_.qi("data.results.*"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sJ.prototype,"resultsChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sJ.prototype,"dataChanged",null);_.e([_.Ni("hideUnlimitedOfferModule"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sJ.prototype,"hideUnlimitedOfferModuleChanged",null);
_.e([_.N("isGridViewEnabled","containsLockups","data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],sJ.prototype,"lockupContainerType",null);_.e([_.Ni("lockupContainerType","data"),_.n("design:type",Function),_.n("design:paramtypes",[Number]),_.n("design:returntype")],sJ.prototype,"updateLockupContainerTypes",null);
_.e([_.Ni("hideTvfilmOfferModule"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sJ.prototype,"hideTvfilmOfferModuleChanged",null);_.e([_.Ni("showButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sJ.prototype,"showButtonChanged",null);_.e([_.Ni("shownItems"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sJ.prototype,"shownItemsChangedForBinding",null);
_.e([_.N("shownItems"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],sJ.prototype,"containsLockups",null);
_.w(sJ,"ytd-watch-next-secondary-results-renderer",function(){if(S2K===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);S2K=D}D=S2K;return D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var o1K=new _.z0("replaceFeedContentAction");var F$S;var zHr;var UZU=function(){return _.c.apply(this,arguments)||this};
_.J(UZU,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],UZU.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],UZU.prototype,"data",void 0);_.e([_.m({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],UZU);
_.w(UZU,"ytd-sub-feed-option-renderer",function(){if(zHr!==void 0)return zHr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return zHr=D},{mode:1});var L$C;var iC=function(){return _.c.apply(this,arguments)||this};
_.J(iC,_.c);iC.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iC.prototype,"ytRendererStamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iC.prototype,"data",void 0);_.e([_.m({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],iC);
_.w(iC,"ytd-sub-feed-selector-renderer",function(){if(L$C!==void 0)return L$C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return L$C=D},{mode:1});var WP=function(){return _.c.apply(this,arguments)||this};
_.J(WP,_.c);
WP.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}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],WP.prototype,"data",void 0);_.e([_.m({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],WP);
_.w(WP,"ytd-browse-feed-actions-renderer",function(){if(F$S!==void 0)return F$S;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return F$S=D},{mode:1});var ZRS;var E1K;var t4=function(){return _.c.apply(this,arguments)||this};
_.J(t4,_.c);t4.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],t4.prototype,"data",void 0);_.e([_.m({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],t4);
_.w(t4,"ytd-mini-channel-renderer",function(){if(E1K!==void 0)return E1K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return E1K=D},{mode:1});var IvX;var r5=function(){return _.c.apply(this,arguments)||this};
_.J(r5,_.c);r5.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],r5.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],r5);
_.w(r5,"ytd-vertical-channel-section-renderer",function(){if(IvX!==void 0)return IvX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return IvX=D},{mode:1});var uC=function(){return _.c.apply(this,arguments)||this};
_.J(uC,_.c);uC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uC.prototype,"data",void 0);_.e([_.m({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],uC);
_.w(uC,"ytd-browse-secondary-contents-renderer",function(){if(ZRS!==void 0)return ZRS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return ZRS=D},{mode:1});var g1b;var Du=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};D.notActive=!1;D.isConstrainedList=!1;return D};
_.J(Du,_.c);_.V=Du.prototype;
_.V.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(D){var v;return(D==null?void 0:(v=D.webComponentHint)==null?void 0:v.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}}}}};
_.V.getPath=function(D,v){var h="data.tabs.#"+v+".";D.tabs[v].tabRenderer?h+="tabRenderer.":D.tabs[v].expandableTabRenderer&&(h+="expandableTabRenderer.");return h+"content.sectionListRenderer"};
_.V.computeDisplayedContent=function(D){this.unlinkPaths("content");if(D&&D.tabs)for(var v=D.tabs.length,h=0;h<v;h++){var a=D.tabs[h].tabRenderer||D.tabs[h].expandableTabRenderer;if(a.selected&&a.content)return this.linkPaths("content",this.getPath(D,h)),a.content}return null};
_.V.computeHasSecondaryColumnData=function(D){return!!D&&!!D.secondaryContents};
_.V.onRetrieveLocation=function(D,v){v.locationRetrieved(v.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);D.stopPropagation()};
_.V.onYtServiceRequestSent=function(D,v){_.g("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(v)};
_.V.onYtServiceRequestCompleted=function(D,v){_.g("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(v)};
_.V.onReplaceFeedContentAction=function(D){if(!_.g("replace_feed_content_action_killswitch")&&!this.notActive){var v;(D=(v=_.k(D,o1K))==null?void 0:v.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(D)}};
_.V.handleServiceRequestActions=function(D){if(D=D.actions){D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var h=void 0;((h=_.k(v,o1K))==null?0:h.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.k(v,o1K).items)}}};
Du.prototype.onYtServiceRequestCompleted=Du.prototype.onYtServiceRequestCompleted;Du.prototype.onYtServiceRequestSent=Du.prototype.onYtServiceRequestSent;Du.prototype.onRetrieveLocation=Du.prototype.onRetrieveLocation;_.e([_.l(_.Fg),_.n("design:type",Object)],Du.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Du.prototype,"data",void 0);_.e([_.Y({computed:"computeDisplayedContent(data)"}),_.n("design:type",Object)],Du.prototype,"content",void 0);
_.e([_.Y({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Du.prototype,"hasSecondaryColumnData",void 0);_.e([_.Y({value:function(){return window.outerHeight>1024?3:2}}),
_.n("design:type",Number)],Du.prototype,"initialCount",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Du.prototype,"pageSubtype",void 0);_.e([_.Br("ytd-section-list-renderer"),_.n("design:type",Object)],Du.prototype,"listRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],Du.prototype,"notActive",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Du.prototype,"isConstrainedList",void 0);
_.e([_.Y(),_.n("design:type",String)],Du.prototype,"responsiveSizing",void 0);_.e([_.lc("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Du.prototype,"onRetrieveLocation",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Du.prototype,"onYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Du.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Du);
_.w(Du,"ytd-two-column-browse-results-renderer",function(){if(g1b!==void 0)return g1b;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return g1b=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var yXB=function(D){if((D==null?void 0:D.value)===void 0||D==null||!D.unit)return"initial";a:{switch(D.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var v="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":v="%";break a}v=void 0}return v?""+D.value+v:"initial"};_.zh(_.H(function(D){var v=_.fb(D,{}).data,h=function(){var a;return((a=v().image)==null?void 0:a.height)||40};
return _.F("yt-shopping-timely-shelf-content-view-model",{el:_.ML(_.eb(function(){var a;return(a=v())==null?void 0:a.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.S3("ytShoppingTimelyShelfContentViewModelHost"),style:_.NL({"--shopping-timely-shelf-content-padding-top":function(){var a;return yXB((a=v().padding)==null?void 0:a.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var a;return yXB((a=v().padding)==null?void 0:a.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var a;return yXB((a=v().padding)==null?void 0:a.start)},
"--shopping-timely-shelf-content-padding-end":function(){var a;return yXB((a=v().padding)==null?void 0:a.end)},
"--yt-shopping-timely-shelf-background-color":function(){return v().backgroundColor!==void 0?_.uu(v().backgroundColor):"initial"}})},_.F(_.z,{cond:function(){var a;
return(a=v().image)==null?void 0:a.image},
then:function(a){return _.F(_.PX,{preserveHeight:!0,preserveWidth:!0,height:h,data:a,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2}),_.F("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.F(_.c4,{data:function(){return v().line1}},{shoppingContentLineViewModel:function(a){return _.F(_.zp,{data:a.data})}}),_.F(_.c4,{data:function(){return v().line2}},{shoppingContentLineViewModel:function(a){return _.F(_.zp,
{data:a.data})}})),_.F("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.F(_.Xd,{each:function(){var a;
return(a=v().button)!=null?a:[]}},function(a){return _.F(_.c4,{data:function(){return a}},{buttonViewModel:_.s$})})))},"Ym"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.gj}});_.w1M={};
_.w1M.YtdWatchBehavior=[_.t.YtRendererBehavior,_.gG.YtPlayerListenerBehavior,_.ct.YtRendererstamperBehavior,_.ed.YtActionHandlerBehavior,_.$T.YtPageBehavior,_.wj.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 _.nJ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.g("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 _.nJ("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.g("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 _.oZ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.oZ("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.g("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.g("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.g("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("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 _.g("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("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 _.g("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.g("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var D={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.Ex(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Ex(["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"||_.g("swa_prov_panels_ks")?D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},D.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return D},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.g("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.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;_.g("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.g("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.lMR(function(){return _.xe(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.g("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.N9;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;_.g("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));_.g("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.pZ(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.g("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.g("kevlar_watch_while_v2")&&!_.g("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.F1(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var v=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var h;(h=this.watchController)==null||h.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.HU({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ea("nw");this.loading=!1;_.c1(_.HK,function(){v.initDclkstatus_();var a,Q=((a=v.player)==null?void 0:a.getVideoData().cpn)||"";_.fMf(function(G,x){_.oEr(G,x,Q)})})},
onPageLoadWithSameData_:function(){_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;if(_.g("kevlar_watch_frame0_loading_state")){var v,h,a;D=(v=this.loadingData)==null?void 0:(h=v.endpoint)==null?void 0:(a=h.watchEndpoint)==null?void 0:a.videoId;var Q;D&&(Q="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.ZW(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.ZW(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var v,h;(h=(v=this.watchMetadata).updateSentimentBarWidth)==
null||h.call(v);var a,Q;(Q=(a=this.watchMetadata).resize)==null||Q.call(a)}_.g("kevlar_watch_frame0_loading_state")&&(_.ZW(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(D){var v=_.ZW(this.hostElement).querySelector(D);v?_.f1(v,!1):_.yR(new _.XH("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var v=_.ZW(this.hostElement).querySelector(D);v?_.C1(v):_.yR(new _.XH("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.g("web_thumbnail_to_watch_transition")&&!_.Icr||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.g("web_thumbnail_to_watch_transition")&&!_.Icr||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(D){var v=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.HK.addLowPriorityJob(function(){v.onWindowResized_(_.XT(!0))})},
updateTheaterModeState_:function(D){if(!_.g("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.O3B()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var D=this.fullBleedPlayer?_.ZW(this.hostElement).querySelector("#player-full-bleed-container"):_.ZW(this.hostElement).querySelector("#player-container-inner");var v=this.getPlayerContainer(),h=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip");v.parentElement!==D&&(h&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.xe(this).appendTo(D,v))},
updateErrorScreenLocation:function(){var D=_.ZW(this.hostElement).querySelector("#error-screen"),v=this.fullBleedPlayer?_.ZW(this.hostElement).querySelector("#player-full-bleed-container"):_.ZW(this.hostElement).querySelector("#player");D.parentElement!==v&&v.appendChild(D)},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.M(function(v){if(v.nextAddress==1)return v.yield(_.xd().resolve(_.Ok).deactivate(),2);D.updatePlayerLocation();_.YI(v)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var v=this.getCinematicsLocationContainer();D.parentElement!==v&&v.appendChild(D)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.ZW(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ZW(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(D,v,h){var a=document.documentElement.hasAttribute("dark"),Q=a&&_.g("web_cinematic_theater_mode"),G=a&&_.g("web_cinematic_fullscreen");a=!a&&this.cinematicLightTheme;return h||D&&Q||v&&G||(v||D)&&a},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D=this,v;(v=this.watchController)==null||v.setWatchNextResponse(this.data);_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.xd().resolve(_.fh).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,_.g("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.HK.addLowPriorityJob(function(){_.U9(D.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.g("web_watch_start_chat_in_theater_mode")){var h,a,Q;if((h=this.data)==null?0:(a=h.contents)==null?0:(Q=a.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var G,x;((G=this.data)==null?0:(x=G.contents)==null?0:x.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(D){var v;(v=this.watchController)==null||v.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(v=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),v&&!D||_.$R(this,function(){_.ea("pbu")}));
this.setPlayerAds_();_.U9(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(D,v){if((_.g("kevlar_watch_while_v2")||_.g("web_watch_pip"))&&this.playerData&&v)return this.playerData.videoDetails},
watchPageActiveChanged_:function(D){_.Gb().dispatch(_.bLM(this.active));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new _.Ho(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);_.g("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var v=_.xe(this);_.g("kevlar_disable_prepare_player")||
v.preparePlayer();_.g("kevlar_watch_flexy_playlist_manager")||_.xd().resolve(_.fh).setPlayer(v);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();v={"--ytd-watch-flexy-scrollbar-width":_.Ux()+"px"};this.is==="ytd-watch-grid"&&(v["--ytd-watch-flexy-sidebar-width"]=_.XpY+"px",v["--ytd-watch-grid-horizontal-page-margins"]=_.nu+"px",v["--ytd-watch-grid-columns-top-margins"]=_.YXB+"px",v["--ytd-watch-grid-min-player-height-medium"]="360px");!_.oZ("kv_pl_mx_sz_ks")&&
_.oZ("kevlar_watch_max_player_width")&&(v["--ytd-watch-flexy-max-player-width-wide-screen"]=_.AwR+"px");_.oZ("kevlar_watch_flexy_metadata_height")&&(v["--ytd-watch-flexy-space-below-player"]=_.qXM+"px");this.safeUpdateStyles(v);_.g("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.LR(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ZW(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var D=_.Ux(),v=_.OJ+D,h=v;this.fixedPanels&&(v+=_.XpY);var a=657+D;D=1327+D;_.ZW(this.hostElement).querySelector("#two-column-query").query="(min-width: "+v+"px)";_.ZW(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(a+"px), (min-height: 630px) and (min-width: ")+(v+"px) and (max-width: ")+(D+"px)");_.ZW(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.ZW(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+h+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var D=_.ZW(this.hostElement).querySelector("#miniplayer-bar").firstChild,v=this.squeezeback&&!_.g("web_watch_squeezeback_player_size_killswitch");return D&&D.active||this.theater||_.g("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||v||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.lU(NaN,NaN):_.UYY(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.UYY(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.V5(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.XT());_.g("browse_skeleton_removal_on_watch_killswitch")||_.nJ("IS_SHELL_LOAD")&&_.SmZ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var v=_.xe(this);v.addEventListener("yt-player-updated",_.pZ(this,this.onPlayerUpdated_));v.getPlayerPromise().then(function(h){D.playerApiReady_(h)});
_.g("kevlar_watch_flexy_playlist_manager")||(v=_.xd().resolve(_.fh),_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&v.addEventListener("yt-navigate",_.pZ(this,this.onYtNavigate_)),v.setPlaylistComponent(_.ZW(this.hostElement).querySelector("#playlist")),v.addEventListener("yt-playlist-data-updated",_.pZ(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.HK.addLowPriorityJob(function(){_.F1(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.xe(this).removeEventListener("yt-player-updated",_.pZ(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.g("kevlar_watch_flexy_playlist_manager")){var D=_.xd().resolve(_.fh);_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.pZ(this,this.onYtNavigate_));
D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.pZ(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.F1(this.hostElement,"yt-autonav-pause-player",!1);D=_.xE();_.g("kevlar_exit_fullscreen_leaving_watch")&&D&&_.MF(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,v){v.hasComments?v.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):v.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,v){this.player&&(v?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.A5S("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ZW(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ZW(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.g("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.g("kevlar_unified_player")||_.g("kevlar_player_new_bootstrap_adoption"))&&_.Ri()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,v){v=v===void 0?!0:v;_.xE()&&_.g("external_fullscreen")&&_.MF(document.documentElement);this.theaterRequested_=D;v&&_.NM("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.zU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.F1(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(D){_.wf(D,typeof this.player),this.player&&_.wf(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.zU(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,v){return this.loading?v:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next())v=v.value,v.youThereRenderer&&_.Bfo(this.youThereManager_,v.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var v=this.youThereManager_;_.x_()<D.lowEngagementThresholdMs||_.q5f(v,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.zU(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,v,h){return!!D&&!this.isVideoPlayable_(D,h)&&!v},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,v){if(!D)return!1;var h=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",a=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var Q;v=v==null?void 0:(Q=v.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!h||!!a||!!D||!!v},
hasWatchNextResponseErrorRenderer:function(D){var v=this.getPageContents(D),h,a,Q,G,x;return!(D==null?0:(h=D.contents)==null?0:(a=h.twoColumnWatchNextResults)==null?0:a.secondaryResults)&&!!((Q=v[0])==null?0:(G=Q.itemSectionRenderer)==null?0:(x=G.contents[0])==null?0:x.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,v,h){var a=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.g("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&Q.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var G=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);G==void 0&&(G=!0);!h||this.isVideoPlayable_(D,this.getPlayerOverlays_(v))||
a||Q||!G||_.xd().resolve(_.fh).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Zpz()},
onPlayerFeedbackStartRequest_:function(D){_.zU(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.zU(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,v,h,a,Q,G,x,f,C=((D=this.data)==null?NaN:(v=D.contents)==null?NaN:(h=v.twoColumnWatchNextResults)==null?NaN:(a=h.secondaryResults)==null?NaN:(Q=a.secondaryResults)==null?NaN:(G=Q.offerModule)==null?NaN:(x=G.tvfilmOfferModuleRenderer)==null?NaN:(f=x.actionButtons)==null?NaN:f.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(C>=0?C:0)+".buttonRenderer."];v=_.P(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(h=v.next();!h.done;h=v.next())for(h=h.value,a=_.P(D),Q=a.next();!Q.done;Q=a.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+h+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.lP(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.F1(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.F1(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.Gb().dispatch(_.dN9(D))},
onPlayerSubscribe_:function(D){_.zU(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.zU(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.zU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(D){return!_.g("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.g("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.g("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var D,v,h,a;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.secondaryResults)==null?void 0:a.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.g("swatcheroo_pbs_load_grid")&&!_.g("swatcheroo_provide_all_data_on_scheduled_job")){_.HK.cancelJob(this.setRichGridJobId_);var D,v,h,a,Q,G,x;this.setRichGridRendererData((D=this.data)==null?void 0:(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.secondaryResults)==null?void 0:(Q=a.secondaryResults)==null?void 0:(G=Q.results)==null?void 0:(x=G[0])==null?
void 0:x.richGridRenderer)}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,v=(D=this.data)==null?void 0:D.engagementPanels;if(v==null?0:v.length){D=null;v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0;if(((a=h.engagementPanelSectionListRenderer)==null?void 0:a.targetId)==="engagement-panel-structured-description"){D=h;break}}var Q,G,x;D=(Q=D)==null?void 0:(G=Q.engagementPanelSectionListRenderer)==null?void 0:(x=G.content)==null?void 0:x.structuredDescriptionContentRenderer;if(D==null?0:D.items){Q=
[];G=_.P(D.items);for(x=G.next();!x.done;x=G.next()){x=x.value;if(!_.g("sd_horizontal_list_show_nav_killswitch")){var f=a=h=v=D=void 0,C=void 0,U=(D=x.horizontalCardListRenderer)==null?void 0:(v=D.header)==null?void 0:(h=v.richListHeaderRenderer)==null?void 0:(a=h.navigationButton)==null?void 0:(f=a.buttonRenderer)==null?void 0:(C=f.command)==null?void 0:C.commandExecutorCommand;U&&U.commands&&(U.commands=U.commands.filter(function(L){return!_.k(L,_.RBK)}))}(!x.expandableVideoDescriptionBodyRenderer&&
!x.videoDescriptionHeaderRenderer||_.g("web_delhi_colorful_sd"))&&Q.push(x)}return{items:Q}}}},
constructWarning_:function(D){return{text:_.aX(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.F1(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var v=this.getScrollTop()>0;this.gestures_&&(v?this.gestures_.detach():this.gestures_.attach());v!==this.showFullerscreenEdu_&&_.g("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=v,_.xe(this).getPlayerPromise().then(function(h){h.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.F1(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.HK.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.c1(_.HK,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.g("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ea("cmi");_.HK.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.P(D);for(var v=D.next();!v.done;v=D.next())if(v=v.value,this.get("itemSectionRenderer.sectionIdentifier",v)==="comment-item-section"){this.comments=v.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.F1(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.g("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ea("cmc")},
doRemoveComments_:function(){this.comments={};_.g("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.HK.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.HK.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,v){var h=_.k(v.endpoint,_.hP);h&&(!(v=this.get("data.currentVideoEndpoint.watchEndpoint"))||h.videoId!==v.videoId||h.playlistId&&h.playlistId!==v.playlistId||h.index!==void 0&&h.index!==v.index||typeof h.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.xe(this).getPlayerPromise().then(function(a){var Q=h.startTimeSeconds;a.seekTo(Q);a.wakeUpControls();Q<a.getDuration()&&a.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.hl3();"t"in D&&(D=_.LVY(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var v,h;(D=_.$V(D==null?void 0:(v=D[0])==null?void 0:(h=v.videoPrimaryInfoRenderer)==null?void 0:h.title))&&_.F1(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.F1(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,v,h){if(this.active&&this.player){var a=this.player.getVideoData();if(a.video_id===h&&(h=a.list,_.g("polymer_enable_mdx_queue")&&h&&h.startsWith("RQ")&&(h=void 0),a.video_id!==D||h!=v)){var Q;_.g("kevlar_player_watch_endpoint_navigation")?Q=_.csc(_.CD0(D,v)):Q=this.buildWatchEndpoint_(D,v);_.F1(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,v,h){return _.xZ(D,v,h)},
initDclkstatus_:function(){_.zl0()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var v=D.querySelector("#primary-info"),h=D.querySelector("#secondary-info"),a=D.querySelector("#related");v&&_.ZW(this.hostElement).querySelector("#info-skeleton").appendChild(v);h&&_.ZW(this.hostElement).querySelector("#meta-skeleton").appendChild(h);a&&(_.ZW(this.hostElement).querySelector("#related-skeleton").appendChild(a),this.watchNextSkeletonEl_=a);_.Np(D)}},
handlePlayerUpdated_:function(){_.xe(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,v){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof v!=="undefined"){var h=this.watchNextSkeletonEl_.children,a=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,h.length);v||(a=0,D=h.length);for(v=a;v<D;v++)h[v].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.g("external_fullscreen")||_.zU(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var v=_.xe(this);v.getPlayerPromise().then(function(h){h.setFauxFullscreen(!!_.xE())});
this.updateFullBleedElementLocations();D&&(v.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,v){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!v},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,v){return v&&!!D},
computeResponseHasComments:function(D){var v,h,a,Q,G;return!!(D==null?0:(v=D.contents)==null?0:(h=v.twoColumnWatchNextResults)==null?0:(a=h.results)==null?0:(Q=a.results)==null?0:(G=Q.contents)==null?0:G.some(function(x){var f;return(x==null?void 0:(f=x.itemSectionRenderer)==null?void 0:f.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,v,h,a){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&a?!1:!!D&&!!Object.keys(D).length&&!v},
identity:_.mI,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var v=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.xe(this).getPlayerPromise().then(function(h){var a=h.getPlayerState();a!==5&&a!==0&&(h=1/h.getVideoAspectRatio(),v.videoHeightToWidthRatio_!==h&&(v.videoHeightToWidthRatio_=h))})},
schedulePlayerSizeUpdate_:function(D){var v=this,h=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip"),a=function(){if(v.watchMetadata){var Q,G;(G=(Q=v.watchMetadata).resize)==null||G.call(Q)}_.xe(v).getPlayerPromise().then(function(x){if(_.g("kevlar_set_internal_player_size")){if(!h||!v.isMiniplayerActive()){var f=v.calculateCurrentPlayerSize_();x.setInternalSize(f.width,f.height)}}else x.setSize(NaN,NaN);_.g("kevlar_watch_while")&&v.updateWatchWhileScrollThreshold_()})};
D?a():_.LK(_.HK,a)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.k(D,_.p1f).survey)},
onDownloadedVideoDeleted:function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1){if(!v.active||(h=v.playerData)==null||!h.offlineState||v.videoId!==D)return Q.return();(a=v.player)==null||a.stopVideo();_.eh().navigatingAwayFromWatchDeletedVideo=!0;_.lP(_.NiI,v.hostElement);return Q.yield(_.eh().navigationFinishPromise,2)}_.eh().navigatingAwayFromWatchDeletedVideo=!1;_.YI(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.sk(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.ZW(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var v=this.windowSize_.height>=624,h=this.active?this.getScrollTop():0;!D.active&&v&&h>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!v||h<this.watchWhileScrollThreshold_&&!_.xE())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var D=_.ZW(this.hostElement).querySelector("#secondary-inner");if(D){var v=_.ZW(this.hostElement).querySelector("#below"),h=_.ZW(this.hostElement).querySelector("#secondary"),a=_.ZW(this.hostElement).querySelector("#comments");a&&h&&v&&(this.defaultTwoColumnLayout?(D.appendChild(a),h.appendChild(D)):(v.appendChild(a),_.w_(v,D)))}}},
isTwoColumnsChanged_:function(D,v){if(D!==!0||v!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(D=_.ZW(this.hostElement).querySelector("#secondary-inner"))){v=_.ZW(this.hostElement).querySelector("#below");var h=_.ZW(this.hostElement).querySelector("#secondary"),a=_.ZW(this.hostElement).querySelector("#comments");a&&h&&v&&(this.isTwoColumns_?(D.appendChild(a),h.appendChild(D)):(v.appendChild(a),_.w_(v,D)))}}else{D=!_.g("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);v=_.ZW(this.hostElement).querySelector("#panels");var Q=_.ZW(this.hostElement).querySelector("#alerts"),G=_.ZW(this.hostElement).querySelector("#shopping-timely-shelf");h=_.ZW(this.hostElement).querySelector("#playlist");a=_.ZW(this.hostElement).querySelector("#related");var x=_.ZW(this.hostElement).querySelector("#donation-shelf"),f=_.ZW(this.hostElement).querySelector("#comments"),C=_.ZW(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(Q=_.ZW(this.hostElement).querySelector("#secondary-inner"),D&&(Q.appendChild(v),Q.appendChild(h),this.aiCompanionEnabled&&C&&Q.appendChild(C)),Q.appendChild(x),Q.appendChild(a)):(D&&(_.OO(v,Q),_.OO(h,Q),this.aiCompanionEnabled&&C&&_.OO(C,Q),_.OO(G,h)),_.OO(x,Q),f&&_.OO(a,f));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.g("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.g("web_watch_enable_fs_squeezeback_panels")&&_.g("web_watch_theater_chat")){var D=_.ZW(this.hostElement).querySelector("#chat-container"),v=this.theater&&!this.fullscreen||_.g("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&v?(v=_.ZW(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==v&&v.append(D),this.fixedPanels=!0):(this.fixedPanels=
!1,v=_.ZW(this.hostElement).querySelector("#playlist"),D&&v?_.KW(D,v):_.yR(new _.XH("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!v})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,v){return _.g("sw_metadata_vis_toggle_ks")?!0:!!D||!!v},
computeForceDarkPanelTheme:function(D){return _.g("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.SB(this.hostElement,D)}catch(v){_.yR(v)}},
videoHeightToWidthRatioChanged_:function(D,v){v&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.xe(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.xe(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.bpB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var v=_.nq(D)||0;_.eL(D,v+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.nq("yt-fullerscreen-edu-button-click-count")||0,v=_.nq("yt-fullerscreen-edu-button-shown-count")||0,h=_.oZ("external_fullscreen_button_shown_threshold"),a=D>=_.oZ("external_fullscreen_button_click_threshold")||v>=h;_.xe(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(a)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,v){return v},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.xd().resolve(_.fh).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var D=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.HK.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.HK.addLowPriorityJob(function(){D.fullHeightPanelPositionUpdateJobId=0;var v=_.ZW(D.hostElement).querySelector("#secondary"),h=_.ZW(D.hostElement).querySelector("#fixed-secondary");v=v.getBoundingClientRect();var a=v.width;D.swatcherooSqueezeback&&
(a+=_.nu);if(D.swatcherooSqueezeback){var Q=_.ZW(D.hostElement).querySelector("#squeezeback-constraining-container");Q.style.width=a+"px";Q.style.flex="0 0 "+a+"px"}h.style.width=a+"px";h.style.left=v.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.HK.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.HK.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var v;!D.isTwoColumns_||D.theater||D.fullscreen?v=460:v=D.calculateNormalPlayerSize_().height;var h=v+"px";_.g("live_chat_taller_height")&&!D.theater&&(h="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.g("live_chat_medium_height")&&!D.theater&&(h="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.g("live_chat_scaled_height")&&!D.theater&&(h="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":v+"px","--ytd-watch-flexy-chat-max-height":h,"--ytd-watch-flexy-structured-description-max-height":v+"px","--ytd-watch-flexy-comments-panel-max-height":v+"px","--ytd-comments-engagement-panel-content-height":v+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZD(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var v=_.ZW(this.hostElement).querySelector("#engagement-panel-scrim");D?v.addEventListener("tap",_.pZ(this,this.onEngagementPanelScrimClick_)):v.removeEventListener("tap",_.pZ(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var v=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var h=this.getPageScrollingElement(),a=this.getScrollTop(),Q=a+h.clientHeight-56;if(v<a+56)v-=56;else if(D>Q)v=D-h.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.g("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.NV().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,v,h){if(this.active&&this.trackEngagementPanelVisibility&&!_.S5o.includes(h)){if(v==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.U9(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var a=_.xd().resolve(_.De);this.visiblePanelIdentifiers_.forEach(function(Q){Q!==h&&a.hidePanel(Q)})}this.visiblePanelIdentifiers_.add(h)}v!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&v!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(h);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeIsSingleColumn:function(D,v){return v&&!D},
computeFullBleedPlayer:function(D,v,h){return _.g("external_fullscreen")&&D||v||h},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,v){return!D&&v},
updatePanelsLocation:function(){if(_.g("web_watch_enable_fs_squeezeback_panels")){var D=_.ZW(this.hostElement).querySelector("#below"),v=_.ZW(this.hostElement).querySelector("#panels"),h=_.ZW(this.hostElement).querySelector("#playlist"),a=_.ZW(this.hostElement).querySelector("#chat-container"),Q=_.ZW(this.hostElement).querySelector("#panels-full-bleed-container"),G=_.ZW(this.hostElement).querySelector("#secondary-inner"),x=_.ZW(this.hostElement).querySelector("#shopping-timely-shelf"),f=_.ZW(this.hostElement).querySelector("#persistent-panel-container");
if(D&&v&&h&&a&&Q&&G&&x&&(this.aiCompanionEnabled?f:1)){var C=this.fullscreen||this.theater&&this.iMaxTheaterMode,U=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;C?(Q.appendChild(v),Q.appendChild(a),Q.appendChild(h),this.aiCompanionEnabled&&f&&Q.appendChild(f)):this.isTwoColumns_?(U?(D=_.ZW(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==D&&D.append(a),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.w_(G,a),_.w_(G,v),_.w_(G,h),this.aiCompanionEnabled&&f&&_.w_(G,f)):(D.appendChild(v),D.appendChild(x),D.appendChild(a),D.appendChild(h),this.aiCompanionEnabled&&f&&D.appendChild(f))}}},
swatcherooUpdatePanelsLocation:function(D,v,h,a,Q,G){if(this.is==="ytd-watch-grid"){v=D&&!v;this.swatcherooSplitScroll&&(v?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));h=_.ZW(this.hostElement).querySelector("#panels");var x=_.ZW(this.hostElement).querySelector("#playlist"),f=_.ZW(this.hostElement).querySelector("#persistent-panel-container"),
C=_.ZW(this.hostElement).querySelector("#fixed-secondary"),U=_.ZW(this.hostElement).querySelector("#fixed-below"),L=_.ZW(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),Z=_.ZW(this.hostElement).querySelector("#chat-container");G&&(D?(C.appendChild(h),this.aiCompanionEnabled&&f&&C.appendChild(f)):(U.appendChild(h),this.aiCompanionEnabled&&f&&U.appendChild(f)));Q?D?C.appendChild(Z):U.appendChild(Z):_.KW(Z,L);a?D?C.appendChild(x):U.appendChild(x):_.KW(x,
L);this.swatcherooSplitScroll&&(D=_.ZW(this.hostElement).querySelector("#secondary"),a=_.ZW(this.hostElement).querySelector("#columns"),Q=_.ZW(this.hostElement).querySelector("#fixed-columns-secondary"),v?Q.appendChild(D):a.appendChild(D))}},
computeMetadataSkinnyMode:function(D,v,h){return this.is!=="ytd-watch-grid"?!1:D?h:v},
computeWatchWhilePanelsActive:function(D,v){return D||v},
computeNoBorderOnChat:function(D){return _.g("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,v){return D&&!v},
computePanelExpanded:function(D,v,h){return D||v||h},
computeSqueezeback:function(D,v,h,a){if(_.g("web_watch_enable_fs_squeezeback_panels")){var Q=this.iMaxTheaterMode&&this.theater,G=this.theater&&!this.iMaxTheaterMode;return(D||v||h)&&(Q||a)||v&&G}},
computeSwatcherooSqueezeback:function(D,v,h){return this.is!=="ytd-watch-grid"||_.g("ww_squeezeback_killswitch")?!1:D&&v&&h},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(D){_.xe(this).getPlayerPromise().then(function(v){var h;(h=v.changeMarkerVisibility)==null||h.call(v,_.k(D,_.ni).isVisible||!1,_.k(D,_.ni).entityKeys||[],_.k(D,_.ni).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.Gb().dispatch(_.kCH(D.detail));if(!this.liveChatCollapsed&&this.squeezeback){var v=_.xd().resolve(_.De);this.visiblePanelIdentifiers_.forEach(function(h){v.hidePanel(h)})}},
onSetPlaylistCollapsed:function(D){_.g("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!D)},
provideRenderingData:function(D,v){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=v;break;case "PRIMARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=v);this.videoPrimaryInfoRendererValue=v==null?void 0:v.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=v);this.videoSecondaryInfoRendererValue=v==null?void 0:v.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
v;break;case "CLARIFICATION":this.clarifyBoxValue=v;break;case "LIVE_CHAT":this.conversationBar=v;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=v;break;case "PLAYLIST":this.externalPlaylistData_=v!=null?v:{};break;case "MERCH_SHELF":this.merchShelfValue=v==null?void 0:v.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=v;break;case "TICKET_SHELF":this.ticket=v;break;case "OFFER_MODULE":this.offerModule=v;break;case "LIMITED_STATE":this.limitedStateValue=
v;break;case "DONATION_SHELF":this.donation=v;break;case "ALERTS":this.alertsValue=v;break;case "COMMENTS":this.comments=v;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=v;break;case "ENGAGEMENT_PANELS":this.engagementPanels=v;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=v;break;case "RICH_GRID_RENDERER":this.richGridRendererData=v;break;case "EXPANDABLE_METADATA":this.expandableMetadata=v;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
v;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=v}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.xd().resolve(_.Ok).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var LnI;_.UFX=function(D){if(!(0,_.Ymo)(D))throw Error("K``"+String(D));};
_.Z1K=function(D){return D.findIndex(function(v){return LnI.indexOf(v.tagName)>-1})>-1};
_.EEs=function(){var D=_.xd().resolve(_.Kh);_.$Lo(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(D.isFullscreenEnabled()?_.MF(document.documentElement):_.wNL(document.documentElement))};
LnI=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.wH=new Map;_.wH.set(32,59972);_.wH.set(27,50765);_.wH.set(70,60102);_.wH.set(76,60221);_.wH.set(77,60222);_.wH.set(74,60223);_.wH.set(84,60224);_.wH.set(38,61941);_.wH.set(40,61942);_.wH.set(73,62521);_.wH.set(67,62522);_.wH.set(80,63390);_.wH.set(78,63397);_.wH.set(75,59972);_.wH.set(188,63385);_.wH.set(190,63384);_.wH.set(36,63387);
_.wH.set(35,63386);_.wH.set(37,63388);_.wH.set(39,63389);_.wH.set(79,63423);_.wH.set(87,63424);_.wH.set(107,63426);_.wH.set(109,63425);_.wH.set(65,63428);_.wH.set(83,63430);_.wH.set(68,63429);_.wH.set(221,63431);_.wH.set(219,63432);_.wH.set(97,63439);_.wH.set(98,63440);_.wH.set(99,63441);_.wH.set(100,63442);_.wH.set(101,63443);_.wH.set(102,63444);_.wH.set(103,63445);_.wH.set(104,63446);_.wH.set(105,63447);_.eS=new Map;_.eS.set(80,63390);_.eS.set(78,63397);_.eS.set(188,63400);_.eS.set(190,63401);
_.eS.set(191,60765);_.eS.set(13,247917);_.nM=new Map;_.O3=new Map;
}catch(e){_._DumpException(e)}
try{
var W9s,uds,DMr,vdd;_.K9r=function(D){return D.ui.guideIsVisibleButNotPersistent};
_.TMU=function(D){return D.ui.tabGesturesIsActive};
_.Rj$=function(){var D=_.FH("service_worker_scope");try{return navigator.serviceWorker.getRegistration(D)}catch(v){return Promise.reject(v)}};
_.iJU=function(D){return!(!D||!D.pushManager)};
W9s=function(){return _.Rj$().then(_.iJU).catch(function(){return!1})};
_.tAU=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?W9s():Promise.resolve(!1)};
_.r$S=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
uds=function(){var D,v,h;return _.M(function(a){switch(a.nextAddress){case 1:return a.yield(_.re.getInstance(),2);case 2:D=a.yieldResult;if(!D){v=void 0;a.jumpTo(3);break}return a.yield(D.get("lmqf"),4);case 4:v=a.yieldResult;case 3:switch((h=v)||(h="SD"),h){case "HD":return a.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return a.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return a.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return a.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return a.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
DMr=function(D){var v,h,a;return _.M(function(Q){if(Q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.g("disable_av1_setting")){var G=window.localStorage["yt-player-av1-pref"];G=G==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":G==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else G="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(v=D===G)return Q.jumpTo(2);a=h=D;return Q.yield(uds(),3)}Q.nextAddress!=2&&(v=a===Q.yieldResult);return Q.return(v)})};var hx2;var aXU=_.e5.IronButtonState,$Md=(0,_.HN)(HTMLElement);
_.yT({_template:function(){if(hx2!==void 0)return hx2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;vdd===void 0&&(vdd=document.createElement("template"));var a=vdd;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return hx2=D},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[aXU,_.y3,_.ng,_.TL],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(D){var v=(0,_.lM)(this);v.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:D});v.shadowRoot.appendChild(D);return $Md.prototype._attachDom.call(this,D)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.qc(this.$.content).getDistributedNodes(),v=0,h=D.length;v<h;v++)if(D[v].nodeType===Node.ELEMENT_NODE)return D[v]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var v="";D?v=D.label||D.getAttribute("label")||D.textContent.trim():v="";this.value=v;this._setSelectedItemLabel(v)},
_computeMenuVerticalOffset:function(D,v){return v?v:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",v=this.contentElement;v&&v.setAttribute("aria-expanded",D)}});_.BI=new _.z0("navigateAction");var QZX=new _.z0("formRenderer");var cI=function(){var D=_.XS.apply(this,arguments)||this;D.showInput=!1;return D};
_.J(cI,_.XS);_.V=cI.prototype;_.V.detached=function(){this.showInput&&window.removeEventListener("click",_.pZ(this,this.closeOnOutsideClick_))};
_.V.stopPropagation_=function(D){this.showInput&&D.stopPropagation()};
_.V.closeOnOutsideClick_=function(D){this.closeOnOutsideClickCondition(D)&&(this.showInput=!1,window.removeEventListener("click",_.pZ(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.V.closeOnOutsideClickCondition=function(){return!0};
_.V.closeOnOutsideClickHandler=function(){};
_.V.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.pZ(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.V.openOnClickHandler=function(){};
_.V.showInputChanged=function(){};
_.V.setShowInput=function(D){this.showInput=D};
cI.prototype.setShowInput=cI.prototype.setShowInput;cI.prototype.showInputChanged=cI.prototype.showInputChanged;cI.prototype.openOnClickHandler=cI.prototype.openOnClickHandler;cI.prototype.openOnClick_=cI.prototype.openOnClick_;cI.prototype.closeOnOutsideClickHandler=cI.prototype.closeOnOutsideClickHandler;cI.prototype.closeOnOutsideClickCondition=cI.prototype.closeOnOutsideClickCondition;cI.prototype.closeOnOutsideClick_=cI.prototype.closeOnOutsideClick_;cI.prototype.stopPropagation_=cI.prototype.stopPropagation_;
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],cI.prototype,"showInput",void 0);_.e([_.lc("click"),_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],cI.prototype,"stopPropagation_",null);_.e([_.Ni("showInput"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean]),_.n("design:returntype")],cI.prototype,"showInputChanged",null);_.e([_.AV()],cI);_.GiZ=[cI.prototype];var VOr;var P82;var X3=function(){return _.c.apply(this,arguments)||this};
_.J(X3,_.c);_.V=X3.prototype;_.V.computePreselectedOption=function(D,v){return v===this.itemSelected_?D:void 0};
_.V.dataChanged_=function(){var D=this;this.preselectedSubreason=this.itemSelected_=-1;var v;(v=this.data)!=null&&v.key&&_.$R(this,function(){var h,a=Number((h=D.data)==null?void 0:h.key);!Number.isNaN(a)&&(D.itemSelected_=a,h=(h=(D.data.items||[])[a])&&h.optionSelectableItemRenderer&&h.optionSelectableItemRenderer.preselectedIndex)&&(D.preselectedSubreason=h)})};
_.V.isSubReasonHidden_=function(D,v){return D!=v};
_.V.onTopItemSelected_=function(D,v){for(var h=_.ZW(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),a=0,Q=h.length;a<Q;a++)h[a].select(0);_.zU(this.hostElement,"yt-report-form-update",[v.item.value]);D.stopPropagation()};
_.V.onItemSelected_=function(D,v){_.zU(this.hostElement,"yt-report-form-update",[v.item.value]);D.stopPropagation()};
_.V.getItem_=function(D){return D.serviceItem?D.serviceItem:D.navigationItem?D.navigationItem:D.optionSelectableItemRenderer?D.optionSelectableItemRenderer:null};
_.V.computeText_=function(D){return(D=this.getItem_(D))?this.ytRendererBehavior.getSimpleString(D.text):null};
_.V.validate=function(){return this.itemSelected_!==-1};
_.V.computeAriaLabel_=function(D){var v=_.$V(D.text);(D=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label)&&(v+=". "+D);return v};
_.V.computeItemSelected_=function(D){return D};
_.V.preventSelection_=function(D){D.stopPropagation();this.tooltipTapped=!0};
_.V.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.V.updateItemSelectedFromBinding=function(D){this.itemSelected_=D.detail.value};
_.V.save=function(){var D;this.validate()&&(D=this.data)!=null&&D.items&&(D=this.data.items[this.itemSelected_],D!=null&&D.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(D.optionSelectableItemRenderer.submitEndpoint)||_.L1(this.hostElement,[D.optionSelectableItemRenderer.submitEndpoint])))};
X3.prototype.onPaperRippleTransitionEnd_=X3.prototype.onPaperRippleTransitionEnd_;X3.prototype.dataChanged_=X3.prototype.dataChanged_;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],X3.prototype,"data",void 0);_.e([_.Y({value:-1}),_.n("design:type",Number)],X3.prototype,"itemSelected_",void 0);
_.e([_.Y({computed:"computeItemSelected_(itemSelected_)"}),_.n("design:type",Number)],X3.prototype,"value",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],X3.prototype,"restoreFocusOnClose",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],X3.prototype,"tooltipTapped",void 0);_.e([_.Y({value:-1}),_.n("design:type",Number)],X3.prototype,"preselectedSubreason",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X3.prototype,"dataChanged_",null);_.e([_.lc("transitionend"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X3.prototype,"onPaperRippleTransitionEnd_",null);_.e([_.Ry({is:"yt-options-renderer",disableElementRegistration:!0})],X3);
_.w(X3,"yt-options-renderer",function(){if(P82===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;VOr===void 0&&(VOr=document.createElement("template"));var a=VOr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);P82=D}D=P82;return D},{mode:2});var xM$;var MOI;var fXC;var C8d;var ods;var Fbd;var AW=function(){return _.c.apply(this,arguments)||this};
_.J(AW,_.c);AW.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
AW.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
AW.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.zU(this.hostElement,"yt-share-panel-can-select-contact-action")[0])D&&D.detail&&(D.detail.x||D.detail.y)&&_.ZW(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:D?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.zU(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.e([_.Y({observer:"onDataChanged"}),_.n("design:type",Object)],AW.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.n("design:type",String)],AW.prototype,"componentTitle",void 0);_.e([_.Br("#thumbnail"),_.n("design:type",Object)],AW.prototype,"thumbnail",void 0);_.e([_.Ry({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],AW);
_.w(AW,"yt-enrolled-contact-renderer",function(){if(Fbd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;ods===void 0&&(ods=document.createElement("template"));var a=ods;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Fbd=D}D=Fbd;return D},{mode:2});var zxm;var UM2;var qn=function(){return _.c.apply(this,arguments)||this};
_.J(qn,_.c);qn.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
qn.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
qn.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.zU(this.hostElement,"yt-share-panel-can-select-contact-action")[0])D&&D.detail&&(D.detail.x||D.detail.y)&&_.ZW(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:D?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.zU(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.e([_.Y({observer:"onDataChanged"}),_.n("design:type",Object)],qn.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.n("design:type",String)],qn.prototype,"componentTitle",void 0);_.e([_.Br("#thumbnail"),_.n("design:type",Object)],qn.prototype,"thumbnail",void 0);_.e([_.Ry({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],qn);
_.w(qn,"yt-suggested-contact-renderer",function(){if(UM2===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;zxm===void 0&&(zxm=document.createElement("template"));var a=zxm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);UM2=D}D=UM2;return D},{mode:2});var bA=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-share-panel-reset-action":"onReset"};return D};
_.J(bA,_.c);bA.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"}}}}}};
bA.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.zU(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
bA.prototype.onReset=function(){for(var D=_.ZW(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),v=D.length-1;v>=0;v--)D[v].classList.toggle("selected")};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],bA.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({observer:"onDataChanged"}),_.n("design:type",Object)],bA.prototype,"data",void 0);
_.e([_.Ry({is:"yt-contact-section-renderer",disableElementRegistration:!0})],bA);
_.w(bA,"yt-contact-section-renderer",function(){if(C8d===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;fXC===void 0&&(fXC=document.createElement("template"));var a=fXC;h.call(v,a.content.cloneNode(!0),D.content.firstChild);C8d=D}D=C8d;return D},{mode:2});var d7=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return D};
_.J(d7,_.c);_.V=d7.prototype;_.V.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"}}}};
_.V.onYtRefreshFormCommand=function(D){var v;(D=_.k((v=_.k(D,_.qGt))==null?void 0:v.formRenderer,QZX))&&this.set("data",D)};
_.V.reset=function(){var D=_.ZW(this.hostElement).querySelector("#fields").children;D=_.P(D);for(var v=D.next();!v.done;v=D.next())v=v.value,v.reset&&v.reset()};
_.V.getForm=function(){var D={},v=_.ZW(this.hostElement).querySelector("#fields").children;v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;if(!h.validate())return null;D[h.data.key]=h.value}return D};
_.V.submitFormFields=function(){if(this.fields)for(var D=_.P(this.fields),v=D.next();!v.done;v=D.next())v=v.value,v.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?v.save():v.nodeName==="YT-OPTIONS-RENDERER"&&v.save()};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],d7.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],d7.prototype,"data",void 0);_.e([_.cr("#fields > *"),_.n("design:type",Array)],d7.prototype,"fields",void 0);
_.e([_.Ry({is:"yt-form-renderer",disableElementRegistration:!0})],d7);
_.w(d7,"yt-form-renderer",function(){if(MOI===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;xM$===void 0&&(xM$=document.createElement("template"));var a=xM$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);MOI=D}D=MOI;return D},{mode:2});var Lb2;var jE=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return D};
_.J(jE,_.c);jE.prototype.onCheckboxChange=function(D){this.data&&(D=(this.checked=_.xU(D).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})};
jE.prototype.handleUpdateCheckboxCommand=function(D){(D=_.k(D,_.tvb))&&this.data&&this.data.id===D.id&&(this.set("data.disabled",D.disabled),this.set("data.title",D.title))};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],jE.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jE.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],jE.prototype,"checked",void 0);_.e([_.m({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],jE);
_.w(jE,"ytd-settings-checkbox-renderer",function(){if(Lb2!==void 0)return Lb2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Lb2=D},{mode:1});var ZxK;var sx=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return D};
_.J(sx,_.c);sx.prototype.dataChanged=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return D.radio.removeAttribute("checked"),!D.data||!D.data.id||D.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.r$S()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(v=D.data&&D.data.id)?h.yield(DMr(D.data.id),4):h.jumpTo(3):(D.set("data.hidden",!0),h.jumpTo(0));h.nextAddress!=3&&(v=h.yieldResult);v&&_.zU(D.hostElement,"yt-select-settings-radio-option",[D.data.id]);_.YI(h)})};
sx.prototype.onButtonChanged=function(D){_.xU(D).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.zU(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
sx.prototype.onSelectOption=function(D){this.data&&this.data.id&&(this.data.id===D?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
sx.prototype.dataChanged=sx.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],sx.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Br("#radio"),_.n("design:type",Object)],sx.prototype,"radio",void 0);_.e([_.Y(),_.n("design:type",Object)],sx.prototype,"data",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],sx.prototype,"dataChanged",null);_.e([_.m({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],sx);
_.w(sx,"ytd-settings-radio-option-renderer",function(){if(ZxK!==void 0)return ZxK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ZxK=D},{mode:1});var Edr;var m1=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return D};
_.J(m1,_.c);
m1.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"}}}};
m1.prototype.handleUpdateTextCommand=function(D){(D=_.k(D,_.rF4))&&this.data&&this.data.id===D.id&&this.set("data",D)};
m1.prototype.handleUpdateConnectedAppRendererCommand=function(D){if(_.k(D,_.v9p)&&this.data){var v,h;if(D=(v=_.k(D,_.v9p))==null?void 0:(h=v.newConnectedAppRenderer)==null?void 0:h.connectedAppRenderer)this.data=D}};
m1.prototype.computeConnectedAppStyle=function(D){return D.style?D.style.toLowerCase().replace(/_/g,"-"):""};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],m1.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],m1.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.n("design:type",String)],m1.prototype,"connectedAppStyle",void 0);_.e([_.m({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],m1);
_.w(m1,"ytd-connected-app-renderer",function(){if(Edr!==void 0)return Edr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Edr=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.HQ("iuT5Oc");

_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("L3n37");
var ip0=function(D){return D.watch.isLearningJourneyActive},WV0=_.En(115994),tjR=_.En(115993),rXm=function(D,v,h){var a=this;
var Q=h.dragDownAction;this.layer=0;this.JSC$23172_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return a.dragDownAction()}}}};
this.JSC$23172_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return a.dragDownAction()}}}};
this.fullscreen=!1;var G=_.c8();_.jh(G,WV0,this.layer);_.jh(G,tjR,this.layer);this.dragDownAction=function(){Q();_.r1(G,{visualElement:a.fullscreen?WV0:tjR})};
this.gesture=new _.sb(D,v,this.getConfig(!1),"pandown");this.attach()};
rXm.prototype.attach=function(){this.gesture.attach()};
rXm.prototype.detach=function(){this.gesture.detach()};
rXm.prototype.update=function(D){this.fullscreen=D;var v=this.gesture;D=this.getConfig(D);v.config=D};
rXm.prototype.getConfig=function(D){return D?this.JSC$23172_watchFullScreenConfig:this.JSC$23172_watchConfig};var uB3=function(D){_.yl.call(this);var v=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return v.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(h){v.initOrDisposeActiveModules(h)}));
this.onAttached()};
_.J(uB3,_.yl);_.V=uB3.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(D){return this.rootElement.getElement(D)};
_.V.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(D,v){var h=this;if(_.g("web_watch_controller_reg_multiple_handlers_killswitch")){var a={};_.rf(_.iD.getInstance(),(a[D]=v,a),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),a={},_.rf(_.iD.getInstance(),(a[D]=function(){var Q=_.Kz.apply(0,arguments);return(h.actionHandlers.get(D)||[]).map(function(G){return G.apply(null,_.j_(Q))})},a),this.getRoot())),this.actionHandlers.get(D).push(v)};
_.V.unregisterActionHandler=function(D){if(_.g("web_watch_controller_reg_multiple_handlers_killswitch")){var v={};_.uD(_.iD.getInstance(),(v[D]=!0,v),this.getRoot())}else(v=this.actionHandlers.get(D))?(v.pop(),v.length===0&&(v={},_.uD(_.iD.getInstance(),(v[D]=!0,v),this.getRoot()),this.actionHandlers.delete(D))):_.yR(new _.XH("Attempted to unregister an action handler which is not registered.",D))};
_.V.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ccA(this.rootElement.pageDisposeJobs,D)};
_.V.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.e2(this.rootElement.pageDisposeJobs,D)};
_.V.dispatchEvent=function(D,v){_.F1(this.rootElement,D,v)};
_.V.provideRenderingData=function(D,v){this.rootElement.provideRenderingData(D,v)};
_.V.scrollWatchTo=function(D,v){var h;(h=this.watchScrollManager)==null||h.scrollWatchTo(D,v)};
_.V.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.$R(D,function(){if(D&&D.firstElementChild){var v=D.querySelector(".html5-video-player");v&&(_.Yi(_.xd().resolve(_.qL)),v.focus())}else _.yR(Error("Wo"))})};
var Dbw=function(D){var v=!!D.rootElement.theater,h=!!D.rootElement.fullscreen,a;(a=D.watchCinematicManager)==null||_.Blf(a,h,v)};
_.V=uB3.prototype;_.V.subscribeToActiveChanged=function(D,v){v=v===void 0?!0:v;var h=_.Oe(_.Gb(),ip0,function(a){D(a)});
v&&D(ip0(_.Gb().getState()));return h};
_.V.isActive=function(){return ip0(_.Gb().getState())};
_.V.onAttached=function(){var D=_.g("external_fullscreen");_.g("use_unified_flag_accessor")&&(D=_.xd().resolve(_.rwU).retriever.getFlag(_.dx1));(D||_.nJ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.V.initPersistentModules=function(){if(_.g("kevlar_watch_flexy_theater_manager")){var D=new _.hxQ(this);_.Ia(this,D)}D=new _.ndB(this);_.Ia(this,D);D=new _.AG(this);_.Ia(this,D);D=new _.Hx0(this);_.Ia(this,D);D=new _.sg(this);_.Ia(this,D);D=new _.q7(this);_.Ia(this,D);_.g("kevlar_watch_flexy_playlist_manager")&&(D=new _.kmw(this),_.Ia(this,D))};
_.V.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.mH(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Qef(this)),this.activeModules.push(new _.$do(this)),this.activeModules.push(new _.YWm(this)),this.activeModules.push(new _.rOY(this)),_.g("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.xdY(this)),this.activeModules.push(new _.fo3(this)),_.g("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.c2R(this)),
_.g("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Zxw(this)),_.g("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.SzB(this),this.activeModules.push(this.watchCinematicManager),Dbw(this)),_.g("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.zdR(this)),_.g("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.wVd(this)),D=_.g("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.g("kevlar_watch_flexy_comments_manager")&&
!D&&this.activeModules.push(new _.bxM(this)),_.g("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gfd(this)),this.activeModules.push(new _.MOf(this)),this.activeModules.push(new _.VJf(this)),_.g("web_enable_timely_actions")&&this.activeModules.push(new _.FbK(this)),_.g("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.jtf(this)),_.g("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.NMR(this)),_.g("web_fullscreen_components")&&
this.activeModules.push(new _.ofM(this)),_.g("web_player_rtr_ctrls")&&this.activeModules.push(new _.mdQ(this))):(_.PQ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.V.disposeInternal=function(){_.yl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.GT.Object.defineProperties(uB3.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var vXw={},hsQ=["learning-journey-engagement-panel","PAlearning_chat"];
vXw.YtdLearningJourneyWatchBehavior=[_.t.YtRendererBehavior,_.gG.YtPlayerListenerBehavior,_.ct.YtRendererstamperBehavior,_.ed.YtActionHandlerBehavior,_.$T.YtPageBehavior,_.wj.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 _.nJ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.g("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 _.nJ("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 _.g("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.g("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 _.oZ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.oZ("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("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 _.g("web_watch_rounded_player_large")||_.g("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 _.g("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.g("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("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 _.g("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("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:_.Ex(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Ex(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.g("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.g("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.g("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.lMR(function(){return _.xe(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.g("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
_.g("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.N9;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;_.g("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.g("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));_.g("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.pZ(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.g("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.g("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.g("kevlar_watch_while_v2")&&!_.g("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.F1(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var v=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var h;(h=this.watchController)==null||h.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.HU({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ea("nw");this.loading=!1;_.c1(_.HK,function(){v.initDclkstatus_();var a,Q=((a=v.player)==null?void 0:a.getVideoData().cpn)||"";_.fMf(function(G,x){_.oEr(G,x,Q)})})},
onPageLoadWithSameData_:function(){_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;var v,h,a;D=(v=this.loadingData)==null?void 0:(h=v.endpoint)==null?void 0:(a=h.watchEndpoint)==null?void 0:a.videoId;var Q;D&&(Q="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.ZW(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.ZW(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var v,h;(h=(v=this.watchMetadata).updateSentimentBarWidth)==
null||h.call(v);var a,Q;(Q=(a=this.watchMetadata).resize)==null||Q.call(a)}_.ZW(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(D){var v=_.ZW(this.hostElement).querySelector(D);v?_.f1(v,!1):_.yR(new _.XH("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var v=_.ZW(this.hostElement).querySelector(D);v?_.C1(v):_.yR(new _.XH("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(D){var v=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.HK.addLowPriorityJob(function(){v.onWindowResized_(_.XT(!0))})},
updateTheaterModeState_:function(D){if(!_.g("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.O3B()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var D=this.theater;_.g("external_fullscreen")&&this.fullscreen&&(D=!0);D=D?_.ZW(this.hostElement).querySelector("#player-full-bleed-container"):_.ZW(this.hostElement).querySelector("#player-container-inner");var v=this.getPlayerContainer(),h=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip");v.parentElement!==D&&(h&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.xe(this).appendTo(D,v),D.appendChild(_.ZW(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.M(function(v){if(v.nextAddress==1)return v.yield(_.xd().resolve(_.Ok).deactivate(),2);D.updatePlayerLocation();_.YI(v)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var v=this.getCinematicsLocationContainer();D.parentElement!==v&&v.appendChild(D);var h;(h=this.watchController)==null||Dbw(h)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ZW(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ZW(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(D,v){var h=document.documentElement.hasAttribute("dark"),a=h&&_.g("web_cinematic_theater_mode"),Q=h&&_.g("web_cinematic_fullscreen");h=!h&&this.cinematicLightTheme;return D&&a||v&&Q||(v||D)&&h},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data);_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.xd().resolve(_.fh).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.g("web_watch_start_chat_in_theater_mode")){var v,
h,a;if((v=this.data)==null?0:(h=v.contents)==null?0:(a=h.twoColumnWatchNextResults)==null?0:a.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,G;((Q=this.data)==null?0:(G=Q.contents)==null?0:G.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(D){var v;(v=this.watchController)==null||v.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(v=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),v&&!D||_.$R(this,function(){_.ea("pbu")}));
this.setPlayerAds_();_.U9(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(D){_.Gb().dispatch(_.oG({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new uB3(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.g("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var v=_.xe(this);_.g("kevlar_disable_prepare_player")||v.preparePlayer();_.g("kevlar_watch_flexy_playlist_manager")||_.xd().resolve(_.fh).setPlayer(v);this.updatePageMediaQueries();v={"--ytd-watch-flexy-scrollbar-width":_.Ux()+
"px"};!_.oZ("kv_pl_mx_sz_ks")&&_.oZ("kevlar_watch_max_player_width")&&(v["--ytd-watch-flexy-max-player-width-wide-screen"]=_.AwR+"px");_.oZ("kevlar_watch_flexy_metadata_height")&&(v["--ytd-watch-flexy-space-below-player"]=_.qXM+"px");this.safeUpdateStyles(v);_.g("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new rXm(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
_.g("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ZW(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var D=_.Ux(),v=_.OJ+D,h=v;this.fixedPanels&&(v+=_.XpY);var a=657+D;D=1327+D;_.ZW(this.hostElement).querySelector("#two-column-query").query="(min-width: "+v+"px)";_.ZW(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(a+"px), (min-height: 630px) and (min-width: ")+(v+"px) and (max-width: ")+(D+"px)");_.ZW(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.ZW(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+h+"px)"},
calculateCurrentPlayerSize_:function(){var D=_.ZW(this.hostElement).querySelector("#miniplayer-bar").firstChild;return D&&D.active||this.theater||_.g("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.lU(NaN,NaN):_.UYY(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.UYY(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.V5(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.XT());_.g("browse_skeleton_removal_on_watch_killswitch")||_.nJ("IS_SHELL_LOAD")&&_.SmZ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var v=_.xe(this);v.addEventListener("yt-player-updated",_.pZ(this,this.onPlayerUpdated_));v.getPlayerPromise().then(function(h){D.playerApiReady_(h)});
_.g("kevlar_watch_flexy_playlist_manager")||(v=_.xd().resolve(_.fh),_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&v.addEventListener("yt-navigate",_.pZ(this,this.onYtNavigate_)),v.setPlaylistComponent(_.ZW(this.hostElement).querySelector("#playlist")),v.addEventListener("yt-playlist-data-updated",_.pZ(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.HK.addLowPriorityJob(function(){_.F1(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.xe(this).removeEventListener("yt-player-updated",_.pZ(this,this.onPlayerUpdated_));if(!_.g("kevlar_watch_flexy_playlist_manager")){var D=_.xd().resolve(_.fh);_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.pZ(this,this.onYtNavigate_));D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.pZ(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.g("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.F1(this.hostElement,"yt-autonav-pause-player",!1);D=_.xE();_.g("kevlar_exit_fullscreen_leaving_watch")&&D&&_.MF(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,v){v.hasComments?v.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):v.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,v){this.player&&(v?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.A5S("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ZW(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ZW(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.g("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.g("kevlar_unified_player")||_.g("kevlar_player_new_bootstrap_adoption"))&&_.Ri()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,v){v=v===void 0?!0:v;_.xE()&&_.g("external_fullscreen")&&_.MF(document.documentElement);this.theaterRequested_=D;v&&_.NM("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.g("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.zU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.F1(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(D){_.wf(D,typeof this.player),this.player&&_.wf(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.zU(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,v){return this.loading?v:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.P(D);for(var v=D.next();!v.done;v=D.next())v=v.value,v.youThereRenderer&&_.Bfo(this.youThereManager_,v.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var v=this.youThereManager_;_.x_()<D.lowEngagementThresholdMs||_.q5f(v,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.zU(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,v,h){return!!D&&!this.isVideoPlayable_(D,h)&&!v},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,v){if(!D)return!1;var h=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",a=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var Q;v=v==null?void 0:(Q=v.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!h||!!a||!!D||!!v},
hasWatchNextResponseErrorRenderer:function(D){var v=this.getPageContents(D),h,a,Q,G,x;return!(D==null?0:(h=D.contents)==null?0:(a=h.twoColumnWatchNextResults)==null?0:a.secondaryResults)&&!!((Q=v[0])==null?0:(G=Q.itemSectionRenderer)==null?0:(x=G.contents[0])==null?0:x.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,v,h){var a=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",v),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.g("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&Q.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var G=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);G==void 0&&(G=!0);!h||this.isVideoPlayable_(D,this.getPlayerOverlays_(v))||
a||Q||!G||_.xd().resolve(_.fh).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Zpz()},
onPlayerFeedbackStartRequest_:function(D){_.zU(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.zU(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,v,h,a,Q,G,x,f,C=((D=this.data)==null?NaN:(v=D.contents)==null?NaN:(h=v.twoColumnWatchNextResults)==null?NaN:(a=h.secondaryResults)==null?NaN:(Q=a.secondaryResults)==null?NaN:(G=Q.offerModule)==null?NaN:(x=G.tvfilmOfferModuleRenderer)==null?NaN:(f=x.actionButtons)==null?NaN:f.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(C>=0?C:0)+".buttonRenderer."];v=_.P(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(h=v.next();!h.done;h=v.next())for(h=h.value,a=_.P(D),Q=a.next();!Q.done;Q=a.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+h+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.lP(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.F1(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.F1(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.Gb().dispatch(_.dN9(D))},
onPlayerSubscribe_:function(D){_.zU(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.zU(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.zU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(D){return!_.g("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.g("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var D,v,h,a;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(v=D.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(a=h.secondaryResults)==null?void 0:a.secondaryResults}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,v=(D=this.data)==null?void 0:D.engagementPanels;if(v==null?0:v.length){D=null;v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=void 0;if(((a=h.engagementPanelSectionListRenderer)==null?void 0:a.targetId)==="engagement-panel-structured-description"){D=h;break}}var Q,G,x;D=(Q=D)==null?void 0:(G=Q.engagementPanelSectionListRenderer)==null?void 0:(x=G.content)==null?void 0:x.structuredDescriptionContentRenderer;if(D==null?0:D.items){Q=
[];G=_.P(D.items);for(x=G.next();!x.done;x=G.next()){x=x.value;if(!_.g("sd_horizontal_list_show_nav_killswitch")){var f=a=h=v=D=void 0,C=void 0,U=(D=x.horizontalCardListRenderer)==null?void 0:(v=D.header)==null?void 0:(h=v.richListHeaderRenderer)==null?void 0:(a=h.navigationButton)==null?void 0:(f=a.buttonRenderer)==null?void 0:(C=f.command)==null?void 0:C.commandExecutorCommand;U&&U.commands&&(U.commands=U.commands.filter(function(L){return!_.k(L,_.RBK)}))}x.expandableVideoDescriptionBodyRenderer||
x.videoDescriptionHeaderRenderer||Q.push(x)}return{items:Q}}}},
constructWarning_:function(D){return{text:_.aX(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.F1(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var v=this.getScrollTop()>0;this.gestures_&&(v?this.gestures_.detach():this.gestures_.attach());v!==this.showFullerscreenEdu_&&_.g("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=v,_.xe(this).getPlayerPromise().then(function(h){h.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.F1(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.HK.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.c1(_.HK,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.g("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ea("cmi");_.HK.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.P(D);for(var v=D.next();!v.done;v=D.next())if(v=v.value,this.get("itemSectionRenderer.sectionIdentifier",v)==="comment-item-section"){this.comments=v.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.F1(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.g("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ea("cmc")},
doRemoveComments_:function(){this.comments={};_.g("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.HK.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.HK.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,v){var h=_.k(v.endpoint,_.hP);h&&(!(v=this.get("data.currentVideoEndpoint.watchEndpoint"))||h.videoId!==v.videoId||h.playlistId&&h.playlistId!==v.playlistId||h.index!==void 0&&h.index!==v.index||typeof h.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.xe(this).getPlayerPromise().then(function(a){var Q=h.startTimeSeconds;a.seekTo(Q);a.wakeUpControls();Q<a.getDuration()&&a.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.hl3();"t"in D&&(D=_.LVY(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var v,h;(D=_.$V(D==null?void 0:(v=D[0])==null?void 0:(h=v.videoPrimaryInfoRenderer)==null?void 0:h.title))&&_.F1(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.F1(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,v,h){if(this.active&&this.player){var a=this.player.getVideoData();if(a.video_id===h&&(h=a.list,_.g("polymer_enable_mdx_queue")&&h&&h.startsWith("RQ")&&(h=void 0),a.video_id!==D||h!=v)){var Q;_.g("kevlar_player_watch_endpoint_navigation")?Q=_.csc(_.CD0(D,v)):Q=this.buildWatchEndpoint_(D,v);_.F1(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,v,h){return _.xZ(D,v,h)},
initDclkstatus_:function(){_.zl0()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var v=D.querySelector("#primary-info"),h=D.querySelector("#secondary-info"),a=D.querySelector("#related");v&&_.ZW(this.hostElement).querySelector("#info-skeleton").appendChild(v);h&&_.ZW(this.hostElement).querySelector("#meta-skeleton").appendChild(h);a&&(_.ZW(this.hostElement).querySelector("#related-skeleton").appendChild(a),this.watchNextSkeletonEl_=a);_.Np(D)}},
handlePlayerUpdated_:function(){_.xe(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,v){if(this.watchNextSkeletonEl_&&typeof v!=="undefined"){var h=this.watchNextSkeletonEl_.children,a=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,h.length);v||(a=0,D=h.length);for(v=a;v<D;v++)h[v].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.g("external_fullscreen")||_.zU(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var v=_.xe(this);v.getPlayerPromise().then(function(h){h.setFauxFullscreen(!!_.xE())});
this.updateFullBleedElementLocations();D&&(v.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,v){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!v},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,v){return v&&!!D},
computeResponseHasComments:function(D){var v,h,a,Q,G;return!!(D==null?0:(v=D.contents)==null?0:(h=v.twoColumnWatchNextResults)==null?0:(a=h.results)==null?0:(Q=a.results)==null?0:(G=Q.contents)==null?0:G.some(function(x){var f;return(x==null?void 0:(f=x.itemSectionRenderer)==null?void 0:f.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,v){this.responseHasComments=this.computeResponseHasComments(this.data);return!!D&&!!Object.keys(D).length&&!v},
identity:_.mI,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.g("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var v=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.xe(this).getPlayerPromise().then(function(h){var a=h.getPlayerState();a!==5&&a!==0&&(h=1/h.getVideoAspectRatio(),v.videoHeightToWidthRatio_!==h&&(v.videoHeightToWidthRatio_=h))})},
schedulePlayerSizeUpdate_:function(D){var v=this,h=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip"),a=function(){if(v.watchMetadata){var Q,G;(G=(Q=v.watchMetadata).resize)==null||G.call(Q)}_.xe(v).getPlayerPromise().then(function(x){if(_.g("kevlar_set_internal_player_size")){if(!h||!v.isMiniplayerActive()){var f=v.calculateCurrentPlayerSize_();x.setInternalSize(f.width,f.height)}}else x.setSize(NaN,NaN);_.g("kevlar_watch_while")&&v.updateWatchWhileScrollThreshold_()})};
D?a():_.LK(_.HK,a)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.k(D,_.p1f).survey)},
onDownloadedVideoDeleted:function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1){if(!v.active||(h=v.playerData)==null||!h.offlineState||v.videoId!==D)return Q.return();(a=v.player)==null||a.stopVideo();_.eh().navigatingAwayFromWatchDeletedVideo=!0;_.lP(_.NiI,v.hostElement);return Q.yield(_.eh().navigationFinishPromise,2)}_.eh().navigatingAwayFromWatchDeletedVideo=!1;_.YI(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.sk(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.ZW(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var v=this.windowSize_.height>=624,h=this.active?this.getScrollTop():0;!D.active&&v&&h>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!v||h<this.watchWhileScrollThreshold_&&!_.xE())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(D,v){if(D!==!0||v!==void 0){D=!_.g("live_chat_over_engagement_panels");v=_.ZW(this.hostElement).querySelector("#chat-container");var h=_.ZW(this.hostElement).querySelector("#plj-sidebar"),a=_.ZW(this.hostElement).querySelector("#panels"),Q=_.ZW(this.hostElement).querySelector("#plj-panels"),G=_.ZW(this.hostElement).querySelector("#plj-playlist"),x=_.ZW(this.hostElement).querySelector("#alerts"),f=_.ZW(this.hostElement).querySelector("#playlist"),C=_.ZW(this.hostElement).querySelector("#related"),
U=_.ZW(this.hostElement).querySelector("#donation-shelf"),L=_.ZW(this.hostElement).querySelector("#comments");this.isTwoColumns_?(x=_.ZW(this.hostElement).querySelector("#secondary-inner"),x.appendChild(h),h.appendChild(G),G.appendChild(f),h.appendChild(Q),D&&x.appendChild(a),_.g("web_watch_theater_chat")||x.appendChild(v),D||x.appendChild(a),x.appendChild(U),x.appendChild(C)):(D&&_.OO(a,x),_.OO(f,x),_.g("web_watch_theater_chat")||_.OO(v,x),D||_.OO(a,x),_.OO(U,x),L&&(Q&&_.OO(Q,L),_.OO(C,L)));_.g("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.g("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.g("web_watch_theater_chat")){var D=_.ZW(this.hostElement).querySelector("#chat-container"),v=this.theater&&!this.fullscreen||_.g("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&v?_.g("web_watch_theater_chat_beside_player")?(v=_.ZW(this.hostElement).querySelector("#panels-full-bleed-container"),(D==null?void 0:D.parentElement)!==v&&v.append(D),this.panelsBesidePlayer=!0):_.g("web_watch_theater_fixed_chat")&&
(v=_.ZW(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==v&&v.append(D),this.fixedPanels=!0):(_.g("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.g("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),v=_.ZW(this.hostElement).querySelector("#playlist"),D&&v?_.KW(D,v):_.yR(new _.XH("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!v})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,v){return _.g("sw_metadata_vis_toggle_ks")?!0:!!D||!!v},
computeForceDarkPanelTheme:function(D){return _.g("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.SB(this.hostElement,D)}catch(v){_.yR(v)}},
videoHeightToWidthRatioChanged_:function(D,v){v&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.g("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.xe(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.xe(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.bpB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var v=_.nq(D)||0;_.eL(D,v+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.nq("yt-fullerscreen-edu-button-click-count")||0,v=_.nq("yt-fullerscreen-edu-button-shown-count")||0,h=_.oZ("external_fullscreen_button_shown_threshold"),a=D>=_.oZ("external_fullscreen_button_click_threshold")||v>=h;_.xe(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(a)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,v){return v},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.xd().resolve(_.fh).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.panelMaxHeightUpdateJob_&&_.HK.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.HK.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var v;!D.isTwoColumns_||D.theater||D.fullscreen?v=460:v=D.calculateNormalPlayerSize_().height;var h=v+"px";_.g("live_chat_taller_height")&&!D.theater&&(h="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.g("live_chat_medium_height")&&
!D.theater&&(h="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.g("live_chat_scaled_height")&&!D.theater&&(h="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":v+"px","--ytd-watch-flexy-chat-max-height":h,"--ytd-watch-flexy-structured-description-max-height":v+"px","--ytd-watch-flexy-comments-panel-max-height":v+"px","--ytd-comments-engagement-panel-content-height":v+"px"})})},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZD(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var v=_.ZW(this.hostElement).querySelector("#engagement-panel-scrim");D?v.addEventListener("tap",_.pZ(this,this.onEngagementPanelScrimClick_)):v.removeEventListener("tap",_.pZ(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var v=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var h=this.getPageScrollingElement(),a=this.getScrollTop(),Q=a+h.clientHeight-56;if(v<a+56)v-=56;else if(D>Q)v=D-h.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,v),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.g("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.NV().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,v,h){this.active&&this.trackEngagementPanelVisibility&&!_.S5o.includes(h)&&(v==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(h),v!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&v!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(h),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeFullBleedPlayer:function(D,v){return D||v},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,v){return!D&&v},
computeWatchWhilePanelsActive:function(D,v){return D||v},
computeNoBorderOnChat:function(D){return _.g("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,v){return D&&!v},
computePanelExpanded:function(D,v,h){return D||v||h},
onChangeMarkersVisibility:function(D){_.xe(this).getPlayerPromise().then(function(v){var h;(h=v.changeMarkerVisibility)==null||h.call(v,_.k(D,_.ni).isVisible||!1,_.k(D,_.ni).entityKeys||[],_.k(D,_.ni).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.Gb().dispatch(_.kCH(D.detail))},
provideRenderingData:function(D,v){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=v;break;case "PRIMARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=v);this.videoPrimaryInfoRendererValue=v==null?void 0:v.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=v);this.videoSecondaryInfoRendererValue=v==null?void 0:v.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
v;break;case "CLARIFICATION":this.clarifyBoxValue=v;break;case "LIVE_CHAT":this.conversationBar=v;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=v;break;case "PLAYLIST":this.externalPlaylistData_=v!=null?v:{};break;case "MERCH_SHELF":this.merchShelfValue=v==null?void 0:v.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=v;break;case "OFFER_MODULE":this.offerModule=v;break;case "LIMITED_STATE":this.limitedStateValue=v;break;case "DONATION_SHELF":this.donation=v;break;
case "ALERTS":this.alertsValue=v;break;case "COMMENTS":this.comments=v;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=v;break;case "ENGAGEMENT_PANELS":this.engagementPanels=v;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=v;break;case "RICH_GRID_RENDERER":this.richGridRendererData=v;break;case "EXPANDABLE_METADATA":this.expandableMetadata=v;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=v}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.xd().resolve(_.Ok).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(D){return hsQ.map(function(v){return D.find(function(h){var a;return(h==null?void 0:(a=h.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===v})}).filter(function(v){return v!==void 0})},
getNonLearningJourneyEngagementPanels:function(D){return D.filter(function(v){var h;return!hsQ.includes((v==null?void 0:(h=v.engagementPanelSectionListRenderer)==null?void 0:h.targetId)||"")})}}];var aOf;var uk=function(){var D=_.c.apply(this,arguments)||this;D.flexy=!0;D.learningJourney=!0;D.viewTransitionEnabled=_.g("enable_player_resize_transition");D.smallerChatMinHeight=_.g("live_chat_smaller_min_height");D.cinematicTheaterMode=_.g("web_cinematic_theater_mode");D.transparentTheaterMode=_.g("web_transparent_theater_mode");D.cinematicFullscreen=_.g("web_cinematic_fullscreen");D.cinematicFullscreenV2=_.g("web_cinematic_fullscreen_v2");D.isDarkTheme=document.documentElement.hasAttribute("dark");
D.theaterLargerPlayer=_.g("web_watch_theater_larger_player");D.defaultCollapsePlaylist=_.g("web_watch_default_collapse_playlist");D.enableCanvasLayout=_.g("web_enable_canvas_on_learning_journey");return D};
_.J(uk,_.c);_.V=uk.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var D=this,v=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",v);this.secondary.addEventListener("scroll",v)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(D){_.g("web_watch_update_narrow_width_killswitch")||_.Gb().dispatch(_.wdf(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.V.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.V.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23181_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23181_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.GT.Object.defineProperties(uk.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var v=0;v<this.data.pageVisualEffects.length;v++)if(D=_.k(this.data.pageVisualEffects[v],_.vz))return v=void 0,(v=D.config)==null?void 0:v.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.learningJourneyEngagementPanels)==null?void 0:D.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.learningJourneyEngagementPanels)==null?void 0:D.find(function(E){var I;return(E==null?void 0:(I=E.engagementPanelSectionListRenderer)==null?void 0:I.panelIdentifier)==="learning-journey-engagement-panel"});
if(v){var h,a,Q,G,x,f,C,U,L;if(D=(U=((C=(x=((G=v==null?void 0:(h=v.engagementPanelSectionListRenderer)==null?void 0:(a=h.content)==null?void 0:(Q=a.sectionListRenderer)==null?void 0:Q.contents)!=null?G:[])[0])==null?void 0:(f=x.itemSectionRenderer)==null?void 0:f.contents)!=null?C:[])[0])==null?void 0:(L=U.accordionViewModel)==null?void 0:L.onTitleTap){var Z=_.Rq(D);if(Z)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.pb.instance.resolveCommand(Z)}}}}}}});
_.GT.Object.defineProperties(uk,{template:{configurable:!0,enumerable:!0,get:function(){if(aOf===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);aOf=D}D=aOf;return D}}});
uk.prototype.updateMiniplayerIsActiveValue=uk.prototype.updateMiniplayerIsActiveValue;uk.prototype.updateScrollTopValue=uk.prototype.updateScrollTopValue;uk.prototype.updateFullscreenValue=uk.prototype.updateFullscreenValue;uk.prototype.updateTheaterValue=uk.prototype.updateTheaterValue;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],uk.prototype,"ytComponentBehavior",void 0);
_.e([_.l(vXw.YtdLearningJourneyWatchBehavior),_.n("design:type",Object)],uk.prototype,"ytdWatchBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],uk.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uk.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],uk.prototype,"playerData",void 0);_.e([_.Y(),_.n("design:type",Object)],uk.prototype,"browseData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"flexy",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"learningJourney",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"viewTransitionEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"smallerChatMinHeight",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"cinematicTheaterMode",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"transparentTheaterMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"cinematicFullscreen",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"cinematicFullscreenV2",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"isDarkTheme",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],uk.prototype,"theaterLargerPlayer",void 0);_.e([_.Y(),_.n("design:type",Object)],uk.prototype,"defaultCollapsePlaylist",void 0);_.e([_.Y(),_.n("design:type",Object)],uk.prototype,"enableCanvasLayout",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("playerData","browseData","enableCanvasLayout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],uk.prototype,"showBrowseResponse",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("playerData","enableCanvasLayout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],uk.prototype,"showWatchResponse",null);_.e([_.Y({selector:_.n_}),_.n("design:type",Object)],uk.prototype,"theaterValue",void 0);_.e([_.Y({selector:_.OA}),_.n("design:type",Object)],uk.prototype,"fullscreenValue",void 0);_.e([_.Y({selector:_.ma}),_.n("design:type",Object)],uk.prototype,"scrollTopValue",void 0);
_.e([_.Y({selector:_.eq}),_.n("design:type",Object)],uk.prototype,"miniplayerIsActiveValue",void 0);_.e([_.Br("#ytd-plj-player"),_.n("design:type",HTMLElement)],uk.prototype,"ytdPlayer",void 0);_.e([_.Br("#playlist"),_.n("design:type",HTMLElement)],uk.prototype,"JSC$23181_ytdPlaylistPanelRenderer",void 0);_.e([_.Hn("ytd-comments"),_.n("design:type",HTMLElement)],uk.prototype,"ytdComments",void 0);_.e([_.Br("#primary"),_.n("design:type",HTMLElement)],uk.prototype,"primary",void 0);
_.e([_.Br("#secondary"),_.n("design:type",HTMLElement)],uk.prototype,"secondary",void 0);_.e([_.Br("#player-container"),_.n("design:type",HTMLElement)],uk.prototype,"playerContainer",void 0);_.e([_.Br("#cinematics"),_.n("design:type",HTMLElement)],uk.prototype,"JSC$23181_cinematics",void 0);_.e([_.Ni("theaterValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uk.prototype,"updateTheaterValue",null);
_.e([_.Ni("fullscreenValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uk.prototype,"updateFullscreenValue",null);_.e([_.Ni("scrollTopValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uk.prototype,"updateScrollTopValue",null);_.e([_.Ni("miniplayerIsActiveValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uk.prototype,"updateMiniplayerIsActiveValue",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],uk.prototype,"cinematicLightTheme",null);_.e([_.Y({reflectToAttribute:!0}),_.N("learningJourneyEngagementPanels"),_.n("design:type",Object),_.n("design:paramtypes",[])],uk.prototype,"hasLearningJourneyPanels",null);_.e([_.N("learningJourneyEngagementPanels"),_.n("design:type",Object),_.n("design:paramtypes",[])],uk.prototype,"backButtonData",null);_.e([_.m({is:"ytd-watch-learning-journey"})],uk);_.jk.registerService(_.c7c,uk);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("Tm0L3c");
var n_w;var Opf;var KVw=function(){return _.c.apply(this,arguments)||this};
_.J(KVw,_.c);_.e([_.m({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],KVw);
_.w(KVw,"ytd-ghost-comments-renderer",function(){if(Opf===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);Opf=D}D=Opf;return D},{mode:1});var Tfm;var Rl3=function(){return _.c.apply(this,arguments)||this};
_.J(Rl3,_.c);_.e([_.m({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Rl3);
_.w(Rl3,"ytd-ghost-watch-metadata-renderer",function(){if(Tfm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);Tfm=D}D=Tfm;return D},{mode:1});var rA=function(){var D=_.c.apply(this,arguments)||this;D.ghostGridRenderer={rows:6};D.smallerChatMinHeight=_.g("live_chat_smaller_min_height");D.cinematicTheaterMode=_.g("web_cinematic_theater_mode");D.transparentTheaterMode=_.g("web_transparent_theater_mode");D.darkerPanels=_.g("web_watch_darker_panels");D.cinematicFullscreen=_.g("web_cinematic_fullscreen");D.cinematicFullscreenV2=_.g("web_cinematic_fullscreen_v2");D.isDarkTheme=document.documentElement.hasAttribute("dark");return D};
_.J(rA,_.c);_.V=rA.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var D=this,v=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",v);this.secondary.addEventListener("scroll",v)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(D){this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.V.updateShownItemsFromBinding=function(D){_.g("swatcheroo_direct_use_rich_grid")||(D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value)};
_.V.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23169_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23169_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.GT.Object.defineProperties(rA.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var v=0;v<this.data.pageVisualEffects.length;v++)if(D=_.k(this.data.pageVisualEffects[v],_.vz))return v=void 0,(v=D.config)==null?void 0:v.enableInLightTheme;return!1}}});
rA.prototype.updateMiniplayerIsActiveValue=rA.prototype.updateMiniplayerIsActiveValue;rA.prototype.updateScrollTopValue=rA.prototype.updateScrollTopValue;rA.prototype.updateFullscreenValue=rA.prototype.updateFullscreenValue;rA.prototype.updateTheaterValue=rA.prototype.updateTheaterValue;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],rA.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.w1M.YtdWatchBehavior),_.n("design:type",Object)],rA.prototype,"ytdWatchBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],rA.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rA.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],rA.prototype,"ghostGridRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],rA.prototype,"playerData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"smallerChatMinHeight",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"cinematicTheaterMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"transparentTheaterMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"darkerPanels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"cinematicFullscreen",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"cinematicFullscreenV2",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rA.prototype,"isDarkTheme",void 0);_.e([_.Y({selector:_.n_}),_.n("design:type",Object)],rA.prototype,"theaterValue",void 0);_.e([_.Y({selector:_.OA}),_.n("design:type",Object)],rA.prototype,"fullscreenValue",void 0);_.e([_.Y({selector:_.ma}),_.n("design:type",Object)],rA.prototype,"scrollTopValue",void 0);
_.e([_.Y({selector:_.eq}),_.n("design:type",Object)],rA.prototype,"miniplayerIsActiveValue",void 0);_.e([_.Br("#ytd-player"),_.n("design:type",HTMLElement)],rA.prototype,"ytdPlayer",void 0);_.e([_.Br("#playlist"),_.n("design:type",HTMLElement)],rA.prototype,"JSC$23169_ytdPlaylistPanelRenderer",void 0);_.e([_.Br("#ytd-comments"),_.n("design:type",HTMLElement)],rA.prototype,"ytdComments",void 0);_.e([_.Br("#primary"),_.n("design:type",HTMLElement)],rA.prototype,"primary",void 0);
_.e([_.Br("#secondary"),_.n("design:type",HTMLElement)],rA.prototype,"secondary",void 0);_.e([_.Br("#player-container"),_.n("design:type",HTMLElement)],rA.prototype,"playerContainer",void 0);_.e([_.Br("#cinematics"),_.n("design:type",HTMLElement)],rA.prototype,"JSC$23169_cinematics",void 0);_.e([_.Ni("theaterValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rA.prototype,"updateTheaterValue",null);
_.e([_.Ni("fullscreenValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rA.prototype,"updateFullscreenValue",null);_.e([_.Ni("scrollTopValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rA.prototype,"updateScrollTopValue",null);_.e([_.Ni("miniplayerIsActiveValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rA.prototype,"updateMiniplayerIsActiveValue",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],rA.prototype,"cinematicLightTheme",null);
_.w(rA,"ytd-watch-grid",function(){if(n_w===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);n_w=D}D=n_w;return D},{mode:2});_.jk.registerService(_.BOc,rA);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("CF909");
var elw;var tG=function(){var D=_.c.apply(this,arguments)||this;D.viewTransitionEnabled=_.g("enable_player_resize_transition");D.smallerChatMinHeight=_.g("live_chat_smaller_min_height");D.cinematicTheaterMode=_.g("web_cinematic_theater_mode");D.transparentTheaterMode=_.g("web_transparent_theater_mode");D.cinematicFullscreen=_.g("web_cinematic_fullscreen");D.isDarkTheme=document.documentElement.hasAttribute("dark");D.defaultCollapsePlaylist=_.g("web_watch_default_collapse_playlist");D.retroModeReduxValue=
!1;D.persistentPanelVisibleValue=!1;return D};
_.J(tG,_.c);_.V=tG.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateRetroModeReduxValue=function(){_.g("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.V.updatePersistentPanelVisibleValue=function(){_.g("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.V.ready=function(){var D=this,v=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",v);this.secondary.addEventListener("scroll",v)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(D){_.g("web_watch_update_narrow_width_killswitch")||_.Gb().dispatch(_.wdf(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.V.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.V.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23164_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23164_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.GT.Object.defineProperties(tG.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var v=0;v<this.data.pageVisualEffects.length;v++)if(D=_.k(this.data.pageVisualEffects[v],_.vz))return v=void 0,(v=D.config)==null?void 0:v.enableInLightTheme;return!1}}});
_.GT.Object.defineProperties(tG,{template:{configurable:!0,enumerable:!0,get:function(){if(elw===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\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 id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);elw=D}D=elw;return D}}});
tG.prototype.updatePersistentPanelVisibleValue=tG.prototype.updatePersistentPanelVisibleValue;tG.prototype.updateRetroModeReduxValue=tG.prototype.updateRetroModeReduxValue;tG.prototype.updateScrollTopValue=tG.prototype.updateScrollTopValue;tG.prototype.updateFullscreenValue=tG.prototype.updateFullscreenValue;tG.prototype.updateTheaterValue=tG.prototype.updateTheaterValue;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],tG.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.w1M.YtdWatchBehavior),_.n("design:type",Object)],tG.prototype,"ytdWatchBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],tG.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],tG.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],tG.prototype,"playerData",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"viewTransitionEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"smallerChatMinHeight",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"cinematicTheaterMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"transparentTheaterMode",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"cinematicFullscreen",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"isDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],tG.prototype,"defaultCollapsePlaylist",void 0);_.e([_.Y({selector:_.n_}),_.n("design:type",Object)],tG.prototype,"theaterValue",void 0);_.e([_.Y({selector:_.OA}),_.n("design:type",Object)],tG.prototype,"fullscreenValue",void 0);
_.e([_.Y({selector:_.ma}),_.n("design:type",Object)],tG.prototype,"scrollTopValue",void 0);_.e([_.Y({selector:_.eq}),_.n("design:type",Object)],tG.prototype,"miniplayerIsActive",void 0);_.e([_.Y({selector:function(D){return D.watch.isWatchRetroMode}}),
_.n("design:type",Object)],tG.prototype,"retroModeReduxValue",void 0);_.e([_.Y({selector:_.W4.persistentPanelVisibleSelector}),_.n("design:type",Object)],tG.prototype,"persistentPanelVisibleValue",void 0);_.e([_.Hn("ytd-player"),_.n("design:type",HTMLElement)],tG.prototype,"ytdPlayer",void 0);_.e([_.Br("#playlist"),_.n("design:type",HTMLElement)],tG.prototype,"JSC$23164_ytdPlaylistPanelRenderer",void 0);_.e([_.Hn("ytd-comments"),_.n("design:type",HTMLElement)],tG.prototype,"ytdComments",void 0);
_.e([_.Br("#primary"),_.n("design:type",HTMLElement)],tG.prototype,"primary",void 0);_.e([_.Br("#secondary"),_.n("design:type",HTMLElement)],tG.prototype,"secondary",void 0);_.e([_.Br("#player-container"),_.n("design:type",HTMLElement)],tG.prototype,"playerContainer",void 0);_.e([_.Br("#below"),_.n("design:type",HTMLElement)],tG.prototype,"below",void 0);_.e([_.Br("#cinematics"),_.n("design:type",HTMLElement)],tG.prototype,"JSC$23164_cinematics",void 0);
_.e([_.Br("#persistent-panel-container"),_.n("design:type",HTMLElement)],tG.prototype,"persistentPanelContainer",void 0);_.e([_.Ni("theaterValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tG.prototype,"updateTheaterValue",null);_.e([_.Ni("fullscreenValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tG.prototype,"updateFullscreenValue",null);
_.e([_.Ni("scrollTopValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tG.prototype,"updateScrollTopValue",null);_.e([_.Ni("retroModeReduxValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tG.prototype,"updateRetroModeReduxValue",null);_.e([_.Ni("persistentPanelVisibleValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tG.prototype,"updatePersistentPanelVisibleValue",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],tG.prototype,"cinematicLightTheme",null);_.e([_.m({is:"ytd-watch-flexy"})],tG);_.jk.registerService(_.YSu,tG);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("nmfa2d");
var v_f;var wA=function(){var D=_.c.apply(this,arguments)||this;D.hidden=!1;D.errorScreen=null;D.playlistData={};return D};
_.J(wA,_.c);_.V=wA.prototype;_.V.getPlayer=function(){return this.ytdPlayer};
_.V.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:_.Ex(["aa","eocs"])}}};
_.V.onActiveChanged=function(){_.Gb().dispatch(_.bLM(this.ytPageBehavior.active))};
_.V.playerDataChanged=function(){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData)};
_.V.dataChanged=function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)};
_.V.sizeChanged=function(){var D,v;(v=(D=this.metadata).resize)==null||v.call(D)};
_.V.attached=function(){this.watchController=new _.Ho(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.V.detached=function(){_.V5(this.watchController);this.watchController=void 0};
_.V.getPlayerContainer=function(){return this.playerContainer};
_.V.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.V.provideRenderingData=function(D,v){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=v;break;case "ERROR_SCREEN":this.errorScreen=v!=null?v:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=v;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=v;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=v;break;case "RICH_METADATA":this.richMetadataRowContainer=v;break;case "CLARIFICATION":this.clarificationData=v;break;case "PLAYLIST":this.playlistData=
v!=null?v:{};break;case "MERCH_SHELF":this.merchShelf=v;break;case "TICKET_SHELF":this.ticketShelf=v;break;case "LIMITED_STATE":this.limitedState=v;break;case "DONATION_SHELF":this.donationShelf=v;break;case "ALERTS":this.alerts=v}};
_.GT.Object.defineProperties(wA.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return!this.hidden&&!!((D=this.data)==null?0:(v=D.contents)==null?0:(h=v.twoColumnWatchNextResults)==null?0:h.conversationBar)}}});
wA.prototype.sizeChanged=wA.prototype.sizeChanged;wA.prototype.dataChanged=wA.prototype.dataChanged;wA.prototype.playerDataChanged=wA.prototype.playerDataChanged;wA.prototype.onActiveChanged=wA.prototype.onActiveChanged;_.e([_.l(_.$T.YtPageBehavior),_.n("design:type",Object)],wA.prototype,"ytPageBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],wA.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"playerData",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],wA.prototype,"hidden",void 0);_.e([_.Br("#ytd-player"),_.n("design:type",HTMLElement)],wA.prototype,"ytdPlayer",void 0);_.e([_.Br("#player-container"),_.n("design:type",HTMLElement)],wA.prototype,"playerContainer",void 0);_.e([_.Br("#metadata"),_.n("design:type",Object)],wA.prototype,"metadata",void 0);_.e([_.Br("#playlist"),_.n("design:type",HTMLElement)],wA.prototype,"playlistPanel",void 0);
_.e([_.Y({selector:_.eZz,reflectToAttribute:!0}),_.n("design:type",Object)],wA.prototype,"fixie",void 0);_.e([_.Y({selector:_.ws3,reflectToAttribute:!0}),_.n("design:type",Object)],wA.prototype,"singleColumn",void 0);_.e([_.Y({selector:function(D){return _.n_(D)&&!_.OA(D)},
reflectToAttribute:!0}),_.n("design:type",Object)],wA.prototype,"theater",void 0);_.e([_.Y({selector:_.OA,reflectToAttribute:!0}),_.n("design:type",Object)],wA.prototype,"fullscreen",void 0);_.e([_.Y({selector:_.XKo}),_.n("design:type",Object)],wA.prototype,"windowSize",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"singleColumnContents",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"errorScreen",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"playlistData",void 0);
_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"videoPrimaryInfoRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"videoSecondaryInfoRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"richMetadataRowContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"clarificationData",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"commentsEntryPointHeaderRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"ticketShelf",void 0);
_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"merchShelf",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"donationShelf",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"limitedState",void 0);_.e([_.Y(),_.n("design:type",Object)],wA.prototype,"alerts",void 0);_.e([_.N("playlistData"),_.n("design:type",Object),_.n("design:paramtypes",[])],wA.prototype,"hasPlaylistData",null);
_.e([_.N("data","hidden"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wA.prototype,"hasChat",null);_.e([_.Ni("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wA.prototype,"onActiveChanged",null);_.e([_.Ni("playerData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wA.prototype,"playerDataChanged",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wA.prototype,"dataChanged",null);_.e([_.Ni("windowSize","singleColumn"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wA.prototype,"sizeChanged",null);
_.w(wA,"ytd-watch-fixie",function(){if(v_f===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);v_f=D}D=v_f;return D},{mode:1});_.jk.registerService(_.NOL,wA);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("xwEKAe");
var BJz=function(D){return _.aB(D)?D.getAttribute("jsname")==="coFSxe":!1},cbd=function(D,v){v.id||(v.id="ow"+_.iq(v));
D.setAttribute("jsowner",v.id);D.__owner=v;var h=_.OV(v,BJz);h&&(_.WVJ.has(h)||_.WVJ.set(h,[]),_.WVJ.get(h).push(D));(h=_.ipJ.get(v))||_.ipJ.set(v,h=[]);h.includes(D)||h.push(D);v.setAttribute("__IS_OWNER",!0)},Xmz=function(){var D=_.bLI(1);
D=_.V6(D,_.y2u);if(!(_.qW2(D)||D[_.zy4]&&!D.__hasBeenSet))return D.value},AbM=function(D){var v=_.YE();
if(v.getFlag(202))v=v.getFlag(201);else{var h;v=(D==null?void 0:(h=D.config)==null?void 0:h.settingOnByDefault)!==void 0?D.config.settingOnByDefault:!_.g("web_shorts_cinematics_disabled_by_default")}return v},qFf=function(D){var v=_.YE();
_.BU(0,201,D);_.BU(0,202,!0);v.save()},b4z=function(D){return(D=_.ikA(D))?_.t4i(D):0},d1o=function(D){return D.shorts.isSmallScreenSqueezeback},j4d=function(D){return D.shorts.isPlaybackStarted},H4z=function(D){var v=_.bLI(2),h=new Set;
_.dq(function(){return void h.forEach(function(a){return void a()})});
return function(a){var Q=_.GS(v);try{var G=s4z(m1R(D),a);h.add(G);return function(){G();h.delete(G)}}finally{_.GS(Q)}}},ybQ=function(D){var v=D.children;
var h=D.root;_.dM(function(){var a=H4z(h)(v);_.dq(a)});
return document.createTextNode("")},s4z=function(D,v){var h=wm0(D);
(D=Xmz())&&cbd(h,D);_.LJ.setUp();v=_.P(_.mO7(v,!0));D=v.next().value;var a=v.next().value;v=_.P(D);for(D=v.next();!D.done;D=v.next())h.appendChild(D.value);_.LJ.log(h);_.LJ.tearDown();return function(){a();h.remove()}},m1R=function(D){if(typeof D==="string")return D=document.querySelector(D),_.UFX(D),D;
if(_.fJ(D)&&D.nodeType===Node.ELEMENT_NODE)return D;if(!D.__value&&!D.__optional){var v=_.Lnr.USE_ELEMENT_NOT_ASSIGNED(D.__expectedTagName);D.__hasErrored=!0;throw v;}return D.value},wm0=function(D){var v=document.createElementNS(D.namespaceURI,D.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return D.appendChild(v)},eM0=function(D,v,h,a){D=v-D;
h=a-h;return Math.sqrt(D*D+h*h)},npo=function(D,v){D&&_.xd().resolve(_.fx).resolveCommand(D,{forceClickLogging:!0,
form:{element:v}})},O4m=function(D,v,h,a){D=v-D;
h=a-h;return Math.sqrt(D*D+h*h)},KRm=function(D,v){D&&_.xd().resolve(_.fx).resolveCommand(D,{forceClickLogging:!0,
form:{element:v}})},TJK=function(){return _.xd().resolve(_.Kh).dismissedIndices},RMK=function(D,v){var h,a,Q,G,x,f,C,U,L;
return _.M(function(Z){if(Z.nextAddress==1){h=_.xd().resolve(_.Y2m);G=(a=h)==null?void 0:(Q=a.reelWatchEndpointMap)==null?void 0:Q.reelWatchSequence;f=(x=D.innertubeTransportService)!=null?x:_.xd().resolve(_.RX);if(!G)return Z.jumpTo(2);C=G();return(U=C.JSC$13119_getRequest(v,{}))?Z.yield(_.My(f,U.innerTubeRequest,U.input,v.clickTrackingParams,U.config),4):Z.jumpTo(2)}return Z.nextAddress!=2?(L=Z.yieldResult,Z.return(L)):Z.return(void 0)})},i4R=function(D){return _.oG({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:D}})},WRH=function(D){return _.oG({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:D}})},ttQ=function(D){return _.oG({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:D}})};var kh=function(D,v){if(D instanceof kh)this.array_=D.array_;else{var h;if(h=_.O8(D))a:{for(var a=h=0;a<D.length;a++){if(!_.O8(D[a])||h>0&&D[a].length!=h){h=!1;break a}for(var Q=0;Q<D[a].length;Q++)if(typeof D[a][Q]!=="number"){h=!1;break a}h==0&&(h=D[a].length)}h=h!=0}if(h)this.array_=_.n7(D);else if(D instanceof _.lU)this.array_=rbf(D.height,D.width);else if(typeof D==="number"&&typeof v==="number"&&D>0&&v>0)this.array_=rbf(D,v);else throw Error("Jo");}this.size_=new _.lU(this.array_[0].length,
this.array_.length)},u9R=function(D,v,h){for(var a=0;a<D.getSize().height;a++)for(var Q=0;Q<D.getSize().width;Q++)v.call(h,D.array_[a][Q],a,Q,D)},DIf=function(D,v){var h=new kh(D.getSize());
u9R(D,function(a,Q,G){h.array_[Q][G]=v.call(void 0,a,Q,G,D)});
return h},rbf=function(D,v){for(var h=[],a=0;a<D;a++){h[a]=[];
for(var Q=0;Q<v;Q++)h[a][Q]=0}return h};
kh.prototype.add=function(D){if(!_.hMf(this.size_,D.getSize()))throw Error("Ko");return DIf(this,function(v,h,a){return v+D.array_[h][a]})};
kh.prototype.equals=function(D,v){if(this.size_.width!=D.size_.width||this.size_.height!=D.size_.height)return!1;v=v||0;for(var h=0;h<this.size_.height;h++)for(var a=0;a<this.size_.width;a++)if(!_.vpw(this.array_[h][a],D.array_[h][a],v))return!1;return!0};
kh.prototype.getSize=function(){return this.size_};
var Sr=function(D,v,h){return v>=0&&v<D.size_.height&&h>=0&&h<D.size_.width?D.array_[v][h]:null};
kh.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var vCM=function(D,v,h,a){if(!(v>=0&&v<D.size_.height&&h>=0&&h<D.size_.width))throw Error("Lo`"+v+"`"+h+"`"+D.size_.height+"`"+D.size_.width);D.array_[v][h]=a};
kh.prototype.multiply=function(D){if(D instanceof kh){if(this.size_.width!=D.getSize().height)throw Error("Mo");return hZ0(this,D)}if(typeof D==="number")return abM(this,D);throw Error("No");};
var hZ0=function(D,v){var h=new kh(D.size_.height,v.getSize().width);u9R(h,function(a,Q,G){for(var x=a=0;x<this.size_.width;x++)a+=Sr(this,Q,x)*Sr(v,x,G);vCM(h,Q,G,a)},D);
return h},abM=function(D,v){return DIf(D,function(h){return h*v})};var $IB=new _.z0("inlineSurveyRenderer");var QUd=new _.z0("interstitialViewModel");var Gdd=new _.z0("reelNavigateCommand");var V$w=new _.z0("reelNonVideoContentDismissalCommand");var PSo=new _.z0("showReelsCommentsOverlayCommand");var xId=new _.z0("shortsSuggestedActionViewModel");var M$d=new _.z0("videoInteractionPopUpRenderer");var fbQ;var CSw;var oCo;var JZ=function(){var D=_.c.apply(this,arguments)||this;D.ctaVisualElement=null;D.currentCsn=null;return D};
_.J(JZ,_.c);_.V=JZ.prototype;_.V.onDataChanged=function(){this.maybeLogShows()};
_.V.computeButtonShape=function(){var D=this;if(this.data)return{buttonText:_.$V(this.data.text),state:"active",onTap:function(){D.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.V.maybeCreateCtaVe=function(){var D;if((D=this.data)!=null&&D.badgeInteractionLogging){var v;if(D=(v=this.data.badgeInteractionLogging)==null?void 0:v.trackingParams)this.ctaVisualElement=_.d4(D)}};
_.V.maybeLogClicks=function(){this.currentCsn=_.wd(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.hA(this.currentCsn,this.ctaVisualElement)};
_.V.maybeLogShows=function(){this.currentCsn=_.wd(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.DU(this.currentCsn,[this.ctaVisualElement])};
_.V.onTap=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var v;this.ytComponentBehavior.resolveCommand((v=this.data)==null?void 0:v.onClickCommand);this.maybeLogClicks()}};
JZ.prototype.onDataChanged=JZ.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],JZ.prototype,"ytComponentBehavior",void 0);_.e([_.Y({}),_.n("design:type",Object)],JZ.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JZ.prototype,"onDataChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],JZ);
_.w(JZ,"ytd-shopping-overlay-badge-renderer",function(){if(oCo!==void 0)return oCo;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return oCo=D},{mode:1});_.zh(_.LkU,"reel-sound-metadata-view-model",{props:{data:_.C_,overlayDensity:_.C_}});_.zh(_.UxK,"player-disclosure-view-model",{props:{data:_.gj,extractOverlay:_.gj}});_.zh(_.Oo4,"pivot-button-view-model",{props:{data:_.C_,className:_.C_}});_.zh(_.Kxt,"reel-action-bar-view-model",{props:{data:_.gj,buttonShapeOverrideables:_.gj}});_.zh(_.H(function(D){function v(){var f7,xL,kL,Z4,S2=(xL=_.k((f7=W())==null?void 0:f7.command,_.HF))==null?void 0:(kL=xL.item)==null?void 0:(Z4=kL.notificationTextRenderer)==null?void 0:Z4.successResponseText;if(S2)f7=_.MP(S2),_.zU(a.value,"yt-open-popup-action",[f7,a.value]);else if(K())npo(K(),S.value);else{var s8;npo((s8=W())==null?void 0:s8.command,S.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var h=D.data;var a=_.va("yt-player-overlay-video-interactions");D=_.P(_.Zq("0px",void 0,"O3ow6c"));var Q=D.next().value,G=D.next().value;D=_.P(_.Zq("0px",void 0,"V0TSYd"));var x=D.next().value,f=D.next().value;D=_.P(_.Zq(0,void 0,"ipRdDf"));var C=D.next().value,U=D.next().value;D=_.P(_.Zq(0,void 0,"ztYEKb"));var L=D.next().value,Z=D.next().value,E=function(){var f7;if(((f7=_.gp())==null?void 0:f7.getPlayerState())!==-1){a.value.style.display="inherit";var xL;(xL=_.gp())==null||xL.removeEventListener("onStateChange",
E)}I()},I=function(){var f7=document.querySelector("video");
if(f7){U(f7.getBoundingClientRect().width);Z(f7.getBoundingClientRect().height);var xL;G((f7==null?void 0:(xL=f7.style)==null?void 0:xL.left)||"0px");var kL;f((f7==null?void 0:(kL=f7.style)==null?void 0:kL.top)||"0px")}};
_.bW(function(){var f7,xL,kL;if(((f7=_.gp())==null?void 0:f7.getPlayerState())===-1&&Math.round(((kL=(xL=_.gp())==null?void 0:xL.getVideoAspectRatio())!=null?kL:0)*100)!==Math.round(C()/L()*100)){a.value.style.display="none";var Z4,S2;Z(C()/((S2=(Z4=_.gp())==null?void 0:Z4.getVideoAspectRatio())!=null?S2:1))}},"ikzYW");
_.dM(function(){var f7;(f7=_.gp())==null||f7.addEventListener("onStateChange",E);window.addEventListener("resize",I);I();var xL,kL,Z4;if((Z4=(xL=h())==null?void 0:(kL=xL.regions)==null?void 0:kL[0])==null||!Z4.transformationMatrix)throw Error("Ro");var S2;if((S2=h())==null?0:S2.trackingParams){var s8;_.c8().graftServerVe((s8=h().trackingParams)!=null?s8:"")}_.dq(function(){var Xf;(Xf=_.gp())==null||Xf.removeEventListener("onStateChange",E);window.removeEventListener("resize",I)})});
var S=_.va("svg"),B=_.P(_.Zq(!1,void 0,"Thzfnf"));D=B.next().value;var A=B.next().value,d=_.P(_.Zq(!1,void 0,"nsniPd"));B=d.next().value;var b=d.next().value,W=function(){var f7;return _.k((f7=h())==null?void 0:f7.popUp,M$d)},K=function(){var f7;
return(f7=h())==null?void 0:f7.command},O=function(){return _.k(K(),_.An)!==void 0};
d=_.Jd(function(){v();return!1});
var R={},vA={};return _.F("yt-player-overlay-video-interactions",{el:a},_.F("svg",{"on:mouseover":_.Jd(function(){O()&&A(!0);b(!0);return!1}),
"on:mouseout":_.Jd(function(){A(!1);b(!1);return!1}),
"on:keydown":_.Jd(function(f7){f7.key==="Enter"&&v();return!1}),
"on:focus":_.Jd(function(){O()&&A(!0);return!1}),
"on:blur":_.Jd(function(){O()&&A(!1);return!1}),
el:S,tabindex:0,"aria-label":function(){var f7;return(f7=h())==null?void 0:f7.a11yString},
id:"player-overlay-video-interaction-svg",class:_.S3("ytPlayerOverlayVideoInteractionsInteractionsSvg",(R.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=D,R),(vA.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=B,vA)),role:"button",style:function(){var f7,xL,kL,Z4=(kL=(f7=h())==null?void 0:(xL=f7.regions)==null?void 0:xL[0].transformationMatrix)!=null?kL:[];f7=C();xL=L();kL=[];for(var S2=0,s8=-1;S2<Z4.length;S2++)S2%3===0&&(s8++,kL[s8]=[]),kL[s8].push(Z4[S2]);Z4=new kh(kL);kL=new kh([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);kL=Z4.multiply(kL);Z4=new kh([[0,0],[0,0],[0,0],[0,0]]);for(S2=0;S2<kL.getSize().width;S2++){s8=Sr(kL,0,S2);var Xf=Sr(kL,1,S2);if(s8===null||Xf===null)throw Error("Qo`"+(S2+1).toString());vCM(Z4,S2,0,s8*f7);vCM(Z4,S2,1,Xf*xL)}f7=Sr(Z4,0,0);S2=Sr(Z4,1,0);xL=Sr(Z4,0,1);s8=Sr(Z4,1,1);if(f7===null||S2===null||xL===null||s8===null)throw Error("Oo");kL=eM0(f7,S2,xL,s8);Xf=Sr(Z4,3,0);Z4=Sr(Z4,3,1);if(Xf===null||Z4===null)throw Error("Po");Z4=eM0(f7,Xf,xL,Z4);s8=(Number((s8*-1).toFixed(2))-
Number((xL*-1).toFixed(2)))/(Number(S2.toFixed(2))-Number(f7.toFixed(2)));Xf=Math.atan(s8)*180/Math.PI;S2=s8===Number.POSITIVE_INFINITY?-90:s8===Number.NEGATIVE_INFINITY?90:Object.is(s8,-0)?180:s8===0?0:s8>0?Xf*-1:f7<S2?Xf*-1:Math.abs(Xf)+180;return"left:calc("+f7+"px + "+Q()+"); top:calc("+(xL+"px + "+x()+"); width:")+(kL+"px; height:")+(Z4+"px; transform:rotate(")+(S2+"deg);")},
"on:click":d}))},"Yl"),"yt-player-overlay-video-interactions",{props:{data:_.gj}});_.zh(_.gH3,"yt-reel-metapanel-view-model",{props:{data:_.gj,overlayDensity:_.gj,extractOverlay:_.gj}});var FmM=_.H(function(D){var v=D.children;var h=D.region;D=_.P(_.Zq(void 0,void 0,"MsSyte"));var a=D.next().value,Q=D.next().value;D=_.P(_.Zq("0px",void 0,"U9Yihd"));var G=D.next().value,x=D.next().value;D=_.P(_.Zq("0px",void 0,"UO1H6d"));var f=D.next().value,C=D.next().value;D=_.P(_.Zq(0,void 0,"sMVTKb"));var U=D.next().value,L=D.next().value;D=_.P(_.Zq(0,void 0,"kZZV8b"));var Z=D.next().value,E=D.next().value,I=function(){var W=a();if(W){var K;if(((K=_.gp())==null?void 0:K.getPlayerState())!==-1){W.style.display=
"inherit";var O;(O=_.gp())==null||O.removeEventListener("onStateChange",I)}B()}},S=function(){var W=document.querySelectorAll("video");
return Array.from(W).find(function(K){var O;return K==null?void 0:(O=K.style)==null?void 0:O.width})},B=function(){var W=S();
if(W){L(W.getBoundingClientRect().width);E(W.getBoundingClientRect().height);var K;x((W==null?void 0:(K=W.style)==null?void 0:K.left)||"0px");var O;C((W==null?void 0:(O=W.style)==null?void 0:O.top)||"0px")}};
_.bW(function(){var W=a();if(W){var K,O,R;if(((K=_.gp())==null?void 0:K.getPlayerState())===-1&&Math.round(((R=(O=_.gp())==null?void 0:O.getVideoAspectRatio())!=null?R:0)*100)!==Math.round(U()/Z()*100)){W.style.display="none";var vA,f7;E(U()/((f7=(vA=_.gp())==null?void 0:vA.getVideoAspectRatio())!=null?f7:1))}}},"jJLfwe");
var A=function(){B()},d;
_.dM(function(){B();var W;if(!(h==null?0:(W=h())==null?0:W.transformationMatrix))throw Error("Ro");var K;(K=_.gp())==null||K.addEventListener("onStateChange",I);if(window.ResizeObserver){if(W=S())d=new ResizeObserver(A),d.observe(W)}else window.addEventListener("resize",B);_.dq(function(){var O;(O=_.gp())==null||O.removeEventListener("onStateChange",I);d?d.disconnect():window.removeEventListener("resize",B)})});
var b=function(){var W,K,O=(K=h==null?void 0:(W=h())==null?void 0:W.transformationMatrix)!=null?K:[];W=U();K=Z();for(var R=[],vA=0,f7=-1;vA<O.length;vA++)vA%3===0&&(f7++,R[f7]=[]),R[f7].push(O[vA]);O=new kh(R);R=new kh([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);R=O.multiply(R);O=new kh([[0,0],[0,0],[0,0],[0,0]]);for(vA=0;vA<R.getSize().width;vA++){f7=Sr(R,0,vA);var xL=Sr(R,1,vA);if(f7===null||xL===null)throw Error("Qo`"+(vA+1).toString());vCM(O,vA,0,f7*W);vCM(O,vA,1,xL*K)}W=Sr(O,0,0);vA=Sr(O,1,0);K=Sr(O,0,
1);f7=Sr(O,1,1);if(W===null||vA===null||K===null||f7===null)throw Error("Oo");R=O4m(W,vA,K,f7);xL=Sr(O,3,0);O=Sr(O,3,1);if(xL===null||O===null)throw Error("Po");O=O4m(W,xL,K,O);f7=(Number((f7*-1).toFixed(2))-Number((K*-1).toFixed(2)))/(Number(vA.toFixed(2))-Number(W.toFixed(2)));xL=Math.atan(f7)*180/Math.PI;vA=f7===Number.POSITIVE_INFINITY?-90:f7===Number.NEGATIVE_INFINITY?90:Object.is(f7,-0)?180:f7===0?0:f7>0?xL*-1:W<vA?xL*-1:Math.abs(xL)+180;return"left:calc("+W+"px + "+G()+"); top:calc("+(K+"px + "+
f()+"); width:")+(R+"px; height:")+(O+"px; transform:rotate(")+(vA+"deg);")};
return _.F(ybQ,{root:"#sticker-layer"},function(){return _.F("yt-overlay-sticker",{el:_.ML(Q),style:b,class:"ytOverlayStickerHost"},v)})},"$l");var zZw=_.H(function(D){function v(){var I,S,B,A,d=(S=_.k((I=C())==null?void 0:I.command,_.HF))==null?void 0:(B=S.item)==null?void 0:(A=B.notificationTextRenderer)==null?void 0:A.successResponseText;if(d)I=_.MP(d),_.zU(a.value,"yt-open-popup-action",[I,a.value]);else if(U())KRm(U(),a.value);else{var b;KRm((b=C())==null?void 0:b.command,a.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var h=D.data;var a=_.va("svg"),Q=_.P(_.Zq(!1,void 0,"i4BL1"));D=Q.next().value;var G=Q.next().value,x=_.P(_.Zq(!1,void 0,"FzRJKd"));Q=x.next().value;var f=x.next().value,C=function(){var I;return _.k((I=h())==null?void 0:I.popUp,M$d)},U=function(){var I;
return(I=h())==null?void 0:I.command},L=function(){return _.k(U(),_.An)!==void 0};
x=_.Jd(function(){v();return!1});
var Z={},E={};return _.F("svg",{"on:mouseover":_.Jd(function(){L()&&G(!0);f(!0);return!1}),
"on:mouseout":_.Jd(function(){G(!1);f(!1);return!1}),
"on:keydown":_.Jd(function(I){I.key==="Enter"&&v();return!1}),
"on:focus":_.Jd(function(){L()&&G(!0);return!1}),
"on:blur":_.Jd(function(){L()&&G(!1);return!1}),
el:a,tabindex:0,"aria-label":function(){var I;return(I=h())==null?void 0:I.a11yString},
id:"player-overlay-video-interaction-svg",class:_.S3("ytPlayerOverlayInteractionInteractionsSvg",(Z.ytPlayerOverlayInteractionInteractionsSvgHover=D,Z),(E.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Q,E)),role:"button","on:click":x})},"bm");_.zh(_.H(function(D){var v=D.data;_.dM(function(){var h;if((h=v())==null?0:h.trackingParams){var a;_.c8().graftServerVe((a=v().trackingParams)!=null?a:"")}});
return _.F("yt-player-overlay-interaction",null,_.F(FmM,{region:function(){var h,a;return(h=v())==null?void 0:(a=h.regions)==null?void 0:a[0]}},_.F(zZw,Object.assign({},D))))},"am"),"yt-player-overlay-interaction",{props:{data:_.gj}});var pu=function(){var D=_.c.apply(this,arguments)||this;D.showScrubber=!1;D.isWatchWhileMode=!1;D.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");D.enableNewStickers=_.g("use_shorts_sticker_overlay_web");D.anchoredPanelActive=!1;D.enableLivingroomLayout=_.g("reels_enable_livingroom_layout");D.enablePlayerMetadataContainer=_.g("reels_web_enable_metadata_container");D.enableSqueezebackPanels=_.g("web_shorts_enable_squeezeback_panels");D.useAspectRatio=_.g("web_use_aspect_ratio");D.isSqueezebackActive=
!1;D.smallScreenSqueezeback=!1;D.isPlayerStarted=!1;D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;D.isOverlay=!1;D.isImmersive=!1;D.isImmersiveHorizontal=!1;D.isFullscreen=!1;D.onWindowResized=function(){var v;D.set("isImmersive",((v=window.getComputedStyle(D.hostElement))==null?void 0:v.getPropertyValue("--immersive-mode-on"))==="1");D.set("isImmersiveHorizontal",D.isImmersive&&D.enableLivingroomLayout&&!D.isWatchWhileMode)};
return D};
_.J(pu,_.c);_.V=pu.prototype;_.V.updateIsOverlay=function(D){this.isOverlay=D.detail.value};
_.V.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.V.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.V.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.V.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.V.onOverlayDensityChange=function(){var D=_.ZW(this.hostElement).querySelector("ytd-info-panel-container-renderer");D&&(D.set("extractOverlay",this.extractOverlay),D.set("roundedContainer",this.extractOverlay))};
_.V.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.V.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.V.ready=function(){(_.g("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"))&&(!_.g("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.FH("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.FH("reels_action_justified_content")||"flex-start")};
_.V.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.V.setFakeLoadingButtons=function(){_.g("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.p1("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.p1("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.p1("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.p1("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.p1("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()};
_.V.setEmptyOverlayMetadata=function(){_.g("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}))};
_.GT.Object.defineProperties(pu.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoPanel)}}});
pu.prototype.onOverlayDensityChange=pu.prototype.onOverlayDensityChange;pu.prototype.onIsActiveChanged=pu.prototype.onIsActiveChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],pu.prototype,"ytdReduxBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],pu.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pu.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],pu.prototype,"isActive",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],pu.prototype,"hidden",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],pu.prototype,"useShortsIcon",void 0);
_.e([_.Y({value:"left"}),_.n("design:type",String)],pu.prototype,"buttonTooltipPosition",void 0);_.e([_.Y({value:_.g("reels_enable_livingroom_layout")?"top":"left"}),_.n("design:type",String)],pu.prototype,"likeButtonTooltipPosition",void 0);_.e([_.Y({value:"none"}),_.n("design:type",String)],pu.prototype,"textTransform",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"showScrubber",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"isWatchWhileMode",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.infoPanel"),_.n("design:type",Object),_.n("design:paramtypes",[])],pu.prototype,"hasInfoPanel",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"enableAnchoredPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"enableNewStickers",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"anchoredPanelActive",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"enableLivingroomLayout",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],pu.prototype,"enablePlayerMetadataContainer",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"enableSqueezebackPanels",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"useAspectRatio",void 0);_.e([_.Y({selector:_.ci2,reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"isSqueezebackActive",void 0);_.e([_.Y({selector:d1o,reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"smallScreenSqueezeback",void 0);_.e([_.Y({selector:j4d}),_.n("design:type",Object)],pu.prototype,"isPlayerStarted",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"overlayDensity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"extractOverlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"extractActionBar",void 0);_.e([_.Y(),_.n("design:type",Object)],pu.prototype,"isOverlay",void 0);_.e([_.Y(),_.n("design:type",Object)],pu.prototype,"isImmersive",void 0);
_.e([_.Y(),_.n("design:type",Object)],pu.prototype,"isImmersiveHorizontal",void 0);_.e([_.Y({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.n("design:type",Boolean)],pu.prototype,"isShortsImmersive",void 0);_.e([_.Y({computed:"computeButtonOverride(extractActionBar)"}),_.n("design:type",Object)],pu.prototype,"buttonOverride",void 0);
_.e([_.Y({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.n("design:type",Object)],pu.prototype,"actionBarButtonOverride",void 0);_.e([_.Y({selector:_.CS,reflectToAttribute:!0}),_.n("design:type",Object)],pu.prototype,"isFullscreen",void 0);_.e([_.Ni("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pu.prototype,"onIsActiveChanged",null);
_.e([_.Ni("extractOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pu.prototype,"onOverlayDensityChange",null);_.e([_.m({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],pu);
_.w(pu,"ytd-reel-player-overlay-renderer",function(){if(CSw!==void 0)return CSw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!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]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return CSw=D},{mode:1});var UId;var l$=function(){var D=_.c.apply(this,arguments)||this;D.videoDuration=0;D.playedTime=0;D.isActive=!1;D.JSC$22360_playerEvents=new Map;return D};
_.J(l$,_.c);_.V=l$.prototype;_.V.created=function(){this.JSC$22360_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22360_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.V.attached=function(){this.getPlayerAndInitializeListeners()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22360_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.pZ(this,this.onPageChanged))};
_.V.getPlayerAndInitializeListeners=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return v=_.Mq(),v?h.yield(v.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.pZ(D,D.onPageChanged)),h.jumpTo(0));D.player=h.yieldResult;D.initializePlayerListeners();_.YI(h)})};
_.V.onPageChanged=function(D){var v=this;return _.M(function(h){if(h.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?h.return():h.yield(_.fj().getPlayerPromise(),2);v.player=h.yieldResult;v.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.pZ(v,v.onPageChanged));_.YI(h)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22360_playerEvents)};
_.V.onVideoDataChange=function(D){var v=this;return _.M(function(h){if(!v.player||D.type!=="newdata")return h.return();v.videoDuration=_.g("web_shorts_use_progress_state_for_gapless")?v.player.getProgressState(D.playertype).seekableEnd:v.player.getDuration(D.playertype);v.playedTime=0;_.YI(h)})};
_.V.onVideoProgress=function(D){var v=this,h,a;return _.M(function(Q){if(!v.player)return Q.return();h=v.player.getPresentingPlayerType();a=v.player.getPlayerState();v.videoDuration=_.g("web_shorts_use_progress_state_for_gapless")?v.player.getProgressState(h).seekableEnd:v.player.getDuration(h);v.playedTime=a===0?v.videoDuration:D;_.YI(Q)})};
_.V.getPercentPlayed=function(D,v){return D?_.sk(v/D,0,1):0};
_.GT.Object.defineProperties(l$.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var D="";return D=this.videoDuration&&this.playedTime?D+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):D+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],l$.prototype,"componentBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],l$.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],l$.prototype,"player",void 0);_.e([_.Y(),_.n("design:type",Object)],l$.prototype,"videoDuration",void 0);_.e([_.Y(),_.n("design:type",Object)],l$.prototype,"playedTime",void 0);_.e([_.Y(),_.n("design:type",Object)],l$.prototype,"isActive",void 0);
_.e([_.N("videoDuration","playedTime"),_.n("design:type",Number),_.n("design:paramtypes",[])],l$.prototype,"percentPlayed",null);_.e([_.N("videoDuration","playedTime"),_.n("design:type",Object),_.n("design:paramtypes",[])],l$.prototype,"percentPlayedStyle",null);_.e([_.N("videoDuration","isActive"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],l$.prototype,"hideProgressBar",null);
_.w(l$,"ytd-progress-bar-line",function(){if(UId===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);UId=D}D=UId;return D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var LmB;_.zh(_.OJC,"ytm-closed-captioning-button",{props:{captionIconType:_.gj,onClick:_.C_,ariaLabel:_.gj,ariaPressed:_.gj,isOverlay:_.C_,isModern:_.C_}});_.zh(_.zrX,"desktop-shorts-volume-controls",{props:{orientation:_.gj}});var NT=function(){var D=_.c.apply(this,arguments)||this;D.playerState=null;D.isMuted=!1;D.shortsModernControlsEnabled=_.g("web_shorts_modern_controls");D.volumeControlsOrientationState=_.g("web_shorts_modern_controls")?"vertical_down":"horizontal_right";D.isOverlay=!0;D.captionIconType=-1;D.ariaLabel="";D.overlayDensity=0;D.extractActionBar=!0;D.JSC$22363_playerEvents=new Map;D.onClosedCaptionsButtonClick=function(){D.player&&_.kK(D.player)&&(D.player.toggleSubtitles(),D.updateCaptionIconType())};
return D};
_.J(NT,_.c);_.V=NT.prototype;_.V.created=function(){this.JSC$22363_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22363_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22363_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.V.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.En(28662);this.playPauseButtonClientVE=_.En(36842);this.fullscreenButtonToggleOffClientVE=_.En(222256);this.fullscreenButtonToggleOnClientVE=_.En(222257);var D=_.wd(),v=_.yC();D&&v&&(_.g("combine_ve_grafts")?(_.de(_.c8(),this.muteButtonClientVE,v),_.de(_.c8(),this.playPauseButtonClientVE,v)):_.rK(D,v,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22363_playerEvents),this.player=null)};
_.V.updateCaptionIconType=function(){var D=-1,v=void 0,h=_.p1("CLOSED_CAPTIONS_DISABLED");this.player&&_.kK(this.player)&&(_.A$I(this.player)?(v=!0,h=_.p1("CLOSED_CAPTIONS_ON"),D=1):(v=!1,h=_.p1("CLOSED_CAPTIONS_OFF"),D=0));this.captionIconType=D;this.ariaPressedState=v;this.ariaLabel=h};
_.V.getPlayerAndInitializeListeners=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return v=_.Mq(),v?h.yield(v.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.pZ(D,D.onPageChanged)),h.jumpTo(0));D.player=h.yieldResult;D.initializePlayerListeners();_.YI(h)})};
_.V.onPageChanged=function(D){var v=this;return _.M(function(h){if(h.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?h.return():h.yield(_.fj().getPlayerPromise(),2);v.player=h.yieldResult;v.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.pZ(v,v.onPageChanged));_.YI(h)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22363_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.V.onPlayerStateChange=function(D){this.playerState=D};
_.V.onPlayerVolumeChange=function(D){this.isMuted=D.muted};
_.V.onPlayPauseButtonClick=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(_.fj().getPlayerPromise(),2);v=a.yieldResult;(h=_.wd())&&D.playPauseButtonClientVE&&_.hA(h,D.playPauseButtonClientVE);v.getPlayerState()!==1?v.playVideo():v.pauseVideo();_.YI(a)})};
_.V.computePlayPauseIcon=function(D){return D===2||D===-1||D===5?_.g("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.g("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.g("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.V.computeFullscreenLabel=function(D){return D?_.p1("FULLSCREEN_EXIT_LABEL"):_.p1("FULLSCREEN_ENTER_LABEL")};
_.V.computePlayPauseLabel=function(D){return D===1||D===3?_.p1("PLAYER_LABEL_PAUSE"):_.p1("PLAYER_LABEL_PLAY")};
_.V.onMuteButtonClick=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(_.fj().getPlayerPromise(),2);v=a.yieldResult;(h=_.wd())&&D.muteButtonClientVE&&_.hA(h,D.muteButtonClientVE);v.isMuted()?v.unMute(!0):v.mute(!0);_.YI(a)})};
_.V.computeMuteIcon=function(D){return D?"miniplayer:volume-off":"miniplayer:volume-up"};
_.V.computeMuteLabel=function(D){return D?_.p1("PLAYER_LABEL_UNMUTE"):_.p1("PLAYER_LABEL_MUTE")};
_.V.onFullscreenButtonClick=function(){var D=_.wd();D&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.hA(D,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.hA(D,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.EEs()};
_.GT.Object.defineProperties(NT.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var D=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){D.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-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?_.g("web_shorts_modern_controls")?"player_full_exit_alt":_.g("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.g("web_shorts_modern_controls")?"player_full_enter_alt":_.g("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],NT.prototype,"componentBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],NT.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],NT.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"player",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"playerState",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"isMuted",void 0);
_.e([_.Y({computed:"computePlayPauseIcon(playerState)"}),_.n("design:type",String)],NT.prototype,"playPauseIcon",void 0);_.e([_.Y({computed:"computeMuteIcon(isMuted)"}),_.n("design:type",String)],NT.prototype,"muteIcon",void 0);_.e([_.Y({selector:_.CS}),_.n("design:type",Boolean)],NT.prototype,"isFullscreen",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NT.prototype,"shortsModernControlsEnabled",void 0);
_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"volumeControlsOrientationState",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"isOverlay",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"captionIconType",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"ariaLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"ariaPressedState",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NT.prototype,"overlayDensity",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],NT.prototype,"extractActionBar",void 0);_.e([_.N("playerState"),_.n("design:type",Object),_.n("design:paramtypes",[])],NT.prototype,"playPauseButtonData",null);_.e([_.N("isFullscreen"),_.n("design:type",Object),_.n("design:paramtypes",[])],NT.prototype,"fullscreenButtonData",null);_.e([_.Y(),_.n("design:type",Object)],NT.prototype,"onClosedCaptionsButtonClick",void 0);
_.e([_.N("isFullscreen"),_.n("design:type",String),_.n("design:paramtypes",[])],NT.prototype,"fullscreenIcon",null);
_.w(NT,"ytd-shorts-player-controls",function(){if(LmB===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);LmB=D}D=LmB;return D},{mode:1});var Z33;_.zh(_.sod,"yt-interstitial-view-model",{props:{data:_.gj}});var ECH=_.H(function(D){var v=D.data;return _.F("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.F("h1",{class:"reelWatchBreakViewModelHostTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("h2",{class:"reelWatchBreakViewModelHostBody"},_.F(_.IY,{text:function(){return v().body},
isOverlay:!0})),_.F(_.c4,{data:function(){return v().buttons}},{buttonViewModel:function(h,a){return _.F("div",{class:function(){return a()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.F(_.s$,{data:h.data}))}}))},"cm");
ECH.idomCompat=!0;_.zh(ECH,"reel-watch-break-view-model",{props:{data:_.gj}});var Yh=function(){return _.c.apply(this,arguments)||this};
_.J(Yh,_.c);Yh.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}}};
_.GT.Object.defineProperties(Yh.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.k((D=this.data)==null?void 0:D.renderer,$IB)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.k((D=this.data)==null?void 0:D.renderer,QUd)}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Yh.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Yh.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.renderer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Yh.prototype,"isSurvey",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.renderer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Yh.prototype,"isInterstitialViewModel",null);_.e([_.m({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Yh);
_.w(Yh,"ytd-reel-non-video-content-renderer",function(){if(Z33!==void 0)return Z33;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return Z33=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var Ibz;_.zh(_.FtX,"desktop-shorts-player-controls",{});var B6=function(){var D=_.c.apply(this,arguments)||this;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.showPlayerControls=!1;D.showScrubber=!1;D.autoHideJobId=0;D.modern=_.g("web_button_rework");D.overlayType=_.FH("web_shorts_expanded_overlay_type");D.panelData=void 0;D.isWatchWhileMode=!1;D.hasError=!1;D.panelShowDelayMs=1;D.scrubberComponent={};D.isFullscreen=!1;D.shouldHideOverlay=!1;D.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");D.enablePersistentAnchoredPanel=_.g("desktop_shorts_v2_persistent_anchored_panel");
D.hideWatchWhilePanel=_.g("web_shorts_hide_watch_while_panel");D.useAspectRatio=_.g("web_use_aspect_ratio");D.isPersistentPanelActive=!1;D.anchoredPanelActive=!1;D.isShortsPipActive=!1;D.smallScreenSqueezeback=!1;D.enableFlexibleOverlay=_.g("web_enable_flexible_overlay");D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;D.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
D.onWindowResized=function(){_.aq(D,"calculateOverlayDensity",function(){D.calculateOverlayDensity()},100)};
return D};
_.J(B6,_.c);_.V=B6.prototype;_.V.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.V.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.V.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var D=_.xd().resolve(_.De);this.isWatchWhileMode&&_.HK.addJob(function(){D.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.V.handleShowReelsCommentsOverlayCommand=function(D){D=_.k(D,PSo);this.isActive&&(D==null?0:D.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.V.updateEngagementPanelVisibility=function(D,v){D&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:v?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:D}})};
_.V.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.V.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.xd().resolve(_.Kh).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.V.handleWatchWhilePanelScrimClick=function(){var D=_.xd().resolve(_.De);this.activeWatchWhilePanel&&(D.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.V.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.V.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.V.handlePlayerClick=function(D){var v=this,h,a;if((a=(h=window).matchMedia)!=null&&a.call(h,"(any-pointer: coarse)").matches||!D)this.showPlayerControls=!0,_.HK.cancelJob(this.autoHideJobId),this.autoHideJobId=_.c1(_.HK,function(){v.showPlayerControls=!1},4E3)};
_.V.isFirstReel=function(){return this.index===0};
_.V.handleMouseenter=function(){_.HK.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.V.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.V.handleScrubberEnter=function(){this.showScrubber=!0};
_.V.handleScrubberLeave=function(){this.showScrubber=!1};
_.V.maybeLogNonDefaultAspectRatio=function(){var D;(D=this.data)!=null&&D.thumbnail&&this.isActive&&.5625!==b4z(this.data.thumbnail)&&_.f8o("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.V.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var D=document.querySelector("#shorts-container");if(D){var v=!1,h,a=this.playerContainer.offsetWidth;D=D.offsetWidth/2-a/2;D>=368?(D=1,v=h=!0):D>=72?(D=0,h=!0):(D=2,h=!1);a>=600?D=1:window.innerWidth<=599&&(D=2,h=v=!1);this.isPersistentPanelActive&&(D=0,v=!1);this.extractActionBar=h;_.g("web_enable_flexible_overlay")&&(this.overlayDensity=D,this.extractOverlay=v);var Q;(Q=this.onOverlayDensityChanged)==
null||Q.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.V.onOverlayDensityChange=function(){var D;(D=this.onOverlayDensityChanged)==null||D.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(D=_.ZW(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))D.set("overlayDensity",this.overlayDensity),D.set("extractOverlay",this.extractOverlay),D.set("extractActionBar",this.extractActionBar);if(D=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))D.overlayDensity=this.overlayDensity,D.extractOverlay=
this.extractOverlay,D.extractActionBar=this.extractActionBar};
_.V.isVideoContent=function(D){_.xd().resolve(_.Kh);return!!_.k(D,_.AQ)};
_.V.isNonVideoContent=function(D){_.xd().resolve(_.Kh);return!!_.k(D,_.Qi)};
_.V.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.GT.Object.defineProperties(B6.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var D,v;return _.g("web_enable_format_first")||((D=this.data)==null?void 0:D.adsOverlay)&&_.g("web_enable_format_first_ads_only")||((v=this.data)==null?void 0:v.reelPlayerOverlayRenderer)&&_.g("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.g("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isActive||!this.isPlayerStarted||(D=this.data)!=null&&D.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.command)&&this.isVideoContent(this.data.command)){var v,h;if(((v=this.data)==null?0:v.adsOverlay)&&Object.keys((h=this.data)==null?void 0:h.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var a,Q;if(((a=this.data)==null?0:a.reelPlayerOverlayRenderer)&&Object.keys((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
B6.prototype.onOverlayDensityChange=B6.prototype.onOverlayDensityChange;B6.prototype.calculateOverlayDensity=B6.prototype.calculateOverlayDensity;B6.prototype.maybeLogNonDefaultAspectRatio=B6.prototype.maybeLogNonDefaultAspectRatio;B6.prototype.onEngagementPanelsChanged=B6.prototype.onEngagementPanelsChanged;B6.prototype.onScrubberDataChange=B6.prototype.onScrubberDataChange;B6.prototype.updateShouldHideOverlay=B6.prototype.updateShouldHideOverlay;
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],B6.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],B6.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],B6.prototype,"index",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],B6.prototype,"isActive",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],B6.prototype,"isHiddenInDom",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"isPlayerPaused",void 0);_.e([_.Y({selector:j4d}),_.n("design:type",Object)],B6.prototype,"isPlayerStarted",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"showPlayerControls",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"showScrubber",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"autoHideJobId",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"overlayType",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],B6.prototype,"ytdReduxBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],B6.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"watchWhileEngagementPanels",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"panelData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"isWatchWhileMode",void 0);_.e([_.Y(),_.n("design:type",String)],B6.prototype,"activeWatchWhilePanel",void 0);
_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"hasError",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"panelShowDelayMs",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"scrubberComponent",void 0);_.e([_.Y({selector:_.CS,reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"isFullscreen",void 0);_.e([_.Y(),_.n("design:type",Object)],B6.prototype,"shouldHideOverlay",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"enableAnchoredPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"enablePersistentAnchoredPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"hideWatchWhilePanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"useAspectRatio",void 0);
_.e([_.Y({selector:_.ci2,reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"isPersistentPanelActive",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"anchoredPanelActive",void 0);_.e([_.Y({selector:_.oi,reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"isShortsPipActive",void 0);_.e([_.Y({selector:d1o,reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"smallScreenSqueezeback",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],B6.prototype,"enableFormatFirst",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"enableFlexibleOverlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"overlayDensity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"extractOverlay",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],B6.prototype,"extractActionBar",void 0);_.e([_.Y(),_.n("design:type",Function)],B6.prototype,"onOverlayDensityChanged",void 0);_.e([_.Y(),_.N("isActive","hasError","isPlayerStarted"),_.n("design:type",Object),_.n("design:paramtypes",[])],B6.prototype,"shouldRenderPlayerElements",null);_.e([_.Y(),_.N("isActive","isWatchWhileMode"),_.n("design:type",Object),_.n("design:paramtypes",[])],B6.prototype,"watchWhileOrPersistentActive",null);
_.e([_.Ni("isActive","hasError","showingExpandedOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B6.prototype,"updateShouldHideOverlay",null);_.e([_.Y({reflectToAttribute:!0}),_.N("isActive","isPlayerStarted","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],B6.prototype,"shouldRenderScrubber",null);
_.e([_.Ni("shouldRenderScrubber"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B6.prototype,"onScrubberDataChange",null);_.e([_.N("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],B6.prototype,"overlayComponent",null);_.e([_.Ni("watchWhileEngagementPanels"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B6.prototype,"onEngagementPanelsChanged",null);
_.e([_.Br("#player-container"),_.n("design:type",HTMLElement)],B6.prototype,"playerContainer",void 0);_.e([_.Br("#cinematic-container"),_.n("design:type",HTMLElement)],B6.prototype,"cinematicContainer",void 0);_.e([_.Ni("isPersistentPanelActive","data.thumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B6.prototype,"maybeLogNonDefaultAspectRatio",null);
_.e([_.Ni("isPersistentPanelActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B6.prototype,"calculateOverlayDensity",null);_.e([_.Ni("overlayDensity","extractOverlay","extractActionBar"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B6.prototype,"onOverlayDensityChange",null);_.e([_.m({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],B6);
_.w(B6,"ytd-reel-video-renderer",function(){if(Ibz!==void 0)return Ibz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" extract-action-bar="[[extractActionBar]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Ibz=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var c6=function(){var D=_.c.apply(this,arguments)||this;D.isPreviousPageShorts=!1;D.index=0;D.delayedActiveIndex=0;D.playablePreviousIndex=null;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.intersectionObserverThreshold=.6;D.fitToVisibleBounds=!1;D.pageSubtype="shorts";D.enablePreviousContinuation=_.g("shorts_in_playlists_web");D.shortsPipEnabled=_.g("web_shorts_pip");D.isDark=document.documentElement.hasAttribute("dark");D.shortsViewTransitions=_.g("web_shorts_view_transitions");D.isFullscreen=!1;D.isShortsPipActive=
!1;D.buttonOverride={iconPosition:"icon-only",size:"XL"};D.anchoredPanelActive=!1;D.isActive=!1;D.smallScreenPersistentPanel=!1;D.isPersistentPanelActive=!1;D.smallScreenSqueezeBack=!1;D.enableScrollIntoViewCenter=_.g("web_scroll_into_view_center");D.formatFirst=_.g("web_enable_format_first")||_.g("web_enable_format_first_ads_only")||_.g("web_enable_format_first_organic_only");D.enableFlexibleOverlay=_.g("web_enable_flexible_overlay");D.extractOverlay=!1;D.useAspectRatio=_.g("web_use_aspect_ratio");
D.isShortsInitialized=!1;D.hidePreviousButtonImmediately=!1;D.showPreviousButtonImmediately=!1;D.endOfNextContinuation=!1;D.currentPlayerIndex=0;D.nextReelVe=_.En(56921);D.prevReelVe=_.En(56922);D.loopToggleOffVe=_.En(198013);D.loopToggleOnVe=_.En(198014);D.ambientModeToggleVe=_.En(227860);D.reelPlayerPausedStateRendererVe=_.En(141313);D.storedPlaybackSpeed=null;D.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};D.onOverlayDensityChanged=function(v,h,a,Q){v=D.getActiveReelVideo(v);D.extractOverlay=!!a;v==null||v.setAttribute("overlay-density",String(h));a===void 0||v!=null&&v.toggleAttribute("extract-overlay",a);Q===void 0||v!=null&&v.toggleAttribute("extract-action-bar",Q)};
return D};
_.J(c6,_.c);_.V=c6.prototype;_.V.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.V.deflateInactivePreviousSlides=function(){var D=_.oZ("web_shorts_deflate_inactive_slides_aggressive_distance");if(D>0&&this.shortsProcessedSequence&&this.activeIndex){D=this.activeIndex-D;for(var v=0;v<=D;v++){var h=void 0;((h=this.shortsProcessedSequence[v].reelPlayerOverlayRenderer)==null?0:h.metapanel)&&this.set("shortsProcessedSequence."+v+".reelPlayerOverlayRenderer",{});h=void 0;((h=this.shortsProcessedSequence[v].adsOverlay)==null?0:h.adSlotMetadata)&&this.set("shortsProcessedSequence."+
v+".adsOverlay",{})}}};
_.V.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.V.onResize=function(){var D=_.Gb(),v=D.dispatch,h=this.calculateIsSmallWidth();v.call(D,_.oG({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:h}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.V.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.V.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var D=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,v=D,h=0;D<250&&(v=D+this.shortsInnerContainer.clientWidth,h=24);_.SB(this.hostElement,{"--ytd-shorts-header-width":v+"px","--ytd-shorts-top-spacing":h+"px"})}};
_.V.isFirstShorts=function(D){return D?this.index===-D.length:this.index===0};
_.V.isActiveReel=function(D,v,h){h&&(v=this.calculatePrevIndex(v,h));return D===v};
_.V.onFullscreenChange=function(){if(_.g("web_fullscreen_shorts")){var D;(D=this.getActiveReelVideo(this.activeIndex))==null||D.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.xd().resolve(_.Ok).close(!0)}};
_.V.engagementPanelsChanged=function(){var D;this.watchWhileEngagementPanels=(D=this.data)==null?void 0:D.engagementPanels};
_.V.unregisterPanels=function(){var D=_.xd().resolve(_.De);if(this.watchWhileEngagementPanels)for(var v=_.P(this.watchWhileEngagementPanels),h=v.next();!h.done;h=v.next()){var a=h.value,Q=void 0,G=void 0;h=(Q=a.engagementPanelSectionListRenderer)==null?void 0:(G=Q.identifier)==null?void 0:G.tag;a=this.getPanelContentIdentifier(a.engagementPanelSectionListRenderer);D&&(h&&D.panelMap.delete(h),a&&_.g("web_shorts_panel_caching_bugfix")&&(Q=h=void 0,(Q=(h=D).unregisterPanelContent)==null||Q.call(h,a)))}};
_.V.isVideoContent=function(D){return this.isVideoContentCommand(D==null?void 0:D.command)};
_.V.getActiveReelVideo=function(D){return _.ZW(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+D+'"]')};
_.V.calculatePrevIndex=function(D,v){return v?D-((v==null?void 0:v.length)||0):-1};
_.V.onKeydown=function(D){var v=_.Pr(D)||[];if(!_.Z1K(v))if(D.code==="ArrowUp")D.preventDefault(),this.handlePrevButtonClick();else if(D.code==="ArrowDown")D.preventDefault(),this.handleNextButtonClick();else if(D.code==="KeyM")this.toggleMuteUnmuteVideo();else if(D.code==="KeyK"||D.code==="Space")this.togglePlayPauseVideo();else if((D.code==="KeyA"||D.code==="ArrowLeft")&&_.g("web_shorts_keyboard_enable_seek_shortcuts")){var h;(h=this.player)==null||h.seekBy(-5)}else if((D.code==="KeyD"||D.code===
"ArrowRight")&&_.g("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var a;(a=this.player)==null||a.seekBy(5)}};
_.V.onServiceRequestCompleted=function(D,v){D=v.data;D.continuationEndpoint&&D.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:D.entries,continuationEndpoint:D.continuationEndpoint}}),_.g("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=D)):D.prevContinuationEndpoint&&D.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:D.prevEntries,
prevContinuationEndpoint:D.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.V.handleEngagementPanelVisibilityChanged=function(D,v){var h=_.xd().resolve(_.De);if(D&&h){var a=this.getPanelIdentifier(D);if(v==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==a){h.hidePanel(this.activePanel);var Q;this.activePanel=((Q=D.identifier)==null?void 0:Q.tag)||D.panelIdentifier}else this.isPersistentPanelActive=!0,_.Gb().dispatch(i4R(!0)),this.anchoredPanelActive=!0,this.activePanel=a;else v==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
a&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Gb().dispatch(i4R(!1)))}};
_.V.handlePanelScrimClick=function(){var D=_.xd().resolve(_.De);this.activePanel&&(D.hidePanel(this.activePanel),_.Gb().dispatch(i4R(!1)))};
_.V.getShortsLoopSetting=function(){var D,v,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return _.g("kevlar_shorts_auto_advance")?G.yield(_.re.getInstance(),2):G.return(!0);case 2:return(D=G.yieldResult)?G.yield(D.get("sfvles"),3):G.return(!0);case 3:return h=(v=G.yieldResult)!=null?v:!1,G.yield(D.get("sfvle"),4);case 4:return Q=(a=G.yieldResult)!=null?a:!0,h?G.return(Q):G.return(!0)}})};
_.V.handleSignalActionToggleLoopShortsOff=function(){var D=this,v,h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:if(!D.player)return Q.return();D.player.setLoopVideo(!1);v=_.c8();_.se(v,D.loopToggleOffVe);return Q.yield(_.re.getInstance(),2);case 2:return(h=Q.yieldResult)?Q.yield(h.set("sfvle",!1),3):Q.return();case 3:return Q.yield(h.set("sfvles",!0),4);case 4:a=_.YE(),_.BU(0,203,!1),_.BU(0,204,!0),a.save(),_.YI(Q)}})};
_.V.handleSignalActionToggleLoopShortsOn=function(){var D=this,v,h,a;return _.M(function(Q){switch(Q.nextAddress){case 1:if(!D.player)return Q.return();D.player.setLoopVideo(!0);v=_.c8();_.se(v,D.loopToggleOnVe);return Q.yield(_.re.getInstance(),2);case 2:return(h=Q.yieldResult)?Q.yield(h.set("sfvle",!0),3):Q.return();case 3:return Q.yield(h.set("sfvles",!0),4);case 4:a=_.YE(),_.BU(0,203,!0),_.BU(0,204,!0),a.save(),_.YI(Q)}})};
_.V.handleSignalActionToggleCinematicShortsOn=function(){qFf(!0);var D;(D=this.JSC$22387_cinematicController)==null||_.lJo(D,!0);_.se(_.c8(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.V.handleSignalActionToggleCinematicShortsOff=function(){qFf(!1);var D;(D=this.JSC$22387_cinematicController)==null||_.lJo(D,!1);_.se(_.c8(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.V.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.V.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.V.unhideCurrentOverlay=function(){if(this.overlayContainer){var D=this.overlayContainer.querySelector("#experiment-overlay");D&&_.HK.addLowPriorityJob(function(){D.style.display="unset"},100)}};
_.V.getCurrentShort=function(){if(this.currentEndpoint){var D=this.currentEndpoint;if(this.isNonVideoContentCommand(D)){var v=_.k(D,_.Qi);return{reelNonVideoContentRenderer:_.k(v==null?void 0:v.renderer,_.Xib),command:D}}if(this.data){var h;v=(h=_.k(this.currentEndpoint,_.AQ))==null?void 0:h.thumbnail;var a;h=(a=this.data.overlay)==null?void 0:a.reelPlayerOverlayRenderer;_.xd().resolve(_.Kh);D=this.data;var Q,G;a=(Q=D.overlay)==null?void 0:(G=Q.shortsAdsRenderer)==null?void 0:G.adSlots;if(a!==void 0)a.length===
0?(_.u7("Shorts ads returned no ad slots."),D=void 0):(a.length>1&&_.u7("Shorts ads has more than one ad slots."),D=_.k(a[0],_.JJJ));else{var x,f;D=_.k((x=D.overlay)==null?void 0:(f=x.shortsAdsRenderer)==null?void 0:f.overlay,_.JJJ)}x=D;D=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.k(this.currentEndpoint,_.AQ),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:h,thumbnail:v,command:D,adsOverlay:x}}}};
_.V.created=function(){var D=this;this.scrollToVideoThrottle=new _.tn(function(v){var h;(h=D.getActiveReelVideo(v))==null||h.scrollIntoView({behavior:"smooth",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.tn(function(v){var h;(h=D.getActiveReelVideo(v))==null||h.scrollIntoView({behavior:"auto",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.V.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.V.attached=function(){var D=this;_.xd().resolve(_.Kh).registerRootElement(this);this.pageScrollElement=_.ZW(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.pZ(this,this.processResetAction));_.g("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var v=D.getActiveReelVideo(D.activeIndex);D.maybeCreateIntersectionObserver();v==null||v.scrollIntoView({behavior:"instant",
block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"});D.shortsContainer.style.overflowY="scroll"}))};
_.V.updateReelWatchSequenceResponse=function(){var D=this,v;_.g("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((v=_.k(this.currentEndpoint,_.AQ))==null?0:v.sequenceParams)&&!this.reelWatchSequenceResponse&&(v=_.xd().resolve(_.Kh))&&RMK(v,this.currentEndpoint).then(function(h){h&&(D.reelWatchSequenceResponse=h,_.HK.addLowPriorityJob(function(){D.observeShorts()}))})};
_.V.calculateSqueezebackPanelSize=function(){var D=this,v=window.innerWidth-456-(window.innerHeight-106)*.5625;_.HK.addLowPriorityJob(function(){v<360?_.Gb().dispatch(WRH(!0)):(D.hostElement.style.setProperty("--anchored-panel-width",Math.min(v,480)+"px"),_.Gb().dispatch(WRH(!1)))})};
_.V.detached=function(){var D=_.xd().resolve(_.Kh);D.rootElement=void 0;var v;(v=D.unsubscribeFromStore)==null||v.call(D);D.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.pZ(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.V.onResizeFinished=function(D,v){var h=this,a=new ResizeObserver(function(){h.shortsContainer.style.overflowY="hidden";_.HK.addLowPriorityJob(function(){v()},100)});
a.observe(D);return a};
_.V.resetDocumentScrollTop=function(){var D,v;if((D=document)==null?0:(v=D.scrollingElement)==null?0:v.scrollTop)document.scrollingElement.scrollTop=0};
_.V.loadPage_=function(D){var v=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),D){var h;!_.g("web_enable_delay_shorts_sequence_call")&&((h=_.k(this.currentEndpoint,_.AQ))==null?0:h.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=D;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){v.isPlayerStarted&&(v.handleOnPlaybackCommand(),v.afterPlayerStarted=function(){})};
this.registerPanel(D)}};
_.V.afterPlayerStarted=function(){};
_.V.handleOnPlaybackCommand=function(){if(_.g("web_shorts_comment_stickers")&&this.isPlayerStarted){var D,v=(D=_.k(this.currentEndpoint,_.AQ))==null?void 0:D.onPlaybackCommand;v&&this.ytComponentBehavior.resolveCommand(v)}};
_.V.maybeCreateIntersectionObserver=function(){var D=this,v=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==v){this.intersectionObserverThreshold=v;var h={rootMargin:"0px",threshold:v},a;(a=this.intersectionObserver)==null||a.disconnect();this.intersectionObserver=new IntersectionObserver(function(Q){Q=_.P(Q);for(var G=Q.next();!G.done;G=Q.next())if(G=G.value,G.intersectionRatio>v){G=Number(G.target.id);if(isNaN(G))break;if(G===D.index)break;
_.d97();D.loadVideo(G);_.O9("r_vtc")}},h);
this.observeShorts()}};
_.V.observeShorts=function(){var D=[].concat(_.j_(_.ZW(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));D=_.P(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var h=void 0;(h=this.intersectionObserver)==null||h.observe(v)}};
_.V.initCsi=function(){_.A5S("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var D={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},v,h;if((v=this.playerData)==null?0:(h=v.cacheMetadata)==null?0:h.isCacheHit)D.isCacheHit=!0;var a;if(v=(a=_.k(this.currentEndpoint,_.AQ))==null?void 0:
a.prefetchTaskId)D.prefetchInfo={taskId:v};_.HU(D)};
_.V.isAd=function(){var D,v;return!!((D=_.k(this.currentEndpoint,_.AQ))==null?0:(v=D.adClientParams)==null?0:v.isAd)};
_.V.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.V.getPlayerContainer=function(){var D;return(D=_.ZW(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:D.playerContainer};
_.V.onPlayerStateChange=function(D){var v=this;this.isPlayerPaused=D===2;D!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?D===1&&this.index===0&&(this.isPlayerStarted||_.Gb().dispatch(ttQ(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Gb().dispatch(ttQ(!0)));this.player&&!this.player.getLoopVideo()&&_.HK.addLowPriorityJob(function(){v.getShortsLoopSetting().then(function(h){var a;(a=v.player)==null||a.setLoopVideo(h)})});
this.isPlayerPaused&&_.g("web_shorts_paused_state_logging")&&_.DU(_.wd(),[this.reelPlayerPausedStateRendererVe])};
_.V.isInBackground=function(){var D=window.document.visibilityState;return!(!D||D==="visible")};
_.V.isShortPlayable=function(){if(_.g("kevlar_playable_short_killswitch"))return!0;var D;return(D=this.playerData)!=null&&D.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.V.setNormalPlaybackSpeed=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(D.getPlayer().getPlayerPromise(),2);v=a.yieldResult;h=v.getPlaybackRate();h!==1&&(D.storedPlaybackSpeed=h,v.setPlaybackRate(1));_.YI(a)})};
_.V.restorePlaybackSpeed=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1)return D.storedPlaybackSpeed===null?h.jumpTo(0):h.yield(D.getPlayer().getPlayerPromise(),3);v=h.yieldResult;v.setPlaybackRate(D.storedPlaybackSpeed);D.storedPlaybackSpeed=null;_.YI(h)})};
_.V.playerDataChanged=function(){var D=this,v,h,a,Q,G,x,f,C,U;return _.M(function(L){if(L.nextAddress==1){v=D.getPlayer();(h=D.intersectionObserver)==null||h.disconnect();if(D.playerData){if(((a=D.playerData.videoDetails)==null?void 0:a.videoId)!==((Q=v.getPlayer())==null?void 0:Q.getVideoData().video_id)){G={};if(x=_.k(D.currentEndpoint,_.AQ))G.watch_endpoint=x,x.endTimeSeconds&&(G.end=x.endTimeSeconds);v.loadVideoWithPlayerResponse(D.playerData,G)}}else return L.return();return D.player?L.jumpTo(2):
L.yield(v.getPlayerPromise(),3)}L.nextAddress!=2&&(D.player=L.yieldResult,D.JSC$22387_playerStateChangeListener=D.onPlayerStateChange.bind(D),D.player.addEventListener("onStateChange",D.JSC$22387_playerStateChangeListener),_.g("kevlar_client_enable_shorts_player_bootstrap")&&_.Ri(),D.scrollToVideoThrottle.fire(D.index),D.movePlayerToVideo(D.index),_.HK.addLowPriorityJob(function(){D.getShortsLoopSetting().then(function(Z){var E;(E=D.player)==null||E.setLoopVideo(Z)})}),_.pjm.resolve(D.player),D.player.syncVolume(),
D.getPlayer().focusOnPlayer());
_.HK.addLowPriorityJob(function(){D.observeShorts()},100);
f=D.player.getPlayerState(D.player.getPresentingPlayerType());f!==1||D.isPlayerStarted||_.Gb().dispatch(ttQ(!0));D.updateBackNavContainerWidth();C=_.k(D.currentEndpoint,_.AQ);((U=C)==null?0:U.startTimeSeconds)&&D.player.seekTo(C.startTimeSeconds);if(D.JSC$22387_cinematicController||D.cinematicsInitializeJobId)return L.return();D.cinematicsInitializeJobId=_.HK.addLowPriorityJob(function(){D.initCinematicController();D.cinematicsInitializeJobId=void 0});
_.YI(L)})};
_.V.onShortUndoDismiss=function(){var D=this,v=TJK().pop();v!==void 0&&(_.$R(this,function(){D.showCardWithIndex(v)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.V.onShortsDismiss=function(D){if(D=D.detail.reelDismissalActionRenderer)(D=_.k(D.onDismissalCompletionRenderer,_.aJQ))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:D}}}),this.scrollAndDismissCard()};
_.V.processReelNonVideoContentDismissalCommand=function(D){var v=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);D=_.k(D,V$w);this.activeDimissalTimeout=setTimeout(function(){v.scrollAndDismissCard()},Number(D==null?void 0:D.delayMs))};
_.V.scrollAndDismissCard=function(){var D=this,v=this.index;TJK().push(v);_.$R(this,function(){var h=D.getPlayableNextIndex();h!==null&&(h=D.getActiveReelVideo(h),D.hideCardWithIndex(v),h==null||h.scrollIntoView({behavior:"smooth",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"}))})};
_.V.hideCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!0};
_.V.showCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!1};
_.V.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.V.activeChanged=function(D){_.Gb().dispatch(_.oG({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:D}}));if(D)document.addEventListener("keydown",_.pZ(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var v;(v=this.player)==null||v.sendAbandonmentPing()}var h;(h=this.player)==null||h.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.pZ(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.V.graftClientVisualElements=function(){if(this.data){var D=_.c8();_.gu4(D,_.E9({response:this.reelWatchSequenceResponse}));_.de(D,this.nextReelVe);_.de(D,this.prevReelVe);_.g("kevlar_shorts_auto_advance")&&(_.de(D,this.loopToggleOffVe),_.de(D,this.loopToggleOnVe));_.de(D,this.ambientModeToggleVe);_.DU(_.wd(),[this.nextReelVe,this.prevReelVe]);_.g("web_shorts_paused_state_logging")&&_.de(D,this.reelPlayerPausedStateRendererVe)}};
_.V.graftNvcRenderer=function(){var D,v,h,a,Q=this.index<0?(D=this.shortsProcessedPrevSequence)==null?void 0:(v=D[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:v.command:(h=this.shortsProcessedSequence)==null?void 0:(a=h[this.index])==null?void 0:a.command;if(Q&&this.isNonVideoContentCommand(Q)){D=_.k(Q,_.Qi);var G,x;(D=(G=_.k(D==null?void 0:D.renderer,_.Xib))==null?void 0:(x=G.loggingDirectives)==null?void 0:x.trackingParams)&&_.c8().graftServerVe(D)}};
_.V.setActiveIndex=function(){_.xd().resolve(_.Kh).setActiveIndex(this.index)};
_.V.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.V.lazyUpdateMiniplayerData=function(){var D=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.HK.addLowPriorityJob(function(){D.updateMiniplayerData();D.updateMiniplayerDataJobId=void 0}))};
_.V.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.HK.cancelJob(this.updateMiniplayerDataJobId)};
_.V.updateMiniplayerData=function(){var D,v,h,a=_.xd().resolve(_.Ok),Q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((D=this.prevButtonData)==null||!D.isDisabled),nextButtonDisabled:!((v=this.nextButtonData)==null||!v.isDisabled),playabilityStatus:(h=this.playerData)==null?void 0:h.playabilityStatus};_.F3(a,Q)};
_.V.resetPlayerLocation=function(){var D=this.getPlayer();this.initialPlayerContainer&&D.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.V.movePlayerToVideo=function(D,v){var h=this;v=v===void 0?!0:v;var a=this.getActiveReelVideo(D),Q=this.getPlayer();if(a){this.overlayContainer?a.appendChild(this.overlayContainer):(this.overlayContainer=_.ZW(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,a.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var G;(G=this.player)==null||G.setSize(NaN,NaN);this.isActive||_.c1(_.HK,function(){h.isActive=
!0});
Q.style.visibility="visible";_.g("reels_web_disable_rtr_tick")||_.g("reels_web_use_pbs_first_shorts")&&D===0||_.ea("r_tr");this.currentPlayerIndex=D;a.appendChild(this.errorScreenContainer);var x;(x=this.JSC$22387_cinematicController)==null||_.YFR(x)}else v?_.HK.addLowPriorityJob(function(){h.movePlayerToVideo(h.index,!1)}):Math.random()<=_.oZ("web_shorts_error_logging_threshold")&&_.H1(new _.XH("Trying to movePlayerToVideo with undefined container.",{firstAttempt:v,
index:D}))};
_.V.enableFormatFirst=function(D){return _.g("web_enable_format_first")||D.adsOverlay&&_.g("web_enable_format_first_ads_only")||D.reelPlayerOverlayRenderer&&_.g("web_enable_format_first_organic_only")};
_.V.getAspectRatio=function(D){if(this.enableFormatFirst(D))return(D==null?0:D.thumbnail)&&b4z(D.thumbnail)?"--ytd-shorts-player-ratio: "+b4z(D.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.V.getBackgroundImage=function(D){if(D!=null&&D.thumbnail)return(D=_.L_(D.thumbnail.thumbnails))?'background-image:url("'+D+'");':"background-color:black;"};
_.V.onPersistentPanelActiveChanged=function(){var D=this.getCurrentShort();if(D&&this.enableFormatFirst(D)&&(D==null?0:D.thumbnail)&&b4z(D.thumbnail)!==.5625){var v;(v=this.player)==null||v.setSize(NaN,NaN)}};
_.V.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.V.moveCinematicsToVideo=function(){var D=_.ZW(this.hostElement).querySelector("ytd-reel-video-renderer");(D==null?0:D.cinematicContainer)&&D.cinematicContainer!==this.shortsCinematicContainer.parentElement&&D.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.V.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.V.updatePrevButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(D){var v;this.prevButtonData=D=Object.assign({},D,{accessibility:{label:_.p1("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:D.isDisabled||this.index===-(((v=this.shortsProcessedPrevSequence)==null?void 0:v.length)||0),tooltip:this.isUpArrowHidden?"":_.p1("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=D=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.V.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.V.updateNextButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(D){var v;this.nextButtonData=D=Object.assign({},D,{accessibility:{label:_.p1("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:D.isDisabled||this.index===((v=this.shortsProcessedSequence)==null?void 0:v.length),tooltip:_.p1("NEXT_VIDEO_LABEL")||""})}};
_.V.getPlayablePreviousIndex=function(){for(var D,v=this.index-1;v>=-(((D=this.prevShortsSequence)==null?void 0:D.length)||0);v--)if(!TJK().includes(v))return v;return null};
_.V.getIndexInSequence=function(D,v){return D.findIndex(function(h){var a;return((a=_.k(h.command,_.AQ))==null?void 0:a.videoId)===v})};
_.V.handlePrevButtonClick=function(D){var v=this,h,a;return _.M(function(Q){h=v.getPlayablePreviousIndex();if(h===null)return Q.return();v.gestureType=((a=D)==null?void 0:a.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";h===0&&(v.hidePreviousButtonImmediately=!0);if(v.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){v.transitionToVideoThrottle.fire(h)}),Q.return();
v.scrollToVideoThrottle.fire(h);_.YI(Q)})};
_.V.getPlayableNextIndex=function(){for(var D,v=this.index+1;v<(((D=this.shortsProcessedSequence)==null?void 0:D.length)||0);v++)if(!TJK().includes(v))return v;return null};
_.V.handleNextButtonClick=function(D,v){var h=this,a,Q;return _.M(function(G){a=h.getPlayableNextIndex();if(a===null)return G.return();a===1&&(h.showPreviousButtonImmediately=!0);h.gestureType=((Q=D)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";v&&(h.gestureType=v);if(h.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){h.transitionToVideoThrottle.fire(a)}),G.return();
h.scrollToVideoThrottle.fire(a);_.YI(G)})};
_.V.handleReelNavigateCommand=function(D,v,h){(D=_.k(D,Gdd))&&v&&D.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(h)};
_.V.loadVideo=function(D,v){v=v===void 0?!1:v;if(D!==this.currentPlayerIndex){_.Gb().dispatch(ttQ(!1));if(this.isAd()&&!v){var h;(h=this.player)==null||h.notifyShortsAdSwipeEvent()}if((v=this.JSC$22387_cinematicController)!=null){var a;(a=v.currentCinematicEffect)==null||a.pause()}if((a=this.JSC$22387_cinematicController)!=null){var Q;(Q=a.currentCinematicEffect)==null||Q.clear()}a=D>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(a));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var G,x,f,C;Q=D<0?(G=this.shortsProcessedPrevSequence)==null?void 0:(x=G[this.shortsProcessedPrevSequence.length+D])==null?void 0:x.command:(f=this.shortsProcessedSequence)==null?void 0:(C=f[D])==null?void 0:C.command;this.index=D;this.gestureType||(this.gestureType=a?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Q&&this.isVideoContentCommand(Q)&&(this.ytComponentBehavior.resolveCommand(Q,{form:{createScreenConfig:{clickedVisualElement:a?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Q&&this.isNonVideoContentCommand(Q)){this.currentEndpoint=Q;this.data=void 0;G=_.c8();x=_.k(Q,_.Qi);var U,L;(x=(U=_.k(x==null?void 0:x.renderer,_.Xib))==null?void 0:(L=U.screenLoggingData)==null?void 0:L.screenVeType)&&_.bl(G,x);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(U=this.getActiveReelVideo(D))&&U.appendChild(this.overlayContainer)}var Z,E;if(((Z=this.reelWatchSequenceResponse)==null?0:Z.continuationEndpoint)&&((E=this.reelWatchSequenceResponse)==null?0:E.entries)&&D===this.reelWatchSequenceResponse.entries.length-1){var I,S;Z={contentPlaybackContext:_.dT({},(S=_.k((I=this.currentEndpoint)==null?void 0:I.commandMetadata,_.Sa))==null?void 0:S.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:Z})}var B,A,d;((B=this.reelWatchSequenceResponse)==null?0:B.prevContinuationEndpoint)&&D===-(((A=this.reelWatchSequenceResponse)==null?void 0:(d=A.prevEntries)==null?void 0:d.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.V.setMiniplayerPreview=function(D){D=(D===void 0?0:D)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var v,h,a=_.xd().resolve(_.Ok),Q={shortsData:void 0,shortsPreviewThumbnail:D?(v=this.shortsProcessedSequence)==null?void 0:(h=v[D])==null?void 0:h.thumbnail:void 0};_.F3(a,Q)};
_.V.updateTitle=function(D){var v,h;D=(D==null?0:D.adSlots)?"":(h=D==null?void 0:(v=D.videoDetails)==null?void 0:v.title)!=null?h:"";_.F1(this.hostElement,"yt-update-title",D)};
_.V.registerPanel=function(D){var v=_.xd().resolve(_.De);if(v){D=_.P(D.engagementPanels||[]);for(var h=D.next();!h.done;h=D.next()){h=h.value;var a=this.getPanelContentIdentifier(h.engagementPanelSectionListRenderer),Q=void 0,G=void 0;(G=(Q=v).registerPanelContent)==null||G.call(Q,a,h)}}};
_.V.getPanelIdentifier=function(D){var v;return(D==null?void 0:(v=D.identifier)==null?void 0:v.tag)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:D.targetId)};
_.V.getPanelContentIdentifier=function(D){var v;return(D==null?void 0:D.targetId)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:(v=D.identifier)==null?void 0:v.tag)};
_.V.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;_.Gb().dispatch(ttQ(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Gb().dispatch(i4R(!1));var D=_.xd().resolve(_.Kh);D.dismissedIndices=[];D.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.xd().resolve(_.Ok).close(!0)};
_.V.processAppendReelWatchSequenceContinuationEntriesAction=function(D){var v=this,h;(h=this.intersectionObserver)==null||h.disconnect();D=D.appendReelWatchSequenceContinuationEntriesAction;if(D==null?0:D.entries){var a;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.j_(((a=this.reelWatchSequenceResponse)==null?void 0:a.entries)||[]),_.j_(D.entries)),continuationEndpoint:D.continuationEndpoint})}else if(D==null?0:D.prevEntries){var Q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.j_(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.prevEntries)||[]),_.j_(D.prevEntries)),prevContinuationEndpoint:D.prevContinuationEndpoint});_.HK.addLowPriorityJob(function(){v.movePlayerToVideo(v.index);var G;(G=v.getActiveReelVideo(v.index))==null||G.scrollIntoView({block:"nearest",inline:v.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.HK.addLowPriorityJob(function(){v.observeShorts()},100)};
_.V.processWatchSequence=function(D){var v=this;return D.map(function(h){h=h.command;if(v.isVideoContentCommand(h)){var a=_.k(h,_.AQ);return{reelPlayerOverlayRenderer:_.k(a==null?void 0:a.overlay,_.Ap$),thumbnail:a.thumbnail,command:h}}return v.isNonVideoContentCommand(h)?(a=_.k(h,_.Qi),{reelNonVideoContentRenderer:_.k(a==null?void 0:a.renderer,_.Xib),command:h}):{command:h}})};
_.V.calculateIntersectionObserverThreshold=function(){var D=_.ZW(this.hostElement).querySelector("ytd-reel-video-renderer"),v=1;(D==null?0:D.offsetHeight)&&(D==null?0:D.offsetWidth)&&(v=Math.min(D.offsetHeight,this.shortsContainer.offsetHeight)/D.offsetHeight*(Math.min(D.offsetWidth,this.shortsContainer.offsetWidth)/D.offsetWidth));return Math.round(v*.6*10)/10};
_.V.isVideoContentCommand=function(D){_.xd().resolve(_.Kh);return!!_.k(D,_.AQ)};
_.V.isNonVideoContentCommand=function(D){_.xd().resolve(_.Kh);return!!_.k(D,_.Qi)};
_.V.initCinematicController=function(){var D=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22387_cinematicController=new _.g_(this.shortsCinematicContainer,this.player);var v,h=_.k((v=this.data)==null?void 0:v.background,_.vz);_.NJ3(this.JSC$22387_cinematicController,h);_.lJo(this.JSC$22387_cinematicController,AbM(h));_.pmY(this.JSC$22387_cinematicController);_.HK.addLowPriorityJob(function(){D.moveCinematicsToVideo()})}};
_.V.handleMiniplayerNavigateShorts=function(D){D==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():D==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.V.handleSignalActionToggleShortsPictureInPicture=function(){if(_.xd().resolve(_.Ok).pictureInPictureSupported()){var D=_.xd().resolve(_.Kh);if(_.g("web_shorts_pip")){var v=_.xd().resolve(_.Ok);D.isShortsPipActive()?v.deactivate():v.isMiniplayerActive()||(_.eh().shortsPipActivation=!0,_.plI(v))}}else(D=this.player)==null||D.togglePictureInPicture()};
_.GT.Object.defineProperties(c6.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.prevEntries)return this.processWatchSequence([].concat(_.j_(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.g("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.j_(this.prevShortsSequence));var D=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!D)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var v=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.j_(this.prevShortsSequence.slice(0,v)),[D],_.j_(this.prevShortsSequence.slice(v+1)))}v=this.index+this.shortsProcessedPrevSequence.length;D.thumbnail=this.shortsProcessedPrevSequence[v].thumbnail;return[].concat(_.j_(this.shortsProcessedPrevSequence.slice(0,v)),[D],_.j_(this.shortsProcessedPrevSequence.slice(v+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var D=this;if(_.g("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var v;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((v=this.shortsProcessedSequence)==null?void 0:v.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var h,a=_.k((h=this.firstShortsData)==null?void 0:h.command,_.AQ);if(a==null||!a.videoId)return this.shortsProcessedSequence;
a=this.getIndexInSequence(this.shortsSequence,a.videoId);if(a!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=a,_.HK.addLowPriorityJob(function(){D.transitionToVideoThrottle.fire(D.index);D.movePlayerToVideo(D.index)}));
return[].concat(_.j_(this.shortsSequence))}return[this.firstShortsData].concat(_.j_(this.shortsSequence))}}else if(this.data||this.shortsSequence){h=this.getCurrentShort();if(!h||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[h];if(h==null||!h.reelNonVideoContentRenderer)if(v=this.getIndexInSequence(this.shortsSequence,_.k(this.currentEndpoint,_.AQ).videoId),this.index===0&&v!==-1)return this.currentPlayerIndex=this.index=v,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.j_(this.shortsSequence.slice(0,this.index)),[h],_.j_(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){h.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var Q,G,x;v=((Q=_.k((a=this.shortsProcessedSequence[0])==null?void 0:a.command,_.AQ))==null?void 0:Q.videoId)===((x=_.k((G=this.shortsSequence[0])==null?void 0:G.command,_.AQ))==null?void 0:x.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.j_(this.shortsProcessedSequence.slice(0,
this.index)),[h],_.j_(this.shortsSequence.slice(v)))}return[h].concat(_.j_(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var D=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;D&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(D)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var D,v;return this.index===((D=this.reelWatchSequenceResponse)==null?void 0:(v=D.entries)==null?void 0:v.length)}var h;return!((h=this.reelWatchSequenceResponse)==null?0:h.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var D;(D=this.delayedActiveIndexUpdateDebouncer)==null||D.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return this.isShortPlayable()||((v=_.k((D=this.data)==null?void 0:D.watchStatus,_.wip))==null?void 0:(h=v.style)==null?void 0:h.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var D=this,v=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),h;if((this.data||v)&&(((h=this.data)==null?0:h.engagementPanels)||this.isAd()||v)){v=!1;this.activePanel="shorts-comments-panel";var a;h=_.P(((a=this.data)==null?void 0:a.engagementPanels)||[]);for(a=h.next();!a.done;a=h.next())if(this.getPanelIdentifier(a.value.engagementPanelSectionListRenderer)===this.activePanel){v=!0;break}if(this.isPersistentPanelActive){var Q=
_.xd().resolve(_.De);_.c1(_.HK,function(){Q.showPanel({identifier:D.activePanel,target:null})},100)}var G;
a=[].concat(_.j_(Object.values(((G=this.data)==null?void 0:G.engagementPanels)||{})));if(_.g("enable_preview_panel_for_shorts_search_suggested_action")){var x,f,C,U,L;((U=_.k((x=this.data)==null?void 0:(f=x.overlay)==null?void 0:(C=f.reelPlayerOverlayRenderer)==null?void 0:C.metapanel,_.cp4))==null?void 0:(L=U.metadataItems)==null?void 0:L.find(function(Z){var E,I;return((E=_.k(Z,xId))==null?void 0:(I=E.icon)==null?void 0:I.iconType)==="SEARCH"}))!==void 0&&a.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}G=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);x=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return G===void 0&&x===void 0||(G==null?0:G.isDisabled)||(x==null?void 0:x.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!v?(v=a==null?void 0:a.findIndex(function(Z){var E,
I;return((E=Z.engagementPanelSectionListRenderer)==null?void 0:(I=E.identifier)==null?void 0:I.tag)==="shorts-comments-panel"}),v===-1||v===void 0||a!=null&&a.splice(v,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.p1("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.p1("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:_.p1("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.p1("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(_.j_(Object.values(a||
{})))):a}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.shortsProcessedSequence)==null?void 0:D[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var D=this,v,h,a;if((v=this.playerData)==null?0:(h=v.playabilityStatus)==null?0:(a=h.errorScreen)==null?0:a.playerInterstitialRenderer)return _.HK.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.playerData.playabilityStatus.errorScreen;
var Q,G;return((Q=this.data)==null?void 0:Q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((G=this.data)==null?0:G.watchStatus)&&_.k(this.data.watchStatus,_.f$J)?(_.HK.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.GT.Object.defineProperties(c6,{template:{configurable:!0,enumerable:!0,get:function(){if(fbQ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[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');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);fbQ=D}D=fbQ;return D}}});
c6.prototype.onNextButtonDataChange=c6.prototype.onNextButtonDataChange;c6.prototype.onPrevButtonDataChange=c6.prototype.onPrevButtonDataChange;c6.prototype.onPersistentPanelActiveChanged=c6.prototype.onPersistentPanelActiveChanged;c6.prototype.lazyUpdateMiniplayerData=c6.prototype.lazyUpdateMiniplayerData;c6.prototype.onShortsPipActiveChanged=c6.prototype.onShortsPipActiveChanged;c6.prototype.setActiveIndex=c6.prototype.setActiveIndex;c6.prototype.graftNvcRenderer=c6.prototype.graftNvcRenderer;
c6.prototype.graftClientVisualElements=c6.prototype.graftClientVisualElements;c6.prototype.onActiveChanged=c6.prototype.onActiveChanged;c6.prototype.onShortsDismiss=c6.prototype.onShortsDismiss;c6.prototype.onShortUndoDismiss=c6.prototype.onShortUndoDismiss;c6.prototype.playerDataChanged=c6.prototype.playerDataChanged;c6.prototype.afterPlayerStarted=c6.prototype.afterPlayerStarted;c6.prototype.updateReelWatchSequenceResponse=c6.prototype.updateReelWatchSequenceResponse;
c6.prototype.unhideCurrentOverlay=c6.prototype.unhideCurrentOverlay;c6.prototype.onServiceRequestCompleted=c6.prototype.onServiceRequestCompleted;c6.prototype.engagementPanelsChanged=c6.prototype.engagementPanelsChanged;c6.prototype.onFullscreenChange=c6.prototype.onFullscreenChange;c6.prototype.onResize=c6.prototype.onResize;c6.prototype.setFirstShortsData=c6.prototype.setFirstShortsData;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],c6.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.$T.YtPageBehavior),_.n("design:type",Object)],c6.prototype,"ytPageBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],c6.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],c6.prototype,"ironResizableBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],c6.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],c6.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],c6.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"playerData",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"reelWatchSequenceResponse",void 0);
_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"cachedReelWatchSequenceResponse",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"cachedSequenceParams",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"cachedSequenceProvider",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"currentEndpoint",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"nextButtonData",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"prevButtonData",void 0);
_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"isPreviousPageShorts",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"index",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"delayedActiveIndex",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"playablePreviousIndex",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"player",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"isPlayerPaused",void 0);
_.e([_.Y({selector:j4d}),_.n("design:type",Object)],c6.prototype,"isPlayerStarted",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"intersectionObserver",void 0);_.e([_.Y(),_.n("design:type",Number)],c6.prototype,"cinematicsInitializeJobId",void 0);_.e([_.Y(),_.n("design:type",Number)],c6.prototype,"updateMiniplayerDataJobId",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"fitToVisibleBounds",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"pageSubtype",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],c6.prototype,"enablePreviousContinuation",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"shortsPipEnabled",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"isDark",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"shortsViewTransitions",void 0);
_.e([_.Y({selector:_.CS,reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"isFullscreen",void 0);_.e([_.Y({selector:_.oi,reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"isShortsPipActive",void 0);_.e([_.Br("#shorts-inner-container"),_.n("design:type",HTMLElement)],c6.prototype,"shortsInnerContainer",void 0);_.e([_.Br("#back-nav-button ytd-button-renderer"),_.n("design:type",_.Y$)],c6.prototype,"backNavButton",void 0);
_.e([_.Br("#shorts-container"),_.n("design:type",HTMLElement)],c6.prototype,"shortsContainer",void 0);_.e([_.Hn("error-screen"),_.n("design:type",HTMLElement)],c6.prototype,"errorScreenContainer",void 0);_.e([_.Hn("player"),_.n("design:type",Object)],c6.prototype,"playerElement",void 0);_.e([_.Hn("shorts-cinematic-container"),_.n("design:type",HTMLElement)],c6.prototype,"shortsCinematicContainer",void 0);
_.e([_.Hn("initial-player-container"),_.n("design:type",HTMLElement)],c6.prototype,"initialPlayerContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"buttonOverride",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"anchoredPanelActive",void 0);_.e([_.Y(),_.n("design:type",String)],c6.prototype,"activePanel",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"isActive",void 0);
_.e([_.Y({selector:d1o,reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"smallScreenPersistentPanel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"isPersistentPanelActive",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"smallScreenSqueezeBack",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"enableScrollIntoViewCenter",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"formatFirst",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"enableFlexibleOverlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"extractOverlay",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],c6.prototype,"useAspectRatio",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"panelContainer",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"overlayContainer",void 0);
_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"isShortsInitialized",void 0);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"firstShortsData",void 0);_.e([_.N("reelWatchSequenceResponse"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"prevShortsSequence",null);_.e([_.N("data","prevShortsSequence"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"shortsProcessedPrevSequence",null);
_.e([_.N("reelWatchSequenceResponse"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"shortsSequence",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"setFirstShortsData",null);_.e([_.N("data","shortsSequence","firstShortsData"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"shortsProcessedSequence",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],c6.prototype,"isUpArrowHidden",null);_.e([_.Y({reflectToAttribute:!0}),_.N("reelWatchSequenceResponse","index","endOfNextContinuation"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],c6.prototype,"isDownArrowHidden",null);
_.e([_.Y(),_.N("index"),_.n("design:type",Number),_.n("design:paramtypes",[])],c6.prototype,"activeIndex",null);_.e([_.N("isShortPlayable","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],c6.prototype,"shouldRenderOfflineContent",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onResize",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"anchoredEngagementPanels",null);
_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"watchWhileEngagementPanels",void 0);_.e([_.Ni("isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onFullscreenChange",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"engagementPanelsChanged",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],c6.prototype,"onServiceRequestCompleted",null);_.e([_.N("data","shortsSequence","index"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"activeReel",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"unhideCurrentOverlay",null);
_.e([_.Ni("currentEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"updateReelWatchSequenceResponse",null);_.e([_.Ni("isPlayerStarted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"afterPlayerStarted",null);_.e([_.N("playerData","reelWatchSequenceResponse","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],c6.prototype,"errorScreen",null);
_.e([_.N("errorScreen"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],c6.prototype,"hasError",null);_.e([_.Ni("playerData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],c6.prototype,"playerDataChanged",null);_.e([_.lc("yt-dismissible-item-undo-feedback"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onShortUndoDismiss",null);
_.e([_.lc("yt-disable-lockup-interaction"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],c6.prototype,"onShortsDismiss",null);_.e([_.qi("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onActiveChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"graftClientVisualElements",null);
_.e([_.Ni("currentPlayerIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"graftNvcRenderer",null);_.e([_.Ni("index"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"setActiveIndex",null);_.e([_.Ni("isShortsPipActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onShortsPipActiveChanged",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"lazyUpdateMiniplayerData",null);_.e([_.Y(),_.n("design:type",Object)],c6.prototype,"onOverlayDensityChanged",void 0);_.e([_.Ni("isPersistentPanelActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onPersistentPanelActiveChanged",null);
_.e([_.Ni("index","data","isUpArrowHidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onPrevButtonDataChange",null);_.e([_.Ni("index","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c6.prototype,"onNextButtonDataChange",null);_.e([_.m({is:"ytd-shorts"})],c6);_.jk.registerService(_.lu4,c6);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("JzFVk");
var l4w;var NcB;var v6=function(){return _.c.apply(this,arguments)||this};
_.J(v6,_.c);v6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
v6.prototype.computeBlueBottomLink=function(D){return D};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],v6.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon_(data.bottomIcon)"}),_.n("design:type",String)],v6.prototype,"bottomIcon",void 0);
_.e([_.Y({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.n("design:type",Boolean)],v6.prototype,"enableBlueBottomLink",void 0);_.e([_.m({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],v6);
_.w(v6,"ytd-web-answer-renderer",function(){if(NcB!==void 0)return NcB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return NcB=D},{mode:_.E_("kevlar_poly_si_batch_j035")?1:2});var Y8o;var hZ=function(){var D=_.c.apply(this,arguments)||this;D.hasChipBar=!1;return D};
_.J(hZ,_.c);hZ.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}}};
hZ.prototype.computeHasChipBar=function(D){return!(D==null||!D.chipBar)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hZ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.n("design:type",Object)],hZ.prototype,"hasChipBar",void 0);_.e([_.m({is:"ytd-search-header-renderer",disableElementRegistration:!0})],hZ);
_.w(hZ,"ytd-search-header-renderer",function(){if(Y8o!==void 0)return Y8o;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Y8o=D},{mode:1});var Bcf;var a2=function(){return _.c.apply(this,arguments)||this};
_.J(a2,_.c);a2.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],a2.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-page-continuation"})],a2);
_.w(a2,"ytd-page-continuation",function(){if(Bcf!==void 0)return Bcf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Bcf=D},{mode:1});var ccd;var XAB;var Acd;var q8m=function(){return _.c.apply(this,arguments)||this};
_.J(q8m,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],q8m.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],q8m.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],q8m);
_.w(q8m,"ytd-watch-card-one-vs-one-event",function(){if(Acd!==void 0)return Acd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Acd=D},{mode:1});var b7f=function(){return _.c.apply(this,arguments)||this};
_.J(b7f,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],b7f.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],b7f.prototype,"data",void 0);_.e([_.m({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],b7f);
_.w(b7f,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(XAB!==void 0)return XAB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return XAB=D},{mode:1});var drB;var jo3=function(){return _.c.apply(this,arguments)||this};
_.J(jo3,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jo3.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jo3.prototype,"data",void 0);_.e([_.m({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],jo3);
_.w(jo3,"ytd-banner-and-box-hero-image-renderer",function(){if(drB!==void 0)return drB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return drB=D},{mode:1});var soK;var $h=function(){var D=_.c.apply(this,arguments)||this;D.modern=_.g("web_modern_buttons");return D};
_.J($h,_.c);$h.prototype.computeIcon=function(){var D,v,h=(D=this.data)==null?void 0:(v=D.icon)==null?void 0:v.iconType;if(h)return _.SQ(h)};
$h.prototype.computeButtonShape=function(){var D;return{buttonText:_.$V((D=this.data)==null?void 0:D.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.GT.Object.defineProperties($h.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"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$h.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$h.prototype,"modern",void 0);_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.N("data.style"),_.n("design:type",Object),_.n("design:paramtypes",[])],$h.prototype,"buttonColor",null);
_.e([_.m({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],$h);
_.w($h,"ytd-call-to-action-button-renderer",function(){if(soK!==void 0)return soK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return soK=D},{mode:1});var mrw;var Qe=function(){return _.c.apply(this,arguments)||this};
_.J(Qe,_.c);Qe.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ZW(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.UA(this.data.leftThumbnail.thumbnails,216)+")")};
Qe.prototype.onLeftThumbnailChanged=Qe.prototype.onLeftThumbnailChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Qe.prototype,"data",void 0);_.e([_.Ni("data.leftThumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Qe.prototype,"onLeftThumbnailChanged",null);_.e([_.m({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Qe);
_.w(Qe,"ytd-collage-hero-image-renderer",function(){if(mrw!==void 0)return mrw;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return mrw=D},{mode:1});var H7w;var GV=function(){return _.c.apply(this,arguments)||this};
_.J(GV,_.c);GV.prototype.computeStyle=function(D){return D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GV.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],GV.prototype,"componentStyle",void 0);_.e([_.m({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],GV);
_.w(GV,"ytd-single-hero-image-renderer",function(){if(H7w!==void 0)return H7w;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return H7w=D},{mode:1});var yco;var Ve=function(){return _.c.apply(this,arguments)||this};
_.J(Ve,_.c);_.V=Ve.prototype;
_.V.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:_.g("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.V.computeSubtitle=function(D){if(this.data){var v;if(this.data.upcomingEventData){D=_.$V(D.subtitle);var h=Number(this.data.upcomingEventData.startTime);isNaN(h)||(v=_.aX(_.dp(D,h)))}else v=D.subtitle;return v}};
_.V.onHeroTap=function(D){D.preventDefault();var v=this.data&&this.data.navigationEndpoint;!v||!_.Gf(_.Pr(D),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Gf(_.Pr(D),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.g("kevlar_watchcard_hero_video_renderer_killswitch")?_.F1(this.hostElement,"yt-navigate",{navigationEndpoint:v}):this.ytComponentBehavior.resolveCommand(v))};
_.V.computeHeroTabIndex=function(D){return D&&D.simpleText?-1:0};
_.V.computeHeroRole=function(D){return D&&D.simpleText?"":"link"};
_.V.computeIsReminderButtonPresent=function(D){return!(!D||!D.reminderButton)};
_.V.computeHideBottomItems=function(D){return!(this.computeIsReminderButtonPresent(D)||D.subtitle)};
_.V.dataChanged=function(){var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),v;((v=_.k(D==null?void 0:D.commandMetadata,_.Kr))==null?0:v.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D)};
Ve.prototype.dataChanged=Ve.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ve.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ve.prototype,"data",void 0);
_.e([_.Y({computed:"computeSubtitle(data)"}),_.n("design:type",String)],Ve.prototype,"subtitle",void 0);_.e([_.Y({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Ve.prototype,"isReminderButtonPresent",void 0);_.e([_.Y({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Ve.prototype,"hideBottomItems",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ve.prototype,"dataChanged",null);_.e([_.m({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Ve);
_.w(Ve,"ytd-watch-card-hero-video-renderer",function(){if(yco!==void 0)return yco;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return yco=D},{mode:1});var wAf;var P6=function(){return _.c.apply(this,arguments)||this};
_.J(P6,_.c);_.V=P6.prototype;_.V.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"}}}};
_.V.computeTitleBadges=function(D){return D?[D]:[]};
_.V.computeHeaderStyle=function(D){return D?D.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.V.computeAvatarAriaLabel=function(D){if(D){var v,h,a,Q;return(Q=(v=D.avatar)==null?void 0:(h=v.accessibility)==null?void 0:(a=h.accessibilityData)==null?void 0:a.label)!=null?Q:_.$V(D==null?void 0:D.title)}};
_.V.computeAvatarHeight=function(D){return D==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.V.computeBadgeRowClass=function(D){return(D==null?0:D[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],P6.prototype,"data",void 0);_.e([_.Y({computed:"computeTitleBadges(data.titleBadge)"}),_.n("design:type",Array)],P6.prototype,"titleBadges",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.n("design:type",String)],P6.prototype,"headerStyle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.n("design:type",String)],P6.prototype,"badgeRowClass",void 0);_.e([_.m({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],P6);
_.w(P6,"ytd-watch-card-rich-header-renderer",function(){if(wAf!==void 0)return wAf;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return wAf=D},{mode:1});var eiz;var nL3;var xh=function(){return _.c.apply(this,arguments)||this};
_.J(xh,_.c);xh.prototype.onMetadataTap=function(D){var v=this.data&&this.data.navigationEndpoint;v&&!_.Gf(_.Pr(D),this.hostElement,["A".toString()])&&_.F1(this.hostElement,"yt-navigate",{endpoint:v})};
_.GT.Object.defineProperties(xh.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D;if(this.data.upcomingEventData){var v=_.$V(this.data.subtitle),h=Number(this.data.upcomingEventData.startTime);isNaN(h)||(D=_.aX(_.dp(v,h)))}else D=this.data.subtitle;return D}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xh.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data.style"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],xh.prototype,"isCondensed",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],xh.prototype,"subtitle",null);
_.e([_.m({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],xh);
_.w(xh,"ytd-watch-card-compact-video-renderer",function(){if(nL3!==void 0)return nL3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nL3=D},{mode:1});var O7f;var KIf=function(){return _.c.apply(this,arguments)||this};
_.J(KIf,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KIf.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KIf.prototype,"data",void 0);_.e([_.m({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],KIf);
_.w(KIf,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(O7f!==void 0)return O7f;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return O7f=D},{mode:1});var MT=function(){return _.c.apply(this,arguments)||this};
_.J(MT,_.c);MT.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}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],MT.prototype,"ytRendererStamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],MT.prototype,"data",void 0);_.e([_.m({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],MT);
_.w(MT,"ytd-vertical-watch-card-list-renderer",function(){if(eiz!==void 0)return eiz;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return eiz=D},{mode:1});var Tc3;var fu=function(){var D=_.c.apply(this,arguments)||this;D.ariaExpanded="false";return D};
_.J(fu,_.c);_.V=fu.prototype;_.V.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.V.dataChanged=function(){var D;this.currentSeasonIndex=((D=this.data)==null?void 0:D.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.V.computeEpisodesInfo=function(D,v,h){if(D!==void 0&&v.length===D.length)return D[h]};
_.V.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.V.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.V.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.V.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.V.getUppercaseSimpleString=function(D){return this.ytRendererBehavior.getSimpleString(D).toUpperCase()};
_.V.updateCurrentSeasonIndexFromBinding=function(D){this.currentSeasonIndex=D.detail.value};
fu.prototype.onIronOverlayClosed=fu.prototype.onIronOverlayClosed;fu.prototype.currentSeasonIndexChanged=fu.prototype.currentSeasonIndexChanged;fu.prototype.dataChanged=fu.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fu.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",String)],fu.prototype,"label",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],fu.prototype,"currentSeasonIndex",void 0);_.e([_.Y({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.n("design:type",Object)],fu.prototype,"episodesInfo",void 0);_.e([_.Y({value:"false"}),_.n("design:type",Object)],fu.prototype,"ariaExpanded",void 0);_.e([_.Br("#lists"),_.n("design:type",Object)],fu.prototype,"lists",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fu.prototype,"dataChanged",null);_.e([_.qi("currentSeasonIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fu.prototype,"currentSeasonIndexChanged",null);_.e([_.lc("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],fu.prototype,"onIronOverlayClosed",null);
_.e([_.m({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],fu);
_.w(fu,"ytd-watch-card-section-dropdown-renderer",function(){if(Tc3!==void 0)return Tc3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Tc3=D},{mode:1});var RiR;var Cu=function(){var D=_.c.apply(this,arguments)||this;D.isSearch=!1;return D};
_.J(Cu,_.c);Cu.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}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Cu.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Cu.prototype,"isSearch",void 0);_.e([_.m({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Cu);
_.w(Cu,"ytd-watch-card-section-sequence-renderer",function(){if(RiR!==void 0)return RiR;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return RiR=D},{mode:1});var i7m=_.H(function(D){return _.F("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.F(_.c4,{data:function(){return D.data().ctaButton}},{buttonViewModel:_.s$}),_.F(_.IY,{text:function(){return D.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Vl");
i7m.idomCompat=!0;_.zh(i7m,"ytd-button-banner-view-model",{props:{data:_.gj}});var o2=function(){var D=_.c.apply(this,arguments)||this;D.isSearch=!1;return D};
_.J(o2,_.c);
o2.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"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],o2.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],o2.prototype,"rounded",void 0);_.e([_.Y(),_.n("design:type",Object)],o2.prototype,"isSearch",void 0);
_.e([_.m({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],o2);
_.w(o2,"ytd-universal-watch-card-renderer",function(){if(ccd!==void 0)return ccd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ccd=D},{mode:1});var WIB;_.zh(_.H(function(D){var v=D.data;var h;D=!((h=_.xd().resolve(_.PV(_.$5)))==null||!h());h={};return _.F("overview-message-view-model",{class:_.S3("ytwOverviewMessageViewModelHost",(h.ytwOverviewMessageViewModelDarkBackground=D,h.ytwOverviewMessageViewModelLightBackground=!D,h))},_.F(_.z,{cond:function(){return v().primaryImage},
then:function(a){return _.F(_.PX,{data:a,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.F(_.z,{cond:function(){return v().primaryText},
then:function(){return _.F("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.F(_.IY,{text:function(){return v().primaryText}}))}}),_.F(_.z,{cond:function(){return v().secondaryText},
then:function(){return _.F("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.F(_.IY,{text:function(){return v().secondaryText}}))}}))},"Wl"),"overview-message-view-model",{props:{data:_.gj}});_.zh(_.Q2b,"ytd-overview-answer-view-model",{props:{data:_.gj}});var FG=function(){return _.c.apply(this,arguments)||this};
_.J(FG,_.c);FG.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"}}}};
FG.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],FG.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FG.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],FG.prototype,"isSearch",void 0);
_.e([_.m({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],FG);
_.w(FG,"ytd-secondary-search-container-renderer",function(){if(WIB!==void 0)return WIB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return WIB=D},{mode:1});var t2Y;var zV=function(){var D=_.c.apply(this,arguments)||this;D.renderSecondarySearchContainer=!1;D.isSearch=!1;return D};
_.J(zV,_.c);_.V=zV.prototype;_.V.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"}}}};
_.V.created=function(){var D=this;this.boundStampSecondarySearchContainerIfFits=function(){D.stampSecondarySearchContainerIfFits()};
_.wM("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.V.computeIsSearchFrictionPage=function(D){var v,h,a,Q,G;D=D==null?void 0:(v=D.primaryContents)==null?void 0:(h=v.sectionListRenderer)==null?void 0:(a=h.contents)==null?void 0:(Q=a[0])==null?void 0:(G=Q.itemSectionRenderer)==null?void 0:G.contents;if(!D)return!1;v=_.P(D);for(h=v.next();!h.done;h=v.next())if(a=void 0,(a=h.value)==null?0:a.searchFrictionViewModel)return!0;return!1};
_.V.computeShowSecondaryColumn=function(D,v){return!!(v&&v.secondaryContents&&D)};
_.V.activeChanged=function(){var D=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.pZ(this,this.debounceStampSecondarySearchContainerIfFits)),_.hD(function(){D.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.pZ(this,this.debounceStampSecondarySearchContainerIfFits))};
_.V.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.V.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.V.debounceStampSecondarySearchContainerIfFits=function(){_.aq(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.V.onRetrieveLocation=function(D,v){v.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);D.stopPropagation()};
_.V.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
zV.prototype.dataChanged=zV.prototype.dataChanged;zV.prototype.onRetrieveLocation=zV.prototype.onRetrieveLocation;zV.prototype.persistentGuideChanged=zV.prototype.persistentGuideChanged;zV.prototype.activeChanged=zV.prototype.activeChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],zV.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],zV.prototype,"ironResizableBehavior",void 0);_.e([_.Y(),_.n("design:type",Boolean)],zV.prototype,"active",void 0);_.e([_.Y(),_.n("design:type",Object)],zV.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],zV.prototype,"useBiggerThumbs",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.FH("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],zV.prototype,"biggerThumbsStyle",void 0);_.e([_.Y(),_.n("design:type",Object)],zV.prototype,"renderSecondarySearchContainer",void 0);_.e([_.Y({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.n("design:type",Boolean)],zV.prototype,"showSecondaryColumn",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.n("design:type",Boolean)],zV.prototype,"isSearchFrictionPage",void 0);
_.e([_.Y(),_.n("design:type",Object)],zV.prototype,"isSearch",void 0);_.e([_.Ni("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zV.prototype,"activeChanged",null);_.e([_.Ni("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zV.prototype,"persistentGuideChanged",null);
_.e([_.lc("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],zV.prototype,"onRetrieveLocation",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zV.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],zV);
_.w(zV,"ytd-two-column-search-results-renderer",function(){if(t2Y!==void 0)return t2Y;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return t2Y=D},{mode:1});var UJ=function(){var D=_.c.apply(this,arguments)||this;D.hasSearchHeader=!1;D.hasSecondaryContent=!1;D.hasBiggerThumbs=_.g("enable_desktop_search_bigger_thumbs");D.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return D};
_.J(UJ,_.c);_.V=UJ.prototype;_.V.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:_.Ex(["aa","eocs"])}}};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.loadPage_=function(D){this.initCsi();D&&(this.data=D,_.wM("REFINEMENTS_TUPLE",["FromSearchResponse",D.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.hX(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.V.initCsi=function(){_.A5S("results",["ol","cpt"])};
_.V.updateTitle=function(){var D=_.i9(window.location.href,"q");D||(D=_.i9(window.location.href,"search_query"));_.F1(this.hostElement,"yt-update-title",D||"")};
_.V.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.V.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.g("web_srp_data_changed_terminate_imp_killswitch")||_.zU(this.hostElement,"yt-terminate-video-preview-action")};
_.V.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.V.computeHasSearchHeader=function(D){var v;D=D==null?void 0:(v=D.header)==null?void 0:v.searchHeaderRenderer;return!!D&&(!!D.searchFilterButton||!!D.chipBar)};
_.V.computeHasSecondaryContent=function(D){var v,h;return!!(D==null?0:(v=D.contents)==null?0:(h=v.twoColumnSearchResultsRenderer)==null?0:h.secondaryContents)};
_.GT.Object.defineProperties(UJ,{template:{configurable:!0,enumerable:!0,get:function(){if(l4w===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);l4w=D}D=l4w;return D}}});
UJ.prototype.onReloadContinuationFinish=UJ.prototype.onReloadContinuationFinish;UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.e([_.l(_.$T.YtPageBehavior),_.n("design:type",Object)],UJ.prototype,"ytPageBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],UJ.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],UJ.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],UJ.prototype,"data",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],UJ.prototype,"monitorScroll",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],UJ.prototype,"hasSearchHeader",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],UJ.prototype,"hasSecondaryContent",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],UJ.prototype,"hasBiggerThumbs",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UJ.prototype,"dataChanged",null);
_.e([_.lc("yt-reload-continuation-finish"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UJ.prototype,"onReloadContinuationFinish",null);_.e([_.m({is:"ytd-search"})],UJ);_.jk.registerService(_.pzf,UJ);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("h8y2qb");
var bR2=function(D){if(D=_.ikA(D)){var v;(v=D.sources)!=null&&v[0]?(v=_.t4i(D),v=v<1?"VERTICAL":v>1?"HORIZONTAL":"SQUARE"):v=void 0;return v}},Qn=function(D){_.mD.call(this,"upload");
this.opts.query=D},jJs=function(D,v){return _.F(dZb,{data:D,
onYtNavigate:v})},sJX=function(D,v){return _.gR(D.entities,"pageHeaderEntity",v)},HRr=function(D,v){return D.map(function(h){if(h.tabRenderer)return mZd(h.tabRenderer);
if(h.expandableTabRenderer&&v){var a=h.expandableTabRenderer;return{customTabRenderable:function(){return v(a)}}}return{}})},mZd=function(D){return{identifier:D.tabIdentifier,
aTagConfig:_.W8({innertubeCommand:D.endpoint,forceNewState:!0}),title:D.title,selected:D.selected,disabled:D.unselectable,icon:D.icon}},y53=function(D){return _.oG({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:D})},w5m=function(D){if(!_.Cj(document,"gtm-noscript")){var v=document.createElement("noscript");
v.id="gtm-noscript";v.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+D+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(v)}};_.fa(Qn,_.mD);Qn.prototype.JSC$10078_setLabel=function(D){Qn.superClass_.JSC$10078_setLabel.call(this,D);return this};
Qn.prototype.addUploadMetadata=function(D,v){Qn.superClass_.addUploadMetadata.call(this,D,v);return this};var eHX=function(D){if(D!=="youtubebanner"&&D!=="youtube-channel-banner")throw Error("Fo");Qn.call(this,D)};
_.J(eHX,Qn);eHX.prototype.JSC$10078_setLabel=function(D){Qn.prototype.JSC$10078_setLabel.call(this,D);return this};
eHX.prototype.addUploadMetadata=function(D,v){Qn.prototype.addUploadMetadata.call(this,D,v);return this};var n1s=[_.iN,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(D){_.qc(D).path[0]!==this&&(this.resetLayout(),D.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var D=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.p6(this._layoutDebouncer,_.mN,D);_.lr(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var D=this;requestAnimationFrame(function(){D.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(D){this.resizerShouldNotify(D)&&this._notifyDescendant(D)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var OR$=[_.xOb,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(D,v){var h=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[D];if(!h)throw new ReferenceError(this._getUndefinedMsg(D));D=this._boundEffect(h,v||{});D.setUp();return D},
_effectsChanged:function(D,v,h){this._tearDownEffects();D&&h&&(D.split(" ").forEach(function(a){var Q;a!==""&&((Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[a])?this._effects.push(this._boundEffect(Q,v[a])):console.warn(this._getUndefinedMsg(a)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(D,v){v=v||{};var h=parseFloat(v.startsAt||0),a=parseFloat(v.endsAt||1),Q=a-h,G=function(){};
a=h===0&&a===1?D.run:function(x,f){D.run.call(this,Math.max(0,(x-h)/Q),f)};
return{setUp:D.setUp?D.setUp.bind(this,v):G,run:D.run?a.bind(this):G,tearDown:D.tearDown?D.tearDown.bind(this):G}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(D){D.setUp()!==!1&&this._effectsRunFn.push(D.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(D){D.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(D,v){this._effectsRunFn&&this._effectsRunFn.forEach(function(h){h(D,v)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var D=this._clampedScrollTop;this._updateScrollState(D);this.threshold>0&&this._setThresholdTriggered(D>=this.threshold)}},
_getDOMRef:function(D){console.warn("_getDOMRef","`"+D+"` is undefined")},
_getUndefinedMsg:function(D){return"Scroll effect `"+D+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+D+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Go`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(D){var v={};D=parseFloat(D.scalar);v.background=this._getDOMRef("background");v.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");v.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");v.deltaBg=v.backgroundFrontLayer.offsetHeight-v.background.offsetHeight;v.deltaBg===0?(isNaN(D)&&(D=.8),v.deltaBg=(this._dHeight||0)*D):(isNaN(D)&&(D=
1),v.deltaBg*=D);this._fxParallaxBackground=v},
run:function(D){var v=this._fxParallaxBackground;this.transform("translate3d(0px, "+v.deltaBg*Math.min(1,D)+"px, 0px)",v.backgroundFrontLayer);v.backgroundRearLayer&&this.transform("translate3d(0px, "+v.deltaBg*Math.min(1,D)+"px, 0px)",v.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var K$K;var TBS;var RHr=function(){};
_.V=RHr.prototype;_.V._scrollTargetChanged=function(){};
_.V.scroll=function(){};
_.V._isValidScrollTarget=function(){};
_.V._toggleScrollListener=function(){};
_.V.toggleScrollListener=function(){};
_.V.createEffect=function(){};
_.V._effectsChanged=function(){};
_.V._layoutIfDirty=function(){};
_.V._boundEffect=function(){};
_.V._setUpEffect=function(){};
_.V._tearDownEffects=function(){};
_.V._runEffects=function(){};
_.V._scrollHandler=function(){};
_.V._scrollStateChanged=function(){};
_.V._getUndefinedMsg=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V._appResetLayoutHandler=function(){};
_.V.resetLayout=function(){};
_.V._notifyLayoutChanged=function(){};
_.V._notifyDescendantResize=function(){};
_.V._setThresholdTriggered=function(){};
RHr=_.yT({_template:function(){if(TBS!==void 0)return TBS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;K$K===void 0&&(K$K=document.createElement("template"));var a=K$K;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return TBS=D},
is:"tp-yt-app-header",behaviors:[OR$,n1s],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var D=_.qc(this.$.slot).getDistributedNodes(),v=0,h;h=D[v];v++)if(h.nodeType===Node.ELEMENT_NODE)if(h.hasAttribute("sticky")){this._stickyElRef=h;break}else this._stickyElRef||(this._stickyElRef=h);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var D=this._clampedScrollTop,v=this._height===0||D===0,h=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;v||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();v?this._updateScrollState(D,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=h}},
_updateScrollState:function(D,v){if(this._height!==0){var h=0,a=this._top;var Q=this._maxHeaderTop;var G=D-this._lastScrollTop,x=Math.abs(G),f=D>this._lastScrollTop,C=performance.now();this._mayMove()&&(h=this._clamp(this.reveals?a+G:D,0,Q));D>=this._dHeight&&(h=this.condenses&&!this.fixed?Math.max(this._dHeight,h):h,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&x<100){if(C-this._initTimestamp>300||this._wasScrollingDown!==f)this._initScrollTop=D,this._initTimestamp=C;D>=Q&&
(Math.abs(this._initScrollTop-D)>30||x>10?(f&&D>=Q?h=Q:!f&&D>=this._dHeight&&(h=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((h-a)/(G/(C-this._lastTimestamp)),0,300)+"ms"):h=this._top)}Q=this._dHeight===0?D>0?1:0:h/this._dHeight;v||(this._lastScrollTop=D,this._top=h,this._wasScrollingDown=f,this._lastTimestamp=C);if(v||Q!==this._progress||a!==h||D===0)this._progress=Q,this._runEffects(Q,h),this._transformHeader(h)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(D){this.translate3d(0,-D+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&D>=this._stickyElTop?Math.min(D,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(D,v,h){return Math.min(h,Math.max(v,D))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.qc(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(D){switch(D){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.qc(this).querySelector("[main-title]");case "condensedTitle":return _.qc(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var iRs;var W$K;_.yT({_template:function(){if(W$K!==void 0)return W$K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;iRs===void 0&&(iRs=document.createElement("template"));var a=iRs;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return W$K=D},
is:"tp-yt-app-header-layout",behaviors:[n1s],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.qc(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var D=this.header;if(this.isAttached&&D){this.$.wrapper.classList.remove("initializing");D.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)D.style.left=
"",D.style.right="";else{var v=this.getBoundingClientRect(),h=document.documentElement.clientWidth-v.right;D.style.left=v.left+"px";D.style.right=h+"px"}v=this.$.contentContainer.style;h=D.offsetHeight;D.fixed&&!D.condenses&&this.hasScrollingRegion?(v.marginTop=h+"px",v.paddingTop=""):(v.paddingTop=h+"px",v.marginTop="")}}});var tz3=new _.z0("alertCommand");var r5S=new _.z0("manageLabsStateCommand");var u4d=new _.z0("inlineFormRenderer");var D7I=new _.z0("playlistSidebarPrimaryInfoRenderer");var vAK=new _.z0("productDetailsThumbnailRenderer"),hEm=new _.z0("productDetailsVariantRenderer"),a9r=new _.z0("productDetailsVariantOptionRenderer"),$7I=new _.z0("productDetailsOffersContainerRenderer"),Qsm=new _.z0("productDetailsOfferRenderer");var G2b=new _.z0("shoppingFlaggingRenderer");var V0$=new _.z0("playlistBylineRenderer");var PkU=new _.z0("insertChannelTabCommand");var G_=function(){return _.XS.apply(this,arguments)||this};
_.J(G_,_.XS);_.V=G_.prototype;_.V.activeChanged=function(){if(this.active){var D=_.ZW(this.hostElement).querySelector("#header");D&&_.F1(D,"iron-resize");window.addEventListener("scroll",_.pZ(this,this.onScroll))}else window.removeEventListener("scroll",_.pZ(this,this.onScroll)),_.F1(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.V.guideVisibleChanged=function(){var D=_.ZW(this.hostElement).querySelector("#header");D&&_.F1(D,"iron-resize")};
_.V.onScroll=function(){var D=this;_.aq(this,"onScroll",function(){var v=_.ZW(D.hostElement).querySelector("#header");v&&v.polymerController&&(v=v.polymerController.getScrollState().progress===1?"standard":"seamed",_.F1(D.hostElement,"yt-request-panel-mode-change",{mode:v}))},10)};
_.V.tabsChanged=function(){if(this.tabs){for(var D=null,v=0,h=this.tabs.length;v<h;++v){var a=this.tabs[v].tabRenderer;if(a&&a.selected){D=v;break}}this.selected=D}};
_.V.onTabsActivate=function(D){_.F1(this.hostElement,"yt-navigate",{endpoint:this.tabs[D.detail.selected].tabRenderer.endpoint})};
G_.prototype.tabsChanged=G_.prototype.tabsChanged;G_.prototype.guideVisibleChanged=G_.prototype.guideVisibleChanged;G_.prototype.activeChanged=G_.prototype.activeChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],G_.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.Y(),_.n("design:type",Array)],G_.prototype,"tabs",void 0);
_.e([_.Y(),_.n("design:type",Object)],G_.prototype,"selected",void 0);_.e([_.Y(),_.n("design:type",Boolean)],G_.prototype,"active",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],G_.prototype,"disableHeaderFluidWidth",void 0);_.e([_.Ni("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G_.prototype,"activeChanged",null);
_.e([_.Ni("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G_.prototype,"guideVisibleChanged",null);_.e([_.Ni("tabs"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],G_.prototype,"tabsChanged",null);_.e([_.AV()],G_);var x73=[_.t.YtRendererBehavior,_.U0.YtdGuideStateAwareBehavior,G_.prototype];var M0b=2/3,f9r=_.En(130749),CkS=function(D,v){var h=this;this.element=D;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){h.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:M0b,moveAction:function(a){h.moveAction(a)},
triggerAction:function(){h.element.isReloading=!0;_.r1(_.c8(),{visualElement:f9r});_.pb.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:h.element}})}}}};
_.jh(_.c8(),f9r,this.layer);this.gesture=new _.sb(D,v,this.refreshConfig,"pan-down");this.attach()};
_.V=CkS.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.reset=function(){this.element.close()};
_.V.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.V.moveAction=function(D){this.element.rotation=D*360};var oA3=_.En(130750),zEd=function(D,v,h,a,Q){var G=this;this.element=D;this.parent=h;this.channelHeader=a;this.ytdReduxDispatch=Q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){G.tabsStartAtInPx=G.channelHeader.clientHeight-48;var x;(x=G.selectedTab)!=null&&x.title&&(x=_.xd().resolve(_.PV(_.P4)))&&(x=x.getCurrentPage(),G.lastVisitedTabScrollPosition=x.getScrollTop(),G.previousTab&&
((G.lastVisitedTabScrollPosition===void 0?0:G.lastVisitedTabScrollPosition<G.channelHeader.clientHeight-48)?G.scrollPositionForTabs.has(G.selectedTab.title)&&G.scrollPositionForTabs.delete(G.selectedTab.title):G.scrollPositionForTabs.set(G.selectedTab.title,x.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:FH2(),triggerAction:function(){G.navigate(G.previousTab)},
moveAction:function(x,f){G.moveAction(x,f)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-FH2(),triggerAction:function(){G.navigate(G.nextTab)},
moveAction:function(x,f){G.moveAction(x,f)}}}};
_.jh(_.c8(),oA3,this.layer);this.gesture=new _.sb(D,v,this.tabConfig);this.attach()};
_.V=zEd.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.tabsChanged=function(D){if(D){var v=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;D=_.P(D);for(var h=D.next();!h.done;h=D.next()){h=h.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=h);var a=void 0;if((a=h)==null?0:a.selected)this.previousTab=v,this.selectedTab=h;v=h}v=this.gesture;D=this.getConfig();v.config=D;this.scrollPositionNeedsUpdate=!0}};
_.V.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.V.moveAction=function(D,v){if(!this.tabsElement){var h;this.tabsElement=(h=this.parent.header)==null?void 0:h.tabsElement;v==="right"&&this.previousTab?_.L0b(_.Rl.instance,this.previousTab.endpoint,{},""):v==="left"&&this.nextTab&&_.L0b(_.Rl.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}h=this.tabsElement._pos;v==="right"&&(D*=-1);this.tabsElement._positionBar(h.width,h.left*1+h.width*D)};
var FH2=function(){var D,v;return(v=(D=_.xd().resolve(_.P4).getCurrentPage())==null?void 0:D.clientWidth)!=null?v:0};
zEd.prototype.navigate=function(D){this.element.data=void 0;if(D=D==null?void 0:D.endpoint)this.ytdReduxDispatch(y53(!0)),_.r1(_.c8(),{visualElement:oA3}),_.pb.instance.resolveCommand({navigateAction:{endpoint:D}},{form:{element:this.element}})};var U7m;var LHr;var Vn=function(){return _.c.apply(this,arguments)||this};
_.J(Vn,_.c);Vn.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Vn.prototype,"data",void 0);_.e([_.m({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Vn);
_.w(Vn,"ytd-labs-edit-renderer",function(){if(LHr!==void 0)return LHr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return LHr=D},{mode:1});var ZiS;var Pz=function(){var D=_.c.apply(this,arguments)||this;D.dark=!1;D.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(Pz,_.c);Pz.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Pz.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.setBackgroundImage(D);this.dark=D};
Pz.prototype.onDarkModeToggledAction=function(D){this.setBackgroundImage(D);this.dark=D};
Pz.prototype.setBackgroundImage=function(D){_.SB(this.hostElement,{"--yt-labs-header-background":"url("+(D?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Pz.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Pz.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Pz.prototype,"dark",void 0);
_.e([_.m({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Pz);
_.w(Pz,"ytd-labs-header-renderer",function(){if(ZiS!==void 0)return ZiS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ZiS=D},{mode:1});var EAU;var xT=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return D};
_.J(xT,_.c);xT.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"}}}}}};
xT.prototype.onYtToggleButton=function(D){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",D.detail.toggled)};
xT.prototype.onManageLabsState=function(D){if(D=_.k(D,r5S))D.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?D.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&D.labsItemId===this.data.labsItemId&&(D.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.zU(this.hostElement,"yt-check-labs-opted-in-state").some(function(v){return v})&&this.data.confirmationDialogCommand?_.ZD(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.xd().resolve(_.fx).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&D.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.xd().resolve(_.fx).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
xT.prototype.onCheckLabsOptedInState=function(){var D=this.get("data.primaryButton.toggleButtonRenderer");return D?D.isToggled:!1};
_.GT.Object.defineProperties(xT.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
xT.prototype.onYtToggleButton=xT.prototype.onYtToggleButton;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],xT.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xT.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],xT.prototype,"itemStyle",null);_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],xT.prototype,"onYtToggleButton",null);_.e([_.m({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],xT);
_.w(xT,"ytd-labs-item-renderer",function(){if(EAU!==void 0)return EAU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return EAU=D},{mode:1});var I9C;var gAI;var k22=function(){return _.c.apply(this,arguments)||this};
_.J(k22,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],k22.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],k22.prototype,"data",void 0);_.e([_.m({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],k22);
_.w(k22,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(gAI!==void 0)return gAI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return gAI=D},{mode:1});var SgC;var Ml=function(){return _.c.apply(this,arguments)||this};
_.J(Ml,_.c);Ml.prototype.observeSuperchatChip=function(){if(this.data){var D={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.SB(this.hostElement,D)}};
Ml.prototype.colorFromDecimal=function(D){return _.uu(Number(D||0))};
Ml.prototype.observeSuperchatChip=Ml.prototype.observeSuperchatChip;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ml.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ml.prototype,"observeSuperchatChip",null);_.e([_.m({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Ml);
_.w(Ml,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(SgC!==void 0)return SgC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return SgC=D},{mode:1});var fl=function(){return _.c.apply(this,arguments)||this};
_.J(fl,_.c);fl.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"}}}};
_.GT.Object.defineProperties(fl.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.CC),_.n("design:type",Object)],fl.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fl.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fl.prototype,"hideMessageBlock",null);
_.e([_.m({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],fl);
_.w(fl,"ytd-live-chat-history-entry-renderer",function(){if(I9C!==void 0)return I9C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return I9C=D},{mode:1});var JGS;var poI=function(){return _.c.apply(this,arguments)||this};
_.J(poI,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],poI.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],poI.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],poI);
_.w(poI,"ytd-channel-options-renderer",function(){if(JGS!==void 0)return JGS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return JGS=D},{mode:1});var l9I;var Cl=function(){return _.c.apply(this,arguments)||this};
_.J(Cl,_.c);Cl.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Cl.prototype,"data",void 0);_.e([_.m({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Cl);
_.w(Cl,"ytd-settings-email-item-renderer",function(){if(l9I!==void 0)return l9I;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return l9I=D},{mode:1});var NAC;var oT=function(){return _.c.apply(this,arguments)||this};
_.J(oT,_.c);oT.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"}}}};
oT.prototype.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
oT.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.GT.Object.defineProperties(oT.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],oT.prototype,"data",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],oT.prototype,"expanded",void 0);_.e([_.N("expanded"),_.n("design:type",String),_.n("design:paramtypes",[])],oT.prototype,"emailListExpanded",null);
_.e([_.Br("#options"),_.n("design:type",Object)],oT.prototype,"options",void 0);_.e([_.m({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],oT);
_.w(oT,"ytd-settings-email-list-renderer",function(){if(NAC!==void 0)return NAC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return NAC=D},{mode:1});var YgK;var FV=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.J(FV,_.c);FV.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"}}}};
FV.prototype.handleSignalActionSubmitForm=function(){var D,v=(D=this.formRenderer)==null?void 0:D.getForm();v&&this.data.serviceEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},v,{element:this.hostElement})})};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],FV.prototype,"data",void 0);_.e([_.Br("yt-form-renderer"),_.n("design:type",Object)],FV.prototype,"formRenderer",void 0);
_.e([_.m({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],FV);
_.w(FV,"ytd-settings-gaia-link-renderer",function(){if(YgK!==void 0)return YgK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return YgK=D},{mode:1});var BA$;var z_=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return D};
_.J(z_,_.c);z_.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.r$S()&&this.set("data.hidden",!1)};
z_.prototype.onSwitchReady=function(){var D=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.g("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.tAU().then(function(v){v&&(Notification.permission==="default"?D.set("data.hidden",!1):Notification.permission==="granted"&&_.HI("NotificationsDisabled").then(function(h){h||_.zU(D.hostElement,"yt-toggle-settings-switch",[D.data.id,!h]);D.set("data.hidden",!1)}).catch(function(){}))})})};
z_.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}}}}};
z_.prototype.handleUpdateOptionsCommand=function(D){(D=_.k(D,_.uWJ))&&this.data&&this.data.id===D.id&&(this.set("data.hidden",D.hidden),D.text!==void 0&&this.set("data.text",D.text),D.clearOptions&&this.set("data.options",[]))};
z_.prototype.onSwitchReady=z_.prototype.onSwitchReady;z_.prototype.dataChanged=z_.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],z_.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],z_.prototype,"data",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z_.prototype,"dataChanged",null);_.e([_.lc("yt-settings-switch-ready"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z_.prototype,"onSwitchReady",null);_.e([_.m({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],z_);
_.w(z_,"ytd-settings-options-renderer",function(){if(BA$!==void 0)return BA$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return BA$=D},{mode:1});var cGZ;var US=function(){return _.c.apply(this,arguments)||this};
_.J(US,_.c);US.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
US.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
US.prototype.onYtExpanderMoreTapped=US.prototype.onYtExpanderMoreTapped;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],US.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],US.prototype,"data",void 0);
_.e([_.lc("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],US.prototype,"onYtExpanderMoreTapped",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],US);
_.w(US,"ytd-product-details-description-renderer",function(){if(cGZ!==void 0)return cGZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return cGZ=D},{mode:1});var Xod;var Ll=function(){var D=_.c.apply(this,arguments)||this;D.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";D.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";D.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";D.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return D};
_.J(Ll,_.c);Ll.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.GT.Object.defineProperties(Ll.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:(v=D.offerData)==null?void 0:v.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?void 0:D.purchaseButtonRenderers)!==void 0&&((v=this.data)==null?void 0:v.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.formattedFromMerchantText)&&(!((v=this.data)==null||!v.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ll.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ll.prototype,"data",void 0);
_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],Ll.prototype,"shippingIcon",void 0);_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],Ll.prototype,"shippingAddressIcon",void 0);_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],Ll.prototype,"googleGuaranteeIcon",void 0);
_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],Ll.prototype,"returnPolicyIcon",void 0);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ll.prototype,"showAdditionalFees",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ll.prototype,"showMultiPurchaseButtons",null);
_.e([_.N("data","showMultiPurchaseButtons"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ll.prototype,"showPurchaseData",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Ll);
_.w(Ll,"ytd-product-details-hero-offer-renderer",function(){if(Xod!==void 0)return Xod;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Xod=D},{mode:1});var AGX;var qg2;var Zu=function(){return _.c.apply(this,arguments)||this};
_.J(Zu,_.c);_.V=Zu.prototype;_.V.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.V.onKeyDown=function(D){D=D.keyCode;D!==13&&D!==32||this.handleSelection()};
_.V.onMouseEnterImage=function(){var D;((D=this.data)==null?void 0:D.thumbnailDetails)!==void 0&&_.U9(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.V.onMouseLeaveImage=function(){_.U9(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.V.handleSelection=function(){this.data&&_.F1(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.GT.Object.defineProperties(Zu.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Zu.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Zu.prototype,"isSelected",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Zu);
_.w(Zu,"ytd-product-details-thumbnail-renderer",function(){if(qg2!==void 0)return qg2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return qg2=D},{mode:1});var ES=function(){var D=_.c.apply(this,arguments)||this;var v={};D.actionMap=(v["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",v["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",v);D.selectedThumbnailIndex=0;D.selectItem=function(h){h.target.onKeyDown(h)};
return D};
_.J(ES,_.c);_.V=ES.prototype;_.V.handlePreviewImageSelect=function(D){this.hoverThumbnail=D};
_.V.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.V.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.V.onThumbnailSelected=function(D,v){this.selectedThumbnailIndex=v};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.V.updateOffset=function(){var D=_.ZW(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_()};
_.GT.Object.defineProperties(ES.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.imageRenderer){var v,h;return((v=this.data)==null?void 0:(h=v.imageRenderer)==null?void 0:h.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var D;if((D=this.data)==null?0:D.imageRenderer){var v;return(v=_.k(this.data.imageRenderer[this.selectedThumbnailIndex],vAK))==null?void 0:v.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var D=this,v,h,a,Q=(a=(v=this.data)==null?void 0:(h=v.imageRenderer)==null?void 0:h.map(function(G,x){return{productDetailsThumbnailRenderer:Object.assign({},_.k(G,vAK),{index:x,isSelected:x===D.selectedThumbnailIndex})}}))!=null?a:[];
return Object.assign({},this.data,{imageRenderer:Q})}}});
ES.prototype.updateOffset=ES.prototype.updateOffset;ES.prototype.dataChanged=ES.prototype.dataChanged;ES.prototype.onThumbnailSelected=ES.prototype.onThumbnailSelected;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.A9.YtdHorizontalListBehavior),_.n("design:type",Object)],ES.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ES.prototype,"componentBehavior",void 0);_.e([_.l([_.ed.YtActionHandlerBehavior]),_.n("design:type",Object)],ES.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ES.prototype,"data",void 0);_.e([_.Y({value:"$.items.children"}),_.n("design:type",String)],ES.prototype,"itemsPath",void 0);_.e([_.Y({value:3}),_.n("design:type",Number)],ES.prototype,"initialCount",void 0);
_.e([_.Br("#items"),_.n("design:type",Object)],ES.prototype,"items",void 0);_.e([_.Y(),_.n("design:type",Object)],ES.prototype,"selectedThumbnailIndex",void 0);_.e([_.Y(),_.n("design:type",Object)],ES.prototype,"hoverThumbnail",void 0);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ES.prototype,"showThumbnails",null);
_.e([_.lc("ytd-product-details-thumbnail-renderer-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Number]),_.n("design:returntype")],ES.prototype,"onThumbnailSelected",null);_.e([_.N("data","selectedThumbnailIndex","hoverThumbnail"),_.n("design:type",Object),_.n("design:paramtypes",[])],ES.prototype,"thumbnailDetails",null);_.e([_.N("data","selectedThumbnailIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],ES.prototype,"populatedData",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ES.prototype,"dataChanged",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ES.prototype,"updateOffset",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],ES);
_.w(ES,"ytd-product-details-image-carousel-renderer",function(){if(AGX!==void 0)return AGX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return AGX=D},{mode:_.E_("kevlar_poly_si_batch_j079")?1:2});var bi$;var IT=function(){return _.c.apply(this,arguments)||this};
_.J(IT,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],IT.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],IT.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],IT);
_.w(IT,"ytd-product-details-offer-renderer",function(){if(bi$!==void 0)return bi$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return bi$=D},{mode:1});var d7S;var gO=function(){var D=_.c.apply(this,arguments)||this;D.isOffersHidden=!0;return D};
_.J(gO,_.c);gO.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var D,v=_.k((D=this.data)==null?void 0:D.viewOffersButton,_.Vi);v&&this.ytRendererBehavior.logExplicitClick(v)};
gO.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.GT.Object.defineProperties(gO.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a;return(h=_.k((D=this.data)==null?void 0:(v=D.offers)==null?void 0:v[0],Qsm))==null?void 0:(a=h.offerData)==null?void 0:a.vendorLogoUrl}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],gO.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gO.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],gO.prototype,"isOffersHidden",void 0);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],gO.prototype,"firstOfferVendorLogoUrl",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],gO);
_.w(gO,"ytd-product-details-offers-container-renderer",function(){if(d7S!==void 0)return d7S;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return d7S=D},{mode:1});var jss;var ssU;var kT=function(){return _.c.apply(this,arguments)||this};
_.J(kT,_.c);kT.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
kT.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.U9(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
kT.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.U9(this,"ytd-product-details-variant-image-unselect")};
_.GT.Object.defineProperties(kT.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?void 0:D.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((v=this.data)==null?void 0:v.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((h=this.data)==null?void 0:h.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var D;if(((D=this.data)==null?void 0:D.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,v;return this.isUnavailable?(D=this.data)==null?void 0:D.variantOptionUnavailableAccessibilityLabel:(v=this.data)==null?void 0:v.variantOptionAccessibilityLabel}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],kT.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kT.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],kT.prototype,"displayType",void 0);
_.e([_.N("displayType","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],kT.prototype,"isImageButton",null);_.e([_.N("displayType","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],kT.prototype,"isPillButton",null);_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],kT.prototype,"isActive",null);
_.e([_.N("data"),_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],kT.prototype,"isUnavailable",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],kT.prototype,"thumbnailDetails",null);_.e([_.N("isUnavailable","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],kT.prototype,"accessibilityLabel",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],kT);
_.w(kT,"ytd-product-details-variant-option-renderer",function(){if(ssU!==void 0)return ssU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return ssU=D},{mode:1});var m7U;var Sm=function(){var D=_.c.apply(this,arguments)||this;D.variantsExpanded=!1;D.hideShowMoreLessVariantButton=!0;D.initialized=!1;D.computeVariantsDebouncer=null;D.computeVariants=function(v){v=v===void 0?!1:v;D.variantsExpanded||D.showOptions()||!v||(D.variantsExpanded=!0);if(D.variantsExpanded){v=_.P(D.items.children);for(var h=v.next();!h.done;h=v.next())h.value.hidden=!1}D.initialized=!0};
return D};
_.J(Sm,_.c);_.V=Sm.prototype;_.V.ready=function(){var D=this;setTimeout(function(){D.computeVariants(!0)})};
_.V.showOptions=function(){for(var D=_.P(this.items.children),v=D.next();!v.done;v=D.next())v.value.hidden=!0;var h=this.container.getBoundingClientRect().width,a=0,Q=D=0;v=!1;for(var G=_.P(this.items.children),x=G.next();!x.done;x=G.next()){x=x.value;x.hidden=!1;var f=x.getBoundingClientRect().width;if(a+f<h)a+=f;else if(++Q<2)a=f;else break;D+=1;x.hasAttribute("is-active")&&(v=!0)}for(h=D;h<this.items.children.length;h++)this.items.children[h].hidden=!0;this.hideShowMoreLessVariantButton=D===this.items.children.length;
return v};
_.V.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.p6(this.computeVariantsDebouncer,_.o5.after(100),this.computeVariants)};
_.V.onShowMoreLessVariantsButtonClick=function(){var D;(D=this.data)!=null&&D.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.V.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.GT.Object.defineProperties(Sm.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.variantOptionRenderers)==null?void 0:v.find(function(G){return _.k(G,a9r).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),a,Q;
return(Q=(a=_.k(h,a9r))==null?void 0:a.name)!=null?Q:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
Sm.prototype.debouncedComputeVariants=Sm.prototype.debouncedComputeVariants;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Sm.prototype,"componentBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],Sm.prototype,"ironResizableBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Sm.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Sm.prototype,"variantsExpanded",void 0);_.e([_.Y(),_.n("design:type",Object)],Sm.prototype,"hideShowMoreLessVariantButton",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Sm.prototype,"initialized",void 0);_.e([_.Br("#items"),_.n("design:type",HTMLDivElement)],Sm.prototype,"items",void 0);_.e([_.Br("#container"),_.n("design:type",HTMLDivElement)],Sm.prototype,"container",void 0);
_.e([_.Br("#more-variants-button"),_.n("design:type",HTMLElement)],Sm.prototype,"moreVariantsButton",void 0);_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],Sm.prototype,"selectedOptionName",null);_.e([_.Ni("data","variantsExpanded"),_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sm.prototype,"debouncedComputeVariants",null);
_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],Sm.prototype,"displayType",null);_.e([_.N("displayType"),_.n("design:type",Object),_.n("design:paramtypes",[])],Sm.prototype,"variantItemsClassname",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Sm);
_.w(Sm,"ytd-product-details-variant-renderer",function(){if(m7U!==void 0)return m7U;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return m7U=D},{mode:1});var J7=function(){return _.c.apply(this,arguments)||this};
_.J(J7,_.c);
J7.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"}}}};
_.GT.Object.defineProperties(J7.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(v=_.k((D=this.data)==null?void 0:D.offersContainerRenderer,$7I))==null?void 0:v.offers;return h!==void 0&&(h==null?void 0:h.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((h=(D=this.data)==null?void 0:(v=D.variants)==null?void 0:v.map(function(a){var Q,G;a=(G=(Q=_.k(a,hEm))==null?void 0:Q.variantOptionRenderers)==null?void 0:G.find(function(f){var C;return((C=_.k(f,a9r))==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var x;return(x=_.k(a,a9r))==null?void 0:x.name}).filter(function(a){return typeof a==="string"}))!=null?h:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var D,v,h,a=(v=_.k((D=this.data)==null?void 0:D.shoppingFlaggingRenderer,G2b))==null?void 0:(h=v.reportButton)==null?void 0:h.buttonRenderer;if(a)return{text:a.text,command:a.command,icon:{iconType:"FLAG"},accessibilityData:a.accessibilityData,trackingParams:a.trackingParams,loggingDirectives:a.loggingDirectives}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],J7.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],J7.prototype,"data",void 0);_.e([_.Br("#image-carousel-renderer"),_.n("design:type",Object)],J7.prototype,"imageCarouselRenderer",void 0);
_.e([_.Br("#hero-offer-renderer"),_.n("design:type",Object)],J7.prototype,"productDetailsHeroOfferRenderer",void 0);_.e([_.Br("#variants"),_.n("design:type",Object)],J7.prototype,"productDetailsVariantRenderer",void 0);_.e([_.Br("#offers"),_.n("design:type",Object)],J7.prototype,"productDetailsOffersContainerRenderer",void 0);_.e([_.Br("#description-renderer"),_.n("design:type",Object)],J7.prototype,"productDetailsDescriptionRenderer",void 0);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J7.prototype,"showPurchaseData",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J7.prototype,"showHeroOfferRenderer",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J7.prototype,"showBrandText",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J7.prototype,"showOffers",null);
_.e([_.N("showOffers","showPurchaseData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J7.prototype,"showBuySeparator",null);_.e([_.N("showOffers","showPurchaseData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],J7.prototype,"showBuyCard",null);_.e([_.N("data"),_.n("design:type",String),_.n("design:paramtypes",[])],J7.prototype,"selectedVariantsText",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],J7.prototype,"shoppingReportingButtonData",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],J7);
_.w(J7,"ytd-product-details-renderer",function(){if(jss!==void 0)return jss;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jss=D},{mode:1});var Hi2;var yGU;var wor;var pl=function(){return _.c.apply(this,arguments)||this};
_.J(pl,_.c);pl.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.GT.Object.defineProperties(pl.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],pl.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],pl.prototype,"formattedAmount",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],pl.prototype,"ariaLabel",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.style"),_.n("design:type",String),_.n("design:paramtypes",[])],pl.prototype,"vcBalanceWidgetStyle",null);_.e([_.Ry({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],pl);
_.w(pl,"yt-vc-balance-renderer",function(){if(wor===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;yGU===void 0&&(yGU=document.createElement("template"));var a=yGU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);wor=D}D=wor;return D},{mode:2});_.HX("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var lh=function(){return _.c.apply(this,arguments)||this};
_.J(lh,_.c);_.GT.Object.defineProperties(lh.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:""}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],lh.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],lh.prototype,"data",void 0);_.e([_.Y({selectorArgs:["data.vcBalanceEntityKey"],selector:function(D,v){return _.gR(D.entities,"vcBalanceEntity",v)}}),
_.n("design:type",Object)],lh.prototype,"vcBalanceEntity",void 0);_.e([_.N("vcBalanceEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],lh.prototype,"formattedAmount",null);_.e([_.N("vcBalanceEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],lh.prototype,"vcBalanceAriaLabel",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],lh);
_.w(lh,"ytd-vc-balance-renderer",function(){if(Hi2!==void 0)return Hi2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Hi2=D},{mode:1});var eEI;var Nl=function(){var D=_.c.apply(this,arguments)||this;D.rotation=0;D.isReloading=!1;return D};
_.J(Nl,_.c);Nl.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Nl.prototype.reset=function(){this.hostElement.style.opacity=""};
Nl.prototype.close=function(){var D=this;return _.M(function(v){if(v.nextAddress==1)return v.yield(D.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.hostElement.style.opacity="0";_.YI(v)})};
Nl.prototype.rotationChanged=Nl.prototype.rotationChanged;_.e([_.Y(),_.n("design:type",Object)],Nl.prototype,"rotation",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Nl.prototype,"isReloading",void 0);_.e([_.Br("#icon"),_.n("design:type",HTMLElement)],Nl.prototype,"icon",void 0);_.e([_.Ni("rotation"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nl.prototype,"rotationChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-refresh"})],Nl);
_.w(Nl,"ytd-refresh",function(){if(eEI!==void 0)return eEI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return eEI=D},{mode:1});var nAS;var Bz=function(){return _.c.apply(this,arguments)||this};
_.J(Bz,_.c);Bz.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"}}}};
Bz.prototype.dataChanged=function(){if(this.data){var D=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var v=_.UA(this.data.banner.thumbnails,this.hostElement.clientWidth);v&&(v.indexOf("//")===0&&(v="https:"+v),this.hasBannerArt=!0,_.SB(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+v+")"}))}this.hasBannerArt!==D&&_.ZW(this.hostElement).querySelector("#header").fire("iron-resize")}};
Bz.prototype.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
Bz.prototype.dataChanged=Bz.prototype.dataChanged;_.e([_.l(x73),_.n("design:type",Object)],Bz.prototype,"ytdTabbedHeaderBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Fg),_.n("design:type",Object)],Bz.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],Bz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Bz.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Bz.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],Bz.prototype,"selected",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Bz.prototype,"active",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bz.prototype,"hasBannerArt",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bz.prototype,"dataChanged",null);_.e([_.m({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Bz);
_.w(Bz,"ytd-interactive-tabbed-header-renderer",function(){if(nAS!==void 0)return nAS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nAS=D},{mode:1});var OiS;var cz=function(){return _.c.apply(this,arguments)||this};
_.J(cz,_.c);cz.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cz.prototype.computeActionsAlignment=function(D){return(D==null?void 0:D.actionsAlignment)||""};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cz.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.n("design:type",String)],cz.prototype,"actionsAlignment",void 0);_.e([_.m({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],cz);
_.w(cz,"ytd-page-footer-renderer",function(){if(OiS!==void 0)return OiS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return OiS=D},{mode:1});var KHm;var TAb;var XV=function(){var D=_.c.apply(this,arguments)||this;D.isEditing=!1;D.useSlot=!1;D.isMultiline=!1;return D};
_.J(XV,_.c);_.V=XV.prototype;_.V.onKeydown=function(D){if(D.keyCode===13&&!this.isMultiline)this.onSave();else if(D.keyCode===27)this.onCancel()};
_.V.computeComponentStyle=function(D){return(D==null?0:D.style)?D.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.V.computeisMultiline=function(D){if(this.multilineOverride!==void 0)return this.multilineOverride;var v,h;return!!(D==null?0:(v=D.formField)==null?0:(h=v.textInputFormFieldRenderer)==null?0:h.isMultiline)};
_.V.computeTextDisplayed=function(D,v){if(D)return D;if(v)return v};
_.V.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.V.onSave=function(){if(this.textForm.validate()){this.textForm.save();var D=this.textForm.value;if(D)this.set("data.textDisplayed",_.aX(D));else{var v;((v=this.data)==null?0:v.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.IS("inline-form-changed",this.data));this.isEditing=!1}};
_.V.onCancel=function(){var D=_.$V(this.data.textDisplayed);D===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(D);this.isEditing=!1};
XV.prototype.onKeydown=XV.prototype.onKeydown;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],XV.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],XV.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],XV.prototype,"isEditing",void 0);_.e([_.Y(),_.n("design:type",Object)],XV.prototype,"useSlot",void 0);_.e([_.Y(),_.n("design:type",Boolean)],XV.prototype,"multilineOverride",void 0);_.e([_.Y(),_.n("design:type",Boolean)],XV.prototype,"enableOverlayTheme",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.n("design:type",String)],XV.prototype,"componentStyle",void 0);
_.e([_.Y({computed:"computeisMultiline(data)"}),_.n("design:type",Object)],XV.prototype,"isMultiline",void 0);_.e([_.Br("#text-form"),_.n("design:type",Object)],XV.prototype,"textForm",void 0);_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],XV.prototype,"onKeydown",null);_.e([_.m({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],XV);
_.w(XV,"ytd-inline-form-renderer",function(){if(TAb!==void 0)return TAb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return TAb=D},{mode:1});var REr;var A7=function(){var D=_.c.apply(this,arguments)||this;D.previousSelectValue=void 0;D.selectedItemMessage=void 0;return D};
_.J(A7,_.c);A7.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
A7.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var D,v,h,a,Q=(D=this.data)==null?void 0:(v=D.dropdown)==null?void 0:(h=v.dropdownRenderer)==null?void 0:(a=h.entries)==null?void 0:a.map(function(f){return f.privacyDropdownItemRenderer});
D=_.P(Q!=null?Q:[]);for(v=D.next();!v.done;v=D.next())if((v=v.value)&&v.int32Value===this.selectedValue){this.selectedItemMessage=v.itemMessage;break}}else this.selectedItemMessage=void 0;var G;(G=this.onValueChanged)==null||G.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var x;(x=this.data)!=null&&x.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
A7.prototype.onValueChangedForSelectedValue=function(D){this.selectedValue=D.detail.value};
A7.prototype.selectedValueChanged=A7.prototype.selectedValueChanged;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],A7.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],A7.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],A7.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],A7.prototype,"theme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Number)],A7.prototype,"selectedValue",void 0);_.e([_.Y(),_.n("design:type",Function)],A7.prototype,"onValueChanged",void 0);
_.e([_.qi("selectedValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],A7.prototype,"selectedValueChanged",null);_.e([_.m({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],A7);
_.w(A7,"ytd-dropdown-form-field-renderer",function(){if(REr!==void 0)return REr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return REr=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var iiS;var ql=function(){return _.c.apply(this,arguments)||this};
_.J(ql,_.c);_.GT.Object.defineProperties(ql.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var D=[],v=_.P(this.data||[]),h=v.next();!h.done;h=v.next())(h=_.k(h.value,V0$))&&D.push(h);return D}}});
_.e([_.Y(),_.n("design:type",Array)],ql.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ql.prototype,"byline",null);_.e([_.m({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],ql);
_.w(ql,"ytd-playlist-byline-renderer",function(){if(iiS!==void 0)return iiS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return iiS=D},{mode:1});var WHm;var bh=function(){var D=_.c.apply(this,arguments)||this;D.rtlBullet=_.g("web_playlist_stats_rtl_bullet_icon_killswitch");D.modern=_.g("web_modern_buttons");D.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return D};
_.J(bh,_.c);_.V=bh.prototype;_.V.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"}}}}};
_.V.attached=function(){};
_.V.computeIsCustomThumbnail=function(D){return D?!!D.playlistCustomThumbnailRenderer:!1};
_.V.onYtNavigate=function(D,v){if(v&&v.actions&&v.actions.indexOf("shuffle")>-1){D=_.xd().resolve(_.fh);var h=v.tempData||{};h.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);v.tempData=h;D.isShuffleNextPlaylist=!0}};
_.V.onUpdatePlaylistAction=function(D){var v;D=(v=_.k(D,_.YGp))==null?void 0:v.updatedRenderer;if(v=_.k(D,D7I))this.data=v};
_.V.computeStyleType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(D){return D==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.V.computeHideThumbnailAria=function(D){if(D==null?0:D.thumbnailOverlays)for(var v=0;v<D.thumbnailOverlays.length;v++){var h=void 0;if((h=D.thumbnailOverlays[v])==null?0:h.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
bh.prototype.onYtNavigate=bh.prototype.onYtNavigate;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],bh.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],bh.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],bh.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],bh.prototype,"rtlBullet",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.n("design:type",String)],bh.prototype,"styleType",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.n("design:type",Number)],bh.prototype,"thumbnailWidth",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],bh.prototype,"modern",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.n("design:type",Boolean)],bh.prototype,"isCustomThumbnail",void 0);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Object]),_.n("design:returntype")],bh.prototype,"onYtNavigate",null);_.e([_.m({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],bh);
_.w(bh,"ytd-playlist-sidebar-primary-info-renderer",function(){if(WHm!==void 0)return WHm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return WHm=D},{mode:1});var t0m;var dO=function(){return _.c.apply(this,arguments)||this};
_.J(dO,_.c);dO.prototype.computeOwnerVisibility=function(D){return!(!D.videoOwner&&!D.button)};
dO.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dO.prototype,"data",void 0);_.e([_.m({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],dO);
_.w(dO,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(t0m!==void 0)return t0m;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return t0m=D},{mode:1});var rGC;var jm=function(){var D=_.c.apply(this,arguments)||this;D.expanded=!1;D.isCompact=!1;return D};
_.J(jm,_.c);_.V=jm.prototype;_.V.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.V.dataChanged=function(){this.data&&_.VM(_.ZW(this.text),_.PSp(_.fbF,_.$V(this.data.text||null)))};
_.V.computeAutoScrollEnabled=function(D,v){return D&&!v};
_.V.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.V.toggleOnTap=function(){this.expanded=!this.expanded};
jm.prototype.expandedChanged=jm.prototype.expandedChanged;jm.prototype.dataChanged=jm.prototype.dataChanged;_.e([_.l(_.Hud),_.n("design:type",Object)],jm.prototype,"ytdAutoScrollBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jm.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],jm.prototype,"expanded",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],jm.prototype,"isCompact",void 0);_.e([_.Y({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.n("design:type",Boolean)],jm.prototype,"autoScrollEnabled",void 0);_.e([_.Br("#text"),_.n("design:type",Object)],jm.prototype,"text",void 0);_.e([_.Br("#expander-icon"),_.n("design:type",Object)],jm.prototype,"expanderIcon",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jm.prototype,"dataChanged",null);_.e([_.Ni("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jm.prototype,"expandedChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],jm);
_.w(jm,"ytd-channel-legal-info-renderer",function(){if(rGC!==void 0)return rGC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rGC=D},{mode:1});var u8d;var Drd=_.p1("DOWNLOAD",{},"Download"),vLM=_.p1("DOWNLOADING",{},"Downloading"),hi0=_.p1("DOWNLOADED",{},"Downloaded"),sS=function(){var D=_.c.apply(this,arguments)||this;D.downloadProgress=0;D.isDownloadComplete=!1;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.J(sS,_.c);_.V=sS.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var D;(D=this.data)!=null&&D.tooltip||(D=_.Ta(_.Gb().getState(),this.playlistId),this.updateButtonState(D))};
_.V.computePlaylistId=function(D){return D};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(D){if(this.data&&(this.data.tooltip!==vLM||!_.cf(D))){this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=Drd;var v="OFFLINE_DOWNLOAD";var h="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":D=hi0;v="OFFLINE_PIN";h="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":D=vLM;v="OFFLINE_DOWNLOADING_ZERO";h="ACTION_REMOVE_WITH_PROMPT";
break;default:D=Drd,v="OFFLINE_DOWNLOAD",h="ACTION_ADD"}var a=Object.assign({},this.data);a.tooltip=D;a.accessibilityData={accessibilityData:{label:D}};a.icon={iconType:v};a.size="SIZE_DEFAULT";_.k(a.command,_.pj)&&(_.k(a.command,_.pj).action=h);this.set("data",a)}};
_.V.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?D="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var v;D!==((v=this.data.icon)==null?void 0:v.iconType)&&(v=Object.assign({},this.data),v.tooltip=vLM,v.accessibilityData={accessibilityData:{label:vLM}},v.icon={iconType:D},_.k(v.command,_.pj)&&(_.k(v.command,_.pj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",v))}};
sS.prototype.updateProgress=sS.prototype.updateProgress;sS.prototype.onTransferStateChanged=sS.prototype.onTransferStateChanged;sS.prototype.dataChanged=sS.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],sS.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sS.prototype,"forceIconButton",void 0);
_.e([_.Y({value:!0}),_.n("design:type",Boolean)],sS.prototype,"forceIconOnly",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sS.prototype,"overrides",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sS.prototype,"buttonTooltipPosition",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sS.prototype,"styleActionButton",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sS.prototype,"disableTextTransform",void 0);
_.e([_.Y({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.n("design:type",String)],sS.prototype,"playlistId",void 0);_.e([_.Y(),_.n("design:type",Object)],sS.prototype,"data",void 0);_.e([_.Y({selector:_.YHr,selectorArgs:["playlistId"]}),_.n("design:type",Object)],sS.prototype,"downloadProgress",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sS.prototype,"isDownloadComplete",void 0);
_.e([_.Y({selector:_.Ta,selectorArgs:["playlistId"]}),_.n("design:type",String)],sS.prototype,"transferState",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],sS.prototype,"showTooltips",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],sS.prototype,"sendCommandWhenDisabled",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],sS.prototype,"disabled",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sS.prototype,"dataChanged",null);_.e([_.qi("transferState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sS.prototype,"onTransferStateChanged",null);_.e([_.qi("downloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sS.prototype,"updateProgress",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],sS);
_.w(sS,"ytd-download-playlist-button-renderer",function(){if(u8d!==void 0)return u8d;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return u8d=D},{mode:1});var a4w;_.zh(_.zpb,"thumbnail-overlay-button-view-model",{props:{data:_.gj,lockupExperiments:_.gj}});var m7=function(){var D=_.c.apply(this,arguments)||this;D.isSquare=!1;D.isVertical=!1;return D};
_.J(m7,_.c);m7.prototype.computeIsSquare=function(D){return D!=null&&D.thumbnail?bR2(D.thumbnail)==="SQUARE":!1};
m7.prototype.computeIsVertical=function(D){return D!=null&&D.thumbnail?bR2(D.thumbnail)==="VERTICAL":!1};
m7.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.n("design:type",Object)],m7.prototype,"isSquare",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.n("design:type",Object)],m7.prototype,"isVertical",void 0);
_.e([_.Y(),_.n("design:type",Object)],m7.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],m7);
_.w(m7,"ytd-hero-playlist-thumbnail-renderer",function(){if(a4w!==void 0)return a4w;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return a4w=D},{mode:1});var Hz=function(){var D=_.c.apply(this,arguments)||this;D.isDarkTheme=!1;D.isUltraWide=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return D};
_.J(Hz,_.c);_.V=Hz.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.xd();var D;(D=_.xd().resolve(_.PV(_.b5)))!=null&&(D.headerElement=this.hostElement)};
_.V.detached=function(){var D;(D=_.xd().resolve(_.PV(_.b5)))!=null&&(D.headerElement=void 0)};
_.V.onUpdateHeader=function(D){(D=D.detail)&&this.set("data",D)};
_.V.computeTextDisplayed=function(D){if(D)return D.textDisplayed?D.textDisplayed:D.placeholder};
_.V.gradientColorToLinearGradientStop=function(D){var v=this.isDarkTheme?D.darkThemeColor:D.lightThemeColor;return v?_.uu(v)+" "+((D==null?void 0:D.startLocation)||0)*100+"%":"transparent"};
_.V.onWindowResize=function(){var D;((D=this.data)==null?0:D.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.V.onIronResize=function(D){this.isUltraWide=!D.detail.value};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.onUpdatePlaylistName=function(D){var v=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},D.detail.value));_.$R(this,function(){var h;(h=v.editableTitle)==null||h.resize()})};
_.V.onUpdatePlaylistDescription=function(D){var v=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},D.detail.value));_.$R(this,function(){var h;(h=v.editableDescriptionInlineExpander)==null||h.resize()})};
_.V.getCinematicData=function(D){return _.k(D==null?void 0:D.cinematicContainer,_.vz)};
_.GT.Object.defineProperties(Hz.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.getCinematicData(this.data))==null?void 0:D.config;return(D=this.isDarkTheme?v==null?void 0:v.darkThemeBackgroundColor:v==null?void 0:v.lightThemeBackgroundColor)?"background-color:"+_.rT(D)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var D;return _.k((D=this.data)==null?void 0:D.descriptionForm,u4d)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var D=this,v,h,a;return"background:linear-gradient(to bottom, "+(((a=(v=this.getCinematicData(this.data))==null?void 0:(h=v.gradientColorConfig)==null?void 0:h.map(function(Q){return D.gradientColorToLinearGradientStop(Q)}))==null?void 0:a.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var D;return _.$V((D=this.data)==null?void 0:D.descriptionTapText)}}});
Hz.prototype.onUpdateHeader=Hz.prototype.onUpdateHeader;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Hz.prototype,"actionHandlerBehavior",void 0);_.e([_.Br("#description-inline-expander"),_.n("design:type",Object)],Hz.prototype,"descriptionInlineExpander",void 0);
_.e([_.Br("#editable-description-inline-expander"),_.n("design:type",Object)],Hz.prototype,"editableDescriptionInlineExpander",void 0);_.e([_.Y(),_.n("design:type",Object)],Hz.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Hz.prototype,"isUltraWide",void 0);_.e([_.Br("#editable-title-display"),_.n("design:type",Object)],Hz.prototype,"editableTitle",void 0);_.e([_.N("isUltraWide"),_.n("design:type",Object),_.n("design:paramtypes",[])],Hz.prototype,"maxDescriptionLines",null);
_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Hz.prototype,"noCinematicData",null);_.e([_.lc("yt-new-playlist-header"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Hz.prototype,"onUpdateHeader",null);_.e([_.N("data","isDarkTheme"),_.n("design:type",Object),_.n("design:paramtypes",[])],Hz.prototype,"backgroundStyle",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Hz.prototype,"descriptionFormData",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Hz.prototype,"getDropdownTheme",null);_.e([_.N("data","isDarkTheme"),_.n("design:type",String),_.n("design:paramtypes",[])],Hz.prototype,"gradientStyle",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Hz.prototype,"descriptionTapText",null);
_.e([_.m({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Hz);
_.w(Hz,"ytd-playlist-header-renderer",function(){if(KHm!==void 0)return KHm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return KHm=D},{mode:_.E_("kevlar_poly_si_batch_j078")?1:2});var $rB;var QoB;var yn=function(){return _.c.apply(this,arguments)||this};
_.J(yn,_.c);yn.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yn.prototype,"data",void 0);_.e([_.m({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],yn);
_.w(yn,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(QoB!==void 0)return QoB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QoB=D},{mode:1});var wO=function(){return _.c.apply(this,arguments)||this};
_.J(wO,_.c);
wO.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}}}}};
wO.prototype.computeUsePremiumShowStyle=function(D){if(!D||!D.items)return!1;for(var v=0;v<D.items.length;v++)if(_.k(D.items[v],D7I)){var h=void 0;return((h=_.k(D.items[v],D7I))==null?void 0:h.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wO.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.n("design:type",Boolean)],wO.prototype,"usePremiumShowStyle",void 0);
_.e([_.m({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],wO);
_.w(wO,"ytd-playlist-sidebar-renderer",function(){if($rB!==void 0)return $rB;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return $rB=D},{mode:1});var Gud;var V2H;var PqY=function(D,v,h,a,Q,G,x,f){this.minWidth=D;this.minHeight=v;this.recommendedWidth=h;this.recommendedHeight=a;this.JSC$22169_maxFileSize=Q;this.title=G;this.bannerGalleryTitle=x;this.channelId=f;this.picker_=null;D=_.feu("yt-banner");v=D.addView;h=(new eHX("youtubebanner")).addUploadMetadata("silo_id","19");h.opts.ytMaxFileSize=this.JSC$22169_maxFileSize;a=this.recommendedHeight;h.opts.ytRecWidth=this.recommendedWidth;h.opts.ytRecHeight=a;v.call(D,h);D.addView(new _.wI);v=D.addView;h=new _.wI;
h.opts.type="ytbanner";v.call(D,h.JSC$10078_setLabel(this.bannerGalleryTitle));v=D.setTitle(this.title).setSize(1E3);v.urlParamMap_.set("thumbs","orig");h=this.minWidth;a=this.minHeight;if(isNaN(h)||isNaN(a))throw Error("gb`"+h+"`"+a);v.urlParamMap_.set("minSize",h+"x"+a);v.urlParamMap_.set("cropMode","ytcb");this.builder_=D};
PqY.prototype.open=function(){var D=this;return new _.IB(function(v,h){_.Rx$(D.builder_,function(a){a.action=="picked"?v(a):a.action=="cancel"&&h(Error("Ho"))});
D.picker_&&D.picker_.dispose();D.picker_=D.builder_.build();D.picker_.setVisible(!0)})};
PqY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var xrz=function(D){this.channelId=D};
xrz.prototype.upload=function(D){var v="";D.viewToken&&(v=D.viewToken[2].type);var h=D.docs[0];D=h.crop;v={channel_id:this.channelId,fife_url:h.thumbnails[0].url,photo_id:h.id,is_gallery_image:v=="ytbanner"};D&&(v.crop_top=D.top,v.crop_right=D.right,v.crop_bottom=D.bottom,v.crop_left=D.left);return _.n6f("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:v})};var em=function(){var D=_.c.apply(this,arguments)||this;D.ariaLabel=null;return D};
_.J(em,_.c);_.V=em.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){this.picker&&this.picker.dispose()};
_.V.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.V.computeAriaLabel=function(D){return D};
_.V.onTap=function(){var D=this,v;if((v=this.data)==null||!v.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new PqY(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 h;(h=this.picker)==null||h.open().then(function(a){D.handleBannerPicked(a)},function(){})}};
_.V.handleBannerPicked=function(D){var v=this;this.uploader||(this.uploader=new xrz(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(D).then(function(h){v.handleBannerUploadSucceeded(h)},function(h){v.handleBannerUploadFailed(h)})};
_.V.handleBannerUploadSucceeded=function(D){D&&D.errors?this.handleBannerUploadFailed(D):(_.F1(this.hostElement,"yt-banner-updated",D),this.message=null)};
_.V.handleBannerUploadFailed=function(D){this.message=D&&D.errors&&D.errors.length?D.errors[0]:null};
em.prototype.dataChanged=em.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],em.prototype,"componentBehavior",void 0);_.e([_.l(_.tx),_.n("design:type",Object)],em.prototype,"ironButtonState",void 0);_.e([_.Y(),_.n("design:type",Object)],em.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.n("design:type",Object)],em.prototype,"ariaLabel",void 0);
_.e([_.Y(),_.n("design:type",Object)],em.prototype,"message",void 0);_.e([_.Y(),_.n("design:type",Object)],em.prototype,"picker",void 0);_.e([_.Y(),_.n("design:type",Object)],em.prototype,"uploader",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],em.prototype,"dataChanged",null);_.e([_.m({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],em);
_.w(em,"ytd-channel-banner-editor-renderer",function(){if(V2H!==void 0)return V2H;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return V2H=D},{mode:1});var M2M;var f4o=_.DK(["#"]),nl=function(){return _.c.apply(this,arguments)||this};
_.J(nl,_.c);nl.prototype.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D,!0)||_.GeL(f4o)};
nl.prototype.dataChanged=function(){var D=this.data;D&&D.targetId&&_.qTR(_.tU(),D.targetId,this.moreIcon)};
nl.prototype.dataChanged=nl.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],nl.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nl.prototype,"data",void 0);_.e([_.Br("#more-icon"),_.n("design:type",Object)],nl.prototype,"moreIcon",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nl.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],nl);
_.w(nl,"ytd-channel-tagline-renderer",function(){if(M2M!==void 0)return M2M;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return M2M=D},{mode:1});var CqY;var OS=function(){return _.c.apply(this,arguments)||this};
_.J(OS,_.c);_.V=OS.prototype;_.V.ready=function(){var D=this;_.ZW(this.hostElement).querySelector("#form").addEventListener("submit",function(v){D.onSubmit(v)})};
_.V.onDataChanged=function(){var D;((D=this.data)==null?0:D.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.V.onIconButtonKeydown=function(D){D.keyCode===13&&this.iconButton.click()};
_.V.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.V.openOnClickHandler=function(){this.input.focus()};
_.V.onSubmit=function(D){D.preventDefault();return!1};
_.V.submitOnEnterKeyUp=function(D){var v;if(D.keyCode===13&&((v=this.data)==null?0:v.expandedText)){D=this.data.endpoint;v=_.sV.unsafeClone(D);var h;((h=_.k(v==null?void 0:v.commandMetadata,_.Sa))==null?0:h.url)?(_.k(v.commandMetadata,_.Sa).url=_.np(_.k(v.commandMetadata,_.Sa).url,"query",this.data.expandedText),_.k(v,_.YV)&&(_.k(v,_.YV).query=this.data.expandedText),_.F1(this.hostElement,"yt-navigate",{endpoint:v,tempData:{disableCache:!0}})):(h=new _.XH("Error: Trying to navigate to an endpoint without url",
D),_.mV(h))}};
_.V.updateDataExpandedTextFromBinding=function(D){this.set("data.expandedText",D.detail.value)};
_.GT.Object.defineProperties(OS.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
OS.prototype.onDataChanged=OS.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.GiZ),_.n("design:type",Object)],OS.prototype,"ytdExpandableInputBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],OS.prototype,"data",void 0);_.e([_.Br("#input"),_.n("design:type",Object)],OS.prototype,"input",void 0);_.e([_.Br("#icon-button"),_.n("design:type",HTMLElement)],OS.prototype,"iconButton",void 0);
_.e([_.Y(),_.n("design:type",String),_.n("design:paramtypes",[])],OS.prototype,"searchIcon",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OS.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],OS);
var dZb=_.Zp()(OS,"ytd-expandable-tab-renderer",function(){if(CqY===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);CqY=D}D=CqY;return D},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var oLm;var Kl=function(){var D=_.c.apply(this,arguments)||this;D.avatarSize=80;D.ariaLabel=_.p1("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return D};
_.J(Kl,_.c);Kl.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Kl.prototype.computeHref=function(D){var v;return((v=_.k(D,_.RB))==null?0:v.url)?this.componentBehavior.computeHref_(D):null};
Kl.prototype.onTap=function(){var D,v;(D=this.data)==null||!D.editAvatarServiceEndpoint||((v=_.k(this.data.editAvatarServiceEndpoint,_.RB))==null?0:v.url)||_.xd().resolve(_.fx).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.e([_.l(_.tx),_.n("design:type",Object)],Kl.prototype,"ironButtonState",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Kl.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Kl.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Kl.prototype,"avatarSize",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Kl.prototype,"ariaLabel",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Kl);
_.w(Kl,"ytd-channel-avatar-editor",function(){if(oLm!==void 0)return oLm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return oLm=D},{mode:1});var FIf=_.H(function(D){var v=D.data;var h=D.noPadding;var a=D.enableBanner;var Q=D.cinematicContainerTopbarOffset;var G=D.allowCinematicContainerOverflow;var x=D.displayAsSidebar;D=D.className;_.bW(function(){v().tagManagerId&&(_.vt(v().tagManagerId,_.eA("GL")),w5m(v().tagManagerId))},"vUc8md");
var f=_.l7(sJX,function(){return v().pageHeaderEntityKey});
return _.F("yt-page-header-renderer",{class:_.S3("pageHeaderRendererHost",D)},_.F(_.c4,{data:function(){var C;return((C=f())==null?0:C.header)?f().header:(x==null?0:x())&&v().sidebarContent?v().sidebarContent:v().content}},{pageHeaderViewModel:function(C){return _.F(_.uVJ,{data:C.data,
noPadding:h,enableBanner:a,cinematicContainerTopbarOffset:Q,allowCinematicContainerOverflow:G,displayAsSidebar:function(){return(x==null?void 0:x())&&v().enableSidebarView}})}}))},"Tl");
FIf.idomCompat=!0;_.zh(FIf,"yt-page-header-renderer",{props:{data:_.gj,noPadding:_.gj,enableBanner:_.gj,cinematicContainerTopbarOffset:_.gj,allowCinematicContainerOverflow:_.gj,displayAsSidebar:_.gj,className:_.gj}});_.zh(_.Cd,"yt-image-banner-view-model",{props:{data:_.gj,isPositionRelative:_.gj}});_.zh(_.Zu4,"yt-tab-group-shape",{props:{shape:_.gj}});var zim=_.W4.persistentPanelVisibleSelector,T_=function(){var D=_.c.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(v){return jJs(v,function(){return void D.onSearchNavigate()})};
D.isRichGrid=!1;D.isConstrainedList=!1;D.richGridMiniMode=!1;D.richGridStyle="RICH_GRID_STYLE_UNKNOWN";D.isRichGridShorts=!1;D.responsiveSizing="COMPACT";D.disableGridStateAware=!1;D.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return D};
_.J(T_,_.c);_.V=T_.prototype;_.V.computeHeaderDisabled=function(D,v){return v||!D||this.tabsHidden};
_.V.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.V.computeIsRichGridShorts=function(D){return D==="RICH_GRID_STYLE_SHORTS_GRID"||D==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.V.computeImageBannerViewModel=function(){var D,v;return _.k((v=_.k((D=this.data)==null?void 0:D.content,_.v$9))==null?void 0:v.banner,_.R7t)};
_.V.computeHasCinematicContainer=function(){var D,v;return!((v=_.k((D=this.data)==null?void 0:D.content,_.v$9))==null||!v.background)};
_.V.handleHeaderResize=function(){var D=_.ZW(this.hostElement).querySelector("#header");D&&_.F1(D,"iron-resize")};
_.V.handleInsertTabCommand=function(D){var v=_.k(D,PkU);v&&(v.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(h){return h.tabRenderer&&h.tabRenderer.tabIdentifier===v.tabIdentifier})||this.splice("tabs",v.tabIndex||-1,0,v.tab))};
_.V.handleRefreshChannelTabAction=function(D){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===D&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.V.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.V.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.SB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.V.observerRichGridSlimItemsPerRow=function(){_.SB(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.V.updateCssVars=function(){this.richGridItemsPerRow&&_.SB(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.oZ("rich_grid_max_item_width",500))+16)-16+"px"})};
_.V.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.SB(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.V.onDataChanged=function(){this.handleHeaderResize()};
_.V.onWindowResize=function(){this.handleHeaderResize()};
_.V.onFocusedChanged=function(D){(D=_.xU(D))&&D.is==="tp-yt-paper-tab"&&D.hasRipple()&&(D.getRipple().holdDown=!D.pointerDown&&D.focused)};
_.V.updateSelectedFromBinding=function(D){this.ytdTabbedHeaderBehavior.selected=D.detail.value};
_.V.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.GT.Object.defineProperties(T_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:HRr(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.imageBannerViewModel)==null?void 0:D.style)==="IMAGE_BANNER_STYLE_INSET"}}});
T_.prototype.onDataChanged=T_.prototype.onDataChanged;T_.prototype.updateCssVarsForResponsiveGrid=T_.prototype.updateCssVarsForResponsiveGrid;T_.prototype.updateCssVars=T_.prototype.updateCssVars;T_.prototype.observerRichGridSlimItemsPerRow=T_.prototype.observerRichGridSlimItemsPerRow;T_.prototype.observerRichGridItemsPerRow=T_.prototype.observerRichGridItemsPerRow;T_.prototype.persistentPanelVisibleChanged=T_.prototype.persistentPanelVisibleChanged;
_.e([_.l(_.Fg),_.n("design:type",Object)],T_.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.l(x73),_.n("design:type",Object)],T_.prototype,"ytdTabbedHeaderBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],T_.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],T_.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],T_.prototype,"ytdReduxBehavior",void 0);_.e([_.Br("#tabs"),_.n("design:type",Object)],T_.prototype,"tabsElement",void 0);_.e([_.Y(),_.n("design:type",Array)],T_.prototype,"tabs",void 0);_.e([_.Y(),_.n("design:type",Object)],T_.prototype,"expandableCustomTabRenderable",void 0);
_.e([_.N("tabs.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],T_.prototype,"tabGroupShape",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],T_.prototype,"isRichGrid",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],T_.prototype,"isConstrainedList",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Object)],T_.prototype,"richGridMiniMode",void 0);_.e([_.Y({selector:function(D){return D.ui.richGridStyle}}),
_.n("design:type",Object)],T_.prototype,"richGridStyle",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.n("design:type",Object)],T_.prototype,"isRichGridShorts",void 0);_.e([_.Y({selector:_.wR}),_.n("design:type",Number)],T_.prototype,"richGridItemsPerRow",void 0);_.e([_.Y({selector:function(D){return D.ui.richGridContainerWidth}}),
_.n("design:type",Number)],T_.prototype,"richGridContainerWidth",void 0);_.e([_.Y({selector:_.Fqi}),_.n("design:type",Number)],T_.prototype,"richGridSlimItemsPerRow",void 0);_.e([_.Y(),_.n("design:type",Object)],T_.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],T_.prototype,"responsiveSizing",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],T_.prototype,"disableGridStateAware",void 0);
_.e([_.Y({computed:"computeImageBannerViewModel(data)"}),_.n("design:type",Object)],T_.prototype,"imageBannerViewModel",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.n("design:type",Boolean)],T_.prototype,"hasCinematicContainer",void 0);_.e([_.Y({selector:_.K9r,reflectToAttribute:!0}),_.n("design:type",Boolean)],T_.prototype,"guideIsVisibleButNotPersistent",void 0);
_.e([_.Y({selector:zim}),_.n("design:type",Boolean)],T_.prototype,"persistentPanelVisible",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("imageBannerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],T_.prototype,"hasBanner",null);_.e([_.Y({reflectToAttribute:!0}),_.N("imageBannerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],T_.prototype,"hasInsetBanner",null);
_.e([_.Y({computed:"computeTabsHidden(tabs)",value:!0}),_.n("design:type",Boolean)],T_.prototype,"tabsHidden",void 0);_.e([_.Ni("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T_.prototype,"persistentPanelVisibleChanged",null);_.e([_.Ni("richGridItemsPerRow","isRichGrid"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T_.prototype,"observerRichGridItemsPerRow",null);
_.e([_.Ni("richGridSlimItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T_.prototype,"observerRichGridSlimItemsPerRow",null);_.e([_.Ni("richGridItemsPerRow","richGridMiniMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T_.prototype,"updateCssVars",null);
_.e([_.Ni("richGridContainerWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T_.prototype,"updateCssVarsForResponsiveGrid",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T_.prototype,"onDataChanged",null);_.e([_.m({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],T_);
_.w(T_,"ytd-tabbed-page-header",function(){if(Gud!==void 0)return Gud;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Gud=D},{mode:1});var UrQ;var RT=function(){return _.c.apply(this,arguments)||this};
_.J(RT,_.c);RT.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.SB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.GT.Object.defineProperties(RT.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var D,v;return this.componentBehavior.computeIcon_(((v=_.k((D=this.data)==null?void 0:D.badge,_.fl$))==null?void 0:v.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.badge,_.fl$))==null?void 0:v.label}}});
RT.prototype.observerRichGridItemsPerRow=RT.prototype.observerRichGridItemsPerRow;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],RT.prototype,"componentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],RT.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.y_}),_.n("design:type",Boolean)],RT.prototype,"richGridMiniMode",void 0);
_.e([_.Y({selector:_.wR}),_.n("design:type",Number)],RT.prototype,"richGridItemsPerRow",void 0);_.e([_.Y(),_.n("design:type",Object)],RT.prototype,"data",void 0);_.e([_.Ni("richGridItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RT.prototype,"observerRichGridItemsPerRow",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],RT.prototype,"badgeIconName",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],RT.prototype,"badgeLabel",null);_.e([_.m({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],RT);
_.w(RT,"ytd-member-hub-profile-renderer",function(){if(UrQ!==void 0)return UrQ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return UrQ=D},{mode:1});var LIm;var ih=function(){return _.c.apply(this,arguments)||this};
_.J(ih,_.c);ih.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ih.prototype,"data",void 0);_.e([_.m({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],ih);
_.w(ih,"ytd-settings-sidebar-renderer",function(){if(LIm!==void 0)return LIm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return LIm=D},{mode:1});var Z7R;var Wz=function(){var D=_.c.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(v){return jJs(v,function(){return void D.onSearchNavigate()})};
return D};
_.J(Wz,_.c);Wz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Wz.prototype.onSearchNavigate=function(){this.selected=void 0};
Wz.prototype.onTabsChange=function(){var D,v=(D=this.tabs)==null?void 0:D.findIndex(function(h){var a;return h==null?void 0:(a=h.tabRenderer)==null?void 0:a.selected});
v!==void 0&&(this.selected=v)};
Wz.prototype.onTabsActive=function(D){if(this.tabs!==void 0){var v,h;(D=(v=this.tabs[D.detail.selected])==null?void 0:(h=v.tabRenderer)==null?void 0:h.endpoint)&&_.F1(this.hostElement,"yt-navigate",{endpoint:D})}};
_.GT.Object.defineProperties(Wz.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:HRr(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Wz.prototype.onTabsChange=Wz.prototype.onTabsChange;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Fg),_.n("design:type",Object)],Wz.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],Wz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Wz.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Array)],Wz.prototype,"tabs",void 0);_.e([_.Y(),_.n("design:type",Number)],Wz.prototype,"selected",void 0);_.e([_.N("tabs.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],Wz.prototype,"tabGroupShape",null);_.e([_.Y(),_.n("design:type",Object)],Wz.prototype,"expandableCustomTabRenderable",void 0);
_.e([_.N("tabs"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Wz.prototype,"tabsEnabled",null);_.e([_.qi("tabs"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wz.prototype,"onTabsChange",null);_.e([_.m({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Wz);
_.w(Wz,"ytd-topic-channel-details-renderer",function(){if(Z7R!==void 0)return Z7R;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Z7R=D},{mode:1});var ELY;var t7=function(){var D=_.c.apply(this,arguments)||this;D.disableGridStateAware=!1;return D};
_.J(t7,_.c);t7.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]]"}}}}}};
t7.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
t7.prototype.updateCssVars=function(){_.SB(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.oZ("rich_grid_max_item_width",500))+16)-16+"px"})};
t7.prototype.updateCssVars=t7.prototype.updateCssVars;t7.prototype.activeChanged=t7.prototype.activeChanged;_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],t7.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],t7.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],t7.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Array)],t7.prototype,"tabs",void 0);_.e([_.Y(),_.n("design:type",Boolean)],t7.prototype,"active",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],t7.prototype,"disableGridStateAware",void 0);
_.e([_.Y({selector:_.wR}),_.n("design:type",Number)],t7.prototype,"richGridItemsPerRow",void 0);_.e([_.Y({selector:_.y_}),_.n("design:type",Boolean)],t7.prototype,"richGridMiniMode",void 0);_.e([_.Br("ytd-carousel-item-renderer"),_.n("design:type",Object)],t7.prototype,"carousel",void 0);_.e([_.Ni("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t7.prototype,"activeChanged",null);
_.e([_.Ni("richGridItemsPerRow","richGridMiniMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t7.prototype,"updateCssVars",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],t7);
_.w(t7,"ytd-carousel-header-renderer",function(){if(ELY!==void 0)return ELY;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return ELY=D},{mode:1});var I4M;var gLd=_.DK(["https://www.google-analytics.com/analytics.js"]),rO=function(){var D=_.c.apply(this,arguments)||this;D.scriptAnalyticsAdded=!1;return D};
_.J(rO,_.c);rO.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var D,v=(D=this.data)==null?void 0:D.tagManagerId;v&&(_.vt(v,_.eA("GL")),w5m(v))};
rO.prototype.sendGoogleAnalyticsPageview=function(D){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var h=_.Kz.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(h)};
var v=window.ga;v("set","page",window.location.pathname);v.l=+new Date;v("set","forceSSL",!0);v("create",D,"'auto'");v("send","pageview")};
rO.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var D=_.l9("SCRIPT");D.name="ga-analytics";var v=_.UV(gLd);_.Ge(D,v);D.async=!0;_.ZW(this.hostElement).appendChild(D)};
rO.prototype.dataChanged=rO.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],rO.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rO.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],rO);
_.w(rO,"ytd-channel-metadata-renderer",function(){if(I4M!==void 0)return I4M;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return I4M=D},{mode:1});var kuH;var S8f;var uh=function(){var D=_.c.apply(this,arguments)||this;D.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);D.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return D};
_.J(uh,_.c);_.V=uh.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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_]]"}}}}}};
_.V.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.V.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.computeAlertStyle_=function(D){return D};
_.V.observerElementsPerRow=function(){this.elementsPerRow&&_.SB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.V.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.V.requestElementsPerRow=function(){_.F1(this.hostElement,"yt-request-elements-per-row")};
uh.prototype.onIsVisibleChanged_=uh.prototype.onIsVisibleChanged_;uh.prototype.observerElementsPerRow=uh.prototype.observerElementsPerRow;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],uh.prototype,"actionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],uh.prototype,"data",void 0);_.e([_.Y({value:6,reflectToAttribute:!0}),_.n("design:type",Number)],uh.prototype,"elementsPerRow",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],uh.prototype,"wrapButtons",void 0);_.e([_.Y({value:_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.n("design:type",Boolean)],uh.prototype,"isMusic",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.n("design:type",String)],uh.prototype,"alertStyle",void 0);_.e([_.Y({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.n("design:type",Function)],uh.prototype,"dismissBoundButtonTap_",void 0);_.e([_.Y({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.n("design:type",Function)],uh.prototype,"acceptBoundButtonTap_",void 0);_.e([_.Ni("elementsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uh.prototype,"observerElementsPerRow",null);_.e([_.Ni("data.isVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uh.prototype,"onIsVisibleChanged_",null);_.e([_.Ry({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],uh);
_.w(uh,"yt-alert-with-actions-renderer",function(){if(S8f===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;kuH===void 0&&(kuH=document.createElement("template"));var a=kuH;h.call(v,a.content.cloneNode(!0),D.content.firstChild);S8f=D}D=S8f;return D},{mode:2});_.zh(_.H(function(D){function v(E){var I={};return _.F(_.IY,{text:E,className:_.S3("ytPersonalGreetingViewModelHeadline",(I.ytPersonalGreetingViewModelHeadlineSmall=function(){return f()===48},I))})}
function h(E,I){return _.F("span",{el:E,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},v(I))}
var a=_.ML(_.eb(function(){var E;return(E=D.data())==null?void 0:E.rendererContext},void 0,void 0,void 0,!0)),Q=_.va("span"),G=_.va("span"),x=function(){return D.data().canvasPromoData},f=function(){var E;
return(E=D.data().bannerHeight)!=null?E:56},C=_.Zof(a,{throttleMs:100}),U=_.Zof(Q,{throttleMs:100}),L=_.Zof(G,{throttleMs:100}),Z=function(){return U.width()-C.width()>1};
return _.F("yt-personal-greeting-view-model",{el:a,"aria-hidden":Z,class:_.S3(D.className,"ytPersonalGreetingViewModelHost"),style:_.NL({height:(0,_.Gp)(function(){return Z()?0:f()})})},_.F(_.z,{cond:function(){return D.data().avatar&&!(L.width()+(D.data().avatar?48:0)-C.width()>1)},
then:function(){return _.F(_.c4,{data:function(){return D.data().avatar}},{decoratedAvatarViewModel:function(E){return _.F(_.GG,{data:E.data,
className:_.S3("ytPersonalGreetingViewModelAvatar")})}})}}),_.F("h1",null,v(function(){var E;
return(x==null?void 0:(E=x())==null?void 0:E.headline)||(L.width()+(D.data().avatar?48:0)-C.width()>1?D.data().shorterGreeting:D.data().greeting)})),h(G,function(){return D.data().greeting}),h(Q,function(){return D.data().shorterGreeting}))},"Ul"),"yt-personal-greeting-view-model",{props:{data:_.gj,
className:_.gj}});var DH=function(){var D=_.c.apply(this,arguments)||this;D.hidden=!1;D.isConstrainedList=!1;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.responsiveSizing="COMPACT";D.attachedPlayers=_.g("kevlar_channel_trailer_multi_attach")?[]:void 0;D.player=null;D.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return D};
_.J(DH,_.c);_.V=DH.prototype;
_.V.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}}}}};
_.V.created=function(){var D=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){D.disposeMastheadAd()}]};
_.V.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new CkS(this.refresh,this.contents))};
_.V.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.V.activeChanged=function(){var D=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=D)};
_.V.tabsChanged=function(){var D=this,v,h;if(this.pageSubtype==="channels"||_.g("kevlar_tab_gestures_for_tabbed_header_data")&&((v=this.data)==null?0:(h=v.header)==null?0:h.carouselHeaderRenderer))this.tabGestures=new zEd(this.contents,this.contents,this.hostElement,this.header,function(x){D.ytdReduxBehavior.dispatch(x)});
var a,Q,G;v=(a=this.data)==null?void 0:(Q=a.contents)==null?void 0:(G=Q.twoColumnBrowseResultsRenderer)==null?void 0:G.tabs;this.tabGestures&&this.tabGestures.tabsChanged(v)};
_.V.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.V.engagementPanelsChanged=function(){var D=_.xd().resolve(_.De);if(D){if(this.engagementPanels)for(var v=_.P(this.engagementPanels),h=v.next();!h.done;h=v.next()){var a=void 0;(h=(a=h.value.identifier)==null?void 0:a.tag)&&D.panelMap.delete(h)}this.engagementPanels=[];var Q;v=_.P(((Q=this.data)==null?void 0:Q.panels)||[]);for(Q=v.next();!Q.done;Q=v.next()){Q=_.k(Q.value,_.AZs);var G=h=void 0,x=void 0,f=void 0;if(a=((h=Q)==null?void 0:h.targetId)||((G=Q)==null?void 0:G.panelIdentifier)||((x=Q)==
null?void 0:(f=x.identifier)==null?void 0:f.tag))G=h=void 0,(G=(h=D).registerPanelContent)==null||G.call(h,a,{engagementPanelSectionListRenderer:Q}),this.engagementPanels.push(Q)}}};
_.V.onStampFinished=function(){var D=this;_.$R(this,function(){if(D.tabGestures){var v=D.tabGestures;if(v.scrollPositionNeedsUpdate){var h=_.xd().resolve(_.PV(_.P4)),a;if((a=v.selectedTab)!=null&&a.title&&h&&(a=h.getCurrentPage())){if(v.scrollPositionForTabs.has(v.selectedTab.title)){var Q,G;h=(G=(Q=h.getCurrentPage())==null?void 0:Q.clientHeight)!=null?G:0;Q=v.scrollPositionForTabs.get(v.selectedTab.title);a.setScrollTop(Q);h>Q+100&&(v.scrollPositionNeedsUpdate=!1)}else a.setScrollTop(Math.min(v.lastVisitedTabScrollPosition!==
void 0?v.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,v.tabsStartAtInPx)),v.scrollPositionNeedsUpdate=!1;v.ytdReduxDispatch(y53(!1))}}}})};
_.V.loadPage_=function(D){this.initCsi();D&&(this.data=D);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.V.getTitle=function(D){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",D))return this.get("microformat.microformatDataRenderer.title",D);if(this.get("header.feedTabbedHeaderRenderer.title",D))return _.$V(this.get("header.feedTabbedHeaderRenderer.title",D));if(this.get("header.interactiveTabbedHeaderRenderer.title",D))return this.get("header.interactiveTabbedHeaderRenderer.title",D);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
D))return _.$V(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",D));var v,h;return(D==null?0:(v=D.header)==null?0:(h=v.pageHeaderRenderer)==null?0:h.pageTitle)?D.header.pageHeaderRenderer.pageTitle:""};
_.V.updateTitle=function(D){_.F1(this.hostElement,"yt-update-title",this.getTitle(D))};
_.V.initCsi=function(){_.A5S(this.pageSubtype||"browse",["ol","cpt"])};
_.V.getPlayer=function(){if(_.g("kevlar_channel_trailer_multi_attach")){for(var D=_.P(this.attachedPlayers),v=D.next();!v.done;v=D.next())if(v=v.value,v.isConnected||_.Ra(this.hostElement,v))return v;return null}return this.player};
_.V.getPlayerContainer=function(){return null};
_.V.onPlayerAttached=function(D,v){_.g("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(v):this.player=v};
_.V.onPlayerDetached=function(D,v){_.g("kevlar_channel_trailer_multi_attach")?(D=this.attachedPlayers.indexOf(v),D<0||this.attachedPlayers.splice(D,1)):this.player=null};
_.V.getServiceTrackingParams=function(){var D,v;return((D=this.data)==null?void 0:(v=D.responseContext)==null?void 0:v.serviceTrackingParams)||[]};
_.V.setMastheadAd=function(D){D&&D.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=D&&D.mastheadAd};
_.V.dataChanged=function(){var D=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.SmZ();_.$R(this,function(){_.U9(D.hostElement,"ytd-update-grid-state-action")})};
_.V.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.V.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(v){return!!v.alertWithActionsRenderer})}};
_.V.computeGreetingData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(v){return!!v.personalGreetingViewModel})}};
_.V.computeHasMemberHubProfileRenderer=function(D){var v;return!!(D==null?0:(v=D.header)==null?0:v.memberHubProfileRenderer)};
_.V.handleAlertCommand=function(D){this.get("alertCommand.alert.alertWithActionsRenderer",D)&&(D=_.k(D,tz3),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",D.alert))};
_.V.handleYtPlaylistDeletionRedirect=function(D){D=this.get("playlistDeletionRedirectCommand.redirectEndpoint",D);_.F1(this.hostElement,"yt-navigate",{endpoint:D})};
_.V.computeFluidWidth=function(D,v,h){if(v==="mini_app"||h)return!0;var a,Q,G;D=D==null?void 0:(a=D.contents)==null?void 0:(Q=a.twoColumnBrowseResultsRenderer)==null?void 0:(G=Q.tabs)==null?void 0:G.find(function(C){var U;return C==null?void 0:(U=C.tabRenderer)==null?void 0:U.selected});
if(!D)return!1;var x,f;return!!((x=D.tabRenderer)==null?0:(f=x.content)==null?0:f.richGridRenderer)&&!["channel","channels","playables"].includes(v)};
_.V.computeHeaderFluidWidth=function(D){return D==="hashtag-landing-page"};
_.V.computeHasSidebar=function(D){var v;return!!(D.sidebar||((v=D.header)==null?0:v.playlistHeaderRenderer))};
_.V.computeHasPageHeaderSidebar=function(D){var v,h;return!!((v=D.header)==null?0:(h=v.pageHeaderRenderer)==null?0:h.enableSidebarView)};
_.V.computeUseUnifiedShowPageLayout=function(D){if(!D||this.pageSubtype!=="show"||!D.sidebar||!D.sidebar.playlistSidebarRenderer)return!1;D=D.sidebar.playlistSidebarRenderer;if(!D.items)return!1;for(var v=0;v<D.items.length;v++)if(_.k(D.items[v],D7I)){var h=void 0;return((h=_.k(D.items[v],D7I))==null?void 0:h.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V.computeIsConstrainedList=function(D){return _.g("web_enable_constrained_list_subscriptions_channels")&&D==="subscriptions-channels"};
_.V.computeResponsiveSizing=function(D){return D==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.GT.Object.defineProperties(DH.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v;return((D=this.data)==null?0:(v=D.header)==null?0:v.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var D,v;if(!((D=this.data)==null?0:(v=D.sidebar)==null?0:v.playlistSidebarRenderer))return!1;var h;return(h=this.data)!=null&&h.header?!1:!0}}});
_.GT.Object.defineProperties(DH,{template:{configurable:!0,enumerable:!0,get:function(){if(U7m===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);U7m=D}D=U7m;return D}}});
DH.prototype.dataChanged=DH.prototype.dataChanged;DH.prototype.onPlayerDetached=DH.prototype.onPlayerDetached;DH.prototype.onPlayerAttached=DH.prototype.onPlayerAttached;DH.prototype.onStampFinished=DH.prototype.onStampFinished;DH.prototype.engagementPanelsChanged=DH.prototype.engagementPanelsChanged;DH.prototype.scrollAtTopChanged=DH.prototype.scrollAtTopChanged;DH.prototype.tabsChanged=DH.prototype.tabsChanged;DH.prototype.activeChanged=DH.prototype.activeChanged;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],DH.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],DH.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],DH.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.$T.YtPageBehavior),_.n("design:type",Object)],DH.prototype,"ytPageBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],DH.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],DH.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],DH.prototype,"hidden",void 0);
_.e([_.Y(),_.n("design:type",Object)],DH.prototype,"mastheadAdData",void 0);_.e([_.Y({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.n("design:type",Object)],DH.prototype,"alertBannerData",void 0);_.e([_.Y({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.n("design:type",Object)],DH.prototype,"greetingData",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],DH.prototype,"pageSubtype",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.n("design:type",Boolean)],DH.prototype,"hasMemberHubProfileRenderer",void 0);_.e([_.Y({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],DH.prototype,"hasSidebar",void 0);_.e([_.Y({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],DH.prototype,"hasPageHeaderSidebar",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],DH.prototype,"roundedContainer",void 0);_.e([_.Y({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],DH.prototype,"useUnifiedShowPageLayout",void 0);_.e([_.Y({computed:"computeIsConstrainedList(pageSubtype)"}),_.n("design:type",Object)],DH.prototype,"isConstrainedList",void 0);
_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],DH.prototype,"usePlaylistHeaderRenderer",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],DH.prototype,"useOldPlaylistSidebarRenderer",null);_.e([_.Y({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.n("design:type",Boolean)],DH.prototype,"fluidWidth",void 0);_.e([_.Y({selector:function(D){return D.ui.scrollAtTop}}),
_.n("design:type",Boolean)],DH.prototype,"scrollAtTop",void 0);_.e([_.Y({selector:_.TMU}),_.n("design:type",Boolean)],DH.prototype,"tabGesturesIsActive",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],DH.prototype,"darkerDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.n("design:type",Boolean)],DH.prototype,"disableHeaderFluidWidth",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.n("design:type",String)],DH.prototype,"responsiveSizing",void 0);_.e([_.Br("ytd-two-column-browse-results-renderer"),_.n("design:type",HTMLElement)],DH.prototype,"contents",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],DH.prototype,"header",void 0);_.e([_.Br("ytd-refresh"),_.n("design:type",Object)],DH.prototype,"refresh",void 0);
_.e([_.Ni("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DH.prototype,"activeChanged",null);_.e([_.Ni("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DH.prototype,"tabsChanged",null);_.e([_.Ni("scrollAtTop"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DH.prototype,"scrollAtTopChanged",null);
_.e([_.Y(),_.n("design:type",Object)],DH.prototype,"engagementPanels",void 0);_.e([_.Ni("data.panels"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DH.prototype,"engagementPanelsChanged",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DH.prototype,"onStampFinished",null);
_.e([_.lc("yt-player-attached"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Element]),_.n("design:returntype")],DH.prototype,"onPlayerAttached",null);_.e([_.lc("yt-player-detached"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Element]),_.n("design:returntype")],DH.prototype,"onPlayerDetached",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DH.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-browse"})],DH);_.jk.registerService(_.J7r,DH);
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("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 rH,b1d,dFK,jNK,sNs,mFr,H1U,yPK,wUZ,eyK,nE2,O1r,Kn3,Ryr,i1r,taU,rPX,u1r,vZZ,hkC,aUZ,$Db,uV,Ga$,D8,VqZ,P03,xDs,MqZ,fUd,oZX,zk$,C0S,TK2,UDC,L6Z,ZGs,EZK,IU2,gZr,kar,S4U,JA2,lUr,NRb,BRI,Xfm,q4r,bGU,dDd,sGr,HG3,yAb,wfC,ek3,nZX,OGS,K6X,TR3,Rks,iGK,W63,tq3,rAd,uhX,DPb,vVC,hfU,a62,$Pr,Gbr,VLZ,PuU,xPC,MLd,f6X,Cu2,oVC,Fcd,zfr,UPs,Lc3,Zqm,EVd,I6s,gVX,kb3,SLK,JQb,pR3,l6U,NT3,YLK,BT3,xW,cQX,XRm,bq$,nVr,RfU,iq3,DiS,vUb,uTr,tLS,Qy$,Pcr,Fgd,Wcr,MB2,GH3,z$,Ui2,EUm,kHr,IWb,gUr,SIs,NxS,pr$,YIb,Bx$,lW3,JV2,cVr,Es,
Ix,jyd,syr,gg,mib,HZX,yV3,Tx3,RtX,kW,SP,WgC,iZS,tBr,rV2,uS3,DKK,JC,pt,lG,PPb,xKb,MQ2,YW,zSC,fpr,FNS,UKS,CP2,ZbX,ot3,gtK,EtK,IpU,By,S_s,kzr,N4X,X8C,qW,bG,B4$,q_C,cD2,ADU,jP,mw,Hy,yu,v5I,Obb,$LU,Q3b,GhI,V3K,xL3,Hbm,yD3,nt,eSK,wg,eP,ntC,PLr,hUI,w8U,Kt,Lrb,E5$,I2s,Z_U,o52,khm,pXr,tC,iG,Wy,YAb,CLI,uG,Jdd,FrZ,SAb,ULC,f2K,zUX,cdS,XXX,Ad$,b_U,j3r,s33,mLC,H_$,wXZ,ydd,n5K,O_r,T1s,RUr,WrX,t3U,rdr,uZd,DqU,veI,hVU,$q$,aYS,QgI,Gf$,h_,VbX,P72,aw,xqr,Mb$,fYX,C7Z,oe3,FsX,zVI,Uqr,ZjX,QG,Eer,IYr,SnK,p4r,lYX,YnZ,NpK,
Bp3,cnC,X4s,qnr,bjr,dq3,jgX,sg2,mqC,Hjr,ynr,w4r,eV$,nem,Ojr,ijU,Wsm,Tpd,RVm,Ksd,tbs,DOI,rn2,ueU,ajZ,v2U,h6S,$Os,QiC,GNX,Vom,xOr,MoZ,fjX,o2K,F2s,UOr,ZSd,Ijr,kNK,JmS,ljX,YyI,cmd,qyK,bSm,dOK,sir,ji$,HSU,ymI,wOs,e6I,VG,n22,OS2,K2$,hmm,$hX,QQr,xhd,C8,M6$,fSb,CpZ,FPs,oYZ,zmr,UhK,LPs,ZKs,EYb,MW,ISC,ow,g2K,gYs,kk2,AAm,Sk3,JL2,p7C,lSr,NoU,Ykm;
rH=function(D){if(!D)return"browse";var v=D.page,h=D.url,a,Q,G,x=(a=D.response)==null?void 0:(Q=a.responseContext)==null?void 0:(G=Q.webResponseContextExtensionData)==null?void 0:G.pageTheme;if(x)v=x.toLowerCase().replace(/_/g,"-");else if(v!=="watch"&&v!=="learning_journey_watch"){var f,C;if((v==="browse"||v==="settings")&&((f=D.response)==null?0:(C=f.sidebar)==null?0:C.settingsSidebarRenderer))v="WEB_PAGE_TYPE_SETTINGS";else{var U,L;v==="browse"&&((U=D.response)==null?0:(L=U.metadata)==null?0:L.channelMetadataRenderer)?
v="channel":h&&(v=_.K_L(h)||v)}}return v};
b1d=function(){var D=_.T3("yt.aba.att");return D?D:_.dn.instance!==void 0?_.dn.instance.rLZ.bind(_.dn.instance):null};
dFK=function(D,v){var h;return _.M(function(a){return(h=b1d())?a.return(h(D,v,6E4)):a.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
jNK=function(D,v,h,a,Q){v=v===void 0?[]:v;Q=Q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.MD(D),dialogMessages:v.map(function(G){return _.MD(G)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.MD(h),serviceEndpoint:Q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.MD(a)}}}}}};
sNs=function(D){var v=!!_.UH().queueProxy;var h,a,Q;D=D==null?void 0:(h=D.response)==null?void 0:(a=h.currentVideoEndpoint)==null?void 0:(Q=a.watchEndpoint)==null?void 0:Q.playlistId;return!(!v&&!D)};
mFr=function(D,v){var h=_.eh();if(sNs(D)&&!_.g("web_watch_disable_playlist_auto_miniplayer"))return h.playlistWatchPageActivation=!0;switch(rH(v)){case "yts-products":return h.productDetailsPageActivation=!0;case "mini_app":return h.miniAppPageActivation=!0;case "playables":return h.playablesDestPageActivation=!0;case "companion-canvas":return h.companionCanvasActivation=!0;default:return!1}};
H1U=function(D){D=_.V2q(D);D.length>0&&D[0].focus()};
yPK=function(D,v,h){for(var a=typeof D==="string"?D.split(""):D,Q=D.length-1;Q>=0;--Q)Q in a&&v.call(h,a[Q],Q,D)};
wUZ=function(D,v){v=_.Y8L(D,v);v>=0&&_.XAi(D,v)};
eyK=function(D){return Array.prototype.concat.apply([],arguments)};
nE2=function(D){var v=0;v=v===void 0?0:v;if(!_.vs(D))throw _.hb("uint64");var h=typeof D;switch(v){case 512:switch(h){case "string":return _.AbI(D);case "bigint":return String((0,_.L3)(64,D));default:return _.cbA(D)}case 1024:switch(h){case "string":return _.qFr(D);case "bigint":return _.Ab((0,_.L3)(64,D));default:return _.Xm7(D)}case 0:switch(h){case "string":return _.AbI(D);case "bigint":return _.Ab((0,_.L3)(64,D));default:return _.BJ7(D)}default:return _.K4(v,"Unknown format requested type for int64")}};
O1r=function(D){D!=null&&(D=D.JSC$8825_value_||"",D=typeof D==="string"?D:new Uint8Array(D));return D};
Kn3=function(D,v){if(/-[a-z]/.test(v))return null;if(_.J3b&&D.dataset){if(_.ELf()&&!(v in D.dataset))return null;D=D.dataset[v];return D===void 0?null:D}return D.getAttribute("data-"+_.pm(v))};
Ryr=function(){var D=TK2;_.T3("yt.ads.biscotti.getId_")||_.Gm("yt.ads.biscotti.getId_",D)};
i1r=function(D){_.Gm("yt.ads.biscotti.lastId_",D)};
taU=function(){var D={};for(_.jO=new Wn2(D.handleError===void 0?_.H1:D.handleError,D.logEvent===void 0?_.jj:D.logEvent);_.sz.length>0;)switch(D=_.sz.shift(),D.type){case "ERROR":_.jO.logError(D.payload);break;case "EVENT":_.jO.logEvent(D.eventType,D.payload)}};
rPX=function(D,v,h){return _.QXI(function(a){return h?a.userIdentifier!==void 0&&!D.includes(a.userIdentifier)&&h.includes(a.publicName):a.userIdentifier!==void 0&&!D.includes(a.userIdentifier)},v)};
u1r=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return v=_.BV("YtIdbMeta hasAnyMeta other"),a.yield(_.QXI(function(Q){return Q.userIdentifier!==void 0&&Q.userIdentifier!==v},D),2);
h=a.yieldResult;return a.return(h.length>0)})};
vZZ=function(D,v){DDs||(DDs=_.HK.addLowPriorityJob(function(){var h,a,Q,G,x;return _.M(function(f){switch(f.nextAddress){case 1:return f.yield(_.Vx(),2);case 2:h=f.yieldResult;if(!h)return f.return();a=!0;_.gE(f,3);return f.yield(rPX(D,h,v),5);case 5:Q=f.yieldResult;if(!Q.length){a=!1;f.jumpTo(6);break}G=Q[0];return f.yield(_.u8(G.actualName),7);case 7:return f.yield(_.h2(G.actualName,h),6);case 6:_.rl(f,4);break;case 3:x=_.NS(f),_.mb(x),a=!1;case 4:_.HK.cancelJob(DDs),DDs=0,a&&vZZ(D,v),_.YI(f)}})}))};
hkC=function(){var D;return _.M(function(v){return v.nextAddress==1?v.yield(_.Vx(),2):(D=v.yieldResult)?v.return(u1r(D)):v.return(!1)})};
aUZ=function(D){var v=100;v=v===void 0?500:v;var h,a,Q,G,x,f;return _.M(function(C){return C.nextAddress==1?(h=_.eA("INNERTUBE_CONTEXT_CLIENT_NAME",0),a=[h,(0,_.xz)()-2592E6],Q=[h,(0,_.xz)()],G=IDBKeyRange.bound(a,Q),C.yield(_.X8L(D),2)):C.nextAddress!=3?(x=C.yieldResult,f=[],C.yield(_.vK(x,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(U){f.length=0;return _.MH(U.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:G,direction:"prev"},function(L){if(L.getValue()&&f.length<
v)return f.push(L.getValue()),L.delete().then(function(){return L.continue()})})}),3)):C.return(f)})};
$Db=function(){var D;return _.M(function(v){if(v.nextAddress==1)return v.yield(_.Vx(),2);D=v.yieldResult;if(!D||!_.cV()&&!_.g("nwl_init_require_datasync_id_killswitch")||!_.tQc())return v.jumpTo(0);_.upL=!0;_.rDA.isNwlInitialized=_.upL;return v.yield(_.yB$().awaitInitialization(),0)})};
uV=function(D,v){_.ULL[D]=!0;var h=_.MY();h&&h.publish.apply(h,arguments);_.ULL[D]=!1};
Ga$=function(){if(_.Tx7()&&!QGs){var D=function(h){h=h.data;if(h.op==="serializedGelBatch"){var a=_.Lsf.get(h.key);a&&(_.Eec(h.serializedBatch,a.client,a.resolve,a.networklessOptions,a.isIsolated,a.useVSSEndpoint,a.dangerousLogToVisitorSession,a.requestsOutstanding),_.Lsf.delete(h.key))}},v=_.Kgq();
v&&(v.addEventListener("message",D),v.onerror=function(){_.Lsf.clear()});
QGs=!0}};
D8=function(){this.relativeTimeStart_=_.M6()};
VqZ=function(D,v){D!=null&&this.append.apply(this,arguments)};
P03=function(){return _.TT("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
xDs=function(D,v,h){h=h===void 0?!1:h;var a,Q,G,x,f;return _.M(function(C){switch(C.nextAddress){case 1:_.NM("SOCS",D,34128E3,"youtube.com",!0);if(_.E1)return Q=fetch(v,{method:"POST",mode:_.u4(v),credentials:_.rd(v),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),G=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.u4("/upgrade_visitor_cookie?eom=1"),credentials:_.rd("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),C.yield(Promise.all([Q,G]).then(function(U){return U[1]}),5);
fetch(v,{method:"POST",mode:_.u4(v),credentials:_.rd(v),cache:"no-store",headers:{"Content-Type":"text/plain"}});return C.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.u4("/upgrade_visitor_cookie?eom=1"),credentials:_.rd("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:a=C.yieldResult;C.jumpTo(3);break;case 5:a=x=C.yieldResult;case 3:if(!a.ok)throw Error("sf");return C.yield(a.text(),7);case 7:f=C.yieldResult,
!f.includes('"state_switch":true')&&!h||f.includes("skip_reload_for_test")||window.location.reload(),_.YI(C)}})};
MqZ=function(D){return _.M(function(v){return v.nextAddress==1?v.yield(xDs(D.socsCookie,D.savePreferenceUrl,!0),2):v.return()})};
fUd=function(D){return _.M(function(v){return v.nextAddress==1?v.yield(xDs(D.socsCookie,D.savePreferenceUrl),2):v.return()})};
oZX=function(D){D=D.xhr.responseText;if(!_.Gu(D,")]}'"))throw new vy;D=JSON.parse(D.substr(4));if((D.type||1)>1)throw new vy;D=D.id;i1r(D);hC=_.ZE(D);C0S(18E5,2);return D};
zk$=function(D,v){v=new F6X(v);i1r("");hC=_.ois(v);D>0&&C0S(12E4,D-1);throw v;};
C0S=function(D,v){_.ZX(function(){_.P1S().then(oZX,function(h){return zk$(v,h)}).thenCatch(_.Ay)},D)};
TK2=function(){var D=_.fD2();if(D!==void 0)return _.H8(D);hC||(hC=_.P1S().then(oZX).thenCatch(function(v){return zk$(2,v)}));
return hC};
UDC=function(){var D=document;return _.j2(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(v){return"on"+v.toLowerCase()in D})};
L6Z=function(D){D.addEventListener("click",function(v){var h=v.target;h&&h.getAttribute("href")&&(h=h.getAttribute("href"),_.Dx(window,h,"_blank"),v.preventDefault(),v.stopImmediatePropagation())})};
ZGs=function(D){var v,h,a,Q=(a=(h=((v=D.mainDownloadsListEntity)!=null?v:{})[_.G4I])==null?void 0:h.refresh)!=null?a:"",G;D=(G=D.refresh)==null?void 0:G[Q];Q=D!=null?D:{};return(Q==null?0:Q.refreshTime)?Number(Q==null?void 0:Q.refreshTime):0};
EZK=function(D,v){var h=_.dR(D);return v.every(function(a){var Q;a=a==null?void 0:(Q=a.playbackDataEntity)==null?void 0:Q.key;if(!a)return!1;Q=_.IG(_.LG(a).entityId,"mainVideoEntity");return!!h[Q]})};
IU2=function(D){D=_.AA(D.entities);return _.IEi(D).length};
gZr=function(D,v){if(v){var h;D=(h=_.gR(D.entities,"downloadQualityPickerEntity",v))!=null?h:void 0}else D=void 0;return D};
kar=function(D){var v=document.getElementsByTagName("ytd-enforcement-message-view-model");v.length===0||getComputedStyle(v[0]).display==="none"?D(0,"p.h_"):D(1,"p.h_")};
S4U=function(){ax=0;var D=[_.XT(!0)];$W&&_.U9($W,"yt-window-resized",D)};
JA2=function(){ax||(ax=_.HK.addLowPriorityJob(S4U,200))};
lUr=function(){Qu=0;pfU=_.psJ(document);var D=[pfU];$W&&_.U9($W,"yt-window-scrolled",D)};
NRb=function(){Qu||(Qu=_.HK.addLowPriorityJob(lUr,200))};
BRI=function(D){D=D===void 0?null:D;Y4U.push(_.GC(window,"resize",JA2));Y4U.push(_.GC(window,"scroll",NRb));D&&($W=D)};
Xfm=function(){var D={isWide:_.l8.get("wide","0")==="1"},v=_.YE();if(v=v.getFlag(165)||v.getFlag(174))D.theme=_.sL(!0);if(_.Q8q()){var h=_.jL()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D.systemTheme=h}!v&&_.g("parent_tools_enable_app_settings")&&_.DX(window.location.href).theme!==void 0&&(D.theme=_.sL());if((v=G$)?!_.sV.equals(v,D):D)v={currentValue:D},cA$&&(v.timeSinceLastSnapshotSecs=Math.round(((0,_.xz)()-cA$)/1E3)),G$&&(v.previousValue=G$),_.jj("appSettingsCaptured",v),G$=D,cA$=
(0,_.xz)()};
q4r=function(){var D=_.wT.getLocalStorage();D&&AAm(D,D.mechanism.__iterator__(!0))};
bGU=function(D){_.M(function(v){if(v.nextAddress==1)return v.yield(D.delete("yt-appshell-assets"),2);_.YI(v)})};
dDd=function(D){return _.Do((0,_.eY1)(),D)};
sGr=function(){var D;_.M(function(v){return v.nextAddress==1?v.yield(Vu.getInstance(),2):(D=v.yieldResult)?v.yield(jGs(D),0):v.jumpTo(0)})};
HG3=function(){var D;_.M(function(v){return v.nextAddress==1?v.yield(Py.getInstance(),2):(D=v.yieldResult)?v.yield(mDX(D),0):v.jumpTo(0)})};
yAb=function(D){bGU(D);sGr();HG3()};
wfC=function(D){var v,h;return _.M(function(a){if(a.nextAddress==1)return a.yield(_.Nuo(D),2);if(v=a.yieldResult){var Q;a:{if(v.headers&&(Q=v.headers.get("date"))&&(Q=Date.parse(Q),!isNaN(Q))){Q=Math.round((0,_.xz)()-Q);break a}Q=-1}h=Q;if(h>-1)return a.return(h)}return a.return(-1)})};
ek3=function(){var D=_.$L.caches,v=_.nJ("IS_SHELL_LOAD"),h,a;_.M(function(Q){if(Q.nextAddress==1)return h=-1,v?Q.yield(wfC(D),3):(a=_.b1(),h=Math.round((0,_.xz)()-a),Q.jumpTo(2));Q.nextAddress!=2&&(h=Q.yieldResult);h>=0&&h<2147483648&&_.HU({appInstallDataAgeMs:h});_.YI(Q)})};
nZX=function(D){var v=_.tN(_.$L.location.href),h={};"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(a){var Q=v.JSC$10036_queryData_.getValues(a);if(Q==null?0:Q.length)h[a]=Q});
return _.Z3(D,new Map(Object.entries(h)))};
OGS=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
K6X=function(D){if(_.KYq()){var v=Object.keys(window.localStorage);v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=OGS(h);a===void 0||D.includes(a)||self.localStorage.removeItem(h)}}};
TR3=function(){if(!_.KYq())return!1;var D=_.BV(),v=Object.keys(window.localStorage);v=_.P(v);for(var h=v.next();!h.done;h=v.next())if(h=OGS(h.value),h!==void 0&&h!==D)return!0;return!1};
Rks=function(D){return _.s3("NotificationsDisabled",D)};
iGK=function(){return Notification.permission!="granted"?Promise.resolve():_.Rj$().then(function(D){return D?D.pushManager.getSubscription().then(function(v){if(v)return Promise.resolve();v={userVisibleOnly:!0,applicationServerKey:_.DJ("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return D.pushManager.subscribe(v).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
W63=function(D){return _.Rj$().then(function(v){if(!v||!v.active)return Promise.reject(new _.XH("serviceworker.postMessage",D,v));try{return v.active.postMessage(D),Promise.resolve()}catch(h){return Promise.reject(h)}})};
tq3=function(){W63({type:"notifications_register",data:_.eA("ID_TOKEN")})};
rAd=function(){if(!_.nJ("LOGGED_IN"))return Promise.resolve(!1);var D=_.FH("service_worker_push_force_notification_prompt_tag");return D?_.HI("PromptTags").then(function(v){if(!v)return!0;var h=[];try{h=JSON.parse(v)}catch(a){return!1}return h&&h.indexOf(D)==-1}):Promise.resolve(!1)};
uhX=function(){var D=_.oZ("service_worker_push_prompt_delay_microseconds");return D?_.HI("PromptTime").then(function(v){return Promise.resolve(Date.now()-D>(v||0))}):Promise.resolve(!0)};
DPb=function(){var D=_.oZ("service_worker_push_logged_out_prompt_watches");return D==-1?Promise.resolve(!1):_.HI("WatchCount").then(function(v){return v>=D})};
vVC=function(){var D=_.Cj(document,"yt-push-prompt-modal-bg");D&&_.Np(D)};
hfU=function(){return _.oZ("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.HI("PromptCount").then(function(D){D||(D=0);return Promise.resolve(D<_.oZ("service_worker_push_prompt_cap"))})};
a62=function(D){return _.nJ("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.nJ("LOGGED_IN")&&(D===void 0?0:D)?rAd().then(function(v){if(v)return!0;v=[hfU(),uhX()];_.nJ("LOGGED_IN")||v.push(DPb());return Promise.all(v).then(function(h){return h.every(function(a){return a})})}):Promise.resolve(!1)};
$Pr=function(){_.HI("PromptCount").then(function(D){return _.s3("PromptCount",D+1)}).then(function(){return _.s3("PromptTime",Date.now())}).then(function(){var D=_.FH("service_worker_push_force_notification_prompt_tag");
if(D)return _.HI("PromptTags").then(function(v){var h=[];if(v)try{h=JSON.parse(v)}catch(a){return!1}h||(h=[]);h.push(D);return _.s3("PromptTags",JSON.stringify(h))})})};
Gbr=function(){QXm||vVC()};
VLZ=function(D){D.style.zIndex=2147483648;D.style.pointerEvents="auto";D.style.backgroundColor="rgba(0, 0, 0, 0.6)";D.style.width="100%";D.style.height="100vh";D.style.position="absolute";D.style.top="0";D.style.left="0";D.style.border="none"};
PuU=function(){var D=_.Cj(document,"yt-push-prompt-modal-bg");QXm=_.g("service_worker_push_prompt_modal_ignore_click");D?VLZ(D):(D=_.ya("div",{id:"yt-push-prompt-modal-bg"}),VLZ(D),document.body.appendChild(D),_.f2O(document,"click",Gbr))};
xPC=function(){var D=arguments;_.g("service_worker_push_prompt_modal_enable")&&PuU();return Notification.requestPermission().then(function(v){vVC();var h=document.getElementById("ticker");h&&(h.className=h.classList.remove("show"));if(v=="granted")return iGK().then(function(){Rks(!1);tq3();return Promise.resolve(!0)});
v=="denied"&&tq3();return Promise.resolve(!1)}).catch(function(){vVC();
return Promise.reject.apply(Promise,_.j_(D))})};
MLd=function(D){D=D===void 0?!1:D;var v=_.MW8().client;if(v&&v.browserVersion){var h=v.browserVersion,a=v.browserName=="CHROME"&&_.U8(h,"50.0.0")<0;v=v.browserName=="OPERA"&&_.U8(h,"42.0.0")<0;if(a||v)return Promise.resolve()}return _.tAU().then(function(Q){if(!Q)return Promise.resolve();Q=iGK().then(function(){return W63({type:"notifications_check_registration",data:_.eA("ID_TOKEN")})});
return Notification.permission!="default"?Q.catch(function(){}):Q.then(function(){return a62(D)}).then(function(G){if(G)return $Pr(),xPC().then(function(){})}).catch(function(){})})};
f6X=function(D){return _.iJU(D)?MLd():Promise.resolve()};
Cu2=function(D){var v=D.installing||D.waiting;return D.active||!v?Promise.resolve(D):new Promise(function(h){var a=function(Q){Q=Q.target;if(Q.state==="activated"||Q.state==="redundant")v.removeEventListener("statechange",a),h(D)};
v.addEventListener("statechange",a)})};
oVC=function(){var D=new _.osc("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.FC(D,{mainAppWeb:_.$U()});var v=_.Gt1;_.g("service_worker_forward_exp_params")&&(v=nZX(v));try{var h=_.fk8(v).catch(function(){_.zk(D,"FAILURE");return new Promise(function(){})});
_.g("service_worker_push_enabled")&&h.then(function(a){_.zk(D,"SUCCESS");return a}).then(Cu2).then(f6X)}catch(a){if(_.zk(D,"FAILURE"),a.name!=="SecurityError")throw a;
}};
Fcd=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&oVC()};
zfr=function(D,v){var h={};v&&(h.serializedYpcFamilyCreateLoggingParams=v);_.jj(D,h);_.s5()};
UPs=function(D,v){var h={};h.serializedYpcRefundFlowLoggingParams=v;D&&(h.eventType=D);_.jj("ypcRefundFlowEvent",h);_.s5()};
Lc3=function(D){D&&_.ouL("transactionFlowSucceeded",D)};
Zqm=function(D){D&&_.Zn("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
EVd=function(D){var v,h,a,Q,G,x,f;_.M(function(C){if(C.nextAddress==1)return C.yield(_.RIi(),2);if(C.nextAddress!=3){if(!C.yieldResult)return C.return(!1);v=[];return C.yield(_.g1.keys(),3)}h=C.yieldResult;a=_.P(h);for(Q=a.next();!Q.done;Q=a.next())G=Q.value,x=_.KQL(G),f=x.datasyncId,!f||D.includes(f)||v.push(_.g1.delete(G));return C.return(Promise.all(v).then(function(U){return U.some(function(L){return L})}))})};
I6s=function(){var D,v,h,a,Q,G,x;return _.M(function(f){if(f.nextAddress==1)return f.yield(_.RIi(),2);if(f.nextAddress!=3){if(!f.yieldResult)return f.return(!1);D=_.BV("cache contains other");return f.yield(_.g1.keys(),3)}v=f.yieldResult;h=_.P(v);for(a=h.next();!a.done;a=h.next())if(Q=a.value,G=_.KQL(Q),(x=G.datasyncId)&&x!==D)return f.return(!0);return f.return(!1)})};
gVX=function(){var D=_.xd().resolve(_.PV(_.hO4));return D?D.getCurrentTime():0};
kb3=function(){var D,v,h,a,Q,G,x,f,C,U,L,Z,E,I;return _.M(function(S){switch(S.nextAddress){case 1:D={},v=_.iA8(),h=_.P(Object.entries(v)),a=h.next();case 4:if(a.done){S.jumpTo(3);break}Q=a.value;G=_.P(Q);x=G.next().value;f=G.next().value;C=x;U=f;if(!U){S.jumpTo(5);break}return S.yield(U(),8);case 8:D[C]=S.yieldResult;case 5:a=h.next();S.jumpTo(4);break;case 2:L=_.P(),Z=L.next();case 9:if(Z.done){S.jumpTo(3);break}E=Z.value;I=v[E];if(!I){S.jumpTo(10);break}return S.yield(I(),13);case 13:D[E]=S.yieldResult;
case 10:Z=L.next();S.jumpTo(9);break;case 3:return S.return(D)}})};
SLK=function(){var D;_.M(function(v){if(v.nextAddress==1)return v.yield(kb3(),2);D=v.yieldResult;return v.yield(navigator.clipboard.writeText(JSON.stringify(D,null,2)),0)})};
JQb=function(D,v){return _.gR(D.entities,"superThanksSelectedTierEntity",v)};
pR3=function(D,v){return{popup:{searchSuggestionReportDialog:{searchQuery:D,title:_.p1("SBOX_INAPPROPRIATE_TITLE"),suggestions:v,categoryLabel:_.p1("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.p1("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.p1("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.p1("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.p1("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.p1("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.p1("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.p1("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.p1("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.p1("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
l6U=function(D){var v,h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W;return _.M(function(K){switch(K.nextAddress){case 1:return K.yield(_.JA(),2);case 2:return(v=K.yieldResult)?K.yield(_.jnc(v),3):K.return();case 3:h=K.yieldResult;if(!h)return K.return();Q=((a=h.offlineVideos)==null?void 0:a.length)||0;x=((G=h.offlinePlaylists)==null?void 0:G.length)||0;if(Q===0&&x===0)return K.return();f=0;if(h.offlineVideos)for(C=_.P(h.offlineVideos),U=C.next();!U.done;U=C.next())L=U.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
L.videoState&&(f+=1);D.offline_videos_count=Q.toString();_.g("kevlar_log_offline_current_network_type_ks")||(D.offline_current_network_type=(Z=_.q4c())!=null?Z:"CONN_INVALID");_.g("kevlar_log_updated_time_for_smart_downloads")&&(E=_.Gb().getState().entities,I=_.Hf(E),S=ZGs(E),D.offline_smart_downloads_last_sync_time_ms=I.toString(),D.offline_smart_downloads_next_sync_time_ms=S.toString());D.offline_videos_playable=f.toString();D.offline_playlists_count=x.toString();h.offlineVideos&&(B=h.offlineVideos.reduce(function(O,
R){R.downloadedBytes&&(O+=Number(R.downloadedBytes));return O},0).toString())&&(D.offline_used_disk_space_bytes=B);
if(!((A=navigator)==null?0:(d=A.storage)==null?0:d.estimate)){K.jumpTo(4);break}return K.yield(navigator.storage.estimate(),5);case 5:b=K.yieldResult,D.offline_free_disk_space_bytes=(((W=b)==null?void 0:W.quota)||0).toString();case 4:D.offline_client_state=JSON.stringify(h),_.YI(K)}})};
NT3=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
YLK=function(D){if(_.icc()){var v=Object.keys(window.sessionStorage);v=_.P(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var a=NT3(h);a===void 0||D.includes(a)||self.sessionStorage.removeItem(h)}}};
BT3=function(){if(!_.icc())return!1;var D=_.BV(),v=Object.keys(window.sessionStorage);v=_.P(v);for(var h=v.next();!h.done;h=v.next())if(h=NT3(h.value),h!==void 0&&h!==D)return!0;return!1};
xW=function(D,v,h){(_.g("desktop_keyboard_shortcut_usage_log")||h&&_.g("web_shorts_keyboard_shortcut_usage_log"))&&(v?_.eS.get(D):_.wH.get(D))&&(D=v?_.O3.get(D):_.nM.get(D))&&_.hA(_.wd(),D)};
cQX=function(D,v){return D.findIndex(function(h){return h.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(v.keyCode):!1};
XRm=function(D,v){v.stack&&(D.stack+="\n"+v.stack);return D};
bq$=function(D){var v=MW(D,"Content-Type");if(!v)return null;v=v.toLowerCase();if(v.startsWith("application/json"))return v.startsWith("application/json+protobuf")?new AQr:new _.Jx;if(v.startsWith("application/x-protobuf")){D=MW(D,"Content-Transfer-Encoding");if(!D)return new ft;if(D.toLowerCase()=="base64")return new qL2}return null};
nVr=function(D,v,h,a){var Q=new dPS(function(f,C){return jXU.has(C)?f.sentinel==="gal"&&f.event!==void 0:!1},function(f){f.event?(f=sX2(f.event),f=!f||mPC(a,f)?!0:_.lT(D.lastEvent,Ct,2,ox)?!_.lT(f,FD,1,ox)&&!_.lT(f,Ct,2,ox):!_.lT(f,FD,1,ox)&&!_.lT(f,Ct,3,ox)):f=!0;
return f});
h=_.Z3(D.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",HqX(h)]]));if(D.nestedOrigins!==void 0)for(var G=_.P(D.nestedOrigins),x=G.next();!x.done;x=G.next())h=_.Z3(h,new Map([["origin",x.value]]));return yQb(Q,h,v).then(function(f){f=wRZ(f.event);if(_.lT(f,FD,1,ox)){var C,U=(C=_.yF(f,FD,1,ox))==null?void 0:_.s1(C,2);U&&a.JSC$19435_logErrorEvent(efr(U));C=_.yF(f,FD,1,ox);_.s1(C,2)===4?(f=_.yF(f,FD,1,ox),f={statusCode:11,statusMessage:_.jI(f,
3)}):(f=_.yF(f,FD,1,ox),f={statusCode:12,statusMessage:_.jI(f,3)});return f}_.lT(f,Ct,3,ox)?(f=_.yF(f,Ct,3,ox),f={statusCode:1,consentLanguageKeys:_.jI(f,2)}):f={statusCode:1};return f}).catch(function(f){return f.errorCode!==void 0?{statusCode:f.errorCode,
statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
RfU=function(D){var v={};if(D===void 0||D===null)return v;D.getToken()!==void 0&&OqS(D.getToken())&&OqS(D.getToken()).length>0&&(v.scopes=new Set(OqS(D.getToken())));D.getToken()!==void 0&&KcX(D.getToken())&&KcX(D.getToken()).length>0&&(v.capabilities=new Set(KcX(D.getToken())));_.jI(D,3)!==void 0&&(v.consistencyKey=_.jI(D,3));D.getName()!==void 0&&D.getName()!==""&&(v.linkName=D.getName());_.pa(D,TTr,4)&&(D=_.CL(D,TTr,4),D=Object.assign({},_.jI(D,1)&&{userId:_.jI(D,1)},_.jI(D,2)&&{displayName:_.jI(D,
2)},_.jI(D,3)&&{email:_.jI(D,3)},_.jI(D,5)&&{username:_.jI(D,5)},_.jI(D,4)&&{profilePicture:_.jI(D,4)}),v.profile=D);return v};
iq3=function(D,v){var h=D.flowParams,a;return{serviceId:h.serviceId,sessionId:h.sessionId,currentFlow:D.currentFlow,googleScopesString:v,linkingSessionSerialized:D.session.serialize(),consentLanguageKeys:h.consentLanguageKeys,callerState:D.callerState,dynamicUrlParameters:h.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(a=h.partnerConfigMinReadTimestamp)==null?void 0:a.serialize()}};
DiS=function(D){var v=D.googleScopes!==void 0?Array.from(D.googleScopes).join(","):"";Wcr(iq3(D,v));v=tLS(D);return v===null?Promise.resolve(rQ$):v.start().then(function(h){var a,Q=(a=h.link)==null?void 0:a.consistencyKey;return h.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&Q!==void 0?(a=D.flowParams,uTr(a.serviceId,a.sessionId,D.googleScopes,Q,a.galService,D.config,h)):h})};
vUb=function(D){var v=tLS(D);return v===null?Promise.resolve(z$({statusCode:7,statusMessage:"Failed to create flow object"},D.callerState)):v.complete().then(function(h){var a,Q=(a=h.link)==null?void 0:a.consistencyKey;return h.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&Q!==void 0?(a=D.flowParams,uTr(a.serviceId,a.sessionId,D.googleScopes,Q,a.galService,D.config,h)):z$(h,D.callerState)},function(h){return z$({statusCode:12,
statusMessage:"Failed to complete the flow: "+h.message},D.callerState)})};
uTr=function(D,v,h,a,Q,G,x){return htr(Q,{serviceId:D,sessionId:v,googleScopes:h,consistencyKey:a}).then(function(){return x},function(f){return Q.deleteLink({serviceId:D,
sessionId:v,accountLinkingEntryPoint:G.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+f.message}},function(C){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+C.message}})})};
tLS=function(D){switch(D.currentFlow){case 1:var v=D.flowParams;D=_.CL(D.session,aWr,1);return Us.createOAuthFlow(v,D);case 2:case 3:return v=D.flowParams,D=_.CL(D.session,$iS,6),Lt.createStreamlinedFlow(v,D);default:return null}};
Qy$=function(D,v){D===2&&(D=3);var h=0;Z8.indexOf(D)!==-1&&(h=Z8.indexOf(D)+1);for(D=h;D<Z8.length;D++)if(v.has(Z8[D]))return Z8[D]};
Pcr=function(D){var v=D.serviceId;var h=D.sessionId;var a=D.config;var Q=D.galService;var G=D.capabilities;var x=D.scopes;var f=D.loginHint;var C=D.callerState;var U=D.consentLanguageKeys;var L=D.linkName;var Z=D.dynamicUrlParameters;var E=D.partnerConfigMinReadTimestamp;D=a.dataUsageNoticeConfig?a.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Q.startLinkingSession({serviceId:v,sessionId:h,capabilities:G,scopes:x,loginHint:f,callerState:C,supportedFlows:GH3(a.supportedFlows),completionUrl:a.completionUrl,
accountLinkingEntryPoint:a.accountLinkingEntryPoint,consentLanguageKeys:U,dataUsageNoticeConfig:D,linkName:L,dynamicUrlParameters:Z,partnerConfigMinReadTimestamp:E}).then(function(I){return new VBK(v,h,a,Q,I,void 0,C,U,Z,E)})};
Fgd=function(D,v,h){var a=(new xiZ).getSession(D);if(a===null)return Promise.resolve({statusCode:2});MB2(D);var Q=fWZ(a.linkingSessionSerialized),G=a.googleScopesString!==""&&a.googleScopesString!==void 0?new Set(a.googleScopesString.split(",")):void 0,x=a.partnerConfigMinReadTimestampSerialized?CcX(a.partnerConfigMinReadTimestampSerialized):void 0;return oUK(new VBK(D,a.sessionId,v,h,Q,G,a.callerState,a.consentLanguageKeys,a.dynamicUrlParameters,x),a.currentFlow,a.consentLanguageKeys)};
Wcr=function(D){var v=new xiZ;v.storage!==null&&v.storage.set("SAVED_SESSION",D)};
MB2=function(D){var v=new xiZ;if(v.storage!==null){var h=v.storage.get("SAVED_SESSION");h!==void 0&&h.serviceId===D&&v.storage.remove("SAVED_SESSION")}};
GH3=function(D){var v=new Set;D=_.P(D);for(var h=D.next();!h.done;h=D.next())h=h.value,h!==1&&ztS.has(h)&&v.add(ztS.get(h));return v};
z$=function(D,v){v!==void 0&&(D.callerState=v);return D};
Ui2=function(D){switch(D){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
EUm=function(D){return new Lg2(D,new ZZr(D))};
kHr=function(D,v){v=v===void 0?!1:v;var h=document.createElement("div");D&&(h.style.transform="scaleX(-1)");h.style.backgroundColor=v?"rgba(138,180,248,.24)":"#e8f0fe";h.style.height="4px";h.style.overflow="hidden";h.style.position="absolute";h.style.top="0";h.style.width="100%";h.style.zIndex="1500";h.setAttribute("aria-label","Loading");h.setAttribute("aria-live","polite");D=document.createElement("style");D.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
h.appendChild(D);D=IWb();D.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";D.style.left="-145.166611%";var a=gUr(v);a.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";D.appendChild(a);h.appendChild(D);D=IWb();D.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";D.style.left="-54.888891%";v=gUr(v);v.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
D.appendChild(v);h.appendChild(D);return h};
IWb=function(){var D=document.createElement("div");D.style.height="100%";D.style.position="absolute";D.style.transformOrigin="top left";D.style.width="100%";return D};
gUr=function(D){var v=document.createElement("span");v.style.borderTop=D?"4px solid #669df6":"4px solid #4285f4";v.style.display="inline-block";v.style.position="absolute";v.style.width="100%";return v};
SIs=function(D){return D==null?void 0:_.A3$(D).valueOf()};
NxS=function(D){var v=document.body,h=!1,a=function(){h||(h=!0,JV2(Q,G),setTimeout(function(){v.removeChild(G);v.removeChild(Q)},150))},Q=pr$(D,getComputedStyle(v).direction==="rtl",a),G=lW3(a);
JV2(Q,G);v.appendChild(G);v.appendChild(Q);window.requestAnimationFrame(function(){G.style.opacity="1";Q.style.opacity="1";Q.style.transform="translate(-50%, -50%) scale(1)";Q.children[0].focus()})};
pr$=function(D,v,h){var a=document.createElement("div");a.style.position="fixed";a.style.alignItems="center";a.style.backgroundColor=D?"rgb(32, 33, 36)":"white";a.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";a.style.display="flex";a.style.flexDirection="column";a.style.justifyContent="center";a.style.left="50%";a.style.top="50%";a.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";a.style.zIndex="2002";document.body.clientWidth>=
660?(a.style.borderRadius="8px",a.style.minHeight="220px",a.style.maxHeight="90%",a.style.maxWidth="90%",a.style.minWidth="540px"):(a.style.height="100%",a.style.width="100%");a.setAttribute("aria-label","Error");a.setAttribute("aria-modal","true");a.setAttribute("role","alertdialog");a.addEventListener("keydown",function(G){G.key==="Escape"&&h()});
v=YIb(D,v,h);a.appendChild(Bx$(v));a.appendChild(v);var Q=document.createElement("img");Q.src=D?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";Q.style.height="72px";Q.style.width="72px";Q.style.color="#9aa0a6";Q.setAttribute("alt","");a.appendChild(Q);Q=document.createElement("h1");Q.textContent="Something went wrong.  Try again.";
Q.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Q.style.lineHeight="24px";Q.style.fontSize="16px";Q.style.textAlign="center";Q.style.letterSpacing="0.1px";Q.style.color=D?"rgb(232,234,237)":"#3c4043";a.appendChild(Q);a.appendChild(Bx$(v));return a};
YIb=function(D,v,h){var a=document.createElement("button");a.style.backgroundColor="transparent";a.style.border="none";a.style.borderRadius="50%";a.style.cursor="pointer";a.style.outline="none";a.style.padding="12px";a.setAttribute("aria-label","Close dialog");a.style.position="absolute";a.style.top="0";v?a.style.right="0":a.style.left="0";a.addEventListener("focus",function(){a.style.backgroundColor=D?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
a.addEventListener("blur",function(){a.style.backgroundColor="transparent"});
a.addEventListener("mouseenter",function(){a.style.backgroundColor=D?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
a.addEventListener("mouseleave",function(){a.style.backgroundColor="transparent"});
a.addEventListener("click",h);a.addEventListener("keydown",function(Q){Q.key!=="Enter"&&Q.key!=="Space"||h()});
v=document.createElement("img");v.src=D?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";v.style.display="block";v.style.height="24px";v.style.width="24px";v.setAttribute("alt","");a.appendChild(v);return a};
Bx$=function(D){var v=document.createElement("div");v.setAttribute("tabindex","0");v.setAttribute("aria-hidden","true");v.addEventListener("focus",function(){return void D.focus()});
return v};
lW3=function(D){var v=document.createElement("div");v.style.backgroundColor="rgba(32,33,36,0.6)";v.style.bottom="0";v.style.left="0";v.style.position="fixed";v.style.right="0";v.style.top="0";v.style.transition=" opacity 150 ms linear";v.style.zIndex="2001";v.addEventListener("click",D);return v};
JV2=function(D,v){v.style.opacity="0";D.style.opacity="0";D.style.transform="translate(-50%, -50%) scale(0.8)"};
cVr=function(D,v){D.sandbox&&D.sandbox.add&&(D.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),D.sandbox.add("allow-downloads"));D.src=v};
Es=function(D){XrU.call(this,D)};
Ix=function(D,v){v=v===void 0?!1:v;this.parsedImageUrl_=null;D instanceof AVd||(qI2==void 0&&(qI2=new bZ2),D=qI2.parse(D.toString(),v));D=this.parsedImageUrl_=D;D.JSC$19647_parsedOptions_==void 0&&((v=D.getOptions())||(v=""),D.JSC$19647_parsedOptions_=(new di$).parse(v));XrU.call(this,D.JSC$19647_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;D=this.parsedImageUrl_;v=D.uri_.JSC$10036_port_;this.JSC$19649_domain_=D.uri_.JSC$10036_domain_+(v?":"+v:"");this.JSC$19649_query_=
this.parsedImageUrl_.uri_.JSC$10036_queryData_.toString()};
jyd=function(D){this.mode=4;this.data=D;this.parsedData=[];D=0;for(var v=this.data.length;D<v;D++){var h=[],a=this.data.charCodeAt(D);a>65536?(h[0]=240|(a&1835008)>>>18,h[1]=128|(a&258048)>>>12,h[2]=128|(a&4032)>>>6,h[3]=128|a&63):a>2048?(h[0]=224|(a&61440)>>>12,h[1]=128|(a&4032)>>>6,h[2]=128|a&63):a>128?(h[0]=192|(a&1984)>>>6,h[1]=128|a&63):h[0]=a;this.parsedData.push(h)}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))};
syr=function(D){this.typeNumber=0;this.errorCorrectLevel=D===void 0?2:D;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
gg=function(D,v){if(D.length==void 0)throw Error("Jk`"+D.length+"`"+v);for(var h=0;h<D.length&&D[h]==0;)h++;this.num=Array(D.length-h+v);for(v=0;v<D.length-h;v++)this.num[v]=D[v+h]};
mib=function(D,v){this.totalCount=D;this.dataCount=v};
HZX=function(){this.buffer=[];this.length=0};
yV3=function(){var D=!1;if(_.S8r()){D=_.E8();var v="";_.l4O()?(v=/Windows (?:NT|Phone) ([0-9.]+)/,v=(D=v.exec(D))?D[1]:"0.0"):_.qr()?(v=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,v=(D=v.exec(D))&&D[1].replace(/_/g,".")):_.pA7()?(v=/Mac OS X ([0-9_.]+)/,v=(D=v.exec(D))?D[1].replace(/_/g,"."):"10"):_.Ff(_.E8(),"KaiOS")?(v=/(?:KaiOS)\/(\S+)/i,v=(D=v.exec(D))&&D[1]):_.S8r()?(v=/Android\s+([^\);]+)(\)|;)/,v=(D=v.exec(D))&&D[1]):_.Nci()&&(v=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,v=(D=v.exec(D))&&D[1]);D=
v||""}return D};
Tx3=function(D,v){this.JSC$19672__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(v)for(var h in v)this.JSC$19672__htOption[h]=v[h];this.JSC$19672__htOption.useSVG&&(wrm=etC);this.JSC$19672__android=yV3();this.JSC$19672__el=D;this._oQRCode=null;this._oDrawing=new wrm(this.JSC$19672__el,this.JSC$19672__htOption);this.JSC$19672__htOption.text&&(D=this.JSC$19672__htOption.text,this._oQRCode=new syr(this.JSC$19672__htOption.correctLevel),nU2(this._oQRCode,
D),v=this._oQRCode,OZK(v,!1,KgS(v)),this.JSC$19672__el.title=D,this._oDrawing.draw(this._oQRCode),this.makeImage())};
RtX=function(D,v,h,a,Q){D.save();var G=new Path2D;G.roundRect(v,h,a*7,a*7,a*2);G.roundRect(v+a,h+a,a*5,a*5,a*1.3);G.roundRect(v+2*a,h+2*a,a*3,a*3,a);D.clip(G,"evenodd");D.fillStyle=Q;D.fillRect(0,0,D.canvas.width,D.canvas.height);D.restore()};
kW=function(D,v){if(typeof D!=="function")throw Error("Mk");return _.$L.setTimeout(function(){D()},v)};
SP=function(){};
WgC=function(D,v,h,a,Q){(new SP).debug("TestLoadImageWithRetries: "+Q);if(a==0)h(!1);else{var G=Q||0;a--;iZS(D,v,function(x){x?h(!0):_.$L.setTimeout(function(){WgC(D,v,h,a,G)},G)})}};
iZS=function(D,v,h){var a=new SP;a.debug("TestLoadImage: loading "+D);var Q=new Image;Q.onload=function(){try{a.debug("TestLoadImage: loaded"),tBr(Q),h(!0)}catch(G){}};
Q.onerror=function(){try{a.debug("TestLoadImage: error"),tBr(Q),h(!1)}catch(G){}};
Q.onabort=function(){try{a.debug("TestLoadImage: abort"),tBr(Q),h(!1)}catch(G){}};
Q.ontimeout=function(){try{a.debug("TestLoadImage: timeout"),tBr(Q),h(!1)}catch(G){}};
_.$L.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},v);
Q.src=D};
tBr=function(D){D.onload=null;D.onerror=null;D.onabort=null;D.ontimeout=null};
rV2=function(){this.front_=[];this.back_=[]};
uS3=function(D,v){this.action=D;this.params=v||{}};
DKK=function(D,v){_.AN.call(this);this.delay_=new _.b9(this.JSC$19798_onTick_,0,this);_.Ia(this,this.delay_);this.JSC$19796_interval_=5E3;this.nextTickTime_=0;if(typeof D==="function")v&&(D=(0,_.qp)(D,v));else if(D&&typeof D.handleEvent==="function")D=(0,_.qp)(D.handleEvent,D);else throw Error("ya");this.JSC$19798_listener_=D};
JC=function(D,v,h,a,Q,G,x,f,C,U,L,Z,E,I){h=h===void 0?!1:h;a=a===void 0?function(){return""}:a;
Q=Q===void 0?!1:Q;G=G===void 0?!1:G;x=x===void 0?!1:x;f=f===void 0?function(){return _.E9({})}:f;
C=C===void 0?!1:C;L=L===void 0?!1:L;Z=Z===void 0?!1:Z;E=E===void 0?!1:E;I=I===void 0?!1:I;this.JSC$19799_pathPrefix_=D;this.defaultQueryParams_=v;this.pubsub_=new _.JO;this.reconnectTimer_=new DKK(this.safeReconnect_,this);this.JSC$19799_channel_=null;this.JSC$19799_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19799_pendingMessages_=[];this.enableAsyncTest_=h;this.JSC$19799_getXsrfToken_=a;this.useAsyncBrowserChannelHandler_=G;this.getAuthorizationHeader_=
f;this.getAuthorizationHeaderSync_=U;this.enableCachedUpdateAuthorizationHeader_=x;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.E9();this.enableLoungeTokenRefresh_=Q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=C;this.disableMdxAuthForNonPlaybackMessages_=L;this.disableMdxAuthForAdMessages_=Z;this.enableMdxAuthForConnectionOnly_=E;this.disableMdxAuthForShortsMessages_=I;this.JSC$19799_channelOpenedCounter=new vtU;this.JSC$19799_channelClosedCounter=new hSb;this.channelMessageSentCounter=
new apS;this.JSC$19799_channelMessageReceivedCounter=new $KC;this.JSC$19799_channelErrorCounter=new QqZ;this.pendingMapsOnClosedCounter=new GzX;this.undeliveredMapsOnClosedCounter=new VQs};
pt=function(D){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;D=D||document.location.href;var v=Number(_.aZ(D)[4]||null)||"";v&&(this.port=":"+v);this.domain=_.$d(D)||"";D=_.E8();D.search("MSIE")>=0&&_.U8(D.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
lG=function(D){D=D||{};this.name=D.name||"";this.id=D.id||D.screenId||"";this.token=D.token||D.loungeToken||"";this.uuid=D.uuid||D.dialId||"";this.idType=D.screenIdType||"normal"};
PPb=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var v=Math.random()*16|0;return(D=="x"?v:v&3|8).toString(16)})};
xKb=function(D){return _.mO(D,function(v){return{key:v.id,name:v.name}})};
MQ2=function(D,v){return _.j2(D,function(h){return h||v?!h!=!v?!1:h.id==v.id:!0})};
YW=function(D,v){return _.j2(D,function(h){return NW(h,v)})};
zSC=function(){var D=fpr(),v=CP2();if(ot3()){var h=D,a=_.joc(h,v);a<0&&_.q8o(h,-(a+1),0,v)}D=FNS(D);if(D.length==0)try{_.BRr("remote_sid")}catch(Q){}else try{_.NM("remote_sid",D.join(","),-1)}catch(Q){}};
fpr=function(){var D=_.nq("yt-remote-connected-devices")||[];D.sort(_.dri);return D};
FNS=function(D){if(D.length==0)return[];var v=D[0].indexOf("#"),h=v==-1?D[0]:D[0].substring(0,v);return _.mO(D,function(a,Q){return Q==0?a:a.substring(h.length)})};
UKS=function(D){_.eL("yt-remote-connected-devices",D,86400)};
CP2=function(){if(LNU)return LNU;var D=_.nq("yt-remote-device-id");D||(D=PPb(),_.eL("yt-remote-device-id",D,31536E3));for(var v=fpr(),h=1,a=D;_.wc(v,a);)h++,a=D+"#"+h;return LNU=a};
ZbX=function(){return _.nq("yt-remote-session-browser-channel")};
ot3=function(){return _.nq("yt-remote-session-screen-id")};
gtK=function(D){D.length>5&&(D=D.slice(D.length-5));var v=_.mO(EtK(),function(a){return a.loungeToken}),h=_.mO(D,function(a){return a.loungeToken});
_.ebc(h,function(a){return!_.wc(v,a)})&&IpU();
_.eL("yt-remote-local-screens",D,31536E3)};
EtK=function(){return _.nq("yt-remote-local-screens")||[]};
IpU=function(){_.eL("yt-remote-lounge-token-expiration",!0,86400)};
By=function(D){D||(_.OL("yt-remote-session-screen-id"),_.OL("yt-remote-session-video-id"));zSC();D=fpr();_.e2(D,CP2());UKS(D)};
S_s=function(){kzr();return cy?!!cy.get("yt-remote-use-staging-server"):!1};
kzr=function(){if(!cy){var D=_.mDf();D&&(cy=new _.AO(D))}};
N4X=function(D,v,h,a,Q){h=h===void 0?function(){return""}:h;
var G=function(){return new JC(XD(D,"/bc"),v,!1,h,a)};
return _.g("enable_mdx_web_channel_desktop")?new JD$(function(){return new p82(XD(D,"/wc"),v,h)}):new lpC(G,Q)};
X8C=function(){var D=Y_r;B4$();AC.push(D);cD2()};
qW=function(D,v){B4$();var h=ADU(D,String(v));AC.length==0?q_C(h):(cD2(),_.rM(AC,function(a){a(h)}))};
bG=function(D){qW("CP",D)};
B4$=function(){AC||(AC=_.T3("yt.mdx.remote.debug.handlers_")||[],_.Gm("yt.mdx.remote.debug.handlers_",AC))};
q_C=function(D){var v=(dg+1)%50;dg=v;bbs[v]=D;dKd||(dKd=v==49)};
cD2=function(){var D=AC;if(bbs[0]){var v=dKd?dg:-1,h={};do h={record$jscomp$15:void 0},v=(v+1)%50,h.record$jscomp$15=bbs[v],_.rM(D,function(a){return function(Q){Q(a.record$jscomp$15)}}(h));
while(v!=dg);bbs=Array(50);dg=-1;dKd=!1}};
ADU=function(D,v){var h=(Date.now()-jqs)/1E3;h.toFixed&&(h=h.toFixed(3));var a=[];a.push("[",h+"s","] ");a.push("[","yt.mdx.remote","] ");a.push(D+": "+v,"\n");return a.join("")};
jP=function(D){_.yl.call(this);this.JSC$19823_logName_=D;this.screens=[]};
mw=function(D){jP.call(this,"LocalScreenService");this.JSC$19830_http_=D;this.loungeTokenRefreshTimer_=NaN;ss(this);this.info("Initializing with "+sq$(this.screens))};
Hy=function(D,v){v=v===void 0?!1:v;jP.call(this,"ScreenService");this.JSC$19836_http_=D;this.disableAutomaticScreenCache_=v;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};mKZ(this)};
yu=function(D,v,h){_.yl.call(this);this.JSC$19840_logName_=h;this.JSC$19840_screenService_=D;this.receiver_=v;this.screen_=null};
v5I=function(D,v,h){h.disableCastApi?wg("Cannot initialize because disabled by Mdx config."):Hbm()?yD3(D,h)&&(w8U(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?eSK(v):(window.__onGCastApiAvailable=function(a,Q){a?eSK(v):(eP("Failed to load cast API: "+Q),ntC(!1),w8U(!1),_.OL("yt-remote-cast-available"),_.OL("yt-remote-cast-receiver"),Obb(),v(!1))},h.loadCastApiSetupScript?_.i4(KN3):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
T4C()>=60&&RSU():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?ib$():T4C()>=89?WN$():(tQr(),rDs(upC.map(DLd))))):wg("Cannot initialize because not running Chrome")};
Obb=function(){wg("dispose");var D=nt();D&&D.dispose();_.Gm("yt.mdx.remote.cloudview.instance_",null);hUI(!1);_.Lr4(a2C);a2C.length=0};
$LU=function(){return!!_.nq("yt-remote-cast-installed")};
Q3b=function(){var D=_.nq("yt-remote-cast-receiver");return D?D.friendlyName:null};
GhI=function(){wg("clearCurrentReceiver");_.OL("yt-remote-cast-receiver")};
V3K=function(){return $LU()?nt()?nt().getCastSession():(eP("getCastSelector: Cast is not initialized."),null):(eP("getCastSelector: Cast API is not installed!"),null)};
xL3=function(D,v){PLr()?nt().setConnectedScreenStatus(D,v):eP("setConnectedScreenStatus called before ready.")};
Hbm=function(){var D=_.E8().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Ip||D};
yD3=function(D,v){var h=!1;nt()||(D=new Os(D,v),D.subscribe("yt-remote-cast2-availability-change",function(a){_.eL("yt-remote-cast-available",a);uV("yt-remote-cast2-availability-change",a)}),D.subscribe("yt-remote-cast2-receiver-selected",function(a){wg("onReceiverSelected: "+a.friendlyName);
_.eL("yt-remote-cast-receiver",a);uV("yt-remote-cast2-receiver-selected",a)}),D.subscribe("yt-remote-cast2-receiver-resumed",function(a){wg("onReceiverResumed: "+a.friendlyName);
_.eL("yt-remote-cast-receiver",a);uV("yt-remote-cast2-receiver-resumed",a)}),D.subscribe("yt-remote-cast2-session-change",function(a){wg("onSessionChange: "+M3S(a));
a||_.OL("yt-remote-cast-receiver");uV("yt-remote-cast2-session-change",a)}),_.Gm("yt.mdx.remote.cloudview.instance_",D),h=!0);
wg("cloudview.createSingleton_: "+h);return h};
nt=function(){return _.T3("yt.mdx.remote.cloudview.instance_")};
eSK=function(D){ntC(!0);w8U(!1);nt().init(!1,function(v){v?(hUI(!0),_.Z_o("yt-remote-cast2-api-ready")):(eP("Failed to initialize cast API."),ntC(!1),_.OL("yt-remote-cast-available"),_.OL("yt-remote-cast-receiver"),Obb());D(v)})};
wg=function(D){qW("cloudview",D)};
eP=function(D){qW("cloudview",D)};
ntC=function(D){wg("setCastInstalled_ "+D);_.eL("yt-remote-cast-installed",D)};
PLr=function(){return!!_.T3("yt.mdx.remote.cloudview.apiReady_")};
hUI=function(D){wg("setApiReady_ "+D);_.Gm("yt.mdx.remote.cloudview.apiReady_",D)};
w8U=function(D){_.Gm("yt.mdx.remote.cloudview.initializing_",D)};
Kt=function(D){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(D)};
Lrb=function(D){kzr();if(!cy||!cy.get("yt-remote-disable-remote-module-for-dev")){D=_.eA("MDX_CONFIG")||D;q4r();zSC();T$||(T$=new pt(D?D.loungeApiHost:void 0),S_s()&&(T$.basePath="/api/loungedev"));Rx||(Rx=_.T3("yt.mdx.remote.deferredProxies_")||[],_.Gm("yt.mdx.remote.deferredProxies_",Rx));f2K();var v=iG();if(!v){var h=new Hy(T$,D?D.disableAutomaticScreenCache||!1:!1);_.Gm("yt.mdx.remote.screenService_",h);v=iG();var a={};D&&(a={appId:D.appId,disableDial:D.disableDial,theme:D.theme,loadCastApiSetupScript:D.loadCastApiSetupScript,
disableCastApi:D.disableCastApi,enableDialLoungeToken:D.enableDialLoungeToken,enableCastLoungeToken:D.enableCastLoungeToken,forceMirroring:D.forceMirroring});_.Gm("yt.mdx.remote.enableConnectWithInitialState_",D?D.enableConnectWithInitialState||!1:!1);v5I(h,function(G){G?Wy()&&xL3(Wy(),"YouTube TV"):h.subscribe("onlineScreenChange",function(){uV("yt-remote-receiver-availability-change")})},a)}if(D&&!_.T3("yt.mdx.remote.initialized_")){_.Gm("yt.mdx.remote.initialized_",!0);
tC("Initializing: "+(0,_.nD)(D));rg.push(_.oB("yt-remote-cast2-api-ready",function(){uV("yt-remote-api-ready")}));
rg.push(_.oB("yt-remote-cast2-availability-change",function(){uV("yt-remote-receiver-availability-change")}));
rg.push(_.oB("yt-remote-cast2-receiver-selected",function(){CLI();uV("yt-remote-auto-connect","cast-selector-receiver")}));
rg.push(_.oB("yt-remote-cast2-receiver-resumed",function(){uV("yt-remote-receiver-resumed","cast-selector-receiver")}));
rg.push(_.oB("yt-remote-cast2-session-change",o52));rg.push(_.oB("yt-remote-connection-change",function(G){G?xL3(Wy(),"YouTube TV"):FrZ()||(xL3(null,null),GhI())}));
rg.push(_.oB("yt-remote-cast2-session-failed",function(){uV("yt-remote-connection-failed")}));
a=zUX();D.isAuto&&(a.id+="#dial");var Q=D.capabilities||[];Q.length>0&&(a.capabilities=Q);a.name=D.device;a.app=D.app;(D=D.theme)&&(a.theme=D);tC(" -- with channel params: "+(0,_.nD)(a));a?(_.eL("yt-remote-session-app",a.app),_.eL("yt-remote-session-name",a.name)):(_.OL("yt-remote-session-app"),_.OL("yt-remote-session-name"));_.Gm("yt.mdx.remote.channelParams_",a);v.start();Wy()||ULC()}}};
E5$=function(){var D=iG().instance_.$_gos();var v=Z_U();v&&uG()&&(MQ2(D,v)||D.push(v));return xKb(D)};
I2s=function(){var D=E5$(),v=Z_U();v||(v=FrZ());return _.j2(D,function(h){return v&&NW(v,h.key)?!0:!1})};
Z_U=function(){var D=Wy();if(!D)return null;var v=iG().getScreens();return YW(v,D)};
o52=function(D){tC("remote.onCastSessionChange_: "+M3S(D));if(D){var v=Z_U();if(v&&v.id==D.id){if(xL3(v.id,"YouTube TV"),D.idType=="shortLived"&&(D=D.token))g5X&&(g5X.token=D),(v=uG())&&v.setLoungeToken(D)}else v&&khm(),SAb(D,1)}else uG()&&khm()};
khm=function(){PLr()?nt().stopSession():eP("stopSession called before API ready.");var D=uG();D&&(D.disconnect(1),Jdd(null))};
pXr=function(){var D=uG();return D&&D.getProxyState()!=3?new DA(uG(),void 0):null};
tC=function(D){qW("remote",D)};
iG=function(){if(!l2K){var D=_.T3("yt.mdx.remote.screenService_");l2K=D?new N1d(D):null}return l2K};
Wy=function(){return _.T3("yt.mdx.remote.currentScreenId_")};
YAb=function(D){_.Gm("yt.mdx.remote.currentScreenId_",D)};
CLI=function(){_.Gm("yt.mdx.remote.connectData_",null)};
uG=function(){return _.T3("yt.mdx.remote.connection_")};
Jdd=function(D){var v=uG();CLI();D||YAb("");_.Gm("yt.mdx.remote.connection_",D);Rx&&(_.rM(Rx,function(h){h(D)}),Rx.length=0);
v&&!D?uV("yt-remote-connection-change",!1):!v&&D&&uV("yt-remote-connection-change",!0)};
FrZ=function(){var D=ot3();if(!D)return null;var v=iG();if(!v)return null;v=v.getScreens();return YW(v,D)};
SAb=function(D,v){B1C?g5X=D:(YAb(D.id),D=new vG(T$,D,zUX(),_.T3("yt.mdx.remote.enableConnectWithInitialState_")||!1),D.connect(v,_.T3("yt.mdx.remote.connectData_")),D.subscribe("beforeDisconnect",function(h){uV("yt-remote-before-disconnect",h)}),D.subscribe("beforeDispose",function(){uG()&&Jdd(null)}),D.subscribe("browserChannelAuthError",function(){var h=Z_U();
h&&h.idType=="shortLived"&&(PLr()?nt().handleBrowserChannelAuthError():eP("refreshLoungeToken called before API ready."))}),Jdd(D))};
ULC=function(){var D=FrZ();D?(tC("Resume connection to: "+M3S(D)),SAb(D,0)):(By(),GhI(),tC("Skipping connecting because no session screen found."))};
f2K=function(){var D=zUX();if(_.sV.isEmpty(D)){D=CP2();var v=_.nq("yt-remote-session-name")||"",h=_.nq("yt-remote-session-app")||"";D={device:"REMOTE_CONTROL",id:D,name:v,app:h,mdxVersion:3};D.authuser=String(_.eA("SESSION_INDEX","0"));(v=_.eA("DELEGATED_SESSION_ID"))&&(D.pageId=String(v));_.Gm("yt.mdx.remote.channelParams_",D)}};
zUX=function(){return _.T3("yt.mdx.remote.channelParams_")||{}};
cdS=function(){var D,v;return _.M(function(h){if(h.nextAddress==1)return(_.DLu()||_.g("use_new_nwl"))&&_.WN2().isNetworkAvailable()?h.yield(_.Vx(),2):h.return();if(h.nextAddress!=3)return(D=h.yieldResult)?h.yield(aUZ(D),3):h.return();v=h.yieldResult;if(!v.length)return h.return();v.forEach(function(a){var Q={timestamp:a.timestamp};a=a.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:a.appShellAssetLoadReport,options:Q}:a.clientError?{payloadName:"clientError",payload:a.clientError,
options:Q}:void 0;a&&_.jj(a.payloadName,a.payload,a.options)});
v.length===100&&_.HK.addLowPriorityJob(cdS);_.YI(h)})};
XXX=function(D){if(D.playerResponse){if(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(v){return!(!v||!v.mealbarPromoRenderer)}))&&D.mealbarPromoRenderer)return D.mealbarPromoRenderer}else if(D.response&&(D=D.response)&&D.overlay&&D.overlay.mealbarPromoRenderer)return D.overlay.mealbarPromoRenderer};
Ad$=function(D){if(D.response){var v=D.response;if(v&&v.overlay&&v.overlay.tooltipRenderer)return v.overlay.tooltipRenderer}if(D.playerResponse&&(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(h){return!(!h||!h.tooltipRenderer)}))&&D.tooltipRenderer))return D.tooltipRenderer};
b_U=function(D){if(!qA3&&(D=D||_.eA("ZWIEBACK_PING_URLS"))&&D.length){qA3=!0;for(var v=0;v<D.length;v++)_.WK(D[v])}};
j3r=function(D){if(_.sV.get(_.eA("PLAYER_VARS",{}),"privembed",!1)!="1"){D&&Ryr();try{dLr().then(function(){},function(){}),_.ZX(j3r,18E5)}catch(v){_.OM(v)}}};
s33=function(){var D=_.YE(),v=D.getFlag(119),h=window.devicePixelRatio>1;document.body&&_.$N(document.body,"exp-invert-logo")&&(h&&!_.$N(document.body,"inverted-hdpi")?_.x5(document.body,"inverted-hdpi"):!h&&_.$N(document.body,"inverted-hdpi")&&_.V0(document.body,"inverted-hdpi"));v!=h&&(_.BU(0,119,h),D.save())};
mLC=function(D){return D.filter(function(v){return"ypcGetCartEndpoint"in v||"ypcFixInstrumentEndpoint"in v})};
H_$=function(D){return D.filter(function(v){return!_.k(v,_.rER)})};
wXZ=function(D,v){var h,a,Q,G,x,f,C;_.M(function(U){switch(U.nextAddress){case 1:h=_.yy.getInstance();a=_.pb.instance;Q=_.uL.instance;if(!Q)return ydd(D,a,v),U.return();_.gE(U,2);D.onLoadingCommand&&a.resolveCommand(D.onLoadingCommand);return U.yield(h.getCurrentPositionFromGeolocation(),4);case 4:G=U.yieldResult;if(!D.resolveLocationCommand){U.jumpTo(5);break}x=h.createLocationInfo(G);return U.yield(_.v4(Q,D.resolveLocationCommand,{locationInfo:x}),6);case 6:f=U.yieldResult;if(!f||"error"in f&&f.error||
f.errorMetadata)return ydd(D,a,v),U.return();var L;if(f==null?0:(L=f.onResponseReceivedActions)==null?0:L.length){L=_.P(f.onResponseReceivedActions);for(var Z=L.next();!Z.done;Z=L.next())a.resolveCommand(Z.value)}(_.k(D.onSuccessCommand,_.hP)||_.k(D.onSuccessCommand,_.YV))&&_.F1(v.hostElement,"yt-navigate",{endpoint:D.onSuccessCommand,reload:!0});case 5:_.rl(U,0);break;case 2:C=_.NS(U);if(C instanceof GeolocationPositionError&&C.code===GeolocationPositionError.PERMISSION_DENIED)return D.onDeniedCommand&&
a.resolveCommand(D.onDeniedCommand),U.return();ydd(D,a,v);_.YI(U)}})};
ydd=function(D,v,h){D.onFailureCommand&&(v.resolveCommand(D.onFailureCommand),_.zU(h.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
n5K=function(D,v){var h=_.k(D,_.BI$);if(h&&v){D=h.videoIds||[h.videoId];var a;v=(a=_.F1(v,"yt-lockup-requested",{videoIds:D}).detail)==null?void 0:a.returnValue;var Q;h.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Q=v?v:D.map(function(G){return{videoId:G,navigationEndpoint:h.videoCommand}}):v&&(Q=v);
Q&&(a=Q.map(function(G){var x=Object,f=x.assign;var C=G.navigationEndpoint;if(!_.k(C,_.AQ)){var U=_.k(C,_.hP);if(U){if(delete U.index,delete U.playlistId,U=_.k(C==null?void 0:C.commandMetadata,_.Sa),U==null?0:U.url){var L=U.url;L=_.PU(L,"list");L=_.PU(L,"index");U.url=L}}else C=void 0}return f.call(x,{},G,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:C})}),eU$(a,h))}};
O_r=function(D){var v=_.UH();if(D=_.k(D,_.cFm))D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&v.clearQueue(),D.closeMiniplayer&&_.xd().resolve(_.Ok).close(!0)};
T1s=function(D){Krd(_.UH(),D)};
RUr=function(D){var v;(D=(v=_.k(D,_.NI$))==null?void 0:v.setVideoIds)&&D.forEach(function(h){_.CRb(_.UH(),h)})};
WrX=function(D){i_d(_.UH(),D)};
t3U=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(D){return!1}};
rdr=function(D){var v=["h","m","s"],h=_.n7(v);h.reverse();var a={};D=(D.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(x){var f=(x.match(/[hms]/)||[""])[0];return f?(a[f]=parseInt(x.match(/\d+/)[0],10),!1):!0});
for(D.reverse();D.length&&h.length;){var Q=h.shift();Q in a||(a[Q]=parseInt(D.shift(),10))}if(D.length||a.s>59||a.m>59||a.h>9)return null;var G="";v.forEach(function(x){a[x]&&(G+=""+a[x]+x)});
return G||null};
uZd=function(D,v){var h=_.DEs(v,{},D,!0);return new Promise(function(a,Q){h.listenOnce("n",function(){Q(Error("xl`"+h.JSC$29485_getErrorDescription()))});
h.listenOnce("l",function(){var G=h.getResponseCode();if(G!==200)Q(Error("yl`"+v+"`"+D.type+"`"+D.size+"`"+G));else try{a(JSON.parse(h.getResponseText()).encryptedBlobId)}catch(x){Q(x)}});
h.run()})};
DqU=function(D){return D.substring(D.indexOf(":")+1,D.indexOf(";"))};
veI=function(D){return new Promise(function(v,h){var a=new FileReader;a.onloadend=function(){try{var Q=new Uint8Array(a.result);Q.length<8&&h(void 0);var G=Q.subarray(0,8);Q="";for(var x=0;x<G.length;x++)Q+=("0"+G[x].toString(16)).substr(-2);Q.startsWith("ffd8ff")?v("image/jpeg"):Q.startsWith("47494638")?v("image/gif"):Q.startsWith("89504e470d0a1a0a")?v("image/png"):Q.startsWith("424d")?v("image/bmp"):v(void 0)}catch(f){h(f)}};
a.onerror=h;a.readAsArrayBuffer(D)})};
hVU=function(D){return new Promise(function(v,h){var a=new Image;a.crossOrigin="anonymous";a.onload=function(){var Q=document.createElement("canvas");Q.width=a.naturalWidth;Q.height=a.naturalHeight;var G=Q.getContext("2d");if(!G)throw Error("zl");G.drawImage(a,0,0);G=DqU(D);Q.toBlob(function(x){x?v(x):h()},G)};
a.src=D})};
$q$=function(D,v){var h;if(((h=_.k(D,_.AQ))==null?void 0:h.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var a;_.F1((a=v.hostElement)!=null?a:v,"yt-shorts-reset");_.ox9(_.xd().resolve(_.Kh),D).then(function(G){aYS(G,v,D)})}else{var Q;
_.L1((Q=v.hostElement)!=null?Q:v,[D]).then(function(G){G&&aYS(G.data,v,D)})}};
aYS=function(D,v,h){if(D){var a=_.k(D.replacementEndpoint,_.AQ);if(a){D.sequenceContinuation&&(a.sequenceParams=D.sequenceContinuation);var Q;_.F1((Q=v.hostElement)!=null?Q:v,"yt-navigate",{endpoint:D.replacementEndpoint})}else if((D==null?void 0:D.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(D==null?0:D.watchStatus)&&_.k(D.watchStatus,_.f$J)){var G;_.F1((G=v.hostElement)!=null?G:v,"yt-navigate",{endpoint:h})}}};
QgI=function(D){var v=_.xd().resolve(_.Mv),h=_.W4.currentPageTypeSelector(v.getState())||"";v=_.W4.currentPageSubTypeSelector(v.getState())||"";h=h==="ytd-browse"&&v==="home";return _.g("web_guide_entry_enable_cache_for_non_home_pages")?(D=(D==null?void 0:D.navigationEndpoint)&&_.NP(D.navigationEndpoint)==="home",{disableCache:h&&D}):{disableCache:h}};
Gf$=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENT-INPUT")return!0}catch(v){return!1}return Gf$(D.parentNode)};
h_=function(D){return D?D.tagName==="A"&&D.href&&D.classList.contains("yt-simple-endpoint"):!1};
VbX=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
P72=function(D,v,h){if(!D)return null;var a=h_(D);if(a&&h)return v=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+v);if(a&&!h)return document.createTextNode("");if(VbX(D))return h=D.alt,D=D.dataset.emojiId,!D&&v&&(v=_.zN(v,h))&&v.isCustomEmoji&&(D=v.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(h);a=D.cloneNode(!1);for(var Q=0;Q<D.childNodes.length;++Q){var G=P72(D.childNodes[Q],v,h);G&&a.appendChild(G)}return a};
aw=function(D){return D?h_(D)?D:aw(D.lastChild):null};
xqr=function(D){return D?h_(D)?D:xqr(D.firstChild):null};
Mb$=function(D){if(!D)return null;for(var v=D.previousSibling;v;)if(v.nodeType===Node.ELEMENT_NODE&&v.nodeName==="BR")v=v.previousSibling;else if(v.nodeType===Node.TEXT_NODE&&/\s+/.test(v.textContent))v=v.previousSibling;else break;(v=aw(v))?D=v:D=(D=D.parentNode)?aw(D.previousElementSibling):null;return D};
fYX=function(D){if(!D)return null;for(var v=D.nextSibling;v;)if(v.nodeType===Node.ELEMENT_NODE&&v.nodeName==="BR")v=v.nextSibling;else if(v.nodeType===Node.TEXT_NODE&&/\s+/.test(v.textContent))v=v.nextSibling;else break;return(v=xqr(v))?v:fYX(D.parentNode)};
C7Z=function(D){var v=_.LS(),h=v.JSC$11351_getStartNode();if(!Gf$(h.parentNode))return null;v=v.JSC$11351_getStartOffset();if(h.nodeType===Node.TEXT_NODE){var a=_.OV(h,h_);if(a){if(D&&v===0||!D&&v===h.length)return a}else{if(D&&v===h.length)return!h||h.nodeName==="BR"||h.nextElementSibling&&_.Zj(h.nextElementSibling,"display")==="block"?null:xqr(h.nextElementSibling);if(!D&&v===0)return h?aw(h.previousElementSibling):null}}if(h.nodeType===Node.ELEMENT_NODE)if(D){if(0<=v&&v<h.childNodes.length)return xqr(h.childNodes[v])}else if(0<
v&&v<=h.childNodes.length)return aw(h.childNodes[v-1]);return null};
oe3=function(D,v,h){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(h){var a=Mb$(D);if(a&&!/^\s+\S/.test(D.wholeText.substr(0,v)))return a}else if((a=fYX(D))&&!/\S\s+/.test(D.wholeText.substr(v,D.wholeText.length)))return a;return D.nodeType===Node.ELEMENT_NODE?h?Mb$(D.childNodes[v]):fYX(D.childNodes[v]):oe3(D.parentNode,v,h)};
FsX=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var v="";for(D=D.firstChild;D;D=D.nextSibling)v+=FsX(D);return v;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
zVI=function(D){switch(D){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
Uqr=function(D){return D.map(function(v){return{settingsRadioOptionRenderer:{title:_.CG(v.name),asideText:_.CG(v.approximateSize),id:zVI(v.format)}}})};
ZjX=function(D){if(D&&D.length!==0)return D.filter(LsX()).map(function(v){return{settingsRadioOptionRenderer:{title:v.name,asideText:v.approximateSize,id:zVI(v.formatType)}}})};
QG=function(D){if(D)return D.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Eer=function(D,v){D=new Set(D!=null?D:[]);if(D.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(D.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(D.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(D.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(D.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(v)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
IYr=function(D){var v=D.indexOf("(");return v!==-1?D.substring(v+1,D.length-1):D};
_.kf2=function(D,v,h,a,Q){h||(h=geX);var G;(G=_.k(h.commandMetadata,_.Sa))!=null&&G.url||(h=Error("El`"+JSON.stringify(h)),_.mV(h),h=geX);h=_.sV.unsafeClone(h);G=_.np(_.k(h.commandMetadata,_.Sa).url,"search_query",D);_.i9(location.href,"sv")==="1"&&(_.k(h,_.BR).params="EgOAAgE%3D",G=_.np(G,"sv","1"));_.k(h,_.BR)&&(_.k(h,_.BR).query=D);G=G.replace(/%20/g,"+");_.k(h.commandMetadata,_.Sa).url=G;Q=_.g("desktop_enable_entity_suggest")?{entityMid:Q}:{};_.xd().resolve(_.fx).resolveCommand(h,{form:{tempData:Object.assign({},
{gs_l:v,oq:a!=null?a:D},Q)}})};
SnK=function(D){switch(D){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
p4r=function(D,v,h,a,Q,G){var x=_.sV.clone(Jnm);x.locale=_.eA("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;x.report={description:Q||"<empty>"};Q=_.eA("SBOX_SETTINGS",{});v=v.join(",");var f=Date.now();D={choice_cc:a,choice_id_cc:h,choices_sc:v,gl:Q.REQUEST_DOMAIN,hl:Q.REQUEST_LANGUAGE,query:D,time:f};G&&(D.choice_additional_comment_cc=G);_.GrJ(x,D)};
lYX=function(D){var v=new Map;v.set("authuser",_.eA("SESSION_INDEX","0"));return _.Z3(D,v)};
YnZ=function(D){var v;return _.M(function(h){switch(h.nextAddress){case 1:if(!D||!NpK(D))return h.return(null);v=null;switch(_.eA("INNERTUBE_CLIENT_NAME")){case "WEB":return h.jumpTo(2);case "WEB_REMIX":v=D.getPlayer()}h.jumpTo(3);break;case 2:return h.yield(D.getPlayerPromise(),4);case 4:v=h.yieldResult;h.jumpTo(3);break;case 3:return h.return(v)}})};
NpK=function(D){return["ytd-player","ytmusic-player"].includes(String(D.tagName||"").toLowerCase())};
Bp3=function(D){D=Math.round(D);return D%2?D-1:D};
cnC=function(D){D=Math.round(D);return D%2===0?D-1:D};
X4s=function(D){var v,h,a;if(D=(v=D.createPlaylistDialogFormSchema)==null?void 0:(h=v.fieldSchemas)==null?void 0:(a=h.title)==null?void 0:a.validationSchema)for(v=[D.syncStep,D.asyncStep].filter(function(Q){return Q!==void 0}),v=_.P(v),h=v.next();!h.done;h=v.next()){h=h.value.rules;
if(!h)break;h=_.P(h);for(h=h.next();!h.done;h=h.next())return _.k(h.value,_.zd$)}};
qnr=function(D){var v,h,a;if(D=(v=D.createPlaylistDialogFormSchema)==null?void 0:(h=v.fieldSchemas)==null?void 0:(a=h.visibility)==null?void 0:a.validationSchema)for(v=[D.syncStep,D.asyncStep].filter(function(Q){return Q!==void 0}),v=_.P(v),h=v.next();!h.done;h=v.next()){h=h.value.rules;
if(!h)break;h=_.P(h);for(a=h.next();!a.done;a=h.next())if(a=_.k(a.value,AnK))return v=void 0,(v=a.translations)==null?void 0:v.visibilityNotValidErrorMessage}};
bjr=function(){var D,v;return(v=(D=_.xd().resolve(_.PV(_.$5)))==null?void 0:D())!=null?v:!1};
dq3=function(D){var v=21;if(!D)return v;v+=D.headerTitle?27:0;v+=D.headerTitle&&D.hasHeaderActionHeader?4:0;return v+=D.headerTitle&&D.headerSubtitle?16:0};
jgX=function(D){var v=0;if(!D)return v;v+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton?48:0;v+=D.footerTrailingLabel||D.footerLeadingLabel?30:0;return v+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton||!D.footerTrailingLabel&&!D.footerLeadingLabel?0:12};
sg2=function(D){var v=new _.JO,h=D;return{subscribe:function(a){v.subscribe("changed",a)},
dispatch:function(a,Q){var G=h;a==="Touch Start"?h=Object.assign({},G,{isAnimating:!1,initialY:Q.event.touches[0].clientY}):a==="Touch Move"?(a=Math.min(Q.fullContentWrapperHeight,Q.contentHeightMap[Q.contentWrapperId]+dq3(Q.header)-jgX(Q.footer)),h=Object.assign({},G,{currentY:Math.max(Q.contentScrollable?-1*(G.initialY-24):0,Q.event.touches[0].clientY-G.initialY),maxHeightForContentWrapper:Math.min(a,Math.max(0,(G.isFullScreen?a:Q.contentWrapperHeight)-G.currentY))})):h=a==="Snap To Full Screen"?
Object.assign({},G,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Q.maxHeight}):a==="Snap To Neutral Position"?Object.assign({},G,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):a==="Close Sheet"?Object.assign({},G,{isAnimating:!0,currentY:Q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):G;v.publish("changed",h)}}};
mqC=function(D){return _.Jd(function(v){D(v);return!1})};
Hjr=function(){_.xd().resolve(_.vM).closeSheet()};
ynr=function(D){var v,h,a,Q,G,x,f,C,U,L,Z;return{headerTitle:(v=D.headerTitle)==null?void 0:v.call(D),headerSubtitle:(h=D.headerSubtitle)==null?void 0:h.call(D),headerActionHeader:D.headerActionHeader,footerPrimaryButton:D.footerPrimaryButton,footerSecondaryButton:D.footerSecondaryButton,footerButtonType:(a=D.footerButtonType)==null?void 0:a.call(D),footerLeadingLabel:(Q=D.footerLeadingLabel)==null?void 0:Q.call(D),footerTrailingLabel:(G=D.footerTrailingLabel)==null?void 0:G.call(D),shouldShowIcons:(x=
D.shouldShowIcons)==null?void 0:x.call(D),skipContentClick:(f=D.skipContentClick)==null?void 0:f.call(D),additionalClassName:(C=D.additionalClassName)==null?void 0:C.call(D),onClosedCallback:D.onClosedCallback,focusOnClose:(U=D.focusOnClose)==null?void 0:U.call(D),isDisabled:(L=D.isDisabled)==null?void 0:L.call(D),disabledCommand:(Z=D.disabledCommand)==null?void 0:Z.call(D),headerFn:D.headerFn,contentFn:D.contentFn,footerFn:D.footerFn,hasHeaderFn:D.hasHeaderFn(),hasContentFn:D.hasContentFn(),hasFooterFn:D.hasFooterFn(),
hasFooterPrimaryButton:D.hasFooterPrimaryButton(),hasFooterSecondaryButton:D.hasFooterSecondaryButton(),hasHeaderActionHeader:D.hasHeaderActionHeader()}};
w4r=function(D){switch(D){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
eV$=function(D){switch(D){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
nem=function(D){switch(D){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
Ojr=function(D,v,h){v.forEach(function(a){_.mj(_.xd().resolve(_.aS),a)});
_.zU(D,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",h])};
ijU=function(D,v,h,a){var Q=_.k(h,_.Fq).commandLifeCycleConfig;Q&&Q.onStartCommand&&_.ZD(D,[Q.onStartCommand],v);_.KS(v);var G=_.uL.instance;G&&_.DY(G,h)?_.v4(G,h,a).then(function(x){if(!x||(x==null?0:x.error))return x=_.k(h,_.Fq).serializedTransactionFlowLoggingParams,_.TN(v),_.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",x));_.TN(v);return{data:x}}).then(function(x){_.TN(v);
Ksd(x.data);var f=x.data.command;f&&_.ZD(D,[f],v);f=Tpd(h,x.data);if(!f){var C=x.data;x=!1;if(C&&C.command&&_.k(C.command,_.IN)){var U;C=((U=_.k(C.command,_.IN))==null?void 0:U.commands)||[];for(U=0;U<C.length;U++)if(_.k(C[U],_.bO4)){x=!0;break}}x||_.hk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!f&&Q&&Q.onSuccessCommand?_.ZD(D,[Q.onSuccessCommand],v):f&&Q&&Q.onFailureCommand&&_.ZD(D,[Q.onFailureCommand],v)},function(){_.TN(v);
Q&&Q.onFailureCommand&&_.ZD(D,[Q.onFailureCommand],v);RVm(h)}):_.mV(Error("Ql"),"ERROR")};
Wsm=function(D,v,h){var a=[v];h&&a.push(h);return _.L1(D,a).then(function(Q){var G=_.k(v,_.Fq).serializedTransactionFlowLoggingParams,x=Q.data,f=Tpd(v,x);f?Q=_.H8(new Gg(f,G)):Ksd(x);return Q},function(){var Q=_.k(v,_.Fq).serializedTransactionFlowLoggingParams;
RVm(v);return _.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q))})};
Tpd=function(D,v){D=_.k(D,_.Fq).serializedTransactionFlowLoggingParams;var h=null;switch(v.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":h="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":h="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":h="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}h?_.GH(h,D):Lc3(D);return h};
RVm=function(D){_.GH("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.k(D,_.Fq).serializedTransactionFlowLoggingParams)};
Ksd=function(D){if(D.trackingParams){var v=_.wd(),h=_.yC();v&&h&&_.tP(v,h,_.d4(D.trackingParams))}};
tbs=function(D,v,h){var a=_.uL.instance,Q=_.fs8(_.eA("YPC_MB_URL")),G=(new _.xsf).init(),x=_.M77(),f=_.k(h,_.cEJ).languageCode;f===void 0?_.mV(Error("Ni"),"ERROR"):_.HZ([G,Q]).then(function(){var C={ctk:_.$Y.payments.business.integration.ClientTokenFactory.createClientToken(f,x)};a&&_.DY(a,h)?_.v4(a,h,C).then(function(U){return{data:U}}).then(function(U){_.F1(v,"yt-service-request-completed",U);
U.code!=="ERROR"&&(U=U.data.command)&&_.ZD(D,[U],v)}):_.mV(Error("Ql"),"ERROR")})};
DOI=function(D,v,h,a){var Q=_.uL.instance;Q&&_.DY(Q,h)?_.v4(Q,h,a).then(function(G){return{data:G}}).then(function(G){rn2(D,v,h,G)},function(){ueU(h)}):(Q=_.xd().resolve(_.PV(_.Tb)))&&Q.requestDataForServiceEndpoint(h,a).then(function(G){rn2(D,v,h,G)},function(){ueU(h)})};
rn2=function(D,v,h,a){_.F1(v,"yt-service-request-completed",a);if(a.code&&a.code=="ERROR")ueU(h);else{(a=a.data.commands)&&_.ZD(D,a,v);var Q;(D=(Q=_.k(h,_.jSm))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&D&&_.Zn("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",D)}};
ueU=function(D){var v;(D=(v=_.k(D,_.jSm))==null?void 0:v.serializedYpcPauseFlowLoggingParams)&&D&&_.Zn("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
ajZ=function(D,v,h){var a=_.uL.instance;a&&_.DY(a,h)?_.v4(a,h).then(function(Q){return{data:Q}}).then(function(Q){v2U(D,v,h,Q)},function(){h6S(h)}):(a=_.xd().resolve(_.PV(_.Tb)))&&a.requestDataForServiceEndpoint(h).then(function(Q){v2U(D,v,h,Q)},function(){h6S(h)})};
v2U=function(D,v,h,a){_.F1(v,"yt-service-request-completed",a);a.code&&a.code=="ERROR"?h6S(h):((a=a.data.commands)&&_.ZD(D,a,v),(D=_.k(h,_.sSF).serializedYpcResumeFlowLoggingParams)&&D&&_.Zn("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",D))};
h6S=function(D){(D=_.k(D,_.sSF).serializedYpcResumeFlowLoggingParams)&&D&&_.Zn("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
$Os=function(D){D=D===void 0?{}:D;_.xd().resolve(_.ccs).showFeedbackDialog(D.customProductData,D.feedbackContent,D.onFeedbackSubmitted,D.bucket)};
QiC=function(D){D=D===void 0?{}:D;_.xd().resolve(_.ccs).showHelpDialog(D.helpContext,D.articleId,D.productData)};
GNX=function(){QiC()};
Vom=function(){$Os()};
xOr=function(D,v,h){var a,Q,G,x,f,C,U;return _.M(function(L){switch(L.nextAddress){case 1:a=_.k(D,Pj$);if((Q=a)==null?0:Q.productId){C={productId:a.productId,bucket:a.bucket,enableAnonymousFeedback:(f=a.enableAnonymousFeedback)!=null?f:!0,allowNonLoggedInFeedback:!0};U={feedbackChoice:h.feedbackChoice};if(!_.g("web_collect_offline_state")){L.jumpTo(8);break}_.gE(L,9);return L.yield(l6U(U),11)}x={bucket:(G=a)==null?void 0:G.bucket};if(!_.g("web_collect_offline_state")){L.jumpTo(4);break}x.customProductData=
{};_.gE(L,5);return L.yield(l6U(x.customProductData),7);case 7:_.rl(L,4);break;case 5:_.NS(L);case 4:$Os(x);L.jumpTo(0);break;case 11:_.rl(L,8);break;case 9:_.NS(L);case 8:_.tpu(U),_.WAu("GFEEDBACK",U),a.productId==="5295751"&&(U.client_attestation=Number(_.eA("CATSTAT",0))),a.productId==="5295751"&&(U.client_time=Date.now()/1E3/3600),a.productId==="5295751"&&(U.original_playback_id=_.SDR||""),_.GrJ(C,U),_.YI(L)}})};
MoZ=function(D){if(D=_.k(D,_.xur)){var v={bucket:D.bucketIdentifier};D.additionalDatas&&(v.customProductData={},D.additionalDatas.forEach(function(h){if(h=h.userFeedbackEndpointProductSpecificValueData)v.customProductData[h.key]=h.value}));
$Os(v)}};
fjX=function(D){var v=_.iD.getInstance();var h=_.p1("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var a=_.p1("DELETE",void 0,"Delete"),Q=_.p1("CANCEL",void 0,"Cancel");h=jNK(h,void 0,a,Q,{signal:"DELETE_ALL_DOWNLOADS"});_.rt(v,[{openPopupAction:h}],D)};
o2K=function(){return _.M(function(D){return D.nextAddress==1?D.yield(_.xd().resolve(_.wy),2):D.yield(CjC(),0)})};
F2s=function(D){var v,h;return _.M(function(a){return a.nextAddress==1?(h=(v=_.k(D,_.Kp))==null?void 0:v.targetId)?a.yield(_.xd().resolve(_.wy),3):a.jumpTo(0):a.yield(_.xd().resolve(_.yW).deleteVideo(h),0)})};
UOr=function(D){var v,h;return _.M(function(a){return a.nextAddress==1?(h=(v=_.k(D,_.Kp))==null?void 0:v.targetId)?a.yield(_.xd().resolve(_.wy),3):a.jumpTo(0):a.yield(z62(_.xd().resolve(_.yW),h),0)})};
ZSd=function(D){var v,h;return _.M(function(a){return(h=(v=_.k(D,_.Kp))==null?void 0:v.targetId)?a.yield(L2Z(h),0):a.jumpTo(0)})};
Ijr=function(){_.g("kevlar_woffle_refresh_dl_load_killswitch")||E2$()};
kNK=function(){_.g("kevlar_woffle")&&_.HR.instance&&g2K()};
JmS=function(D){var v;if((v=_.k(D,_.Jn))==null||!v.videoId)return!1;Syr(_.xd().resolve(_.yW),_.k(D,_.Jn),D.clickTrackingParams);return!0};
ljX=function(D){var v;if((v=_.k(D,_.pj))==null||!v.playlistId)return!1;pOI(_.xd().resolve(_.yW),_.k(D,_.pj),D.clickTrackingParams);return!0};
YyI=function(D){var v=_.k(D,_.Ems);(v==null?void 0:v.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(v==null?void 0:v.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||Nvb(_.xd().resolve(_.yW),_.k(D,_.Ems))};
cmd=function(D){D=_.k(D,_.W4t);var v;(D==null?0:(v=D.actions)==null?0:v.length)&&Bv3(D)};
qyK=function(D){var v,h;return _.M(function(a){v=_.k(D,XOd);return(h=v)!=null&&h.localWatchHistoryCommandType?a.yield(Am3(v),0):a.return()})};
bSm=function(D){setTimeout(function(){requestAnimationFrame(D)},80)};
dOK=function(D){return Object.entries(D).map(function(v){return v.join(":")}).join(";")};
sir=function(D){var v,h,a;_.M(function(Q){if(Q.nextAddress==1)return Q.yield(ji$(),2);v=Q.yieldResult;h=_.pb.instance;switch(v){case "granted":a=D.getLocationCommand;break;case "denied":a=D.openDeniedDialogAction;break;case "prompt":a=D.openCollectionDialogAction;break;default:a=D.openCollectionDialogAction}a&&h.resolveCommand(a);_.YI(Q)})};
ji$=function(){var D,v;return _.M(function(h){if(h.nextAddress==1)return D="prompt",navigator.permissions?h.yield(navigator.permissions.query({name:"geolocation"}),3):h.jumpTo(2);h.nextAddress!=2&&(v=h.yieldResult,D=v.state);return h.return(D)})};
HSU=function(){_.M(function(D){return D.yield(_.mO3(),0)})};
ymI=function(){var D,v,h;return _.M(function(a){if(a.nextAddress==1)return D=_.xd().resolve(_.RX),D?a.yield(_.v4(D,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.yR(Error("Tl")),a.return(void 0));if(v=a.yieldResult){if(v.errorMetadata)return _.yR(Error("Ul`"+v.errorMetadata.status+"`"+v.error)),a.return(void 0);h=v.datasyncIds;_.b43=h.length;return a.return(h)}_.yR(Error("Vl"));return a.return(void 0)})};
wOs=function(){ymI().then(function(D){D&&(vZZ(D),EVd(D),K6X(D),YLK(D))})};
e6I=function(D){_.HK.addLowPriorityJob(function(){var v,h,a,Q,G;return _.M(function(x){switch(x.nextAddress){case 1:if(_.g("ytidb_clear_optimizations_killswitch")){x.jumpTo(2);break}v=_.BV("clear");if(v.startsWith("V")&&v.endsWith("||")){var f=[v];vZZ(f);EVd(f);K6X(f);YLK(f);return x.return()}h=TR3();a=BT3();return x.yield(I6s(),3);case 3:return Q=x.yieldResult,x.yield(hkC(),4);case 4:if(G=x.yieldResult,!(h||a||Q||G))return x.return();case 2:D.isNetworkAvailable()?wOs():D.listenOnce("publicytnetworkstatus-online",
wOs),_.YI(x)}})})};
VG=function(D){D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.aX(D)}}}};_.pb.instance&&_.pb.instance.resolveCommand(D)};
n22=function(D){if(D){var v=_.c8();_.bl(v,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var h=238708;break;case 2:h=238715;break;case 3:h=238710;break;case 6:h=238709}h&&(D=_.B8(v,{veType:h}))&&_.se(v,D)}};
OS2=function(D){if(D){var v=_.c8();_.bl(v,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var h=238714;break;case 2:h=238711;break;case 8:h=238709;break;case 7:h=238713;break;case 3:case 4:case 5:h=238712}h&&(D=_.B8(v,{veType:h}))&&_.se(v,D)}};
K2$=function(D){switch(D.latencyType){case 0:_.wK("consent_primitive_flow");_.ea("cpit",D.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.ea("cpist",D.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.ea("cprtif",D.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.ea("cprtli",D.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.ea("cprt",D.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.ea("cpdt",D.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.ea("cpjct",D.timestampEpochMillis,"consent_primitive_flow")}};
hmm=function(D,v){var h,a,Q,G,x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K,O;return _.M(function(R){switch(R.nextAddress){case 1:_.gE(R,2);(a=(h=_.k(D,TvS))==null?void 0:h.serializedConsentRequest)||(a=(Q=_.k(D,R6S))==null?void 0:Q.serializedConsentRequest);a&&(G=iSr(_.DJ(a)));if(G===void 0)return R.return();x=W22(G);x.latencyCallback=K2$;v&&tos(x,function(){v.then(function(vA){vA.pauseVideo();(new rmZ).increment()})});
return((f=_.k(D,TvS))==null?void 0:f.consentAction)==="CONSENT_ACTION_PREWARM"||((C=_.k(D,R6S))==null?void 0:C.consentAction)==="CONSENT_ACTION_PREWARM"?R.yield(uvZ(x),5):R.yield(DhS(x),6);case 6:U=R.yieldResult;L=_.BD(U,PG);if(L===1){if(((Z=_.yF(U,xj,1,PG))==null?void 0:_.s1(Z,1))===1||((E=_.yF(U,xj,1,PG))==null?void 0:_.s1(E,1))===2||((I=_.yF(U,xj,1,PG))==null?void 0:_.s1(I,1))===3)_.k(D,R6S)?VG(_.p1("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
VG(_.p1("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));n22((S=_.yF(U,xj,1,PG))==null?void 0:_.s1(S,1),_.Mp(U,vYK,3,_.f0()))}else L===2?(((B=MU(U))==null?void 0:_.s1(B,1))===5?_.k(D,R6S)?VG(_.p1("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):VG(_.p1("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((A=MU(U))==null?void 0:_.s1(A,1))===1||((d=MU(U))==null?void 0:_.s1(d,1))===4?VG(_.p1("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((b=MU(U))==null?void 0:_.s1(b,1))===7&&((W=G)==null?void 0:(K=_.CL(W,f8,4))==null?void 0:_.s1(K,4))!==1&&VG(_.p1("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),OS2((O=MU(U))==null?void 0:_.s1(O,1))):VG(_.p1("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));R.jumpTo(5);break;case 5:_.rl(R,0);break;case 2:_.NS(R),VG(_.p1("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.YI(R)}})};
$hX=function(){if(!aSZ.has("Worker")){aSZ.set("Worker",!0);var D={api:"BROWSER_API_WEB_WORKER"};D.available="Worker"in window?!0:!1;_.jj("apiTest",D)}};
QQr=function(D){return typeof D==="undefined"?"-1":String(Math.ceil(D/1048576))};
xhd=function(D,v){GkI(new V6r(_.k(v,Ppb).addToken,_.k(v,Ppb).commonToken)).then(function(){_.F1(D,"yt-invoke-instrument-manager-action-completed")},function(h){_.F1(D,"yt-invoke-instrument-manager-action-error",h)})};
C8=function(){return _.eA("HTML_DIR")==="rtl"};
M6$=function(){var D,v;return(v=(D=window).matchMedia)==null?void 0:v.call(D,"(prefers-reduced-motion: reduce)").matches};
fSb=function(D){var v=_.xd().resolve(_.PV(_.KN));if(v&&v.isAnyTransitionEnabled){var h={};v.viewTransitionCoordinator.registerElement(D,(h.slide="miniplayer-page-transition",h["lockup-to-watch"]="miniplayer-page-transition",h["learning-journey"]="miniplayer-page-transition",h))}};
CpZ=function(D,v,h){return{horizontalAlignment:D.x+h.width/2<v.width/2?"west":"east",verticalAlignment:D.y+h.height/2<v.height/2?"north":"south"}};
FPs=function(D,v,h,a,Q){Q=Q===void 0?new _.HW(0,0):Q;D=oYZ(D,v,h,a,!1);return new _.HW(D.x+Q.x,D.y+Q.y)};
oYZ=function(D,v,h,a,Q){Q=(Q===void 0?0:Q)?400:0;return new _.HW(D==="west"?16+(C8()?Q:0):h.width-a.width-16-(C8()?0:Q),v==="north"?16:h.height-a.height-16)};
zmr=function(D,v){var h=0;D&&(h+=76);v&&(h+=285);return h};
UhK=function(D){return _.Ka(D)};
LPs=function(D){var v=1;D=D.split(":");for(var h=[];v>0&&D.length;)h.push(D.shift()),v--;D.length&&h.push(D.join(":"));return h};
ZKs=function(D){var v=new _.JJ;return _.wY(v,11,D)};
EYb=function(D){var v={};D=D.getAllResponseHeaders().split("\r\n");for(var h=0;h<D.length;h++)if(!_.C7(D[h])){var a=LPs(D[h]),Q=a[0];a=a[1];if(typeof a==="string"){a=a.trim();var G=v[Q]||[];v[Q]=G;G.push(a)}}return _.sV.map(v,function(x){return x.join(", ")})};
MW=function(D,v){return D.JSC$9800_xhr_?D.JSC$9800_xhr_.getResponseHeader(v):null};
ISC=function(D,v){if(D.isDisposed())throw Error("Ea");D.xD.su("n");var h=_.RI(D.xD,function(){return D.oEQ([v.pG,v.j1G,v.gRO,v.zW6])},"n");
D.xD.uI6(h.length);D.xD.oF();return h};
ow=function(D,v,h){Array.isArray(h)||(h=[String(h)]);_.c$4(D.JSC$10036_queryData_,v,h);return D};
g2K=function(){var D=_.HR.instance;_.M(function(v){return D.deferredInstallPrompt?v.yield(D.deferredInstallPrompt.prompt(),0):v.jumpTo(0)})};
gYs=function(D,v,h){if(_.O8(D))_.rM(D,v,h);else for(D=_.H94(D);;){var a=D.next();if(a.done)break;v.call(h,a.value,void 0,D)}};
kk2=function(D,v){var h=[];gYs(v,function(a){try{var Q=_.zT.prototype.getWrapper.call(this,a,!0)}catch(G){if(G=="Storage: Invalid value was encountered")return;throw G;}Q===void 0?h.push(a):_.mbM(Q)&&h.push(a)},D);
return h};
AAm=function(D,v){kk2(D,v).forEach(function(h){_.zT.prototype.remove.call(this,h)},D)};
Sk3=function(D){var v=_.PF;v._minimumZ=Math.max(v._minimumZ,D)};
JL2=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];p7C=function(D,v){_.V5(D.vm);D.vm=v};
lSr=function(D,v,h,a){D.setState(5);var Q=!!D.hU2&&JL2.includes(_.$d(D.hU2)||"");try{var G=new _.WZ({program:v,globalName:h,aEZ:{disable:!_.g("att_web_record_metrics")||!_.g("att_skip_metrics_for_cookieless_domains_ks")&&Q,mK:"aGIf"}});G.tU6.then(function(){D.setState(6);a&&a(v)});
p7C(D,G)}catch(x){D.setState(7),x instanceof Error&&_.yR(x)}};
NoU=function(D,v,h,a,Q,G){var x=x===void 0?"trayride":x;h?(D.setState(2),_.i4(_.dW(h),function(){if(window[x])lSr(D,a,x,Q);else{D.setState(3);var f=_.Nm7(h),C=document.getElementById(f);C&&(_.I2A(f),C.parentNode.removeChild(C));_.yR(new _.XH("BL:ULB",h))}},G)):v?(G=_.l9("SCRIPT"),v instanceof _.a9?_.QM(G,v):G.textContent=v,G.nonce=_.vp(document),document.head.appendChild(G),document.head.removeChild(G),window[x]?lSr(D,a,x,Q):(D.setState(4),_.yR(new _.XH("BL:ULBJ")))):_.yR(new _.XH("BL:ULV"))};
Ykm=function(){this.state=1;this.vm=null;this.hU2=void 0};
_.V=Ykm.prototype;_.V.initialize=function(D,v,h,a){this.hU2=a;if(D.program){var Q;a=(Q=D.interpreterUrl)!=null?Q:null;if(D.interpreterSafeScript)Q=_.wrI(D.interpreterSafeScript);else{var G;Q=(G=D.interpreterScript)!=null?G:null}D.interpreterSafeUrl&&(a=_.yx(D.interpreterSafeUrl).toString());NoU(this,Q,a,D.program,v,h)}else _.yR(Error("qf"))};
_.V.isInitialized=function(){return!!this.vm};
_.V.getState=function(){return this.state};
_.V.isLoading=function(){return this.state===2};
_.V.invoke=function(D){D=D===void 0?{}:D;var v;this.vm?v=ISC(this.vm,{pG:D}):v=null;return v};
_.V.dispose=function(){p7C(this,null);this.setState(8)};
_.V.setState=function(D){this.state=D};
var Bo3=function(D,v){return D.vm.snapshot(v)},cLI=function(D,v){var h=_.oZ("botguard_async_snapshot_timeout_ms",3E3);
v=v===void 0?{}:v;h=h===void 0?3E3:h;return D.vm?new Promise(function(a,Q){var G=!1,x=_.HK.addJob(function(){G=!0;Q(Error("rf"))},1,h);
D.vm?Bo3(D,{pG:v}).then(function(f){_.HK.cancelJob(x);G||a(f)}).catch(function(f){_.HK.cancelJob(x);
G||Q(f)}):(_.HK.cancelJob(x),a(null))}):Promise.resolve(null)},X7m=["att/log"],geX;
geX={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var ALU={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},qkr=function(D,v){return _.ND(D,{mode:"readwrite",enableRetries:!0},function(h){return _.QA2(h,v,"settingEntity")})},bKs=function(D,v,h){return _.ND(D,{mode:"readonly",
enableRetries:!0},function(a){return _.Vlt(a,v,h)})},dhs=function(D){if(!D.storage)return!1;
a:{if(D.storage){try{var v=D.storage.get("TLPQtimestamp")}catch(h){}D=Number(v);if(!isNaN(D))break a}D=void 0}return D?Date.now()-D<864E5:!1},jQd=function(D){if(D.storage){try{var v=D.storage.get("TLPQindex")}catch(h){}D=Number(v);
if(!isNaN(D))return D}},sQZ=function(D,v){D.queueProxy&&v.forEach(function(h){if(h.videoId&&h.trackingParams&&D.queueProxy instanceof _.PC){var a=_.wd();
D.queueProxy.attributionData.set(h.videoId,{enqueueingVe:_.d4(h.trackingParams).getAsJson(),enqueueingCsn:a?a:void 0,clientEnqueueingTimeMs:Math.floor((0,_.xz)()).toString()})}})},mh2=function(D){var v=_.w_M(D);
v!=D.currentSnapState_&&(D.currentSnapState_=v,D.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},FK=function(D){this.JSC$13172_networkManager_=D;
this.partCallbacks_=[]};
FK.prototype.getCacheKeyForEndpoint=function(D){return _.tfr(D,!1)};
FK.prototype.onPartsCallback_=function(D){this.partCallbacks_.forEach(function(v){D&&v(D)})};
var zg=function(D,v,h){FK.call(this,D);this.player_=v;this.autoplayData_=h};
_.J(zg,FK);zg.prototype.getCacheKeyForEndpoint=function(D){return _.tfr(D,!!this.autoplayData_)};
zg.prototype.getTempData=function(D,v){v=v.timeBeforeNextVideo;D={itct:D.clickTrackingParams,lact:_.x_(),pbis:v,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(D.autonav=1);return D};
zg.prototype.getXhrParams=function(D){return Object.assign({pbj:"prefetch"},D)};
zg.prototype.getParams=function(D){D={frags:D.fragmentsRequested.join(",")};_.g("kevlar_droppable_prefetchable_requests")&&(D.prefetch=1);return D};
var HKr=function(D){D.playerEvents_.forEach(function(v){D.player.removeEventListener(v.eventName,v.callback)});
D.playerEvents_.length=0},UU=function(D,v,h){this.player=D;
this.JSC$13182_taskManager=v;this.prefetchDelay=h;this.completionResolver_=null;this.playerEvents_=[]};
UU.prototype.start=function(){var D=this;this.completionResolver_=_.hn();_.yS(this.completionResolver_.promise,function(){HKr(D);D.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var yLb=function(D,v,h){D.player.addEventListener(v,h);D.playerEvents_.push({eventName:v,callback:h})},w7r={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},emm={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},nYU=function(D,v,h){UU.call(this,D,v,h);this.cueId_="playbackTrigger-"+Math.random()};
_.J(nYU,UU);
nYU.prototype.prepareTrigger=function(D){var v=this,h=this.player.getDuration(),a=this.player.getVideoData(),Q=a.isLive&&a.hasProgressBarBoundaries;if(Q&&a.progressBarEndPositionUtcTimeMillis){var G=a.progressBarEndPositionUtcTimeMillis/1E3;isNaN(G)||(h=G)}var x=0;this.prefetchDelay>=0?Q?a.progressBarStartPositionUtcTimeMillis&&(a=a.progressBarStartPositionUtcTimeMillis/1E3,isNaN(a)||(x=a+this.prefetchDelay)):x=this.prefetchDelay:x=h+this.prefetchDelay;Q?this.player.addUtcCueRange(this.cueId_,x,h):
this.player.addCueRange(this.cueId_,x,h);_.yS(D.promise,function(){v.player.removeCueRange(v.cueId_)});
yLb(this,"onCueRangeEnter",function(f){f==v.cueId_&&D.resolve(h-x)})};
var OK3=function(D,v){D.fragmentConfiguration_[v].requiredKeys.every(function(h){return!!D.prefetchedData_[h]})&&(D.validatedFragments_.push(v),v=D.missingFragments_.indexOf(v),v!==-1&&D.missingFragments_.splice(v,1))},KP2=function(D){D.prefetchedFragments_.forEach(function(v){OK3(D,v)})},Tor=function(D,v,h){this.pageFragments_=D;
this.prefetchedFragments_=v;this.fragmentConfiguration_=emm;this.prefetchedData_=h;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;KP2(this)},RmK=function(){},iK$=function(D){this.JSC$13196_playlistManager_=D};
_.J(iK$,RmK);iK$.prototype.getPrefetchEndpoint=function(){return this.JSC$13196_playlistManager_.getAutoplayEndpoint()};
var WPU=function(D){this.autonavEndpoints_=D};
_.J(WPU,RmK);WPU.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var t6U=function(D,v,h,a,Q){this.autonavEndpoints=D;this.foregroundTrigger=v;this.backgroundTrigger=h;this.pageType=a;this.isInPlaylist=Q},rL2=function(D,v){if(D.webPrefetchData&&D.webPrefetchData.navigationEndpoints&&D.webPrefetchData.navigationEndpoints.length){D=D.webPrefetchData.navigationEndpoints;
var h=_.k(D[0],_.hP);if(h.watchEndpointSupportedPrefetchConfig&&h.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var a=h.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;h=a.playbackRelativeSecondsPrefetchCondition;h=typeof h==="number"&&Math.abs(h)<v.videoDuration?h:void 0;a=a.countdownUiRelativeSecondsPrefetchCondition;a=typeof a!=="number"||_.g("prefetch_job_config_cleanup_ks")&&v.inPlaylist?void 0:a;if(typeof a==="number")return new t6U(D,v.makeUpNextTrigger(a),v.makePlaybackTrigger(a),
"watch",v.inPlaylist);if(typeof h==="number")return new t6U(D,v.makePlaybackTrigger(h),null,"watch",v.inPlaylist)}}},uCm=function(D){return D.prefetchJobConfig_.backgroundTrigger?_.KJ(_.Jxu)()==0?D.prefetchJobConfig_.backgroundTrigger:D.prefetchJobConfig_.foregroundTrigger:D.prefetchJobConfig_.foregroundTrigger},D6S=function(D){_.d9(document,"visibilitychange",D.onVisibilityChange_,!1,D)},L8=function(D){FK.call(this,D)};
_.J(L8,FK);L8.prototype.getCacheKeyForEndpoint=function(D){return FK.prototype.getCacheKeyForEndpoint.call(this,D)};
L8.prototype.getTempData=function(){return{}};
L8.prototype.getXhrParams=function(D){return D};
L8.prototype.getParams=function(){return{}};
var v7$=function(D,v,h){var a=D.prefetchDelay*1E3;if(Math.abs(a)>v)h.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Q=a,G=v-a;a<0&&(Q=v+a,G=Math.abs(a));var x=D.JSC$13182_taskManager.addJob(function(){h.resolve(G/1E3)},10,Q);
h.promise.thenCatch(function(){D.JSC$13182_taskManager.cancelJob(x)})}},hcd=function(D,v,h){UU.call(this,D,v,h)};
_.J(hcd,UU);hcd.prototype.prepareTrigger=function(D){var v=this;yLb(this,"onAutonavCoundownStarted",function(h){v7$(v,h,D)})};
var aK$=function(D){D.pendingPrefetchJob_&&(D.pendingPrefetchJob_.cancel(),D.pendingPrefetchJob_=null)},$6X=function(D,v,h){if(!D.triggeredTargets.has(v)){var a=_.A0$(D,v);
a.action=h;_.c0y(D,v,a)}},Qp$=function(D){_.Zky();
_.sR2("cpt")&&_.yR(Error("qh"));_.$L.requestAnimationFrame(function(){_.$L.setTimeout(function(){_.ea("cpt");var v=_.K1("vpl"),h=_.K1("cpt");v&&h&&_.ea("ol",Math.max(v,h))})});
try{_.ea("fr_s"),D()}catch(v){_.mV(v)}_.$L.requestAnimationFrame(function(){_.ea("bcp")})},Gw$=function(D,v){D.serviceEndpointHandlers.push(v)},VIK=function(D,v){v=D.pendingPages_.indexOf(v);
v>-1&&D.pendingPages_.splice(v,1)},PTS=function(D,v){var h=_.wk4.indexOf(v);
h>-1&&_.wk4.splice(h,1);D.targetPage_==v?(D.abort(),_.n8p(D)):VIK(D,v)},x62=function(D,v,h,a){v={challenge:v};
h&&(v.webResponse=h);return _.My(D.innertubeTransportService,v,_.xV(X7m),a)},MIS=function(D,v,h){if(!v.challenge)throw Error("vi");
if(v.botguardData&&v.botguardData.program){var a=new Ykm;a.initialize(v.botguardData,function(){cLI(a,{atr_challenge:v.challenge}).then(function(Q){if(!Q)throw Error("wi");return x62(D,v.challenge,Q,h)}).catch(function(Q){_.yR(Q);
return x62(D,v.challenge,void 0,h)})},void 0)}else x62(D,v.challenge,void 0,h)},fKI=function(D,v,h){var a={};
v.ids&&(a.ids=[].concat(_.j_(v.ids)));v.engagementType&&(a.engagementType=v.engagementType);return _.My(D.innertubeTransportService,a,_.xV(_.kJ1),h).then(function(Q){if(!Q)throw new _.XH("GetAttestationChallenge returned falsy");MIS(D,Q,h)}).thenCatch(function(Q){_.mV(Q)})},CT2=function(D,v,h){return new _.IB(function(a,Q){var G;
return _.M(function(x){if(x.nextAddress==1){var f=x.yield,C=v.engagementType,U=v.ids,L={};U=_.P(U!=null?U:[]);for(var Z=U.next();!Z.done;Z=U.next())Z=Z.value,Z.encryptedVideoId?L.encryptedVideoId=Z.encryptedVideoId:Z.externalChannelId?L.externalChannelId=Z.externalChannelId:Z.commentId?L.commentId=Z.commentId:Z.externalOwnerId?L.externalOwnerId=Z.externalOwnerId:Z.artistId?L.artistId=Z.artistId:Z.playlistId?L.playlistId=Z.playlistId:Z.externalPostId?L.externalPostId=Z.externalPostId:Z.shareId&&(L.shareId=
Z.shareId);return f.call(x,dFK(C,L),2)}G=x.yieldResult;if(!G.challenge)return _.yR(Error("xi")),fKI(D,v,h).then(a,Q),x.return();f=G;C={challenge:f.challenge};C.webResponse=f.webResponse;C.engagementType=v.engagementType;C.ids=v.ids;_.My(D.innertubeTransportService,C,_.xV(X7m),h).then(a,Q);_.YI(x)})})},i_d=function(D,v){var h,a,Q,G;
_.M(function(x){if(x.nextAddress==1){h=_.k(v,_.AFm);if(!(h&&h.listId&&D.response&&D.response.playingVideoId)||D.listId!==h.listId)return x.return();D.index===void 0&&(D.index=0);return x.yield(_.nbs(D.JSC$12929_playlistNetworkManager,h.listId,D.index,D.response.playingVideoId),2)}a=x.yieldResult;if(!a)return x.return();Q=a.playlistId;G=a.playlistPanelRenderer;D.setPlaylistData(Q,G,a.autoplayRenderer);_.YI(x)})},o7X=function(D,v,h){var a=D.getParams(h),Q=_.rn8(v,a),G=D.getTempData(v,h);
G.endpoint=JSON.stringify(v);_.g("enable_unknown_lact_fix_on_html5")&&(_.xd().resolve(_.qL),G.lact=_.x_());var x={headers:{"X-YouTube-STS":_.eA("STS"),"x-youtube-csoc":1}};_.Vp(Q,G);return new _.IB(function(f,C){var U=D.getXhrParams(a),L;_.g("kevlar_cache_on_ttl_player")&&(L=_.Rl.instance);L&&_.xzJ(L,v)?_.L0b(L,v,G,window.location.href).then(function(Z){Z?f(Z):C()},C):_.skF(D.JSC$13172_networkManager_,v,U,D.onPartsCallback_.bind(D),x).then(function(Z){Z?f(Z):C()},C)})},FvS=function(D,v){D.triggerPromise_=
v.start();
D.triggerPromise_.then(function(h){var a=D.prefetchEndpointProvider_.getPrefetchEndpoint();if(a){var Q=w7r[D.prefetchJobConfig_.pageType].prefetchedFragments;D.prefetchRequestPromise_=o7X(D.JSC$13208_networkPrefetchRequest_,a,{fragmentsRequested:Q,timeBeforeNextVideo:h});D.prefetchResponseCacheKey_=D.JSC$13208_networkPrefetchRequest_.getCacheKeyForEndpoint(a);D6S(D);D.prefetchRequestPromise_.then(function(G){D.storePrefetchedDataCallback_(D.prefetchResponseCacheKey_,G);if(_.g("web_prefetch_preload_video")&&
Q.length===1&&Q[0]==="pl"&&G&&!G.playerAds&&!G.adPlacements){var x=_.k(a,_.AQ),f=x!=null,C={raw_player_response:G,watch_endpoint:x};(G=_.xd().resolve(f?_.lhJ:_.zf))&&a&&G.then(function(U){f&&_.g("web_queue_preload_video")?(C.prefer_gapless=!0,U.queueNextVideo(C)):U.preloadVideoByPlayerVars(C)})}})}})},ZA=function(D,v,h,a){this.prefetchEndpointProvider_=D;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=v;this.prefetchJobConfig_=h;this.JSC$13208_networkPrefetchRequest_=a;this.prefetchResponseCacheKey_=null};
ZA.prototype.enqueue=function(){this.triggerPromise_||(FvS(this,uCm(this)),_.s_(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
ZA.prototype.resolve=function(){this.cancel()};
ZA.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.");D6S(this)};
ZA.prototype.onVisibilityChange_=function(){var D=this;_.KJ(_.Jxu)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){D.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||FvS(this,uCm(this))};
var zcZ=function(D,v,h,a,Q){v&&(v==null?0:v.videoId)&&h&&h.entries&&_.g("kevlar_enable_shorts_prefetch_in_sequence")&&(aK$(D),v=h.entries.map(function(G){var x;return(x=_.k(G.command,_.AQ))==null?void 0:x.videoId}).indexOf(v.videoId),h=h.entries[v+1],h!=null&&h.command&&!_.k(h==null?void 0:h.command,_.Qi)&&(a=new t6U([h.command],new nYU(a,_.HK,1),null,"shorts",!1),D.pendingPrefetchJob_=new ZA(new WPU(a.autonavEndpoints),function(){return!1},a,new L8(Q)),D.pendingPrefetchJob_.enqueue()))},U6U=function(D,
v,h,a,Q,G){var x=_.Jp.getInstance();
if(!_.g("block_all_player_prefetch_requests")){aK$(D);var f=!!h.getPlaylistId(),C=h.getVideoData().isLive&&h.getVideoData().hasProgressBarBoundaries;if((x.getState()==2||f||C)&&(!h.getVideoData().isLive||C)){x={inPlaylist:f,videoDuration:h.getDuration(),makeUpNextTrigger:function(L){return new hcd(h,_.HK,L)},
makePlaybackTrigger:function(L){return new nYU(h,_.HK,L)}};
var U=rL2(v,x);U&&(D.pendingPrefetchJob_=new ZA(U.isInPlaylist?new iK$(Q):new WPU(U.autonavEndpoints),function(L,Z){Z=new Tor(w7r[U.pageType].pageFragments,w7r[U.pageType].prefetchedFragments,Z);return _.gx4(Z)?(D.prefetchCache_.set(L,Z),!0):!1},U,new zg(a,h,G,Q)),D.pendingPrefetchJob_.enqueue())}}},LvZ=function(){var D=_.UH();
D.signals.parkOrScheduleJob(function(){var v=D.storage;if(v.storage)if(dhs(v)){var h=v.getPlaylistId();v=jQd(v);h=!!h&&v!==void 0}else v.clear(),h=!1;else h=!1;if(h){h=D.pageManager.isOnWatch();a:{var a=D.storage;if(a.storage&&dhs(a)&&(v=a.getPlaylistId(),a=jQd(a),v&&a!==void 0)){h={recoverPlaylistCommand:{listId:v,index:a,openMiniplayer:!h,openListPanel:h,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}h=void 0}h&&_.rt(D.JSC$12929_actionRouter,[h],null)}},0,"ma")},Zar=function(D,v,h,a,Q,G){var x=
_.En(7111);
_.de(D.JSC$18356_screenManager,x,G?_.d4(G):void 0);_.se(D.JSC$18356_screenManager,x,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:a,offlineId:v,offlineabilityFormatType:h,isDefaultFormatType:Q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Q}})},E7U=function(D,v,h,a,Q){var G,x,f,C,U;
return _.M(function(L){if(L.nextAddress==1)return L.yield(D.JSC$18356_playerApiPromise,2);G=L.yieldResult;Zar(D,v,h,"OFFLINE_OBJECT_TYPE_PLAYLIST",a,Q);if(f=_.Fi$[D.entityTypeMap.listEntityType])U={},x=(U[f]={maximumDownloadQuality:(C=h)!=null?C:void 0},U);return L.yield(G.queueOfflineAction(v,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",x),0)})},IKC=function(D,v){var h,a,Q,G;
return _.M(function(x){if(x.nextAddress==1)return x.yield(D.JSC$18356_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3){h=x.yieldResult;if(!h)return _.yR(new _.XH("PES is undefined")),x.return();a=_.IG(v,"downloadStatusEntity");return x.yield(bKs(h,a,"downloadStatusEntity"),3)}Q=x.yieldResult;return x.return((G=Q)==null?void 0:G.downloadState)})},g7S=function(D,v,h,a,Q){var G,x,f,C,U,L;
return _.M(function(Z){switch(Z.nextAddress){case 1:return Z.yield(D.JSC$18356_playerApiPromise,2);case 2:G=Z.yieldResult;Zar(D,v,h,"OFFLINE_OBJECT_TYPE_VIDEO",a,Q);if(f=_.Fi$[D.entityTypeMap.singleEntityType])U={},x=(U[f]={maximumDownloadQuality:(C=h)!=null?C:void 0},U);return Z.yield(IKC(D,v),3);case 3:L=Z.yieldResult;if(L!=="DOWNLOAD_STATE_USER_DELETED"){Z.jumpTo(4);break}return Z.yield(D.deleteVideo(v),4);case 4:return Z.yield(G.queueOfflineAction(v,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
x),0)}})},kw2=function(D,v,h,a,Q){return _.M(function(G){return G.nextAddress==1?G.yield(D.deleteVideo(v,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):G.yield(g7S(D,v,h,a,Q),0)})},S1Z=function(D,v,h){var a,Q;
return _.M(function(G){if(G.nextAddress==1)return G.yield(D.JSC$18356_playerApiPromise,2);a=G.yieldResult;Q=_.IG(v,"mainVideoDownloadStateEntity");return G.yield(a.updateDownloadState(Q,h),0)})},L2Z=function(D){var v=_.xd().resolve(_.yW);
return _.M(function(h){if(h.nextAddress==1)return v.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&v.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?h.jumpTo(2):h.yield(v.resumeVideoDownload(D),2);if(h.nextAddress!=4)return h.yield(S1Z(v,D,v.previousDownloadStateForVideo[D]),4);delete v.previousDownloadStateForVideo[D];_.YI(h)})},z62=function(D,v){var h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18356_playerApiPromise,2);h=a.yieldResult;return a.yield(h.queueOfflineAction(v,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},CjC=function(){var D=_.xd().resolve(_.yW),v,h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18356_playerApiPromise,2);if(a.nextAddress!=3)return v=a.yieldResult,h={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},a.yield(v.queueOfflineAction("!*$_ALL_ENTITIES_!*$",D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",h),3);var Q=D.JSC$18356_commandHandler,G=Q.resolveCommand,x=_.p1("DELETING_ALL",void 0,"Downloads are being deleted");G.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.MD(x)}},
popupType:"TOAST"}});_.YI(a)})},J8K=function(D,v){var h,a,Q,G,x,f;
return _.M(function(C){if(C.nextAddress==1)return C.yield(D.JSC$18356_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return h=C.yieldResult,h?C.yield(bKs(h,_.jq,"downloadsPageViewConfigurationEntity"),3):(_.yR(new _.XH("PES is undefined")),C.return());Q=(a=C.yieldResult)!=null?a:{};f=(x=(G=Q)==null?void 0:G.downloadsUpsellBannerVisibility)!=null?x:{};return f.visibleWithConnection?C.yield(v.refreshAllStaleEntities(0),0):C.jumpTo(0)})},pDK=function(D){var v,h;
return _.M(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18356_prefStorage,2);v=a.yieldResult;return a.return((h=v)==null?void 0:h.get("sdois"))})},lKr=function(D){var v,h,a,Q,G,x;
return _.M(function(f){if(f.nextAddress==1)return f.yield(D.JSC$18356_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3){v=f.yieldResult;if(!v)return _.yR(new _.XH("PES is undefined")),f.return();h=_.IG("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return f.yield(bKs(v,h,"settingEntity"),3)}a=f.yieldResult;return f.return((x=(Q=a)==null?void 0:(G=Q.settingOptionValue)==null?void 0:G.boolValue)!=null?x:!1)})},NYC=function(D,v){var h,a,Q,G;
return _.M(function(x){switch(x.nextAddress){case 1:return((h=v)==null?void 0:h.formatType)===void 0?x.return():x.yield(D.JSC$18356_prefStorage,2);case 2:a=x.yieldResult;if(a===void 0)return x.return();if(((Q=v)==null?void 0:Q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return x.yield(a.set("lmqf",v.formatType),8);if(((G=v)==null?void 0:G.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){x.jumpTo(0);break}return x.yield(a.set("lmqf",v.formatType),6);case 6:return x.yield(a.set("lmqflst",
Math.floor((0,_.xz)())),0);case 8:return x.yield(a.remove("lmqflst"),0)}})},Y1$=function(D){var v,h;
return _.M(function(a){switch(a.nextAddress){case 1:return a.yield(D.JSC$18356_prefStorage,2);case 2:v=a.yieldResult;if(!v){a.jumpTo(3);break}return a.yield(v.get("lmqflst"),4);case 4:if(h=a.yieldResult,h!==void 0)return a.return(h);case 3:return a.return(0)}})},BYI=function(D){var v,h;
return _.M(function(a){switch(a.nextAddress){case 1:return a.yield(D.JSC$18356_prefStorage,2);case 2:v=a.yieldResult;if(v===void 0){a.jumpTo(3);break}return a.yield(v.get("lmqf"),4);case 4:if(h=a.yieldResult,h!==void 0)return a.return(h);case 3:return a.return("SD")}})},pOI=function(D,v,h){var a,Q,G,x,f,C,U,L;
_.M(function(Z){switch(Z.nextAddress){case 1:return Z.yield(NYC(D,(a=v)==null?void 0:a.actionParams),2);case 2:Q=v.playlistId;if(!Q)return Z.return();if(v.action==="ACTION_ADD")return((x=v.actionParams)==null?0:x.formatType)?Z.yield(E7U(D,Q,v.actionParams.formatType,(L=v.actionParams)==null?void 0:L.settingsAction,h),0):Z.yield(D.offlineWebClientEligibility,14);if(v.action==="ACTION_REMOVE_WITH_PROMPT"){var E=D.JSC$18356_commandHandler,I=E.resolveCommand,S=_.eA("INNERTUBE_CLIENT_NAME");var B=S===
"WEB_REMIX"?_.p1("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.p1("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var A=S==="WEB_REMIX"?[_.p1("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];S=S==="WEB_REMIX"?_.p1("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.p1("DELETE",void 0,"Delete");var d=_.p1("CANCEL",void 0,"Cancel");B=jNK(B,A,S,d,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Q});I.call(E,{openPopupAction:B});return Z.return()}if(v.action===
"ACTION_REMOVE")return Z.yield(z62(D,Q),0);if(v.action!=="ACTION_SYNC"){Z.jumpTo(0);break}return Z.yield(D.JSC$18356_playerApiPromise,9);case 9:return G=Z.yieldResult,Z.yield(G.queueOfflineAction(Q,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return f=Z.yieldResult,Z.yield(BYI(D),15);case 15:return C=Z.yieldResult,Z.yield(Y1$(D),16);case 16:U=Z.yieldResult,v.onAddCommand&&D.JSC$18356_commandHandler.resolveCommand(v.onAddCommand,{form:{preferredFormatType:C,
offlineWebClientEligibility:f,lastOfflineQualitySettingsSavedMs:U.toString()}}),Z.jumpTo(0)}})},Syr=function(D,v,h){var a,Q,G,x,f,C,U,L,Z,E,I,S,B,A;
_.M(function(d){switch(d.nextAddress){case 1:return d.yield(NYC(D,(a=v)==null?void 0:a.actionParams),2);case 2:Q=v.videoId;if(!Q)return d.return();if(v.action==="ACTION_REMOVE_WITH_PROMPT"){var b=D.JSC$18356_commandHandler,W=b.resolveCommand,K=_.eA("INNERTUBE_CLIENT_NAME");var O=K==="WEB_REMIX"?_.p1("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.p1("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var R=K==="WEB_REMIX"?[_.p1("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];K=K==="WEB_REMIX"?_.p1("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.p1("DELETE",void 0,"Delete");var vA=_.p1("CANCEL",void 0,"Cancel");O=jNK(O,R,K,vA,{signal:"DELETE_DOWNLOAD",targetId:Q});W.call(b,{openPopupAction:O});return d.return()}if(v.action==="ACTION_ADD")return((E=v.actionParams)==null?0:E.formatType)?d.yield(g7S(D,Q,v.actionParams.formatType,(A=v.actionParams)==null?void 0:A.settingsAction,h),0):d.yield(D.offlineWebClientEligibility,23);if(v.action==="ACTION_RETRY")return d.yield(BYI(D),
19);if(v.action==="ACTION_PAUSE")return d.yield(D.pauseVideoDownload(Q),0);if(v.action==="ACTION_RESUME")return d.yield(D.resumeVideoDownload(Q),0);if(v.action!=="ACTION_REMOVE"){d.jumpTo(0);break}return d.yield(IKC(D,Q),13);case 13:return G=d.yieldResult,D.previousDownloadStateForVideo[Q]=(x=G)!=null?x:"DOWNLOAD_STATE_UNKNOWN",d.yield(S1Z(D,Q,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(D.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&D.previousDownloadStateForVideo[Q]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){d.jumpTo(15);break}return d.yield(D.pauseVideoDownload(Q),15);case 15:b=_.p1("DELETED_VIDEO",void 0,"Video deleted from downloads.");W=_.p1("UNDO_ACTION",void 0,"Undo");O=_.p1("CLOSE",void 0,"Close");f={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.MD(b),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.MD(W),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:b+" "+W}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:O}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};D.JSC$18356_commandHandler.resolveCommand(f);
d.jumpTo(0);break;case 19:C=d.yieldResult;C==="UNKNOWN_FORMAT_TYPE"&&(C="SD");U="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((L=v.actionParams)==null?0:L.formatType)C=v.actionParams.formatType,U=(Z=v.actionParams)==null?void 0:Z.settingsAction;return d.yield(kw2(D,Q,C,U,h),20);case 20:return d.return();case 23:return I=d.yieldResult,d.yield(BYI(D),24);case 24:return S=d.yieldResult,d.yield(Y1$(D),25);case 25:B=d.yieldResult,v.onAddCommand&&D.JSC$18356_commandHandler.resolveCommand(v.onAddCommand,
{form:{preferredFormatType:S,offlineWebClientEligibility:I,lastOfflineQualitySettingsSavedMs:B.toString()}}),d.jumpTo(0)}})},c8m=function(D,v){var h,a,Q,G,x,f,C;
return _.M(function(U){if(U.nextAddress==1)return U.yield(D.JSC$18356_persistentStorePromiseAccessor(),2);h=U.yieldResult;if(!h)return _.yR(new _.XH("PES is undefined")),U.return();if((a=v)==null||!a.settingItemId)return U.return();Q=v;G=Q.settingItemId;x=Q.boolValue;f=_.IG(G,"settingEntity");C={key:f,settingOptionValue:{boolValue:x}};return U.yield(qkr(h,C),0)})},XDI=function(D,v){var h,a,Q,G,x,f,C;
return _.M(function(U){switch(U.nextAddress){case 1:return U.yield(D.JSC$18356_prefStorage,2);case 2:return h=U.yieldResult,a=_.YE(),U.yield(D.JSC$18356_persistentStorePromiseAccessor(),3);case 3:return Q=U.yieldResult,h?Q?U.yield(h.get("sdois"),4):(_.yR(new _.XH("PES is undefined")),U.return()):(_.yR(new _.XH("prefStorage is undefined")),U.return());case 4:G=U.yieldResult;f=(x=v)==null?void 0:x.boolValue;f===void 0||_.g("kevlar_set_sd_enabled_flag_killswitch")||_.BU(0,197,!0);G===void 0&&f===void 0&&
(f=!1);if(f===void 0){U.jumpTo(0);break}return U.yield(h.set("sdois",f),6);case 6:return _.g("kevlar_set_sd_enabled_flag_killswitch")||(_.BU(0,196,f),a.save()),C={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:f},U.yield(c8m(D,C),0)}})},A8$=function(D,v,h){var a,Q,G,x,f;
return _.M(function(C){switch(C.nextAddress){case 1:return C.yield(pDK(D),2);case 2:return a=C.yieldResult,C.yield(XDI(D,h),3);case 3:return C.yield(pDK(D),4);case 4:return Q=C.yieldResult,G=Q!==a,C.yield(lKr(D),5);case 5:x=C.yieldResult&&!_.g("kevlar_modern_downloads_page");if((f=!Q&&!x)||G)return C.yield(v.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);C.jumpTo(0)}})},E2$=function(){var D=_.xd().resolve(_.yW),
v;
_.M(function(h){switch(h.nextAddress){case 1:return h.yield(D.JSC$18356_playerApiPromise,2);case 2:v=h.yieldResult;if(!_.g("kevlar_force_refresh_smart_downloads")){h.jumpTo(3);break}return h.yield(v.refreshAllStaleEntities(0),4);case 4:return h.return();case 3:return h.yield(v.refreshAllStaleEntities(),5);case 5:return h.yield(A8$(D,v),6);case 6:if(_.g("enable_download_pep_for_premium_countries_web"))return h.yield(J8K(D,v),0);h.jumpTo(0)}})},Nvb=function(D,v){var h,a;
_.M(function(Q){switch(Q.nextAddress){case 1:return Q.yield(D.JSC$18356_playerApiPromise,2);case 2:h=Q.yieldResult;switch((a=v)==null?void 0:a.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Q.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Q.jumpTo(4)}Q.jumpTo(0);break;case 3:return Q.yield(A8$(D,h,v),6);case 6:Q.jumpTo(0);break;case 4:return Q.yield(c8m(D,v),7);case 7:Q.jumpTo(0)}})},q1$=function(D,v){var h,a,Q;
return _.M(function(G){if(G.nextAddress==1)return G.yield(D.JSC$18356_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3){h=G.yieldResult;if(!h)return _.yR(new _.XH("PES is undefined")),G.return(!1);if(!v)return G.return(!1);a=_.IG(v,"mainVideoEntity");return G.yield(bKs(h,a,"mainVideoEntity"),3)}Q=G.yieldResult;return G.return(Q!==void 0)})},Bv3=function(D){var v=_.xd().resolve(_.yW),h,a,Q,G,x,f,C,U,L,Z,E;
_.M(function(I){switch(I.nextAddress){case 1:return I.yield(v.JSC$18356_playerApiPromise,2);case 2:h=I.yieldResult;Q=(a=D)==null?void 0:a.actions;if(!Q)return I.return();G=_.P(Q);x=G.next();case 3:if(x.done){I.jumpTo(0);break}f=x.value;U=C=void 0;if(!(((C=f)==null?0:C.entityKey)&&((U=f)==null?0:U.actionType))){I.jumpTo(4);break}L=_.LG(f.entityKey);Z=L.entityId;E=L.entityType;return I.yield(h.queueOfflineAction(Z,E,f.actionType),4);case 4:x=G.next(),I.jumpTo(3)}})},bam=function(D,v){var h,a,Q,G,x;
return _.M(function(f){if(f.nextAddress==1)return f.yield(D.JSC$18356_prefStorage,2);if(f.nextAddress!=3)return(h=f.yieldResult)?f.yield(h.get("psi"),3):f.return();a=f.yieldResult;x={isPaused:v,lastSyncTimestamp:(G=(Q=a)==null?void 0:Q.lastSyncTimestamp)!=null?G:"0"};return f.yield(h.set("psi",x),0)})},Am3=function(D){var v=_.xd().resolve(_.yW),h,a,Q,G,x,f,C,U;
return _.M(function(L){switch(L.nextAddress){case 1:return L.yield(v.JSC$18356_playerApiPromise,2);case 2:h=L.yieldResult;Q=((a=D)==null?void 0:a.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((f=D)==null?void 0:f.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":G="!*$_ALL_ENTITIES_!*$";x="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return L.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return L.jumpTo(4)}L.jumpTo(5);break;case 3:return L.yield(bam(v,Q),6);case 6:L.jumpTo(5);break;case 4:return L.yield(q1$(v,(C=D)==null?void 0:C.videoId),7);case 7:L.yieldResult&&(G=(U=D)==null?void 0:U.videoId,x="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");L.jumpTo(5);break;case 5:if(G&&x)return L.yield(h.queueOfflineAction(G,"videoPlaybackPositionEntity",x),0);L.jumpTo(0)}})},d6r=function(D,v){var h;
v!==1||((h=D.currentPersistentToast)==null?0:h.isOpened())?D.openToast():D.currentPersistentToast=void 0},jpr=function(D,v){var h;
return(h=D.transitionTasksMap.get(v))!=null?h:[]},sp$=function(D,v){var h=[];
D.elementTasksMap.forEach(function(a){(a=a.get(v))&&h.push(a)});
return h},m62=function(D,v,h,a,Q){Q=Q===void 0?{}:Q;
var G=v.defaultViewTransitionOptions;return Object.assign({},G,Q,{beforeTransition:function(){a.forEach(function(U){U.beforeTransition()});
var x;(x=G.beforeTransition)==null||x.call(G);var f,C;(C=(f=Q).beforeTransition)==null||C.call(f);h.forEach(function(U){U.beforeTransition()})},
afterTransition:function(){a.forEach(function(U){U.afterTransition()});
var x;(x=G.afterTransition)==null||x.call(G);var f,C;(C=(f=Q).afterTransition)==null||C.call(f);h.forEach(function(U){U.afterTransition()})},
ignoredErrors:D.config.ignoredErrors})},HaS=function(D,v,h){D.transitionTasksMap.has(v)?D.transitionTasksMap.get(v).push(h):(D=new _.XH("Transition task registered for unknown transition type",v),_.mV(D))},y82=function(D,v,h){if(D.transitionTasksMap.has(v)){var a=D.transitionTasksMap.get(v).filter(function(Q){return Q!==h});
D.transitionTasksMap.set(v,a)}},wDI=function(D,v){var h=jpr(D,v);
h=_.P(h);for(var a=h.next();!a.done;a=h.next())a=a.value,a.runOnce&&y82(D,v,a);D.elementTasksMap.forEach(function(Q,G){Q.forEach(function(x,f){x.runOnce&&v===f&&(Q.delete(f),Q.size===0&&D.elementTasksMap.delete(G))})})},ecK=function(D,v,h){var a,Q,G,x,f,C,U,L,Z;
_.M(function(E){if(E.nextAddress==1){if(D.config.disableAllTransitions)return E.return(v());if((a=h)==null||!a.transitionType)return E.return(_.Ef2(v,Object.assign({},(Q=h)==null?void 0:Q.viewTransitionOptions,{ignoredErrors:D.config.ignoredErrors})));G=h;x=G.transitionType;f=G.viewTransitionOptions;C=D.config.transitionConfigs.get(x);if(!C)return E.return(v());U=jpr(D,x);L=sp$(D,x);Z=_.Ef2(v,m62(D,C,U,L,f));return E.yield(Z,2)}wDI(D,x);_.YI(E)})},n7m=function(){var D,v,h,a;
return _.M(function(Q){if(Q.nextAddress==1)return D=navigator,(v=D.storage)!=null&&v.persisted?Q.yield((h=D.storage)==null?void 0:h.persisted(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");a=Q.yieldResult;return Q.return(a?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Oa3=function(){var D,v,h,a;
return _.M(function(Q){if(Q.nextAddress==1)return D=navigator,(v=D.storage)!=null&&v.persist?Q.yield((h=D.storage)==null?void 0:h.persist(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");a=Q.yieldResult;return Q.return(a?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},KvS=function(){var D,v;
return _.M(function(h){switch(h.nextAddress){case 1:return D="PERSISTED_STATE_NOT_SUPPORTED",_.gE(h,2),h.yield(n7m(),4);case 4:D=h.yieldResult;if(D!=="PERSISTED_STATE_NOT_GRANTED"){h.jumpTo(5);break}return h.yield(Oa3(),6);case 6:D=h.yieldResult;case 5:_.rl(h,3);break;case 2:v=_.NS(h),v instanceof Error&&_.mV(v);case 3:return _.jj("persistentStorageStateChecked",{persistedState:D}),h.return(D)}})},TYr=function(D,v){var h=[],a=!1;
v=_.P(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=D.moduleRegistry[Q.value];var G=void 0,x=void 0;((G=Q)==null?0:G.isFetching)&&((x=Q)==null?0:x.resolver)?(h.push(Q.resolver.promise),a=!0):(Q=new _.gT,Q.resolve(void 0),h.push(Q.promise))}return a?Promise.all(h):void 0},Rcr=function(D,v,h){if(D.isAnyTransitionEnabled){var a={beforeTransition:function(){h(!0);
v.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){v.style.viewTransitionName&&(v.style.viewTransitionName="",h(!1))}};
HaS(D.viewTransitionCoordinator,"slide",a);HaS(D.viewTransitionCoordinator,"lockup-to-watch",a);HaS(D.viewTransitionCoordinator,"watch-next-appears",a);HaS(D.viewTransitionCoordinator,"learning-journey",a)}},iar=function(D,v){D.isBrowseTransitionEnabled?ecK(D.viewTransitionCoordinator,v,{transitionType:"slide"}):(v(),Promise.resolve())},Wvr=function(D,v){D.isLockupToWatchTransitionEnabled?ecK(D.viewTransitionCoordinator,v,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){D.registeredLockupThumbnail=void 0;D.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(v(),Promise.resolve())},tI3=function(D,v){D.isLockupToWatchTransitionEnabled?ecK(D.viewTransitionCoordinator,v,{transitionType:"watch-next-appears"}):(v(),Promise.resolve())},r83=function(D,v){D.isLearningJourneyTransitionEnabled?ecK(D.viewTransitionCoordinator,v,{transitionType:"learning-journey"}):(v(),Promise.resolve())},utC=function(D,v,h){if(D.isInitialized()){var a=
rH(h),Q=a==="watch";
a=a==="shorts";var G=rH(v)==="watch";if(Q)G||(D.backgroundPageData=v),D.watchPipMode&&G||D.deactivate(h.endpoint);else if(a){if(rH(v)!=="shorts"){var x;(x=D.getPlayerElement())==null||x.pause()}}else G&&!D.watchPipMode&&(mFr(v,h)?(D.watchWhileMode&&_.chr(D,!1),_.Jhr(D,v)):D.isMiniplayerActive()&&D.watchWhileMode&&D.deactivate());G&&_.AhK(D);D.shortsPipMode&&!a&&(window.focus(),D.deactivate());if(D.pictureInPictureEnabled())if(a&&D.shortsPipEnabled||Q&&D.watchPipEnabled)_.Owc(D.handleMediaSessionPipActivation);
else if(!D.isMiniplayerActive()&&(D.shortsPipEnabled||D.watchPipEnabled)&&window.documentPictureInPicture&&_.cA()&&_.kuq("Chromium")>=120){D=_.ncO().mediaSession;try{D.setActionHandler("enterpictureinpicture",null)}catch(f){}}}},DAb=function(D,v){var h,a;
_.M(function(Q){if(Q.nextAddress==1){if(!D||!D.navigationEndpoint)return Q.return();_.eh().lockupActivation=!0;var G;v?G=_.aX(_.p1("QUEUE",void 0,"Queue")):G=D.longBylineText;a=(h=G)&&D.title?{miniplayerTitle:D.title,miniplayerSubtitle:h,playlistData:null}:void 0;return Q.yield(_.dQm(_.xd().resolve(_.Ok),D.navigationEndpoint,!0,a),2)}_.eh().userActivation=!0;_.YI(Q)})},Krd=function(D,v){var h,a,Q,G,x,f;
_.M(function(C){if(C.nextAddress==1){h=_.k(v,_.X9t);if(!h||!h.listId)return C.return();D.index=h.index||D.index||0;a=D.response&&D.response.playingVideoId||void 0;return C.yield(_.nbs(D.JSC$12929_playlistNetworkManager,h.listId,D.index,a),2)}Q=C.yieldResult;if(!Q)return C.return();G=Q.playlistId;x=Q.playlistPanelRenderer;!D.queueProxy&&G&&x&&G.startsWith("TLPQ")&&(D.queueProxy=new _.PC(D.JSC$12929_playlistNetworkManager,G,D.setPlaylistData.bind(D),D.clearQueue.bind(D),_.yEL(x),D.storage));if(h.openMiniplayer&&
(f=_.w2L(x))&&!D.pageManager.isOnWatch()){var U=f,L=h.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";D.isMiniplayerActive()?D.openToast(U):DAb(U,L)}D.setPlaylistData(G,x,Q.autoplayRenderer);_.YI(C)})},eU$=function(D,v){var h=_.UH();
h.index===void 0&&(h.index=0);h.temporaryItems.push.apply(h.temporaryItems,_.j_(D));if((v.videoId||v.videoIds)&&h.index!==void 0&&v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!h.queueProxy){var a=[];if(h.response){var Q=_.xd().resolve(_.Ok).isMiniplayerActive();if(h.response.playlistPanelRenderer&&h.response.playlistId&&!h.response.playlistId.startsWith("TLPQ")){if(h.pageManager.isOnWatch()||Q)a=_.yEL(h.response.playlistPanelRenderer)}else h.response.playingVideoId&&!v.openMiniplayer?a.push(h.response.playingVideoId):
Q&&h.response.playingVideoId&&v.openMiniplayer&&a.push(h.response.playingVideoId)}h.queueProxy=new _.PC(h.JSC$12929_playlistNetworkManager,"",h.setPlaylistData.bind(h),h.clearQueue.bind(h),a,h.storage);h.queueProxy.JSC$12875_setCurrentIndex(h.index)}h.queueProxy.addVideos(v.videoIds||[v.videoId],v)}sQZ(h,D);h.response&&_.Lh(h,_.ZL(h,h.response.autoplayRenderer));h.pageManager.isOnWatch()?h.isMiniplayerActive()&&h.openToast(D[0]):(D=D[0],v=v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",h.isMiniplayerActive()?
h.openToast(D):DAb(D,v))},vaC=function(D){var v=_.us(D);
if(v=="object"||v=="array"){if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);v=v=="array"?[]:{};for(var h in D)v[h]=vaC(D[h]);return v}return D},EU=function(D,v){return _.Epi(_.J8(D,v,void 0,_.SI))},Iw=function(D,v){return _.Gd(_.J8(D,v,void 0,_.SI))},g$=function(D,v){return _.s47(_.J8(D,v,void 0,_.SI))},kj=function(D,v){return _.J8(D,v,void 0,_.SI,_.is)},hCS=_.Cz(function(D,
v,h){if(D.nextWireType_!==0)return!1;
_.om(v,h,_.O1(D.decoder_,_.LRL));return!0},_.Lz,_.WD),aNs=_.Cz(function(D,v,h,a){if(D.nextWireType_!==0)return!1;
_.Y7(v,h,a,_.O1(D.decoder_,_.LRL));return!0},_.Lz,_.WD),$A3=_.Cz(function(D,v,h){if(D.nextWireType_!==1)return!1;
var a=D.decoder_;D=_.Tw(a);a=_.Tw(a);D=_.wJ(D,a);_.om(v,h,D);return!0},_.dfL,_.LHc),QHX=_.Cz(function(D,v,h){if(D.nextWireType_!==5)return!1;
_.om(v,h,_.Tw(D.decoder_));return!0},function(D,v,h){v=_.ky2(v);
v!=null&&(_.FY(D,h,5),_.zK(D.encoder_,v))},_.FH8),G6C=_.Cz(function(D,v,h){if(D.nextWireType_!==2)return!1;
D=_.D7r(D);_.om(v,h,D===_.ls()?void 0:D);return!0},_.y3c,_.I9L),VDZ=_.YQO(function(D,v,h){if(D.nextWireType_!==0&&D.nextWireType_!==2)return!1;
v=_.am(v,v[_.V$]|0,h);D.nextWireType_==2?_.vAO(D,UhK,v):v.push(_.Ka(D.decoder_));return!0},function(D,v,h){v=_.N0I(_.Gd,v,!0);
if(v!=null&&v.length){h=_.Pko(D,h);for(var a=0;a<v.length;a++)_.A3O(D.encoder_,v[a]);_.x77(D,h)}},_.gAr),P23=_.Cz(function(D,v,h,a){if(D.nextWireType_!==0)return!1;
_.Y7(v,h,a,_.Ka(D.decoder_));return!0},_.eB7,_.gAr),xAr=function(D){return D.previousElementSibling!==void 0?D.previousElementSibling:_.Ary(D.previousSibling,!1)},MDK=function(D,v){var h=[];
for(v=v||0;v<D.length;v+=2)_.go9(D[v],D[v+1],h);return h.join("&")},fNC=function(D,v){var h=arguments.length==2?MDK(arguments[1],0):MDK(arguments,1);
return _.Ift(D,h)},CcX=_.ko(_.m2),C2b=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(C2b,_.xo);C2b.prototype.getTypeName=function(){return _.jI(this,1).split("/").pop()};
C2b.prototype.getValue=function(){var D=_.J8(this,2);if(Array.isArray(D)||D instanceof _.xo)throw Error("W");return _.N6(this,2)};
var vtU=function(){var D=_.Lq();this.JSC$9921_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.zQ("channel_type"))};
vtU.prototype.increment=function(D){this.JSC$9921_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",D)};
var hSb=function(){var D=_.Lq();this.JSC$9924_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.zQ("channel_type"))};
hSb.prototype.increment=function(D){this.JSC$9924_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",D)};
var $KC=function(){var D=_.Lq();this.JSC$9927_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.zQ("channel_type"))};
$KC.prototype.increment=function(D){this.JSC$9927_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",D)};
var apS=function(){var D=_.Lq();this.JSC$9930_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
apS.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var QqZ=function(){var D=_.Lq();this.JSC$9933_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.zQ("channel_type"),_.zQ("error_type"))};
QqZ.prototype.increment=function(D,v){this.JSC$9933_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",D,v)};
var GzX=function(){var D=_.Lq();this.JSC$9936_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
GzX.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var VQs=function(){var D=_.Lq();this.JSC$9939_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
VQs.prototype.increment=function(){this.JSC$9939_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var rmZ=function(){var D=_.Lq();this.JSC$9945_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
rmZ.prototype.increment=function(){this.JSC$9945_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var oa3=function(D){return D.getCount&&typeof D.getCount=="function"?D.getCount():_.O8(D)||typeof D==="string"?D.length:_.sV.getCount(D)},FT3=function(D,v){if(typeof D.every=="function")return D.every(v,void 0);
if(_.O8(D)||typeof D==="string")return Array.prototype.every.call(D,v,void 0);for(var h=_.gfm(D),a=_.ov(D),Q=a.length,G=0;G<Q;G++)if(!v.call(void 0,a[G],h&&h[G],D))return!1;return!0},zC2=function(D,v,h,a){var Q=new _.aN(null);
D&&_.FW(Q,D);v&&_.zq(Q,v);h&&_.UG(Q,h);a&&_.LX(Q,a);return Q},UAX=function(){var D=_.Oz&&_.U8(_.dH$,10)>=0,v;
if(v=_.VzI)v=_.U8(_.bLR,10)>=0;var h=_.Ip&&_.U8(_.dH$,85)>=0;return _.U1||D||v||h},LTd=function(D){var v=_.vo$(D);
return v&&UAX()?-D.scrollLeft:v&&_.TQ(D,"overflowX")!="visible"?D.scrollWidth-D.clientWidth-D.scrollLeft:D.scrollLeft},ZWm=function(D,v){v=Math.max(v,0);
_.vo$(D)?UAX()?D.scrollLeft=-v:D.scrollLeft=D.scrollWidth-v-D.clientWidth:D.scrollLeft=v},DDs=0,QGs=!1;
D8.prototype.set=function(D){this.relativeTimeStart_=D};
D8.prototype.reset=function(){this.set(_.M6())};
D8.prototype.get=function(){return this.relativeTimeStart_};
var Ea3=null,INm=function(){Ea3||(Ea3=new D8)},gaC=function(){Ea3||(Ea3=new D8)};
_.fa(gaC,INm);_.V=VqZ.prototype;_.V.JSC$11360_buffer_="";_.V.set=function(D){this.JSC$11360_buffer_=""+D};
_.V.append=function(D,v,h){this.JSC$11360_buffer_+=String(D);if(v!=null)for(var a=1;a<arguments.length;a++)this.JSC$11360_buffer_+=arguments[a];return this};
_.V.clear=function(){this.JSC$11360_buffer_=""};
_.V.getLength=function(){return this.JSC$11360_buffer_.length};
_.V.toString=function(){return this.JSC$11360_buffer_};
var k62=!1,F6X=function(D){_.hc.call(this,D.message||D.description||D.name);this.isMissing=D instanceof vy;this.isTimeout=D instanceof _.jS&&D.errorCode=="net.timeout";this.isCanceled=D instanceof _.Oy};
_.J(F6X,_.hc);F6X.prototype.name="BiscottiError";var vy=function(){_.hc.call(this,"Biscotti ID is missing from server")};
_.J(vy,_.hc);vy.prototype.name="BiscottiMissingError";var hC=null,dLr=function(){try{var D=_.T3("yt.ads.biscotti.getId_");return D?D():TK2()}catch(v){return _.H8(v)}},SOC=function(D,v){return _.oG({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:D,command:v}})},JyI=function(D){return _.oG({type:"SET_GUIDE_IS_EXPANDED",
payload:D})},puK=function(D){return _.oG({type:"SET_ONLINE_STATUS",
payload:D})},lNS=function(D,v){return _.oG({type:"SET_TRANSCRIPTION_STATE",
payload:{high:D,low:v}})},Nsd=function(D){return _.oG({type:"SET_OVERLAY_STATE",
payload:D})},YOS=0,Bs3=function(D,v,h){var a=this;
this.priority=v;this.delay=h;this.jobId=0;this.completionCallback=_.Ay;this.wrappedJob=function(){D();a.completionCallback()};
this.id=++YOS};
Bs3.prototype.enqueue=function(D){this.completionCallback=D;this.jobId=_.HK.addJob(this.wrappedJob,this.priority,this.delay)};
var SN=function(){_.Ej.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.J(SN,_.Ej);SN.prototype.addJob=function(D,v,h){D=new Bs3(D,v,h);this.taskIdToTask.set(D.id,D);this.isActive?cys(this,D):this.suspendedTasks.add(D);return D.id};
var cys=function(D,v){D.scheduledTasks.add(v);v.enqueue(function(){D.scheduledTasks.delete(v)})};
SN.prototype.cancelJob=function(D){(D=this.taskIdToTask.get(D))&&(this.scheduledTasks.delete(D)?_.HK.cancelJob(D.jobId):this.suspendedTasks.delete(D))};
SN.prototype.pause=function(){var D=this;this.isActive=!1;this.scheduledTasks.forEach(function(v){_.HK.cancelJob(v.jobId);D.suspendedTasks.add(v)});
this.scheduledTasks.clear()};
SN.prototype.start=function(){var D=this;this.isActive=!0;this.suspendedTasks.forEach(function(v){cys(D,v)});
this.suspendedTasks.clear()};
SN.prototype.reset=function(){this.scheduledTasks.forEach(function(D){_.HK.cancelJob(D.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var J_=function(D,v){this.JSC$13055_networkService_=D;this.pageRequestPromise=v};
J_.prototype.fetchData=function(D){XuK(this,this.JSC$13055_networkService_.fetchData(D))};
J_.prototype.postData=function(D,v){XuK(this,this.JSC$13055_networkService_.postData(D,v))};
J_.prototype.requestDataForServiceEndpoint=function(D,v){XuK(this,this.JSC$13055_networkService_.requestDataForServiceEndpoint(D,v))};
var XuK=function(D,v){v.then(D.pageRequestPromise.onSuccess,D.pageRequestPromise.onFailure,D.pageRequestPromise)};
J_.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var p8=function(D){this.buildNetworkRequest_=D;this.pendingRequests_=new Set};
p8.prototype.reset=function(){this.pendingRequests_.forEach(function(D){D.cancel()});
this.pendingRequests_.clear()};
p8.prototype.fetchData=function(D){var v=Ays(this);v.fetchData(D);return v.pageRequestPromise};
p8.prototype.postData=function(D,v){var h=Ays(this);h.postData(D,v);return h.pageRequestPromise};
p8.prototype.requestDataForServiceEndpoint=function(D,v){var h=Ays(this);h.requestDataForServiceEndpoint(D,v);return h.pageRequestPromise};
var Ays=function(D){var v=D.buildNetworkRequest_();D.pendingRequests_.add(v);var h=function(){D.pendingRequests_.delete(v)};
v.pageRequestPromise.then(h,h);return v},qOI=function(D){var v=new SN;
this.JSC$13062_networkService_=D;this.JSC$13062_taskManager_=v;this.JSC$13062_networkManager_=new p8(this.networkRequestFactory_.bind(this))};
_.V=qOI.prototype;_.V.networkRequestFactory_=function(){return new J_(this.JSC$13062_networkService_,new _.qy(this.JSC$13062_taskManager_))};
_.V.reset=function(){this.JSC$13062_taskManager_.reset();this.JSC$13062_networkManager_.reset()};
_.V.start=function(){this.JSC$13062_taskManager_.start()};
_.V.pause=function(){this.JSC$13062_taskManager_.pause()};
_.V.getTaskManager=function(){return this.JSC$13062_taskManager_};
_.V.getNetworkManager=function(){return this.JSC$13062_networkManager_};
var pfU=null,Y4U=[],ax=0,Qu=0,$W=null,bWs=!1,G$=null,cA$=void 0,Py=function(D){this.token=D};
Py.getInstance=function(){var D;return _.M(function(v){if(v.nextAddress==1)return v.yield(_.Vx(),2);D=v.yieldResult;if(!D)return v.return();Py.instance||(Py.instance=new Py(D));return v.return(Py.instance)})};
var mDX=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(dDd(D.token),2);v=h.yieldResult;return h.return(v.clear("resource-manifest-assets"))})},Vu=function(D){this.token=D};
Vu.getInstance=function(){var D;return _.M(function(v){if(v.nextAddress==1)return v.yield(_.Vx(),2);D=v.yieldResult;if(!D)return v.return();Vu.instance||(Vu.instance=new Vu(D));return v.return(Vu.instance)})};
var jGs=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(dDd(D.token),2);v=h.yieldResult;return h.yield(v.clear("auth"),0)})},QXm=!1,dAX=function(D){_.hc.call(this,D)};
_.J(dAX,_.bPR);var T4C=function(){var D=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return D?parseInt(D[1],10):0},jHr=function(D){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+D)!=-1||document.currentScript.src.indexOf("&"+D)!=-1)},sHX=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},rDs=function(D){D.length?mAm(D.shift(),function(){rDs(D)}):ib$()},DLd=function(D){return"chrome-extension://"+D+"/cast_sender.js"},mAm=function(D,
v,h){var a=document.createElement("script");
a.onerror=v;h&&(a.onload=h);_.Ge(a,_.dW(D));(document.head||document.documentElement).appendChild(a)},HW3=function(){var D=T4C(),v=[];
if(D>1){var h=D-1;v.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js");v.push("//www.gstatic.com/eureka/clank/"+h+"/cast_sender.js")}return v},ib$=function(){var D=sHX();
D&&D(!1,"No cast extension found")},tQr=function(){if(yyS){var D=2,v=sHX(),h=function(){D--;
D==0&&v&&v(!0)};
window.__onGCastApiAvailable=h;mAm("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",ib$,h)}},RSU=function(){tQr();
var D=HW3();D.push("//www.gstatic.com/eureka/clank/cast_sender.js");rDs(D)},WN$=function(){tQr();
var D=HW3();D.push.apply(D,_.j_(upC.map(DLd)));D.push("//www.gstatic.com/eureka/clank/cast_sender.js");rDs(D)},yyS=jHr("loadCastFramework")||jHr("loadCastApplicationFramework"),upC=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var wuS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(wuS,_.xo);var eC$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(eC$,_.xo);var naK=function(){var D=new eC$;return _.eI(D,1,3)};var la=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(la,_.xo);var TTr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(TTr,_.xo);var OW3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(OW3,_.xo);OW3.prototype.getToken=function(){return _.jI(this,1)};
OW3.prototype.setToken=function(D){return _.WO(this,1,D)};
var OqS=function(D){return _.tr(D,3,_.p3,_.f0())},KcX=function(D){return _.tr(D,6,_.p3,_.f0())};var NU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(NU,_.xo);NU.prototype.getToken=function(){return _.CL(this,OW3,2)};
NU.prototype.setToken=function(D){return _.lH(this,2,D)};
NU.prototype.getName=function(){return _.jI(this,6)};
var KTI=_.ko(NU);var Ts3=function(D,v,h){this.requestMessage=D;this.methodDescriptor=v;this.metadata=h};
Ts3.prototype.getMetadata=function(){return this.metadata};var RC$=function(D,v){v=v===void 0?{}:v;this.responseMessage=D;this.metadata=v;this.status=null};
RC$.prototype.getMetadata=function(){return this.metadata};
RC$.prototype.getStatus=function(){return this.status};var Yj=function(D,v,h,a,Q){this.name=D;this.methodType="unary";this.requestType=v;this.responseType=h;this.requestSerializeFn=a;this.responseDeserializeFn=Q},iWm=function(D,v,h){h=h===void 0?{}:h;
return new Ts3(v,D,h)};
Yj.prototype.getName=function(){return this.name};var BG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(BG,_.xo);BG.prototype.getHeader=function(){return _.CL(this,la,1)};
BG.prototype.setHeader=function(D){return _.lH(this,1,D)};
BG.prototype.hasHeader=function(){return _.pa(this,la,1)};var WTX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(WTX,_.xo);var tDZ=new Yj("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",BG,WTX,function(D){return D.serialize()},_.ko(WTX));var cG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(cG,_.xo);cG.prototype.getHeader=function(){return _.CL(this,la,1)};
cG.prototype.setHeader=function(D){return _.lH(this,1,D)};
cG.prototype.hasHeader=function(){return _.pa(this,la,1)};var ryU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(ryU,_.xo);var u_3=new Yj("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",cG,ryU,function(D){return D.serialize()},_.ko(ryU));var XK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(XK,_.xo);XK.prototype.getHeader=function(){return _.CL(this,la,1)};
XK.prototype.setHeader=function(D){return _.lH(this,1,D)};
XK.prototype.hasHeader=function(){return _.pa(this,la,1)};var DES=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(DES,_.xo);DES.prototype.getLink=function(){return _.CL(this,NU,1)};var vyZ=new Yj("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",XK,DES,function(D){return D.serialize()},_.ko(DES));var A_=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(A_,_.xo);A_.prototype.getHeader=function(){return _.CL(this,la,1)};
A_.prototype.setHeader=function(D){return _.lH(this,1,D)};
A_.prototype.hasHeader=function(){return _.pa(this,la,1)};var hDb=new Yj("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",A_,NU,function(D){return D.serialize()},KTI);var aBm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(aBm,_.xo);var $E3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J($E3,_.xo);$E3.prototype.getUrl=function(){return _.jI(this,2)};
$E3.prototype.setUrl=function(D){return _.WO(this,2,D)};var QIm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(QIm,_.xo);var Grb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Grb,_.xo);var VZr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(VZr,_.xo);var $iS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J($iS,_.xo);var aWr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(aWr,_.xo);var Pnb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Pnb,_.xo);var fWZ=_.ko(Pnb);var xE2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(xE2,_.xo);var MZb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(MZb,_.xo);_.V=MZb.prototype;_.V.getHeader=function(){return _.CL(this,la,1)};
_.V.setHeader=function(D){return _.lH(this,1,D)};
_.V.hasHeader=function(){return _.pa(this,la,1)};
_.V.getCompletionUrl=function(){return _.jI(this,6)};
_.V.getDeviceId=function(){return _.jI(this,11)};var fB$=new Yj("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",MZb,Pnb,function(D){return D.serialize()},fWZ);var CnI=new Set(["SAPISIDHASH","APISIDHASH"]);var oyX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(oyX,_.xo);oyX.prototype.getMessage=function(){return _.jI(this,2)};
var FFI=_.ko(oyX);var qU=function(D,v){this.xhrNodeReadableStream_=D.nodeReadableStream;this.grpcResponseDeserializeFn_=v;this.JSC$19361_xhr_=D.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19361_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&zDs(this)},gyb=function(D,v){var h=new UE2;
_.s_(D.JSC$19361_xhr_,"complete",function(){if(D.JSC$19361_xhr_.isSuccess()){var a=D.JSC$19361_xhr_.getResponseText();var Q;if(Q=v)Q=D.JSC$19361_xhr_,Q.JSC$9800_xhr_&&Q.isComplete()?(Q=Q.JSC$9800_xhr_.getResponseHeader("Content-Type"),Q=Q===null?void 0:Q):Q=void 0,Q=Q==="text/plain";if(Q){if(!atob)throw Error("ck");a=atob(a)}try{var G=D.grpcResponseDeserializeFn_(a)}catch(f){ba(D,XRm(new _.eZ(13,"Error when deserializing response data; error: "+f+(", response: "+a)),h));return}a=_.VOc(D.JSC$19361_xhr_.getStatus());
LFI(D,ZDZ(D));a==0?EyC(D,G):ba(D,XRm(new _.eZ(a,"Xhr succeeded but the status code is not 200"),h))}else{a=D.JSC$19361_xhr_.getResponseText();G=ZDZ(D);if(a){var x=IBI(D,a);a=x.code;Q=x.details;x=x.metadata}else a=2,Q="Rpc failed due to xhr error. uri: "+String(D.JSC$19361_xhr_.JSC$9800_lastUri_)+", error code: "+D.JSC$19361_xhr_.JSC$9800_lastErrorCode_+", error: "+D.JSC$19361_xhr_.getLastError(),x=G;LFI(D,G);ba(D,XRm(new _.eZ(a,Q,x),h))}})},zDs=function(D){D.xhrNodeReadableStream_.on("data",function(v){if("1"in
v){var h=v["1"];
try{var a=D.grpcResponseDeserializeFn_(h)}catch(Q){ba(D,new _.eZ(13,"Error when deserializing response data; error: "+Q+(", response: "+h)))}a&&EyC(D,a)}if("2"in v)for(v=IBI(D,v["2"]),h=0;h<D.onStatusCallbacks_.length;h++)D.onStatusCallbacks_[h](v)});
D.xhrNodeReadableStream_.on("end",function(){LFI(D,ZDZ(D));for(var v=0;v<D.onEndCallbacks_.length;v++)D.onEndCallbacks_[v]()});
D.xhrNodeReadableStream_.on("error",function(){if(D.JSC$19361_onErrorCallbacks_.length!=0){var v=D.JSC$19361_xhr_.JSC$9800_lastErrorCode_;v!==0||D.JSC$19361_xhr_.isSuccess()||(v=6);var h=-1;switch(v){case 0:var a=2;break;case 7:a=10;break;case 8:a=4;break;case 6:h=D.JSC$19361_xhr_.getStatus();a=_.VOc(h);break;default:a=14}LFI(D,ZDZ(D));v=_.ux4(v)+", error: "+D.JSC$19361_xhr_.getLastError();h!=-1&&(v+=", http status code: "+h);ba(D,new _.eZ(a,v))}})},ZDZ=function(D){var v={},h=EYb(D.JSC$19361_xhr_);
Object.keys(h).forEach(function(a){v[a]=h[a]});
return v},IBI=function(D,v){var h=2,a={};
try{var Q=FFI(v);h=_.C0(Q,1);var G=Q.getMessage();_.Mp(Q,C2b,3,_.f0()).length&&(a["grpc-web-status-details-bin"]=v)}catch(x){D.JSC$19361_xhr_&&D.JSC$19361_xhr_.getStatus()===404?(h=5,G="Not Found: "+String(D.JSC$19361_xhr_.JSC$9800_lastUri_)):(h=14,G="Unable to parse RpcStatus: "+x)}return{code:h,details:G,metadata:a}};
qU.prototype.on=function(D,v){D=="data"?this.onDataCallbacks_.push(v):D=="metadata"?this.onMetadataCallbacks_.push(v):D=="status"?this.onStatusCallbacks_.push(v):D=="end"?this.onEndCallbacks_.push(v):D=="error"&&this.JSC$19361_onErrorCallbacks_.push(v);return this};
var d$=function(D,v){v=D.indexOf(v);v>-1&&D.splice(v,1)};
qU.prototype.removeListener=function(D,v){D=="data"?d$(this.onDataCallbacks_,v):D=="metadata"?d$(this.onMetadataCallbacks_,v):D=="status"?d$(this.onStatusCallbacks_,v):D=="end"?d$(this.onEndCallbacks_,v):D=="error"&&d$(this.JSC$19361_onErrorCallbacks_,v);return this};
qU.prototype.cancel=function(){this.JSC$19361_xhr_.abort()};
var EyC=function(D,v){for(var h=0;h<D.onDataCallbacks_.length;h++)D.onDataCallbacks_[h](v)},LFI=function(D,v){for(var h=0;h<D.onMetadataCallbacks_.length;h++)D.onMetadataCallbacks_[h](v)},ba=function(D,v){for(var h=0;h<D.JSC$19361_onErrorCallbacks_.length;h++)D.JSC$19361_onErrorCallbacks_[h](v)};
qU.prototype.cancel=qU.prototype.cancel;qU.prototype.removeListener=qU.prototype.removeListener;qU.prototype.on=qU.prototype.on;var UE2=function(){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.J(UE2,Error);var jN=function(D){this.JSC$19370_worker_=D.worker||null;this.JSC$19370_streamBinaryChunks_=D.streamBinaryChunks||!1;this.JSC$19370_credentialsMode_=void 0};
_.fa(jN,_.xM2);jN.prototype.createInstance=function(){var D=new sU(this.JSC$19370_worker_,this.JSC$19370_streamBinaryChunks_);this.JSC$19370_credentialsMode_&&D.setCredentialsMode(this.JSC$19370_credentialsMode_);return D};
jN.prototype.setCredentialsMode=function(D){this.JSC$19370_credentialsMode_=D};
var sU=function(D,v){_.jZ.call(this);this.JSC$19374_worker_=D;this.JSC$19374_streamBinaryChunks_=v;this.JSC$19374_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$19374_responseHeaders_=null;this.JSC$19374_method_="GET";this.JSC$19374_url_="";this.inProgress_=!1;this.JSC$19374_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.fa(sU,_.jZ);sU.prototype.open=function(D,v){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19374_method_=D;this.JSC$19374_url_=v;this.readyState=1;mh(this)};
sU.prototype.send=function(D){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var v={headers:this.requestHeaders_,method:this.JSC$19374_method_,credentials:this.JSC$19374_credentialsMode_,cache:void 0,signal:this.abortController_.signal};D&&(v.body=D);(this.JSC$19374_worker_||_.$L).fetch(new Request(this.JSC$19374_url_,v)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
sU.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,HG(this));this.readyState=0};
sU.prototype.handleResponse_=function(D){if(this.inProgress_&&(this.fetchResponse_=D,this.JSC$19374_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19374_responseHeaders_=D.headers,this.readyState=2,mh(this)),this.inProgress_&&(this.readyState=3,mh(this),this.inProgress_)))if(this.responseType==="arraybuffer")D.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.$L.ReadableStream!==
"undefined"&&"body"in D){this.currentReader_=D.body.getReader();if(this.JSC$19374_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19374_textDecoder_=new TextDecoder;krs(this)}else D.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var krs=function(D){D.currentReader_.read().then(D.handleDataFromStream_.bind(D)).catch(D.handleSendFailure_.bind(D))};
sU.prototype.handleDataFromStream_=function(D){if(this.inProgress_){if(this.JSC$19374_streamBinaryChunks_&&D.value)this.response.push(D.value);else if(!this.JSC$19374_streamBinaryChunks_){var v=D.value?D.value:new Uint8Array(0);if(v=this.JSC$19374_textDecoder_.decode(v,{stream:!D.done}))this.response=this.responseText+=v}D.done?HG(this):mh(this);this.readyState==3&&krs(this)}};
sU.prototype.handleResponseText_=function(D){this.inProgress_&&(this.response=this.responseText=D,HG(this))};
sU.prototype.handleResponseArrayBuffer_=function(D){this.inProgress_&&(this.response=D,HG(this))};
sU.prototype.handleSendFailure_=function(){this.inProgress_&&HG(this)};
var HG=function(D){D.readyState=4;D.fetchResponse_=null;D.currentReader_=null;D.JSC$19374_textDecoder_=null;mh(D)};
sU.prototype.setRequestHeader=function(D,v){this.requestHeaders_.append(D,v)};
sU.prototype.getResponseHeader=function(D){return this.JSC$19374_responseHeaders_?this.JSC$19374_responseHeaders_.get(D.toLowerCase())||"":""};
sU.prototype.getAllResponseHeaders=function(){if(!this.JSC$19374_responseHeaders_)return"";for(var D=[],v=this.JSC$19374_responseHeaders_.entries(),h=v.next();!h.done;)h=h.value,D.push(h[0]+": "+h[1]),h=v.next();return D.join("\r\n")};
sU.prototype.setCredentialsMode=function(D){this.JSC$19374_credentialsMode_=D};
var mh=function(D){D.onreadystatechange&&D.onreadystatechange.call(D)};
Object.defineProperty(sU.prototype,"withCredentials",{get:function(){return this.JSC$19374_credentialsMode_==="include"},
set:function(D){this.setCredentialsMode(D?"include":"same-origin")}});var SPZ=function(D){var v="";_.sV.forEach(D,function(h,a){v+=a;v+=":";v+=h;v+="\r\n"});
return v},JJb=function(D,v,h){if(_.sV.isEmpty(h))return D;
h=SPZ(h);if(typeof D==="string")return _.hJ(D,_.t$(v),h);_.Dq(D,v,h);return D};var pZ2=function(){this.isInputValid_=!0;this.JSC$19380_streamPos_=0;this.leftoverInput_=""};
pZ2.prototype.isInputValid=function(){return this.isInputValid_};
pZ2.prototype.decode=function(D){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19380_streamPos_+"`stream already broken`"+D);this.leftoverInput_+=D;D=Math.floor(this.leftoverInput_.length/4);if(D==0)return null;try{var v=_.Cg7(this.leftoverInput_.slice(0,D*4))}catch(h){throw v=this.leftoverInput_,D=h.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19380_streamPos_+"`"+D+"`"+v);}this.JSC$19380_streamPos_+=D*4;this.leftoverInput_=this.leftoverInput_.slice(D*4);return v};var ft=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19383_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ft.prototype.isInputValid=function(){return this.state_!=3};
var yG=function(D,v,h,a){D.state_=3;D.errorMessage_="The stream is broken @"+D.JSC$19383_streamPos_+"/"+h+". Error: "+a+". With input:\n"+v;throw Error(D.errorMessage_);};
ft.prototype.acceptsBinaryInput=function(){return!0};
ft.prototype.parse=function(D){function v(C){C&128&&yG(G,x,f,"invalid tag");(C&7)!=2&&yG(G,x,f,"invalid wire type");G.tag_=C>>>3;G.tag_!=1&&G.tag_!=2&&G.tag_!=15&&yG(G,x,f,"unexpected tag");G.state_=1;G.length_=0;G.countLengthBytes_=0}
function h(C){G.countLengthBytes_++;G.countLengthBytes_==5&&C&240&&yG(G,x,f,"message length too long");G.length_|=(C&127)<<(G.countLengthBytes_-1)*7;C&128||(G.state_=2,G.countMessageBytes_=0,typeof Uint8Array!=="undefined"?G.messageBuffer_=new Uint8Array(G.length_):G.messageBuffer_=Array(G.length_),G.length_==0&&Q())}
function a(C){G.messageBuffer_[G.countMessageBytes_++]=C;G.countMessageBytes_==G.length_&&Q()}
function Q(){if(G.tag_<15){var C={};C[G.tag_]=G.messageBuffer_;G.result_.push(C)}G.state_=0}
for(var G=this,x=D instanceof Array?D:new Uint8Array(D),f=0;f<x.length;){switch(G.state_){case 3:yG(G,x,f,"stream already broken");break;case 0:v(x[f]);break;case 1:h(x[f]);break;case 2:a(x[f]);break;default:throw Error("ik`"+G.state_);}G.JSC$19383_streamPos_++;f++}D=G.result_;G.result_=[];return D.length>0?D:null};var qL2=function(){this.errorMessage_=null;this.JSC$19386_streamPos_=0;this.base64Decoder_=new pZ2;this.pbParser_=new ft};
qL2.prototype.isInputValid=function(){return this.errorMessage_===null};
var lBr=function(D,v,h){D.errorMessage_="The stream is broken @"+D.JSC$19386_streamPos_+". Error: "+h+". With input:\n"+v;throw Error(D.errorMessage_);};
qL2.prototype.acceptsBinaryInput=function(){return!1};
qL2.prototype.parse=function(D){this.errorMessage_!==null&&lBr(this,D,"stream already broken");var v=null;try{var h=this.base64Decoder_.decode(D);v=h===null?null:this.pbParser_.parse(h)}catch(a){lBr(this,D,a.message)}this.JSC$19386_streamPos_+=D.length;return v};var AQr=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19389_streamPos_=0;this.result_=[];this.statusParsed_=!1};
AQr.prototype.isInputValid=function(){return this.errorMessage_===null};
AQr.prototype.acceptsBinaryInput=function(){return!1};
AQr.prototype.parse=function(D){function v(C){G.state_=6;G.errorMessage_="The stream is broken @"+G.JSC$19389_streamPos_+"/"+x+". Error: "+C+". With input:\n";throw Error(G.errorMessage_);}
function h(){G.jsonStreamParser_=new _.Jx({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function a(C){if(C)for(var U=0;U<C.length;U++){var L={};L[1]=C[U];G.result_.push(L)}}
function Q(C){if(C){(G.statusParsed_||C.length>1)&&v("extra status: "+C);G.statusParsed_=!0;var U={};U[2]=C[0];G.result_.push(U)}}
for(var G=this,x=0;x<D.length;){var f;if(f=G.state_!==2){a:{for(;x<D.length;){if(!_.S5(D[x])){f=!0;break a}x++;G.JSC$19389_streamPos_++}f=!1}f=!f}if(f)return null;switch(G.state_){case 6:v("stream already broken");break;case 0:D[x]==="["?(G.state_=1,x++,G.JSC$19389_streamPos_++):v("unexpected input token");break;case 1:D[x]==="["?(G.state_=2,h()):D[x]===","||D.slice(x,x+5)=="null,"?G.state_=3:D[x]==="]"?(G.state_=5,x++,G.JSC$19389_streamPos_++):v("unexpected input token");break;case 2:f=G.jsonStreamParser_.parse(D.substring(x));
a(f);G.jsonStreamParser_.done()?(G.state_=3,f=G.jsonStreamParser_.JSC$11487_buffer_,G.JSC$19389_streamPos_+=D.length-x-f.length,D=f,x=0):(G.JSC$19389_streamPos_+=D.length-x,x=D.length);break;case 3:D[x]===","||D.slice(x,x+5)=="null,"?(G.state_=4,h(),G.jsonStreamParser_.parse("["),x+=D[x]===","?1:5,G.JSC$19389_streamPos_++):D[x]==="]"&&(G.state_=5,x++,G.JSC$19389_streamPos_++);break;case 4:f=G.jsonStreamParser_.parse(D.substring(x));Q(f);G.jsonStreamParser_.done()?(G.state_=5,f=G.jsonStreamParser_.JSC$11487_buffer_,
G.JSC$19389_streamPos_+=D.length-x-f.length,D=f,x=0):(G.JSC$19389_streamPos_+=D.length-x,x=D.length);break;case 5:v("extra input after stream end")}}return G.result_.length>0?(D=G.result_,G.result_=[],D):null};var N9U=function(D){this.JSC$19392_xhr_=D;this.JSC$19392_parser_=null;this.status_=this.JSC$19392_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19392_textDecoder_=null;this.JSC$19392_eventHandler_=new _.or(this);this.JSC$19392_eventHandler_.listen(this.JSC$19392_xhr_,"readystatechange",this.JSC$19394_readyStateChangeHandler_)},w$=function(D,v){D.status_!=v&&(D.status_=v,D.statusHandler_&&D.statusHandler_())},eN=function(D){D.JSC$19392_eventHandler_.removeAll();
if(D.JSC$19392_xhr_){var v=D.JSC$19392_xhr_;D.JSC$19392_xhr_=null;v.abort();v.dispose()}};
N9U.prototype.getStatus=function(){return this.status_};
N9U.prototype.JSC$19394_readyStateChangeHandler_=function(D){D=D.target;try{if(D==this.JSC$19392_xhr_)a:{var v=_.KD(this.JSC$19392_xhr_),h=this.JSC$19392_xhr_.JSC$9800_lastErrorCode_,a=this.JSC$19392_xhr_.getStatus(),Q=this.JSC$19392_xhr_.getResponseText();D=[];if(this.JSC$19392_xhr_.getResponse()instanceof Array){var G=this.JSC$19392_xhr_.getResponse();G.length>0&&G[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,D=G)}if(!(v<3||v==3&&!Q&&D.length==0))if(a=a==200||a==206,v==4&&(h==8?w$(this,
7):h==7?w$(this,8):a||w$(this,3)),this.JSC$19392_parser_||(this.JSC$19392_parser_=bq$(this.JSC$19392_xhr_),this.JSC$19392_parser_==null&&w$(this,5)),this.status_>2)eN(this);else{if(D.length>this.JSC$19392_pos_){var x=D.length;h=[];try{if(this.JSC$19392_parser_.acceptsBinaryInput())for(var f=0;f<x;f++){var C=this.JSC$19392_parser_.parse(Array.from(D[f]));C&&(h=h.concat(C))}else{C="";if(!this.JSC$19392_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19392_textDecoder_=new TextDecoder}for(f=
0;f<x;f++)C+=this.JSC$19392_textDecoder_.decode(D[f],{stream:v==4&&f==x-1});h=this.JSC$19392_parser_.parse(C)}D.splice(0,x);h&&this.dataHandler_(h)}catch(L){w$(this,5);eN(this);break a}}else if(Q.length>this.JSC$19392_pos_){f=Q.slice(this.JSC$19392_pos_);this.JSC$19392_pos_=Q.length;try{var U=this.JSC$19392_parser_.parse(f);U!=null&&this.dataHandler_&&this.dataHandler_(U)}catch(L){w$(this,5);eN(this);break a}}v==4?(Q.length!=0||this.hasStreamingResponseData_?w$(this,2):w$(this,4),eN(this)):w$(this,
1)}}}catch(L){w$(this,6),eN(this)}};var YPZ=function(D){D=this.xhrReader_=D;var v=(0,_.qp)(this.onData_,this);D.dataHandler_=v;D=this.xhrReader_;v=(0,_.qp)(this.onStatusChange_,this);D.statusHandler_=v;this.JSC$19396_callbackMap_={};this.callbackOnceMap_={}};
_.V=YPZ.prototype;_.V.on=function(D,v){var h=this.JSC$19396_callbackMap_[D];h||(h=[],this.JSC$19396_callbackMap_[D]=h);h.push(v);return this};
_.V.addListener=function(D,v){this.on(D,v);return this};
_.V.removeListener=function(D,v){var h=this.JSC$19396_callbackMap_[D];h&&_.e2(h,v);(D=this.callbackOnceMap_[D])&&_.e2(D,v);return this};
_.V.once=function(D,v){var h=this.callbackOnceMap_[D];h||(h=[],this.callbackOnceMap_[D]=h);h.push(v);return this};
_.V.onData_=function(D){var v=this.JSC$19396_callbackMap_.data;v&&B9d(D,v);(v=this.callbackOnceMap_.data)&&B9d(D,v);this.callbackOnceMap_.data=[]};
var B9d=function(D,v){for(var h={},a=0;a<D.length;h={message$jscomp$1005:void 0},a++)h.message$jscomp$1005=D[a],v.forEach(function(Q){return function(G){try{G(Q.message$jscomp$1005)}catch(x){}}}(h))};
YPZ.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:cJs(this,"readable");break;case 5:case 6:case 4:case 7:case 3:cJs(this,"error");break;case 8:cJs(this,"close");break;case 2:cJs(this,"end")}};
var cJs=function(D,v){var h=D.JSC$19396_callbackMap_[v];h&&h.forEach(function(a){try{a()}catch(Q){}});
(h=D.callbackOnceMap_[v])&&h.forEach(function(a){a()});
D.callbackOnceMap_[v]=[]};var XZS=function(){var D={format:"jspb"};D=D===void 0?{}:D;this.suppressCorsPreflight=D.suppressCorsPreflight||_.T3("suppressCorsPreflight",D)||!1;this.withCredentials=D.withCredentials||_.T3("withCredentials",D)||!1;this.streamInterceptors=D.streamInterceptors||[];this.unaryInterceptors=D.unaryInterceptors||[];this.workerScope=D.workerScope;this.chunkedServerStreaming=D.useFetchDownloadStreams||!1},bDU=function(D,v,h,a,Q,G){G=G===void 0?{}:G;
var x=v.substring(0,v.length-Q.name.length),f,C=(f=G)==null?void 0:f.signal;return AJr(function(U){return new Promise(function(L,Z){if(C==null?0:C.aborted){var E=new _.eZ(1,"Aborted");E.cause=C.reason;Z(E)}else{var I={},S=qPI(D,U,x);S.on("error",function(B){return void Z(B)});
S.on("metadata",function(B){I=B});
S.on("data",function(B){var A=I;A=A===void 0?{}:A;L(new RC$(B,A))});
C&&C.addEventListener("abort",function(){S.cancel();var B=new _.eZ(1,"Aborted");B.cause=C.reason;Z(B)})}})},D.unaryInterceptors).call(D,iWm(Q,h,a)).then(function(U){return U.responseMessage})},n8=function(D,v,h,a,Q,G){G=G===void 0?{}:G;
return bDU(D,v,h,a,Q,G)};
XZS.prototype.serverStreaming=function(D,v,h,a){var Q=this,G=D.substring(0,D.length-a.name.length);return dEC(function(x){var f=x.methodDescriptor,C=x.getMetadata(),U=jIK(Q,!1);C=sIZ(Q,C,U,G+f.getName());var L=mE2(U,f.responseDeserializeFn,!0);x=f.requestSerializeFn(x.requestMessage);U.send(C,"POST",x);return L},this.streamInterceptors).call(this,iWm(a,v,h))};
var qPI=function(D,v,h){var a=v.methodDescriptor,Q=v.getMetadata(),G=jIK(D,!0);D=sIZ(D,Q,G,h+a.getName());h=mE2(G,a.responseDeserializeFn,!1);gyb(h,Q["X-Goog-Encode-Response-If-Executable"]==="base64");v=a.requestSerializeFn(v.requestMessage);G.send(D,"POST",v);return h},jIK=function(D,v){v=D.chunkedServerStreaming&&!v;
return D.workerScope||v?new _.OP(new jN({worker:D.workerScope,streamBinaryChunks:v})):new _.OP},sIZ=function(D,v,h,a){v["Content-Type"]="application/json+protobuf";
v["X-User-Agent"]="grpc-web-javascript/0.1";var Q=v.Authorization;if(Q&&CnI.has(Q.split(" ")[0])||D.withCredentials)h.JSC$9800_withCredentials_=!0;if(D.suppressCorsPreflight)a=JJb(a,"$httpHeaders",v);else for(D=_.P(Object.keys(v)),Q=D.next();!Q.done;Q=D.next())Q=Q.value,h.headers.set(Q,v[Q]);return a},mE2=function(D,v,h){if(h){h=new N9U(D);
var a=new YPZ(h)}return new qU({xhr:D,nodeReadableStream:a},v)},dEC=function(D,v){return v.reduce(function(h,a){return function(Q){return a.intercept(Q,h)}},D)},AJr=function(D,v){return v.reduce(function(h,a){return function(Q){return a.intercept(Q,h)}},D)};var HDX=function(D){this.client_=new XZS;this.hostname_=D==void 0?D:D.replace(/\/+$/,"")};
_.V=HDX.prototype;_.V.JSC$19414_depositGoogleCredential=function(D,v,h){return n8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",D,v||{},u_3,h)};
_.V.deleteLink=function(D,v,h){return n8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",D,v||{},tDZ,h)};
_.V.JSC$19414_finishOAuth=function(D,v,h){return n8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",D,v||{},vyZ,h)};
_.V.getLink=function(D,v,h){return n8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",D,v||{},hDb,h)};
_.V.startLinkingSession=function(D,v,h){return n8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",D,v||{},fB$,h)};var yJm=[0,_.aH,1,VDZ,[0,_.Va,[0,_.Qa,-1]],[0,G6C],[0,_.MA,-1]];var wZU=function(){this.storage=new Map},ny2=function(D,v,h,a,Q){if(!D.storage.has(v))return null;
D=_.P(D.storage.get(v));for(v=D.next();!v.done;v=D.next())if(v=v.value,!Q||v.linkName===Q)if(h&&v.scopes&&eDd(v.scopes,h)||a&&v.capabilities&&eDd(v.capabilities,a))return v;return null},ODS=function(D,v,h){if(!h)D.storage.delete(v);
else if(D.storage.has(v)){var a=D.storage.get(v).filter(function(Q){return Q.linkName!==h});
a.length>0?D.storage.set(v,a):D.storage.delete(v)}},eDd=function(D,v){v=_.P(v);
for(var h=v.next();!h.done;h=v.next())if(!D.has(h.value))return!1;return!0};var KFr=function(){var D=_.eA("LINK_GAL_DOMAIN");this.alsDomain1p=_.eA("LINK_GAL_DOMAIN");this.alsDomain3p=D;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},T92=function(D,v){D.apiKey=v;
return D};
KFr.prototype.build=function(){var D={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");D.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");D.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(D.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)D.apiKey=
this.apiKey,D.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");D.oauthToken=this.oauthToken;D.alsDomain=this.alsDomain3p}D.clientXd3=this.clientXd3;D.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(D.authUser=this.authUser);this.bucket!==void 0&&(D.bucket=this.bucket);this.completionUrl!==void 0&&(D.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(D.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(D.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(D.locale=this.locale);D.loggerType=this.loggerType;D.clientEnvironment=this.clientEnvironment;D.colorScheme=this.colorScheme;D.showCloseOption=this.showCloseOption;return D};var Ct=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Ct,_.xo);var RDK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(RDK,_.xo);var iDm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(iDm,_.xo);var FD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(FD,_.xo);var WFm=function(D){return _.s1(D,1)};var tZZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(tZZ,_.xo);var wRZ=_.ko(tZZ),ox=[1,2,3,4,5];var sX2=function(D){try{return wRZ(D)}catch(v){return null}},rJd=function(){},mPC=function(D,v){switch(_.BD(v,ox)){case 4:return(v=_.yF(v,iDm,4,ox))&&D.logStateTransition(_.s1(v,1)),!0;
case 5:return(v=_.yF(v,RDK,5,ox))&&D.logInternalEvent(_.s1(v,1)),!0}return!1},efr=function(D){switch(D){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.K4(D)}};var dPS=function(D,v){var h=this;this.validator=D;this.messageListener=v;this.dismissCallback=function(){uIX(h,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19443_receiveMessage=function(a){a.type==="message"&&(a=a.event_,a!==null&&(new URL(h.iframe.src)).origin===a.origin&&h.validator(a.data,a.origin)&&!h.messageListener(a.data)&&(h.JSC$19443_resolveCb!==void 0&&h.JSC$19443_resolveCb(a.data),DCX(h)))}},yQb=function(D,v,h){D.uiHandler!==void 0&&uIX(D,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(a,Q){D.JSC$19443_resolveCb=a;D.JSC$19443_rejectCb=Q;D.iframe=document.createElement("iframe");_.uH(D.iframe,v);D.uiHandler=h.displayContent(D.iframe,D.dismissCallback);_.s_(window,"message",D.JSC$19443_receiveMessage,!1,D)})},uIX=function(D,v){D.JSC$19443_rejectCb!==void 0&&D.JSC$19443_rejectCb(v);
DCX(D)},DCX=function(D){D.uiHandler!==void 0&&D.uiHandler.hideContent();
_.d9(window,"message",D.JSC$19443_receiveMessage,!1,D);D.JSC$19443_resolveCb=void 0;D.JSC$19443_rejectCb=void 0;D.uiHandler=void 0;D.iframe=void 0};var vN3=function(D){if(D===2){var v;D=((v=window)==null?0:v.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return D},HqX=function(D){D=vN3(D);
switch(D){case 0:return"light";case 1:return"dark";default:_.K4(D)}};var jXU=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),hw2=function(D,v){this.JSC$19455_linkingSession=D;this.noticeConfig=v;this.displayInfoMap=new Map;var h=new Map;if(_.pa(this.JSC$19455_linkingSession,QIm,7))for(D=_.CL(this.JSC$19455_linkingSession,QIm,7),D=_.Mp(D,$E3,1,_.f0()),D=_.P(D),v=D.next();!v.done;v=D.next())v=v.value,h.set(_.s1(v,1),_.Szi(_.CL(v,_.LUc,3)));if(h.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){v=this.noticeConfig.enabledDataUsageNoticeUis;D=v.has(0)?h.get(1):void 0;v=v.has(1)?h.get(2):void 0;h=D!==void 0&&v!==void 0?h.get(3):void 0;var a=this.noticeConfig.nestedOrigins;var Q=new tZZ;var G=new Ct;Q=_.Nf(Q,2,ox,G);G=new tZZ;var x=new Ct;G=_.Nf(G,3,ox,x);x=[];D!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:D,lastEvent:Q,nestedOrigins:a}]),x.push({trustedUrl:D,lastEvent:Q,nestedOrigins:a}));v!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:v,lastEvent:G,nestedOrigins:a}]),x.push({trustedUrl:v,lastEvent:G,nestedOrigins:a}));h!==void 0?this.displayInfoMap.set(3,[{trustedUrl:h,lastEvent:G,nestedOrigins:a}]):this.displayInfoMap.set(3,x)}};var a5r=function(D){var v=new wZU;this.galService=D;this.galCache=v};
a5r.prototype.getLink=function(D){var v=D.serviceId;var h=D.scopes;var a=D.capabilities;var Q=D.linkName;var G=this,x;return _.M(function(f){if(a!==void 0&&h!==void 0)throw Error("ok");x=ny2(G.galCache,v,h,a,Q);return x!==null?f.return(x):f.return(G.galService.getLink({serviceId:v,sessionId:Math.floor(Math.random()*2147483648),scopes:h,capabilities:a,linkName:Q}).then(function(C){C=RfU(C);var U=G.galCache;U.storage.has(v)?U.storage.get(v).push(C):U.storage.set(v,[C]);return C}))})};
a5r.prototype.deleteLink=function(D,v,h){var a=this;return _.M(function(Q){ODS(a.galCache,D,h);return Q.return(a.galService.deleteLink({serviceId:D,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:v,linkName:h}).then(function(){return!0}))})};var Qvr=function(D,v){var h=this;this.validator=D;this.msgHandler=v;this.closedPopupTimeout=this.JSC$19477_rejectCb=this.JSC$19477_resolveCb=this.popup=null;this.JSC$19477_receiveMessage=function(a){if(a!==null&&(a=a.event_,a.source===h.popup)){var Q=a.data;if(h.validator(Q,a.origin)){var G;(G=h.msgHandler)!=null&&G.call(h,Q)||(h.JSC$19477_resolveCb!==null&&h.JSC$19477_resolveCb(Q),$Cr(h))}}}};
Qvr.prototype.open=function(D,v){var h=this;this.popup!==null&&GqZ(this);return new Promise(function(a,Q){h.JSC$19477_resolveCb=a;h.JSC$19477_rejectCb=Q;h.popup=_.Dx(window,D,"",v);_.s_(window,"message",h.JSC$19477_receiveMessage,!1,h);Vv3(h)})};
var GqZ=function(D,v){D.JSC$19477_rejectCb!==null&&D.JSC$19477_rejectCb(v);$Cr(D)},$Cr=function(D){D.closedPopupTimeout&&(D.closedPopupTimeout.cancel(),D.closedPopupTimeout=null);
D.popup&&D.popup.close();_.d9(window,"message",D.JSC$19477_receiveMessage,!1,D);D.popup=null;D.JSC$19477_resolveCb=null;D.JSC$19477_rejectCb=null},Vv3=function(D){D.closedPopupTimeout=_.R3y(100).then(function(){D.popup?D.popup.closed?PE3(D):Vv3(D):GqZ(D,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},PE3=function(D){D.closedPopupTimeout=_.R3y(100).then(function(){GqZ(D,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var xCS=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Mvm=function(D,v,h,a,Q,G,x,f,C,U){var L=this;this.serviceId=D;this.sessionId=v;this.galService=h;this.oauthDetails=a;this.galLogger=Q;this.interactionMode=G;this.redirectServiceUrl=x;this.consentLanguageKeys=f;this.dynamicUrlParameters=C;this.partnerConfigMinReadTimestamp=U;this.started=!1;this.JSC$19483_dataValidator=function(Z,
E){var I=xCS.has(E);I||L.redirectServiceUrl===void 0||(I=L.redirectServiceUrl===E);return I?Z.sentinel==="gdi":!1}};
Mvm.prototype.complete=function(){var D=this,v;return _.M(function(h){if(D.interactionMode!==1)return h.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));v=Us.getRedirectStateFromUri();return v===null?h.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):h.return(f5S(D,v))})};
Mvm.prototype.start=function(){var D=this,v;return _.M(function(h){if(D.started)return h.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.jI(D.oauthDetails,1))return h.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(D.interactionMode===1)return Us.setLocation(_.jI(D.oauthDetails,1)),h.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));D.started=!0;D.galLogger.logStateTransition(5);
v=Us.getPostMessagePopup(D.JSC$19483_dataValidator);return h.return(v.open(_.jI(D.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(a){D.started=!1;var Q=D.galLogger;if((a==null?void 0:a.error)!==void 0)throw Q.logInternalEvent(59),Error("pk");if((a==null?void 0:a.redirect_state)===void 0)throw Q.logInternalEvent(131),Error("qk");return f5S(D,a.redirect_state)}).catch(function(a){D.started=
!1;
return a.errorCode!==void 0?{statusCode:a.errorCode,statusMessage:a.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var f5S=function(D,v){return _.M(function(h){return h.return(CEZ(D.galService,{serviceId:D.serviceId,sessionId:D.sessionId,dynamicUrlParameters:D.dynamicUrlParameters,redirectState:v,consentLanguageKeys:D.consentLanguageKeys,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp}).then(function(a){var Q={statusCode:1,link:RfU(a.getLink())};O1r(_.N6(a,3))!==void 0&&(Q.callerState=O1r(_.N6(a,3)));D.galLogger.logInternalEvent(134);return Q}))})},Us={getPostMessagePopup:function(D){return new Qvr(D)},
getRedirectStateFromUri:function(){var D=_.tN(Us.getLocation()).fragment_;return(new _.gI(D)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(D){_.Zf8(window.location,_.nz(D))},
createOAuthFlow:function(D,v){return new Mvm(D.serviceId,D.sessionId,D.galService,v,D.galLogger,D.interactionMode,D.redirectServiceUrl,D.consentLanguageKeys,D.dynamicUrlParameters,D.partnerConfigMinReadTimestamp)}};var oNI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(oNI,_.xo);var FDd=_.ko(oNI);var zwZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),UC3=function(D,v,h,a,Q,G,x,f,C){var U=this;this.serviceId=D;this.sessionId=v;this.galService=h;this.gsiWebFlowDetails=a;this.colorScheme=Q;this.showCloseOption=G;this.galLogger=x;this.interactionMode=f;this.redirectServiceUrl=C;this.started=!1;this.JSC$19495_dataValidator=function(L,Z){var E=zwZ.has(Z);E||U.redirectServiceUrl===
void 0||(E=U.redirectServiceUrl===Z);return E?L.sentinel==="gal":!1};
this.logEventProcessor=function(L){return L.result?(L=sX2(L.result))?mPC(U.galLogger,L):!1:!1}};
UC3.prototype.complete=function(){var D=this,v,h;return _.M(function(a){if(D.interactionMode!==1)return a.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));v=Lt.getRedirectStateFromUri();if(v===void 0)return D.galLogger.JSC$19435_logErrorEvent(131),a.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return h=LDs(D,v),a.return(ZXX(D,h))}catch(Q){return a.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
UC3.prototype.start=function(){var D=this,v;return _.M(function(h){if(D.started)return h.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.jI(D.gsiWebFlowDetails,1))return h.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(D.interactionMode===1)return Lt.setLocation(ENS(D,_.jI(D.gsiWebFlowDetails,1))),h.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
D.started=!0;v=Lt.getPostMessagePopup(D.JSC$19495_dataValidator,D.logEventProcessor);return h.return(v.open(ENS(D,_.jI(D.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(a){D.started=!1;if((a==null?void 0:a.result)===void 0)throw D.galLogger.JSC$19435_logErrorEvent(131),Error("qk");a=LDs(D,a.result);return ZXX(D,a)}).catch(function(a){D.started=!1;
return a.errorCode!==void 0?{statusCode:a.errorCode,statusMessage:a.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var ENS=function(D,v){D=["result_channel",D.interactionMode===1?"2":"1","color_scheme",HqX(D.colorScheme),"show_close_option",D.showCloseOption];return fNC(v,D)},ZXX=function(D,v){if(v!==null&&_.pa(v,FD,2)){var h,a=v==null?void 0:(h=_.CL(v,FD,2))==null?void 0:_.s1(h,2);
a&&D.galLogger.JSC$19435_logErrorEvent(efr(a));return WFm(_.CL(v,FD,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return D.galService.getLink({serviceId:D.serviceId,sessionId:D.sessionId,consistencyKey:_.jI(v,1)}).then(function(Q){Q=RfU(Q);D.galLogger.logInternalEvent(134);return{statusCode:1,link:Q}})},LDs=function(D,v){v=FDd(v);
if(!_.pa(v,FD,2)&&_.jI(v,1)==="")throw D.galLogger.JSC$19435_logErrorEvent(5),Error("rk");return v},Lt={getPostMessagePopup:function(D,v){return new Qvr(D,v)},
getRedirectStateFromUri:function(){return _.rW(_.tN(Lt.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(D){_.Zf8(window.location,_.nz(D))},
createStreamlinedFlow:function(D,v){return new UC3(D.serviceId,D.sessionId,D.galService,v,D.colorScheme,D.showCloseOption,D.galLogger,D.interactionMode,D.redirectServiceUrl)}};var xiZ=function(){var D=_.HG7("GAL");this.storage=D?new _.AO(D):null};
xiZ.prototype.getSession=function(D){if(this.storage!==null)try{var v=this.storage.get("SAVED_SESSION");if(v===void 0)return null;if(v.serviceId===D)return v}catch(h){}return null};var OU=function(){};
_.J(OU,rJd);OU.prototype.logStateTransition=function(){};
OU.prototype.logInternalEvent=function(){};
OU.prototype.JSC$19435_logErrorEvent=function(){};var I5C=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(I5C,_.xo);I5C.prototype.getCompletionUrl=function(){return _.jI(this,15)};var K8=function(D,v,h,a,Q,G){this.serviceId=D;this.environment=v;this.sessionId=h;this.colorSchemeSelected=a;this.colorThemeDisplayed=Q;this.JSC$19508_transport=G;this.currentState=1};
_.J(K8,rJd);K8.prototype.logStateTransition=function(D){var v=gNr(this);v=_.oe(v,3,this.currentState);v=_.oe(v,1,D);this.currentState=D;D=ZKs(1);this.dispatch(v,D)};
K8.prototype.logInternalEvent=function(D){D=ZKs(D);this.dispatch(gNr(this),D)};
K8.prototype.JSC$19435_logErrorEvent=function(D){var v=gNr(this);v=_.oe(v,1,10);D=ZKs(D);this.dispatch(v,D)};
var gNr=function(D){var v=new I5C;v=_.oe(v,1,D.currentState);v=_.Xx(v,7,D.serviceId);var h,a;var Q=((h=window)==null?0:(a=h.location)==null?0:a.href)?_.tN(window.location.href).JSC$10036_domain_:"NO_PACKAGE_NAME";h=_.Xx(v,8,Q);h=_.oe(h,6,D.environment);h=_.Xx(h,5,"100");h=_.oe(h,11,D.colorSchemeSelected);return _.oe(h,12,D.colorThemeDisplayed)};
K8.prototype.dispatch=function(D,v){v===void 0&&(v=new _.JJ);var h=v;D=D.serialize();h=_.Xx(h,8,D);_.Y_(h,12,this.sessionId);this.JSC$19508_transport.dispatch(v)};var kqZ=function(D,v){this.loggerType=D;this.sessionIndex=v!=null?v:0},SGb;
kqZ.prototype.create=function(D,v,h,a,Q){switch(this.loggerType){case 0:return new OU;case 1:return SGb||(SGb=(new _.EN(555,this.sessionIndex.toString())).build()),new K8(D,v,h,a,Q,SGb);default:_.K4(this.loggerType,"unknown logger type")}};var Z8=[6,2,3,1],ztS=new Map([[4,1],[1,6],[2,2],[3,3]]),rQ$={statusCode:7,statusMessage:"Failed to create flow object"},VBK=function(D,v,h,a,Q,G,x,f,C,U){this.serviceId=D;this.sessionId=v;this.config=h;this.galService=a;this.JSC$19515_linkingSession=Q;this.googleScopes=G;this.callerState=x;this.consentLanguageKeys=f;this.dynamicUrlParameters=C;this.partnerConfigMinReadTimestamp=U;this.currentFlow=0;a=this.JSC$19515_linkingSession;Q=new Set;_.pa(a,aWr,1)&&Q.add(1);_.pa(a,VZr,2)&&_.pa(a,$iS,6)&&Q.add(2);
_.pa(a,Grb,3)&&_.pa(a,$iS,6)&&Q.add(3);_.pa(a,aBm,4)&&Q.add(6);this.supportedFlows=Q;a=h.loggerType;Q=h.clientEnvironment;a:{G=h.colorScheme;switch(G){case 0:G=1;break a;case 1:G=2;break a;case 2:G=3;break a;default:_.K4(G)}G=void 0}a:{x=h.colorScheme;x=vN3(x);switch(x){case 0:x=1;break a;case 1:x=2;break a;default:_.K4(x)}x=void 0}this.galLogger=(new kqZ(a,h.authUser)).create(D,Q,v,G,x)},p9S=function(D){return new Promise(function(v){var h,a,Q,G,x,f,C,U,L,Z;
return _.M(function(E){switch(E.nextAddress){case 1:h=Qy$(D.currentFlow,D.supportedFlows),a=!1,Q=new hw2(D.JSC$19515_linkingSession,D.config.dataUsageNoticeConfig);case 2:if(h===void 0){E.jumpTo(4);break}_.gE(E,5);var I=Q,S=h,B=void 0;a?S===1&&(B=I.displayInfoMap.get(2)):S===2||S===3?B=I.displayInfoMap.get(1):S===1&&(B=I.displayInfoMap.get(3));G=B?B:[];x=D.consentLanguageKeys;f=_.P(G);C=f.next();case 7:if(C.done)return D.currentFlow=h,E.yield(DiS(JFs(D,x)),11);U=C.value;return E.yield(nVr(U,D.config.dataUsageNoticeConfig.uiAdapter,
D.config.colorScheme,D.galLogger),10);case 10:L=E.yieldResult;if(L.statusCode!==1)return MB2(D.serviceId),D.currentFlow=0,v(z$({statusCode:L.statusCode,statusMessage:L.statusMessage},D.callerState)),E.return();L.consentLanguageKeys!==void 0&&(x=L.consentLanguageKeys);C=f.next();E.jumpTo(7);break;case 11:Z=E.yieldResult;if(Z.statusCode!==10)return Z.statusCode!==6&&(MB2(D.serviceId),D.currentFlow=0),Z.statusCode!==1&&D.callerState!==void 0&&(Z.callerState=D.callerState),v(Z),E.return();_.rl(E,6);break;
case 5:_.NS(E);case 6:h=Qy$(D.currentFlow,D.supportedFlows);a=!0;E.jumpTo(2);break;case 4:MB2(D.serviceId),D.currentFlow=0,v(z$({statusCode:12,statusMessage:"Linking failed"},D.callerState)),_.YI(E)}})})},oUK=function(D,v,h){D.currentFlow=v;
return vUb(JFs(D,h)).then(function(a){return a.statusCode===10&&D.config.interactionMode===1&&Qy$(D.currentFlow,D.supportedFlows)!==void 0?p9S(D):a})},JFs=function(D,v){return{flowParams:{serviceId:D.serviceId,
sessionId:D.sessionId,galService:D.galService,galLogger:D.galLogger,interactionMode:D.config.interactionMode,redirectServiceUrl:D.config.redirectServiceUrl,colorScheme:D.config.colorScheme,consentLanguageKeys:v,dynamicUrlParameters:D.dynamicUrlParameters,showCloseOption:D.config.showCloseOption,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp},currentFlow:D.currentFlow,config:D.config,session:D.JSC$19515_linkingSession,googleScopes:D.googleScopes,callerState:D.callerState}};var Lg2=function(D,v){this.config=D;this.galService=v.getService();this.JSC$19528_galRepository=v.JSC$19546_galRepository};
Lg2.prototype.getLink=function(D,v){return l5$(this,D,v)};
var l5$=function(D,v,h){return D.JSC$19528_galRepository.getLink({serviceId:v,scopes:void 0,capabilities:void 0,linkName:h}).then(function(a){return{statusCode:1,link:a}}).catch(function(a){return{statusCode:Ui2(a.code),
statusMessage:a.message}})};
Lg2.prototype.deleteLink=function(D,v){return this.JSC$19528_galRepository.deleteLink(D,this.config.accountLinkingEntryPoint,v).then(function(){return{statusCode:1}}).catch(function(h){return{statusCode:Ui2(h.code),
statusMessage:h.message}})};
Lg2.prototype.startLinkingSession=function(D){var v=D.serviceId;var h=D.sessionId;return Pcr({serviceId:v,sessionId:h!==void 0?h:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:D.loginHint,callerState:D.callerState,consentLanguageKeys:D.consentLanguageKeys,linkName:D.linkName,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp})};var Tg=function(D,v,h,a,Q,G,x){this.apiKey=v;this.authUser=h;this.oauthToken=a;this.bucket=Q;this.locale=G;this.galSdkEventHandler=x;if(a===void 0){if(v===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new HDX(D)};
Tg.prototype.deleteLink=function(D){var v=D.serviceId;var h=D.sessionId;var a=D.accountLinkingEntryPoint;var Q=D.linkName;var G=this,x;return _.M(function(f){var C=(new BG).setHeader(G.getHeader(h));var U=NIK({serviceId:v,linkName:Q});C=_.lH(C,2,U);x=_.eI(C,3,a);return f.return(G.makeRequest(G.galServiceClient.deleteLink,x,[1,3],[2,4]))})};
var CEZ=function(D,v){var h=v.serviceId;var a=v.sessionId;var Q=v.dynamicUrlParameters;var G=v.redirectState;var x=v.consentLanguageKeys;var f=v.partnerConfigMinReadTimestamp;var C;return _.M(function(U){var L=(new XK).setHeader(D.getHeader(a,Q));L=_.WO(L,2,h);C=_.WO(L,4,G);x!==void 0&&_.WO(C,5,x);f!==void 0&&_.lH(C,6,f);return U.return(D.makeRequest(D.galServiceClient.JSC$19414_finishOAuth,C,[1,3],[2,4]))})};
Tg.prototype.getLink=function(D){var v=D.serviceId;var h=D.sessionId;var a=D.scopes;var Q=D.capabilities;var G=D.consistencyKey;var x=D.linkName;var f=this,C;return _.M(function(U){var L=(new A_).setHeader(f.getHeader(h)),Z=NIK({serviceId:v,scopes:a,capabilities:Q,linkName:x});C=_.lH(L,2,Z);G!==void 0&&(L=naK(),L=_.WO(L,2,G),_.lH(C,3,L));return U.return(f.makeRequest(f.galServiceClient.getLink,C,[1,3],[2,4]))})};
var htr=function(D,v){var h=v.serviceId;var a=v.sessionId;var Q=v.googleScopes;var G=v.consistencyKey;var x;return _.M(function(f){var C=(new cG).setHeader(D.getHeader(a));C=_.WO(C,2,h);var U=Array.from(Q.values());C=_.vd(C,3,U,_.IU);U=naK();U=_.WO(U,2,G);x=_.lH(C,4,U);return f.return(D.makeRequest(D.galServiceClient.JSC$19414_depositGoogleCredential,x,[1,3],[2,4]))})};
Tg.prototype.startLinkingSession=function(D){var v=D.serviceId;var h=D.sessionId;var a=D.scopes;var Q=D.capabilities;var G=D.loginHint;var x=D.supportedFlows;var f=D.completionUrl;var C=D.usePingPong;var U=D.twoWayLinking;var L=D.accountLinkingEntryPoint;var Z=D.callerState;var E=D.consentLanguageKeys;var I=D.googleScopes;var S=D.dataUsageNoticeConfig;var B=D.linkName;var A=D.dynamicUrlParameters;var d=D.partnerConfigMinReadTimestamp;var b=this,W,K;return _.M(function(O){if(Q!==void 0&&a!==void 0)throw Error("ok");
var R=(new MZb).setHeader(b.getHeader(h,A));W=_.WO(R,2,v);B!==void 0&&_.WO(W,14,B);if(Q!==void 0){R=W;var vA=Array.from(Q.values());_.vd(R,5,vA,_.IU)}else a!==void 0&&(R=W,vA=Array.from(a.values()),_.vd(R,3,vA,_.IU));f!==void 0&&_.WO(W,6,f);C!==void 0&&_.si(W,15,C);x!==void 0&&(R=W,vA=Array.from(x.values()),_.vd(R,4,vA,_.hr));if(U!==void 0){if(U&&(!I||I.size===0))throw Error("tk");_.si(W,8,U)}L!==void 0&&_.eI(W,9,L);G!==void 0&&_.WO(W,13,G);Z!==void 0&&(R=W,vA=(new TextEncoder).encode(Z),_.h3(R,12,
_.N1(vA,!1),_.ls()));E!==void 0&&_.WO(W,16,E);d!==void 0&&_.lH(W,18,d);if(S!==void 0&&S.size>0||I!==void 0&&I.size>0)K=new xE2,I!==void 0&&I.size>0&&(R=K,vA=Array.from(I.values()),_.vd(R,1,vA,_.IU)),S!==void 0&&(S.has(0)&&_.wsc(K,2,_.hr,1,_.$C),S.has(1)&&_.wsc(K,2,_.hr,2,_.$C)),_.lH(W,17,K);return O.return(b.makeRequest(b.galServiceClient.startLinkingSession,W,[1],[2]))})};
Tg.prototype.getMetadata=function(){var D=this,v,h;return _.M(function(a){v={};D.useFpa?(v["X-Goog-Api-Key"]=D.apiKey,v["X-Goog-AuthUser"]=D.authUser!==void 0?D.authUser.toString():"0",(h=_.fpc([]))&&(v.Authorization=h)):v.Authorization="Bearer "+D.oauthToken;D.locale&&(v["accept-language"]=D.locale);return a.return(v)})};
Tg.prototype.makeRequest=function(D,v,h,a){var Q=this,G;return _.M(function(x){if(x.nextAddress==1)return x.yield(Q.getMetadata(),2);G=x.yieldResult;YGC(Q,h);return x.return(D.bind(Q.galServiceClient)(v,G).finally(function(){YGC(Q,a)}))})};
var YGC=function(D,v){D.galSdkEventHandler!==void 0&&v.forEach(function(h){D.galSdkEventHandler.onEvent(h)})};
Tg.prototype.getHeader=function(D,v){var h=new la;D=_.h3(h,2,_.QK(D),0);D=_.eI(D,5,3);v=_.vd(D,8,v,_.IU);this.bucket!==void 0&&_.WO(v,1,this.bucket);return v};
var NIK=function(D){var v=D.serviceId;var h=D.scopes;var a=D.capabilities;D=D.linkName;if(a!==void 0&&h!==void 0)throw Error("ok");var Q=new wuS;v=_.WO(Q,1,v);a!==void 0?(h=Array.from(a.values()),_.vd(v,5,h,_.IU)):h!==void 0&&(h=Array.from(h.values()),_.vd(v,3,h,_.IU));D!==void 0&&_.WO(v,6,D);return v};var ZZr=function(D){this.galService=new Tg(D.alsDomain,D.apiKey,D.authUser,D.oauthToken,D.bucket,D.locale,D.galSdkEventHandler);this.JSC$19546_galRepository=new a5r(this.galService)};
ZZr.prototype.getService=function(){return this.galService};var BIK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(BIK,_.xo);var cFs=function(D){var v=new BIK;return _.oe(v,1,D)};
BIK.prototype.setErrorMessage=function(D){return _.Xx(this,2,D)};var X9$=[0,_.xa,_.$a,_.xa];var Rw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Rw,_.xo);var AFs=[0,[1,2,3],_.Pu,[0,hCS,QHX,-1],_.Pu,[0,$A3,-1],_.G6];var qG$=[0,_.vu,1,_.xa,_.$a,-1,1,_.d7q,_.rY,_.xa,-1,AFs];var bX3=[0,_.xa,[0,_.d7q,_.rY,[0,_.$a]],_.hy,[0,_.xa,-1]];var f8=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(f8,_.xo);var dCU=[0,_.$a,_.xa,-2,_.vu,_.xa,_.vu,_.xa,-2,1,_.hy];var jvZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(jvZ,_.xo);var svC=[0,_.vu];var mCI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(mCI,_.xo);var HXC=[0,_.xa,bX3,svC,dCU,qG$];var iSr=_.EQ(mCI,HXC);var yFs=[0,yJm];var vYK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(vYK,_.xo);var w9K=[0,[1,3],P23,_.xa,P23];var xj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(xj,_.xo);var ew3=[0,_.xa];var nNC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(nNC,_.xo);var MU=function(D){return _.yF(D,BIK,2,PG)},OXC=function(D){var v=new nNC;
return _.Nf(v,2,PG,D)},PG=[1,
2];var KDb=[0,PG,_.Pu,ew3,_.Pu,X9$,_.Va,w9K,1,_.xa,yFs];var TIX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(TIX,_.xo);var iXm=function(D){var v=new TIX;return _.Nf(v,3,RwI,D)},RwI=[2,
3];var ia=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(ia,_.xo);var WDU=function(D,v){return _.lH(D,2,v)},tvr=function(D,v){return _.lH(D,8,v)},rF3=function(D,v){return _.lH(D,3,v)};var uWr=[0,_.xa,KDb,HXC,_.FI,[0,[5,6,7],[0,_.xa,-2],[0,_.vu,_.xa,_.$a],[0,AFs],[0,_.$a,_.xa,-1,_.oI,_.xa],_.Pu,[0,[0,_.vu],_.xa,-1],_.Pu,[0,[3,4],_.xa,-1,_.Pu,[0,[0,_.xa,_.hy]],_.Pu,[0,[0,[0,[1,2],_.Pu,[0],_.Pu,[0]]]]],_.Pu,[0,_.xa]],_.FI,-1,[0,RwI,_.xa,_.Pu,ew3,_.Pu,X9$,_.Va,w9K,[0,yJm]]];var Dw$=_.EQ(ia,uWr),v9C=_.Im(uWr);var hgm=function(){_.AN.call(this)};
_.J(hgm,_.AN);hgm.prototype.init=function(){};
new hgm;var alS=_.DK(["data-"]),$wK=_.DK(["aria-"]),QWZ=_.DK(["aria-"]),WG=function(D,v){this.isLatencyMeasurementExperiment=D===void 0?!1:D;this.enableDialogA11yFix=v===void 0?!1:v;this.JSC$19575_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Ufm(_.$L.location.href)},tos=function(D,v){D.onConsentPrimitiveShownCallback=v},G0K=function(D,v){return D.overriddenIframeLoadTimeout?D.overriddenIframeLoadTimeout:v!==void 0?v:5E3},uvZ=function(D){if(D.prewarmPromise!==void 0)return D.prewarmPromise;
D.prewarmPromise=new Promise(function(v,h){t_(D,1);VnI(D,PY$(D,!0),xwC(D));D.iframe?D.prewarmChannel||MnX(D,D.iframe,v):h(Error("uk"))});
D.prewarmPromise.finally(function(){D.prewarmPromise=void 0});
return D.prewarmPromise};
WG.prototype.showPrimitive=function(){var D=this;if(this.consentPromise!==void 0)return this.consentPromise;var v=Date.now();flK(this,v);this.consentPromise=new Promise(function(h,a){t_(D,0,v);var Q=D.isDarkTheme();D.isLatencyMeasurementExperiment||D.initialLoadingStrategy===1||D.initialLoadingStrategy===2||(D.loadingBar||(D.loadingBar=kHr(getComputedStyle(document.body).direction==="rtl",Q),D.loadingBar.style.position="fixed",D.loadingBar.style.zIndex="15000"),document.body.appendChild(D.loadingBar));
VnI(D,PY$(D),xwC(D));D.iframe?D.channel||CYr(D,D.iframe,h,a):(o9K(D),a(Error("uk")))});
this.consentPromise.finally(function(){D.consentPromise=void 0});
return this.consentPromise};
var CYr=function(D,v,h,a){var Q,G;_.M(function(x){switch(x.nextAddress){case 1:t_(D,3);Q=!1;setTimeout(function(){if(!Q){o9K(D);FJ2(D);zgC(D);var f=cFs(7).setErrorMessage("Timeout connecting to iframe");h(tvr(WDU(new ia,OXC(f)),iXm(f)))}},G0K(D,Uwd(D)));
if(!D.prewarmPromise){x.jumpTo(2);break}_.gE(x,3);return x.yield(D.prewarmPromise,5);case 5:_.rl(x,2);break;case 3:_.NS(x),G=cFs(4).setErrorMessage("Error while prewarming."),h(tvr(WDU(new ia,OXC(G)),iXm(G)));case 2:D.prewarmChannel&&D.prewarmChannel.send(v9C(rF3(new ia,D.consentPrimitiveRequest))),D.channel=_.oH({destination:D.JSC$19575_win,iframe:v,origin:LJZ(D),channelName:"cpw",onEstablished:function(){Q=!0;o9K(D);D.isLatencyMeasurementExperiment||(D.JSC$19575_previousBodyOverflow=document.body.style.overflow,
D.JSC$19575_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,D.JSC$19575_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",D.enableDialogA11yFix&&window.addEventListener("blur",D.focusChangeListener));var f=D.iframe;f.style.bottom="0";f.style.position="fixed";f.style.right="0";f.style.border="none";f.style.left="0";f.style.top=
"0";f.style.zIndex="5000";f.style.pointerEvents="";f.style.visibility="";D.initialLoadingStrategy===2||D.initialLoadingStrategy===3?t_(D,4):t_(D,6);var C;(C=D.onConsentPrimitiveShownCallback)==null||C.call(D)},
onMessage:function(f){f=Dw$(f.data);switch(_.s1(f,1)){case 1:FJ2(D);var C=SIs(_.CL(f,_.m2,7));C&&(D.initialLoadingStrategy!==2&&D.initialLoadingStrategy!==3||t_(D,6,C),t_(D,5,C));if(C=SIs(_.CL(f,_.m2,6)))t_(D,7,C),t_(D,8);var U,L;((U=_.CL(f,nNC,2))==null?void 0:_.BD(U,PG))!==0&&((L=_.CL(f,TIX,8))==null?void 0:_.BD(L,RwI))!==0||a(Error("vk"));h(f);break;case 2:zgC(D)}}}),_.YI(x)}})},MnX=function(D,v,h){D.prewarmChannel=_.oH({destination:D.JSC$19575_win,
iframe:v,origin:LJZ(D),channelName:"pwcp",onEstablished:function(){t_(D,2);h()}})},LJZ=function(D){var v=_.qf(D.src).toString();
return v&&v.indexOf("://")<0&&v.indexOf("//")!==0?D.origin:_.Ufm(v)},PY$=function(D,v){v=v===void 0?!1:v;
var h,a=new Map([["origin",D.origin],["hl",(h=Zym(D))!=null?h:null]]);v&&a.set("pw","1");v=_.P([["cpr",D.consentPrimitiveRequest.serialize()]]);for(h=v.next();!h.done;h=v.next()){var Q=_.P(h.value);h=Q.next().value;Q=Q.next().value;a.set(h,Q)}D.isDarkTheme()&&a.set("color_scheme","dark");return _.Z3(D.src,a)},o9K=function(D){D.isLatencyMeasurementExperiment||D.loadingBar&&document.body.removeChild(D.loadingBar)};
WG.prototype.getSrc=function(){var D=_.$d(this.origin),v;var h=(v=_.CL(this.consentPrimitiveRequest,jvZ,3))==null?void 0:_.C0(v,1);v="consent.google.com";h=h?"/u/"+encodeURIComponent(h.toString()):"";(D==null?0:D.endsWith("youtube.com"))?v="consent.youtube.com":(D=D==null?void 0:D.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(v="consent.google."+((D[1]?"co.":"")+encodeURIComponent(D[2])));return _.XY("https://"+v+"/signedin"+h+"/landing")};
var VnI=function(D,v,h){D.iframe||(D.iframe=document.createElement("iframe"),D.iframe.style.width="100%",D.iframe.style.height="100%",h!==112496729&&(D.iframe.style.colorScheme="auto"),D.isLatencyMeasurementExperiment&&(D.iframe.style.display="none"),_.uH(D.iframe,v),D.iframe.setAttribute("jsname","C5o1O"),E9d(D.iframe),document.body.appendChild(D.iframe))},E9d=function(D){D.style.bottom="-200vh";
D.style.position="fixed";D.style.right="-200vw";D.style.border="";D.style.left="";D.style.top="";D.style.zIndex="";D.style.pointerEvents="none";D.style.visibility="hidden"},FJ2=function(D){D.iframe&&(D.isLatencyMeasurementExperiment||(D.JSC$19575_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=D.JSC$19575_previousHtmlOverscroll),D.JSC$19575_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=D.JSC$19575_previousBodyOverscroll),D.JSC$19575_previousBodyOverflow!==
void 0&&(document.body.style.overflow=D.JSC$19575_previousBodyOverflow),D.enableDialogA11yFix&&IlK(D,!1)),E9d(D.iframe))};
WG.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(IlK(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var IlK=function(D,v){var h,a,Q=(h=D.iframe)==null?void 0:(a=h.parentElement)==null?void 0:a.children;if(Q)for(h=0;h<Q.length;h++)a=Q[h],a!==D.iframe&&(v?(a.hasAttribute("aria-hidden")&&_.Pp([_.CT(alS)],a,"data-old-aria-hidden",a.getAttribute("aria-hidden")),_.Pp([_.CT($wK)],a,"aria-hidden","true")):(a.removeAttribute("aria-hidden"),a.hasAttribute("data-old-aria-hidden")&&(_.Pp([_.CT(QWZ)],a,"aria-hidden",a.getAttribute("data-old-aria-hidden")),a.removeAttribute("data-old-aria-hidden"))))},t_=function(D,
v,h){var a;
(a=D.latencyCallback)==null||a.call(D,{latencyType:v,timestampEpochMillis:h!=null?h:Date.now()})};var g9r=function(D,v,h){WG.call(this,v,h===void 0?!1:h);this.consentPrimitiveRequest=D;D=Zym(this);_.UFX(D);this.src=this.getSrc();var a;this.initialLoadingStrategy=(a=_.CL(this.consentPrimitiveRequest,f8,4))==null?void 0:_.s1(a,4)},k0K;
_.J(g9r,WG);var W22=function(D){var v=_.g("enable_primitive_dialog_aria_hide_siblings");D={request:D,enableDialogA11yFix:v===void 0?!1:v};k0K||(k0K=new g9r(D.request,D.isLatencyMeasurementExperiment||_.s1(D.request,1)===2,D.enableDialogA11yFix));return k0K},Zym=function(D){var v;
return(v=_.CL(D.consentPrimitiveRequest,f8,4))==null?void 0:_.jI(v,1)},flK=function(D,v){if(!_.pa(D.consentPrimitiveRequest,Rw,5)){var h=D.consentPrimitiveRequest,a=new Rw;
_.lH(h,5,a)}var Q;if((Q=_.CL(D.consentPrimitiveRequest,Rw,5))==null||_.d1L(_.J8(Q,8))==null){var G;(G=_.CL(D.consentPrimitiveRequest,Rw,5))!=null&&_.Y_(G,8,v)}},xwC=function(D){var v;
return(v=_.CL(D.consentPrimitiveRequest,Rw,5))==null?void 0:_.C0(v,1)};
g9r.prototype.isDarkTheme=function(){var D;return((D=_.CL(this.consentPrimitiveRequest,f8,4))==null?void 0:_.s1(D,2))===2};
var Uwd=function(D){var v;return((v=_.CL(D.consentPrimitiveRequest,f8,4))==null?void 0:_.C0(v,5))||void 0},zgC=function(D){D.channel=void 0;
D.prewarmChannel=void 0;D.iframe&&(document.body.contains(D.iframe)&&document.body.removeChild(D.iframe),D.iframe=void 0);k0K=void 0},DhS=function(D){return WG.prototype.showPrimitive.call(D).then(function(v){return _.CL(v,nNC,2)})};for(var r$={},Sj$=(r$[64]="ma",r$[73]="ogb",r$[89]="cr",r$[21]="test",r$[0]="unkn",r$[137]="con",r$[155]="hl",r$[78]="yt",r$[171]="lp",r$[172]="ap",r$[177]="amo",r$[178]="pqe",r$[74]="gg",r$[1]="gm",r$[140]="am",r$[193]="sc",r$),Jeb=_.P(Object.keys(Sj$)),pwU=Jeb.next();!pwU.done;pwU=Jeb.next());var llr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(llr,_.xo);var NtZ=[0,[2,3,4],_.xa,aNs,P23,_.G6];var Yjs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(Yjs,_.xo);var BtI=_.EQ(Yjs,[0,_.MA,_.$a,_.xa,_.$a,_.xa,NtZ]);var ced=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(ced,_.xo);ced.prototype.getCommand=function(){return _.s1(this,1)};
var Xw$=function(){var D=new ced;return _.eI(D,1,0)};var Ae3=_.Im([0,_.MA,_.$a,[0,_.xa,_.$a,-1]]);var qjX=new _.cZ("s"),bys=new _.cZ("t"),dw3=new _.cZ("u"),jWm=new _.cZ("v"),sWd=function(D,v,h){_.XI.call(this,qjX);this.mediaKey=D;this.photoUrl=v;this.photoSource=h};
_.J(sWd,_.XI);var mwr=function(){_.XI.call(this,bys)};
_.J(mwr,_.XI);var Hy$=function(D){D=D===void 0?!1:D;_.XI.call(this,dw3);this.isError=D};
_.J(Hy$,_.XI);var yer=function(){_.XI.call(this,jWm)};
_.J(yer,_.XI);var wwm=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,KJS=function(D){if(typeof D=="string"){if(D.charAt(0)==".")return egb(D.substr(1));if(D.charAt(0)=="["){var v=wwm.exec(D);D=D.indexOf("=")==-1?void 0:v[3];return n92(v[1],D)}return Oys(D)}return D},egb=function(D){return function(v){return v.getAttribute&&_.$N(v,D)}},n92=function(D,v){return function(h){return v!==void 0?h.getAttribute&&h.getAttribute(D)==v:h.hasAttribute&&h.hasAttribute(D)}},Oys=function(D){D=D.toUpperCase();
return function(v){return(v=v.tagName)&&v.toUpperCase()==D}},Ttr=function(){return!0};var ua=function(D,v){this.JSC$19603_key_=D;this.JSC$19603_value_=v},Dt=function(D){throw Error("wk`"+D.JSC$19603_key_);
},Rg$=function(D,v){return new TypeError("xk`"+v+"`"+D.JSC$19603_key_+"`"+D.JSC$19603_value_+"`"+typeof D.JSC$19603_value_)};
ua.prototype.string=function(D){return arguments.length==0?iyI(this):WJm(this,D)};
var WJm=function(D,v){var h;return(h=tnr(D))!=null?h:v},iyI=function(D){var v=tnr(D);
v===null&&Dt(D);return v},tnr=function(D){var v=D.JSC$19603_value_;
if(v==null)return null;if(typeof v==="string")return v;throw Rg$(D,"string");};
ua.prototype.bool=function(D){if(arguments.length==0){var v=this.optionalBool();v===null&&Dt(this)}else{var h;v=(h=this.optionalBool())!=null?h:D}return v};
ua.prototype.optionalBool=function(){var D=this.JSC$19603_value_;if(D==null)return null;if(typeof D==="boolean")return D;if(typeof D==="string"){D=D.toLowerCase();if(D==="true"||D==="1")return!0;if(D==="false"||D==="0")return!1}throw Rg$(this,"boolean");};
ua.prototype.number=function(D){if(arguments.length==0){var v=rem(this);v===null&&Dt(this)}else v=u73(this,D);return v};
var u73=function(D,v){var h;return(h=rem(D))!=null?h:v},rem=function(D){var v=D.JSC$19603_value_;
if(v==null)return null;if(typeof v==="number")return v;if(typeof v==="string"){var h=Number(v);if(!isNaN(h)&&(h!==0||v.trim().length!==0))return h}throw Rg$(D,"number");};
ua.prototype.toString=function(){return iyI(this)};
ua.prototype.enum=function(D,v){var h=!0,a=void 0,Q;for(Q in D){var G=D[Q];h&&(h=!1,a=typeof G==="number"?u73(this,v):WJm(this,v));if(G==a)return a}JSON.stringify(D);return a};
ua.prototype.array=function(D){if(arguments.length==0){var v=D_2(this);v===null&&Dt(this);return v}v=D_2(this);return v==null?D:v};
var D_2=function(D){var v=D.JSC$19603_value_;if(v==null)return null;Array.isArray(v)||(typeof v!=="string"?v=[v]:(v=v.trim(),v=v==""?[]:v.split(",").map(function(h){return h.trim()})));
return vsK(D,v)},vsK=function(D,v){var h=D.JSC$19603_key_+"[";
return Array.from(v,function(a,Q){return new ua(h+Q+"]",a)})};
ua.prototype.object=function(D){var v=this.JSC$19603_value_;if(v==null)return D===void 0&&Dt(this),D;if(typeof v==="object"&&v.constructor===Object){D={};var h=this.JSC$19603_key_+".",a;for(a in v)D[a]=new ua(h+a,v[a]);return D}throw Rg$(this,"object");};var v3=function(D){this.list_=hhd(D)},hhd=function(D){if(D instanceof v3)D=D.list_;
else if(D[0]instanceof v3){for(var v=new Set,h=0;h<D.length;h++)for(var a=_.P(D[h].list_),Q=a.next();!Q.done;Q=a.next())v.add(Q.value);D=v}return[].concat(_.j_(D))};
_.V=v3.prototype;_.V.each=function(D,v,h){((h===void 0?0:h)?yPK:_.rM)(this.list_,D,v);return this};
_.V.size=function(){return this.list_.length};
_.V.isEmpty=function(){return this.list_.length===0};
_.V.get=function(D){return this.list_[D]||null};
_.V.el=function(){return this.list_[0]||null};
_.V.map=function(D,v){return _.mO(this.list_,D,v)};
_.V.equals=function(D){return this===D||_.WA(this.list_,D.list_)};
_.V.first=function(){return this.list_.length==0?null:new hi(this.list_[0])};
_.V.last=function(){return this.list_.length==0?null:new hi(this.list_[this.list_.length-1])};
_.V.find=function(D){var v=[];this.each(function(h){h=h.querySelectorAll(String(D));for(var a=0;a<h.length;a++)v.push(h[a])});
return new v3(v)};
_.V.parent=function(){var D=[];this.each(function(v){(v=v.parentElement||null)&&!_.wc(D,v)&&D.push(v)});
return new v3(D)};
_.V.children=function(){var D=[];this.each(function(v){v=_.T6(v);for(var h=0;h<v.length;h++)D.push(v[h])});
return new v3(D)};
_.V.filter=function(D){D=_.op(this.list_,KJS(D));return new v3(D)};
_.V.closest=function(D){var v=[],h=KJS(D),a=function(Q){return _.aB(Q)&&h(Q)};
this.each(function(Q){(Q=_.OV(Q,a,!0))&&!_.wc(v,Q)&&v.push(Q)});
return new v3(v)};
_.V.next=function(D){return a$I(this,_.q24,D)};
_.V.prev=function(D){return a$I(this,xAr,D)};
var a$I=function(D,v,h){var a=[];var Q=h?KJS(h):Ttr;D.each(function(G){(G=v(G))&&Q(G)&&a.push(G)});
return new v3(a)};
v3.prototype.setClass=function(D){return this.each(function(v){_.av(v,D)})};
var $_Z=function(D,v){return D.each(function(h){_.x5(h,v)})},Q5r=function(D,v){return D.each(function(h){_.V0(h,v)})};
v3.prototype.toggleClass=function(D,v){return v===!0?$_Z(this,D):v===!1?Q5r(this,D):this.each(function(h){_.$N(h,D)?_.V0(h,D):_.x5(h,D)})};
v3.prototype.setText=function(D){return this.each(function(v){_.RH(v,D)})};
var GcU=function(D){D.each(function(v){v.removeAttribute("aria-hidden")})};
v3.prototype.getStyle=function(D){if(this.list_.length>0){var v=this.list_[0],h=v.style[_.l4(D)];return typeof h!=="undefined"?h:v.style[_.TrF(v,D)]||""}};
v3.prototype.getData=function(D){if(this.list_.length===0)return new ua(D,null);var v=Kn3(this.list_[0],D);return new ua(D,v)};
v3.prototype.focus=function(D){try{D?this.el().focus(D):this.el().focus()}catch(v){}return this};
v3.prototype.click=function(){var D=_.e9(this.el());if(D.createEvent){var v=D.createEvent("MouseEvents");v.initMouseEvent("click",!0,!0,D.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(v)}else D=D.createEventObject(),D.clientX=0,D.clientY=0,D.screenX=0,D.screenY=0,D.altKey=!1,D.ctrlKey=!1,D.shiftKey=!1,D.button=0,this.el().fireEvent("onclick",D)};
var aO=function(D,v,h,a){function Q(f,C,U){var L=C;C&&C.parentNode&&(L=C.cloneNode(!0));f(L,U)}
a=a===void 0?!1:a;if(D.list_.length==1){var G=D.list_[0],x=function(f){return v(f,G)};
h instanceof v3?h.each(x,void 0,a):Array.isArray(h)?(a?yPK:_.rM)(h,x):x(h);return D}return D.each(function(f){h instanceof v3?h.each(function(C){Q(v,C,f)}):Array.isArray(h)?_.rM(h,function(C){Q(v,C,f)}):Q(v,h,f)})};
_.V=v3.prototype;_.V.append=function(D){return aO(this,function(v,h){v&&h.appendChild(v)},D)};
_.V.appendTo=function(D){(new v3([D])).append(this);return this};
_.V.remove=function(){return aO(this,function(D,v){_.Np(v)},null)};
_.V.empty=function(){return aO(this,function(D,v){_.nW(v)},null)};
_.V.after=function(D,v){return aO(this,function(h,a){h&&_.KW(h,a)},D,!(v===void 0||v))};
_.V.before=function(D){return aO(this,function(v,h){v&&_.OO(v,h)},D)};
_.V.replaceWith=function(D){return aO(this,function(v,h){v&&_.cr9(v,h)},D)};
_.V.toggle=function(D){return this.each(function(v){_.vl(v,D)})};
_.V.show=function(){return this.toggle(!0)};
_.V.hide=function(){return this.toggle(!1)};
_.V.trigger=function(D,v,h,a){return Vy$(this,D,v,h,a)};
var Vy$=function(D,v,h,a,Q){return D.each(function(G){_.XKL(_.e9(G)).triggerWizEventInternal(G,v,h,a,Q)})},hi=function(D,v){D instanceof v3&&(v=D.list_,D=null);
this.list_=hhd(D!=null?[D]:v)};
_.fa(hi,v3);_.V=hi.prototype;_.V.children=function(){return new v3(Array.prototype.slice.call(_.T6(this.list_[0])))};
_.V.each=function(D,v){D.call(v,this.list_[0],0);return this};
_.V.size=function(){return 1};
_.V.el=function(){return this.list_[0]};
_.V.first=function(){return this};var $0=function(D,v){v=v===void 0?window:v;this.hostId=D;this.JSC$19614_win=v;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$19614_previousHtmlOverscroll=this.JSC$19614_previousBodyOverscroll=this.JSC$19614_previousBodyOverflow="";this.eventTarget=new _.jZ;this.JSC$19614_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
MyS=function(D){var v=Prr(Prr(Prr(new x_U(78),"po"),"hppp"),"hhc");
v.authUser=Number(_.eA("SESSION_INDEX","0"));v.colorScheme=D;return v};
$0.prototype.getOrigin=function(){return this.origin?this.origin:_.UG(_.zq(_.FW(new _.aN,this.JSC$19614_win.location.protocol),this.JSC$19614_win.location.hostname),this.JSC$19614_win.location.port).toString()};
$0.prototype.getTargetOrigin=function(){return _.UG(_.zq(_.FW(new _.aN,this.scheme),this.domain),this.port)};
$0.prototype.preloadIframe=function(D){var v=this;if(this.iframeLoadPromise===void 0){var h=document.createElement("iframe");this.iframe=h;cVr(h,D);this.iframeLoadPromise=new Promise(function(a,Q){var G=!1,x=function(f){f.stopPropagation();h.removeEventListener("error",x);h.removeEventListener("securitypolicyviolation",x);Q(Error("yk",{cause:f}))};
h.addEventListener("error",x);h.addEventListener("securitypolicyviolation",x);setTimeout(function(){G||Q(Error("zk"))},3E4);
f$r(v,h,function(){G=!0;h.removeEventListener("error",x);h.removeEventListener("securitypolicyviolation",x);a()})});
Crd(this);D=this.getTargetOrigin().toString();h.setAttribute("allow","camera "+D+"; display-capture "+D);this.parentElement.appendChild(h)}return this.iframeLoadPromise};
var zhr=function(D,v){var h,a;return _.M(function(Q){if(Q.nextAddress==1)return h=kHr(getComputedStyle(D.parentElement).direction==="rtl"),D.parentElement.appendChild(h),document.activeElement instanceof HTMLElement&&(D.elementToFocusAfterClose=document.activeElement),_.gE(Q,2),Q.yield(D.preloadIframe(v),4);if(Q.nextAddress!=2){D.parentElement.removeChild(h);D.JSC$19614_previousBodyOverflow=D.parentElement.style.overflow;D.JSC$19614_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
D.JSC$19614_previousBodyOverscroll=D.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";D.parentElement.style.overscrollBehavior="contain";D.parentElement.style.overflow="hidden";var G=D.iframe;G.style.bottom="0";G.style.border="none";G.style.height="100%";G.style.left="0";G.style.position=D.iframePosition;G.style.right="0";G.style.top="0";G.style.width="100%";G.style.zIndex="2202";G.setAttribute("aria-hidden","false");G.setAttribute("aria-modal","true");
D.opened=!0;osr(D);return _.rl(Q,0)}a=_.NS(Q);D.parentElement.removeChild(h);NxS(D.isDarkTheme());FGS(D,!1);throw Error("Ak",{cause:a});})},FGS=function(D,v){v=v===void 0?!0:v;
D.iframe!==void 0&&(U_S(D),document.documentElement.style.overscrollBehavior=D.JSC$19614_previousHtmlOverscroll,D.parentElement.style.overscrollBehavior=D.JSC$19614_previousBodyOverscroll,D.parentElement.style.overflow=D.JSC$19614_previousBodyOverflow,D.elementToFocusAfterClose!==void 0&&(D.elementToFocusAfterClose.focus(),D.elementToFocusAfterClose=void 0),v?Crd(D):(D.parentElement.removeChild(D.iframe),D.iframe=void 0,D.iframeLoadPromise=void 0,D.mainChannel=void 0),D.opened=!1)},U_S=function(D){D.backgroundElementsAriaHiddenIsNull&&
(GcU(D.backgroundElementsAriaHiddenIsNull),D.backgroundElementsAriaHiddenIsNull=void 0);
D.backgroundElementsAriaHiddenIsFalse&&(D.backgroundElementsAriaHiddenIsFalse.each(function(v){v.setAttribute("aria-hidden","false")}),D.backgroundElementsAriaHiddenIsFalse=void 0);
D.backgroundElementsWithoutInert&&(D.backgroundElementsWithoutInert.each(function(v){v.removeAttribute("inert")}),D.backgroundElementsWithoutInert=void 0)},osr=function(D){D.backgroundElementsAriaHiddenIsNull=(new hi(D.iframe.parentElement)).children().filter(function(v){return v.getAttribute("aria-hidden")===null&&v!==D.iframe});
D.backgroundElementsAriaHiddenIsNull.each(function(v){v.setAttribute("aria-hidden","true")});
D.backgroundElementsAriaHiddenIsFalse=(new hi(D.iframe.parentElement)).children().filter(function(v){return v.getAttribute("aria-hidden")==="false"&&v!==D.iframe});
D.backgroundElementsAriaHiddenIsFalse.each(function(v){v.setAttribute("aria-hidden","true")});
D.backgroundElementsWithoutInert=(new hi(D.iframe.parentElement)).children().filter(function(v){return!v.hasAttribute("inert")&&v!==D.iframe});
D.backgroundElementsWithoutInert.each(function(v){v.setAttribute("inert","true")})},Crd=function(D){D=D.iframe;
D.style.bottom="-1000px";D.style.position="fixed";D.style.right="-1000px";D.style.border="";D.style.height="";D.style.left="";D.style.top="";D.style.width="";D.style.zIndex="";D.setAttribute("aria-hidden","true");D.setAttribute("aria-modal","false")};
$0.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var x_U=function(D,v){$0.call(this,Sj$[D],v);this.options=[];this.style=""};
_.J(x_U,$0);var LGb=function(D){D.style="youtube";return D},Z6K=function(D,v){D.eventTarget.listen(dw3,v);
return D},Ess=function(D,v){D.eventTarget.listen(qjX,v);
return D},Prr=function(D,v){D.options.push(v);
return D},I$2=function(D){var v=[D.getOrigin()];
D.ancestorOrigins&&v.push.apply(v,_.j_(D.ancestorOrigins));var h=new _.aN(D.JSC$19614_win.location.href),a=D.startUrl?D.startUrl:D.options.includes("po")?"profile-picture/art":"profile-picture";v=ow(_.LX(D.getTargetOrigin(),a),"origin",v);D.startUrl&&_.Dq(v,"startPath",D.startUrl);D.authUser>0&&_.Dq(v,"authuser",D.authUser);D.pageId!==void 0&&_.Dq(v,"pageId",D.pageId);_.Dq(v,"hostId",D.hostId);D.jsMode!==void 0&&_.Dq(v,"jsmode",D.jsMode);D.rectangleRatio!==void 0&&_.Dq(v,"rectangleRatio",D.rectangleRatio);
D.options.length>0&&_.Dq(v,"opts",D.options.join(","));try{for(var Q=_.P(["utm_source","utm_medium","utm_campaign","utm_content"]),G=Q.next();!G.done;G=Q.next()){var x=G.value;_.rW(h,x)&&_.Dq(v,x,_.rW(h,x))}var f,C=(f=D.hl)!=null?f:_.rW(h,"hl");C!==void 0&&_.Dq(v,"hl",C)}catch(U){if(!(U instanceof URIError))throw U;}D.colorScheme&&_.Dq(v,"theme",D.colorScheme);D.style&&_.Dq(v,"style",D.style);return v},gsm=function(D,v){D.mainChannel=_.oH({destination:D.JSC$19614_win,
iframe:v,origin:D.getTargetOrigin().toString(),channelName:"ow",onMessage:function(h){h=BtI(h.data);if(v===D.iframe)switch(_.s1(h,1)){case 1:D.eventTarget.dispatchEvent(new Hy$);FGS(D);break;case 2:D.eventTarget.dispatchEvent(new sWd(_.jI(h,4),_.jI(h,2),_.s1(h,5),_.CL(h,llr,6)));break;case 0:var a;D.eventTarget.dispatchEvent(new mwr(_.jI(h,2),(a=_.s1(h,3))!=null?a:0));break;case 3:D.eventTarget.dispatchEvent(new Hy$(!0));FGS(D,!1);break;case 4:D.eventTarget.dispatchEvent(new yer)}}})},f$r=function(D,
v,h){_.oH({destination:D.JSC$19614_win,
iframe:v,origin:_.UG(_.zq(_.FW(new _.aN,D.scheme),D.domain),D.port).toString(),channelName:"owi",onMessage:function(a){v===D.iframe&&(h!==void 0&&h(),gsm(D,v),D.opened&&D.mainChannel.send(Ae3(Xw$())),a.reply(),f$r(D,v))}})};
x_U.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?$0.prototype.preloadIframe.call(this,I$2(this).toString()):this.iframeLoadPromise};
x_U.prototype.openPicker=function(D){var v=this;return _.M(function(h){if(h.nextAddress==1)return v.startUrl=D?D:v.options.includes("po")?"profile-picture/art":"profile-picture",h.yield(zhr(v,I$2(v).toString()),2);if(v.mainChannel){var a=v.mainChannel,Q=a.send;var G=Xw$();G=_.Xx(G,2,v.startUrl);Q.call(a,Ae3(G))}_.YI(h)})};var kcX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(kcX,_.xo);_.V=kcX.prototype;_.V.getSize=function(){return Iw(this,1)};
_.V.setSize=function(D){return _.wY(this,1,D)};
_.V.getWidth=function(){return Iw(this,12)};
_.V.getHeight=function(){return Iw(this,13)};
_.V.setCenterCrop=function(D){return _.UN(this,20,D)};
_.V.getHtml=function(){return _.q6(this,4)};
_.V.getToken=function(){return _.p0(this,24)};
_.V.setToken=function(D){return _.Xx(this,24,D)};
_.V.getBackgroundColor=function(){return Iw(this,87)};
_.V.hasBackgroundColor=function(){return _.Gd(_.J8(this,87))!=null};
_.V.getStoryboardLevel=function(){return Iw(this,109)};var Q4=function(D){this.JSC$19622_value_=void 0;this.childNodes_={};if(D){var v=_.gfm(D);D=_.ov(D);for(var h=0;h<v.length;h++)this.set(v[h],D[h])}};
Q4.prototype.set=function(D,v){SZ2(this,D,v,!1)};
Q4.prototype.add=function(D,v){SZ2(this,D,v,!0)};
var SZ2=function(D,v,h,a){for(var Q=0;Q<v.length;Q++){var G=v.charAt(Q);D.childNodes_[G]||(D.childNodes_[G]=new Q4);D=D.childNodes_[G]}if(a&&D.JSC$19622_value_!==void 0)throw Error("Bk`"+v);D.JSC$19622_value_=h},JTS=function(D,v){for(var h=0;h<v.length;h++)if(D=D.childNodes_[v.charAt(h)],!D)return;
return D};
Q4.prototype.get=function(D){return(D=JTS(this,D))?D.JSC$19622_value_:void 0};
Q4.prototype.getValues=function(){var D=[];pN3(this,D);return D};
var pN3=function(D,v){D.JSC$19622_value_!==void 0&&v.push(D.JSC$19622_value_);for(var h in D.childNodes_)pN3(D.childNodes_[h],v)};
Q4.prototype.getKeys=function(D){var v=[];if(D){for(var h=this,a=0;a<D.length;a++){var Q=D.charAt(a);if(!h.childNodes_[Q])return[];h=h.childNodes_[Q]}l$$(h,D,v)}else l$$(this,"",v);return v};
var l$$=function(D,v,h){D.JSC$19622_value_!==void 0&&h.push(v);for(var a in D.childNodes_)l$$(D.childNodes_[a],v+a,h)};
_.V=Q4.prototype;_.V.containsKey=function(D){return this.get(D)!==void 0};
_.V.containsValue=function(D){if(this.JSC$19622_value_===D)return!0;for(var v in this.childNodes_)if(this.childNodes_[v].containsValue(D))return!0;return!1};
_.V.clear=function(){this.childNodes_={};this.JSC$19622_value_=void 0};
_.V.remove=function(D){for(var v=this,h=[],a=0;a<D.length;a++){var Q=D.charAt(a);if(!v.childNodes_[Q])throw Error("Ck`"+D);h.push([v,Q]);v=v.childNodes_[Q]}D=v.JSC$19622_value_;for(delete v.JSC$19622_value_;h.length>0;)if(a=h.pop(),v=a[0],a=a[1],v.childNodes_[a].isEmpty())delete v.childNodes_[a];else break;return D};
_.V.clone=function(){return new Q4(this)};
_.V.getCount=function(){return oa3(this.getValues())};
_.V.isEmpty=function(){return this.JSC$19622_value_===void 0&&_.sV.isEmpty(this.childNodes_)};var di$=function(){if(!Nm3){var D=Nm3=new Q4,v;for(v in YZb)D.add(v,YZb[v])}},Nm3,Gx=function(D,v){this.types=D;
this.setters=v},YZb={a:new Gx([3,
0],[function(D,v){_.UN(D,21,v)},
function(D,v){_.wY(D,56,v)}]),
al:new Gx([3],[function(D,v){_.UN(D,74,v)}]),
b:new Gx([3,0],[function(D,v){_.UN(D,23,v)},
function(D,v){_.wY(D,38,v)}]),
ba:new Gx([0],[function(D,v){_.wY(D,85,v)}]),
bc:new Gx([0],[function(D,v){_.wY(D,87,v)}]),
br:new Gx([0],[function(D,v){_.wY(D,86,v)}]),
c:new Gx([3,0],[function(D,v){_.UN(D,2,v)},
function(D,v){_.wY(D,39,v)}]),
cc:new Gx([3],[function(D,v){_.UN(D,51,v)}]),
ci:new Gx([3],[function(D,v){_.UN(D,32,v)}]),
ckm:new Gx([3],[function(D,v){_.UN(D,104,v)}]),
cp:new Gx([0],[function(D,v){_.wY(D,92,v)}]),
cr:new Gx([3],[function(D,v){_.UN(D,108,v)}]),
cv:new Gx([0],[function(D,v){_.wY(D,94,v)}]),
d:new Gx([3],[function(D,v){_.UN(D,3,v)}]),
dc:new Gx([5],[function(D,v){_.Xx(D,99,v)}]),
df:new Gx([3],[function(D,v){_.UN(D,80,v)}]),
dv:new Gx([3],[function(D,v){_.UN(D,90,v)}]),
e:new Gx([0],[function(D,v){_.wY(D,15,v)}]),
em:new Gx([0],[function(D,v){_.wY(D,107,v)}]),
f:new Gx([4],[function(D,v){_.Xx(D,16,v)}]),
fg:new Gx([3],[function(D,v){_.UN(D,34,v)}]),
fh:new Gx([3],[function(D,v){_.UN(D,30,v)}]),
fm:new Gx([3],[function(D,v){_.UN(D,84,v)}]),
fo:new Gx([2],[function(D,v){_.Fk(D,79,_.Ty(v))}]),
ft:new Gx([3],[function(D,v){_.UN(D,50,v)}]),
fv:new Gx([3],[function(D,v){_.UN(D,31,v)}]),
g:new Gx([3],[function(D,v){_.UN(D,14,v)}]),
gce:new Gx([4],[function(D,v){_.Xx(D,112,v)}]),
gd:new Gx([3],[function(D,v){_.UN(D,83,v)}]),
gm:new Gx([3],[function(D,v){_.UN(D,105,v)}]),
h:new Gx([3,0],[function(D,v){_.UN(D,4,v)},
function(D,v){_.wY(D,13,v)}]),
i:new Gx([3],[function(D,v){_.UN(D,22,v)}]),
ic:new Gx([0],[function(D,v){_.wY(D,71,v)}]),
id:new Gx([3],[function(D,v){_.UN(D,70,v)}]),
il:new Gx([3],[function(D,v){_.UN(D,96,v)}]),
ip:new Gx([3],[function(D,v){_.UN(D,54,v)}]),
iv:new Gx([0],[function(D,v){_.Y_(D,75,v)}]),
j:new Gx([1],[function(D,v){v=v==null?v:nE2(v);_.Fk(D,29,v)}]),
k:new Gx([3,0],[function(D,v){_.UN(D,17,v)},
function(D,v){_.wY(D,42,v)}]),
l:new Gx([0],[function(D,v){_.wY(D,44,v)}]),
lf:new Gx([3],[function(D,v){_.UN(D,65,v)}]),
lo:new Gx([3],[function(D,v){_.UN(D,97,v)}]),
m:new Gx([0],[function(D,v){_.wY(D,63,v)}]),
md:new Gx([3],[function(D,v){_.UN(D,91,v)}]),
mm:new Gx([4],[function(D,v){_.Xx(D,81,v)}]),
mo:new Gx([3],[function(D,v){_.UN(D,73,v)}]),
mp:new Gx([0],[function(D,v){_.wY(D,115,v)}]),
mv:new Gx([3],[function(D,v){_.UN(D,66,v)}]),
n:new Gx([3],[function(D,v){D.setCenterCrop(v)}]),
nc:new Gx([3],[function(D,v){_.UN(D,55,v)}]),
nd:new Gx([3],[function(D,v){_.UN(D,53,v)}]),
ng:new Gx([3],[function(D,v){_.UN(D,95,v)}]),
ngm:new Gx([3],[function(D,v){_.UN(D,106,v)}]),
no:new Gx([3],[function(D,v){_.UN(D,37,v)}]),
ns:new Gx([3],[function(D,v){_.UN(D,40,v)}]),
nt0:new Gx([4],[function(D,v){_.Xx(D,36,v)}]),
ntm:new Gx([3],[function(D,v){_.UN(D,114,v)}]),
nu:new Gx([3],[function(D,v){_.UN(D,46,v)}]),
nw:new Gx([3],[function(D,v){_.UN(D,48,v)}]),
o:new Gx([1,3],[function(D,v){v=v==null?v:nE2(v);_.Fk(D,7,v)},
function(D,v){_.UN(D,27,v)}]),
p:new Gx([3,0],[function(D,v){_.UN(D,19,v)},
function(D,v){_.wY(D,43,v)}]),
pa:new Gx([3],[function(D,v){_.UN(D,61,v)}]),
pc:new Gx([0],[function(D,v){_.wY(D,88,v)}]),
pd:new Gx([3],[function(D,v){_.UN(D,60,v)}]),
pf:new Gx([3],[function(D,v){_.UN(D,67,v)}]),
pg:new Gx([3],[function(D,v){_.UN(D,72,v)}]),
pi:new Gx([2],[function(D,v){_.Fk(D,76,_.Ty(v))}]),
pp:new Gx([3],[function(D,v){_.UN(D,52,v)}]),
pt:new Gx([4],[function(D,v){_.Xx(D,111,v)}]),
q:new Gx([4],[function(D,v){_.Xx(D,28,v)}]),
r:new Gx([3,0],[function(D,v){_.UN(D,6,v)},
function(D,v){_.wY(D,26,v)}]),
ra:new Gx([3],[function(D,v){_.UN(D,103,v)}]),
rf:new Gx([3],[function(D,v){_.UN(D,100,v)}]),
rg:new Gx([3],[function(D,v){_.UN(D,59,v)}]),
rh:new Gx([3],[function(D,v){_.UN(D,49,v)}]),
rj:new Gx([3],[function(D,v){_.UN(D,57,v)}]),
ro:new Gx([2],[function(D,v){_.Fk(D,78,_.Ty(v))}]),
rp:new Gx([3],[function(D,v){_.UN(D,58,v)}]),
rw:new Gx([3],[function(D,v){_.UN(D,35,v)}]),
rwa:new Gx([3],[function(D,v){_.UN(D,64,v)}]),
rwu:new Gx([3],[function(D,v){_.UN(D,41,v)}]),
s:new Gx([3,0],[function(D,v){_.UN(D,33,v)},
function(D,v){D.setSize(v)}]),
sb:new Gx([0],[function(D,v){_.wY(D,110,v)}]),
sc:new Gx([0],[function(D,v){_.wY(D,89,v)}]),
sg:new Gx([3],[function(D,v){_.UN(D,82,v)}]),
sl:new Gx([0],[function(D,v){_.wY(D,109,v)}]),
sm:new Gx([3],[function(D,v){_.UN(D,93,v)}]),
t:new Gx([4],[function(D,v){D.setToken(v)}]),
tm:new Gx([3],[function(D,v){_.UN(D,113,v)}]),
u:new Gx([3],[function(D,v){_.UN(D,18,v)}]),
ut:new Gx([3],[function(D,v){_.UN(D,45,v)}]),
v:new Gx([0],[function(D,v){_.wY(D,62,v)}]),
vb:new Gx([0],[function(D,v){_.Y_(D,68,v)}]),
vf:new Gx([4],[function(D,v){_.Xx(D,102,v)}]),
vl:new Gx([0],[function(D,v){_.Y_(D,69,v)}]),
vm:new Gx([3],[function(D,v){_.UN(D,98,v)}]),
w:new Gx([0],[function(D,v){_.wY(D,12,v)}]),
x:new Gx([0],[function(D,v){_.wY(D,9,v)}]),
y:new Gx([0],[function(D,v){_.wY(D,10,v)}]),
ya:new Gx([2],[function(D,v){_.Fk(D,77,_.Ty(v))}]),
z:new Gx([0],[function(D,v){_.wY(D,11,v)}])};
di$.prototype.parse=function(D){var v=new kcX,h=new kcX;if(D=="")D=!0;else{D=D.split("-");for(var a=!0,Q=0;Q<D.length;Q++){var G=D[Q];if(G.length==0)a=!1;else{var x=G,f=!1;var C=x;var U=x.charAt(0);U!=U.toLowerCase()&&(f=!0,C=x.charAt(0).toLowerCase()+x.substring(1));var L=Nm3;for(U=1;U<=C.length;++U){var Z=L,E=C.substring(0,U);if(E.length==0?Z.isEmpty():!JTS(Z,E))break}C=U==1?null:(C=L.get(C.substring(0,U-1)))?{option:x.substring(0,U-1),value:x.substring(U-1),signed:f,attributes:C}:null;if(C){x=
[];f=[];U=!1;for(L=0;L<C.attributes.types.length;L++){Z=C.attributes.types[L];var I=C.value;E=Q;if(C.signed&&Z==1)for(var S=I.length;S<12&&E<D.length-1;)I+="-"+D[E+1],S=I.length,++E;else if(Z==2)for(;E<D.length-1&&D[E+1].match(/^[\d\.]/);)I+="-"+D[E+1],++E;S=C.attributes.setters[L];I=BmK(this,Z)(C.option,I,v,h,S);if(I===null){U=!0;Q=E;break}else x.push(Z),f.push(I)}if(!U)for(C=0;C<f.length;C++)L=x[C],I=f[C],cTC(this,L)(G,I);a=a&&U}else a=!1}}D=a}return new XNr(v,h,D)};
var V4=function(D,v,h,a,Q,G){Q(h,v);D=D.charAt(0);G=G(D==D.toUpperCase());Q(a,G)};
_.V=di$.prototype;_.V.parseAndSetIntOption_=function(D,v,h,a,Q){if(v=="")return 0;isFinite(v)&&(v=String(v));v=typeof v==="string"?/^\s*-?0x/i.test(v)?parseInt(v,16):parseInt(v,10):NaN;if(isNaN(v))return 1;V4(D,v,h,a,Q,Number);return null};
_.V.logIntParseError_=function(){};
_.V.parseAndSetFloatOption_=function(D,v,h,a,Q){if(v=="")return 0;var G=Number(v);v=G==0&&_.C7(v)?NaN:G;if(isNaN(v))return 1;V4(D,v,h,a,Q,Number);return null};
_.V.logFloatParseError_=function(){};
_.V.parseAndSetBoolOption_=function(D,v,h,a,Q){if(v!="")return 2;V4(D,!0,h,a,Q,Boolean);return null};
_.V.logBoolParseError_=function(){};
_.V.parseAndSetStringOption_=function(D,v,h,a,Q){if(v=="")return 0;V4(D,v,h,a,Q,function(G){return G?"1":""});
return null};
_.V.logStringParseError_=function(){};
_.V.parseAndSetUint64Base64Option_=function(D,v,h,a,Q){if(v=="")return 0;V4(D,v,h,a,Q,function(G){return G?1:0});
return null};
var BmK=function(D,v){switch(v){case 0:return(0,_.qp)(D.parseAndSetIntOption_,D);case 2:return(0,_.qp)(D.parseAndSetFloatOption_,D);case 3:return(0,_.qp)(D.parseAndSetBoolOption_,D);case 4:return(0,_.qp)(D.parseAndSetStringOption_,D);case 1:return(0,_.qp)(D.parseAndSetUint64Base64Option_,D);default:return function(){}}},cTC=function(D,v){switch(v){case 0:return(0,_.qp)(D.logIntParseError_,D);
case 2:return(0,_.qp)(D.logFloatParseError_,D);case 3:return(0,_.qp)(D.logBoolParseError_,D);case 4:case 1:return(0,_.qp)(D.logStringParseError_,D);default:return function(){}}},XNr=function(D,v,h){this.valueProto_=D;
this.signatureFlagProto_=v;this.JSC$19634_valid_=h};
XNr.prototype.isValid=function(){return this.JSC$19634_valid_};var XrU=function(D){this.JSC$19635_parser_=null;this.JSC$19635_components_=[];this.JSC$19635_parsedOptions_=null;ATs(this,D)},qZ3=function(D){D.JSC$19635_parser_==null&&(D.JSC$19635_parser_=new di$);
return D.JSC$19635_parser_},ATs=function(D,v){D.JSC$19635_parsedOptions_=v?typeof v==="string"?qZ3(D).parse(v):v:qZ3(D).parse("")},P3=function(D,v){return D==v?!1:!0};
_.V=XrU.prototype;_.V.JSC$19637_setCrop=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,_.q6(h,2),_.q6(v.signatureFlagProto_,2))&&_.UN(h,2,D);return this};
_.V.JSC$19637_setCircleCrop=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,EU(h,51),EU(v.signatureFlagProto_,51))&&_.UN(h,51,D);return this};
_.V.JSC$19637_setImageCrop=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,EU(h,32),EU(v.signatureFlagProto_,32))&&_.UN(h,32,D);return this};
_.V.JSC$19637_setHeight=function(D){var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,h.getHeight(),v.signatureFlagProto_.getHeight())&&_.wY(h,13,D);return this};
_.V.setCenterCrop=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,_.q6(h,20),_.q6(v.signatureFlagProto_,20))&&h.setCenterCrop(D);return this};
_.V.JSC$19637_setSmartCrop=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,_.q6(h,19),_.q6(v.signatureFlagProto_,19))&&_.UN(h,19,D);return this};
_.V.JSC$19637_setPad=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,EU(h,60),EU(v.signatureFlagProto_,60))&&_.UN(h,60,D);return this};
_.V.JSC$19637_setSmartCropUseFace=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,_.q6(h,67),_.q6(v.signatureFlagProto_,67))&&_.UN(h,67,D);return this};
_.V.JSC$19637_setSmartCropNoClip=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,_.q6(h,52),_.q6(v.signatureFlagProto_,52))&&_.UN(h,52,D);return this};
_.V.setSize=function(D){var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,h.getSize(),v.signatureFlagProto_.getSize())&&h.setSize(D);return this};
_.V.setToken=function(D){D=D||void 0;var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,h.getToken(),v.signatureFlagProto_.getToken())&&h.setToken(D);return this};
_.V.JSC$19637_setWidth=function(D){var v=this.JSC$19635_parsedOptions_,h=v.valueProto_;P3(D,h.getWidth(),v.signatureFlagProto_.getWidth())&&_.wY(h,12,D);return this};
_.V.clearOptions=function(){ATs(this,"");return this};
_.V.build=function(){this.JSC$19635_components_.length=0;var D=this.JSC$19635_parsedOptions_,v=D.valueProto_;D=D.signatureFlagProto_;x0(this,"s",v.getSize(),D.getSize());x0(this,"w",v.getWidth(),D.getWidth());MR(this,"c",_.q6(v,2),_.q6(D,2));MR(this,"d",_.q6(v,3),_.q6(D,3));x0(this,"h",v.getHeight(),D.getHeight());MR(this,"s",EU(v,33),EU(D,33));MR(this,"h",v.getHtml(),D.getHtml());MR(this,"p",_.q6(v,19),_.q6(D,19));MR(this,"pp",_.q6(v,52),_.q6(D,52));MR(this,"pf",_.q6(v,67),_.q6(D,67));MR(this,"n",
_.q6(v,20),_.q6(D,20));x0(this,"r",Iw(v,26),Iw(D,26));MR(this,"r",_.q6(v,6),_.q6(D,6));MR(this,"o",EU(v,27),EU(D,27));var h=_.A8(v,7,_.SI);fF(this,"o",h,_.A8(D,7,_.SI));h=_.A8(v,29,_.SI);fF(this,"j",h,_.A8(D,29,_.SI));x0(this,"x",Iw(v,9),Iw(D,9));x0(this,"y",Iw(v,10),Iw(D,10));x0(this,"z",Iw(v,11),Iw(D,11));MR(this,"g",_.q6(v,14),_.q6(D,14));x0(this,"e",Iw(v,15),Iw(D,15));fF(this,"f",_.p0(v,16),_.p0(D,16));MR(this,"k",EU(v,17),EU(D,17));MR(this,"u",EU(v,18),!0);MR(this,"ut",EU(v,45),!0);MR(this,"i",
EU(v,22),!0);MR(this,"a",EU(v,21),EU(D,21));MR(this,"b",_.q6(v,23),_.q6(D,23));x0(this,"b",Iw(v,38),Iw(D,38));x0(this,"c",Iw(v,39),Iw(D,39),16,8);fF(this,"q",_.p0(v,28),_.p0(D,28));MR(this,"fh",EU(v,30),EU(D,30));MR(this,"fv",EU(v,31),EU(D,31));MR(this,"fg",_.q6(v,34),_.q6(D,34));MR(this,"ci",EU(v,32),EU(D,32));fF(this,"t",v.getToken(),D.getToken());fF(this,"nt0",_.p0(v,36),_.p0(D,36));MR(this,"rw",_.q6(v,35),_.q6(D,35));MR(this,"rwu",_.q6(v,41),_.q6(D,41));MR(this,"rwa",_.q6(v,64),_.q6(D,64));MR(this,
"nw",_.q6(v,48),_.q6(D,48));MR(this,"rh",_.q6(v,49),_.q6(D,49));MR(this,"no",_.q6(v,37),_.q6(D,37));MR(this,"ns",EU(v,40),EU(D,40));x0(this,"k",Iw(v,42),Iw(D,42));x0(this,"p",Iw(v,43),Iw(D,43));x0(this,"l",Iw(v,44),Iw(D,44));x0(this,"v",Iw(v,62),Iw(D,62));MR(this,"nu",EU(v,46),EU(D,46));MR(this,"ft",EU(v,50),EU(D,50));MR(this,"cc",EU(v,51),EU(D,51));MR(this,"nd",EU(v,53),EU(D,53));MR(this,"ip",EU(v,54),EU(D,54));MR(this,"nc",EU(v,55),EU(D,55));x0(this,"a",Iw(v,56),Iw(D,56));MR(this,"rj",EU(v,57),
EU(D,57));MR(this,"rp",EU(v,58),EU(D,58));MR(this,"rg",EU(v,59),EU(D,59));MR(this,"pd",EU(v,60),EU(D,60));MR(this,"pa",EU(v,61),EU(D,61));x0(this,"m",Iw(v,63),Iw(D,63));x0(this,"vb",g$(v,68),g$(D,68));x0(this,"vl",g$(v,69),g$(D,69));MR(this,"lf",EU(v,65),EU(D,65));MR(this,"mv",EU(v,66),EU(D,66));MR(this,"id",EU(v,70),EU(D,70));x0(this,"ic",Iw(v,71),!0);MR(this,"pg",_.q6(v,72),_.q6(D,72));MR(this,"mo",EU(v,73),EU(D,73));MR(this,"al",EU(v,74),EU(D,74));x0(this,"iv",g$(v,75),g$(D,75));x0(this,"pi",kj(v,
76),kj(D,76));x0(this,"ya",kj(v,77),kj(D,77));x0(this,"ro",kj(v,78),kj(D,78));x0(this,"fo",kj(v,79),kj(D,79));MR(this,"df",EU(v,80),EU(D,80));fF(this,"mm",_.p0(v,81),_.p0(D,81));MR(this,"sg",EU(v,82),EU(D,82));MR(this,"gd",EU(v,83),EU(D,83));MR(this,"fm",EU(v,84),EU(D,84));x0(this,"ba",Iw(v,85),Iw(D,85));x0(this,"br",Iw(v,86),Iw(D,86));x0(this,"bc",v.getBackgroundColor(),D.getBackgroundColor(),16,8);x0(this,"pc",Iw(v,88),Iw(D,88),16,8);x0(this,"sc",Iw(v,89),Iw(D,89),16,8);MR(this,"dv",EU(v,90),EU(D,
90));MR(this,"md",EU(v,91),EU(D,91));x0(this,"cp",Iw(v,92),Iw(D,92));MR(this,"sm",EU(v,93),EU(D,93));x0(this,"cv",Iw(v,94),Iw(D,94));MR(this,"ng",EU(v,95),EU(D,95));MR(this,"il",EU(v,96),EU(D,96));MR(this,"lo",EU(v,97),EU(D,97));MR(this,"vm",EU(v,98),EU(D,98));fF(this,"dc",_.p0(v,99),_.p0(D,99));MR(this,"rf",EU(v,100),EU(D,100));fF(this,"vf",_.p0(v,102),_.p0(D,102));MR(this,"ra",_.q6(v,103),_.q6(D,103));MR(this,"ckm",EU(v,104),EU(D,104));MR(this,"gm",EU(v,105),EU(D,105));MR(this,"ngm",EU(v,106),EU(D,
106));x0(this,"em",Iw(v,107),Iw(D,107));MR(this,"cr",EU(v,108),EU(D,108));x0(this,"sl",v.getStoryboardLevel(),D.getStoryboardLevel());x0(this,"sb",Iw(v,110),Iw(D,110));fF(this,"pt",_.p0(v,111),_.p0(D,111));fF(this,"gce",_.p0(v,112),_.p0(D,112));MR(this,"tm",EU(v,113),EU(D,113));MR(this,"ntm",EU(v,114),EU(D,114));x0(this,"mp",Iw(v,115),Iw(D,115));return this.JSC$19635_components_.join("-")};
var x0=function(D,v,h,a,Q,G){if(h!=null){var x=Q==void 0||Q!=10&&Q!=16?10:Q;h=Number(h).toString(x);Q=new VqZ;Q.append(x==16?"0x":"");x=Q.append;G==void 0?G="":(G-=h.length,G=G<=0?"":(0,_.Z4s)("0",G));x.call(Q,G);Q.append(h);b6s(D,v,Q.toString(),!!Number(a))}},MR=function(D,v,h,a){h&&b6s(D,v,"",!!a)},fF=function(D,v,h,a){h&&b6s(D,v,String(h),!!Number(a))},b6s=function(D,v,h,a){a&&(v=v.charAt(0).toUpperCase()+v.substring(1));
D.JSC$19635_components_.push(v+h)};_.fa(Es,XrU);_.V=Es.prototype;_.V.JSC$19637_setCrop=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setCrop.call(this,D)};
_.V.JSC$19637_setHeight=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return Es.superClass_.JSC$19637_setHeight.call(this,D)};
_.V.JSC$19637_setImageCrop=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setImageCrop.call(this,D)};
_.V.JSC$19637_setCircleCrop=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setCircleCrop.call(this,D)};
_.V.setSize=function(D){_.Ro(D)&&(D=Math.max(D.width,D.height));D=D==null||D<0?void 0:D;D!=null&&(this.JSC$19637_setWidth(),this.JSC$19637_setHeight());return Es.superClass_.setSize.call(this,D)};
_.V.JSC$19637_setSmartCrop=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setSmartCrop.call(this,D)};
_.V.JSC$19637_setSmartCropNoClip=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setSmartCropNoClip.call(this,D)};
_.V.JSC$19637_setSmartCropUseFace=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setSmartCropUseFace.call(this,D)};
_.V.setCenterCrop=function(D){D&&CF(this);return Es.superClass_.setCenterCrop.call(this,D)};
_.V.JSC$19637_setPad=function(D){D&&CF(this);return Es.superClass_.JSC$19637_setPad.call(this,D)};
_.V.JSC$19637_setWidth=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return Es.superClass_.JSC$19637_setWidth.call(this,D)};
var d_Z=function(D){D.clearOptions();var v=D.JSC$19635_parsedOptions_,h=v.valueProto_;P3(!0,_.q6(h,3),_.q6(v.signatureFlagProto_,3))&&_.UN(h,3,!0);return D},CF=function(D){D.setCenterCrop();
D.JSC$19637_setCircleCrop();D.JSC$19637_setCrop();D.JSC$19637_setImageCrop();D.JSC$19637_setPad();D.JSC$19637_setSmartCrop();D.JSC$19637_setSmartCropNoClip();D.JSC$19637_setSmartCropUseFace()};
Es.prototype.build=function(){var D=this.JSC$19635_parsedOptions_.valueProto_;EU(D,18)||EU(D,45)?D.getSize()||this.setSize(0):(D=this.JSC$19635_parsedOptions_.valueProto_,D.getSize()||D.getWidth()||D.getHeight()||(this.setSize(),this.JSC$19637_setHeight(),this.JSC$19637_setWidth(),CF(this)));return Es.superClass_.build.call(this)};var j5I=/^[^\/]*\/\//,oO=function(D,v){v=v===void 0?!1:v;this.original_=D;this.originalPrefix_="";(D=this.original_.match(j5I))&&D[0]?(this.originalPrefix_=D[0],D=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):D="http://"+this.original_;this.uri_=_.tN(D,!0);this.isFreeformUrl_=v;this.JSC$19641_valid_=!0;this.obfuscated_=!1},s5$=function(D,v){D.JSC$19643_pathPrefix_=D.JSC$19643_pathPrefix_?D.JSC$19643_pathPrefix_+("/"+v):v},FM=function(D){if(D.JSC$19643_components_==
void 0){var v=D.uri_.getPath().substring(1);
D.JSC$19643_pathPrefix_=null;if(D.isFreeformUrl_){D.JSC$19643_components_=[];if((v.match(/=/g)||[]).length>1)return D.JSC$19641_valid_=!1,D.JSC$19643_components_;var h=v.indexOf("=");h!=-1?(D.JSC$19643_components_.push(v.substr(0,h)),D.JSC$19643_components_.push(v.substr(h+1))):D.JSC$19643_components_.push(v);return D.JSC$19643_components_}D.JSC$19643_components_=v.split("/");v=D.JSC$19643_components_.length;v>2&&D.JSC$19643_components_[0]=="u"&&(s5$(D,D.JSC$19643_components_[0]+"/"+D.JSC$19643_components_[1]),
D.JSC$19643_components_.shift(),D.JSC$19643_components_.shift(),v-=2);if(v==0||v==4||v>7)return D.JSC$19641_valid_=!1,D.JSC$19643_components_;if(v==2)s5$(D,D.JSC$19643_components_[0]);else if(D.JSC$19643_components_[0]=="image")s5$(D,D.JSC$19643_components_[0]);else if(v==7||v==3)return D.JSC$19641_valid_=!1,D.JSC$19643_components_;if(v<=3){D.obfuscated_=!0;v==3&&(s5$(D,D.JSC$19643_components_[1]),D.JSC$19643_components_.shift(),--v);--v;h=D.JSC$19643_components_[v];var a=h.indexOf("=");a!=-1&&(D.JSC$19643_components_[v]=
h.substr(0,a),D.JSC$19643_components_.push(h.substr(a+1)))}}return D.JSC$19643_components_};
oO.prototype.isValid=function(){FM(this);return this.JSC$19641_valid_};
oO.prototype.isObfuscated=function(){FM(this);return this.obfuscated_};
var m_r=function(D){FM(D);return D.isFreeformUrl_},zx=function(D){FM(D);
D.JSC$19643_pathPrefix_==void 0&&(D.JSC$19643_pathPrefix_=null);return D.JSC$19643_pathPrefix_},H63=function(D){switch(FM(D).length){case 7:return!0;
case 6:return zx(D)==null;case 5:return!1;case 3:return!0;case 2:return zx(D)==null;case 1:return!1;default:return!1}},Uv=function(D,v){if(m_r(D))a:{switch(v){case 7:v=0;
break;case 4:if(!H63(D)){D=null;break a}v=1;break;default:D=null;break a}D=FM(D)[v]}else if(D.isObfuscated())a:{var h=zx(D)!=null?1:0;switch(v){case 6:v=h;break;case 4:if(!H63(D)){D=null;break a}v=1+h;break;default:D=null;break a}D=FM(D)[v]}else a:{h=zx(D)!=null?1:0;switch(v){case 0:v=h;break;case 1:v=1+h;break;case 2:v=2+h;break;case 3:v=3+h;break;case 4:if(!H63(D)){D=null;break a}v=4+h;break;case 5:v=H63(D)?1:0;v=4+h+v;break;default:D=null;break a}D=FM(D)[v]}return D};
oO.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Uv(this,4));return this.options_};var bZ2=function(){};
bZ2.prototype.parse=function(D,v){return new AVd(D,v===void 0?!1:v)};
var AVd=function(D,v){oO.call(this,D,v===void 0?!1:v)};
_.J(AVd,oO);_.fa(Ix,Es);var qI2;Ix.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Ix.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var D=Ix.superClass_.build.call(this),v=[];zx(this.parsedImageUrl_)!=null&&v.push(zx(this.parsedImageUrl_));var h=m_r(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var a=this.parsedImageUrl_;a.obfuscatedData_==void 0&&(a.obfuscatedData_=Uv(a,6));v.push(a.obfuscatedData_+(D?"="+D:""))}else if(h){a=v.push;var Q=this.parsedImageUrl_;Q.freeformUrlPath_===void 0&&(Q.freeformUrlPath_=Uv(Q,
7));a.call(v,Q.freeformUrlPath_);D&&v.push(D)}else a=v.push,Q=this.parsedImageUrl_,Q.obfuscatedGaiaId_==void 0&&(Q.obfuscatedGaiaId_=Uv(Q,0)),a.call(v,Q.obfuscatedGaiaId_),a=v.push,Q=this.parsedImageUrl_,Q.photoId_==void 0&&(Q.photoId_=Uv(Q,1)),a.call(v,Q.photoId_),a=v.push,Q=this.parsedImageUrl_,Q.imageVersion_==void 0&&(Q.imageVersion_=Uv(Q,2)),a.call(v,Q.imageVersion_),a=v.push,Q=this.parsedImageUrl_,Q.signature_==void 0&&(Q.signature_=Uv(Q,3)),a.call(v,Q.signature_),D&&v.push(D),D=v.push,a=this.parsedImageUrl_,
a.filename_==void 0&&(a.filename_=Uv(a,5)),D.call(v,a.filename_);v=h?v.join("="):v.join("/");v=_.tN(this.protocolPrefix_+this.JSC$19649_domain_+"/"+v+(this.JSC$19649_query_?"?"+this.JSC$19649_query_:"")).toString();v.startsWith("%3a//")&&(v=v.replace("%3a//","://"));return v};var yTC=_.DK(["viewBox"]),wNC=_.DK(["width"]),ehI=_.DK(["height"]),nsd=_.DK(["fill"]),O6S=_.DK(["id"]),KG3=_.DK(["x"]),Tmr=_.DK(["y"]);jyd.prototype.getLength=function(){return this.parsedData.length};
jyd.prototype.write=function(D){for(var v=0,h=this.parsedData.length;v<h;v++)D.put(this.parsedData[v],8)};
var nU2=function(D,v){var h=new jyd(v);D.dataList.push(h);h=D.errorCorrectLevel;var a=1,Q=encodeURI(v).toString().replace(/%[0-9a-fA-F]{2}/g,"a");v=Q.length+(Q.length!=v?3:0);Q=0;for(var G=LF.length;Q<=G;Q++){var x=0;switch(h){case 1:x=LF[Q][0];break;case 0:x=LF[Q][1];break;case 3:x=LF[Q][2];break;case 2:x=LF[Q][3]}if(v<=x)break;else a++}if(a>LF.length)throw Error("Lk");D.typeNumber=a;D.dataCache=null};
syr.prototype.isDark=function(D,v){if(D<0||this.moduleCount<=D||v<0||this.moduleCount<=v)throw Error("Dk`"+D+"`"+v);return this.modules[D][v]};
for(var OZK=function(D,v,h){D.moduleCount=D.typeNumber*4+17;D.modules=Array(D.moduleCount);for(var a=0;a<D.moduleCount;a++){D.modules[a]=Array(D.moduleCount);for(var Q=0;Q<D.moduleCount;Q++)D.modules[a][Q]=null}RhZ(D,0,0);RhZ(D,D.moduleCount-7,0);RhZ(D,0,D.moduleCount-7);a=i6X[D.typeNumber-1];for(Q=0;Q<a.length;Q++)for(var G=0;G<a.length;G++){var x=a[Q],f=a[G];if(D.modules[x][f]==null)for(var C=-2;C<=2;C++)for(var U=-2;U<=2;U++)D.modules[x+C][f+U]=C==-2||C==2||U==-2||U==2||C==0&&U==0?!0:!1}for(a=
8;a<D.moduleCount-8;a++)D.modules[a][6]==null&&(D.modules[a][6]=a%2==0);for(a=8;a<D.moduleCount-8;a++)D.modules[6][a]==null&&(D.modules[6][a]=a%2==0);a=D.errorCorrectLevel<<3|h;for(Q=a<<10;Zt(Q)-Zt(1335)>=0;)Q^=1335<<Zt(Q)-Zt(1335);a=(a<<10|Q)^21522;for(Q=0;Q<15;Q++)G=!v&&(a>>Q&1)==1,Q<6?D.modules[Q][8]=G:Q<8?D.modules[Q+1][8]=G:D.modules[D.moduleCount-15+Q][8]=G;for(Q=0;Q<15;Q++)G=!v&&(a>>Q&1)==1,Q<8?D.modules[8][D.moduleCount-Q-1]=G:Q<9?D.modules[8][15-Q-1+1]=G:D.modules[8][15-Q-1]=G;D.modules[D.moduleCount-
8][8]=!v;if(D.typeNumber>=7){a=D.typeNumber;for(Q=a<<12;Zt(Q)-Zt(7973)>=0;)Q^=7973<<Zt(Q)-Zt(7973);a=a<<12|Q;for(Q=0;Q<18;Q++)G=!v&&(a>>Q&1)==1,D.modules[Math.floor(Q/3)][Q%3+D.moduleCount-8-3]=G;for(Q=0;Q<18;Q++)G=!v&&(a>>Q&1)==1,D.modules[Q%3+D.moduleCount-8-3][Math.floor(Q/3)]=G}if(D.dataCache==null){Q=D.typeNumber;G=D.dataList;v=D.errorCorrectLevel;a=WGr(Q,v);if(a==void 0)throw Error("Kk`"+Q+"`"+v);x=a.length/3;v=[];for(f=0;f<x;f++){C=a[f*3];U=a[f*3+1];for(var L=a[f*3+2],Z=0;Z<C;Z++)v.push(new mib(U,
L))}a=new HZX;for(x=0;x<G.length;x++)f=G[x],a.put(f.mode,4),a.put(f.getLength(),tyC(f.mode,Q)),f.write(a);for(x=Q=0;x<v.length;x++)Q+=v[x].dataCount;if(a.length>Q*8)throw Error("Ek`"+a.length+"`"+Q*8);for(a.length+4<=Q*8&&a.put(0,4);a.length%8!=0;)rTK(a,!1);for(;!(a.length>=Q*8);){a.put(236,8);if(a.length>=Q*8)break;a.put(17,8)}G=Q=U=0;x=Array(v.length);f=Array(v.length);for(C=0;C<v.length;C++){Z=v[C].dataCount;var E=v[C].totalCount-Z;Q=Math.max(Q,Z);G=Math.max(G,E);x[C]=Array(Z);for(L=0;L<x[C].length;L++)x[C][L]=
255&a.buffer[L+U];U+=Z;L=E;Z=new gg([1],0);for(E=0;E<L;E++)Z=Z.multiply(new gg([1,u2s(E)],0));L=Z;Z=(new gg(x[C],L.getLength()-1)).mod(L);f[C]=Array(L.getLength()-1);for(L=0;L<f[C].length;L++)E=L+Z.getLength()-f[C].length,f[C][L]=E>=0?Z.get(E):0}for(L=a=0;L<v.length;L++)a+=v[L].totalCount;a=Array(a);for(L=U=0;L<Q;L++)for(C=0;C<v.length;C++)L<x[C].length&&(a[U++]=x[C][L]);for(L=0;L<G;L++)for(C=0;C<v.length;C++)L<f[C].length&&(a[U++]=f[C][L]);D.dataCache=a}v=D.dataCache;a=-1;Q=D.moduleCount-1;G=7;x=
0;for(f=D.moduleCount-1;f>0;f-=2)for(f==6&&f--;;){for(C=0;C<2;C++)D.modules[Q][f-C]==null&&(U=!1,x<v.length&&(U=(v[x]>>>G&1)==1),D92(h,Q,f-C)&&(U=!U),D.modules[Q][f-C]=U,G--,G==-1&&(x++,G=7));Q+=a;if(Q<0||D.moduleCount<=Q){Q-=a;a=-a;break}}},RhZ=function(D,v,h){for(var a=-1;a<=7;a++)if(!(v+a<=-1||D.moduleCount<=v+a))for(var Q=-1;Q<=7;Q++)h+Q<=-1||D.moduleCount<=h+Q||(D.modules[v+a][h+Q]=0<=a&&a<=6&&(Q==0||Q==6)||0<=Q&&Q<=6&&(a==0||a==6)||2<=a&&a<=4&&2<=Q&&Q<=4?!0:!1)},KgS=function(D){for(var v=0,
h=0,a=0;a<8;a++){OZK(D,!0,a);
var Q=D;for(var G=Q.moduleCount,x=0,f=0;f<G;f++)for(var C=0;C<G;C++){for(var U=0,L=Q.isDark(f,C),Z=-1;Z<=1;Z++)if(!(f+Z<0||G<=f+Z))for(var E=-1;E<=1;E++)C+E<0||G<=C+E||(Z!=0||E!=0)&&L==Q.isDark(f+Z,C+E)&&U++;U>5&&(x+=3+U-5)}for(f=0;f<G-1;f++)for(C=0;C<G-1;C++)if(U=0,Q.isDark(f,C)&&U++,Q.isDark(f+1,C)&&U++,Q.isDark(f,C+1)&&U++,Q.isDark(f+1,C+1)&&U++,U==0||U==4)x+=3;for(f=0;f<G;f++)for(C=0;C<G-6;C++)Q.isDark(f,C)&&!Q.isDark(f,C+1)&&Q.isDark(f,C+2)&&Q.isDark(f,C+3)&&Q.isDark(f,C+4)&&!Q.isDark(f,C+5)&&
Q.isDark(f,C+6)&&(x+=40);for(C=0;C<G;C++)for(f=0;f<G-6;f++)Q.isDark(f,C)&&!Q.isDark(f+1,C)&&Q.isDark(f+2,C)&&Q.isDark(f+3,C)&&Q.isDark(f+4,C)&&!Q.isDark(f+5,C)&&Q.isDark(f+6,C)&&(x+=40);for(C=U=0;C<G;C++)for(f=0;f<G;f++)Q.isDark(f,C)&&U++;Q=x+=Math.abs(100*U/G/G-50)/5*10;if(a==0||v>Q)v=Q,h=a}return h},i6X=[[],
[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]],Zt=function(D){for(var v=0;D!=0;)v++,D>>>=1;return v},D92=function(D,v,h){switch(D){case 0:return(v+h)%2==0;
case 1:return v%2==0;case 2:return h%3==0;case 3:return(v+h)%3==0;case 4:return(Math.floor(v/2)+Math.floor(h/3))%2==0;case 5:return v*h%2+v*h%3==0;case 6:return(v*h%2+v*h%3)%2==0;case 7:return(v*h%3+(v+h)%2)%2==0;default:throw Error("Fk`"+D);}},tyC=function(D,v){if(1<=v&&v<10)switch(D){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Gk`"+D);}else if(v<27)switch(D){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Gk`"+D);}else if(v<41)switch(D){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Gk`"+D);}else throw Error("Hk`"+v);},Ev=function(D){if(D<1)throw Error("Ik`"+D);
return vFZ[D]},u2s=function(D){for(;D<0;)D+=255;
for(;D>=256;)D-=255;return IO[D]},IO=Array(256),vFZ=Array(256),hvr=0;hvr<8;hvr++)IO[hvr]=1<<hvr;
for(var gF=8;gF<256;gF++)IO[gF]=IO[gF-4]^IO[gF-5]^IO[gF-6]^IO[gF-8];for(var aVZ=0;aVZ<255;aVZ++)vFZ[IO[aVZ]]=aVZ;gg.prototype.get=function(D){return this.num[D]};
gg.prototype.getLength=function(){return this.num.length};
gg.prototype.multiply=function(D){for(var v=Array(this.getLength()+D.getLength()-1),h=0;h<this.getLength();h++)for(var a=0;a<D.getLength();a++)v[h+a]^=u2s(Ev(this.get(h))+Ev(D.get(a)));return new gg(v,0)};
gg.prototype.mod=function(D){if(this.getLength()-D.getLength()<0)return this;for(var v=Ev(this.get(0))-Ev(D.get(0)),h=Array(this.getLength()),a=0;a<this.getLength();a++)h[a]=this.get(a);for(a=0;a<D.getLength();a++)h[a]^=u2s(Ev(D.get(a))+v);return(new gg(h,0)).mod(D)};
var $9K=[[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]],WGr=function(D,v){switch(v){case 1:return $9K[(D-1)*4];case 0:return $9K[(D-1)*4+1];case 3:return $9K[(D-1)*4+2];case 2:return $9K[(D-1)*4+3]}};
HZX.prototype.get=function(D){return(this.buffer[Math.floor(D/8)]>>>7-D%8&1)==1};
HZX.prototype.put=function(D,v){for(var h=0;h<v;h++)rTK(this,(D>>>v-h-1&1)==1)};
var rTK=function(D,v){var h=Math.floor(D.length/8);D.buffer.length<=h&&D.buffer.push(0);v&&(D.buffer[h]|=128>>>D.length%8);D.length++},LF=[[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]],etC=function(){var D=function(v,h){this.JSC$19669__el=v;this.JSC$19669__htOption=h};
D.prototype.draw=function(v){function h(L,Z){L=document.createElementNS("http://www.w3.org/2000/svg",L);for(var E in Z)Z.hasOwnProperty(E)&&(E==="href"?_.IXb(L,Z[E]):_.Pp([_.CT(yTC),_.CT(wNC),_.CT(ehI),_.CT(nsd),_.CT(O6S),_.CT(KG3),_.CT(Tmr)],L,E,Z[E]));return L}
var a=this.JSC$19669__htOption,Q=this.JSC$19669__el,G=v.moduleCount;this.clear();var x=h("svg",{viewBox:"0 0 "+String(G)+" "+String(G),width:"100%",height:"100%",fill:a.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Q.appendChild(x);x.appendChild(h("rect",{fill:a.colorLight,width:"100%",height:"100%"}));x.appendChild(h("rect",{fill:a.colorDark,width:"1",height:"1",id:"template"}));for(var f=0;f<G;f++)for(var C=0;C<G;C++)if(v.isDark(f,C)){var U=h("use",{x:String(f),y:String(C),href:"#template"});
x.appendChild(U)}};
D.prototype.clear=function(){for(;this.JSC$19669__el.hasChildNodes();)this.JSC$19669__el.removeChild(this.JSC$19669__el.lastChild)};
return D}(),wrm=document.documentElement.tagName.toLowerCase()==="svg"?etC:typeof CanvasRenderingContext2D!="undefined"?function(){var D=function(v,h){this._bIsPainted=!1;
yV3();this.JSC$19669__htOption=h;this._elCanvas=document.createElement("canvas");this._elCanvas.width=h.width;this._elCanvas.height=h.height;v.appendChild(this._elCanvas);this.JSC$19669__el=v;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$19669__el.appendChild(this._elImage);this._bSupportDataURI=null};
D.prototype._onMakeImage=function(){var v=this._elCanvas.toDataURL("image/png");this._elImage.src=v;this._elImage.style.display="block";this._elCanvas.style.display="none"};
D.prototype._safeSetDataURI=function(v,h){var a=this;a._fFail=h;a._fSuccess=v;a._bSupportDataURI===null?(v=_.l9("IMG"),h=function(){a._bSupportDataURI=!1;a._fFail&&a._fFail.call(a)},v.onabort=h,v.onerror=h,v.onload=function(){a._bSupportDataURI=!0;
a._fSuccess&&a._fSuccess.call(a)},v.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):a._bSupportDataURI===!0&&a._fSuccess?a._fSuccess.call(a):a._bSupportDataURI===!1&&a._fFail&&a._fFail.call(a)};
D.prototype.draw=function(v){var h=this._oContext,a=this.JSC$19669__htOption,Q=v.moduleCount,G=a.width/Q,x=a.height/Q,f=Math.round(G),C=Math.round(x);this._elImage.style.display="none";this.clear();for(var U=0;U<Q;U++)for(var L=0;L<Q;L++){var Z=v.isDark(U,L),E=L*G,I=U*x;h.strokeStyle=Z?a.colorDark:a.colorLight;h.lineWidth=1;h.fillStyle=Z?a.colorDark:a.colorLight;h.fillRect(E,I,G,x);h.strokeRect(Math.floor(E)+.5,Math.floor(I)+.5,f,C);h.strokeRect(Math.ceil(E)-.5,Math.ceil(I)-.5,f,C)}this._bIsPainted=
!0};
D.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
D.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
D.prototype.round=function(v){return v?Math.floor(v*1E3)/1E3:v};
return D}():function(){var D=function(v,h){this.JSC$19669__el=v;
this.JSC$19669__htOption=h};
D.prototype.draw=function(v){for(var h=this.JSC$19669__htOption,a=this.JSC$19669__el,Q=v.moduleCount,G=Math.floor(h.width/Q),x=Math.floor(h.height/Q),f=['<table style="border:0;border-collapse:collapse;">'],C=0;C<Q;C++){f.push("<tr>");for(var U=0;U<Q;U++)f.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+G+"px;height:"+x+"px;background-color:"+(v.isDark(C,U)?h.colorDark:h.colorLight)+';"></td>');f.push("</tr>")}f.push("</table>");v=f.join("");v=_.PSp(_.M$m,v);_.VM(a,v);
v=a.childNodes[0];Q=(h.width-v.offsetWidth)/2;G=(h.height-v.offsetHeight)/2;Q>0&&G>0&&(v.style.margin=G+"px "+Q+"px")};
D.prototype.clear=function(){this.JSC$19669__el.textContent=""};
return D}();
Tx3.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19672__android||this.JSC$19672__android>=3)&&this._oDrawing.makeImage()};
Tx3.prototype.clear=function(){this._oDrawing.clear()};
_.$L.QRCode=Tx3;var QRZ={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var k0=function(){};
k0.prototype.stringify=function(D){return _.$L.JSON.stringify(D,void 0)};
k0.prototype.parse=function(D){return _.$L.JSON.parse(D,void 0)};var GL3=function(){_.XI.call(this,"z")};
_.fa(GL3,_.XI);var V5X=function(){_.XI.call(this,"y")};
_.fa(V5X,_.XI);var PN$=null,x9K=function(){return PN$=PN$||new _.jZ},M5I=function(D){_.XI.call(this,"serverreachability",D)};
_.fa(M5I,_.XI);var Si=function(D){var v=x9K();v.dispatchEvent(new M5I(v,D))},fVZ=function(D,v){_.XI.call(this,"statevent",D);
this.stat=v};
_.fa(fVZ,_.XI);var Ji=function(D){var v=x9K();v.dispatchEvent(new fVZ(v,D))},CNS=function(D,v,h,a){_.XI.call(this,"timingevent",D);
this.size=v;this.rtt=h;this.retries=a};
_.fa(CNS,_.XI);var oFs=function(D,v,h){var a=x9K();a.dispatchEvent(new CNS(a,D,v,h))},pF=function(D,v){if(typeof D!=="function")throw Error("Mk");
return _.$L.setTimeout(function(){D()},v)};var lo=function(){this.redactEnabled_=!0};
lo.prototype.disableRedact=function(){this.redactEnabled_=!1};
var FB$=function(D,v,h,a,Q,G){D.info(function(){if(D.redactEnabled_)if(G){var x="";for(var f=G.split("&"),C=0;C<f.length;C++){var U=f[C].split("=");if(U.length>1){var L=U[0];U=U[1];var Z=L.split("_");x=Z.length>=2&&Z[1]=="type"?x+(L+"="+U+"&"):x+(L+"=redacted&")}}}else x=null;else x=G;return"XMLHTTP REQ ("+a+") [attempt "+Q+"]: "+v+"\n"+h+"\n"+x})},zvC=function(D,v,h,a,Q,G,x){D.info(function(){return"XMLHTTP RESP ("+a+") [ attempt "+Q+"]: "+v+"\n"+h+"\n"+G+" "+x})},NR=function(D,v,h,a){D.info(function(){return"XMLHTTP TEXT ("+
v+"): "+U9m(D,h)+(a?" "+a:"")})},LB$=function(D,v){D.info(function(){return"TIMEOUT: "+v})};
lo.prototype.debug=function(){};
lo.prototype.info=function(){};
lo.prototype.warning=function(){};
var U9m=function(D,v){if(!D.redactEnabled_)return v;if(!v)return null;try{var h=JSON.parse(v);if(h)for(var a=0;a<h.length;a++)if(Array.isArray(h[a])){var Q=h[a];if(!(Q.length<2)){var G=Q[1];if(Array.isArray(G)&&!(G.length<1)){var x=G[0];if(x!="noop"&&x!="stop"&&x!="close")for(var f=1;f<G.length;f++)G[f]=""}}}return(0,_.nD)(h)}catch(C){return D.debug("Exception parsing expected JS array - probably was not JS"),v}};var Y0=function(D,v,h,a,Q){this.JSC$19694_channel_=D;this.JSC$19694_channelDebug_=v;this.sid_=h;this.JSC$19694_rid_=a;this.JSC$19694_retryId_=Q||1;this.JSC$19694_eventHandler_=new _.or(this);this.timeout_=45E3;this.JSC$19694_extraHeaders_=null;this.JSC$19694_successful_=!1;this.JSC$19694_postData_=this.JSC$19694_requestUri_=this.JSC$19694_baseUri_=this.JSC$19694_type_=this.JSC$19694_requestStartTime_=this.JSC$19694_watchDogTimeoutTime_=this.JSC$19694_watchDogTimerId_=null;this.JSC$19694_pendingMessages_=
[];this.JSC$19694_xmlHttp_=null;this.JSC$19694_xmlHttpChunkStart_=0;this.JSC$19694_lastError_=this.JSC$19694_verb_=null;this.JSC$19694_lastStatusCode_=-1;this.JSC$19694_cancelled_=!1;this.JSC$19694_readyStateChangeThrottleMs_=0;this.JSC$19694_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ZgZ},ZgZ=function(){this.JSC$19696_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},EFd=function(D,v){switch(D){case 0:return"Non-200 return code ("+v+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},IV2={},gFb={};
Y0.prototype.setTimeout=function(D){this.timeout_=D};
var SBC=function(D,v,h){D.JSC$19694_type_=1;D.JSC$19694_baseUri_=_.Sv(v.clone());D.JSC$19694_postData_=h;D.decodeChunks_=!0;kLU(D,null)},kLU=function(D,v){D.JSC$19694_requestStartTime_=Date.now();
Jxd(D);D.JSC$19694_requestUri_=D.JSC$19694_baseUri_.clone();ow(D.JSC$19694_requestUri_,"t",D.JSC$19694_retryId_);D.JSC$19694_xmlHttpChunkStart_=0;var h=D.JSC$19694_channel_.JSC$19713_supportsCrossDomainXhrs_;D.fetchResponseState_=new ZgZ;D.JSC$19694_xmlHttp_=pq3(D.JSC$19694_channel_,h?v:null,!D.JSC$19694_postData_);D.JSC$19694_readyStateChangeThrottleMs_>0&&(D.JSC$19694_readyStateChangeThrottle_=new _.tn((0,_.qp)(D.JSC$19698_xmlHttpHandler_,D,D.JSC$19694_xmlHttp_),D.JSC$19694_readyStateChangeThrottleMs_));
D.JSC$19694_eventHandler_.listen(D.JSC$19694_xmlHttp_,"readystatechange",D.JSC$19698_readyStateChangeHandler_);v=D.JSC$19694_extraHeaders_?_.sV.clone(D.JSC$19694_extraHeaders_):{};D.JSC$19694_postData_?(D.JSC$19694_verb_||(D.JSC$19694_verb_="POST"),v["Content-Type"]="application/x-www-form-urlencoded",D.JSC$19694_xmlHttp_.send(D.JSC$19694_requestUri_,D.JSC$19694_verb_,D.JSC$19694_postData_,v)):(D.JSC$19694_verb_="GET",D.JSC$19694_xmlHttp_.send(D.JSC$19694_requestUri_,D.JSC$19694_verb_,null,v));Si(1);
FB$(D.JSC$19694_channelDebug_,D.JSC$19694_verb_,D.JSC$19694_requestUri_,D.JSC$19694_rid_,D.JSC$19694_retryId_,D.JSC$19694_postData_)};
Y0.prototype.JSC$19698_readyStateChangeHandler_=function(D){D=D.target;var v=this.JSC$19694_readyStateChangeThrottle_;v&&_.KD(D)==3?(this.JSC$19694_channelDebug_.debug("Throttling readystatechange."),v.fire()):this.JSC$19698_xmlHttpHandler_(D)};
Y0.prototype.JSC$19698_xmlHttpHandler_=function(D){try{D==this.JSC$19694_xmlHttp_?lV2(this):this.JSC$19694_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(v){this.JSC$19694_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),N3U(this)}finally{}};
var lV2=function(D){var v=_.KD(D.JSC$19694_xmlHttp_),h=D.JSC$19694_xmlHttp_.JSC$9800_lastErrorCode_,a=D.JSC$19694_xmlHttp_.getStatus();if(!(v<3||v==3&&!N3U(D))){D.JSC$19694_cancelled_||v!=4||h==7||(h==8||a<=0?Si(3):Si(2));YBI(D);var Q=D.JSC$19694_xmlHttp_.getStatus();D.JSC$19694_lastStatusCode_=Q;h=B3S(D);N3U(D)||D.JSC$19694_channelDebug_.debug(function(){return"No response text for uri "+D.JSC$19694_requestUri_+" status "+Q});
D.JSC$19694_successful_=Q==200;zvC(D.JSC$19694_channelDebug_,D.JSC$19694_verb_,D.JSC$19694_requestUri_,D.JSC$19694_rid_,D.JSC$19694_retryId_,v,Q);if(D.JSC$19694_successful_){if(D.decodeInitialResponse_&&!D.initialResponseDecoded_)if(a=cxZ(D))NR(D.JSC$19694_channelDebug_,D.JSC$19694_rid_,a,"Initial handshake response via X-HTTP-Initial-Response"),D.initialResponseDecoded_=!0,XqC(D,a);else{D.JSC$19694_successful_=!1;D.JSC$19694_lastError_=3;Ji(12);D.JSC$19694_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
D.JSC$19694_rid_+")");B3(D);c3(D);return}D.decodeChunks_?Ax$(D,v,h):(NR(D.JSC$19694_channelDebug_,D.JSC$19694_rid_,h,null),XqC(D,h));v==4&&B3(D);D.JSC$19694_successful_&&!D.JSC$19694_cancelled_&&(v==4?qBr(D.JSC$19694_channel_,D):(D.JSC$19694_successful_=!1,Jxd(D)))}else EYb(D.JSC$19694_xmlHttp_),Q==400&&h.indexOf("Unknown SID")>0?(D.JSC$19694_lastError_=3,Ji(12),D.JSC$19694_channelDebug_.warning("XMLHTTP Unknown SID ("+D.JSC$19694_rid_+")")):(D.JSC$19694_lastError_=0,Ji(13),D.JSC$19694_channelDebug_.warning("XMLHTTP Bad status "+
Q+" ("+D.JSC$19694_rid_+")")),B3(D),c3(D)}},cxZ=function(D){return D.JSC$19694_xmlHttp_&&(D=MW(D.JSC$19694_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.C7(D)?D:null},B3S=function(D){if(!bgI(D))return D.JSC$19694_xmlHttp_.getResponseText();
var v=D.JSC$19694_xmlHttp_.getResponse();if(v==="")return"";var h="",a=v.length,Q=_.KD(D.JSC$19694_xmlHttp_)==4;if(!D.fetchResponseState_.JSC$19696_textDecoder){if(typeof TextDecoder==="undefined")return B3(D),c3(D),"";D.fetchResponseState_.JSC$19696_textDecoder=new _.$L.TextDecoder}for(var G=0;G<a;G++)D.fetchResponseState_.responseArrivedForFetch=!0,h+=D.fetchResponseState_.JSC$19696_textDecoder.decode(v[G],{stream:!(Q&&G==a-1)});v.length=0;D.fetchResponseState_.responseBuffer+=h;D.JSC$19694_xmlHttpChunkStart_=
0;return D.fetchResponseState_.responseBuffer},N3U=function(D){return D.JSC$19694_xmlHttp_?D.fetchResponseState_.responseArrivedForFetch?!0:!(!D.JSC$19694_xmlHttp_.getResponseText()&&!D.JSC$19694_xmlHttp_.getResponse()):!1},bgI=function(D){return D.JSC$19694_xmlHttp_?D.JSC$19694_verb_=="GET"&&D.JSC$19694_type_!=2&&D.JSC$19694_channel_.usesFetchStreams_:!1},Ax$=function(D,v,h){for(var a=!0,Q;!D.JSC$19694_cancelled_&&D.JSC$19694_xmlHttpChunkStart_<h.length;)if(Q=d93(D,h),Q==gFb){v==4&&(D.JSC$19694_lastError_=
4,Ji(14),a=!1);
NR(D.JSC$19694_channelDebug_,D.JSC$19694_rid_,null,"[Incomplete Response]");break}else if(Q==IV2){D.JSC$19694_lastError_=4;Ji(15);NR(D.JSC$19694_channelDebug_,D.JSC$19694_rid_,h,"[Invalid Chunk]");a=!1;break}else NR(D.JSC$19694_channelDebug_,D.JSC$19694_rid_,Q,null),XqC(D,Q);bgI(D)&&D.JSC$19694_xmlHttpChunkStart_!=0&&(D.fetchResponseState_.responseBuffer=D.fetchResponseState_.responseBuffer.slice(D.JSC$19694_xmlHttpChunkStart_),D.JSC$19694_xmlHttpChunkStart_=0);v!=4||h.length!=0||D.fetchResponseState_.responseArrivedForFetch||
(D.JSC$19694_lastError_=1,Ji(16),a=!1);D.JSC$19694_successful_=D.JSC$19694_successful_&&a;a?h.length>0&&!D.firstByteReceived_&&(D.firstByteReceived_=!0,v=D.JSC$19694_channel_,v.JSC$19713_backChannelRequest_==D&&v.detectBufferingProxy_&&!v.bpDetectionDone_&&(v.JSC$19713_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+h.length),jRs(v),v.bpDetectionDone_=!0,Ji(11))):(NR(D.JSC$19694_channelDebug_,D.JSC$19694_rid_,h,"[Invalid Chunked Response]"),B3(D),c3(D))},d93=function(D,v){var h=
D.JSC$19694_xmlHttpChunkStart_,a=v.indexOf("\n",h);
if(a==-1)return gFb;h=Number(v.substring(h,a));if(isNaN(h))return IV2;a+=1;if(a+h>v.length)return gFb;v=v.slice(a,a+h);D.JSC$19694_xmlHttpChunkStart_=a+h;return v};
Y0.prototype.cancel=function(){this.JSC$19694_cancelled_=!0;B3(this)};
var Jxd=function(D){D.JSC$19694_watchDogTimeoutTime_=Date.now()+D.timeout_;sR$(D,D.timeout_)},sR$=function(D,v){if(D.JSC$19694_watchDogTimerId_!=null)throw Error("Nk");
D.JSC$19694_watchDogTimerId_=pF((0,_.qp)(D.JSC$19698_onWatchDogTimeout_,D),v)},YBI=function(D){D.JSC$19694_watchDogTimerId_&&(_.$L.clearTimeout(D.JSC$19694_watchDogTimerId_),D.JSC$19694_watchDogTimerId_=null)};
Y0.prototype.JSC$19698_onWatchDogTimeout_=function(){this.JSC$19694_watchDogTimerId_=null;var D=Date.now();D-this.JSC$19694_watchDogTimeoutTime_>=0?(LB$(this.JSC$19694_channelDebug_,this.JSC$19694_requestUri_),this.JSC$19694_type_!=2&&(Si(3),Ji(17)),B3(this),this.JSC$19694_lastError_=2,c3(this)):(this.JSC$19694_channelDebug_.warning("WatchDog timer called too early"),sR$(this,this.JSC$19694_watchDogTimeoutTime_-D))};
var c3=function(D){D.JSC$19694_channel_.state_==0||D.JSC$19694_cancelled_||qBr(D.JSC$19694_channel_,D)},B3=function(D){YBI(D);
_.V5(D.JSC$19694_readyStateChangeThrottle_);D.JSC$19694_readyStateChangeThrottle_=null;D.JSC$19694_eventHandler_.removeAll();if(D.JSC$19694_xmlHttp_){var v=D.JSC$19694_xmlHttp_;D.JSC$19694_xmlHttp_=null;v.abort();v.dispose()}};
Y0.prototype.getLastError=function(){return this.JSC$19694_lastError_};
var XqC=function(D,v){try{var h=D.JSC$19694_channel_;if(h.state_!=0&&(h.JSC$19713_backChannelRequest_==D||m9S(h.forwardChannelRequestPool_,D)))if(!D.initialResponseDecoded_&&m9S(h.forwardChannelRequestPool_,D)&&h.state_==3){try{var a=h.wireCodec_.JSC$19708_parser_.parse(v)}catch(f){a=null}if(Array.isArray(a)&&a.length==3){v=a;if(v[0]==0)a:if(h.JSC$19713_channelDebug_.debug("Server claims our backchannel is missing."),h.JSC$19713_backChannelTimerId_)h.JSC$19713_channelDebug_.debug("But we are currently starting the request.");
else{if(h.JSC$19713_backChannelRequest_)if(h.JSC$19713_backChannelRequest_.JSC$19694_requestStartTime_+3E3<D.JSC$19694_requestStartTime_)Hgs(h),yxX(h);else break a;else h.JSC$19713_channelDebug_.warning("We do not have a BackChannel established");wqS(h);Ji(18)}else{h.JSC$19713_lastPostResponseArrayId_=v[1];var Q=h.JSC$19713_lastPostResponseArrayId_-h.JSC$19713_lastArrayId_;if(0<Q){var G=v[2];h.JSC$19713_channelDebug_.debug(G+" bytes (in "+Q+" arrays) are outstanding on the BackChannel");G<37500&&
h.enableStreaming_&&h.JSC$19713_backChannelRetryCount_==0&&!h.JSC$19713_deadBackChannelTimerId_&&(h.JSC$19713_deadBackChannelTimerId_=pF((0,_.qp)(h.JSC$19715_onBackChannelDead_,h),6E3))}}if(ev3(h.forwardChannelRequestPool_)<=1&&h.forwardChannelFlushedCallback_){try{h.forwardChannelFlushedCallback_()}catch(f){}h.forwardChannelFlushedCallback_=void 0}}else h.JSC$19713_channelDebug_.debug("Bad POST response data returned"),XM(h,11)}else if((D.initialResponseDecoded_||h.JSC$19713_backChannelRequest_==
D)&&Hgs(h),!_.C7(v)){var x=h.wireCodec_.JSC$19708_parser_.parse(v);h.onInput_(x,D)}Si(4)}catch(f){}};var nFm=function(D,v){this.JSC$19701_mapId=D;this.map=v;this.context=null};var OgC=function(D){this.maxPoolSizeConfigured_=D||10;_.$L.PerformanceNavigationTiming?(D=_.$L.performance.getEntriesByType("navigation"),D=D.length>0&&(D[0].nextHopProtocol=="hq"||D[0].nextHopProtocol=="h2")):D=!!(_.$L.chrome&&_.$L.chrome.loadTimes&&_.$L.chrome.loadTimes()&&_.$L.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19704_maxSize_=D?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19704_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19704_request_=null;this.JSC$19704_pendingMessages_=
[]},KBZ=function(D){return D.JSC$19704_request_?!0:D.requestPool_?D.requestPool_.size>=D.JSC$19704_maxSize_:!1},ev3=function(D){return D.JSC$19704_request_?1:D.requestPool_?D.requestPool_.size:0},m9S=function(D,v){return D.JSC$19704_request_?D.JSC$19704_request_==v:D.requestPool_?D.requestPool_.has(v):!1},T3X=function(D,v){D.requestPool_?D.requestPool_.add(v):D.JSC$19704_request_=v},Rvs=function(D,v){D.JSC$19704_request_&&D.JSC$19704_request_==v?D.JSC$19704_request_=null:D.requestPool_&&D.requestPool_.has(v)&&
D.requestPool_.delete(v)};
OgC.prototype.cancel=function(){this.JSC$19704_pendingMessages_=ig3(this);if(this.JSC$19704_request_)this.JSC$19704_request_.cancel(),this.JSC$19704_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var D=_.P(this.requestPool_.values()),v=D.next();!v.done;v=D.next())v.value.cancel();this.requestPool_.clear()}};
var ig3=function(D){if(D.JSC$19704_request_!=null)return D.JSC$19704_pendingMessages_.concat(D.JSC$19704_request_.JSC$19694_pendingMessages_);if(D.requestPool_!=null&&D.requestPool_.size!==0){var v=D.JSC$19704_pendingMessages_;D=_.P(D.requestPool_.values());for(var h=D.next();!h.done;h=D.next())v=v.concat(h.value.JSC$19694_pendingMessages_);return v}return _.n7(D.JSC$19704_pendingMessages_)},WBK=function(D,v){D.JSC$19704_pendingMessages_=D.JSC$19704_pendingMessages_.concat(v)};var t5I=function(D,v){var h=new lo;h.debug("TestLoadImage: loading "+D);if(_.$L.Image){var a=new Image;a.onload=_.NF(Ai,h,"TestLoadImage: loaded",!0,v,a);a.onerror=_.NF(Ai,h,"TestLoadImage: error",!1,v,a);a.onabort=_.NF(Ai,h,"TestLoadImage: abort",!1,v,a);a.ontimeout=_.NF(Ai,h,"TestLoadImage: timeout",!1,v,a);_.$L.setTimeout(function(){if(a.ontimeout)a.ontimeout()},1E4);
a.src=D}else v(!1)},rxC=function(D,v){var h=new lo,a=new AbortController,Q=setTimeout(function(){a.abort();
Ai(h,"TestPingServer: timeout",!1,v)},1E4);
fetch(D,{signal:a.signal}).then(function(G){clearTimeout(Q);G.ok?Ai(h,"TestPingServer: ok",!0,v):Ai(h,"TestPingServer: server error",!1,v)}).catch(function(){clearTimeout(Q);
Ai(h,"TestPingServer: error",!1,v)})},Ai=function(D,v,h,a,Q){try{D.debug(v),Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),a(h)}catch(G){}};var um3=function(){this.JSC$19708_parser_=new k0};var qR=function(D,v,h){return h&&h.internalChannelParams?h.internalChannelParams[D]||v:v},bo=function(D){this.serverVersion_=0;
this.JSC$19713_outgoingMaps_=[];this.JSC$19713_channelDebug_=new lo;this.JSC$19713_hostPrefix_=this.JSC$19713_backChannelUri_=this.JSC$19713_forwardChannelUri_=this.JSC$19713_path_=this.JSC$19713_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19713_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19713_extraHeaders_=null;this.JSC$19713_nextMapId_=this.JSC$19713_nextRid_=0;this.JSC$19713_failFast_=qR("failFast",!1,D);this.enableStreaming_=this.JSC$19713_deadBackChannelTimerId_=
this.JSC$19713_backChannelTimerId_=this.JSC$19713_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19713_lastPostResponseArrayId_=this.JSC$19713_lastArrayId_=-1;this.JSC$19713_backChannelAttemptId_=this.JSC$19713_backChannelRetryCount_=this.JSC$19713_forwardChannelRetryCount_=0;this.JSC$19713_baseRetryDelayMs_=qR("baseRetryDelayMs",5E3,D);this.JSC$19713_retryDelaySeedMs_=qR("retryDelaySeedMs",1E4,D);this.JSC$19713_forwardChannelMaxRetries_=
qR("forwardChannelMaxRetries",2,D);this.JSC$19713_forwardChannelRequestTimeoutMs_=qR("forwardChannelRequestTimeoutMs",2E4,D);this.JSC$19713_xmlHttpFactory_=D&&D.xmlHttpFactory||void 0;this.networkTestUrl_=D&&D.networkTestUrl||void 0;this.usesFetchStreams_=D&&D.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19713_supportsCrossDomainXhrs_=D&&D.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new OgC(D&&D.concurrentRequestLimit);this.wireCodec_=new um3;this.fastHandshake_=
D&&D.fastHandshake||!1;this.encodeInitMessageHeaders_=D&&D.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19713_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=D&&D.blockingHandshake||!1;D&&D.disableRedact&&this.JSC$19713_channelDebug_.disableRedact();D&&D.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
D&&D.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;D&&D.longPollingTimeout&&D.longPollingTimeout>0&&(this.longPollingTimeout_=D.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
bo.prototype.JSC$19715_channelVersion_=8;bo.prototype.state_=1;
bo.prototype.connect=function(D,v,h,a){this.JSC$19713_channelDebug_.debug("connect()");Ji(0);this.JSC$19713_path_=D;this.JSC$19713_extraParams_=v||{};h&&a!==void 0&&(this.JSC$19713_extraParams_.OSID=h,this.JSC$19713_extraParams_.OAID=a);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19713_channelDebug_.debug("connectChannel_()");D=DBI(this,null,this.JSC$19713_path_);this.JSC$19713_channelDebug_.debug("GetForwardChannelUri: "+D);this.JSC$19713_forwardChannelUri_=D;vMm(this)};
bo.prototype.disconnect=function(){this.JSC$19713_channelDebug_.debug("disconnect()");h_S(this);if(this.state_==3){var D=this.JSC$19713_nextRid_++,v=this.JSC$19713_forwardChannelUri_.clone();_.Dq(v,"SID",this.sid_);_.Dq(v,"RID",D);_.Dq(v,"TYPE","terminate");dF(this,v);D=new Y0(this,this.JSC$19713_channelDebug_,this.sid_,D);D.JSC$19694_type_=2;D.JSC$19694_baseUri_=_.Sv(v.clone());v=!1;if(_.$L.navigator&&_.$L.navigator.sendBeacon)try{v=_.$L.navigator.sendBeacon(D.JSC$19694_baseUri_.toString(),"")}catch(h){}!v&&
_.$L.Image&&((new Image).src=D.JSC$19694_baseUri_,v=!0);v||(D.JSC$19694_xmlHttp_=pq3(D.JSC$19694_channel_,null),D.JSC$19694_xmlHttp_.send(D.JSC$19694_baseUri_));D.JSC$19694_requestStartTime_=Date.now();Jxd(D)}aQm(this)};
var yxX=function(D){D.JSC$19713_backChannelRequest_&&(jRs(D),D.JSC$19713_backChannelRequest_.cancel(),D.JSC$19713_backChannelRequest_=null)},h_S=function(D){yxX(D);
D.JSC$19713_backChannelTimerId_&&(_.$L.clearTimeout(D.JSC$19713_backChannelTimerId_),D.JSC$19713_backChannelTimerId_=null);Hgs(D);D.forwardChannelRequestPool_.cancel();D.JSC$19713_forwardChannelTimerId_&&(typeof D.JSC$19713_forwardChannelTimerId_==="number"&&_.$L.clearTimeout(D.JSC$19713_forwardChannelTimerId_),D.JSC$19713_forwardChannelTimerId_=null)};
bo.prototype.getState=function(){return this.state_};
var vMm=function(D){KBZ(D.forwardChannelRequestPool_)||D.JSC$19713_forwardChannelTimerId_||(D.JSC$19713_forwardChannelTimerId_=!0,_.mF(D.JSC$19715_onStartForwardChannelTimer_,D),D.JSC$19713_forwardChannelRetryCount_=0)},Qdm=function(D,v){if(ev3(D.forwardChannelRequestPool_)>=D.forwardChannelRequestPool_.JSC$19704_maxSize_-(D.JSC$19713_forwardChannelTimerId_?1:0))return!1;
if(D.JSC$19713_forwardChannelTimerId_)return D.JSC$19713_channelDebug_.debug("Use the retry request that is already scheduled."),D.JSC$19713_outgoingMaps_=v.JSC$19694_pendingMessages_.concat(D.JSC$19713_outgoingMaps_),!0;if(D.state_==1||D.state_==2||D.JSC$19713_forwardChannelRetryCount_>=(D.JSC$19713_failFast_?0:D.JSC$19713_forwardChannelMaxRetries_))return!1;D.JSC$19713_channelDebug_.debug("Going to retry POST");D.JSC$19713_forwardChannelTimerId_=pF((0,_.qp)(D.JSC$19715_onStartForwardChannelTimer_,
D,v),$Br(D,D.JSC$19713_forwardChannelRetryCount_));D.JSC$19713_forwardChannelRetryCount_++;return!0};
bo.prototype.JSC$19715_onStartForwardChannelTimer_=function(D){if(this.JSC$19713_forwardChannelTimerId_)if(this.JSC$19713_forwardChannelTimerId_=null,this.JSC$19713_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!D){this.JSC$19713_channelDebug_.debug("open_()");this.JSC$19713_nextRid_=Math.floor(Math.random()*1E5);D=this.JSC$19713_nextRid_++;var v=new Y0(this,this.JSC$19713_channelDebug_,"",D),h=this.JSC$19713_extraHeaders_;this.initHeaders_&&(h?(h=_.sV.clone(h),_.sV.extend(h,this.initHeaders_)):
h=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(v.JSC$19694_extraHeaders_=h,h=null);var a;if(this.fastHandshake_)a:{for(var Q=a=0;Q<this.JSC$19713_outgoingMaps_.length;Q++){b:{var G=this.JSC$19713_outgoingMaps_[Q];if("__data__"in G.map&&(G=G.map.__data__,typeof G==="string")){G=G.length;break b}G=void 0}if(G===void 0)break;a+=G;if(a>4096){a=Q;break a}if(a===4096||Q===this.JSC$19713_outgoingMaps_.length-1){a=Q+1;break a}}a=1E3}else a=1E3;a=GX$(this,v,a);
Q=this.JSC$19713_forwardChannelUri_.clone();_.Dq(Q,"RID",D);_.Dq(Q,"CVER",22);this.httpSessionIdParam_&&_.Dq(Q,"X-HTTP-Session-Id",this.httpSessionIdParam_);dF(this,Q);h&&(this.encodeInitMessageHeaders_?a="headers="+_.t$(SPZ(h))+"&"+a:this.httpHeadersOverwriteParam_&&JJb(Q,this.httpHeadersOverwriteParam_,h));T3X(this.forwardChannelRequestPool_,v);this.blockingHandshake_&&_.Dq(Q,"TYPE","init");this.fastHandshake_?(_.Dq(Q,"$req",a),_.Dq(Q,"SID","null"),v.decodeInitialResponse_=!0,SBC(v,Q,null)):SBC(v,
Q,a);this.state_=2}}else this.state_==3&&(D?V8m(this,D):this.JSC$19713_outgoingMaps_.length==0?this.JSC$19713_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):KBZ(this.forwardChannelRequestPool_)||(V8m(this),this.JSC$19713_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var V8m=function(D,v){var h;v?h=v.JSC$19694_rid_:h=D.JSC$19713_nextRid_++;var a=D.JSC$19713_forwardChannelUri_.clone();_.Dq(a,"SID",D.sid_);_.Dq(a,"RID",h);_.Dq(a,"AID",D.JSC$19713_lastArrayId_);dF(D,a);D.httpHeadersOverwriteParam_&&D.JSC$19713_extraHeaders_&&JJb(a,D.httpHeadersOverwriteParam_,D.JSC$19713_extraHeaders_);h=new Y0(D,D.JSC$19713_channelDebug_,D.sid_,h,D.JSC$19713_forwardChannelRetryCount_+1);D.httpHeadersOverwriteParam_===null&&(h.JSC$19694_extraHeaders_=D.JSC$19713_extraHeaders_);v&&
(D.JSC$19713_outgoingMaps_=v.JSC$19694_pendingMessages_.concat(D.JSC$19713_outgoingMaps_));v=GX$(D,h,1E3);h.setTimeout(Math.round(D.JSC$19713_forwardChannelRequestTimeoutMs_*.5)+Math.round(D.JSC$19713_forwardChannelRequestTimeoutMs_*.5*Math.random()));T3X(D.forwardChannelRequestPool_,h);SBC(h,a,v)},dF=function(D,v){D.JSC$19713_extraParams_&&_.sV.forEach(D.JSC$19713_extraParams_,function(h,a){_.Dq(v,a,h)});
D.handler_&&_.sV.forEach({},function(h,a){_.Dq(v,a,h)})},GX$=function(D,v,h){h=Math.min(D.JSC$19713_outgoingMaps_.length,h);
var a=D.handler_?(0,_.qp)(D.handler_.JSC$19719_badMapError,D.handler_,D):null;a:{for(var Q=D.JSC$19713_outgoingMaps_,G=-1;;){var x=["count="+h];G==-1?h>0?(G=Q[0].JSC$19701_mapId,x.push("ofs="+G)):G=0:x.push("ofs="+G);for(var f=!0,C=0;C<h;C++){var U=Q[C].JSC$19701_mapId,L=Q[C].map;U-=G;if(U<0)G=Math.max(0,Q[C].JSC$19701_mapId-100),f=!1;else try{U="req"+U+"_"||"";try{var Z=L instanceof Map?L:Object.entries(L);for(var E=_.P(Z),I=E.next();!I.done;I=E.next()){var S=_.P(I.value),B=S.next().value,A=S.next().value,
d=A;_.Ro(A)&&(d=(0,_.nD)(A));x.push(U+B+"="+encodeURIComponent(d))}}catch(b){throw x.push(U+"type="+encodeURIComponent("_badmap")),b;}}catch(b){a&&a(L)}}if(f){Z=x.join("&");break a}}Z=void 0}D=D.JSC$19713_outgoingMaps_.splice(0,h);v.JSC$19694_pendingMessages_=D;return Z},Pb$=function(D){D.JSC$19713_backChannelRequest_||D.JSC$19713_backChannelTimerId_||(D.JSC$19713_backChannelAttemptId_=1,_.mF(D.JSC$19715_onStartBackChannelTimer_,D),D.JSC$19713_backChannelRetryCount_=0)},wqS=function(D){if(D.JSC$19713_backChannelRequest_||
D.JSC$19713_backChannelTimerId_||D.JSC$19713_backChannelRetryCount_>=3)return!1;
D.JSC$19713_channelDebug_.debug("Going to retry GET");D.JSC$19713_backChannelAttemptId_++;D.JSC$19713_backChannelTimerId_=pF((0,_.qp)(D.JSC$19715_onStartBackChannelTimer_,D),$Br(D,D.JSC$19713_backChannelRetryCount_));D.JSC$19713_backChannelRetryCount_++;return!0};
bo.prototype.JSC$19715_onStartBackChannelTimer_=function(){this.JSC$19713_backChannelTimerId_=null;xBX(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19713_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19713_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19713_backChannelRequest_+" "+this.handshakeRttMs_);else{var D=4*this.handshakeRttMs_;this.JSC$19713_channelDebug_.info("BP detection timer enabled: "+D);this.bpDetectionTimerId_=pF((0,_.qp)(this.onBpDetectionTimer_,
this),D)}};
bo.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19713_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19713_backChannelRequest_.JSC$19694_xmlHttp_!=null){var D=this.JSC$19713_backChannelRequest_.JSC$19694_xmlHttp_.getResponseText();D&&this.JSC$19713_channelDebug_.warning("Timer should have been cancelled : "+D)}this.JSC$19713_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ji(10);yxX(this);xBX(this)}else this.JSC$19713_channelDebug_.warning("Invalid operation.")};
var jRs=function(D){D.bpDetectionTimerId_!=null&&(D.JSC$19713_channelDebug_.debug("Cancel the BP detection timer."),_.$L.clearTimeout(D.bpDetectionTimerId_),D.bpDetectionTimerId_=null)},xBX=function(D){D.JSC$19713_channelDebug_.debug("Creating new HttpRequest");
D.JSC$19713_backChannelRequest_=new Y0(D,D.JSC$19713_channelDebug_,D.sid_,"rpc",D.JSC$19713_backChannelAttemptId_);D.httpHeadersOverwriteParam_===null&&(D.JSC$19713_backChannelRequest_.JSC$19694_extraHeaders_=D.JSC$19713_extraHeaders_);D.JSC$19713_backChannelRequest_.JSC$19694_readyStateChangeThrottleMs_=0;var v=D.JSC$19713_backChannelUri_.clone();_.Dq(v,"RID","rpc");_.Dq(v,"SID",D.sid_);_.Dq(v,"AID",D.JSC$19713_lastArrayId_);_.Dq(v,"CI",D.enableStreaming_?"0":"1");!D.enableStreaming_&&D.longPollingTimeout_&&
_.Dq(v,"TO",D.longPollingTimeout_);_.Dq(v,"TYPE","xmlhttp");dF(D,v);D.httpHeadersOverwriteParam_&&D.JSC$19713_extraHeaders_&&JJb(v,D.httpHeadersOverwriteParam_,D.JSC$19713_extraHeaders_);D.backChannelRequestTimeoutMs_&&D.JSC$19713_backChannelRequest_.setTimeout(D.backChannelRequestTimeoutMs_);var h=D.JSC$19713_backChannelRequest_,a=D.JSC$19713_hostPrefix_;h.JSC$19694_type_=1;h.JSC$19694_baseUri_=_.Sv(v.clone());h.JSC$19694_postData_=null;h.decodeChunks_=!0;kLU(h,a);D.JSC$19713_channelDebug_.debug("New Request created")};
bo.prototype.JSC$19715_onBackChannelDead_=function(){this.JSC$19713_deadBackChannelTimerId_!=null&&(this.JSC$19713_deadBackChannelTimerId_=null,yxX(this),wqS(this),Ji(19))};
var Hgs=function(D){D.JSC$19713_deadBackChannelTimerId_!=null&&(_.$L.clearTimeout(D.JSC$19713_deadBackChannelTimerId_),D.JSC$19713_deadBackChannelTimerId_=null)},qBr=function(D,v){D.JSC$19713_channelDebug_.debug("Request complete");
var h=null;if(D.JSC$19713_backChannelRequest_==v){Hgs(D);jRs(D);D.JSC$19713_backChannelRequest_=null;var a=2}else if(m9S(D.forwardChannelRequestPool_,v))h=v.JSC$19694_pendingMessages_,Rvs(D.forwardChannelRequestPool_,v),a=1;else return;if(D.state_!=0)if(v.JSC$19694_successful_)a==1?(oFs(v.JSC$19694_postData_?v.JSC$19694_postData_.length:0,Date.now()-v.JSC$19694_requestStartTime_,D.JSC$19713_forwardChannelRetryCount_),vMm(D)):Pb$(D);else{var Q=v.JSC$19694_lastStatusCode_,G=v.getLastError();if(G==3||
G==0&&Q>0)D.JSC$19713_channelDebug_.debug("Not retrying due to error type"),Q>200&&(D.errorResponseStatusCode_=v.JSC$19694_lastStatusCode_);else{D.JSC$19713_channelDebug_.debug(function(){return"Maybe retrying, last error: "+EFd(G,D.errorResponseStatusCode_)});
if(a==1&&Qdm(D,v)||a==2&&wqS(D))return;D.JSC$19713_channelDebug_.debug("Exceeded max number of retries")}h&&h.length>0&&WBK(D.forwardChannelRequestPool_,h);D.JSC$19713_channelDebug_.debug("Error: HTTP request failed");switch(G){case 1:XM(D,5);break;case 4:XM(D,10);break;case 3:XM(D,6);break;default:XM(D,2)}}},$Br=function(D,v){var h=D.JSC$19713_baseRetryDelayMs_+Math.floor(Math.random()*D.JSC$19713_retryDelaySeedMs_);
D.isActive()||(D.JSC$19713_channelDebug_.debug("Inactive channel"),h*=2);return h*v};
bo.prototype.onInput_=function(D,v){for(var h=0;h<D.length;h++){var a=D[h],Q=a[0];if(Q<=this.JSC$19713_lastArrayId_)this.JSC$19713_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+Q+", lastArrayId: "+this.JSC$19713_lastArrayId_);else if(Q>this.JSC$19713_lastArrayId_+1&&this.JSC$19713_lastArrayId_>-1&&this.JSC$19713_channelDebug_.warning("Received non-consecutive message with arrayId: "+Q+", lastArrayId: "+this.JSC$19713_lastArrayId_),this.JSC$19713_lastArrayId_=Q,
a=a[1],this.state_==2)if(a[0]=="c"){this.sid_=a[1];this.JSC$19713_hostPrefix_=a[2];Q=a[3];Q!=null&&(this.JSC$19715_channelVersion_=Q,this.JSC$19713_channelDebug_.info("VER="+this.JSC$19715_channelVersion_));Q=a[4];Q!=null&&(this.serverVersion_=Q,this.JSC$19713_channelDebug_.info("SVER="+this.serverVersion_));a=a[5];a!=null&&typeof a==="number"&&a>0&&(this.backChannelRequestTimeoutMs_=a*=1.5,this.JSC$19713_channelDebug_.info("backChannelRequestTimeoutMs_="+a));if(a=v.JSC$19694_xmlHttp_){var G=MW(a,
"X-Client-Wire-Protocol");G&&(Q=this.forwardChannelRequestPool_,!Q.requestPool_&&(_.oo(G,"spdy")||_.oo(G,"quic")||_.oo(G,"h2"))&&(Q.JSC$19704_maxSize_=Q.maxPoolSizeConfigured_,Q.requestPool_=new Set,Q.JSC$19704_request_&&(T3X(Q,Q.JSC$19704_request_),Q.JSC$19704_request_=null)));this.httpSessionIdParam_&&((a=MW(a,"X-HTTP-Session-Id"))?(this.httpSessionId_=a,_.Dq(this.JSC$19713_forwardChannelUri_,this.httpSessionIdParam_,a)):this.JSC$19713_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19719_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-v.JSC$19694_requestStartTime_,this.JSC$19713_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));a=v;Q=DBI(this,this.JSC$19713_supportsCrossDomainXhrs_?this.JSC$19713_hostPrefix_:null,this.JSC$19713_path_);this.JSC$19713_channelDebug_.debug("GetBackChannelUri: "+Q);this.JSC$19713_backChannelUri_=Q;a.initialResponseDecoded_?(this.JSC$19713_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
Rvs(this.forwardChannelRequestPool_,a),Q=a,(G=this.backChannelRequestTimeoutMs_)&&Q.setTimeout(G),Q.JSC$19694_watchDogTimerId_&&(YBI(Q),Jxd(Q)),this.JSC$19713_backChannelRequest_=a):Pb$(this);this.JSC$19713_outgoingMaps_.length>0&&vMm(this)}else a[0]!="stop"&&a[0]!="close"||XM(this,7);else this.state_==3&&(a[0]=="stop"||a[0]=="close"?a[0]=="stop"?XM(this,7):this.disconnect():a[0]!="noop"&&this.handler_&&this.handler_.JSC$19719_channelHandleArray(a),this.JSC$19713_backChannelRetryCount_=0)}};
var XM=function(D,v){D.JSC$19713_channelDebug_.info("Error code "+v);if(v==2){var h=(0,_.qp)(D.testNetworkCallback_,D),a=D.networkTestUrl_,Q=!a;a=new _.aN(a||"//www.google.com/images/cleardot.gif");_.$L.location&&_.$L.location.protocol=="http"||_.FW(a,"https");_.Sv(a);Q?t5I(a.toString(),h):rxC(a.toString(),h)}else Ji(2);D.onError_(v)};
bo.prototype.testNetworkCallback_=function(D){D?(this.JSC$19713_channelDebug_.info("Successfully pinged google.com"),Ji(2)):(this.JSC$19713_channelDebug_.info("Failed to ping google.com"),Ji(1))};
bo.prototype.onError_=function(D){this.JSC$19713_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$19719_channelError(D);aQm(this);h_S(this)};
var aQm=function(D){D.state_=0;D.nonAckedMapsAtChannelClose_=[];if(D.handler_){var v=ig3(D.forwardChannelRequestPool_);if(v.length!=0||D.JSC$19713_outgoingMaps_.length!=0)D.JSC$19713_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+v.length+", outgoing: "+D.JSC$19713_outgoingMaps_.length}),_.K7(D.nonAckedMapsAtChannelClose_,v),_.K7(D.nonAckedMapsAtChannelClose_,D.JSC$19713_outgoingMaps_),D.forwardChannelRequestPool_.JSC$19704_pendingMessages_.length=0,_.n7(D.JSC$19713_outgoingMaps_),
D.JSC$19713_outgoingMaps_.length=0;
D.handler_.JSC$19719_channelClosed()}},M82=function(D){if(D.state_==0)return D.nonAckedMapsAtChannelClose_;
var v=[];_.K7(v,ig3(D.forwardChannelRequestPool_));_.K7(v,D.JSC$19713_outgoingMaps_);return v},DBI=function(D,v,h){var a=_.tN(h);
a.JSC$10036_domain_!=""?(v&&_.zq(a,v+"."+a.JSC$10036_domain_),_.UG(a,a.JSC$10036_port_)):(a=_.$L.location,a=zC2(a.protocol,v?v+"."+a.hostname:a.hostname,+a.port,h));v=D.httpSessionIdParam_;h=D.httpSessionId_;v&&h&&_.Dq(a,v,h);_.Dq(a,"VER",D.JSC$19715_channelVersion_);dF(D,a);return a},pq3=function(D,v,h){if(v&&!D.JSC$19713_supportsCrossDomainXhrs_)throw Error("Ok");
v=D.usesFetchStreams_&&!D.JSC$19713_xmlHttpFactory_?new _.OP(new jN({streamBinaryChunks:h})):new _.OP(D.JSC$19713_xmlHttpFactory_);v.JSC$9800_withCredentials_=D.JSC$19713_supportsCrossDomainXhrs_;return v};
bo.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var fQX=function(){};
_.V=fQX.prototype;_.V.JSC$19719_channelOpened=function(){};
_.V.JSC$19719_channelHandleArray=function(){};
_.V.JSC$19719_channelError=function(){};
_.V.JSC$19719_channelClosed=function(){};
_.V.isActive=function(){return!0};
_.V.JSC$19719_badMapError=function(){};var Cb3=function(){},sv=function(D,v){_.jZ.call(this);
this.JSC$19722_channel_=new bo(v);this.JSC$19722_url_=D;this.messageUrlParams_=v&&v.messageUrlParams||null;D=v&&v.messageHeaders||null;v&&v.clientProtocolHeaderRequired&&(D?_.sV.set(D,"X-Client-Protocol","webchannel"):D=_.sV.create("X-Client-Protocol","webchannel"));this.JSC$19722_channel_.JSC$19713_extraHeaders_=D;D=v&&v.initMessageHeaders||null;v&&v.messageContentType&&(D?_.sV.set(D,"X-WebChannel-Content-Type",v.messageContentType):D=_.sV.create("X-WebChannel-Content-Type",v.messageContentType));
v&&v.clientProfile&&(D?_.sV.set(D,"X-WebChannel-Client-Profile",v.clientProfile):D=_.sV.create("X-WebChannel-Client-Profile",v.clientProfile));this.JSC$19722_channel_.initHeaders_=D;(D=v&&v.httpHeadersOverwriteParam)&&!_.C7(D)&&(this.JSC$19722_channel_.httpHeadersOverwriteParam_=D);this.supportsCrossDomainXhr_=v&&v.supportsCrossDomainXhr||!1;this.sendRawJson_=v&&v.sendRawJson||!1;(v=v&&v.httpSessionIdParam)&&!_.C7(v)&&(this.JSC$19722_channel_.httpSessionIdParam_=v,_.sV.containsKey(this.messageUrlParams_,
v)&&_.sV.remove(this.messageUrlParams_,v));this.channelHandler_=new ji(this)};
_.fa(sv,_.jZ);sv.prototype.open=function(){this.JSC$19722_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19722_channel_.JSC$19713_supportsCrossDomainXhrs_=!0);this.JSC$19722_channel_.connect(this.JSC$19722_url_,this.messageUrlParams_||void 0)};
sv.prototype.close=function(){this.JSC$19722_channel_.disconnect()};
sv.prototype.send=function(D){var v=this.JSC$19722_channel_;if(typeof D==="string"){var h={};h.__data__=D;D=h}else this.sendRawJson_&&(h={},h.__data__=(0,_.nD)(D),D=h);v.JSC$19713_outgoingMaps_.push(new nFm(v.JSC$19713_nextMapId_++,D));v.state_==3&&vMm(v)};
sv.prototype.disposeInternal=function(){this.JSC$19722_channel_.handler_=null;delete this.channelHandler_;this.JSC$19722_channel_.disconnect();delete this.JSC$19722_channel_;sv.superClass_.disposeInternal.call(this)};
var oMX=function(D){GL3.call(this);D.__headers__&&(this.headers=D.__headers__,this.statusCode=D.__status__,delete D.__headers__,delete D.__status__);var v=D.__sm__;v?this.data=(this.metadataKey=_.sV.getAnyKey(v))?_.sV.get(v,this.metadataKey):v:this.data=D};
_.fa(oMX,GL3);var F4d=function(D){V5X.call(this);this.status=1;this.errorCode=D};
_.fa(F4d,V5X);var ji=function(D){this.JSC$19729_channel_=D};
_.fa(ji,fQX);ji.prototype.JSC$19719_channelOpened=function(){this.JSC$19729_channel_.dispatchEvent("w")};
ji.prototype.JSC$19719_channelHandleArray=function(D){this.JSC$19729_channel_.dispatchEvent(new oMX(D))};
ji.prototype.JSC$19719_channelError=function(D){this.JSC$19729_channel_.dispatchEvent(new F4d(D))};
ji.prototype.JSC$19719_channelClosed=function(){this.JSC$19729_channel_.dispatchEvent("x")};
var z_3=function(D,v){this.transportChannel_=D;this.JSC$19732_channel_=v},UBd=function(D){return M82(D.JSC$19732_channel_).map(function(v){var h=D.transportChannel_;
v=v.map;"__data__"in v?(v=v.__data__,h=h.sendRawJson_?(0,_.r1J)(v):v):h=v;return h})};
z_3.prototype.commit=function(D){this.JSC$19732_channel_.forwardChannelFlushedCallback_=D};var mu=function(D){L4s.dispatchEvent(new Zrm(L4s,D))},L4s=new _.jZ,Zrm=function(D,v){_.XI.call(this,"statevent",D);
this.stat=v};
_.J(Zrm,_.XI);var H3=function(D,v,h,a,Q){this.JSC$19737_channel_=D;this.JSC$19737_channelDebug_=v;this.sid_=h;this.JSC$19737_rid_=a;this.JSC$19737_retryId_=Q||1;this.timeout_=45E3;this.JSC$19737_eventHandler_=new _.or(this);this.pollingTimer_=new _.Cm;this.pollingTimer_.setInterval(250)};
_.V=H3.prototype;_.V.JSC$19739_extraHeaders_=null;_.V.JSC$19739_successful_=!1;_.V.JSC$19739_watchDogTimerId_=null;_.V.JSC$19739_watchDogTimeoutTime_=null;_.V.JSC$19739_requestStartTime_=null;_.V.JSC$19739_type_=null;_.V.JSC$19739_baseUri_=null;_.V.JSC$19739_requestUri_=null;_.V.JSC$19739_postData_=null;_.V.JSC$19739_xmlHttp_=null;_.V.JSC$19739_xmlHttpChunkStart_=0;_.V.trident_=null;_.V.JSC$19739_verb_=null;_.V.JSC$19739_lastError_=null;_.V.JSC$19739_lastStatusCode_=-1;_.V.sendClose_=!0;
_.V.JSC$19739_cancelled_=!1;_.V.JSC$19739_readyStateChangeThrottleMs_=0;_.V.JSC$19739_readyStateChangeThrottle_=null;var EMZ=function(D,v){switch(D){case 0:return"Non-200 return code ("+v+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},IQb={},gMS={};
H3.prototype.setTimeout=function(D){this.timeout_=D};
var Sc3=function(D,v,h){D.JSC$19739_type_=1;D.JSC$19739_baseUri_=_.Sv(v.clone());D.JSC$19739_postData_=h;D.decodeChunks_=!0;kXs(D,null)},JlU=function(D,v,h,a,Q){D.JSC$19739_type_=1;
D.JSC$19739_baseUri_=_.Sv(v.clone());D.JSC$19739_postData_=null;D.decodeChunks_=h;Q&&(D.sendClose_=!1);kXs(D,a)},kXs=function(D,v){D.JSC$19739_requestStartTime_=Date.now();
pFr(D);D.JSC$19739_requestUri_=D.JSC$19739_baseUri_.clone();ow(D.JSC$19739_requestUri_,"t",D.JSC$19737_retryId_);D.JSC$19739_xmlHttpChunkStart_=0;D.JSC$19739_xmlHttp_=D.JSC$19737_channel_.JSC$19746_createXhrIo(D.JSC$19737_channel_.JSC$19746_shouldUseSecondaryDomains()?v:null);D.JSC$19739_readyStateChangeThrottleMs_>0&&(D.JSC$19739_readyStateChangeThrottle_=new _.tn((0,_.qp)(D.JSC$19739_xmlHttpHandler_,D,D.JSC$19739_xmlHttp_),D.JSC$19739_readyStateChangeThrottleMs_));D.JSC$19737_eventHandler_.listen(D.JSC$19739_xmlHttp_,
"readystatechange",D.JSC$19739_readyStateChangeHandler_);v=D.JSC$19739_extraHeaders_?_.sV.clone(D.JSC$19739_extraHeaders_):{};D.JSC$19739_postData_?(D.JSC$19739_verb_="POST",v["Content-Type"]="application/x-www-form-urlencoded",D.JSC$19739_xmlHttp_.send(D.JSC$19739_requestUri_,D.JSC$19739_verb_,D.JSC$19739_postData_,v)):(D.JSC$19739_verb_="GET",D.sendClose_&&!_.La&&(v.Connection="close"),D.JSC$19739_xmlHttp_.send(D.JSC$19739_requestUri_,D.JSC$19739_verb_,null,v));D.JSC$19737_channel_.notifyServerReachabilityEvent(1);
v=D.JSC$19737_channelDebug_;var h=D.JSC$19739_postData_;if(h){var a="";h=h.split("&");for(var Q=0;Q<h.length;Q++){var G=h[Q].split("=");if(G.length>1){var x=G[0];G=G[1];var f=x.split("_");a=f.length>=2&&f[1]=="type"?a+(x+"="+G+"&"):a+(x+"=redacted&")}}}else a=null;v.info("XMLHTTP REQ ("+D.JSC$19737_rid_+") [attempt "+D.JSC$19737_retryId_+"]: "+D.JSC$19739_verb_+"\n"+D.JSC$19739_requestUri_+"\n"+a)};
H3.prototype.JSC$19739_readyStateChangeHandler_=function(D){D=D.target;var v=this.JSC$19739_readyStateChangeThrottle_;v&&_.KD(D)==3?(this.JSC$19737_channelDebug_.debug("Throttling readystatechange."),v.fire()):this.JSC$19739_xmlHttpHandler_(D)};
H3.prototype.JSC$19739_xmlHttpHandler_=function(D){try{if(D==this.JSC$19739_xmlHttp_)a:{var v=_.KD(this.JSC$19739_xmlHttp_),h=this.JSC$19739_xmlHttp_.JSC$9800_lastErrorCode_,a=this.JSC$19739_xmlHttp_.getStatus();if(_.La&&!_.ZK("420+")){if(v<4)break a}else if(v<3||v==3&&!this.JSC$19739_xmlHttp_.getResponseText())break a;this.JSC$19739_cancelled_||v!=4||h==7||(h==8||a<=0?this.JSC$19737_channel_.notifyServerReachabilityEvent(3):this.JSC$19737_channel_.notifyServerReachabilityEvent(2));lQX(this);var Q=
this.JSC$19739_xmlHttp_.getStatus();this.JSC$19739_lastStatusCode_=Q;var G=this.JSC$19739_xmlHttp_.getResponseText();G||this.JSC$19737_channelDebug_.debug("No response text for uri "+this.JSC$19739_requestUri_+" status "+Q);this.JSC$19739_successful_=Q==200;this.JSC$19737_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19737_rid_+") [ attempt "+this.JSC$19737_retryId_+"]: "+this.JSC$19739_verb_+"\n"+this.JSC$19739_requestUri_+"\n"+v+" "+Q);if(this.JSC$19739_successful_){v==4&&y4(this);if(this.decodeChunks_){for(D=
!0;!this.JSC$19739_cancelled_&&this.JSC$19739_xmlHttpChunkStart_<G.length;){var x=NPC(this,G);if(x==gMS){v==4&&(this.JSC$19739_lastError_=4,mu(15),D=!1);wF(this.JSC$19737_channelDebug_,this.JSC$19737_rid_,null,"[Incomplete Response]");break}else if(x==IQb){this.JSC$19739_lastError_=4;mu(16);wF(this.JSC$19737_channelDebug_,this.JSC$19737_rid_,G,"[Invalid Chunk]");D=!1;break}else wF(this.JSC$19737_channelDebug_,this.JSC$19737_rid_,x,null),Ycb(this,x)}v==4&&G.length==0&&(this.JSC$19739_lastError_=1,
mu(17),D=!1);this.JSC$19739_successful_=this.JSC$19739_successful_&&D;D||(wF(this.JSC$19737_channelDebug_,this.JSC$19737_rid_,G,"[Invalid Chunked Response]"),y4(this),BPm(this))}else wF(this.JSC$19737_channelDebug_,this.JSC$19737_rid_,G,null),Ycb(this,G);this.JSC$19739_successful_&&!this.JSC$19739_cancelled_&&(v==4?this.JSC$19737_channel_.JSC$19746_onRequestComplete(this):(this.JSC$19739_successful_=!1,pFr(this)))}else Q==400&&G.indexOf("Unknown SID")>0?(this.JSC$19739_lastError_=3,mu(13),this.JSC$19737_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19737_rid_+")")):(this.JSC$19739_lastError_=0,mu(14),this.JSC$19737_channelDebug_.warning("XMLHTTP Bad status "+Q+" ("+this.JSC$19737_rid_+")")),y4(this),BPm(this)}else this.JSC$19737_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(f){this.JSC$19737_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var NPC=function(D,v){var h=D.JSC$19739_xmlHttpChunkStart_,a=v.indexOf("\n",h);if(a==-1)return gMS;h=Number(v.substring(h,a));if(isNaN(h))return IQb;a+=1;if(a+h>v.length)return gMS;v=v.slice(a,a+h);D.JSC$19739_xmlHttpChunkStart_=a+h;return v};
H3.prototype.cancel=function(){this.JSC$19739_cancelled_=!0;y4(this)};
var pFr=function(D){D.JSC$19739_watchDogTimeoutTime_=Date.now()+D.timeout_;clK(D,D.timeout_)},clK=function(D,v){if(D.JSC$19739_watchDogTimerId_!=null)throw Error("Nk");
D.JSC$19739_watchDogTimerId_=kW((0,_.qp)(D.JSC$19739_onWatchDogTimeout_,D),v)},lQX=function(D){D.JSC$19739_watchDogTimerId_&&(_.$L.clearTimeout(D.JSC$19739_watchDogTimerId_),D.JSC$19739_watchDogTimerId_=null)};
H3.prototype.JSC$19739_onWatchDogTimeout_=function(){this.JSC$19739_watchDogTimerId_=null;var D=Date.now();D-this.JSC$19739_watchDogTimeoutTime_>=0?(this.JSC$19737_channelDebug_.info("TIMEOUT: "+this.JSC$19739_requestUri_),this.JSC$19739_type_!=2&&this.JSC$19737_channel_.notifyServerReachabilityEvent(3),y4(this),this.JSC$19739_lastError_=2,mu(18),BPm(this)):(this.JSC$19737_channelDebug_.warning("WatchDog timer called too early"),clK(this,this.JSC$19739_watchDogTimeoutTime_-D))};
var BPm=function(D){D.JSC$19737_channel_.JSC$19746_isClosed()||D.JSC$19739_cancelled_||D.JSC$19737_channel_.JSC$19746_onRequestComplete(D)},y4=function(D){lQX(D);
_.V5(D.JSC$19739_readyStateChangeThrottle_);D.JSC$19739_readyStateChangeThrottle_=null;D.pollingTimer_.stop();D.JSC$19737_eventHandler_.removeAll();if(D.JSC$19739_xmlHttp_){var v=D.JSC$19739_xmlHttp_;D.JSC$19739_xmlHttp_=null;v.abort();v.dispose()}D.trident_&&(D.trident_=null)};
H3.prototype.getLastError=function(){return this.JSC$19739_lastError_};
var Ycb=function(D,v){try{D.JSC$19737_channel_.JSC$19746_onRequestData(D,v),D.JSC$19737_channel_.notifyServerReachabilityEvent(4)}catch(h){}};var wF=function(D,v,h,a){var Q=D.info;a:if(h&&h!="y2f%"){try{var G=JSON.parse(h);if(G)for(var x=0;x<G.length;x++)if(Array.isArray(G[x])){var f=G[x];if(!(f.length<2)){var C=f[1];if(Array.isArray(C)&&!(C.length<1)){var U=C[0];if(U!="noop"&&U!="stop")for(var L=1;L<C.length;L++)C[L]=""}}}var Z=(0,_.nD)(G);break a}catch(E){D.debug("Exception parsing expected JS array - probably was not JS");Z=h;break a}Z=void 0}else Z=h;Q.call(D,"XMLHTTP TEXT ("+v+"): "+Z+(a?" "+a:""))};
SP.prototype.debug=function(D){this.info(D)};
SP.prototype.info=function(){};
SP.prototype.warning=function(){};var XF3=function(D,v){this.JSC$19744_channel_=D;this.JSC$19744_channelDebug_=v;this.JSC$19744_parser_=new k0};
_.V=XF3.prototype;_.V.JSC$19746_extraHeaders_=null;_.V.JSC$19746_request_=null;_.V.receivedIntermediateResult_=!1;_.V.JSC$19746_path_=null;_.V.state_=null;_.V.JSC$19746_lastStatusCode_=-1;_.V.JSC$19746_hostPrefix_=null;_.V.blockedPrefix_=null;
_.V.connect=function(D){this.JSC$19746_path_=D;D=Als(this.JSC$19744_channel_,this.JSC$19746_path_);mu(3);Date.now();var v=this.JSC$19744_channel_.firstTestResults_;v!=null?(this.JSC$19746_hostPrefix_=v[0],(this.blockedPrefix_=v[1])?(this.state_=1,qc$(this)):(this.state_=2,brZ(this))):(ow(D,"MODE","init"),this.JSC$19746_request_=new H3(this,this.JSC$19744_channelDebug_),this.JSC$19746_request_.JSC$19739_extraHeaders_=this.JSC$19746_extraHeaders_,JlU(this.JSC$19746_request_,D,!1,null,!0),this.state_=
0)};
var qc$=function(D){var v=dBX(D.JSC$19744_channel_,D.blockedPrefix_,"/mail/images/cleardot.gif");_.Sv(v);WgC(v.toString(),5E3,(0,_.qp)(D.checkBlockedCallback_,D),3,2E3);D.notifyServerReachabilityEvent(1)};
XF3.prototype.checkBlockedCallback_=function(D){if(D)this.state_=2,brZ(this);else{mu(4);var v=this.JSC$19744_channel_;v.JSC$19747_channelDebug_.debug("Test Connection Blocked");v.JSC$19751_lastStatusCode_=v.connectionTest_.JSC$19746_lastStatusCode_;ei(v,9)}D&&this.notifyServerReachabilityEvent(2)};
var brZ=function(D){D.JSC$19744_channelDebug_.debug("TestConnection: starting stage 2");var v=D.JSC$19744_channel_.secondTestResults_;v!=null?(D.JSC$19744_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+v?"Buffered":"Unbuffered"),mu(5),v?(mu(11),nF(D.JSC$19744_channel_,D,!1)):(mu(12),nF(D.JSC$19744_channel_,D,!0))):(D.JSC$19746_request_=new H3(D,D.JSC$19744_channelDebug_),D.JSC$19746_request_.JSC$19739_extraHeaders_=D.JSC$19746_extraHeaders_,v=jdS(D.JSC$19744_channel_,
D.JSC$19746_hostPrefix_,D.JSC$19746_path_),mu(5),ow(v,"TYPE","xmlhttp"),JlU(D.JSC$19746_request_,v,!1,D.JSC$19746_hostPrefix_,!1))};
_.V=XF3.prototype;_.V.JSC$19746_createXhrIo=function(D){return this.JSC$19744_channel_.JSC$19746_createXhrIo(D)};
_.V.abort=function(){this.JSC$19746_request_&&(this.JSC$19746_request_.cancel(),this.JSC$19746_request_=null);this.JSC$19746_lastStatusCode_=-1};
_.V.JSC$19746_isClosed=function(){return!1};
_.V.JSC$19746_onRequestData=function(D,v){this.JSC$19746_lastStatusCode_=D.JSC$19739_lastStatusCode_;if(this.state_==0)if(this.JSC$19744_channelDebug_.debug("TestConnection: Got data for stage 1"),v){try{var h=this.JSC$19744_parser_.parse(v)}catch(a){sdr(this.JSC$19744_channel_,this);return}this.JSC$19746_hostPrefix_=h[0];this.blockedPrefix_=h[1]}else this.JSC$19744_channelDebug_.debug("TestConnection: Null responseText"),sdr(this.JSC$19744_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(mu(7),Date.now()):v=="11111"?(mu(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19746_lastStatusCode_=200,this.JSC$19746_request_.cancel(),this.JSC$19744_channelDebug_.debug("Test connection succeeded; using streaming connection"),mu(12),nF(this.JSC$19744_channel_,this,!0)):(mu(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.V.JSC$19746_onRequestComplete=function(){this.JSC$19746_lastStatusCode_=this.JSC$19746_request_.JSC$19739_lastStatusCode_;this.JSC$19746_request_.JSC$19739_successful_?this.state_==0?(this.JSC$19744_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,qc$(this)):(this.state_=2,brZ(this))):this.state_==2&&(this.JSC$19744_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19744_channelDebug_.debug("Test connection succeeded; using streaming connection"),
mu(12),nF(this.JSC$19744_channel_,this,!0)):(this.JSC$19744_channelDebug_.debug("Test connection failed; not using streaming"),mu(11),nF(this.JSC$19744_channel_,this,!1))):(this.JSC$19744_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?mu(9):this.state_==2&&mu(10),sdr(this.JSC$19744_channel_,this,this.JSC$19746_request_.getLastError()))};
_.V.JSC$19746_shouldUseSecondaryDomains=function(){return this.JSC$19744_channel_.JSC$19746_shouldUseSecondaryDomains()};
_.V.isActive=function(){return this.JSC$19744_channel_.isActive()};
_.V.notifyServerReachabilityEvent=function(D){this.JSC$19744_channel_.notifyServerReachabilityEvent(D)};var Ov=function(D,v,h){this.state_=1;this.JSC$19747_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19747_channelDebug_=new SP;this.JSC$19747_parser_=new k0;this.firstTestResults_=D||null;this.secondTestResults_=v!=null?v:null;this.asyncTest_=h||!1},mBd=function(D,v){this.JSC$19749_mapId=D;
this.map=v;this.context=null};
_.V=Ov.prototype;_.V.JSC$19751_extraHeaders_=null;_.V.JSC$19751_extraParams_=null;_.V.forwardChannelRequest_=null;_.V.JSC$19751_backChannelRequest_=null;_.V.JSC$19751_path_=null;_.V.JSC$19751_forwardChannelUri_=null;_.V.JSC$19751_backChannelUri_=null;_.V.JSC$19751_hostPrefix_=null;_.V.JSC$19751_nextRid_=0;_.V.JSC$19751_nextMapId_=0;_.V.handler_=null;_.V.JSC$19751_forwardChannelTimerId_=null;_.V.JSC$19751_backChannelTimerId_=null;_.V.JSC$19751_deadBackChannelTimerId_=null;_.V.connectionTest_=null;
_.V.useChunked_=null;_.V.JSC$19751_lastArrayId_=-1;_.V.JSC$19751_lastPostResponseArrayId_=-1;_.V.JSC$19751_lastStatusCode_=-1;_.V.JSC$19751_forwardChannelRetryCount_=0;_.V.JSC$19751_backChannelRetryCount_=0;_.V.JSC$19751_channelVersion_=8;var HrK={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},ylr=function(D,v,h,a){_.XI.call(this,"timingevent",D);this.size=v;this.rtt=h;this.retries=a};
_.fa(ylr,_.XI);var wFs=function(D){_.XI.call(this,"serverreachability",D)};
_.fa(wFs,_.XI);Ov.prototype.connect=function(D,v,h,a,Q){this.JSC$19747_channelDebug_.debug("connect()");mu(0);this.JSC$19751_path_=v;this.JSC$19751_extraParams_=h||{};a&&Q!==void 0&&(this.JSC$19751_extraParams_.OSID=a,this.JSC$19751_extraParams_.OAID=Q);this.asyncTest_?(kW((0,_.qp)(this.connectTest_,this,D),100),e_2(this)):this.connectTest_(D)};
Ov.prototype.disconnect=function(){this.JSC$19747_channelDebug_.debug("disconnect()");nM2(this);if(this.state_==3){var D=this.JSC$19751_nextRid_++,v=this.JSC$19751_forwardChannelUri_.clone();_.Dq(v,"SID",this.sid_);_.Dq(v,"RID",D);_.Dq(v,"TYPE","terminate");KF(this,v);D=new H3(this,this.JSC$19747_channelDebug_,this.sid_,D);D.JSC$19739_type_=2;D.JSC$19739_baseUri_=_.Sv(v.clone());(new Image).src=D.JSC$19739_baseUri_.toString();D.JSC$19739_requestStartTime_=Date.now();pFr(D)}OrS(this)};
Ov.prototype.connectTest_=function(D){this.JSC$19747_channelDebug_.debug("connectTest_()");this.connectionTest_=new XF3(this,this.JSC$19747_channelDebug_);this.connectionTest_.JSC$19746_extraHeaders_=this.JSC$19751_extraHeaders_;this.connectionTest_.JSC$19744_parser_=this.JSC$19747_parser_;this.connectionTest_.connect(D)};
var e_2=function(D){D.JSC$19747_channelDebug_.debug("connectChannel_()");D.JSC$19751_ensureInState_(1,0);D.JSC$19751_forwardChannelUri_=Als(D,D.JSC$19751_path_);K4r(D)},nM2=function(D){D.connectionTest_&&(D.connectionTest_.abort(),D.connectionTest_=null);
D.JSC$19751_backChannelRequest_&&(D.JSC$19751_backChannelRequest_.cancel(),D.JSC$19751_backChannelRequest_=null);D.JSC$19751_backChannelTimerId_&&(_.$L.clearTimeout(D.JSC$19751_backChannelTimerId_),D.JSC$19751_backChannelTimerId_=null);TP$(D);D.forwardChannelRequest_&&(D.forwardChannelRequest_.cancel(),D.forwardChannelRequest_=null);D.JSC$19751_forwardChannelTimerId_&&(_.$L.clearTimeout(D.JSC$19751_forwardChannelTimerId_),D.JSC$19751_forwardChannelTimerId_=null)},R_Z=function(D,v){if(D.state_==0)throw Error("Qk");
D.JSC$19747_outgoingMaps_.length==1E3&&D.JSC$19747_parser_.stringify(v);D.JSC$19747_outgoingMaps_.push(new mBd(D.JSC$19751_nextMapId_++,v));D.state_!=2&&D.state_!=3||K4r(D)};
Ov.prototype.JSC$19746_isClosed=function(){return this.state_==0};
Ov.prototype.getState=function(){return this.state_};
var K4r=function(D){D.forwardChannelRequest_||D.JSC$19751_forwardChannelTimerId_||(D.JSC$19751_forwardChannelTimerId_=kW((0,_.qp)(D.JSC$19751_onStartForwardChannelTimer_,D),0),D.JSC$19751_forwardChannelRetryCount_=0)};
Ov.prototype.JSC$19751_onStartForwardChannelTimer_=function(D){this.JSC$19751_forwardChannelTimerId_=null;mvK(this,D)};
var mvK=function(D,v){D.JSC$19747_channelDebug_.debug("startForwardChannel_");if(D.state_==1){if(!v){D.JSC$19747_channelDebug_.debug("open_()");D.JSC$19751_nextRid_=Math.floor(Math.random()*1E5);v=D.JSC$19751_nextRid_++;var h=new H3(D,D.JSC$19747_channelDebug_,"",v);h.JSC$19739_extraHeaders_=D.JSC$19751_extraHeaders_;var a=He$(D),Q=D.JSC$19751_forwardChannelUri_.clone();_.Dq(Q,"RID",v);_.Dq(Q,"CVER","1");KF(D,Q);Sc3(h,Q,a);D.forwardChannelRequest_=h;D.state_=2}}else D.state_==3&&(v?ykr(D,v):D.JSC$19747_outgoingMaps_.length==
0?D.JSC$19747_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):D.forwardChannelRequest_||(ykr(D),D.JSC$19747_channelDebug_.debug("startForwardChannel_ finished, sent request")))},ykr=function(D,v){if(v)if(D.JSC$19751_channelVersion_>6){D.JSC$19747_outgoingMaps_=D.pendingMaps_.concat(D.JSC$19747_outgoingMaps_);
D.pendingMaps_.length=0;var h=D.JSC$19751_nextRid_-1;v=He$(D)}else h=v.JSC$19737_rid_,v=v.JSC$19739_postData_;else h=D.JSC$19751_nextRid_++,v=He$(D);var a=D.JSC$19751_forwardChannelUri_.clone();_.Dq(a,"SID",D.sid_);_.Dq(a,"RID",h);_.Dq(a,"AID",D.JSC$19751_lastArrayId_);KF(D,a);h=new H3(D,D.JSC$19747_channelDebug_,D.sid_,h,D.JSC$19751_forwardChannelRetryCount_+1);h.JSC$19739_extraHeaders_=D.JSC$19751_extraHeaders_;h.setTimeout(1E4+Math.round(1E4*Math.random()));D.forwardChannelRequest_=h;Sc3(h,a,v)},
KF=function(D,v){D.handler_&&(D=D.handler_.JSC$19758_getAdditionalParams())&&_.sV.forEach(D,function(h,a){_.Dq(v,a,h)})},He$=function(D){var v=Math.min(D.JSC$19747_outgoingMaps_.length,1E3),h=["count="+v];
if(D.JSC$19751_channelVersion_>6&&v>0){var a=D.JSC$19747_outgoingMaps_[0].JSC$19749_mapId;h.push("ofs="+a)}else a=0;for(var Q={},G=0;G<v;Q={mapId$jscomp$3:void 0},G++){Q.mapId$jscomp$3=D.JSC$19747_outgoingMaps_[G].JSC$19749_mapId;var x=D.JSC$19747_outgoingMaps_[G].map;Q.mapId$jscomp$3=D.JSC$19751_channelVersion_<=6?G:Q.mapId$jscomp$3-a;try{_.sV.forEach(x,function(f){return function(C,U){h.push("req"+f.mapId$jscomp$3+"_"+U+"="+encodeURIComponent(C))}}(Q))}catch(f){h.push("req"+Q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}D.pendingMaps_=D.pendingMaps_.concat(D.JSC$19747_outgoingMaps_.splice(0,v));
return h.join("&")},wtd=function(D){D.JSC$19751_backChannelRequest_||D.JSC$19751_backChannelTimerId_||(D.JSC$19751_backChannelAttemptId_=1,D.JSC$19751_backChannelTimerId_=kW((0,_.qp)(D.JSC$19751_onStartBackChannelTimer_,D),0),D.JSC$19751_backChannelRetryCount_=0)},nkr=function(D){if(D.JSC$19751_backChannelRequest_||D.JSC$19751_backChannelTimerId_||D.JSC$19751_backChannelRetryCount_>=3)return!1;
D.JSC$19747_channelDebug_.debug("Going to retry GET");D.JSC$19751_backChannelAttemptId_++;D.JSC$19751_backChannelTimerId_=kW((0,_.qp)(D.JSC$19751_onStartBackChannelTimer_,D),e7d(D,D.JSC$19751_backChannelRetryCount_));D.JSC$19751_backChannelRetryCount_++;return!0};
Ov.prototype.JSC$19751_onStartBackChannelTimer_=function(){this.JSC$19751_backChannelTimerId_=null;this.JSC$19747_channelDebug_.debug("Creating new HttpRequest");this.JSC$19751_backChannelRequest_=new H3(this,this.JSC$19747_channelDebug_,this.sid_,"rpc",this.JSC$19751_backChannelAttemptId_);this.JSC$19751_backChannelRequest_.JSC$19739_extraHeaders_=this.JSC$19751_extraHeaders_;this.JSC$19751_backChannelRequest_.JSC$19739_readyStateChangeThrottleMs_=0;var D=this.JSC$19751_backChannelUri_.clone();_.Dq(D,
"RID","rpc");_.Dq(D,"SID",this.sid_);_.Dq(D,"CI",this.useChunked_?"0":"1");_.Dq(D,"AID",this.JSC$19751_lastArrayId_);KF(this,D);_.Dq(D,"TYPE","xmlhttp");JlU(this.JSC$19751_backChannelRequest_,D,!0,this.JSC$19751_hostPrefix_,!1);this.JSC$19747_channelDebug_.debug("New Request created")};
var nF=function(D,v,h){D.JSC$19747_channelDebug_.debug("Test Connection Finished");D.useChunked_=D.secondTestResults_==null?h:!D.secondTestResults_;D.JSC$19751_lastStatusCode_=v.JSC$19746_lastStatusCode_;D.asyncTest_||e_2(D)},sdr=function(D,v){D.JSC$19747_channelDebug_.debug("Test Connection Failed");
D.JSC$19751_lastStatusCode_=v.JSC$19746_lastStatusCode_;ei(D,2)};
Ov.prototype.JSC$19746_onRequestData=function(D,v){if(this.state_!=0&&(this.JSC$19751_backChannelRequest_==D||this.forwardChannelRequest_==D))if(this.JSC$19751_lastStatusCode_=D.JSC$19739_lastStatusCode_,this.forwardChannelRequest_==D&&this.state_==3)if(this.JSC$19751_channelVersion_>7){try{var h=this.JSC$19747_parser_.parse(v)}catch(a){h=null}if(Array.isArray(h)&&h.length==3)if(v=h,v[0]==0)a:if(this.JSC$19747_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19751_backChannelTimerId_)this.JSC$19747_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19751_backChannelRequest_)if(this.JSC$19751_backChannelRequest_.JSC$19739_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19739_requestStartTime_)TP$(this),this.JSC$19751_backChannelRequest_.cancel(),this.JSC$19751_backChannelRequest_=null;else break a;else this.JSC$19747_channelDebug_.warning("We do not have a BackChannel established");nkr(this);mu(19)}else this.JSC$19751_lastPostResponseArrayId_=v[1],D=this.JSC$19751_lastPostResponseArrayId_-this.JSC$19751_lastArrayId_,0<
D&&(v=v[2],this.JSC$19747_channelDebug_.debug(v+" bytes (in "+D+" arrays) are outstanding on the BackChannel"),v<37500&&this.useChunked_&&this.JSC$19751_backChannelRetryCount_==0&&!this.JSC$19751_deadBackChannelTimerId_&&(this.JSC$19751_deadBackChannelTimerId_=kW((0,_.qp)(this.JSC$19751_onBackChannelDead_,this),6E3)));else this.JSC$19747_channelDebug_.debug("Bad POST response data returned"),ei(this,11)}else v!="y2f%"&&(this.JSC$19747_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
ei(this,11));else this.JSC$19751_backChannelRequest_==D&&TP$(this),_.C7(v)||(D=this.JSC$19747_parser_.parse(v),this.onInput_(D))};
Ov.prototype.JSC$19751_onBackChannelDead_=function(){this.JSC$19751_deadBackChannelTimerId_!=null&&(this.JSC$19751_deadBackChannelTimerId_=null,this.JSC$19751_backChannelRequest_.cancel(),this.JSC$19751_backChannelRequest_=null,nkr(this),mu(20))};
var TP$=function(D){D.JSC$19751_deadBackChannelTimerId_!=null&&(_.$L.clearTimeout(D.JSC$19751_deadBackChannelTimerId_),D.JSC$19751_deadBackChannelTimerId_=null)};
Ov.prototype.JSC$19746_onRequestComplete=function(D){this.JSC$19747_channelDebug_.debug("Request complete");if(this.JSC$19751_backChannelRequest_==D){TP$(this);this.JSC$19751_backChannelRequest_=null;var v=2}else if(this.forwardChannelRequest_==D)this.forwardChannelRequest_=null,v=1;else return;this.JSC$19751_lastStatusCode_=D.JSC$19739_lastStatusCode_;if(this.state_!=0)if(D.JSC$19739_successful_)if(v==1){v=D.JSC$19739_postData_?D.JSC$19739_postData_.length:0;D=Date.now()-D.JSC$19739_requestStartTime_;
var h=L4s;h.dispatchEvent(new ylr(h,v,D,this.JSC$19751_forwardChannelRetryCount_));K4r(this);this.handler_&&this.handler_.JSC$19758_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else wtd(this);else{h=D.getLastError();if(h==3||h==7||h==0&&this.JSC$19751_lastStatusCode_>0)this.JSC$19747_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19747_channelDebug_.debug("Maybe retrying, last error: "+EMZ(h,this.JSC$19751_lastStatusCode_));var a;if(a=v==1)this.forwardChannelRequest_||
this.JSC$19751_forwardChannelTimerId_||this.state_==1||this.JSC$19751_forwardChannelRetryCount_>=2?a=!1:(this.JSC$19747_channelDebug_.debug("Going to retry POST"),this.JSC$19751_forwardChannelTimerId_=kW((0,_.qp)(this.JSC$19751_onStartForwardChannelTimer_,this,D),e7d(this,this.JSC$19751_forwardChannelRetryCount_)),this.JSC$19751_forwardChannelRetryCount_++,a=!0);if(a||v==2&&nkr(this))return;this.JSC$19747_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19747_channelDebug_.debug("Error: HTTP request failed");
switch(h){case 1:ei(this,5);break;case 4:ei(this,10);break;case 3:ei(this,6);break;case 7:ei(this,12);break;default:ei(this,2)}}};
var e7d=function(D,v){var h=5E3+Math.floor(Math.random()*1E4);D.isActive()||(D.JSC$19747_channelDebug_.debug("Inactive channel"),h*=2);return h*v};
Ov.prototype.onInput_=function(D){for(var v=0;v<D.length;v++){var h=D[v];this.JSC$19751_lastArrayId_=h[0];h=h[1];this.state_==2?h[0]=="c"?(this.sid_=h[1],this.JSC$19751_hostPrefix_=h[2],h=h[3],h!=null?this.JSC$19751_channelVersion_=h:this.JSC$19751_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19758_channelOpened(),this.JSC$19751_backChannelUri_=jdS(this,this.JSC$19751_hostPrefix_,this.JSC$19751_path_),wtd(this)):h[0]=="stop"&&ei(this,7):this.state_==3&&(h[0]=="stop"?ei(this,7):
h[0]!="noop"&&this.handler_&&this.handler_.JSC$19758_channelHandleArray(h),this.JSC$19751_backChannelRetryCount_=0)}};
Ov.prototype.JSC$19751_ensureInState_=function(D){if(!_.wc(arguments,this.state_))throw Error("Rk`"+this.state_);};
var ei=function(D,v){D.JSC$19747_channelDebug_.info("Error code "+v);if(v==2||v==9){var h=null;D.handler_&&(h=null);var a=(0,_.qp)(D.testGoogleComCallback_,D);h||(h=new _.aN("//www.google.com/images/cleardot.gif"),_.Sv(h));iZS(h.toString(),1E4,a)}else mu(2);D.onError_(v)};
Ov.prototype.testGoogleComCallback_=function(D){D?(this.JSC$19747_channelDebug_.info("Successfully pinged google.com"),mu(2)):(this.JSC$19747_channelDebug_.info("Failed to ping google.com"),mu(1),this.onError_(8))};
Ov.prototype.onError_=function(D){this.JSC$19747_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$19758_channelError(D);OrS(this);nM2(this)};
var OrS=function(D){D.state_=0;D.JSC$19751_lastStatusCode_=-1;if(D.handler_)if(D.pendingMaps_.length==0&&D.JSC$19747_outgoingMaps_.length==0)D.handler_.JSC$19758_channelClosed();else{D.JSC$19747_channelDebug_.debug("Number of undelivered maps, pending: "+D.pendingMaps_.length+", outgoing: "+D.JSC$19747_outgoingMaps_.length);var v=_.n7(D.pendingMaps_),h=_.n7(D.JSC$19747_outgoingMaps_);D.pendingMaps_.length=0;D.JSC$19747_outgoingMaps_.length=0;D.handler_.JSC$19758_channelClosed(v,h)}},Als=function(D,
v){v=dBX(D,null,v);
D.JSC$19747_channelDebug_.debug("GetForwardChannelUri: "+v);return v},jdS=function(D,v,h){v=dBX(D,D.JSC$19746_shouldUseSecondaryDomains()?v:null,h);
D.JSC$19747_channelDebug_.debug("GetBackChannelUri: "+v);return v},dBX=function(D,v,h){var a=_.tN(h);
if(a.JSC$10036_domain_!="")v&&_.zq(a,v+"."+a.JSC$10036_domain_),_.UG(a,a.JSC$10036_port_);else{var Q=window.location;a=zC2(Q.protocol,v?v+"."+Q.hostname:Q.hostname,+Q.port,h)}D.JSC$19751_extraParams_&&_.sV.forEach(D.JSC$19751_extraParams_,function(G,x){_.Dq(a,x,G)});
_.Dq(a,"VER",D.JSC$19751_channelVersion_);KF(D,a);return a};
Ov.prototype.JSC$19746_createXhrIo=function(D){if(D)throw Error("Ok");D=new _.OP;D.JSC$9800_withCredentials_=!1;return D};
Ov.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Ov.prototype.notifyServerReachabilityEvent=function(D){var v=L4s;v.dispatchEvent(new wFs(v,D))};
Ov.prototype.JSC$19746_shouldUseSecondaryDomains=function(){return!1};
new gaC;var OeI=function(){};
_.V=OeI.prototype;_.V.JSC$19758_channelOpened=function(){};
_.V.JSC$19758_channelHandleArray=function(){};
_.V.JSC$19758_channelSuccess=function(){};
_.V.JSC$19758_channelError=function(){};
_.V.JSC$19758_channelClosed=function(){};
_.V.JSC$19758_getAdditionalParams=function(){return{}};
_.V.isActive=function(){return!0};var KZ2=function(D){D.front_.length===0&&(D.front_=D.back_,D.front_.reverse(),D.back_=[])};
_.V=rV2.prototype;_.V.enqueue=function(D){this.back_.push(D)};
_.V.peek=function(){KZ2(this);return _.dc(this.front_)};
_.V.getCount=function(){return this.front_.length+this.back_.length};
_.V.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.V.clear=function(){this.front_=[];this.back_=[]};
_.V.contains=function(D){return _.wc(this.front_,D)||_.wc(this.back_,D)};
_.V.remove=function(D){var v=this.front_;var h=Array.prototype.lastIndexOf.call(v,D,v.length-1);h>=0?(_.XAi(v,h),v=!0):v=!1;return v||_.e2(this.back_,D)};
_.V.getValues=function(){for(var D=[],v=this.front_.length-1;v>=0;--v)D.push(this.front_[v]);v=this.back_.length;for(var h=0;h<v;++h)D.push(this.back_[h]);return D};var Tx=function(D){this.JSC$19762_map_=new _.N9;this.size=0;D&&this.addAll(D)},TjU=function(D){var v=typeof D;
return v=="object"&&D||v=="function"?"o"+_.iq(D):v.charAt(0)+D};
_.V=Tx.prototype;_.V.getCount=function(){return this.JSC$19762_map_.size};
_.V.add=function(D){this.JSC$19762_map_.set(TjU(D),D);this.size=this.JSC$19762_map_.size};
_.V.addAll=function(D){D=_.ov(D);for(var v=D.length,h=0;h<v;h++)this.add(D[h]);this.size=this.JSC$19762_map_.size};
_.V.removeAll=function(D){D=_.ov(D);for(var v=D.length,h=0;h<v;h++)this.remove(D[h]);this.size=this.JSC$19762_map_.size};
_.V.delete=function(D){D=this.JSC$19762_map_.remove(TjU(D));this.size=this.JSC$19762_map_.size;return D};
_.V.remove=function(D){return this.delete(D)};
_.V.clear=function(){this.JSC$19762_map_.clear();this.size=0};
_.V.isEmpty=function(){return this.JSC$19762_map_.size===0};
_.V.has=function(D){return this.JSC$19762_map_.containsKey(TjU(D))};
_.V.contains=function(D){return this.JSC$19762_map_.containsKey(TjU(D))};
_.V.getValues=function(){return this.JSC$19762_map_.getValues()};
_.V.values=function(){return this.JSC$19762_map_.values()};
_.V.clone=function(){return new Tx(this)};
_.V.equals=function(D){return this.getCount()==oa3(D)&&R7$(this,D)};
var R7$=function(D,v){var h=oa3(v);if(D.getCount()>h)return!1;!(v instanceof Tx)&&h>5&&(v=new Tx(v));return FT3(D,function(a){var Q=v;return Q.contains&&typeof Q.contains=="function"?Q.contains(a):Q.containsValue&&typeof Q.containsValue=="function"?Q.containsValue(a):_.O8(Q)||typeof Q==="string"?_.wc(Q,a):_.sV.containsValue(Q,a)})};
Tx.prototype.__iterator__=function(){return this.JSC$19762_map_.__iterator__(!1)};
Tx.prototype[Symbol.iterator]=function(){return this.values()};var ieI={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(D){return(this._clampValue(D)-this.min)/(this.max-this.min)},
_clampValue:function(D){return Math.min(this.max,Math.max(this.min,this._calcStep(D)))},
_calcStep:function(D){D=parseFloat(D);if(!this.step)return D;D=Math.round((D-this.min)/this.step);return this.step<1?D/(1/this.step)+this.min:D*this.step+this.min},
_validateValue:function(){var D=this._clampValue(this.value);this.value=this.oldValue=isNaN(D)?this.oldValue:D;return this.value!==D},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var WZZ;var tdK;_.yT({_template:function(){if(tdK!==void 0)return tdK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;WZZ===void 0&&(WZZ=document.createElement("template"));var a=WZZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return tdK=D},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.$R(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(D){D.keyCode===27&&(D.preventDefault(),this.close())},
_track:function(D){if(!this.persistent&&!this.disableSwipe)switch(D.preventDefault(),D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackMove(D);break;case "end":this._trackEnd(D)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var D=this.$.contentContainer.getBoundingClientRect();this._savedWidth=D.width;this._translateOffset=this.position==="left"?D.left:D.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(D){this._trackDetails&&(this._translateDrawer(D.detail.dx+this._translateOffset),this._trackDetails.push({dx:D.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(D){if(this._trackDetails){var v=D.detail.dx+this._translateOffset,h=this.getWidth();v=this.position==="left"?v>=0||v<=-h:v<=0||v>=h;if(!v){var a=this._trackDetails;this._trackDetails=null;this._flingDrawer(D,a);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}h/=2;D.detail.dx<-h?this.opened=this.position==="right":D.detail.dx>h&&(this.opened=this.position==="left");v?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(D,v){for(var h=Date.now(),a=h-100,Q,G=0,x=v.length-1;G<=x;){var f=G+x>>1,C=v[f];C.timeStamp>=a?(Q=C,x=f-1):G=f+1}return Q?(D.detail.dx-Q.dx)/(h-Q.timeStamp||1):0},
_flingDrawer:function(D,v){v=this._calculateVelocity(D,v);if(!(Math.abs(v)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;D=D.detail.dx+this._translateOffset;var h=this.getWidth(),a=this.position==="left",Q=v>0;Q?(v=Math.max(v,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(v=Math.min(v,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");v=this._FLING_INITIAL_SLOPE*(!Q&&a?-(D+h):Q&&!a?h-D:-D)/v;this._styleTransitionDuration(v);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,v)}},
_styleTransitionDuration:function(D){this.style.transitionDuration=D+"ms";this.$.contentContainer.style.transitionDuration=D+"ms";this.$.scrim.style.transitionDuration=D+"ms"},
_styleTransitionTimingFunction:function(D){this.$.contentContainer.style.transitionTimingFunction=D;this.$.scrim.style.transitionTimingFunction=D},
_translateDrawer:function(D){var v=this.getWidth();this.position==="left"?(D=Math.max(-v,Math.min(D,0)),this.$.scrim.style.opacity=1+D/v):(D=Math.max(0,Math.min(D,v)),this.$.scrim.style.opacity=1-D/v);this.translate3d(D+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var D=this._drawerState;D===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;D!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),D!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var D=_.qc(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');D.length>0?(this._firstTabStop=D[0],this._lastTabStop=D[D.length-1]):
this._lastTabStop=this._firstTabStop=null;(D=this.getAttribute("tabindex"))&&parseInt(D,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(D){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||D.keyCode!==9||(D.shiftKey?this._firstTabStop&&_.qc(D).localTarget===this._firstTabStop&&(D.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.qc(D).localTarget===this._lastTabStop&&(D.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(D,v){this.toggleClass("visible",D&&!v,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 rkK;var uwZ;_.yT({_template:function(){if(uwZ!==void 0)return uwZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;rkK===void 0&&(rkK=document.createElement("template"));var a=rkK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return uwZ=D},
is:"tp-yt-paper-progress",behaviors:[ieI],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(D){this.toggleClass("indeterminate",D,this.$.primaryProgress)},
_transformProgress:function(D,v){D.style.transform=D.style.webkitTransform="scaleX("+v/100+")"},
_mainRatioChanged:function(D){this._transformProgress(this.$.primaryProgress,D)},
_progressChanged:function(D,v,h,a,Q){D=this._clampValue(D);v=this._clampValue(v);var G=this._calcRatio(D)*100,x=this._calcRatio(v)*100;this._setSecondaryRatio(G);this._transformProgress(this.$.secondaryProgress,G);this._transformProgress(this.$.primaryProgress,x);this.secondaryProgress=D;Q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",v);this.setAttribute("aria-valuemin",h);this.setAttribute("aria-valuemax",a)},
_disabledChanged:function(D){this.setAttribute("aria-disabled",D?"true":"false")},
_hideSecondaryProgress:function(D){return D===0}});var DtU;var v$X;var hAI=function(){};
_.V=hAI.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._calcRatio=function(){};
_.V._clampValue=function(){};
_.V._calcStep=function(){};
_.V._validateValue=function(){};
_.V._update=function(){};
_.V._setImmediateValue=function(){};
_.V._setExpand=function(){};
_.V._setDragging=function(){};
_.V._setTransiting=function(){};
_.V._setMarkers=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setRatio=function(){};
hAI=_.yT({_template:function(){if(v$X!==void 0)return v$X;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;DtU===void 0&&(DtU=document.createElement("template"));var a=DtU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return v$X=D},
is:"tp-yt-paper-slider",behaviors:[_.Hq,_.ng,_.Tob,ieI],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&&_.eg(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(D,v,h){this.setAttribute("aria-valuemin",v);this.setAttribute("aria-valuemax",h);this.setAttribute("aria-valuenow",D);this._positionKnob(this._calcRatio(D)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(D){this._setImmediateValue(this._calcStep(this._calcKnobPosition(D)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(D){return(this.max-this.min)*D/100+this.min},
_onTrack:function(D){D.stopPropagation();switch(D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackX(D);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(D){this.dragging||this._trackStart(D);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,D.detail.dx*(this._isRTL?-1:1)));D=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(D);D=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(D+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var D=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;D.transform=D.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(D){this._expandKnob();D.preventDefault();this.focus()},
_bartrack:function(D){this._allowBarEvent(D)&&this._onTrack(D)},
_barclick:function(D){this._w=this.$.sliderBar.offsetWidth;var v=this.$.sliderBar.getBoundingClientRect();v=(D.detail.x-v.left)/this._w*100;this._isRTL&&(v=100-v);var h=this.ratio;this._setTransiting(!0);this._positionKnob(v);h===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
D.preventDefault();this.focus()},
_bardown:function(D){this._allowBarEvent(D)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(D))},
_knobTransitionEnd:function(D){D.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(D,v,h,a){a||this._setMarkers([]);v=Math.round((h-v)/this.step);v>D&&(v=D);if(v<0||!isFinite(v))v=0;this._setMarkers(Array(v))},
_mergeClasses:function(D){return Object.keys(D).filter(function(v){return D[v]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(D){return!this.ignoreBarTouch||D.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(D){this._isRTL?this._incrementKey(D):this._decrementKey(D)},
_rightKey:function(D){this._isRTL?this._decrementKey(D):this._incrementKey(D)},
_incrementKey:function(D){this.disabled||(D.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),D.preventDefault())},
_decrementKey:function(D){this.disabled||(D.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),D.preventDefault())},
_changeValue:function(D){this.value=D.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(D){D.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.KPF._createRipple.call(this)},
_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=D?"":"none",this._ripple.holdDown=D)}});var awm;var $tZ;var RO=null,QSS=function(){};
_.V=QSS.prototype;_.V.fit=function(){};
_.V._discoverInfo=function(){};
_.V.resetFit=function(){};
_.V.refit=function(){};
_.V.position=function(){};
_.V.constrain=function(){};
_.V._sizeDimension=function(){};
_.V.__sizeDimension=function(){};
_.V.center=function(){};
_.V.__getNormalizedRect=function(){};
_.V.__getOffscreenArea=function(){};
_.V.__getPosition=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V.toggle=function(){};
_.V.open=function(){};
_.V.close=function(){};
_.V.cancel=function(){};
_.V.invalidateTabbables=function(){};
_.V._ensureSetup=function(){};
_.V._canceledChanged=function(){};
_.V._withBackdropChanged=function(){};
_.V._prepareRenderOpened=function(){};
_.V._finishRenderOpened=function(){};
_.V._finishRenderClosed=function(){};
_.V._preparePositioning=function(){};
_.V._finishPositioning=function(){};
_.V._applyFocus=function(){};
_.V._onCaptureClick=function(){};
_.V._onCaptureFocus=function(){};
_.V._onCaptureEsc=function(){};
_.V._onCaptureTab=function(){};
_.V._onIronResize=function(){};
_.V._onNodesChange=function(){};
_.V.__ensureFirstLastFocusables=function(){};
_.V.__openedChanged=function(){};
_.V.__deraf=function(){};
_.V.__updateScrollObservers=function(){};
_.V.__addScrollListeners=function(){};
_.V.__removeScrollListeners=function(){};
_.V.__isValidScrollAction=function(){};
_.V.__onCaptureScroll=function(){};
_.V.__saveScrollPosition=function(){};
_.V.__restoreScrollPosition=function(){};
_.V._setCanceled=function(){};
QSS=_.yT({_template:function(){if($tZ!==void 0)return $tZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;awm===void 0&&(awm=document.createElement("template"));var a=awm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);return $tZ=D},
is:"tp-yt-paper-toast",behaviors:[_.MB],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(){_.yk._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.$M.requestAvailability()},
show:function(D){typeof D=="string"&&(D={text:D});for(var v in D)v.indexOf("_")===0?_.yk._warn('The property "'+v+'" is private and was not set.'):v in this?this[v]=D[v]:_.yk._warn('The property "'+v+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(D){D&&D.target===this&&D.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(RO&&RO!==this&&RO.close(),RO=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):RO===this&&(RO=null);_.xM._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(D){this.positionTarget=D},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var GPZ=new _.z0("disablePersonalizationAction");var TvS=new _.z0("showDmaConsentFlowCommand");var R6S=new _.z0("showMmgNoticeCommand");var Vud=new _.z0("saveConsentAction");var PKC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.yK(D)};
_.J(PKC,_.xo);var xtZ=_.KM8(PKC);var MuU=new _.z0("updateTopbarAvatarAction");var fwK=new _.z0("channelHandleValidationResultRenderer");var CK$=new _.z0("generateHandleFromNameResultRenderer");var o$$=new _.z0("channelHandleInputRenderer");var FpX=new _.z0("copyLinkRenderer");var zAC=new _.z0("timedCommand");var UtZ=new _.z0("clearCookieAction");var LpK=new _.z0("getMultiPageMenuAction");var ZOb=new _.z0("addToGuideSectionAction"),E$Z=new _.z0("removeFromGuideSectionAction");var IwS=new _.z0("updateNotificationsUnseenCountAction");var g$m=new _.z0("resetChannelUnreadCountCommand");var kPr=new _.z0("resetSubscriptionsUnreadDotCommand");var SaZ=new _.z0("selectLanguageCommand");var Pj$=new _.z0("sendFeedbackAction");var JEd=new _.z0("uploadImageToScottyCommand");var p2K=new _.z0("registerPromoCommand");var lws=new _.z0("setPushNotificationsEnabledCommand");var N2m=new _.z0("desktopTopbarRenderer");var Ya$=new _.z0("surveyFollowUpRenderer");var B2K=new _.z0("handlesClaimingRadioOptionRenderer");var cEr=new _.z0("hotkeyDialogRenderer");var X2r=new _.z0("modifyReportFormCommand");var AEI=new _.z0("accountLinkCommand");var qa$=new _.z0("accountUnlinkCommand");var bOU=new _.z0("logAccountLinkingEventCommand");var dtb=new _.z0("guideCollapsibleEntryRenderer");var jSs=new _.z0("guideDownloadsEntryRenderer");var sS2=new _.z0("guideEntryRenderer");var mtS=new _.z0("getLocationCommand");var HOr=new _.z0("locationCollectionCommand");var yEC=new _.z0("storiesItemViewModel");var w2C=new _.z0("addToRemoteQueueAction");var eAs=new _.z0("insertInRemoteQueueAction");var n$Z=new _.z0("removeFromRemoteQueueAction");var OO3=new _.z0("notificationRenderer");var XOd=new _.z0("localWatchHistoryCommand");var Kpr=new _.z0("pdgBuyFlowHeaderRenderer");var T2r=new _.z0("pdgColorSliderRenderer");var RAm=new _.z0("pdgCommentOptionRenderer");var iOb=new _.z0("pdgCommentPreviewRenderer");var WpS=new _.z0("superVodSelectableItemButtonRenderer");var tub=new _.z0("switchButtonRenderer");var rEm=new _.z0("upsellDialogRenderer");var ucU=new _.z0("feedbackQuestionRenderer"),DmU=new _.z0("feedbackOptionRenderer");var vir=new _.z0("sponsorshipsTierRenderer"),heU=new _.z0("sponsorshipsPromotionChannelRenderer");var aZS=new _.z0("simpleSurveyMessageRenderer");var Ppb=new _.z0("invokeInstrumentManagerAction");var $mb=new _.z0("logYpcFlowDismissCommand");var Q12=new _.z0("logYpcFlowStartCommand");var GJI=new _.z0("unlimitedCreateFamilyEndpoint");var Vfr=new _.z0("iconBadgeRenderer");var AnK=new _.z0("collaborativePlaylistVisibilityValidationRule");var PX2=function(D){_.XI.call(this,"channelMessage");this.message=D};
_.J(PX2,_.XI);var xmC=function(D){_.XI.call(this,"channelError");this.error=D};
_.J(xmC,_.XI);var MfI={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv"},fZd={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},CXX={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},oiS={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},F_$={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var io=function(D){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.N9;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;D&&(this.id=D.id||D.name,this.name=D.name,this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=D.app,this.type=D.type||"REMOTE_CONTROL",this.username=D.user||"",this.avatar=D.userAvatarUri||"",this.obfuscatedGaiaId=D.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=D.ownerObfuscatedGaiaId||"",this.castUserId=D.castUserId||"",this.theme=D.theme||"u",zeS(this,D.capabilities||""),UmS(this,
D.compatibleSenderThemes||""),L_I(this,D.experiments||""),this.remoteControllerUrl=D.remoteControllerUrl||"",this.localChannelEncryptionKey=D.localChannelEncryptionKey||"",this.deviceContext=D.deviceContext,this.brand=D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=D.pairingType||"unknown",D=D.deviceInfo)&&(D=JSON.parse(D),this.brand=
D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
io.prototype.copy=function(){var D={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(D.brand=this.brand);
this.model&&(D.model=this.model);this.year&&(D.year=this.year);this.os&&(D.os=this.os);this.osVersion&&(D.osVersion=this.osVersion);this.chipset&&(D.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(D.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(D.mdxDialServerType=this.mdxDialServerType);D=new io(D);D.connected=this.connected;D.remoteControllerUrl=this.remoteControllerUrl;D.localChannelEncryptionKey=this.localChannelEncryptionKey;D.deviceContext=
this.deviceContext;D.castUserId=this.castUserId;return D};
io.prototype.equals=function(D){return D?this.id==D.id:!1};
var zeS=function(D,v){D.capabilities.clear();_.op(v.split(","),_.NF(_.sV.contains,MfI)).forEach(function(h){D.capabilities.add(h)})},UmS=function(D,v){D.compatibleSenderThemes.clear();
_.op(v.split(","),_.NF(_.sV.contains,fZd)).forEach(function(h){D.compatibleSenderThemes.add(h)})},L_I=function(D,v){D.experiments.clear();
v.split(",").forEach(function(h){D.experiments.add(h)})};_.fa(DKK,_.AN);_.V=DKK.prototype;_.V.JSC$19798_onTick_=function(){this.JSC$19796_interval_=Math.min(3E5,this.JSC$19796_interval_*2);this.JSC$19798_listener_();this.nextTickTime_&&this.start()};
_.V.start=function(){var D=this.JSC$19796_interval_+15E3*Math.random(),v=this.delay_;v.isActive()||v.start(D);this.nextTickTime_=Date.now()+D};
_.V.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.V.isActive=function(){return this.delay_.isActive()};
_.V.reset=function(){this.delay_.stop();this.JSC$19796_interval_=5E3};_.fa(JC,OeI);_.V=JC.prototype;_.V.subscribe=function(D,v,h){return this.pubsub_.subscribe(D,v,h)};
_.V.unsubscribe=function(D,v,h){return this.pubsub_.unsubscribe(D,v,h)};
_.V.unsubscribeByKey=function(D){return this.pubsub_.unsubscribeByKey(D)};
_.V.publish=function(D,v){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.V.dispose=function(){this.JSC$19799_disposed_||(this.JSC$19799_disposed_=!0,_.V5(this.pubsub_),this.disconnect(),_.V5(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19799_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.E9({})})};
_.V.isDisposed=function(){return this.JSC$19799_disposed_};
_.V.connect=function(D,v,h){var a=this,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return _.Jw(C,2),a.useAsyncBrowserChannelHandler_?C.yield(a.connectPromise_,2):C.jumpTo(2);_.S_(C);if(a.JSC$19799_disposed_||a.JSC$19799_channel_&&a.JSC$19799_channel_.getState()==2)return C.return();a.sCookie_="";a.reconnectTimer_.stop();a.connectionParams_=D||null;a.connectUi_=v||0;Q=a.JSC$19799_pathPrefix_+"/test";G=a.JSC$19799_pathPrefix_+"/bind";x=new Ov(h?h.firstTestResults:null,h?h.secondTestResults:null,
a.enableAsyncTest_);if(f=a.JSC$19799_channel_)f.handler_=null;x.handler_=a;a.JSC$19799_channel_=x;if(a.useAsyncBrowserChannelHandler_)return a.connectPromise_=ZC2(a).then(function(){return Eis(a,Q,G,f,h)}),C.return(a.connectPromise_.then(function(){a.connectPromise_=_.E9()}));
Eis(a,Q,G,f,h);return _.pf(C,0)})};
var Eis=function(D,v,h,a,Q){IZd(D);if(D.JSC$19799_channel_){var G=_.eA("ID_TOKEN"),x=D.JSC$19799_channel_.JSC$19751_extraHeaders_||{};G?x["x-youtube-identity-token"]=G:delete x["x-youtube-identity-token"];D.JSC$19799_channel_.JSC$19751_extraHeaders_=x}gi3(D);a?(a.getState(),D.JSC$19799_channel_.connect(v,h,D.defaultQueryParams_,a.sid_,a.JSC$19751_lastArrayId_)):Q?D.JSC$19799_channel_.connect(v,h,D.defaultQueryParams_,Q.sessionId,Q.arrayId):D.JSC$19799_channel_.connect(v,h,D.defaultQueryParams_)};
JC.prototype.disconnect=function(D){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.E9())}finally{this.disconnectUi_=D||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),IZd(this),this.JSC$19799_channel_&&(this.JSC$19799_channel_.getState()==3&&mvK(this.JSC$19799_channel_),this.JSC$19799_channel_.disconnect()),this.disconnectUi_=0}};
JC.prototype.sendMessage=function(D,v){var h=this,a;return _.M(function(Q){switch(Q.nextAddress){case 1:_.Jw(Q,2);if(!h.useAsyncBrowserChannelHandler_){Q.jumpTo(2);break}return Q.yield(h.connectPromise_,2);case 2:_.S_(Q);if(h.JSC$19799_disposed_)return Q.return();a={_sc:D};v&&_.sV.extend(a,v);if(h.reconnectTimer_.isActive()||(h.JSC$19799_channel_?h.JSC$19799_channel_.getState():0)==2){h.JSC$19799_pendingMessages_.push(a);Q.jumpTo(6);break}if(!h.isChannelOpened()){Q.jumpTo(6);break}_.Jw(Q,8);if(!h.useAsyncBrowserChannelHandler_||
kJI(h,D)){Q.jumpTo(8);break}return Q.yield(ZC2(h),8);case 8:_.S_(Q,0,0,1);h.isChannelOpened()&&(kJI(h,D)||gi3(h),IZd(h),R_Z(h.JSC$19799_channel_,a));_.pf(Q,6,1);break;case 6:_.pf(Q,0)}})};
var kJI=function(D,v){return D.enableMdxAuthForConnectionOnly_?!0:D.disableMdxAuthForAdMessages_?Object.values(CXX).includes(v):D.disableMdxAuthForNonPlaybackMessages_?!Object.values(oiS).includes(v):D.disableMdxAuthForShortsMessages_?Object.values(F_$).includes(v):!1};
JC.prototype.JSC$19758_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19799_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)S02(this);else{var D=this.JSC$19799_pendingMessages_;this.JSC$19799_pendingMessages_=[];var v=D.length;gi3(this);J9d(this,D,v);p0d(this)}else p0d(this)};
var S02=function(D){var v,h;_.M(function(a){if(a.nextAddress==1)return _.Jw(a,2),a.yield(ZC2(D),2);_.S_(a);v=D.JSC$19799_pendingMessages_;D.JSC$19799_pendingMessages_=[];h=v.length;J9d(D,v,h);p0d(D);return _.pf(a,0)})},J9d=function(D,v,h){for(var a=0;a<h;++a)R_Z(D.JSC$19799_channel_,v[a]);
p0d(D)},p0d=function(D){D.publish("handlerOpened");
D.JSC$19799_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.V=JC.prototype;_.V.JSC$19758_channelError=function(D){var v=D==2&&this.JSC$19799_channel_.JSC$19751_lastStatusCode_==401;D==4||v||this.reconnectTimer_.start();this.publish("handlerError",D,v);v=Object.keys(HrK).find(function(h){return HrK[h]===D});
this.JSC$19799_channelErrorCounter.increment("BROWSER_CHANNEL",v!=null?v:"UNKNOWN")};
_.V.JSC$19758_channelClosed=function(D,v){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(v)for(var h=v.length,a=0;a<h;++a){var Q=v[a].map;Q&&this.JSC$19799_pendingMessages_.push(Q)}this.JSC$19799_channelClosedCounter.increment("BROWSER_CHANNEL");D&&this.pendingMapsOnClosedCounter.JSC$9936_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",D.length);v&&this.undeliveredMapsOnClosedCounter.JSC$9939_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
v.length)};
_.V.JSC$19758_channelSuccess=function(D,v){v!=null&&D!=null&&this.channelMessageSentCounter.increment()};
_.V.JSC$19758_getAdditionalParams=function(){var D={v:2};this.sCookie_&&(D.gsessionid=this.sCookie_);this.connectUi_!=0&&(D.ui=""+this.connectUi_);this.disconnectUi_!=0&&(D.ui=""+this.disconnectUi_);this.connectionParams_&&_.sV.extend(D,this.connectionParams_);return D};
_.V.JSC$19758_channelHandleArray=function(D){D[0]=="S"?this.sCookie_=D[1]:D[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19799_channel_.disconnect()):this.publish("handlerMessage",new uS3(D[0],D[1]));this.JSC$19799_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.V.isChannelOpened=function(){return!!this.JSC$19799_channel_&&this.JSC$19799_channel_.getState()==3};
var IZd=function(D){if(D.JSC$19799_channel_){var v=D.JSC$19799_getXsrfToken_(),h=D.JSC$19799_channel_.JSC$19751_extraHeaders_||{};v?h["x-youtube-lounge-xsrf-token"]=v:delete h["x-youtube-lounge-xsrf-token"];D.JSC$19799_channel_.JSC$19751_extraHeaders_=h}},ZC2=function(D){if(D.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.E9();
if(!D.enableCachedUpdateAuthorizationHeader_)return lZr(D);D.updateAuthorizationHeaderPromise_===null&&(D.updateAuthorizationHeaderPromise_=lZr(D));return D.updateAuthorizationHeaderPromise_},lZr=function(D){return _.yS(D.getAuthorizationHeader_().then(function(v){NG2(D,v)}).thenCatch(function(){}),function(){D.updateAuthorizationHeaderPromise_=null})},NG2=function(D,v){if(D.JSC$19799_channel_){var h=D.JSC$19799_channel_.JSC$19751_extraHeaders_||{};
v&&Object.keys(v).length>0?h=Object.assign({},h,v):delete h.Authorization;D.JSC$19799_channel_.JSC$19751_extraHeaders_=h}},gi3=function(D){D.getAuthorizationHeaderSync_&&!D.useAsyncBrowserChannelHandler_&&NG2(D,D.getAuthorizationHeaderSync_())};
_.V=JC.prototype;_.V.setLoungeToken=function(D){(this.defaultQueryParams_.loungeIdToken=D)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19799_channel_){var v=this.JSC$19799_channel_.JSC$19751_extraHeaders_||{};D?v["X-YouTube-LoungeId-Token"]=D:delete v["X-YouTube-LoungeId-Token"];this.JSC$19799_channel_.JSC$19751_extraHeaders_=v}};
_.V.getDeviceId=function(){return this.defaultQueryParams_.id};
_.V.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var D=this.reconnectTimer_;D.delay_.fire();D.start()};
_.V.safeReconnect_=function(){var D=this.JSC$19799_channel_,v=0;D.JSC$19751_backChannelRequest_&&v++;D.forwardChannelRequest_&&v++;v==0&&this.connect(this.connectionParams_,this.connectUi_)};var XD=function(D,v){var h=D.basePath;D.supportCors&&(h=D.scheme+"://"+D.domain+D.port+D.basePath);return _.hO(h+v,{})};
pt.prototype.sendRequest=function(D,v,h,a,Q,G,x){D={format:G?"RAW":"JSON",method:D,context:this,timeout:5E3,withCredentials:!!x,onSuccess:_.NF(this.JSC$19804_onSuccess_,a,!G),onError:_.NF(this.onError_,Q),onTimeout:_.NF(this.JSC$19804_onTimeout_,Q)};h&&(D.postParams=h,D.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.kd(v,D)};
pt.prototype.JSC$19804_onSuccess_=function(D,v,h,a){v?D(a):D({text:h.responseText})};
pt.prototype.onError_=function(D,v){D(Error("Sk`"+v.status))};
pt.prototype.JSC$19804_onTimeout_=function(D){D(Error("Tk"))};var NW=function(D,v){return!!v&&(D.id==v||D.uuid==v)},Y0$=function(D){return{name:D.name,
screenId:D.id,loungeToken:D.token,dialId:D.uuid,screenIdType:D.idType}},BGZ=function(D){return new lG(D)},c9Z=function(D){return Array.isArray(D)?_.mO(D,BGZ):[]},M3S=function(D){if(!D)return"null";
var v=D.token?".."+D.token.slice(-6):"-",h=D.uuid?".."+D.uuid.slice(-6):"-";return'{name:"'+D.name+'",id:'+D.id.substr(0,6)+"..,token:"+(v+",uuid:"+h+",idType:"+D.idType+"}")},sq$=function(D){return Array.isArray(D)?"["+_.mO(D,M3S).join(",")+"]":"null"};var LNU="",cy=null;var lpC=function(D,v){_.jZ.call(this);var h=this;this.handler=D();this.handler.subscribe("handlerOpened",this.JSC$19811_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(a,Q){h.onError(Q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=v};
_.J(lpC,_.jZ);_.V=lpC.prototype;_.V.connect=function(D,v,h){this.handler.connect(D,v,h)};
_.V.disconnect=function(D){this.handler.disconnect(D)};
_.V.reconnect=function(){this.handler.reconnect()};
_.V.getDeviceId=function(){return this.handler.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.V.JSC$19811_onOpened=function(){this.dispatchEvent("channelOpened");var D=this.handler,v=this.currentScreenId;_.eL("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!D.JSC$19799_channel_.useChunked_,sessionId:D.JSC$19799_channel_.sid_,arrayId:D.JSC$19799_channel_.JSC$19751_lastArrayId_});_.eL("yt-remote-session-screen-id",v);D=fpr();v=CP2();_.wc(D,v)||D.push(v);UKS(D);zSC()};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(D){this.dispatchEvent(new PX2(D))};
_.V.onError=function(D){this.dispatchEvent(new xmC(D?1:0))};
_.V.sendMessage=function(D,v){this.handler.sendMessage(D,v)};
_.V.setLoungeToken=function(D){this.handler.setLoungeToken(D)};
_.V.dispose=function(){this.handler.dispose()};var p82=function(D,v,h){var a=this;h=h===void 0?function(){return""}:h;
var Q=Q===void 0?new Cb3:Q;var G=G===void 0?new _.JO:G;this.pathPrefix=D;this.defaultQueryParams=v;this.getXsrfToken=h;this.JSC$19814_pubsub=G;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new DKK(function(){var x;((x=a.channel)==null?void 0:ev3((new z_3(x,x.JSC$19722_channel_)).JSC$19732_channel_.forwardChannelRequestPool_))===0&&a.connect(a.connectionParams,a.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19814_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19814_channelOpenedCounter=new vtU;this.JSC$19814_channelClosedCounter=new hSb;this.JSC$19814_channelMessageReceivedCounter=new $KC;this.JSC$19814_channelErrorCounter=new QqZ};
p82.prototype.connect=function(D,v){D=D===void 0?{}:D;v=v===void 0?0:v;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=D,this.connectUi=v,X03(this),(D=_.eA("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=D:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new sv(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,A9m(this))};
var A9m=function(D){_.s_(D.channel,"w",function(){D.channelState=3;D.reconnectTimer.reset();D.connectionParams=null;D.connectUi=0;for(var v=_.P(D.nonAckedMessagesOnChannelClosed),h=v.next();!h.done;h=v.next())h=h.value,D.channel&&D.channel.send(h);D.nonAckedMessagesOnChannelClosed=[];D.publish("webChannelOpened");D.JSC$19814_channelOpenedCounter.increment("WEB_CHANNEL")});
_.s_(D.channel,"x",function(){D.channelState=0;D.reconnectTimer.isActive()||D.publish("webChannelClosed");var v,h=(v=D.channel)==null?void 0:UBd(new z_3(v,v.JSC$19722_channel_));h&&(D.nonAckedMessagesOnChannelClosed=[].concat(_.j_(h)));D.JSC$19814_channelClosedCounter.increment("WEB_CHANNEL")});
_.s_(D.channel,"z",function(v){var h=v.data;h[0]==="gracefulReconnect"?(D.reconnectTimer.start(),D.channel&&D.channel.close()):D.publish("webChannelMessage",new uS3(h[0],h[1]));D.lastStatusCode=v.statusCode;D.JSC$19814_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.s_(D.channel,"y",function(){D.lastStatusCode===401||D.reconnectTimer.start();D.publish("webChannelError");D.JSC$19814_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.V=p82.prototype;_.V.disconnect=function(D){this.disconnectUi=D===void 0?0:D;this.reconnectTimer.stop();X03(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.V.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var D=this.reconnectTimer;D.delay_.fire();D.start()};
_.V.sendMessage=function(D,v){this.channel&&(X03(this),D=Object.assign({},{_sc:D},v),this.channel.send(D))};
_.V.setLoungeToken=function(D){D||this.reconnectTimer.stop();D?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=D:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var X03=function(D){var v=D.getXsrfToken();v?D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=v:delete D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.V=p82.prototype;_.V.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.V.publish=function(D){return this.JSC$19814_pubsub.publish.apply(this.JSC$19814_pubsub,[D].concat(_.j_(_.Kz.apply(1,arguments))))};
_.V.subscribe=function(D,v,h){return this.JSC$19814_pubsub.subscribe(D,v,h)};
_.V.unsubscribe=function(D,v,h){return this.JSC$19814_pubsub.unsubscribe(D,v,h)};
_.V.unsubscribeByKey=function(D){return this.JSC$19814_pubsub.unsubscribeByKey(D)};
_.V.dispose=function(){this.JSC$19814_disposed||(this.JSC$19814_disposed=!0,_.V5(this.JSC$19814_pubsub),this.disconnect(),_.V5(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.V.isDisposed=function(){return this.JSC$19814_disposed};var JD$=function(D){_.jZ.call(this);this.webChannelService=D();this.webChannelService.subscribe("webChannelOpened",this.JSC$19822_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.J(JD$,_.jZ);_.V=JD$.prototype;_.V.connect=function(D,v){this.webChannelService.connect(D,v)};
_.V.disconnect=function(D){this.webChannelService.disconnect(D)};
_.V.reconnect=function(){this.webChannelService.reconnect()};
_.V.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.V.JSC$19822_onOpened=function(){this.dispatchEvent("channelOpened")};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(D){this.dispatchEvent(new PX2(D))};
_.V.onError=function(){this.dispatchEvent(new xmC(this.webChannelService.lastStatusCode===401?1:0))};
_.V.sendMessage=function(D,v){this.webChannelService.sendMessage(D,v)};
_.V.setLoungeToken=function(D){this.webChannelService.setLoungeToken(D)};
_.V.dispose=function(){this.webChannelService.dispose()};var jqs=Date.now(),AC=null,bbs=Array(50),dg=-1,dKd=!1;_.fa(jP,_.yl);jP.prototype.getScreens=function(){return this.screens};
jP.prototype.contains=function(D){return!!MQ2(this.screens,D)};
jP.prototype.get=function(D){return D?YW(this.screens,D):null};
var q0d=function(D,v){var h=D.get(v.uuid)||D.get(v.id);if(h)return D=h.name,h.id=v.id||h.id,h.name=v.name,h.token=v.token,h.uuid=v.uuid||h.uuid,h.name!=D;D.screens.push(v);return!0},bCI=function(D,v){var h=D.screens.length!=v.length;
D.screens=_.op(D.screens,function(G){return!!MQ2(v,G)});
for(var a=v.length,Q=0;Q<a;Q++)h=q0d(D,v[Q])||h;return h},dmX=function(D,v){var h=D.screens.length;
D.screens=_.op(D.screens,function(a){return!(a||v?!a!=!v?0:a.id==v.id:1)});
return D.screens.length<h};
jP.prototype.info=function(D){qW(this.JSC$19823_logName_,D)};var j1r=function(D,v,h,a,Q){_.yl.call(this);this.JSC$19826_http_=D;this.pairingCode_=v;this.deviceId_=h;this.friendlyName_=a;this.enableShortLivedLoungeToken_=Q;this.pollIndex_=0;this.JSC$19826_xhr_=null;this.JSC$19826_timer_=NaN};
_.J(j1r,_.yl);_.V=j1r.prototype;_.V.start=function(){!this.JSC$19826_xhr_&&isNaN(this.JSC$19826_timer_)&&this.poll_()};
_.V.stop=function(){this.JSC$19826_xhr_&&(this.JSC$19826_xhr_.abort(),this.JSC$19826_xhr_=null);isNaN(this.JSC$19826_timer_)||(_.IZ(this.JSC$19826_timer_),this.JSC$19826_timer_=NaN)};
_.V.disposeInternal=function(){this.stop();_.yl.prototype.disposeInternal.call(this)};
_.V.poll_=function(){this.JSC$19826_timer_=NaN;this.JSC$19826_xhr_=_.kd(XD(this.JSC$19826_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.qp)(this.JSC$19828_onSuccess_,this),onError:(0,_.qp)(this.onError_,this),onTimeout:(0,_.qp)(this.JSC$19828_onTimeout_,this)})};
_.V.JSC$19828_onSuccess_=function(D,v){this.JSC$19826_xhr_=null;D=v.screen||{};D.dialId=this.deviceId_;D.name=this.friendlyName_;v=-1;this.enableShortLivedLoungeToken_&&D.shortLivedLoungeToken&&D.shortLivedLoungeToken.value&&D.shortLivedLoungeToken.refreshIntervalMs&&(D.screenIdType="shortLived",D.loungeToken=D.shortLivedLoungeToken.value,v=D.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new lG(D),v)};
_.V.onError_=function(D){this.JSC$19826_xhr_=null;D.status&&D.status==404?this.pollIndex_>=s1r.length?this.publish("pairingFailed",Error("Uk")):(D=s1r[this.pollIndex_],this.JSC$19826_timer_=_.ZX((0,_.qp)(this.poll_,this),D),this.pollIndex_++):this.publish("pairingFailed",Error("Vk`"+D.status))};
_.V.JSC$19828_onTimeout_=function(){this.JSC$19826_xhr_=null;this.publish("pairingFailed",Error("Wk"))};
var s1r=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.fa(mw,jP);_.V=mw.prototype;_.V.start=function(){ss(this)&&this.publish("screenChange");!_.nq("yt-remote-lounge-token-expiration")&&mm$(this);_.IZ(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.ZX((0,_.qp)(this.start,this),1E4)};
_.V.add=function(D,v){ss(this);q0d(this,D);HCC(this,!1);this.publish("screenChange");v(D);D.token||mm$(this)};
_.V.remove=function(D,v){var h=ss(this);dmX(this,D)&&(HCC(this,!1),h=!0);v(D);h&&this.publish("screenChange")};
_.V.updateName=function(D,v,h,a){var Q=ss(this),G=this.get(D.id);G?(G.name!=v&&(G.name=v,HCC(this,!1),Q=!0),h(D)):a(Error("Xk"));Q&&this.publish("screenChange")};
_.V.disposeInternal=function(){_.IZ(this.loungeTokenRefreshTimer_);mw.superClass_.disposeInternal.call(this)};
var mm$=function(D){if(D.screens.length){var v=_.mO(D.screens,function(a){return a.id}),h=XD(D.JSC$19830_http_,"/pairing/get_lounge_token_batch");
D.JSC$19830_http_.sendRequest("POST",h,{screen_ids:v.join(",")},(0,_.qp)(D.handleLoungeTokens_,D),(0,_.qp)(D.handleLoungeTokenError_,D))}};
mw.prototype.handleLoungeTokens_=function(D){ss(this);var v=this.screens.length;D=D&&D.screens||[];for(var h=D.length,a=0;a<h;++a){var Q=D[a],G=this.get(Q.screenId);G&&(G.token=Q.loungeToken,--v)}HCC(this,!v);v&&qW(this.JSC$19823_logName_,"Missed "+v+" lounge tokens.")};
mw.prototype.handleLoungeTokenError_=function(D){qW(this.JSC$19823_logName_,"Requesting lounge tokens failed: "+D)};
var ss=function(D){if(_.g("deprecate_pair_servlet_enabled"))return bCI(D,[]);var v=c9Z(EtK());v=_.op(v,function(h){return!h.uuid});
return bCI(D,v)},HCC=function(D,v){gtK(_.mO(D.screens,Y0$));
v&&IpU()};var W3=function(D,v){_.yl.call(this);this.getScreensToCheck_=v;v=(v=_.nq("yt-remote-online-screen-ids")||"")?v.split(","):[];for(var h={},a=this.getScreensToCheck_(),Q=a.length,G=0;G<Q;++G){var x=a[G].id;h[x]=_.wc(v,x)}this.screenIdSet_=h;this.JSC$19833_http_=D;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;y93("Initialized with "+(0,_.nD)(this.screenIdSet_))};
_.J(W3,_.yl);W3.prototype.isOnline=function(D){return!!this.screenIdSet_[D]};
W3.prototype.start=function(){var D=parseInt(_.nq("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.M6()-144E5<D?0:D)?w0d(this):(this.fastCheckEndTime_=_.M6()+3E5,_.eL("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
W3.prototype.isEmpty=function(){return _.sV.isEmpty(this.screenIdSet_)};
W3.prototype.update=function(){y93("Updating availability on schedule.");var D=this.getScreensToCheck_(),v=_.sV.filter(this.screenIdSet_,function(h,a){return h&&!!YW(D,a)},this);
eeU(this,v)};
var ni3=function(D,v,h){var a=XD(D.JSC$19833_http_,"/pairing/get_screen_availability");D.JSC$19833_http_.sendRequest("POST",a,{lounge_token:v.token},(0,_.qp)(function(Q){Q=Q.screens||[];for(var G=Q.length,x=0;x<G;++x)if(Q[x].loungeToken==v.token){h(Q[x].status=="online");return}h(!1)},D),(0,_.qp)(function(){h(!1)},D))};
W3.prototype.disposeInternal=function(){_.IZ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.yl.prototype.disposeInternal.call(this)};
var eeU=function(D,v){a:if(_.sV.getCount(v)!=_.sV.getCount(D.screenIdSet_))var h=!1;else{h=_.sV.getKeys(v);for(var a=h.length,Q=0;Q<a;++Q)if(!D.screenIdSet_[h[Q]]){h=!1;break a}h=!0}h||(y93("Updated online screens: "+(0,_.nD)(D.screenIdSet_)),D.screenIdSet_=v,D.publish("screenChange"));OCZ(D)},w0d=function(D){isNaN(D.refreshTimer_)||_.IZ(D.refreshTimer_);
D.refreshTimer_=_.ZX((0,_.qp)(D.requestScreenAvailability_,D),D.fastCheckEndTime_>0&&D.fastCheckEndTime_<_.M6()?2E4:1E4)};
W3.prototype.requestScreenAvailability_=function(){_.IZ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var D=K_C(this);if(_.sV.getCount(D)){var v=XD(this.JSC$19833_http_,"/pairing/get_screen_availability"),h={lounge_token:_.sV.getKeys(D).join(",")};this.currentRequest_=this.JSC$19833_http_.sendRequest("POST",v,h,(0,_.qp)(this.onScreenAvailability_,this,D),(0,_.qp)(this.onScreenAvailabilityError_,this))}else eeU(this,{}),w0d(this)};
W3.prototype.onScreenAvailability_=function(D,v){this.currentRequest_=null;var h=_.sV.getKeys(K_C(this));if(_.WA(h,_.sV.getKeys(D))){v=v.screens||[];h={};for(var a=v.length,Q=0;Q<a;++Q)h[D[v[Q].loungeToken]]=v[Q].status=="online";eeU(this,h);w0d(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
W3.prototype.onScreenAvailabilityError_=function(D){this.warn_("Screen availability failed: "+D);this.currentRequest_=null;w0d(this)};
var y93=function(D){qW("OnlineScreenService",D)};
W3.prototype.warn_=function(D){qW("OnlineScreenService",D)};
var K_C=function(D){var v={};_.rM(D.getScreensToCheck_(),function(h){h.token?v[h.token]=h.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return v},OCZ=function(D){D=_.sV.getKeys(_.sV.filter(D.screenIdSet_,function(v){return v}));
D.sort(_.dri);D.length?_.eL("yt-remote-online-screen-ids",D.join(","),60):_.OL("yt-remote-online-screen-ids")};_.fa(Hy,jP);_.V=Hy.prototype;_.V.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.V.add=function(D,v,h){this.localScreenService_.add(D,v,h)};
_.V.remove=function(D,v,h){this.localScreenService_.remove(D,v,h);this.onlineScreenService_.update()};
_.V.updateName=function(D,v,h,a){this.localScreenService_.contains(D)?this.localScreenService_.updateName(D,v,h,a):(D="Updating name of unknown screen: "+D.name,qW(this.JSC$19823_logName_,D),a(Error(D)))};
_.V.getScreens=function(D){return D?this.screens:eyK(this.screens,_.op(this.automaticScreens_,function(v){return!this.contains(v)},this))};
_.V.JSC$19838_getOnlineScreens=function(){return _.op(this.getScreens(!0),function(D){return this.onlineScreenService_.isOnline(D.id)},this)};
var ReX=function(D,v,h,a,Q,G){D.info("getAutomaticScreenByIds "+h+" / "+v);h||(h=D.deviceToScreenId_[v]);var x=D.getScreens(),f=h?YW(x,h):null;h&&(D.disableAutomaticScreenCache_||f)||(f=YW(x,v));if(f){f.uuid=v;var C=ti(D,f);ni3(D.onlineScreenService_,C,function(U){Q(U?C:null)})}else h?TGX(D,h,(0,_.qp)(function(U){var L=ti(this,new lG({name:a,
screenId:h,loungeToken:U,dialId:v||""}));ni3(this.onlineScreenService_,L,function(Z){Q(Z?L:null)})},D),G):Q(null)};
Hy.prototype.JSC$19838_getScreenByPollingPairingCode=function(D,v,h,a,Q,G){var x=this;this.info("getDialScreenByPairingCode "+D+" / "+v);var f=new j1r(this.JSC$19836_http_,D,v,h,a);f.subscribe("pairingComplete",function(C,U){_.V5(f);Q(ti(x,C),U)});
f.subscribe("pairingFailed",function(C){_.V5(f);G(C)});
f.start();return(0,_.qp)(f.stop,f)};
var iCr=function(D,v){for(var h=D.screens.length,a=0;a<h;++a)if(D.screens[a].name==v)return D.screens[a];return null};
Hy.prototype.JSC$19838_getScreenByPairingCode=function(D,v,h,a){_.kd(XD(this.JSC$19836_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:D},timeout:5E3,onSuccess:(0,_.qp)(function(Q,G){Q=new lG(G.screen||{});if(!Q.name||iCr(this,Q.name)){a:{G=Q.name;for(var x=2,f=v(G,x);iCr(this,f);){x++;if(x>20)break a;f=v(G,x)}G=f}Q.name=G}h(ti(this,Q))},this),
onError:(0,_.qp)(function(Q){a(Error("Yk`"+Q.status))},this),
onTimeout:(0,_.qp)(function(){a(Error("Zk"))},this)})};
var W_U=function(D,v,h){ni3(D.onlineScreenService_,v,h)};
Hy.prototype.disposeInternal=function(){_.V5(this.localScreenService_);_.V5(this.onlineScreenService_);Hy.superClass_.disposeInternal.call(this)};
var TGX=function(D,v,h,a){D.info("requestLoungeToken_ for "+v);var Q={postParams:{screen_ids:v},method:"POST",context:D,onSuccess:function(G,x){G=x&&x.screens||[];G[0]&&G[0].screenId==v?h(G[0].loungeToken):a(Error("$k"))},
onError:function(){a(Error("al"))}};
_.kd(XD(D.JSC$19836_http_,"/pairing/get_lounge_token_batch"),Q)},tfI=function(D){D.screens=D.localScreenService_.getScreens();
for(var v=_.sV.transpose(D.deviceToScreenId_),h=D.screens.length,a=0;a<h;++a){var Q=D.screens[a];Q.uuid=v[Q.id]||""}D.info("Updated manual screens: "+sq$(D.screens))};
Hy.prototype.handleScreenChange_=function(){tfI(this);this.publish("screenChange");this.onlineScreenService_.update()};
var mKZ=function(D){r9m(D);D.localScreenService_=new mw(D.JSC$19836_http_);D.localScreenService_.subscribe("screenChange",(0,_.qp)(D.handleScreenChange_,D));tfI(D);D.disableAutomaticScreenCache_||(D.automaticScreens_=c9Z(_.nq("yt-remote-automatic-screen-cache")||[]));r9m(D);D.info("Initializing automatic screens: "+sq$(D.automaticScreens_));D.onlineScreenService_=new W3(D.JSC$19836_http_,(0,_.qp)(D.getScreens,D,!0));D.onlineScreenService_.subscribe("screenChange",(0,_.qp)(function(){this.publish("onlineScreenChange")},
D))},ti=function(D,v){var h=D.get(v.id);
h?(h.uuid=v.uuid,v=h):((h=YW(D.automaticScreens_,v.uuid))?(h.id=v.id,h.token=v.token,v=h):D.automaticScreens_.push(v),D.disableAutomaticScreenCache_||ugZ(D));r9m(D);D.deviceToScreenId_[v.uuid]=v.id;_.eL("yt-remote-device-id-map",D.deviceToScreenId_,31536E3);return v},ugZ=function(D){D=_.op(D.automaticScreens_,function(v){return v.idType!="shortLived"});
_.eL("yt-remote-automatic-screen-cache",_.mO(D,Y0$))},r9m=function(D){D.deviceToScreenId_=_.nq("yt-remote-device-id-map")||{}};
Hy.prototype.dispose=Hy.prototype.dispose;_.fa(yu,_.yl);var rF=function(D,v){D.screen_=v;D.publish("sessionScreen",D.screen_)},D4r=function(D,v){D.screen_&&(D.screen_.token=v,ti(D.JSC$19840_screenService_,D.screen_));
D.publish("sessionScreen",D.screen_)};
yu.prototype.onSessionStopped=function(D){this.isDisposed()||(D&&(uo(this,""+D),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
yu.prototype.info=function(D){qW(this.JSC$19840_logName_,D)};
var uo=function(D,v){qW(D.JSC$19840_logName_,v)};
yu.prototype.JSC$19842_getCastSession=function(){return null};
yu.prototype.setDisplayStatus=function(D){var v=this.receiver_;D?(v.displayStatus=new chrome.cast.ReceiverDisplayStatus(D,[]),v.displayStatus.showStop=!0):v.displayStatus=null;chrome.cast.setReceiverDisplayStatus(v,(0,_.qp)(function(){this.info("Updated receiver status for "+v.friendlyName+": "+D)},this),(0,_.qp)(function(){uo(this,"Failed to update receiver status for: "+v.friendlyName)},this))};
yu.prototype.disposeInternal=function(){this.setDisplayStatus("");yu.superClass_.disposeInternal.call(this)};var Da=function(D,v,h){yu.call(this,D,v,"CastSession");var a=this;this.config_=h;this.JSC$19845_session_=null;this.JSC$19845_boundSessionUpdate_=(0,_.qp)(this.JSC$19847_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.qp)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.ZX(function(){v3r(a,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19845_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19845_isInitLoungeToken_=!1;this.JSC$19845_lastLoungeTokenRefreshError_="unknown"};
_.J(Da,yu);_.V=Da.prototype;
_.V.setCastSession=function(D){if(this.JSC$19845_session_){if(this.JSC$19845_session_==D)return;uo(this,"Overriding cast session with new session object");hbK(this);this.JSC$19845_isInitLoungeToken_=!1;this.JSC$19845_lastLoungeTokenRefreshError_="unknown";this.JSC$19845_session_.removeUpdateListener(this.JSC$19845_boundSessionUpdate_);this.JSC$19845_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19845_session_=D;this.JSC$19845_session_.addUpdateListener(this.JSC$19845_boundSessionUpdate_);this.JSC$19845_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);aeX(this,"getMdxSessionStatus")};
_.V.launchWithParams=function(D){this.info("launchWithParams no-op for Cast: "+(0,_.nD)(D))};
_.V.stop=function(){if(this.JSC$19845_session_)this.JSC$19845_session_.stop((0,_.qp)(function(){this.onSessionStopped()},this),(0,_.qp)(function(){this.onSessionStopped(Error("bl"))},this));
else this.onSessionStopped(Error("cl"))};
_.V.setDisplayStatus=function(){};
_.V.disposeInternal=function(){this.info("disposeInternal");hbK(this);this.JSC$19845_session_&&(this.JSC$19845_session_.removeUpdateListener(this.JSC$19845_boundSessionUpdate_),this.JSC$19845_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19845_session_=null;yu.prototype.disposeInternal.call(this)};
var Q8S=function(D,v){_.IZ(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0;v==0?$4I(D):D.getLoungeTokenTimeoutKey_=_.ZX(function(){$4I(D)},v)},$4I=function(D){aeX(D,"getLoungeToken");
_.IZ(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=_.ZX(function(){Gn2(D,null)},3E4)},aeX=function(D,v){D.info("sendYoutubeMessage_: "+v+" "+(0,_.nD)(void 0));
var h={};h.type=v;D.JSC$19845_session_?D.JSC$19845_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",h,function(){},(0,_.qp)(function(){uo(this,"Failed to send message: "+v+".")},D)):uo(D,"Sending yt message without session: "+(0,_.nD)(h))};
Da.prototype.onYoutubeMessage_=function(D,v){if(!this.isDisposed())if(v)if(v=(0,_.jC)(v),_.Ro(v))switch(D=""+v.type,v=v.data||{},this.info("onYoutubeMessage_: "+D+" "+(0,_.nD)(v)),D){case "mdxSessionStatus":v3r(this,v);break;case "loungeToken":Gn2(this,v);break;default:uo(this,"Unknown youtube message: "+D)}else uo(this,"Unable to parse message.");else uo(this,"No data in message.")};
var VWS=function(D,v){if(v)D.info("onConnectedScreenId_: Received screenId: "+v),D.screen_&&D.screen_.id==v||D.getScreen_(v,function(h){rF(D,h)},function(){return D.onSessionStopped()},5);
else D.onSessionStopped(Error("dl"))},x4K=function(D,v,h){D.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(v));
var a=new lG(v);P6m(D,a,function(Q){Q?(D.JSC$19845_isInitLoungeToken_=!0,ti(D.JSC$19840_screenService_,a),rF(D,a),D.JSC$19845_lastLoungeTokenRefreshError_="unknown",Q8S(D,h)):(_.OM(Error("el`"+JSON.stringify(v))),D.onSessionStopped())},5)},v3r=function(D,v){_.IZ(D.sessionStatusTimeoutKey_);
D.sessionStatusTimeoutKey_=0;if(v)D.config_.enableCastLoungeToken&&v.loungeToken?v.deviceId?D.screen_&&D.screen_.uuid==v.deviceId||(v.loungeTokenRefreshIntervalMs?x4K(D,{name:D.receiver_.friendlyName,screenId:v.screenId,loungeToken:v.loungeToken,dialId:v.deviceId,screenIdType:"shortLived"},v.loungeTokenRefreshIntervalMs):(_.OM(Error("gl`"+JSON.stringify(v))),VWS(D,v.screenId))):(_.OM(Error("fl`"+JSON.stringify(v))),VWS(D,v.screenId)):VWS(D,v.screenId);else D.onSessionStopped(Error("dl"))},Gn2=function(D,
v){_.IZ(D.onLoungeTokenTimeoutKey_);
D.onLoungeTokenTimeoutKey_=0;var h=null;if(v)if(v.loungeToken){var a;((a=D.screen_)==null?void 0:a.token)==v.loungeToken&&(h="staleLoungeToken")}else h="missingLoungeToken";else h="noLoungeTokenResponse";h?(D.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(v)+", error: "+h)),D.JSC$19845_lastLoungeTokenRefreshError_=h,Q8S(D,3E4)):(D4r(D,v.loungeToken),D.JSC$19845_isInitLoungeToken_=!1,D.JSC$19845_lastLoungeTokenRefreshError_="unknown",Q8S(D,v.loungeTokenRefreshIntervalMs))};
Da.prototype.getScreen_=function(D,v,h,a){_.IZ(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;ReX(this.JSC$19840_screenService_,this.receiver_.label,D,this.receiver_.friendlyName,(0,_.qp)(function(Q){Q?v(Q):a>=0?(uo(this,"Screen "+D+" appears to be offline. "+a+" retries left."),this.getScreenTimeoutKey_=_.ZX((0,_.qp)(this.getScreen_,this,D,v,h,a-1),300)):h(Error("hl"))},this),h)};
var P6m=function(D,v,h,a){_.IZ(D.JSC$19845_checkScreenAvailabilityTimeoutKey_);D.JSC$19845_checkScreenAvailabilityTimeoutKey_=0;W_U(D.JSC$19840_screenService_,v,function(Q){Q||a<0?h(Q):D.JSC$19845_checkScreenAvailabilityTimeoutKey_=_.ZX(function(){P6m(D,v,h,a-1)},300)})};
Da.prototype.JSC$19842_getCastSession=function(){return this.JSC$19845_session_};
Da.prototype.JSC$19847_onSessionUpdate_=function(D){this.isDisposed()||D||(uo(this,"Cast session died."),this.onSessionStopped())};
var hbK=function(D){_.IZ(D.getScreenTimeoutKey_);D.getScreenTimeoutKey_=0;_.IZ(D.JSC$19845_checkScreenAvailabilityTimeoutKey_);D.JSC$19845_checkScreenAvailabilityTimeoutKey_=0;_.IZ(D.sessionStatusTimeoutKey_);D.sessionStatusTimeoutKey_=0;_.IZ(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=0;_.IZ(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0};var vb=function(D,v,h,a){yu.call(this,D,v,"DialSession");this.config_=a;this.JSC$19849_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19849_theme_=h;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19849_deferredLaunchDeadlineTimer_=NaN;this.JSC$19849_boundSessionUpdate_=(0,_.qp)(this.JSC$19851_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19849_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19849_isInitLoungeToken_=!1;this.JSC$19849_lastLoungeTokenRefreshError_="unknown"};
_.J(vb,yu);vb.prototype.setCastSession=function(D){this.JSC$19849_session_=D;this.JSC$19849_session_.addUpdateListener(this.JSC$19849_boundSessionUpdate_)};
vb.prototype.launchWithParams=function(D){this.connectData_=D;this.deferredLaunch_()};
vb.prototype.stop=function(){MW2(this);if(this.JSC$19849_session_)this.JSC$19849_session_.stop((0,_.qp)(this.onSessionStopped,this,null),(0,_.qp)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
vb.prototype.disposeInternal=function(){MW2(this);this.JSC$19849_session_&&this.JSC$19849_session_.removeUpdateListener(this.JSC$19849_boundSessionUpdate_);this.JSC$19849_session_=null;yu.prototype.disposeInternal.call(this)};
var fed=function(D){var v;return!!(D.config_.enableDialLoungeToken&&((v=D.JSC$19849_session_)==null?0:v.getDialAppInfo))},C6$=function(D){D.cancelPolling_=D.JSC$19840_screenService_.JSC$19838_getScreenByPollingPairingCode(D.reversePairingCode_,D.receiver_.label,D.receiver_.friendlyName,fed(D),function(v,h){D.cancelPolling_=function(){};
D.JSC$19849_isInitLoungeToken_=!0;rF(D,v);v.idType=="shortLived"&&h>0&&hR(D,h)},function(v){D.cancelPolling_=function(){};
D.onSessionStopped(v)})};
vb.prototype.JSC$19851_onSessionUpdate_=function(D){this.isDisposed()||D||(uo(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var o3d=function(D){var v={};v.pairingCode=D.reversePairingCode_;v.theme=D.JSC$19849_theme_;S_s()&&(v.env_useStageMdx=1);return _.SO(v)},FYU=function(D){return new Promise(function(v){D.reversePairingCode_=PPb();
if(D.connectData_){var h=new chrome.cast.DialLaunchResponse(!0,o3d(D));v(h);C6$(D)}else D.deferredLaunch_=function(){_.IZ(D.JSC$19849_deferredLaunchDeadlineTimer_);D.deferredLaunch_=function(){};
D.JSC$19849_deferredLaunchDeadlineTimer_=NaN;var a=new chrome.cast.DialLaunchResponse(!0,o3d(D));v(a);C6$(D)},D.JSC$19849_deferredLaunchDeadlineTimer_=_.ZX(function(){D.deferredLaunch_()},100)})},U4S=function(D,v,h){D.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(v));
var a=new lG(v);return(new Promise(function(Q){zbr(D,a,function(G){G?(D.JSC$19849_isInitLoungeToken_=!0,ti(D.JSC$19840_screenService_,a),rF(D,a),hR(D,h)):_.OM(Error("jl`"+JSON.stringify(v)));Q(G)},5)})).then(function(Q){return Q?new chrome.cast.DialLaunchResponse(!1):FYU(D)})},LYC=function(D,v){var h=D.launchData_.receiver.label,a=D.receiver_.friendlyName;
return(new Promise(function(Q){ReX(D.JSC$19840_screenService_,h,v,a,function(G){G&&G.token&&rF(D,G);Q(G)},function(G){uo(D,"Failed to get DIAL screen: "+G);
Q(null)})})).then(function(Q){return Q&&Q.token?new chrome.cast.DialLaunchResponse(!1):FYU(D)})},zbr=function(D,v,h,a){_.IZ(D.JSC$19849_checkScreenAvailabilityTimeoutKey_);
D.JSC$19849_checkScreenAvailabilityTimeoutKey_=0;W_U(D.JSC$19840_screenService_,v,function(Q){Q||a<0?h(Q):D.JSC$19849_checkScreenAvailabilityTimeoutKey_=_.ZX(function(){zbr(D,v,h,a-1)},300)})},hR=function(D,v){D.info("getDialAppInfoWithTimeout_ "+v);
fed(D)&&(_.IZ(D.getDialAppInfoTimeoutKey_),D.getDialAppInfoTimeoutKey_=0,v==0?ZnI(D):D.getDialAppInfoTimeoutKey_=_.ZX(function(){ZnI(D)},v))},ZnI=function(D){fed(D)&&D.JSC$19849_session_.getDialAppInfo(function(v){D.info("getDialAppInfo dialLaunchData: "+JSON.stringify(v));
v=v.extraData||{};var h=null;if(v.loungeToken){var a;((a=D.screen_)==null?void 0:a.token)==v.loungeToken&&(h="staleLoungeToken")}else h="missingLoungeToken";h?(D.JSC$19849_lastLoungeTokenRefreshError_=h,hR(D,3E4)):(D.JSC$19849_isInitLoungeToken_=!1,D.JSC$19849_lastLoungeTokenRefreshError_="unknown",D4r(D,v.loungeToken),hR(D,v.loungeTokenRefreshIntervalMs))},function(v){D.info("getDialAppInfo error: "+v);
D.JSC$19849_lastLoungeTokenRefreshError_="noLoungeTokenResponse";hR(D,3E4)})},MW2=function(D){_.IZ(D.JSC$19849_checkScreenAvailabilityTimeoutKey_);
D.JSC$19849_checkScreenAvailabilityTimeoutKey_=0;_.IZ(D.getDialAppInfoTimeoutKey_);D.getDialAppInfoTimeoutKey_=0;D.cancelPolling_();D.cancelPolling_=function(){};
_.IZ(D.JSC$19849_deferredLaunchDeadlineTimer_)};var aL=function(D,v){yu.call(this,D,v,"ManualSession");this.JSC$19853_deferredLaunchDeadlineTimer_=_.ZX((0,_.qp)(this.launchWithParams,this,null),150)};
_.J(aL,yu);aL.prototype.stop=function(){this.onSessionStopped()};
aL.prototype.setCastSession=function(){};
aL.prototype.launchWithParams=function(){_.IZ(this.JSC$19853_deferredLaunchDeadlineTimer_);this.JSC$19853_deferredLaunchDeadlineTimer_=NaN;var D=YW(this.JSC$19840_screenService_.getScreens(),this.receiver_.label);if(D)rF(this,D);else this.onSessionStopped(Error("kl"))};
aL.prototype.disposeInternal=function(){_.IZ(this.JSC$19853_deferredLaunchDeadlineTimer_);this.JSC$19853_deferredLaunchDeadlineTimer_=NaN;yu.prototype.disposeInternal.call(this)};var Os=function(D,v){_.yl.call(this);this.config_=v;this.JSC$19856_screenService_=D;this.JSC$19856_appId_=v.appId||"233637DE";this.JSC$19856_theme_=v.theme||"cl";this.disableDial_=v.disableCastApi||!1;this.forceMirroring_=v.forceMirroring||!1;this.JSC$19856_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.qp)(this.onReceiverAction_,this)};
_.J(Os,_.yl);
Os.prototype.init=function(D,v){chrome.cast.timeout.requestSession=3E4;var h=new chrome.cast.SessionRequest(this.JSC$19856_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.g("desktop_enable_cast_connect")&&(h.androidReceiverCompatible=!0);this.disableDial_||(h.dialRequest=new chrome.cast.DialRequest("YouTube"));var a=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;D=D||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Q=(0,_.qp)(this.onReceiverUpdated_,
this);h=new chrome.cast.ApiConfig(h,(0,_.qp)(this.onSessionEstablished_,this),Q,a,D);h.customDialLaunchCallback=(0,_.qp)(this.onDialLaunchRequested_,this);chrome.cast.initialize(h,(0,_.qp)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),X8C(),this.JSC$19856_screenService_.subscribe("onlineScreenChange",(0,_.qp)(this.JSC$19858_onScreenChange_,this)),this.customReceivers_=E33(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.qp)(function(G){this.warn_("Failed to set initial custom receivers: "+(0,_.nD)(G))},this)),this.publish("yt-remote-cast2-availability-change",$n(this)),v(!0))},this),(0,_.qp)(function(G){this.warn_("Failed to initialize API: "+(0,_.nD)(G));
v(!1)},this))};
Os.prototype.setConnectedScreenStatus=function(D,v){QJ("Setting connected screen ID: "+D+" -> "+v);if(this.JSC$19856_session_){var h=this.JSC$19856_session_.screen_;if(!D||h&&h.id!=D)QJ("Unsetting old screen status: "+this.JSC$19856_session_.receiver_.friendlyName),GW(this,null)}if(D&&v){if(!this.JSC$19856_session_){D=YW(this.JSC$19856_screenService_.getScreens(),D);if(!D){QJ("setConnectedScreenStatus: Unknown screen.");return}if(D.idType=="shortLived"){QJ("setConnectedScreenStatus: Screen with id type to be short lived.");
return}h=Ie2(this,D);h||(QJ("setConnectedScreenStatus: Connected receiver not custom..."),h=new chrome.cast.Receiver(D.uuid?D.uuid:D.id,D.name),h.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(h),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.qp)(function(a){this.warn_("Failed to set initial custom receivers: "+(0,_.nD)(a))},this)));
QJ("setConnectedScreenStatus: new active receiver: "+h.friendlyName);GW(this,new aL(this.JSC$19856_screenService_,h),!0)}this.JSC$19856_session_.setDisplayStatus(v)}else QJ("setConnectedScreenStatus: no screen.")};
var Ie2=function(D,v){return v?_.j2(D.customReceivers_,function(h){return NW(v,h.label)},D):null};
Os.prototype.setLaunchParams=function(D){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19856_session_?this.JSC$19856_session_.launchWithParams(D):this.warn_("Setting connection data without a session")};
Os.prototype.JSC$19858_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19856_session_?(this.JSC$19856_session_.stop(),GW(this,null)):QJ("Stopping non-existing session")};
Os.prototype.requestSession=function(){chrome.cast.requestSession((0,_.qp)(this.onSessionEstablished_,this),(0,_.qp)(this.onSessionRequestFailed_,this))};
Os.prototype.disposeInternal=function(){this.JSC$19856_screenService_.unsubscribe("onlineScreenChange",(0,_.qp)(this.JSC$19858_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.e2(_.T3("yt.mdx.remote.debug.handlers_")||[],Y_r);_.V5(this.JSC$19856_session_);_.yl.prototype.disposeInternal.call(this)};
var QJ=function(D){qW("Controller",D)};
Os.prototype.warn_=function(D){qW("Controller",D)};
var Y_r=function(D){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(D)},$n=function(D){return D.hasCastReceiver_||!!D.customReceivers_.length||!!D.JSC$19856_session_},GW=function(D,v,h){v!=D.JSC$19856_session_&&(_.V5(D.JSC$19856_session_),(D.JSC$19856_session_=v)?(h?D.publish("yt-remote-cast2-receiver-resumed",v.receiver_):D.publish("yt-remote-cast2-receiver-selected",v.receiver_),v.subscribe("sessionScreen",(0,_.qp)(D.onSessionScreen_,D,v)),v.subscribe("sessionFailed",
function(){return g3$(D,v)}),v.screen_?D.publish("yt-remote-cast2-session-change",v.screen_):h&&D.JSC$19856_session_.launchWithParams(null)):D.publish("yt-remote-cast2-session-change",null))},g3$=function(D,v){D.JSC$19856_session_==v&&D.publish("yt-remote-cast2-session-failed")};
_.V=Os.prototype;_.V.onSessionScreen_=function(D,v){this.JSC$19856_session_==D&&(v||GW(this,null),this.publish("yt-remote-cast2-session-change",v))};
_.V.onReceiverAction_=function(D,v){if(!this.isDisposed())if(D)switch(D.friendlyName=chrome.cast.unescape(D.friendlyName),QJ("onReceiverAction_ "+D.label+" / "+D.friendlyName+"-- "+v),v){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19856_session_)if(this.JSC$19856_session_.receiver_.label!=D.label)QJ("onReceiverAction_: Stopping active receiver: "+this.JSC$19856_session_.receiver_.friendlyName),this.JSC$19856_session_.stop();else{QJ("onReceiverAction_: Casting to active receiver.");this.JSC$19856_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19856_session_.screen_);break}switch(D.receiverType){case chrome.cast.ReceiverType.CUSTOM:GW(this,new aL(this.JSC$19856_screenService_,D));break;case chrome.cast.ReceiverType.DIAL:GW(this,new vb(this.JSC$19856_screenService_,D,this.JSC$19856_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:GW(this,new Da(this.JSC$19856_screenService_,D,this.config_));break;default:this.warn_("Unknown receiver type: "+D.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19856_session_&&
this.JSC$19856_session_.receiver_.label==D.label?this.JSC$19856_session_.stop():this.warn_("Stopping receiver w/o session: "+D.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.V.onDialLaunchRequested_=function(D){if(this.isDisposed())return Promise.reject(Error("ll"));var v=D.receiver;v.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+v.friendlyName),v.receiverType=chrome.cast.ReceiverType.DIAL);var h=this.JSC$19856_session_?this.JSC$19856_session_.receiver_:null;if(!h||h.label!=v.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+v.friendlyName),Promise.reject(Error("ml"));if(h&&h.label==v.label&&h.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19856_session_.screen_)return QJ("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19856_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+h.receiverType+'" to "dial" for '+v.friendlyName);GW(this,new vb(this.JSC$19856_screenService_,v,this.JSC$19856_theme_,this.config_))}v=this.JSC$19856_session_;v.launchData_=D;v.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(D=v.launchData_.extraData||{},h=D.screenId||null,fed(v)&&D.loungeToken?D.loungeTokenRefreshIntervalMs?D=U4S(v,{name:v.receiver_.friendlyName,screenId:D.screenId,loungeToken:D.loungeToken,dialId:v.launchData_.receiver.label,screenIdType:"shortLived"},D.loungeTokenRefreshIntervalMs):(_.OM(Error("il`"+JSON.stringify(D))),D=LYC(v,h)):D=LYC(v,h)):D=FYU(v);return D};
_.V.onSessionEstablished_=function(D){var v=this;if(!this.isDisposed()&&!this.forceMirroring_){QJ("New cast session ID: "+D.sessionId);var h=D.receiver;if(h.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19856_session_)if(h.receiverType==chrome.cast.ReceiverType.CAST)QJ("Got resumed cast session before resumed mdx connection."),h.friendlyName=chrome.cast.unescape(h.friendlyName),GW(this,new Da(this.JSC$19856_screenService_,h,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var a=this.JSC$19856_session_.receiver_,Q=YW(this.JSC$19856_screenService_.getScreens(),a.label);Q&&NW(Q,h.label)&&a.receiverType!=chrome.cast.ReceiverType.CAST&&h.receiverType==chrome.cast.ReceiverType.CAST&&(QJ("onSessionEstablished_: manual to cast session change "+h.friendlyName),_.V5(this.JSC$19856_session_),this.JSC$19856_session_=new Da(this.JSC$19856_screenService_,h,this.config_),this.JSC$19856_session_.subscribe("sessionScreen",(0,_.qp)(this.onSessionScreen_,this,this.JSC$19856_session_)),
this.JSC$19856_session_.subscribe("sessionFailed",function(){return g3$(v,v.JSC$19856_session_)}),this.JSC$19856_session_.launchWithParams(null));
this.JSC$19856_session_.setCastSession(D)}}};
_.V.JSC$19858_getCastSession=function(){return this.JSC$19856_session_?this.JSC$19856_session_.JSC$19842_getCastSession():null};
_.V.onSessionRequestFailed_=function(D){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.nD)(D)),D.code!=chrome.cast.ErrorCode.CANCEL&&GW(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.V.onReceiverUpdated_=function(D){QJ("Receiver availability updated: "+D);if(!this.isDisposed()){var v=$n(this);this.hasCastReceiver_=D==chrome.cast.ReceiverAvailability.AVAILABLE;$n(this)!=v&&this.publish("yt-remote-cast2-availability-change",$n(this))}};
var E33=function(D){var v=D.JSC$19856_screenService_.JSC$19838_getOnlineScreens(),h=D.JSC$19856_session_&&D.JSC$19856_session_.receiver_;D=_.mO(v,function(a){h&&NW(a,h.label)&&(h=null);var Q=a.uuid?a.uuid:a.id,G=Ie2(this,a);G?(G.label=Q,G.friendlyName=a.name):(G=new chrome.cast.Receiver(Q,a.name),G.receiverType=chrome.cast.ReceiverType.CUSTOM);return G},D);
h&&(h.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(h=new chrome.cast.Receiver(h.label,h.friendlyName),h.receiverType=chrome.cast.ReceiverType.CUSTOM),D.push(h));return D};
Os.prototype.JSC$19858_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=E33(this),QJ("Updating custom receivers: "+(0,_.nD)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.qp)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",$n(this)))};
Os.prototype.setLaunchParams=Os.prototype.setLaunchParams;Os.prototype.setConnectedScreenStatus=Os.prototype.setConnectedScreenStatus;Os.prototype.stopSession=Os.prototype.JSC$19858_stopSession;Os.prototype.getCastSession=Os.prototype.JSC$19858_getCastSession;Os.prototype.requestSession=Os.prototype.requestSession;Os.prototype.init=Os.prototype.init;Os.prototype.dispose=Os.prototype.dispose;var knr=_.DK(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),a2C=[],KN3=_.UV(knr);var StZ=function(D){D.audioTrackId=null;D.trackData=null;D.playerState=-1;D.hasPrevious=!1;D.hasNext=!1;D.playerTime_=0;D.playerTimeAt_=_.M6();D.seekableStart_=0;D.seekableEnd_=0;D.duration_=0;D.loadedTime=0;D.liveIngestionTime_=NaN;D.isLive_=!1};
_.V=Kt.prototype;
_.V.reset=function(D){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;D&&(this.index=D.index,this.listId=D.listId,this.videoId=D.videoId,this.playerState=D.playerState,this.volume=D.volume,this.muted=D.muted,this.audioTrackId=D.audioTrackId,this.trackData=D.trackData,this.hasPrevious=D.hasPrevious,this.hasNext=D.hasNext,this.playerTime_=D.playerTime,this.playerTimeAt_=D.playerTimeAt,this.seekableStart_=D.seekableStart,this.seekableEnd_=D.seekableEnd,this.duration_=D.duration,this.loadedTime=
D.loadedTime,this.liveIngestionTime_=D.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.V.stopPlayer=function(){this.index=-1;this.videoId="";StZ(this)};
_.V.isPlaying=function(){return this.playerState==1};
_.V.isBuffering=function(){return this.playerState==3};
_.V.isAdPlaying=function(){return this.playerState==1081};
var VJ=function(D,v){D.playerTime_=v;D.playerTimeAt_=_.M6()},Jqs=function(D){switch(D.playerState){case 1:case 1081:return(_.M6()-D.playerTimeAt_)/1E3+D.playerTime_;
case -1E3:return 0}return D.playerTime_};
Kt.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.M6()-this.playerTimeAt_)/1E3:0):this.duration_};
var pMS=function(D,v,h){var a=D.videoId;D.videoId=v;D.index=h;v!=a&&StZ(D)},lem=function(D){var v={};
v.index=D.index;v.listId=D.listId;v.videoId=D.videoId;v.playerState=D.playerState;v.volume=D.volume;v.muted=D.muted;v.audioTrackId=D.audioTrackId;v.trackData=_.sV.unsafeClone(D.trackData);v.hasPrevious=D.hasPrevious;v.hasNext=D.hasNext;v.playerTime=D.playerTime_;v.playerTimeAt=D.playerTimeAt_;v.seekableStart=D.seekableStart_;v.seekableEnd=D.seekableEnd_;v.duration=D.duration_;v.loadedTime=D.loadedTime;v.liveIngestionTime=D.liveIngestionTime_;return v};
Kt.prototype.clone=function(){return new Kt(lem(this))};var DA=function(D,v){_.yl.call(this);var h=this;this.state_=0;this.connection_=D;this.contextSubscriptions_=[];this.actionQueue_=new rV2;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.qp)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.qp)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.qp)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.qp)(this.onCloudviewAvailabilityChange_,this);var a=0;D?(a=D.getProxyState(),
a!=3&&(D.subscribe("proxyStateChange",this.setState_,this),NuU(this))):a=3;a!=0&&(v?this.setState_(a):_.ZX(function(){h.setState_(a)},0));
(D=V3K())&&Ytr(this,D);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.J(DA,_.yl);DA.prototype.getState=function(){return this.state_};
DA.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
DA.prototype.reconnect=function(){this.connection_.reconnect()};
var Pb=function(D){return new Kt(D.connection_.getPlayerContextData())};
_.V=DA.prototype;_.V.play=function(){xn(this)?(this.castMedia_?this.castMedia_.play(null,_.Ay,BuK(this,"play")):M2(this,"play"),cqS(this,1,Jqs(Pb(this))),this.publish("remotePlayerChange")):fP(this,this.play)};
_.V.pause=function(){xn(this)?(this.castMedia_?this.castMedia_.pause(null,_.Ay,BuK(this,"pause")):M2(this,"pause"),cqS(this,2,Jqs(Pb(this))),this.publish("remotePlayerChange")):fP(this,this.pause)};
_.V.seekTo=function(D){if(xn(this)){if(this.castMedia_){var v=Pb(this),h=new chrome.cast.media.SeekRequest;h.currentTime=D;v.isPlaying()||v.isBuffering()?h.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:h.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(h,_.Ay,BuK(this,"seekTo",{newTime:D}))}else M2(this,"seekTo",{newTime:D});cqS(this,3,D);this.publish("remotePlayerChange")}else fP(this,_.NF(this.seekTo,D))};
_.V.stop=function(){if(xn(this)){this.castMedia_?this.castMedia_.stop(null,_.Ay,BuK(this,"stopVideo")):M2(this,"stopVideo");var D=Pb(this);D.stopPlayer();CP(this,D);this.publish("remotePlayerChange")}else fP(this,this.stop)};
_.V.setVolume=function(D,v){if(xn(this)){var h=Pb(this);if(this.castSession_){if(h.volume!=D){var a=Math.round(D)/100;this.castSession_.setReceiverVolumeLevel(a,(0,_.qp)(function(){bG("set receiver volume: "+a)},this),(0,_.qp)(function(){this.warn_("failed to set receiver volume.")},this))}h.muted!=v&&this.castSession_.setReceiverMuted(v,(0,_.qp)(function(){bG("set receiver muted: "+v)},this),(0,_.qp)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Q={volume:D,
muted:v};h.volume!=-1&&(Q.delta=D-h.volume);M2(this,"setVolume",Q)}h.muted=v;h.volume=D;CP(this,h)}else fP(this,_.NF(this.setVolume,D,v))};
_.V.setAudioTrack=function(D,v){xn(this)?(v=v.getLanguageInfo().getId(),M2(this,"setAudioTrack",{videoId:D,audioTrackId:v}),D=Pb(this),D.audioTrackId=v,CP(this,D)):fP(this,_.NF(this.setAudioTrack,D,v))};
_.V.addVideo=function(D){xn(this)?M2(this,"addVideo",{videoId:D}):fP(this,_.NF(this.addVideo,D))};
_.V.addPlaylist=function(D){xn(this)?M2(this,"addVideos",{listId:D}):fP(this,_.NF(this.addPlaylist,D))};
_.V.addVideos=function(D){D.length==0?this.warn_("Ignore add videos request due to empty list"):xn(this)?M2(this,"addVideos",{videoIds:D.join(",")}):fP(this,_.NF(this.addVideos,D))};
_.V.JSC$19868_removeVideo=function(D){xn(this)?M2(this,"removeVideo",{videoId:D}):fP(this,_.NF(this.JSC$19868_removeVideo,D))};
_.V.JSC$19868_insertVideo=function(D){xn(this)?M2(this,"insertVideo",{videoId:D}):fP(this,_.NF(this.JSC$19868_insertVideo,D))};
_.V.playVideo=function(D,v,h,a,Q,G,x){a=a===void 0?null:a;Q=Q===void 0?null:Q;G=G===void 0?null:G;x=x===void 0?null:x;var f=Pb(this),C={videoId:D};h!==void 0&&(C.currentIndex=h);pMS(f,D,h||0);v!==void 0&&(VJ(f,v),C.currentTime=v);a&&(C.listId=a);Q&&(C.playerParams=Q);G&&(C.clickTrackingParams=G);x&&(C.locationInfo=(0,_.nD)(x));M2(this,"setPlaylist",C);a||CP(this,f)};
_.V.nextVideo=function(D,v){if(xn(this)){if(D&&v){var h=Pb(this);pMS(h,D,v);CP(this,h)}M2(this,"next")}else fP(this,_.NF(this.nextVideo,D,v))};
_.V.clearPlaylist=function(){if(xn(this)){M2(this,"clearPlaylist");var D=Pb(this);D.reset();CP(this,D);this.publish("remotePlayerChange")}else fP(this,this.clearPlaylist)};
_.V.dispose=function(){if(this.state_!=3){var D=this.state_;this.state_=3;this.publish("proxyStateChange",D,this.state_)}_.yl.prototype.dispose.call(this)};
_.V.disposeInternal=function(){XMr(this);this.connection_=null;this.actionQueue_.clear();Ytr(this,null);_.yl.prototype.disposeInternal.call(this)};
var NuU=function(D){_.rM("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(v){this.contextSubscriptions_.push(this.connection_.subscribe(v,_.NF(this.onProxyEvent_,v),this))},D)},XMr=function(D){_.rM(D.contextSubscriptions_,function(v){this.connection_.unsubscribeByKey(v)},D);
D.contextSubscriptions_.length=0},xn=function(D){return D.getState()==1},fP=function(D,v){D.actionQueue_.getCount()<50&&D.actionQueue_.enqueue(v)},cqS=function(D,v,h){var a=Pb(D);
VJ(a,h);a.playerState!=-1E3&&(a.playerState=v);CP(D,a)},M2=function(D,v,h){D.connection_.sendMessage(v,h)},CP=function(D,v){XMr(D);
D.connection_.setPlayerContextData(lem(v));NuU(D)};
DA.prototype.setState_=function(D){if((D!=this.state_||D==2)&&this.state_!=3&&D!=0){var v=this.state_;this.state_=D;this.publish("proxyStateChange",v,D);if(D==1)for(;!this.actionQueue_.isEmpty();)D=this.actionQueue_,KZ2(D),D.front_.pop().apply(this);else D==3&&this.dispose()}};
DA.prototype.onProxyEvent_=function(D,v){this.publish(D,v)};
var Ytr=function(D,v){D.castSession_&&(D.castSession_.removeUpdateListener(D.boundCastStatusListener_),D.castSession_.removeMediaListener(D.boundCastMediaListener_),D.onCastMediaChange_(null));D.castSession_=v;if(D.castSession_&&(bG("Setting cast session: "+D.castSession_.sessionId),D.castSession_.addUpdateListener(D.boundCastStatusListener_),D.castSession_.addMediaListener(D.boundCastMediaListener_),D.castSession_.media.length))D.onCastMediaChange_(D.castSession_.media[0])};
DA.prototype.onCastStatusUpdate_=function(D){if(!D)this.onCastMediaChange_(null),Ytr(this,null);else if(this.castSession_.receiver.volume){D=this.castSession_.receiver.volume;var v=Pb(this),h=Math.round(100*D.level||0);if(v.volume!=h||v.muted!=D.muted)bG("Cast volume update: "+D.level+(D.muted?" muted":"")),v.volume=h,v.muted=!!D.muted,CP(this,v)}};
DA.prototype.onCastMediaChange_=function(D){bG("Cast media: "+!!D);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=D)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Aqb(this),this.publish("remotePlayerChange")};
var Aqb=function(D){var v=D.castMedia_.media,h=D.castMedia_.customData;if(v&&h){var a=Pb(D);v.contentId!=a.videoId&&bG("Cast changing video to: "+v.contentId);a.videoId=v.contentId;a.playerState=h.playerState;VJ(a,D.castMedia_.getEstimatedTime());CP(D,a)}else bG("No cast media video. Ignoring state update.")};
DA.prototype.onCastMediaUpdate_=function(D){if(D)Aqb(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
DA.prototype.onCloudviewAvailabilityChange_=function(){var D=V3K();D&&Ytr(this,D)};
DA.prototype.warn_=function(D){qW("CP",D)};
var BuK=function(D,v,h){return(0,_.qp)(function(a){this.warn_("Failed to "+v+" with cast v2 channel. Error code: "+a.code);a.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+v+" using MDx browser channel."),M2(this,v,h))},D)};var vG=function(D,v,h,a){a=a===void 0?!1:a;_.yl.call(this);var Q=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$19873_http_=D;this.enableConnectWithInitialState_=a;this.listeners_.push(_.GC(window,"beforeunload",function(){Q.JSC$19876_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Kt;this.currentScreenId_=v.id;this.currentScreenIdType_=v.idType;this.channelService=N4X(this.JSC$19873_http_,h,this.JSC$19876_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){qtd(Q)});
this.channelService.listen("channelClosed",function(){oL("Channel closed");isNaN(Q.connectTimerId_)?By(!0):By();Q.dispose()});
this.channelService.listen("channelError",function(G){By();isNaN(Q.getReconnectTimeout_())?(G==1&&Q.currentScreenIdType_=="shortLived"&&Q.publish("browserChannelAuthError",G),oL("Channel error: "+G+" without reconnection"),Q.dispose()):(Q.reconnecting_=!0,oL("Channel error: "+G+" with reconnection in "+Q.getReconnectTimeout_()+" ms"),bnC(Q,2))});
this.channelService.listen("channelMessage",function(G){d4X(Q,G)});
this.channelService.setLoungeToken(v.token);this.subscribe("remoteQueueChange",function(){var G=Q.playerContext_.videoId;ot3()&&_.eL("yt-remote-session-video-id",G)})};
_.J(vG,_.yl);
vG.prototype.connect=function(D,v){if(v){var h=v.listId,a=v.videoId,Q=v.videoIds,G=v.playerParams,x=v.clickTrackingParams,f=v.index,C={videoId:a},U=v.currentTime,L=v.locationInfo;v=v.loopMode;U!==void 0&&(C.currentTime=U<=5?0:U);G&&(C.playerParams=G);L&&(C.locationInfo=L);x&&(C.clickTrackingParams=x);h&&(C.listId=h);Q&&Q.length>0&&(C.videoIds=Q.join(","));f!==void 0&&(C.currentIndex=f);this.enableConnectWithInitialState_&&(C.loopMode=v||"LOOP_MODE_OFF");h&&(this.playerContext_.listId=h);this.playerContext_.videoId=
a;this.playerContext_.index=f||0;this.playerContext_.state=3;VJ(this.playerContext_,U);this.autoplayMode_="UNSUPPORTED";h=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";oL("Connecting with "+h+" and params: "+(0,_.nD)(C));this.channelService.connect({method:h,params:(0,_.nD)(C)},D,ZbX())}else oL("Connecting without params"),this.channelService.connect({},D,ZbX());j8C(this)};
vG.prototype.setLoungeToken=function(D){this.channelService.setLoungeToken(D)};
vG.prototype.dispose=function(){this.isDisposed()||(_.Gm("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),bnC(this,3));_.yl.prototype.dispose.call(this)};
vG.prototype.disposeInternal=function(){s8r(this);m4s(this);Hnr(this);_.IZ(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.IZ(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.M3q(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.yl.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var yqb=function(D){return _.j2(D.connectedDevices_,function(v){return v.type=="LOUNGE_SCREEN"})},oL=function(D){qW("conn",D)},bnC=function(D,v){D.publish("proxyStateChange",v)},j8C=function(D){D.connectTimerId_=_.ZX(function(){oL("Connecting timeout");
D.JSC$19876_disconnect_(1)},2E4)},s8r=function(D){_.IZ(D.connectTimerId_);
D.connectTimerId_=NaN},Hnr=function(D){_.IZ(D.reconnectedCheckScreenTimeout_);
D.reconnectedCheckScreenTimeout_=NaN},wMm=function(D){m4s(D);
D.playingSyncTimerId_=_.ZX(function(){Fj(D,"getNowPlaying")},2E4)},m4s=function(D){_.IZ(D.playingSyncTimerId_);
D.playingSyncTimerId_=NaN},qtd=function(D){oL("Channel opened");
D.reconnecting_&&(D.reconnecting_=!1,Hnr(D),D.reconnectedCheckScreenTimeout_=_.ZX(function(){oL("Timing out waiting for a screen.");D.JSC$19876_disconnect_(1)},15E3))},n3C=function(D,v){var h=null;
if(v){var a=yqb(D);a&&(h={clientName:a.clientName,deviceMake:a.brand,deviceModel:a.model,osVersion:a.osVersion})}_.Gm("yt.mdx.remote.remoteClient_",h);v&&(s8r(D),Hnr(D));h=D.channelService.isChannelOpened()&&isNaN(D.connectTimerId_);v==h?v&&(bnC(D,1),Fj(D,"getSubtitlesTrack")):v?(D.getOtherConnectedRemoteId_()&&D.playerContext_.reset(),bnC(D,1),Fj(D,"getNowPlaying"),ebr(D)):D.JSC$19876_disconnect_(1)},On3=function(D,v){var h=v.params.videoId;
delete v.params.videoId;h==D.playerContext_.videoId&&(_.sV.isEmpty(v.params)?D.playerContext_.trackData=null:D.playerContext_.trackData=v.params,D.publish("remotePlayerChange"))},KYS=function(D,v,h){var a=v.params.videoId||v.params.video_id,Q=parseInt(v.params.currentIndex,10);
D.playerContext_.listId=v.params.listId||D.playerContext_.listId;pMS(D.playerContext_,a,Q);D.publish("remoteQueueChange",h)},Tub=function(D,v){v.params=v.params||{};
KYS(D,v,"NOW_PLAYING_MAY_CHANGE");D.onStateChange_(v);D.publish("autoplayDismissed")};
vG.prototype.onStateChange_=function(D){var v=parseInt(D.params.currentTime||D.params.current_time,10);VJ(this.playerContext_,isNaN(v)?0:v);v=parseInt(D.params.state,10);v=isNaN(v)?-1:v;v==-1&&this.playerContext_.playerState==-1E3&&(v=-1E3);this.playerContext_.playerState=v;v=Number(D.params.loadedTime);this.playerContext_.loadedTime=isNaN(v)?0:v;v=Number(D.params.duration);this.playerContext_.duration_=isNaN(v)?0:v;v=this.playerContext_;var h=Number(D.params.liveIngestionTime);v.liveIngestionTime_=
h;v.isLive_=isNaN(h)?!1:!0;v=this.playerContext_;h=Number(D.params.seekableStartTime);D=Number(D.params.seekableEndTime);v.seekableStart_=isNaN(h)?0:h;v.seekableEnd_=isNaN(D)?0:D;this.playerContext_.playerState==1?wMm(this):m4s(this);this.publish("remotePlayerChange")};
vG.prototype.onAdStateChange_=function(D){if(this.playerContext_.playerState!=-1E3){var v=1085;switch(parseInt(D.params.adState,10)){case 1:v=1081;break;case 2:v=1084;break;case 0:v=1083}this.playerContext_.playerState=v;D=parseInt(D.params.currentTime,10);VJ(this.playerContext_,isNaN(D)?0:D);this.publish("remotePlayerChange")}};
var RbS=function(D,v){var h=v.params.muted=="true";D.playerContext_.volume=parseInt(v.params.volume,10);D.playerContext_.muted=h;D.publish("remotePlayerChange")},in2=function(D,v){D.autoplayVideoId_=v.params.videoId;
D.publish("nowAutoplaying",parseInt(v.params.timeout,10))},WYX=function(D,v){D.autoplayVideoId_=v.params.videoId||null;
D.publish("autoplayUpNext",D.autoplayVideoId_)},tW2=function(D,v){D.autoplayMode_=v.params.autoplayMode;
D.publish("autoplayModeChange",D.autoplayMode_);D.autoplayMode_=="DISABLED"&&D.publish("autoplayDismissed")},rqs=function(D,v){var h=v.params.hasNext=="true";
D.playerContext_.hasPrevious=v.params.hasPrevious=="true";D.playerContext_.hasNext=h;D.publish("previousNextChange")};
vG.prototype.isCapabilitySupportedOnConnectedDevices_=function(D){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var v=_.P(this.connectedDevices_),h=v.next();!h.done;h=v.next())if(!h.value.capabilities.has(D))return!1;return!0};
var d4X=function(D,v){v=v.message;v.params?oL("Received: action="+v.action+", params="+(0,_.nD)(v.params)):oL("Received: action="+v.action+" {}");switch(v.action){case "loungeStatus":v=(0,_.jC)(v.params.devices);D.connectedDevices_=_.mO(v,function(a){return new io(a)});
v=!!_.j2(D.connectedDevices_,function(a){return a.type=="LOUNGE_SCREEN"});
n3C(D,v);v=D.isCapabilitySupportedOnConnectedDevices_("mlm");D.publish("multiStateLoopEnabled",v);break;case "loungeScreenDisconnected":wUZ(D.connectedDevices_,function(a){return a.type=="LOUNGE_SCREEN"});
n3C(D,!1);break;case "remoteConnected":var h=new io((0,_.jC)(v.params.device));_.j2(D.connectedDevices_,function(a){return a.equals(h)})||_.ccA(D.connectedDevices_,h);
break;case "remoteDisconnected":h=new io((0,_.jC)(v.params.device));wUZ(D.connectedDevices_,function(a){return a.equals(h)});
break;case "gracefulDisconnect":break;case "playlistModified":KYS(D,v,"QUEUE_MODIFIED");break;case "nowPlaying":Tub(D,v);break;case "onStateChange":D.onStateChange_(v);break;case "onAdStateChange":D.onAdStateChange_(v);break;case "onVolumeChanged":RbS(D,v);break;case "onSubtitlesTrackChanged":On3(D,v);break;case "nowAutoplaying":in2(D,v);break;case "autoplayDismissed":D.publish("autoplayDismissed");break;case "autoplayUpNext":WYX(D,v);break;case "onAutoplayModeChanged":tW2(D,v);break;case "onHasPreviousNextChanged":rqs(D,
v);break;case "requestAssistedSignIn":D.publish("assistedSignInRequested",v.params.authCode);break;case "onLoopModeChanged":D.publish("loopModeChange",v.params.loopMode);break;default:oL("Unrecognized action: "+v.action)}};
_.V=vG.prototype;_.V.getProxyState_=function(){var D=3;this.isDisposed()||(D=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(D=1):D=2);return D};
_.V.JSC$19876_disconnect_=function(D){oL("Disconnecting with "+D);_.Gm("yt.mdx.remote.remoteClient_",null);s8r(this);this.publish("beforeDisconnect",D);D==1&&By();this.channelService.disconnect(D);this.dispose()};
_.V.getPlayerContextData_=function(){var D=this.playerContext_;this.clientVideoId_&&(D=this.playerContext_.clone(),pMS(D,this.clientVideoId_,D.index));return lem(D)};
_.V.setPlayerContextData_=function(D){var v=this,h=new Kt(D);h.videoId&&h.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=h.videoId,_.IZ(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.ZX(function(){if(v.clientVideoId_){var Q=v.clientVideoId_;v.clientVideoId_=null;v.playerContext_.videoId!=Q&&Fj(v,"getNowPlaying")}},5E3));
var a=[];this.playerContext_.listId==h.listId&&this.playerContext_.videoId==h.videoId&&this.playerContext_.index==h.index||a.push("remoteQueueChange");this.playerContext_.playerState==h.playerState&&this.playerContext_.volume==h.volume&&this.playerContext_.muted==h.muted&&Jqs(this.playerContext_)==Jqs(h)&&(0,_.nD)(this.playerContext_.trackData)==(0,_.nD)(h.trackData)||a.push("remotePlayerChange");this.playerContext_.reset(D);_.rM(a,function(Q){this.publish(Q)},this)};
_.V.getOtherConnectedRemoteId_=function(){var D=this.channelService.getDeviceId(),v=_.j2(this.connectedDevices_,function(h){return h.type=="REMOTE_CONTROL"&&h.id!=D});
return v?v.id:""};
_.V.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.V.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.V.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.V.JSC$19876_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var ebr=function(D){_.IZ(D.idleDisconnectTimerId_);D.idleDisconnectTimerId_=_.ZX(function(){D.JSC$19876_disconnect_(1)},864E5)},Fj=function(D,v,h){h?oL("Sending: action="+v+", params="+(0,_.nD)(h)):oL("Sending: action="+v);
D.channelService.sendMessage(v,h)};
vG.prototype.sendMessageWithUserAction_=function(D,v){Fj(this,D,v);ebr(this)};
vG.prototype.JSC$19876_getXsrfToken_=function(){var D=_.l8.get("SAPISID","")||_.l8.get("__Secure-1PAPISID",void 0)||"",v=_.l8.get("__Secure-3PAPISID","")||"";if(!D&&!v)return"";D=_.dr(_.X6(D),2);v=_.dr(_.X6(v),2);return _.dr(_.X6(","+D+","+v),2)};
vG.prototype.subscribe=vG.prototype.subscribe;vG.prototype.unsubscribeByKey=vG.prototype.unsubscribeByKey;vG.prototype.getProxyState=vG.prototype.getProxyState_;vG.prototype.disconnect=vG.prototype.JSC$19876_disconnect_;vG.prototype.getPlayerContextData=vG.prototype.getPlayerContextData_;vG.prototype.setPlayerContextData=vG.prototype.setPlayerContextData_;vG.prototype.getOtherConnectedRemoteId=vG.prototype.getOtherConnectedRemoteId_;vG.prototype.getReconnectTimeout=vG.prototype.getReconnectTimeout_;
vG.prototype.getAutoplayMode=vG.prototype.getAutoplayMode_;vG.prototype.getAutoplayVideoId=vG.prototype.getAutoplayVideoId_;vG.prototype.reconnect=vG.prototype.JSC$19876_reconnect_;vG.prototype.sendMessage=vG.prototype.sendMessageWithUserAction_;vG.prototype.getXsrfToken=vG.prototype.JSC$19876_getXsrfToken_;vG.prototype.isCapabilitySupportedOnConnectedDevices=vG.prototype.isCapabilitySupportedOnConnectedDevices_;var N1d=function(D){jP.call(this,"ScreenServiceProxy");this.instance_=D;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.qp)(this.JSC$19879_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.qp)(this.onOnlineScreenChange_,this)))};
_.J(N1d,jP);_.V=N1d.prototype;_.V.getScreens=function(D){return this.instance_.$_gs(D)};
_.V.contains=function(D){return!!this.instance_.$_c(D)};
_.V.get=function(D){return this.instance_.$_g(D)};
_.V.start=function(){this.instance_.$_st()};
_.V.add=function(D,v,h){this.instance_.$_a(D,v,h)};
_.V.remove=function(D,v,h){this.instance_.$_r(D,v,h)};
_.V.updateName=function(D,v,h,a){this.instance_.$_un(D,v,h,a)};
_.V.disposeInternal=function(){for(var D=this.subscriptionKeys_.length,v=0;v<D;++v)this.instance_.$_ubk(this.subscriptionKeys_[v]);this.subscriptionKeys_.length=0;this.instance_=null;jP.prototype.disposeInternal.call(this)};
_.V.JSC$19879_onScreenChange_=function(){this.publish("screenChange")};
_.V.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Hy.prototype.$_st=Hy.prototype.start;Hy.prototype.$_gspc=Hy.prototype.JSC$19838_getScreenByPairingCode;Hy.prototype.$_gsppc=Hy.prototype.JSC$19838_getScreenByPollingPairingCode;Hy.prototype.$_c=Hy.prototype.contains;Hy.prototype.$_g=Hy.prototype.get;Hy.prototype.$_a=Hy.prototype.add;Hy.prototype.$_un=Hy.prototype.updateName;Hy.prototype.$_r=Hy.prototype.remove;Hy.prototype.$_gs=Hy.prototype.getScreens;Hy.prototype.$_gos=Hy.prototype.JSC$19838_getOnlineScreens;Hy.prototype.$_s=Hy.prototype.subscribe;
Hy.prototype.$_ubk=Hy.prototype.unsubscribeByKey;var g5X=null,B1C=!1,T$=null,Rx=null,l2K=null,rg=[];var uOC=new _.OW("yt-menu"),Dks=function(){},hzK=function(D,v,h){D=v=="right-click"?h.rightClickMenuPopupHint:h.menuPopupHint;
if(!(vuZ(v)>10))return v=v||"default",uOC.set(v+"-impression",vuZ(v)+1),D},vuZ=function(D){return parseInt(uOC.get((D||"default")+"-impression")||0,10)};
_.x7(Dks);var akr=function(){this.contexts_=new WeakMap;this.JSC$19885_networkService_=this.activeContext_=null},$kd=function(D,v,h){var a=D.contexts_.get(v);
a||(a=new qOI(D.JSC$19885_networkService_),D.contexts_.set(v,a));D.activeContext_=a;h&&D.activeContext_.reset();D.activeContext_.start();return D.activeContext_};var zW=function(){};
zW.prototype.enqueue=function(){var D=this,v;return _.M(function(h){if(D.isCounterfactual())return(v=D.getCounterfactualData())&&D.shouldLogCounterfactualImpression()&&D.sendImpressionEndpoints(v),h.return();D.doEnqueue();_.YI(h)})};
zW.prototype.sendImpressionEndpoints=function(D){_.iD.getInstance().triggerOptionalAction("yt-service-request",{},D[0])};var Uw=function(D,v){this.renderer=D;this.page=v};
_.J(Uw,zW);Uw.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Uw.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Uw.prototype.shouldLogCounterfactualImpression=function(){return!0};
Uw.prototype.doEnqueue=function(){var D=_.xe(this.page);D&&D.pause();this.renderer.impressionCommand&&_.iD.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.rt(_.iD.getInstance(),[this.renderer.promoCommand],this.page)};var Q_b=function(D,v){this.renderer=D;this.resolver=_.hn();this.JSC$19897_enforcementCounter=new _.EH9;v?this.JSC$19897_playerManager=_.xe(v):this.JSC$19897_playerManager=null;_.pq(1,!0)};
_.J(Q_b,zW);_.V=Q_b.prototype;_.V.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var D=[];this.renderer.impressionEndpoints.forEach(function(v){(v=_.Rq(v))&&D.push(v)});
return D}};
_.V.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.V.shouldLogCounterfactualImpression=function(){var D=_.GBu();D?(this.JSC$19897_enforcementCounter.increment("POPUP"),_.pq(3)):_.pq(2);return D};
_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.doEnqueue=function(){var D=this;_.GBu()?(this.JSC$19897_enforcementCounter.increment("POPUP"),_.pq(3),GGS(this)):this.JSC$19897_playerManager?(this.resolver.promise.then(function(){GGS(D)}),V1$(this.resolver,this.JSC$19897_playerManager)):_.pq(2)};
var V1$=function(D,v){var h=_.hn();v.getPlayerPromise().then(function(a){h.resolve(a)});
h.promise.then(function(a){a.addEventListener("onAbnormalityDetected",D.resolve);_.yS(D.promise,function(){a.removeEventListener("onAbnormalityDetected",D.resolve)})});
D.promise.thenCatch(function(){h.promise.cancel()})},GGS=function(D){_.pq(3);
var v={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:D.renderer}};v=_.iD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:v},{});Promise.all(v).then(function(){PFX();D.JSC$19897_playerManager&&D.JSC$19897_playerManager.pause()})},PFX=function(){kar(function(D,v){_.oEr(D,v);
D===0?_.pq(7):_.pq(4)})};var xk3=function(D,v){this.renderer=D;this.page=v;this.resolver=_.hn()};
_.J(xk3,zW);_.V=xk3.prototype;_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var D=this;this.resolver.promise.then(function(){var h={popup:{mealbarPromoRenderer:D.renderer},popupType:"MEALBAR"};_.iD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:h},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var v=_.xe(this.page);v&&M1d(this.resolver,v)}break;default:this.resolver.resolve()}};
var M1d=function(D,v){var h=_.hn();v.getPlayerPromise().then(function(a){h.resolve(a)});
h.promise.then(function(a){a.addEventListener("onAdEnd",D.resolve);_.yS(D.promise,function(){a.removeEventListener("onAdEnd",D.resolve)})});
D.promise.thenCatch(function(){h.promise.cancel()})};var fk2=function(D,v){this.renderer=D;this.page=v};
_.J(fk2,zW);_.V=fk2.prototype;_.V.cancel=function(){this.JSC$19905_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19905_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19905_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var D=this,v,h;((v=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(h=v.playbackUpsellDialogTriggerConditionData)==null?void 0:h.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19905_downloadedVideosCountSelectorUnsubscriber=_.Oe(_.Gb(),IU2,function(a,Q){a>Q&&(CFs(D),D.cancel())}):CFs(this)};
var CFs=function(D){var v={popup:{upsellDialogRenderer:D.renderer},popupType:"MODAL"};_.iD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:v},{});(D=_.xe(D.page))&&D.pause()};var LP={},ouC=(LP.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",LP.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",LP.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",LP.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",LP.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",LP.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",LP.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",LP),FEs=function(D,v){this.renderer=D;this.targetManager=
v};
_.J(FEs,zW);_.V=FEs.prototype;_.V.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19912_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19912_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19912_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){if(this.isCounterfactual()){var D;return(D=this.renderer.promoConfig)==null?void 0:D.impressionEndpoints}};
_.V.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var D=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19912_downloadedVideosCountSelectorUnsubscriber=_.Oe(_.Gb(),IU2,function(v,h){D.renderer.targetId&&v>h&&($6X(D.targetManager,D.renderer.targetId,zzr(D)),D.cancel())});
break;default:$6X(this.targetManager,this.renderer.targetId,zzr(this))}};
var zzr=function(D){var v;if((v=D.renderer.suggestedPosition)==null?0:v.type)var h=ouC[D.renderer.suggestedPosition.type];h||(h="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:D.renderer},popupType:"HINT",position:h}}};var Ukr=function(){this.previousPage=null},LEr;
Ukr.prototype.registerPromoCommand=function(D,v){ZEb(this,void 0,void 0,_.k(D.roadblock,rEm),void 0,void 0,v)};
var ZEb=function(D,v,h,a,Q,G,x){D.previousPage!==x&&D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel();D.previousPage=x;Q?(D.pendingEnforcementPromo&&D.pendingEnforcementPromo.cancel(),D.pendingEnforcementPromo=new Q_b(Q,x),D.pendingEnforcementPromo.enqueue()):G?(D.pendingCommandWrapperPromo=new Uw(G,x),D.pendingCommandWrapperPromo.enqueue()):a?(D.pendingRoadblockPromo&&D.pendingRoadblockPromo.cancel(),D.pendingRoadblockPromo=new fk2(a,x),D.pendingRoadblockPromo.enqueue()):v?(D.pendingMealbarPromo&&
D.pendingMealbarPromo.cancel(),D.pendingMealbarPromo=new xk3(v,x),D.pendingMealbarPromo.enqueue()):h&&(D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel(),D.pendingTooltipPromo=new FEs(h,_.tU()),D.pendingTooltipPromo.enqueue())},Eu3=function(){LEr||(LEr=new Ukr);
return LEr};var qA3=!1;var V6r=function(D,v){var h=_.eA("SESSION_INDEX");this.actionToken_=D;this.commonToken_=v;this.sessionIndex_=h},GkI=function(D){var v=_.hn(),h=_.T3("payments.business.integration.bootstrap"),a=_.T3("payments.business.integration"),Q=a.Style.create().withMaterialDesignStyle(),G=a.mashupMode.popup("instrument-manager");
h.asMashupMode(G).usingUserIndex(D.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Q).inStandaloneContext(a.standaloneContextAuthId.forUserId()).instrumentManager(D.actionToken_,D.commonToken_.length>0?D.commonToken_:void 0,function(x){var f=x.instrumentId;f?v.resolve(f):(f=_.T3("payments.business.integration.scenario.InstrumentManager"),v.reject(x.errorCode&&x.errorCode===f.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(x){_.OM(x);
v.reject("instrumentManagerLoadError")});
return v.promise};var Gg=function(D,v,h){this.payloadName="transactionFlowFailed";this.payload={errorType:D,serializedTransactionFlowLoggingParams:v,isUserDismiss:h===void 0?!1:h}};
_.Gm("yt.ypc.shared.YpcTransactionFlowError",Gg);var Za=function(){return _.XS.apply(this,arguments)||this};
_.J(Za,_.XS);Za.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Za.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Za.prototype.onErrorMessageDismiss=Za.prototype.onErrorMessageDismiss;_.e([_.Y({readOnly:!0,observer:"errorRendererChanged"}),_.n("design:type",Object)],Za.prototype,"errorRenderer",void 0);_.e([_.lc("yt-live-chat-error-message-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Za.prototype,"onErrorMessageDismiss",null);_.e([_.AV()],Za);var IkC=[Za.prototype];var guU;var kGX;var SpK=new _.OW("yt-live-chat"),JjC=new Map;JjC.set("timestamp_toggle","show-timestamps");JjC.set("reactions_toggle","allow-reactions");var Ew=function(){return _.c.apply(this,arguments)||this};
_.J(Ew,_.c);_.V=Ew.prototype;_.V.menuItemIdentifierChanged=function(){var D;(D=this.data)!=null&&D.menuItemIdentifier&&(D=JjC.get(this.data.menuItemIdentifier))&&(_.g("enable_lwe_web_mute")?(D=SpK.get(D),this.isToggled=!(D===void 0?!this.data.isToggled:!D)):this.isToggled=SpK.get(D))};
_.V.onFocus=function(){this.toggleButton.focus()};
_.V.onTap=function(){var D=this.data.command;D&&this.componentBehavior.resolveCommand(D)};
_.V.computeText=function(D,v,h){return this.componentBehavior.getSimpleString(D?h:v)};
_.V.computeIcon=function(D,v,h){return(D=D?h:v)&&D.iconType?_.SQ(D.iconType):""};
Ew.prototype.onTap=Ew.prototype.onTap;Ew.prototype.onFocus=Ew.prototype.onFocus;Ew.prototype.menuItemIdentifierChanged=Ew.prototype.menuItemIdentifierChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Ew.prototype,"componentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ew.prototype,"data",void 0);
_.e([_.Y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.n("design:type",String)],Ew.prototype,"icon",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Ew.prototype,"isToggled",void 0);_.e([_.Br("tp-yt-paper-toggle-button"),_.n("design:type",Object)],Ew.prototype,"toggleButton",void 0);_.e([_.Ni("data.menuItemIdentifier"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ew.prototype,"menuItemIdentifierChanged",null);
_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ew.prototype,"onFocus",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ew.prototype,"onTap",null);_.e([_.Ry({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Ew);
_.w(Ew,"yt-live-chat-toggle-renderer",function(){if(kGX===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;guU===void 0&&(guU=document.createElement("template"));var a=guU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);kGX=D}D=kGX;return D},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var p$$=new _.Uj("NAVIGATION_PROGRESS_TOKEN");var lkC={},Nzr={},Yp2=(Nzr[HOr.name]=!0,Nzr),IL=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;D.tabGesturesIsActive=!1;D.actionRouterIsRoot=!0;D.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};D.pageTitle="";D.titleSuffix="YouTube";D.unseenNotificationCount=
0;D.hasNavigated=!1;D.hasSetScrollTopForNavigation=!1;D.pagePreparer=null;D.zwiebackInitJobId=0;D.dataUpdatePromise=null;D.loadDepsPromise=_.E9();D.hasPendingNavigation=!1;D.pendingPlayerOnResponseReceivedActions=[];return D};
_.J(IL,_.XS);IL.prototype.attached=function(){Bzr(this);document.addEventListener("yt-navigate-cache",_.pZ(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var D=gi();D.init();D.dispatchElement=this.hostElement};
var Bzr=function(D,v){v=v===void 0?0:v;var h=_.xd().resolve(_.PV(_.WC));if(h)cjS(D,h);else{if(v>=5)throw Error("nl");setTimeout(function(){Bzr(D,v+1)},0)}},cjS=function(D,v){v.addEventListener("yt-navigate-start",_.pZ(D,D.onYtNavigateStart));
v.addEventListener("yt-navigate-finish",_.pZ(D,D.onYtNavigateFinish));v.addEventListener("yt-navigate-error",_.pZ(D,D.onYtNavigateError));v.addEventListener("yt-page-data-fetched",_.pZ(D,D.onYtPageDataFetched))};
_.V=IL.prototype;_.V.detached=function(){var D=_.xd().resolve(_.WC);D.removeEventListener("yt-navigate-start",_.pZ(this,this.onYtNavigateStart));D.removeEventListener("yt-navigate-finish",_.pZ(this,this.onYtNavigateFinish));D.removeEventListener("yt-navigate-error",_.pZ(this,this.onYtNavigateError));D.removeEventListener("yt-page-data-fetched",_.pZ(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.pZ(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.V.setPageOffset=function(D,v){D?_.zU(this.hostElement,"yt-set-page-offset",[D,v]):_.mV(Error("ol"))};
_.V.setPageOffsetForNavigation=function(D,v){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(D,v))};
_.V.onYtNavigateSetPageOffset=function(D,v){this.setPageOffsetForNavigation(v.page,v.offset)};
_.V.getPageOffset=function(){var D=_.ZW(this.hostElement).querySelector("#page-manager").getCurrentPage(),v=0;D&&(v=_.zU(this.hostElement,"yt-get-page-offset",[D])[0]);return v};
_.V.onYtHistoryPop=function(D,v){if(_.nJ("DISABLE_WARM_LOADS"))D.preventDefault(),window.location.reload();else{var h=_.xd().resolve(_.WC);h.hasPendingNavigation()&&D.preventDefault();h.cancelPendingNavigation();_.U9(this.hostElement,"yt-pending-navigation-cancelled");v.errorMsg&&(D=v.errorMsg.split(" - "),v=Error(D[0]),D.length==2&&D[1]&&(_.wf(v,D[1]),_.yR(v)),window.location.reload())}};
_.V.onYtHistoryLoad=function(D,v){var h=this;if(_.nJ("DISABLE_WARM_LOADS"))window.location.reload();else{(D=v.endpoint)&&Object.keys(D).length||(D=null);var a=v.historyEntry,Q=_.xd().resolve(_.WC),G=_.xd().resolve(_.P4),x=null;a&&a.rootData&&(x=a.rootData);var f=x&&X$C(x);!x||f||x.filler?D?(Q.navigate(D,!0),AjZ(this,D)):(v.legacyBorder||f||(v.JSC$30192_savedComponentState==null&&x==null?_.yR(new _.XH("Incomplete history entry",v.forward)):_.H1(new _.XH("Malformed history entry",v.JSC$30192_savedComponentState,
v.forward,x))),window.location.reload()):(_.d97({isHot:!0}),_.HU({webInfo:{navigationReason:"h"}}),_.VEL(),_.ea("srt"),_.ea("pdc"),this.cancelPendingTasks(),qpU(this,v.forward,x),x.player&&(x.player.loaded=!1),AjZ(this,D),_.NH4(Q,D||{},x,2,{},!1,v).then(function(){h.setPageOffset(G.getCurrentPage(),a.scrollTop||0)}))}};
_.V.initHistoryManager=function(D){if(!this.hasNavigated){this.hasNavigated=!0;var v=_.ZW(this.hostElement).querySelector("#page-manager").getCurrentData();D=isNaN(D)?this.getPageOffset():D;var h=_.xd().resolve(_.WC).currentEndpoint;this.replaceState(h,v,D)}};
_.V.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.V.onYtNavigateStart=function(D,v){this.cancelPendingTasks();v.noProgressBar||(D=_.xd().resolve(_.PV(p$$)))&&D.start();D=this.hasPendingNavigation?null:this.data;var h=_.xd().resolve(_.P4),a,Q,G;_.g("kevlar_use_vimio_behavior")&&!((a=v.endpoint)==null?0:(Q=a.commandMetadata)==null?0:(G=Q.webCommandMetadata)==null?0:G.ignoreNavigation)&&(a=h.getCurrentPage())&&a.disconnectVisibilityRoot();h.prepareForNavigation(v.pageType,v.endpoint);_.g("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Yk(1,
"pcl"),_.Bt(this.pagePreparer,h.preparePage.bind(h,v.pageType,v.endpoint)));a=this.getPageOffset();this.initHistoryManager(a);v.reload||this.hasPendingNavigation?((_.g("web_enable_delay_shorts_sequence_call")||_.g("web_enable_shorts_sequence_cache_fix"))&&v.pageType==="shorts"&&v.reload&&_.F1(this.hostElement,"yt-shorts-reset"),this.replaceState(v.endpoint,D,a)):(D==null?void 0:D.page)==="watch"&&v.pageType==="watch"&&_.g("kevlar_replace_watch_to_watch_history_state")?this.replaceState(v.endpoint,
D,a):(D==null?void 0:D.page)!=="shorts"||v.pageType!=="shorts"||v.endpoint.reelWatchEndpoint.sequenceParams||_.g("short_to_short_back_nav_killswitch")?v.type!="navigate-back"&&v.type!="navigate-forward"&&(v.pageType==="shorts"&&_.F1(this.hostElement,"yt-shorts-reset"),this.saveAndPush(v.url,v.endpoint,D,a)):(_.g("web_enable_delay_shorts_sequence_call")&&(v.endpoint.reelWatchEndpoint.sequenceParams=D==null?void 0:D.cachedSequenceParams,v.endpoint.reelWatchEndpoint.sequenceProvider=D==null?void 0:D.cachedSequenceProvider),
this.replaceState(v.endpoint,D,0));this.hasPendingNavigation=!0};
var bEb=function(D){D.hasPendingNavigation=!1;(D=_.xd().resolve(_.PV(p$$)))&&D.finish()};
IL.prototype.onYtNavigateError=function(D,v){bEb(this);D=this.get("endpoint.commandMetadata.webCommandMetadata.url",v);var h=_.DX(window.location.href);D&&!h.pbjreload&&(v=v.navigationErrorReason||"10",_.g("kevlar_parent_on_pbjreload")&&(h={csn:_.wd()},this.get("data.endpoint.clickTrackingParams")&&(h.itct=this.data.endpoint.clickTrackingParams),_.Vp(D,h)),_.ay(_.vV(D,{pbjreload:v})))};
IL.prototype.onYtNavigateCache=function(D,v){var h=this,a=v.url,Q=v.endpoint,G=v.data;D=!!v.miniplayer;v=!!v.skipHistory;if(a&&Q&&G){var x=this.getPageOffset(),f=this.data||null;v||this.saveAndPush(a,Q,f,x);a=_.NH4(_.xd().resolve(_.WC),Q,G,D?4:3,{},D);D&&a.then(function(){h.dataUpdatePromise&&h.dataUpdatePromise.then(function(){var C=_.xd().resolve(_.P4);h.setPageOffset(C.getCurrentPage(),0)})})}};
IL.prototype.onYtNavigateFinish=function(D,v){var h=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){dk3(h,v.fromHistory)})};
var dk3=function(D,v){bEb(D);if(D.pendingPlayerOnResponseReceivedActions){for(var h=_.P(D.pendingPlayerOnResponseReceivedActions),a=h.next();!a.done;a=h.next())_.lP(a.value,D.hostElement);D.pendingPlayerOnResponseReceivedActions=[]}h=_.xd().resolve(_.P4);v||!D.hasNavigated||_.g("web_disable_scroll_on_navigate_finish")||((v=h.getCurrentPage())?v.is==="ytd-shorts"||D.tabGesturesIsActive||D.setPageOffsetForNavigation(v,0):_.yR(Error("pl")));_.hD(function(){_.hD(function(){_.ea("pda")})})};
IL.prototype.onYtNavigate=function(D){if(!D.detail.endpoint){var v=new _.XH("Error: Missing yt-navigate endpoint from target:",D.target,D.target.nodeName);_.mV(v)}if(v=_.g("cold_missing_history"))v=gi(),v.init(!1),v=!(v.browserHistory.boundHistoryReplaceState&&v.browserHistory.boundHistoryPushState);if(v){_.wM("DISABLE_WARM_LOADS",!0);v=new _.XH("Failed to initialize history manager",this.getDebugString());var h=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
h?_.yR(v):_.mV(v)}v=D.detail.endpoint;var a,Q;_.g("debug_forward_web_query_parameters")&&((a=v.commandMetadata)==null?0:(Q=a.webCommandMetadata)==null?0:Q.url)&&(v=JSON.parse(JSON.stringify(v)),v.commandMetadata.webCommandMetadata.url=_.Mqi(v.commandMetadata.webCommandMetadata.url,window.location.search));D={type:0,command:v,form:{params:D.detail.params,tempData:D.detail.tempData||{},requestType:D.detail.type,createScreenConfig:D.detail.createScreenConfig,reload:D.detail.reload?D.detail.reload:!1,
requestForm:D.detail}};_.g("kevlar_yt_navigate_command_handler")?(a=_.xd().resolve(_.fx),D.form.skipDefaultElement=!0,a.resolveCommand(v,{form:D.form})):this.handleNavigate(D)};
IL.prototype.handleNavigate=function(D){this.hasSetScrollTopForNavigation=!1;var v=_.xd().resolve(_.WC),h=D.form||{};v.navigate(D.command,h.reload,h.params,h.tempData,h.requestType,h.createScreenConfig,h.ignoreConfirmation,h.requestForm)&&AjZ(this,D.command,h.tempData)};
IL.prototype.onYtPageDataFetched=function(D,v){try{_.Zky().reset();this.data=v.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.xd().resolve(_.P4).updatePageData(this.data);var h=this.get("playerResponse.onResponseReceivedActions",this.data);h&&(h=j_$(this,h));h&&_.ZD(this.hostElement,h,this.hostElement);var a=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(a||Q){var G=_.x4O(),x=(0,_.sV.getValues)(G.tokenJars);a&&G.replace(x,a);Q&&G.replace(x,Q)}}catch(f){_.mV(f)}};
var AjZ=function(D,v,h){try{D.onYtEndpointChangeHandler(v,h)}catch(a){_.mV(a)}};
_.V=IL.prototype;_.V.onYtEndpointChangeHandler=function(){};
_.V.setPageTitle=function(D){D=(this.pageTitle=D)?D+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+D};
_.V.onYtUpdateTitle=function(D,v){this.setPageTitle(v)};
_.V.setUnseenNotificationCount=function(D){this.unseenNotificationCount=D;this.setPageTitle(this.pageTitle)};
_.V.handleUpdateNotificationsUnseenCountAction=function(D){_.k(D,IwS)&&((D=_.k(D,IwS).unseenCount)?this.setUnseenNotificationCount(D):this.setUnseenNotificationCount(0))};
_.V.handleClearCookieAction=function(D){var v;(D=(v=_.k(D,UtZ))==null?void 0:v.cookieName)&&_.BRr(D)};
_.V.onYtUpdateUnseenNotificationCount=function(D,v){this.setUnseenNotificationCount(v)};
_.V.loadData=function(D){var v=this;this.loadDepsPromise.then(function(){var h=_.xd().resolve(_.PV(_.WC));h||_.mV(Error("ql"));if(D&&D.response){if(!D.endpoint){var a=_.tB(window.document.location.href)||"/",Q="";if(a==="/"||a.startsWith("/?"))Q="WEB_PAGE_TYPE_BROWSE";D.endpoint={commandMetadata:{webCommandMetadata:{url:a,webPageType:Q,rootVe:3854}}}}_.NH4(h,D.endpoint,D,5,{})}else D.endpoint?h.navigate(D.endpoint):h.navigate(_.nH);_.HK.cancelJob(v.zwiebackInitJobId);v.zwiebackInitJobId=_.HK.addLowPriorityJob(b_U)})};
var gi=function(){return _.xd().resolve(_.ef)};
IL.prototype.getDebugString=function(){return gi().getDebugString()};
IL.prototype.getThirdPartyManipulationSuspected=function(){return gi().getThirdPartyManipulationSuspected()};
IL.prototype.replaceState=function(D,v,h){gi().saveAndReplace(D,v,h)};
IL.prototype.saveAndPush=function(D,v,h,a){gi().saveAndPush(D,v,h,a)};
var X$C=function(D){return _.k(D.endpoint,_.hP)||_.k(D.endpoint,_.AQ)?!0:!D||isNaN(D.expirationTime)?!1:(0,_.xz)()>D.expirationTime},qpU=function(D,v,h){var a=D.get("response.trackingParams",h),Q=_.yC(),G=_.wd();
if(a&&Q&&G&&(a=D.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",h),!a&&h.rootVe&&(a=h.rootVe),Q=v?"forwardButton":"backButton",v=D.get("playerResponse.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",D.data),D=D.get("response.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",D.data),v=(D=v||D)?_.d4(D):void 0,D=_.c8(),Q=[_.E9(h)],_.bl(D,a,v,{dataPromises:Q,csnToClone:h.csn}),h.graftedVes))for(h=
_.P(h.graftedVes),a=h.next();!a.done;a=h.next())_.de(D,a.value)};
IL.prototype.onStoreGraftedVeAction=function(D){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(D)):_.yR(Error("rl"))};
var j_$=function(D,v){return v.filter(function(h){for(var a in h)if(Yp2[a])return D.pendingPlayerOnResponseReceivedActions.push(h),!0;return!1})};
_.GT.Object.defineProperties(IL.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
IL.prototype.onStoreGraftedVeAction=IL.prototype.onStoreGraftedVeAction;IL.prototype.loadData=IL.prototype.loadData;IL.prototype.onYtUpdateUnseenNotificationCount=IL.prototype.onYtUpdateUnseenNotificationCount;IL.prototype.handleClearCookieAction=IL.prototype.handleClearCookieAction;IL.prototype.handleUpdateNotificationsUnseenCountAction=IL.prototype.handleUpdateNotificationsUnseenCountAction;IL.prototype.setUnseenNotificationCount=IL.prototype.setUnseenNotificationCount;
IL.prototype.onYtUpdateTitle=IL.prototype.onYtUpdateTitle;IL.prototype.setPageTitle=IL.prototype.setPageTitle;IL.prototype.onYtEndpointChangeHandler=IL.prototype.onYtEndpointChangeHandler;IL.prototype.onYtPageDataFetched=IL.prototype.onYtPageDataFetched;IL.prototype.handleNavigate=IL.prototype.handleNavigate;IL.prototype.onYtNavigate=IL.prototype.onYtNavigate;IL.prototype.onYtNavigateFinish=IL.prototype.onYtNavigateFinish;IL.prototype.onYtNavigateCache=IL.prototype.onYtNavigateCache;
IL.prototype.onYtNavigateError=IL.prototype.onYtNavigateError;IL.prototype.onYtNavigateStart=IL.prototype.onYtNavigateStart;IL.prototype.cancelPendingTasks=IL.prototype.cancelPendingTasks;IL.prototype.initHistoryManager=IL.prototype.initHistoryManager;IL.prototype.onYtHistoryLoad=IL.prototype.onYtHistoryLoad;IL.prototype.onYtHistoryPop=IL.prototype.onYtHistoryPop;IL.prototype.onYtNavigateSetPageOffset=IL.prototype.onYtNavigateSetPageOffset;IL.prototype.setPageOffset=IL.prototype.setPageOffset;
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],IL.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],IL.prototype,"data",void 0);_.e([_.lc("yt-navigate-set-page-offset"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],IL.prototype,"onYtNavigateSetPageOffset",null);
_.e([_.lc("yt-history-pop"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],IL.prototype,"onYtHistoryPop",null);_.e([_.lc("yt-history-load"),_.n("design:type",Function),_.n("design:paramtypes",[Event,_.T7y]),_.n("design:returntype")],IL.prototype,"onYtHistoryLoad",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],IL.prototype,"onYtNavigate",null);
_.e([_.lc("yt-update-title"),_.n("design:type",Function),_.n("design:paramtypes",[Event,String]),_.n("design:returntype")],IL.prototype,"onYtUpdateTitle",null);_.e([_.lc("yt-update-unseen-notification-count"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Number]),_.n("design:returntype")],IL.prototype,"onYtUpdateUnseenNotificationCount",null);_.e([_.AV()],IL);lkC.YtdAppBehavior=[_.ed.YtActionHandlerBehavior,IL.prototype];var kn=function(){var D=_.XS.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.J(kn,_.XS);kn.prototype.ready=function(){var D=this;_.ZW(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){D.onChange_()})};
kn.prototype.dataChanged_=function(){_.ZW(this.hostElement).querySelector("#checkbox").checked=!1};
kn.prototype.onChange_=function(){var D=_.ZW(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.F1(this.hostElement,"yt-dismissal-reason-"+D,this.data.feedbackToken)};
kn.prototype.dataChanged_=kn.prototype.dataChanged_;_.e([_.Y(),_.n("design:type",Object)],kn.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kn.prototype,"dataChanged_",null);_.e([_.AV()],kn);var s_C=[kn.prototype];var SF=function(){var D=_.XS.apply(this,arguments)||this;D.timeoutJobId=0;D.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return D};
_.J(SF,_.XS);SF.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
SF.prototype.startTimeout=function(){var D=this,v=this.data&&this.data.displayDurationSeconds;v&&!this.timeoutJobId&&(this.timeoutJobId=_.c1(_.HK,function(){_.zU(D.hostElement,"yt-close-popup-action",[D.is]);D.timeoutJobId=0},v*1E3))};
SF.prototype.cancelTimeout=function(){_.HK.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
SF.prototype.ytdHatsSurveyBehaviorDataChanged=SF.prototype.ytdHatsSurveyBehaviorDataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],SF.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SF.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.e([_.AV()],SF);var mkX=[_.ed.YtActionHandlerBehavior,SF.prototype];var HEK=function(D,v){var h;return((h=D.prefixMapping)==null?0:h[v])?D.prefixMapping[v]:D.SHARED_RENDERERS_.hasOwnProperty(v)?"yt":D.prefix},JR={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}};JR.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.g("kevlar_mealbar_above_player"),modern:_.g("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"}};
JR.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};JR.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};JR.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
JR.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)"}};
JR.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};
JR.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};
JR.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};
JR.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};JR.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"}};
JR.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};JR.TOAST={component:null,properties:{}};var yjK=new function(D,v,h){this.supportedPopups=D;this.navigationEndpointPopupMap=v;this.popupTypeMap=h;this.supportedPopups=D;this.navigationEndpointPopupMap=v;this.popupTypeMap=h}({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:_.g("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"}),w$d=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$19963_popupConfig=JR;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 ez2=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Vh.getInstance()},pP=function(D,v){var h=D.pageNameToElement.get(v);
if(!h){switch(v){case "watch":var a=_.g("web_watch_force_learning_journey_for_testing")?_.Nv("ytd-watch-learning-journey"):_.g("kevlar_watch_fixie")?_.Nv("ytd-watch-fixie"):_.g("kevlar_watch_grid")?_.Nv("ytd-watch-grid"):_.Nv("ytd-watch-flexy");break;case "learning_journey_watch":a=_.Nv("ytd-watch-learning-journey");break;case "shorts":a=_.Nv("ytd-shorts");break;case "search":a=_.Nv("ytd-search");break;case "channel":a=_.Nv("ytd-browse");a.pageSubtype="channels";break;case "trending":a=_.Nv("ytd-browse");
a.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":a=
_.Nv("ytd-browse");a.pageSubtype=v;break;case "browse":a=_.Nv("ytd-browse");break;default:_.yR(new _.XH("Error getting page element for type",v))}h=a;D.pageNameToElement.set(v,h)}return h};
ez2.prototype.preparePage=function(D,v,h){h&&(D=_.NP(h)||D);if(D!=="watch"&&D!=="learning_journey_watch"){var a=this.elementPoolPopulator,Q=D;Q!=a.targetPage_&&a.pendingPages_.indexOf(Q)>-1&&(a.targetPage_&&(a.pendingPages_.unshift(a.targetPage_),a.abort()),VIK(a,Q),_.e04(a,Q))}if((a=pP(this,D))||!_.k(h,_.RB)){a.isAttached||a===v||(a.hidden=!0);if(!a.data&&(D!=="watch"&&D!=="learning_journey_watch"||!_.g("swatcheroo_page_pool_dont_provide_filler_data"))){var G;if(D=(G=_.eA("FILLER_DATA",{})[D])==
null?void 0:G.response)a.data=D}return a}};var nub=function(D){this.JSC$32112_clientRoot=D;this.playlistHandlerActionMap={"yt-add-to-playlist-command":n5K,"yt-end-playlist-command":O_r,"yt-recover-playlist-command":T1s,"yt-refresh-playlist-command":WrX,"yt-playlist-remove-videos-action":RUr};_.rf(_.iD.getInstance(),this.playlistHandlerActionMap,this.JSC$32112_clientRoot);LvZ()},OEr;var lZ=function(D,v,h){this.apiKey=D;this.endpoint=v;this.confidenceThreshold=h===void 0?.5:h;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=v==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||v==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
v==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||v==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Cb3};
_.V=lZ.prototype;
_.V.start=function(D){if(this.state===0)if(this.isOnline()){D.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=D.supportsHttpHeadersOverwriteParam);D.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=D.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.wK("voice_assistant");_.n1("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=D.languageCode||"en-US";this.supportsCrossDomainXhr=D.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=D.youtubeAssistantRequest||null;this.listeningHandler=D.listeningHandler||this.listeningHandler;this.audioDetectedHandler=D.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=D.stopHandler||this.stopHandler;this.completeHandler=D.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=D.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=D.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
D.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=D.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=D.accessToken;this.additionalHeaders=D.additionalHeaders||{};var v;this.prefetchResponseTimeoutMs=(v=D.prefetchResponseTimeoutMs)!=null?v:this.prefetchResponseTimeoutMs;KEX(this);this.startAudio();Tzr(this)}else this.errorHandler("OFFLINE")};
_.V.stop=function(D){var v=D===void 0?{}:D;D=v.logCancel===void 0?!0:v.logCancel;var h=v.logMicClosed===void 0?!0:v.logMicClosed;var a=v.handleError===void 0?!0:v.handleError;v=v.handleStop===void 0?!0:v.handleStop;this.state!==0&&(D&&N2("voz_cx"),Yn(this,{logMicClosed:h,handleStop:v}),a&&this.errorHandler("ABORTED"))};
_.V.getState=function(){return this.state};
_.V.isSupported=function(){return!0};
_.V.stopAudio=function(D){(D===void 0||D)&&N2("voz_mf")};
_.V.startAudio=function(){N2("voz_vp");return _.E9(null)};
var Rz2=function(D,v){D.channelOpen&&(D.state!==2&&(D.state=2,N2("voz_ss"),D.listeningHandler()),v=new Uint8Array(v),v='{ "audioIn": "'+_.dr(v)+'" }',D.channel.send(v))},Yn=function(D,v){var h=v===void 0?{}:v;
v=h.logMicClosed===void 0?!0:h.logMicClosed;h=h.handleStop===void 0?!0:h.handleStop;D.vozEndOfDataTimeout>-1&&(clearTimeout(D.vozEndOfDataTimeout),D.vozEndOfDataTimeout=-1);iEU(D);D.stopAudio(v);D.channel&&(D.channelOpen=!1,D.manuallyClosedChannel=!0,D.channel.close(),D.channel=void 0);D.transcribedSpeechResults=[];D.state=0;h&&D.stopHandler()},KEX=function(D){var v={httpHeadersOverwriteParam:D.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},D.additionalHeaders,D.accessToken&&D.isUsingVoz?{Authorization:"Bearer "+D.accessToken}:{"x-goog-api-key":D.apiKey}),supportsCrossDomainXhr:D.supportsCrossDomainXhr};D.channel=new sv(D.endpoint,v);D.channel.open();_.s_(D.channel,"w",function(){var h=D.channel,a=h.send,Q=D.isUsingVoz?"PLACEHOLDER":"example";Q={config:{dialogStateIn:{languageCode:D.languageCode},deviceConfig:{deviceId:Q,deviceModelId:Q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!D.isUsingVoz)Q.config.requestType=4;else if(D.isUsingVoz&&D.youtubeAssistantRequest){var G=JSON.stringify(D.youtubeAssistantRequest);Q.config.internalIn={youtubeAssistantS3InputJson:G}}a.call(h,Q);D.channelOpen=!0;D.manuallyClosedChannel=!1});
_.s_(D.channel,"x",function(){D.manuallyClosedChannel||(D.channelOpen=!1,D.channel=void 0,Yn(D))});
_.s_(D.channel,"z",function(h){if(h.data){iEU(D);for(var a=0;a<h.data.length;a++){var Q=D,G=h.data[a],x=G.speechResults;if(x)a:{var f=[];G=[];var C=!1;x=_.P(x);for(var U=x.next();!U.done;U=x.next()){U=U.value;if(U.noSpeech){Yn(Q);Q.errorHandler("NO_SPEECH");break a}U.transcript!==void 0&&U.stability!==void 0&&(U.stability<Q.confidenceThreshold&&(C=!0),C?G.push(U.transcript):f.push(U.transcript))}if(f.length!==0||G.length!==0)f=f.join(" "),G=G.join(" "),Q.receivedEndOfUtterance&&!Q.isUsingVoz?Q.isUsingVoz||
Q.completeHandler([f,G]):(C=Q,x=f,U=G,N2("voz_sf"),C.transcriptionUpdateHandler(x,U),C.transcribedSpeechResults=[x,U]),Q.receivedEndOfUtterance&&(N2("voz_eou"),Q.transcriptionCompleteHandler([f,G]),Q.isUsingVoz&&(Q.prefetchResponseTimeoutMs===0?Yn(Q,{logMicClosed:!1,handleStop:!0}):Q.prefetchResponseTimeoutMs>0&&WEI(Q)))}else Q.isUsingVoz&&(G==null?0:G.internalOut)?(G=JSON.parse(G.internalOut.youtubeAssistantS3OutputJson),G.userHasOptedInToVaa||G.vaaConsent?Q.vaaConsentUpdateHandler(!!G.userHasOptedInToVaa,
!!G.vaaConsent):(t1$(Q),G&&(f=Q.transcribedSpeechResults,N2("voz_rqf"),Q.completeHandler(f,G)))):G.eventType==="END_OF_UTTERANCE"?Q.receivedEndOfUtterance=!0:(N2("voz_err"),Q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.yR(Error("sl")))}}});
_.s_(D.channel,"y",function(h){Yn(D);switch(h.status){case 1:h="WEBCHANNEL_NETWORK_ERROR";break;case 2:h="WEBCHANNEL_SERVER_ERROR";break;default:h="WEBCHANNEL_UNKNOWN_ERROR"}D.errorHandler(h);D.logError(Error(h))})};
lZ.prototype.logError=function(D){_.mV(D)};
lZ.prototype.isOnline=function(){return!0};
var WEI=function(D){t1$(D);D.prefetchResponseSetTimeoutId=setTimeout(function(){Yn(D,{logMicClosed:!1,handleStop:!0})},D.prefetchResponseTimeoutMs)},t1$=function(D){D.prefetchResponseSetTimeoutId>-1&&(clearTimeout(D.prefetchResponseSetTimeoutId),D.prefetchResponseSetTimeoutId=-1)},Tzr=function(D){iEU(D);
D.noResponseReceivedTimeout=window.setTimeout(function(){Yn(D);D.errorHandler("NO_SPEECH")},11E3)},iEU=function(D){D.noResponseReceivedTimeout>-1&&(window.clearTimeout(D.noResponseReceivedTimeout),D.noResponseReceivedTimeout=-1)},N2=function(D){_.ea(D,void 0,"voice_assistant")};var Bb=function(){lZ.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.J(Bb,lZ);Bb.prototype.isSupported=function(){return t3U()};
Bb.prototype.startAudio=function(){var D=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.H8(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(a){rjK(D,a)};
this.processor.connect(this.audioContext.destination);var v=function(a){D.stream=a;if(!D.audioContext)return _.E9(null);a=D.audioContext.createMediaStreamSource(a);D.processor&&a.connect(D.processor);return _.E9(null)},h={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?v(this.stream):(h=navigator.mediaDevices.getUserMedia(h))?h.then(v).catch(function(a){Yn(D);a.name&&a.name==="NotAllowedError"?D.errorHandler("NO_MICROPHONE_PERMISSION"):(D.errorHandler("AUDIO_ERROR"),D.logError(a));return _.H8(null)}):(Yn(this),this.errorHandler("AUDIO_ERROR"),_.yR(Error("tl")));
return lZ.prototype.startAudio.call(this)};
Bb.prototype.stopAudio=function(D){D=D===void 0?!0:D;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(v){v.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;lZ.prototype.stopAudio.call(this,D)};
Bb.prototype.isOnline=function(){return navigator.onLine};
var rjK=function(D,v){if(D.audioContext)if(window.OfflineAudioContext){var h=D.audioContext.sampleRate,a=v.inputBuffer.getChannelData(0);v=new window.OfflineAudioContext(1,a.length,16E3);for(var Q=v.createBuffer(1,a.length,h),G=Q.getChannelData(0),x=0,f=0;f<a.length;f++)G[f]=a[f],x+=G[f]*G[f];!D.audioDetected&&Math.sqrt(x/a.length)>.01&&(D.audioDetected=!0,D.audioDetectedHandler());a=v.createBufferSource();a.buffer=Q;a.connect(v.destination);a.start(0);v.oncomplete=function(C){C=C.renderedBuffer.getChannelData(0);
for(var U=Math.floor(16384E3/h),L=new Int16Array(U),Z=0;Z<U;++Z)L[Z]=Math.max(-1,Math.min(1,C[Z]))*32767;Rz2(D,L.buffer)};
v.startRendering()}else uE2(D,v)},uE2=function(D,v){var h=D.audioContext.sampleRate,a=v.inputBuffer.getChannelData(0),Q=Math.floor((h+8E3)/16E3);
h=a.length/Q;v=new Float32Array(h);for(var G=0;G<h;++G)v[G]=a[G*Q];a=new Int16Array(h);for(Q=0;Q<h;++Q)a[Q]=Math.max(-1,Math.min(1,v[Q]))*32767;Rz2(D,a.buffer)};var DNb={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var vbr=function(){this.JSC$20028_audioEnabled=!0;this.audioFeedbackHolder={}};
vbr.prototype.isPlaying=function(D){return D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>2};
var hRK=function(D){for(var v=_.P(Object.values(DNb)),h=v.next();!h.done;h=v.next())h=h.value,D.audioFeedbackHolder[h]=new Audio,D.audioFeedbackHolder[h].src="/s/search/audio/"+h+".mp3",D.audioFeedbackHolder[h].load()},cb=function(D,v){if(D.JSC$20028_audioEnabled!==!1&&v in D.audioFeedbackHolder){for(var h=_.P(Object.values(D.audioFeedbackHolder)),a=h.next();!a.done;a=h.next())a=a.value,D.isPlaying(a)&&a.pause();
D.audioFeedbackHolder[v].currentTime=0;D.audioFeedbackHolder[v].play().catch(function(){})}};var ahC=function(D,v){var h=this;this.store=D;this.service=v;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){h.setState("offline");h.stop()};
this.audioPlayer=new vbr;var a;(a=this.audioPlayer)==null||hRK(a)};
_.V=ahC.prototype;_.V.getService=function(){return this.service};
_.V.isEnabled=function(){return!!this.service};
_.V.isSupported=function(){var D;return(D=this.service)==null?void 0:D.isSupported()};
_.V.start=function(){var D=this,v,h,a,Q,G,x,f,C,U,L,Z,E,I;return _.M(function(S){switch(S.nextAddress){case 1:D.store.dispatch(lNS("",""));if(!navigator.onLine)return D.setState("offline"),S.return();window.addEventListener("offline",D.handleOfflineEvent);D.stream=null;if(!D.permissionsSupported){S.jumpTo(2);break}_.gE(S,3);return S.yield($NK(D),5);case 5:v=S.yieldResult;if(!v)return(h=D.audioPlayer)==null||cb(h,"failure"),S.return();D.service.stream=D.stream;D.setState("listening");_.rl(S,2);break;
case 3:_.NS(S),D.permissionsSupported=!1;case 2:a={context:_.dPq(_.fL())},a.youtubeAssistantParams={searchParams:{inlineSearchResponse:D.enableInlineSearchResponse}},Q=function(B,A){D.store.dispatch(Nsd("transcribing"));D.store.dispatch(lNS(B,A))},G=function(){var B;
(B=D.audioPlayer)==null||cb(B,"open");D.setState("listening")},x=function(){D.setState("transcribing")},f=function(B){D.setErrorState(B)},C=function(B,A){var d;
(d=D.audioPlayer)==null||cb(d,"success");A&&(_.g("kevlar_voice_search_inline_search")&&(D.responseProcessor=_.xd().resolve(_.mlr),D.responseProcessor&&(d=A.navigationAction,B=A.prefetchedSearchResponse,d&&B&&(d=(new _.mId).JSC$13126_getStoreKey(d),_.ip(D.responseProcessor,B,d)))),D.JSC$20046_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",A))},U=function(){window.removeEventListener("offline",D.handleOfflineEvent)},L=_.Oqq(!1),Z=L.Authorization!=null,E=D.enableFirstPartyAuth||
D.enableFPAForSignedInUsers&&Z?L:{"X-Goog-Visitor-Id":L["X-Goog-Visitor-Id"]},I={completeHandler:C,
errorHandler:f,listeningHandler:G,audioDetectedHandler:x,stopHandler:U,transcriptionUpdateHandler:Q,youtubeAssistantRequest:a,languageCode:Q6m(),additionalHeaders:E,supportsCrossDomainXhr:D.enableFirstPartyAuth||D.enableFPAForSignedInUsers&&Z,supportsHttpHeadersOverwriteParam:!D.disableHttpHeadersOverwrite},D.service.start(I),_.YI(S)}})};
_.V.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.V.reset=function(){this.store.dispatch(_.oG({type:"RESET_VOICE_SEARCH_STATE"}))};
_.V.setState=function(D){this.store.dispatch(Nsd(D))};
_.V.setErrorState=function(D){switch(D){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var v;(v=this.audioPlayer)==null||cb(v,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)$NK(this);else{var h;(h=this.audioPlayer)==null||cb(h,"failure");this.setState("permission-denied")}break;case "ABORTED":var a;(a=this.audioPlayer)==null||cb(a,"no_input");break;default:var Q;(Q=this.audioPlayer)==
null||cb(Q,"no_input");this.setState("timeout")}};
var $NK=function(D){var v,h;return _.M(function(a){switch(a.nextAddress){case 1:return a.yield(navigator.permissions.query({name:"microphone"}),2);case 2:v=a.yieldResult;if(v.state==="granted")return a.return(!0);if(v.state==="denied")return D.setState("permission-denied"),a.return(!1);D.setState("permission");h={audio:{sampleSize:16,channelCount:1},video:!1};_.gE(a,3);return a.yield(navigator.mediaDevices.getUserMedia(h),5);case 5:return D.stream=a.yieldResult,a.return(!0);case 3:return _.NS(a),
D.setState("permission-denied"),a.return(!1)}})},Q6m=function(){var D=_.eA("INNERTUBE_CONTEXT_HL"),v=_.eA("INNERTUBE_CONTEXT_GL");
return D.indexOf("-")>-1?D:D+"-"+v};var GIU=function(D,v,h){ahC.call(this,v,h);this.JSC$20046_actionRouter=D;this.enableInlineSearchResponse=_.g("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.g("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.g("kevlar_voice_search_enable_fpa_signedin_users")},Vl$;
_.J(GIU,ahC);
var PvZ=function(){if(!Vl$){var D="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.g("kevlar_voice_search_auth_enabled")||_.g("kevlar_voice_search_use_yt_endpoint")?D="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.g("kevlar_voice_search_use_fp_endpoint")&&(D="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Vl$=
new GIU(_.iD.getInstance(),_.Gb(),new Bb(_.eA("VOZ_API_KEY"),D,.5))}return Vl$};var xN3=function(D){this.JSC$20050_clientRoot=D;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$20050_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)]]));D=_.P(this.eventListeners);for(var v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;h=_.P(h);for(var a=h.next();!a.done;a=h.next()){var Q=
_.P(a.value);a=Q.next().value;Q=Q.next().value;v.addEventListener(a,Q)}}_.rf(_.iD.getInstance(),this.autonavPauseActionMap,this.JSC$20050_clientRoot)},MlX,fhs=function(D){return _.g("kevlar_autonav_popup_filtering")?(D=_.xU(D))?D.hasAttribute("prevent-autonav"):!0:!0};
_.V=xN3.prototype;_.V.onIronOverlayOpened=function(D){fhs(D)&&(this.autonavPauseReasons.overlayOpen=!0,Xj(this))};
_.V.onIronOverlayClosed=function(D){fhs(D)&&(this.autonavPauseReasons.overlayOpen=!1,Xj(this))};
_.V.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Xj(this)};
_.V.onYtAutonavPauseBlur=function(){var D=this;_.HK.addJob(function(){D.isInBackground()||(D.autonavPauseReasons.inputBoxFocus=!1,Xj(D))},8,0)};
_.V.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Xj(this)};
_.V.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Xj(this)};
_.V.onYtAutonavPauseScroll=function(){var D=_.xd().resolve(_.P4);D.isOnWatch()&&(D=D.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=D.getBoundingClientRect().top<-200,Xj(this))};
_.V.onYtAutonavPauseUserEngagement=function(D){var v=this;if(_.g("user_engagement_enable_autoplay_pause_feature")){var h=Number(D.lowEngagementThresholdMs);isNaN(h)||h<=0||D.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.xd().resolve(_.qL),_.x_()<h?_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.zyb()?(this.userEngagementCsn=_.wd(),_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
v.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Xj(this)):_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.ijo(Error("ul`"+JSON.stringify(D)))};
_.V.onYtAutonavPausePlayer=function(D){this.autonavPauseReasons.requestedByPlayer=!!D.detail;Xj(this)};
_.V.onYtAutonavVisibilityChanged=function(){var D=this,v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return(v=_.Mq())?Q.yield(v.getPlayerPromise(),2):Q.return();h=Q.yieldResult;a=h.isMuted()||h.getVolume()===0;D.autonavPauseReasons.backgroundAndMute=D.isInBackground()&&a;Xj(D);_.YI(Q)})};
_.V.onYtAutonavPausePlayerEnded=function(){_.xd().resolve(_.qL);var D=144E5;_.g("user_engagement_enable_autoplay_pause_feature")||_.g("is_part_of_any_user_engagement_experiment")||(D=45E5);this.autonavPauseReasons.longIdle=_.x_()>D;CvS(this);Xj(this)};
_.V.onYtUserActivity=function(){var D=this;this.autonavPauseReasons.userEngagement&&(_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",D.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Xj(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",D.userEngagementCsn);_.s5()}),this.autonavPauseReasons.youthereLactExperiment=!1,Xj(this));
this.autonavPauseReasons.longIdle&&!_.g("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Xj(this))};
_.V.isInBackground=function(){var D=window.document.visibilityState;return!(!D||D==="visible")};
var Xj=function(D){for(var v=!1,h=_.P(Object.values(D.autonavPauseReasons)),a=h.next();!a.done;a=h.next())a=a.value,v=v||a;v?_.Jp.getInstance().pause(D.autonavPauseReasons):(D=_.Jp.getInstance(),D.autonavState_==3?(D.setState(2,!1,!1),D.autonavPauseReason_=void 0):D.autonavState_==1&&(D.disabledAutonavPauseReason_=void 0))},CvS=function(D){var v=!1;
if(_.g("enable_autoplay_pause_by_lact")){_.xd().resolve(_.qL);v=_.oZ("autoplay_pause_by_lact_sec")*1E3;var h=_.oZ("autoplay_pause_by_lact_sampling_fraction");(v=_.x_()>=v&&Math.random()<h)&&!_.zyb()&&(_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),v=!1)}v!==D.autonavPauseReasons.youthereLactExperiment&&(D.autonavPauseReasons.youthereLactExperiment=v)&&(D.userEngagementCsn=_.wd(),_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",D.userEngagementCsn)}));
D.autonavPauseReasons.userEngagement&&_.c1(_.HK,function(){_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",D.userEngagementCsn)})};
xN3.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.mW("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.s5(),this.autonavPauseReasons.youthereLactExperiment=!1,Xj(this));this.autonavPauseReasons.userEngagement&&(_.mW("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Xj(this))};
xN3.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var obS=_.W4.persistentPanelVisibleSelector,AR=function(){var D=_.c.apply(this,arguments)||this;D.miniGuideVisible=!1;D.guideOpened=_.g("disable_initial_guide_state_fix")?!1:D.canFitPersistentGuide(D.initialBodyClientWidth);D.guideUserStateOpened=D.getInitialGuideUserStateOpened();D.isFullscreenShorts=!1;D.miniGuideWidthThreshold=_.oZ("kevlar_mini_guide_width_threshold",791);D.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
D.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");D.persistentGuideBlockedPagePathRegex=new RegExp(D.persistentGuideBlockedPagesPatterns.join("|"));D.animationTransitionDuration=0;D.lateDataResolver=_.hn();D.initialGuideDataFetchFailed=!1;D.initialLoad=!0;D.guideRenderers=new Set;D.isMouseOverGuide=!1;D.sessionUserManuallyExpandedGuideState=
!1;D.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return D};
_.J(AR,_.c);_.V=AR.prototype;_.V.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.V.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.V.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.V.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.V.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.V.ready=function(){_.xd().addProvider({provide:_.zJ,useValue:this.hostElement})};
_.V.attached=function(){var D=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.pZ(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.pZ(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.pZ(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.pZ(this,this.onYtGuideShow));_.$R(this,function(){D.animationTransitionDuration=200})};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.pZ(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.pZ(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.pZ(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.pZ(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.pZ(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.pZ(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.pZ(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.V.getData=function(){return this.data};
_.V.load=function(){var D=this,v,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=D.lateDataResolver.resolve.bind(D),G.return(D.lateDataResolver.promise);if(window.ytInitialGuideData)return v=_.hn(),v.resolve(window.ytInitialGuideData),G.return(v.promise);a=!1;_.gE(G,2);return G.yield(D.fetchGuideData(),4);case 4:h=G.yieldResult;_.rl(G,3);break;case 2:Q=_.NS(G),Q.message==="Returned error"&&(a=
!0);case 3:if(h)return G.return(h);D.onYtGuideClose();a||(D.initialGuideDataFetchFailed=!0);return G.return(D.lateDataResolver.promise)}})};
_.V.fetchGuideData=function(){var D=this,v,h,a,Q,G,x,f;return _.M(function(C){if(C.nextAddress==1)return v=_.xd(),D.guidePromise||(h=v.resolve(_.RX),D.guidePromise=_.v4(h,ALU)),C.yield(D.guidePromise,2);if(C.nextAddress!=3)return a=C.yieldResult,Q=v.resolve(_.As),C.yield(Q(),3);(G=C.yieldResult)&&((x=a)==null?void 0:(f=x.responseContext)==null?void 0:f.maxAgeSeconds)!==0&&G.put("service:guide:fallback",new _.m_({innertubeResponse:a}));return C.return(a)})};
_.V.initializeGuideDataIfEmpty=function(){var D=this,v,h;return _.M(function(a){if(a.nextAddress==1){if(!D.initialGuideDataFetchFailed||D.data)return a.return();_.gE(a,2);return a.yield(D.fetchGuideData(),4)}if(a.nextAddress!=2)return(v=a.yieldResult)&&D.lateDataResolver.resolve(v),_.rl(a,0);h=_.NS(a);_.yR(h);_.YI(a)})};
_.V.initializeGuideData=function(){var D=this,v;return _.M(function(h){switch(h.nextAddress){case 1:return _.FC(P03(),{mainAppWeb:_.$U()}),_.gE(h,2),h.yield(D.load(),4);case 4:D.data=h.yieldResult;_.rl(h,3);break;case 2:_.NS(h),_.zk(P03(),"FAILURE");case 3:v=D.data&&D.data.items&&D.data.items.length>0?"SUCCESS":"FAILURE",_.zk(P03(),v),_.YI(h)}})};
_.V.setGuideData=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1)return v.disabled?Q.return():v.data?(D.data=v.data,v.guideRenderers.add(D),Q.return()):Q.yield(v.initializeGuideData(),2);v.graftGuideToPage();h=_.nJ("IS_HOMEPAGE_COLD")?"eop":void 0;_.g("disable_element_pool_populator")?v.setGuideDataAfterInit(D):(a=new _.Yk(1,h),_.Bt(a,v.setGuideDataAfterInit.bind(v,D)));_.YI(Q)})};
_.V.setGuideDataAfterInit=function(D){D.data=this.data;D.markDirty();this.guideRenderers.add(D);_.hD(function(){_.ea("gle")});
_.$R(this,function(){_.ea("gpe")})};
_.V.graftGuideToPage=function(){if(this.data){var D=this.data&&this.data.trackingParams;D&&(D=_.d4(D),_.jh(_.c8(),D))}};
_.V.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.pZ(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.V.onDrawerOpenedChanged=function(D,v){!v.value&&this.guideOpened&&(this.guideOpened=!1)};
_.V.onYtGuideToggle=function(D){var v=this.guideOpened;this.guideOpened=!v;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var h=_.YE();_.BU(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;h.save()}this.updateGuideDrawerElementState();if(this.guideElement){var a;this.guideOpened&&((a=D.detail)==null?0:a.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.pZ(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.pZ(this,this.onAppDrawerTransitioned))}v||this.initializeGuideDataIfEmpty()};
_.V.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.pZ(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.hX(this.guideElement)};
_.V.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.pZ(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(JyI(this.guideOpened))};
_.V.guidePersistentAndVisibleChanged=function(){_.U9(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.V.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.oG({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.V.miniGuideVisibleChanged=function(){_.U9(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.V.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(JyI(this.guideOpened)),this.initialLoad=!1);_.U9(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.V.activeEndpointChanged=function(){_.U9(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.V.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.V.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()};
_.V.cachedClientWidthChanged=function(){this.updateGuideState()};
_.V.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.V.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var D=this.canFitPersistentGuide(this.cachedClientWidth);D?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=D}this.updateGuideDrawerElementState()};
_.V.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.V.getGuideOpened=function(){return this.guideOpened};
_.V.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.V.getActiveEndpoint=function(){return this.activeEndpoint};
_.V.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.V.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&&_.F1(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.V.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.g("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.V.handleGuideMouseLeave=function(){var D=this;!this.sessionUserManuallyExpandedGuideState&&_.g("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.aq(this,"handleGuideMouseLeave",function(){D.isMouseOverGuide||!D.guideOpened||D.miniGuideVisible||(D.guideOpened=!1,D.updateGuideDrawerElementState())},100))};
_.V.computeGuidePersistentAndVisible=function(){var D=this;_.aq(this,"computeGuidePersistentAndVisible",function(){D.guidePersistentAndVisible=D.guideOpened&&D.guidePersistent;D.guideIsVisibleButNotPersistent=!(!D.guideOpened||D.guidePersistent)})};
_.V.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.V.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.V.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.V.startLoadingWatch=function(){this.closeGuide()};
_.V.startLoadingShorts=function(){_.g("web_hide_guide_on_shorts")&&this.closeGuide()};
_.V.onYtNavigateFinish=function(D,v){if(!_.zw||v){this.activeEndpoint=v.endpoint;this.pageType=v.pageType;this.pageUrl=v.response.url;var h,a;D=(a=_.k((h=v.endpoint)==null?void 0:h.commandMetadata,_.Sa))==null?void 0:a.url;!this.pageUrl&&D&&(this.pageUrl=D);_.g("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.V.getVisibleGuideRenderer=function(){for(var D=_.P(this.guideRenderers),v=D.next();!v.done;v=D.next())if(v=v.value,this.miniGuideVisible&&v.is==="ytd-mini-guide-renderer"||this.guideOpened&&v.is==="ytd-guide-renderer")return v;return null};
_.V.markGuideRendererDirty=function(D){if(D){typeof D.markDirty==="function"&&D.markDirty();D=_.P([].concat(_.j_(_.ZW(D).children)));for(var v=D.next();!v.done;v=D.next())this.markGuideRendererDirty(v.value)}};
_.V.persistentGuideEnabled=function(D,v){if(!v||D==="watch"||D==="settings"||D==="shorts"&&this.isFullscreenShorts||_.g("reels_web_disable_persistent_guide_shorts")&&D==="shorts")return!1;var h=_.gl(v)||"";return _.g("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(a){return h===a}):!this.persistentGuideBlockedPagePathRegex.test(h)};
_.V.canFitPersistentGuide=function(D){var v=_.oZ("kevlar_persistent_guide_width_threshold",1312);return v===-1||_.g("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:D>this.calculateGuideThreshold(v)};
_.V.calculateGuideThreshold=function(D){return _.g("enable_ai_companion")?D+(this.persistentPanelVisible?400:0):D};
_.V.canFitMiniGuide=function(D){return this.miniGuideWidthThreshold===-1?!1:D>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.V.onResize=function(){var D=this;_.aq(this,"calculateGuideState",function(){D.onResizeDebounced()})};
_.V.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.V.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.V.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.V.getInitialGuideUserStateOpened=function(){return _.g("web_force_mini_guide_default")?!1:!_.YE().getFlag(109)};
_.GT.Object.defineProperties(AR.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.eA("initialBodyClientWidth")||window.innerWidth}}});
AR.prototype.onResize=AR.prototype.onResize;AR.prototype.observeForMiniGuideVisible=AR.prototype.observeForMiniGuideVisible;AR.prototype.computeGuidePersistentAndVisible=AR.prototype.computeGuidePersistentAndVisible;AR.prototype.persistentPanelVisibleChanged=AR.prototype.persistentPanelVisibleChanged;AR.prototype.cachedClientWidthChanged=AR.prototype.cachedClientWidthChanged;AR.prototype.resetGuide=AR.prototype.resetGuide;AR.prototype.activeEndpointChanged=AR.prototype.activeEndpointChanged;
AR.prototype.guideOpenedChanged=AR.prototype.guideOpenedChanged;AR.prototype.miniGuideVisibleChanged=AR.prototype.miniGuideVisibleChanged;AR.prototype.guideIsVisibleButNotPersistentChanged=AR.prototype.guideIsVisibleButNotPersistentChanged;AR.prototype.guidePersistentAndVisibleChanged=AR.prototype.guidePersistentAndVisibleChanged;AR.prototype.onGuideElementChanged=AR.prototype.onGuideElementChanged;AR.prototype.onGuidePersistentChanged=AR.prototype.onGuidePersistentChanged;
AR.prototype.onRenderGuideChanged=AR.prototype.onRenderGuideChanged;AR.prototype.onActiveEndpointChanged=AR.prototype.onActiveEndpointChanged;AR.prototype.onMiniGuideVisibleChanged=AR.prototype.onMiniGuideVisibleChanged;AR.prototype.onGuideIsVisibleButNotPersistentChanged=AR.prototype.onGuideIsVisibleButNotPersistentChanged;AR.prototype.onGuidePersistendAndVisibleChanged=AR.prototype.onGuidePersistendAndVisibleChanged;
_.e([_.l(_.iN),_.n("design:type",Object)],AR.prototype,"ironResizableBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],AR.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],AR.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],AR.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],AR.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],AR.prototype,"disabled",void 0);_.e([_.Y(),_.n("design:type",Boolean)],AR.prototype,"guidePersistentAndVisible",void 0);_.e([_.Ni("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onGuidePersistendAndVisibleChanged",null);_.e([_.Y(),_.n("design:type",Boolean)],AR.prototype,"guideIsVisibleButNotPersistent",void 0);
_.e([_.Ni("guideIsVisibleButNotPersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.e([_.Y(),_.n("design:type",Object)],AR.prototype,"miniGuideVisible",void 0);_.e([_.Ni("miniGuideVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onMiniGuideVisibleChanged",null);_.e([_.Y(),_.n("design:type",Boolean)],AR.prototype,"forceMiniGuideClose",void 0);
_.e([_.Y(),_.n("design:type",Object)],AR.prototype,"activeEndpoint",void 0);_.e([_.Ni("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onActiveEndpointChanged",null);_.e([_.Y(),_.n("design:type",Boolean)],AR.prototype,"renderGuide",void 0);_.e([_.Ni("renderGuide"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onRenderGuideChanged",null);
_.e([_.Y({selector:obS}),_.n("design:type",Boolean)],AR.prototype,"persistentPanelVisible",void 0);_.e([_.Y(),_.n("design:type",Object)],AR.prototype,"guideOpened",void 0);_.e([_.Y(),_.n("design:type",Boolean)],AR.prototype,"guidePersistent",void 0);_.e([_.Ni("guidePersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onGuidePersistentChanged",null);_.e([_.Y(),_.n("design:type",Object)],AR.prototype,"guideUserStateOpened",void 0);
_.e([_.Y(),_.n("design:type",String)],AR.prototype,"pageUrl",void 0);_.e([_.Y(),_.n("design:type",String)],AR.prototype,"pageType",void 0);_.e([_.Y(),_.n("design:type",Number)],AR.prototype,"cachedClientWidth",void 0);_.e([_.Y(),_.n("design:type",Object)],AR.prototype,"guideElement",void 0);_.e([_.Y({selector:_.CS}),_.n("design:type",Object)],AR.prototype,"isFullscreenShorts",void 0);
_.e([_.Ni("guideElement"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onGuideElementChanged",null);_.e([_.Ni("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"guidePersistentAndVisibleChanged",null);
_.e([_.qi("guideIsVisibleButNotPersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"guideIsVisibleButNotPersistentChanged",null);_.e([_.Ni("miniGuideVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"miniGuideVisibleChanged",null);_.e([_.qi("guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"guideOpenedChanged",null);
_.e([_.Ni("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"activeEndpointChanged",null);_.e([_.qi("pageUrl"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"resetGuide",null);_.e([_.qi("cachedClientWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"cachedClientWidthChanged",null);
_.e([_.qi("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"persistentPanelVisibleChanged",null);_.e([_.Ni("guideOpened","guidePersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"computeGuidePersistentAndVisible",null);
_.e([_.qi("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"observeForMiniGuideVisible",null);_.e([_.lc("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AR.prototype,"onResize",null);_.e([_.m({disableElementRegistration:!0,is:"yt-guide-manager"})],AR);
var FiK=_.w(AR,"yt-guide-manager",void 0,{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var q2=function(){var D=_.c.apply(this,arguments)||this;D.JSC$20060_keyboardInUse=!1;D.boundHandleCapturedKeydownEvent=function(v){D.handleCapturedKeydownEvent(v)};
return D};
_.J(q2,_.c);_.V=q2.prototype;_.V.attached=function(){this.listenToDocument(document)};
_.V.listenToDocument=function(D){D.addEventListener("keydown",_.pZ(this,this.onKeyDownEvent));D.addEventListener("keyup",_.pZ(this,this.onKeyUpEvent));D.addEventListener("mousedown",_.pZ(this,this.onMouseDownEvent));_.g("desktop_keyboard_capture_keydown_killswitch")||D.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.addEventListener("yt-page-data-updated",_.pZ(this,this.onPageUpdate))};
_.V.detached=function(){this.unlistenFromDocument(document)};
_.V.unlistenFromDocument=function(D){D.removeEventListener("keydown",_.pZ(this,this.onKeyDownEvent));D.removeEventListener("keyup",_.pZ(this,this.onKeyUpEvent));D.removeEventListener("mousedown",_.pZ(this,this.onMouseDownEvent));_.g("desktop_keyboard_capture_keydown_killswitch")||D.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.removeEventListener("yt-page-data-updated",_.pZ(this,this.onPageUpdate))};
_.V.ready=function(){_.xd().addProvider({provide:_.Xw,useValue:this})};
_.V.isKeyBoardInUse=function(){return this.JSC$20060_keyboardInUse};
_.V.handleCapturedKeydownEvent=function(D){if(D.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(D)};
_.V.onMouseDownEvent=function(){this.JSC$20060_keyboardInUse=!1};
_.V.onPageUpdate=function(){if(_.g("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.g("web_shorts_keyboard_shortcut_usage_log")){_.nM.clear();for(var D=_.P(_.wH),v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;h=_.En(h);_.nM.set(v,h);_.tP(_.wd(),_.yC(),h)}_.O3.clear();D=_.P(_.eS);for(v=D.next();!v.done;v=D.next())h=_.P(v.value),v=h.next().value,h=h.next().value,h=_.En(h),_.O3.set(v,h),_.tP(_.wd(),_.yC(),h);_.rK(_.wd(),_.yC(),[].concat(_.j_(_.O3.values()),
_.j_(_.nM.values())));_.DU(_.wd(),[].concat(_.j_(_.O3.values()),_.j_(_.nM.values())))}};
_.V.onMiniplayerActiveChange=function(){var D;(D=_.xd().resolve(_.Ok).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(D.document):this.unlistenFromDocument(D.document))};
_.V.ignoreKeyEvent=function(D){if(D.ctrlKey||D.altKey)if(_.g("kevlar_macro_markers_keyboard_shortcut")){if(D.keyCode!==37&&D.keyCode!==39)return!0}else return!0;var v=_.Pr(D)||[];return _.Z1K(v)?(_.g("web_button_or_anchor_list_item")&&cQX(v,D)&&(this.JSC$20060_keyboardInUse=!0),!0):D.defaultPrevented?(xW(D.keyCode,D.shiftKey,this.isShortsPage),!0):D.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(D):!1};
_.V.isSpacebarClick=function(D){var v=D||window.event;var h;v.composedPath&&typeof v.composedPath==="function"?h=v.composedPath():h=v.path;h&&h.length?v=h[0]:(v=v||window.event,v=v.target||v.srcElement,v.nodeType==3&&(v=v.parentNode));return v&&D.keyCode===32&&(D=v.tagName==="BUTTON"||v.tagName==="A"||v.tagName==="INPUT",v=(v=v.getAttribute("role"))&&(v==="option"||v==="button"||v.indexOf("menuitem")===0),D||v)?!0:!1};
_.V.onKeyDownEvent=function(D){if(!this.ignoreKeyEvent(D)&&(D.keyCode===191&&(D.shiftKey||D.metaKey?D.repeat!=null&&D.repeat||(this.openHotkeyDialog(),xW(D.keyCode,D.shiftKey,this.isShortsPage)):(this.focusSearchBox(),D.preventDefault())),!D.metaKey)){var v=_.xd().resolve(_.Ok);switch(D.keyCode){case 9:this.JSC$20060_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(D);break;case 84:v.pipController.getWindow()&&window.focus();this.toggleTheaterMode(D.keyCode,D.shiftKey);break;case 73:v.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(D.keyCode,D.shiftKey);break;case 70:if(this.isShortsPage&&_.g("web_fullscreen_shorts")){_.EEs();break}this.isMiniplayerActive()?v.pipController.getWindow()&&(v.close(!0),window.focus()):this.passEventToPlayer(D);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(D.keyCode,D.shiftKey):this.closeMiniplayer(D.keyCode,D.shiftKey)||this.passEventToPlayer(D);break;case 13:D.shiftKey&&_.xd().resolve(_.vI).activate(D);break;default:this.passEventToPlayer(D)}}};
_.V.onKeyUpEvent=function(D){if(!this.ignoreKeyEvent(D))if(_.g("web_speedmaster_spacebar_control")&&D.keyCode===32)this.handlePlayerSpaceKey(D,!0);else{var v=this.getPlayerManager();v&&(v=v.getPlayer())&&v.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)}};
_.V.getPlayerManager=function(){var D=_.Mq(),v=_.xd().resolve(_.PV(_.P4));return D&&v&&v.isOnWatch()?D:null};
_.V.passEventToPlayer=function(D,v){var h=this,a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){if(!_.g("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&h.isMiniplayerActive())a=_.xd().resolve(_.Ok).getPlayerElement();else if(h.inlinePreviewIsActive){if(Q=_.U9(h.hostElement,"yt-get-inline-preview-player-action"),(G=Q)==null?0:G[0])a=Q[0]}else a=_.Mq();return a?f.yield(a.getPlayerPromise(),3):f.jumpTo(0)}x=f.yieldResult;v?x.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,
D.key,D.code):x.handleGlobalKeyDown(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat);D.keyCode!==38&&D.keyCode!==40&&xW(D.keyCode,D.shiftKey,h.isShortsPage);_.YI(f)})};
_.V.focusSearchBox=function(){_.F1(this.hostElement,"yt-focus-searchbox")};
_.V.openHotkeyDialog=function(){_.F1(this.hostElement,"yt-open-hotkey-dialog")};
_.V.isMiniplayerActive=function(){return _.xd().resolve(_.Ok).isMiniplayerActive()};
_.V.closeMiniplayer=function(D,v){return this.isMiniplayerActive()?(_.xd().resolve(_.Ok).close(),xW(D,v,this.isShortsPage),!0):!1};
_.V.toggleTheaterMode=function(D,v){var h=_.n_(_.Gb().getState()),a=this.getPlayerManager(),Q=_.g("disable_theater_mode_keyboard")||_.nJ("START_IN_FULL_WINDOW_MODE");a&&!Q&&(h=!h,_.xE()&&_.g("external_fullscreen")&&(h=!0),_.zU(this.hostElement,"yt-toggle-theater-mode",[h]),xW(D,v,this.isShortsPage))};
_.V.toggleMiniplayer=function(D,v){var h=this.getPlayerManager();if(this.isMiniplayerActive()){var a;((a=_.xd().resolve(_.PV(_.P4)))==null?0:a.isOnWatch())?_.xd().resolve(_.Ok).close(!0):_.Mn(_.xd().resolve(_.Ok));xW(D,v,this.isShortsPage)}else h&&(_.zU(this.hostElement,"yt-activate-miniplayer-from-watch-action"),xW(D,v,this.isShortsPage))};
_.V.handlePlayerSpaceKey=function(D,v){var h=!!_.Mq()||this.isMiniplayerActive();h=_.g("disable_space_scroll_fix")||h;_.g("global_spacebar_pause")&&!this.isKeyBoardInUse()&&h&&(D.preventDefault(),this.passEventToPlayer(D,v))};
_.V.isPresentingTheaterMode=function(){return _.g("web_watch_enable_tm_esc_key")?_.n_(_.Gb().getState())&&!_.xE():!1};
q2.prototype.onMiniplayerActiveChange=q2.prototype.onMiniplayerActiveChange;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],q2.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],q2.prototype,"ytdReduxBehavior",void 0);_.e([_.Y({selector:_.Emq}),_.n("design:type",Boolean)],q2.prototype,"inlinePreviewIsActive",void 0);_.e([_.Y({selector:_.BF7}),_.n("design:type",Boolean)],q2.prototype,"isShortsPage",void 0);
_.e([_.Y({selector:_.eq}),_.n("design:type",Boolean)],q2.prototype,"miniplayerIsActive",void 0);_.e([_.Ni("miniplayerIsActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q2.prototype,"onMiniplayerActiveChange",null);_.e([_.m({disableElementRegistration:!0,is:"yt-hotkey-manager"})],q2);_.w(q2,"yt-hotkey-manager",void 0,{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var bZ=function(){var D=_.c.apply(this,arguments)||this;D.loopStateEntityKey_=null;D.playlistLoopStateEntity_=null;D.isShuffleNextPlaylist=!1;D.PLAYER_EVENTS_=new Map;D.playerListenersSetup_=!1;D.videoSkipJob_=0;D.canAutoAdvance_=!1;D.playerManager_=null;D.TEST_ONLY={};return D};
_.J(bZ,_.c);_.V=bZ.prototype;_.V.ready=function(){_.xd().addProvider({provide:_.fh,useValue:this.hostElement})};
_.V.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_)};
_.V.attached=function(){document.addEventListener("yt-navigate-start",_.pZ(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.pZ(this,this.onYtNavigateFinish_))};
_.V.detached=function(){document.removeEventListener("yt-navigate-start",_.pZ(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.pZ(this,this.onYtNavigateFinish_))};
_.V.updatePlaylistEventListeners=function(D,v){v&&!this.playerListenersSetup_?(this.playerManager_=D,this.registerPlaylistEventListeners_(D)):!v&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(D))};
_.V.setPlayer=function(D){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=D};
_.V.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.V.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.V.registerPlaylistEventListeners_=function(D){var v=this;D.getPlayerPromise().then(function(h){v.playerListenersSetup_||(v.ytPlayerListenerBehavior.listenToPlayerEvents(h,v.PLAYER_EVENTS_),v.playerListenersSetup_=!0)})};
_.V.removePlaylistEventListeners_=function(D){var v=this;D.getPlayerPromise().then(function(h){v.playerListenersSetup_&&(v.ytPlayerListenerBehavior.unlistenFromPlayerEvents(h,v.PLAYER_EVENTS_),v.playerListenersSetup_=!1)})};
_.V.setPlaylistComponent=function(D){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.pZ(this,this.onPlaylistYtNavigate_)),D&&(D.data&&this.playlistComponent.data&&D.data.playlistId==this.playlistComponent.data.playlistId?(D.loopOn=this.playlistComponent.loopOn,D.shuffleOn=this.playlistComponent.shuffleOn):(D.loopOn=!1,D.shuffleOn=!1),this.isShuffleNextPlaylist&&(D.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=D;this.playlistComponent.addEventListener("yt-navigate",
_.pZ(this,this.onPlaylistYtNavigate_))};
_.V.setAutoplayRenderer=function(D){this.autoplayData=D};
_.V.setPlaylistData=function(D){this.currentPlaylistData_=D;_.F1(this.hostElement,"yt-playlist-data-updated");_.sV.isEmpty(D)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(D)};
_.V.setPlayerPlaybackControlData=function(D){this.playerManager_&&this.playerManager_.updatePlayerComponents(D.playlistPanelRenderer)};
_.V.getPlaylistData=function(){return this.currentPlaylistData_};
_.V.getTempData_=function(D,v){if(this.playlistComponent==null)return null;D={};this.playlistComponent.shuffleOn&&(D.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(D.loop_on=this.playlistComponent.loopOn);v&&(D.autonav="1",_.xd().resolve(_.qL),v=_.x_(),v>0&&(D.lact=v),this.playerManager_&&(v=this.playerManager_.getPlayer())&&v.shouldSendVisibilityState()&&(v=v.getVisibilityState(),v!=0&&(D.vis=v)));_.g("enable_unknown_lact_fix_on_html5")&&(_.xd().resolve(_.qL),D.lact=
_.x_());return D};
_.V.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.V.setLoopStateEntityKey_=function(D){var v;this.loopStateEntityKey_=((v=this.getPlaylistLoopData_(D))==null?void 0:v.playlistLoopStateEntityKey)||null};
_.V.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.V.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.V.skipVideo=function(){var D=this,v=_.g("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||v)v=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.b7(_.HK,function(){D.onPlaylistNext();D.videoSkipJob_=0},v)};
_.V.cancelVideoSkip=function(){this.videoSkipJob_&&(_.HK.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.V.isInBackground_=function(){var D=window.document.visibilityState;return!(!D||D=="visible")};
_.V.onPlaylistIndex_=function(D){this.playlistComponent&&(D=this.playlistComponent.data.contents[D].playlistPanelVideoRenderer.navigationEndpoint,_.F1(this.hostElement,"yt-navigate",{endpoint:D,tempData:this.getTempData_(D)}))};
_.V.onPlayerStateChange_=function(D){if(D=D==0&&this.playlistComponent&&this.canAutoAdvance_)D=_.Jp.getInstance(),D=!(D.autonavState_===3?D.autonavPauseReason_&&D.autonavPauseReason_.inputBoxFocus===!0:D.autonavState_===1&&D.disabledAutonavPauseReason_&&D.disabledAutonavPauseReason_.inputBoxFocus===!0);D&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.V.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.V.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.V.navigateToAutoplayWatchEndpoint_=function(D,v,h){var a=this.playlistComponent.data.currentIndex,Q=this.getNumPlayableVideos_();D=="NORMAL"&&v=="autoplayVideo"&&a+1>=Q&&h||!(D=this.getVideoEndpoint_(D,v))||(h=this.getTempData_(D,h),_.F1(this.hostElement,"yt-navigate",{endpoint:D,tempData:h}))};
_.V.getNumPlayableVideos_=function(){for(var D=0,v=_.P(this.playlistComponent.data.contents||[]),h=v.next();!h.done;h=v.next())h.value.playlistPanelVideoRenderer&&(D+=1);return D};
_.V.getVideoEndpoint_=function(D,v){if(this.autoplayData&&this.autoplayData.sets)for(var h=0,a=this.autoplayData.sets.length;h<a;h++){var Q=this.autoplayData.sets[h];if(Q.mode==D){if(Q[v])return Q[v];break}}else D=new _.XH("AutoplayData is undefined in playlist manager","Mode: "+D+" endpoint: "+v),_.yR(D)};
_.V.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.V.onPlaylistYtNavigate_=function(D){if(D.detail.endpoint){D.stopPropagation();var v=D.detail;v.tempData=this.getTempData_(D.detail.endpoint);_.F1(this.hostElement,"yt-navigate",v)}};
_.V.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.V.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.V.playlistLoopStateEntityChanged_=function(D){var v=this,h,a,Q;return _.M(function(G){if(G.nextAddress==1){if(!D)return G.return();h=D.state==="PLAYLIST_LOOP_STATE_ONE";return v.playerManager_?G.yield(v.playerManager_.getPlayerPromise(),3):G.jumpTo(2)}G.nextAddress!=2&&(a=G.yieldResult,a.setLoopVideo(h));Q=D.state==="PLAYLIST_LOOP_STATE_ALL";v.playlistComponent&&(v.playlistComponent.loopOn=Q);_.YI(G)})};
_.V.getPlaylistLoopData_=function(D){var v,h;if(D=D==null?void 0:(v=D.playlistButtons)==null?void 0:(h=v.menuRenderer)==null?void 0:h.topLevelButtons)for(v=_.P(D),h=v.next();!h.done;h=v.next())if(h=h.value,h.playlistLoopButtonRenderer)return h.playlistLoopButtonRenderer};
_.V.getLoopStateCommand_=function(D){var v=this.getPlaylistData(),h;v=((h=this.getPlaylistLoopData_(v))==null?void 0:h.states)||[];var a;D=(a=_.k(v[D?1:2],_.o9$))==null?void 0:a.button;var Q;return(Q=_.k(D,_.Vi))==null?void 0:Q.command};
_.V.onPlayerLoopChange_=function(D){this.playlistLoopStateEntity_&&(D?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(D=this.getLoopStateCommand_(D))&&this.ytComponentBehavior.resolveCommand(D)};
_.V.onSleepTimerSettingsChanged_=function(D){this.canAutoAdvance_=D!=="End of video"};
bZ.prototype.onPlaylistLoopStateEntityChanged=bZ.prototype.onPlaylistLoopStateEntityChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],bZ.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.gG.YtPlayerListenerBehavior),_.n("design:type",_.ki)],bZ.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],bZ.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bZ.prototype,"loopStateEntityKey_",void 0);
_.e([_.Y({selectorArgs:["loopStateEntityKey_"],selector:_.pIL}),_.n("design:type",Object)],bZ.prototype,"playlistLoopStateEntity_",void 0);_.e([_.Ni("playlistLoopStateEntity_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bZ.prototype,"onPlaylistLoopStateEntityChanged",null);_.e([_.m({disableElementRegistration:!0,is:"yt-playlist-manager"})],bZ);_.w(bZ,"yt-playlist-manager",void 0,{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var zRC,UNX=function(){if(zRC!==void 0)return zRC;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return zRC=D};var di=function(){var D=_.c.apply(this,arguments)||this;D.lastCallback=null;D.getAccountLinkPromises={};D.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);D.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return D};
_.J(di,_.c);_.V=di.prototype;_.V.getLocation=function(){return window.location.href};
_.V.getCompletionUrl=function(){return _.GU(this.getLocation())};
_.V.containsRedirectState=function(D){return(D=_.B7(_.vKu(D)))?(new URLSearchParams(D)).get("redirect_state")!==null:!1};
_.V.createGalConfig=function(D,v){var h=new KFr;D=h=v?this.getPopupOrRedirectSetting(h,_.eA("LINK_API_KEY"),_.eA("LINK_API_KEY_REDIRECT"),D):T92(h,_.eA("LINK_API_KEY"));D.authUser=_.eA("SESSION_INDEX")||0;D.supportedFlows=new Set([4]);return D.build()};
_.V.getPopupOrRedirectSetting=function(D,v,h,a){this.isGalInteractionPopupMode(a)?(D.interactionMode=0,D=T92(D,v)):(D.interactionMode=1,v=this.getCompletionUrl(),D.completionUrl=v,D=T92(D,h));return D};
_.V.isGalInteractionPopupMode=function(D){if(this.redirectModeProviderAllowlist.has(D))switch(D){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.V.getStatusEntityKeyForProviderId=function(D){return _.IG(D+":all","accountLinkStatusEntity")};
_.V.findNestedPropValue=function(D,v){var h=!1,a=null;JSON.stringify(D,function(Q,G){h||Q!==v||(h=!0,a=G);return h?null:G});
return a};
_.V.findAccountLinkButtonViewModel=function(D,v){var h=null,a=!1;JSON.stringify(D,function(Q,G){a||G.accountLinkStatusEntityKey!==v||G.accountLinkStatusSecondaryEntityKey||(a=!0,h=G);return a?null:G});
return h};
_.V.executeLinkingSuccessOrFailureCommands=function(D,v,h){var a=null,Q;(v==null?0:(Q=v.url)==null?0:Q.includes("account_sharing"))?a=v==null?void 0:v.response:a=v==null?void 0:v.response;(v=this.findAccountLinkButtonViewModel(a,D))?(D=h?this.findNestedPropValue(v,"onSuccessCommand"):this.findNestedPropValue(v,"onFailureCommand"))?_.gK([D],this.hostElement):_.Wv(Error("vl")):_.Wv(Error("wl`"+D))};
_.V.handleInitializeRequest=function(D,v){var h=this,a=EUm(this.createGalConfig(D,!0));this.containsRedirectState(this.getLocation())?Fgd(D,a.config,a.galService).then(function(Q){var G=h.getStatusEntityKeyForProviderId(D);if(Q.statusCode===1)v&&h.executeLinkingSuccessOrFailureCommands(G,v,!0),Q=h.getLocation().indexOf("#"),Q!==-1&&window.history.pushState(null,"",h.getLocation().substring(0,Q));else return v&&h.executeLinkingSuccessOrFailureCommands(G,v,!1),Promise.reject(Error(Q.statusMessage))}).catch(function(Q){_.yR(Q);
_.jj("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)}):this.getAccountLinkPromises[D]=a.startLinkingSession({serviceId:D})};
_.V.handleAccountLinkCommand=function(D){_.k(D,AEI)&&this.handleLinkRequest(_.k(D,AEI))};
_.V.handleLinkRequest=function(D){var v=this,h=D.thirdPartyId;if(h)if(this.isGalInteractionPopupMode(h)){var a=function(){v.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onFailureCommand)},Q=function(){v.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onSuccessCommand)};
this.lastCallback=Q;this.getAccountLinkPromises[h].then(function(G){p9S(G).then(function(x){x.statusCode===1?Q():a()})}).catch(function(){a()})}else this.getAccountLinkPromises[h].then(function(G){p9S(G).then(function(x){if(x.statusCode!==1)return Promise.reject(Error(x.statusMessage))})}).catch(function(G){_.yR(G);
_.jj("gamingAccountLinkStatusChanged",{serviceId:h,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(G)})};
_.V.closeAndFire=function(D,v){_.zU(this.hostElement,"yt-close-popup-action",[D]);v&&_.gK([v],this.hostElement)};
_.V.handleAccountUnlinkCommand=function(D){_.k(D,qa$)&&this.handleUnlinkRequest(_.k(D,qa$))};
_.V.handleUnlinkRequest=function(D){var v=this,h=D.thirdPartyId;if(h){var a=function(){v.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onFailureCommand)},Q=function(){v.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onSuccessCommand)};
this.lastCallback=Q;var G=EUm(this.createGalConfig(h,!1));this.unlinkUserGal(G,h).then(function(x){x.statusCode===1?Q():a()}).catch(function(){a()})}};
_.V.unlinkUserGal=function(D,v){return D.deleteLink(v)};
_.V.handleLogAccountLinkingEventCommand=function(D){_.g("enable_gel_log_commands")&&_.k(D,bOU)&&(D=_.k(D,bOU).event)&&_.jj("gamingAccountLinkStatusChanged",D)};
_.GT.Object.defineProperties(di,{template:{configurable:!0,enumerable:!0,get:function(){return UNX()}}});
_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],di.prototype,"ytOpenPopupBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-third-party-manager"})],di);_.w(di,"ytd-third-party-manager",function(){return UNX()},{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var Li$,ZUr=function(){if(Li$!==void 0)return Li$;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Li$=D};var jF=function(){var D=_.c.apply(this,arguments)||this;D.currentPage=void 0;D.renderLoadingStateJobId=0;D.updatePageDataJobId=0;D.pageDisposeJobsets=new WeakMap;D.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};D.shouldApplyLockupToWatchTransition=_.g("web_thumbnail_to_watch_transition");D.shouldApplySlideTransition=_.FH("web_page_transition_type")==="slide"||_.g("enable_plj_landing_page");D.shouldApplyLearningJourneyTransition=_.g("enable_plj_landing_page");D.TEST_ONLY=void 0;return D};
_.J(jF,_.c);_.V=jF.prototype;_.V.ready=function(){var D=_.xd();D.addProvider({provide:_.P4,useValue:this});D.addProvider({provide:_.KHR,useValue:this})};
_.V.created=function(){this.pagePool=new ez2;this.contextSwitcher=new akr};
_.V.attached=function(){_.F1(this.hostElement,"attached");var D=_.xd().resolve(_.PV(_.Tb));D&&(this.contextSwitcher.JSC$19885_networkService_=D);this.viewTransitionManager=_.xd().resolve(_.KN)};
_.V.getPageOffset=function(D){return D.getScrollTop()};
_.V.setPageOffset=function(D,v){try{D.setScrollTop(v)}catch(h){}};
_.V.setPageOffsetForNavigation=function(D,v){_.F1(this.hostElement,"yt-navigate-set-page-offset",{page:D,offset:v===void 0?0:v})};
_.V.pauseActiveContext=function(){var D=this.contextSwitcher;D.activeContext_&&D.activeContext_.pause()};
_.V.getModuleNameForType=function(D){return D==="watch"?_.g("kevlar_watch_fixie")?"watchFixie":_.g("kevlar_watch_grid")?"watchGrid":"watchFlexy":D==="shorts"||D==="search"?D:"browse"};
_.V.attachPage=function(D){var v,h=!_.g("pc_is_attached_ks")&&(D==null?void 0:(v=D.polymerController)==null?void 0:v.isAttached);if(!D.isAttached&&!h)try{_.ZW(this.hostElement).appendChild(D)}catch(Q){var a;_.yR(new _.XH("Error attaching page element for component",{origin:(a=this.currentPage)==null?void 0:a.is,component:D.is}))}};
_.V.setActivePage=function(D,v){var h=this,a=!1,Q=function(){var G=h.isOnWatch(),x=h.currentPage;if(D)if(D!==h.currentPage){x&&(x.hidden=!0,x.active=!1,x.removeAttribute("role"));h.currentPage=D;var f,C=v!=null?v:_.NP((f=h.data)==null?void 0:f.endpoint);x&&_.F1(h.hostElement,"yt-page-type-changed",{oldPageType:x.is,newPageType:D.is,newPageSubtype:C});_.P8().dispatch(_.oG({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:D.is}));_.P8().dispatch(_.oG({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:C||""}));
D.hidden=!1;h.attachPage(D);D.active=!0;D.setAttribute("role","main");x&&h.setPageOffsetForNavigation(D,0);_.g("kevlar_remove_page_dom_on_switch")&&!G&&x&&_.ZW(h.hostElement).removeChild(x)}else a=!0;else h.handleMissingDestinationPage(x)};
this.shouldRunBrowseTransition(this.currentPage,D)?iar(this.viewTransitionManager,Q):this.shouldRunLearningJourneyTransition(this.currentPage,D)?r83(this.viewTransitionManager,Q):Q();return a};
_.V.handleMissingDestinationPage=function(D){if(this.isColdLoadForUnknownPage(D))_.yR(new _.XH("Cold load for unknown page"));else{var v;D=new _.XH("Unable to set active page",D?D.is:"unknown origin",(v=this.data)==null?void 0:v.endpoint);_.mV(D)}};
_.V.isColdLoadForUnknownPage=function(D){return!D&&rH(this.data)==="unknown"};
_.V.shouldRunBrowseTransition=function(D,v){return this.shouldApplySlideTransition&&(D==null?void 0:D.is)==="ytd-browse"&&(v==null?void 0:v.is)==="ytd-browse"&&D!==v};
_.V.shouldRunLearningJourneyTransition=function(D,v){return this.shouldApplyLearningJourneyTransition&&(D==null?void 0:D.is)==="ytd-browse"&&((v==null?void 0:v.is)==="ytd-watch-learning-journey"||(v==null?void 0:v.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.V.shouldRunWatchNextLoadedTransition=function(D,v){return this.viewTransitionManager&&D.is==="ytd-watch-flexy"&&v};
_.V.updatePageData=function(D){var v=this,h=this.data;this.updatePageDataJobId&&_.HK.cancelJob(this.updatePageDataJobId);this.data=D;return new _.IB(function(a){var Q=function(){D.filler?v.performDataUpdate(D,h):Qp$(function(){v.performDataUpdate(D,h)});
var C=_.ol();_.FQ(C,"cr")||C.processSignal("cr");a()},G=function(){D&&D.page==="watch"?v.updatePageDataJobId=_.b7(_.HK,Q):Q()};
if(_.g("kevlar_enable_mss_page_modules_client")&&D){var x=_.xd().resolve(_.Tk),f=v.getModuleNameForType(D.page);(x=TYr(x,[f]))?x.then(G):G()}else G()})};
_.V.isDownloadsPage=function(D){var v,h;return(D==null?void 0:(v=D.endpoint)==null?void 0:(h=v.browseEndpoint)==null?void 0:h.browseId)==="FEdownloads"};
_.V.setPlayerSyncInterval=function(D){var v;return _.M(function(h){if(h.nextAddress==1)return h.yield(_.xd().resolve(_.zf),2);v=h.yieldResult;v.setUpPositionSyncInterval(D);_.YI(h)})};
_.V.performDataUpdate=function(D,v){_.g("kevlar_early_popup_close")||_.zU(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var h=!D.filler;h&&(_.ea("lps"),_.g("config_age_report_killswitch")||ek3());var a=rH(D),Q,G=!1;if(_.g("kevlar_remove_page_dom_on_switch")){var x=v&&rH(v);a===x&&(Q=this.getCurrentPage())}Q||(Q=pP(this.pagePool,a));h&&PTS(this.pagePool.elementPoolPopulator,a);h&&!this.renderLoadingStateJobId&&(G=this.setActivePage(Q));if(Q){x=a==="watch";var f=
a==="shorts",C=a==="learning_journey_watch";_.g("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Q);if(x||f||C)Q.playerData=D.playerResponse;if(f)if(_.g("web_enable_delay_shorts_sequence_call")){D.reelWatchSequenceResponse&&(D.reelWatchSequenceResponse.entries||D.reelWatchSequenceResponse.prevEntries)&&(Q.reelWatchSequenceResponse=D.reelWatchSequenceResponse);Q.currentEndpoint=D.endpoint;var U;Q.isPreviousPageShorts=!!(v==null?0:(U=v.endpoint)==null?0:U.reelWatchEndpoint);
var L,Z;D.cachedSequenceParams=((L=D.endpoint)==null?void 0:(Z=L.reelWatchEndpoint)==null?void 0:Z.sequenceParams)||D.cachedSequenceParams||(v==null?void 0:v.cachedSequenceParams);var E,I;D.cachedSequenceProvider=((E=D.endpoint)==null?void 0:(I=E.reelWatchEndpoint)==null?void 0:I.sequenceProvider)||D.cachedSequenceProvider||(v==null?void 0:v.cachedSequenceProvider);Q.cachedSequenceParams=D.cachedSequenceParams;Q.cachedSequenceProvider=D.cachedSequenceProvider}else if(_.g("web_enable_shorts_sequence_cache_fix")){D.reelWatchSequenceResponse&&
(D.reelWatchSequenceResponse.entries||D.reelWatchSequenceResponse.prevEntries)?Q.reelWatchSequenceResponse=D.reelWatchSequenceResponse:Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);D.reelWatchSequenceResponse&&(v==null?void 0:v.page)!=="shorts"&&(Q.cachedReelWatchSequenceResponse=D.reelWatchSequenceResponse);Q.currentEndpoint=D.endpoint;var S;Q.isPreviousPageShorts=!!(v==null?0:(S=v.endpoint)==null?0:S.reelWatchEndpoint)}else{D.reelWatchSequenceResponse&&
(D.reelWatchSequenceResponse.entries||D.reelWatchSequenceResponse.prevEntries)?Q.reelWatchSequenceResponse=D.reelWatchSequenceResponse:D.cachedReelWatchSequenceResponse?Q.reelWatchSequenceResponse=D.cachedReelWatchSequenceResponse:_.g("web_enable_cached_reel_sequence_fix")&&Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);Q.currentEndpoint=D.endpoint;var B;Q.isPreviousPageShorts=!!(v==null?0:(B=v.endpoint)==null?0:B.reelWatchEndpoint);
D.cachedReelWatchSequenceResponse=D.reelWatchSequenceResponse||D.cachedReelWatchSequenceResponse||(v==null?void 0:v.cachedReelWatchSequenceResponse);Q.cachedReelWatchSequenceResponse=D.cachedReelWatchSequenceResponse}U=this.isDownloadsPage(D);L=this.isDownloadsPage(v);U&&!L?this.setPlayerSyncInterval(6E5):!U&&L&&this.setPlayerSyncInterval();_.g("block_all_player_prefetch_requests")||this.preparePrefetchRequest(D,Q,h,x,f,C);utC(_.xd().resolve(_.Ok),v,D);var A;(A=_.xd().resolve(_.PV(_.a8)))==null||
_.KM2(A,this.getPersistentPanelSurface(a));_.Yi(_.xd().resolve(_.qL));_.g("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Q);h?(h=typeof Q.loadPage,h==="function"?(Q.pageContext=$kd(this.contextSwitcher,Q,Q.data!==D.response),h=function(){Q.loadPage(D.response)},this.shouldApplySlideTransition&&Q.is==="ytd-browse"&&G&&(a==="learning"||this.isDifferentBrowseId(D==null?void 0:D.endpoint,v==null?void 0:v.endpoint))?iar(this.viewTransitionManager,h):this.shouldRunWatchNextLoadedTransition(Q,
G)?tI3(this.viewTransitionManager,h):h()):_.H1(new _.XH("b/38014653 ",[a,
Q.is,Q.nodeName,h,Q.isAttached,v&&rH(v),this.hostElement.children.length])),_.ea("pdl")):(Q.hidden=!0,D.response.filler=!0,Q.data=D.response,this.attachPage(Q));_.F1(this.hostElement,"yt-page-data-updated",{pageType:a})}_.c1(_.HK,function(){_.g("logging_avoid_blocking_during_navigation")&&_.gef().transition("none");var d=Eu3(),b=Q;if(D){var W=XXX(D),K=Ad$(D),O;a:{if(D.playerResponse){var R=D.playerResponse,vA;if((O=R.auxiliaryUi)==null?0:(vA=O.messageRenderers)==null?0:vA.upsellDialogRenderer){O=
R.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(D.response&&(O=D.response,(R=O.overlay)==null?0:R.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var f7;var xL;vA=(f7=D.playerResponse)==null?void 0:(xL=f7.auxiliaryUi)==null?void 0:xL.messageRenderers;f7=(vA==null?void 0:vA.enforcementMessageViewModel)||(vA==null?void 0:vA.bkaEnforcementMessageViewModel);f7=(f7==null?void 0:f7.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?f7:void 0;
var kL;a:{if(D.response&&(xL=D.response,(kL=xL.overlay)==null?0:kL.commandWrapperPromoRenderer)){kL=xL.overlay.commandWrapperPromoRenderer;break a}kL=void 0}ZEb(d,W,K,O,f7,kL,b)}})};
_.V.preparePrefetchRequest=function(D,v,h,a,Q,G){var x,f,C,U,L,Z,E,I,S,B,A,d,b,W,K;return _.M(function(O){if(O.nextAddress==1)return!h||!(a||Q||G)||_.g("kevlar_disable_background_prefetch")&&_.KJ(_.Jxu)()===0?O.return():(x=_.xe(v))?O.yield(x.getPlayerPromise(),2):O.return();f=O.yieldResult;C=_.xd().resolve(_.PV(_.Tb));if(!C)return O.return();if(Q)return U=_.Qf(_.ie),zcZ(U,(L=D.endpoint)==null?void 0:L.reelWatchEndpoint,v.reelWatchSequenceResponse,f,C),O.return();I=(Z=D.response)==null?void 0:(E=Z.responseContext)==
null?void 0:E.webResponseContextExtensionData;if(!I)return O.return();b=(S=D.response)==null?void 0:(B=S.contents)==null?void 0:(A=B.twoColumnWatchNextResults)==null?void 0:(d=A.autoplay)==null?void 0:d.autoplay;W=_.xd().resolve(_.fh);K=_.Qf(_.ie);U6U(K,I,f,C,W,b);_.YI(O)})};
_.V.movePlayerToWatch=function(D){var v=this,h,a;return _.M(function(Q){h=pP(v.pagePool,"watch");a=h.getPlayerContainer();D.appendTo(a);_.YI(Q)})};
_.V.movePlayerToShorts=function(D){var v=this,h,a,Q;return _.M(function(G){h=pP(v.pagePool,"shorts");a=h.getPlayerContainer();(Q=D)==null||Q.appendTo(a,void 0,!0);_.YI(G)})};
_.V.getPlayerFromWatch=function(){var D=pP(this.pagePool,"watch");return _.xe(D)};
_.V.getPlayerFromShorts=function(){var D=pP(this.pagePool,"shorts");return _.xe(D)};
_.V.startLoadingWatch=function(){var D=this,v=pP(this.pagePool,"watch");this.renderLoadingStateJobId?(_.HK.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.g("web_watch_transition_enable_start_loading_watch_callsite")?Wvr(this.viewTransitionManager,function(){D.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(v,"watch")};
_.V.startLoadingShorts=function(){var D=pP(this.pagePool,"shorts");this.setActivePage(D,"shorts")};
_.V.startLoadingLearningJourney=function(){var D=pP(this.pagePool,"learning_journey_watch");this.setActivePage(D,"learning_journey_watch")};
_.V.getCurrentPage=function(){return this.currentPage};
_.V.getDestinationPageType=function(){return this.destinationPageType};
_.V.getCurrentData=function(){return this.data};
_.V.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.V.isOnShorts=function(){var D;return((D=this.currentPage)==null?void 0:D.is)==="ytd-shorts"};
_.V.isWatchPage=function(D){return!!D&&(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-fixie"||D.is==="ytd-watch-grid")};
_.V.preparePage=function(D,v){var h=this,a=function(){var x=h.pagePool.preparePage(D,h.currentPage,v);x&&h.attachPage(x)},Q=function(x){_.wf(x,v);
_.yR(x)};
if(_.g("kevlar_enable_mss_page_modules_client")){var G=this.getModuleNameForType(D);if(G=TYr(_.xd().resolve(_.Tk),[G])){G.then(a.bind(this)).catch(Q.bind(this));return}}try{a()}catch(x){Q(x)}};
_.V.lazyPrepareCriticalPages=function(D,v){D=_.NP(v)||D;_.g("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(D).then(this.maybePrepareWatchPage.bind(this,D)):this.maybePrepareWatchPage(D)};
_.V.maybePrepareWatchPage=function(D){D==="watch"||D==="learning_journey_watch"&&_.g("web_watch_learning_journey_disable_lazy_pages")||_.c1(_.HK,this.preparePage.bind(this,"watch"))};
_.V.downloadPageModules=function(D){D=this.getModuleNameForType(D);var v=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);v.delete(D);var h=_.xd().resolve(_.Tk);h.JSC$18604_loadModules(D);return h.JSC$18604_loadModules.apply(h,_.j_(v))};
_.V.renderPageLoadingState=function(D,v){this.preparePage(D,v);var h=pP(this.pagePool,D);h.loadingData&&(h.loadingData.endpoint=v);h.loading=!0;this.setActivePage(h,D);D!=="watch"&&D!=="learning_journey_watch"||_.F1(this.hostElement,"yt-guide-close")};
_.V.prepareForNavigation=function(D,v){var h=this;if(this.currentPage&&this.data){var a=_.NP(v)||D;this.destinationPageType=a;rH(this.data)==a&&_.F1(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((D==="watch"||D==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.HK.cancelJob(this.renderLoadingStateJobId);_.xd().resolve(_.Ok).deactivate(v);_.LK(_.HK,function(){var G=h.viewTransitionManager,x=h.currentPage;
if(G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&x)if(G.registeredLockupThumbnail)G.lockupThumbnailRegisteredFromWatchEndpoint&&_.yR(new _.XH("Lockup thumbnail already registered from watch endpoint."));else{a:{var f=_.k(v,_.hP);if(f==null?0:f.videoId){var C="yt-lockup-view-model ."+_.b8u(f.videoId)+" yt-thumbnail-view-model";x=x.querySelectorAll(C);if(x.length===1){f=x[0];break a}x.length>1?_.yR(new _.XH("Multiple LockupViewModel thumbnails found for videoId: "+f.videoId+
". Selector: "+C)):_.g("web_thumbnail_to_watch_transition_debug")&&_.yR(new _.XH("No LockupViewModel thumbnail found for videoId: "+f.videoId+". Selector: "+C))}f=void 0}f&&(G.registeredLockupThumbnail=f,G.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.pQK(G,f))}});
var Q=this.data;this.renderLoadingStateJobId=_.LK(_.HK,function(){Wvr(h.viewTransitionManager,function(){if(h.data!=Q){var G=pP(h.pagePool,D);h.setActivePage(G)}else h.renderPageLoadingState(D,v);h.renderLoadingStateJobId=0})},150)}};
_.V.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var D=new _.Yk(1);this.currentPage.pageDisposeJobs.forEach(function(v){_.Bt(D,v)});
this.pageDisposeJobsets.set(this.currentPage,D)}};
_.V.flushPageDisposeJobset=function(D){var v=this.pageDisposeJobsets.get(D);v&&(v.flushJobs(),this.pageDisposeJobsets.delete(D))};
_.V.onYtStopOldPlayer=function(D,v){v=v===void 0?!1:v;var h,a=_.zi("kevlar_new_stop_old_player_logic_pages");if(_.g("kevlar_check_current_page_on_stop_old_player")&&(a.length===0||this.currentPage&&a.includes(this.currentPage.is)))if(this.data&&(h=rH(this.data)),rH(D)===h&&this.currentPage&&rH(this.currentPage.data)!==h)var Q=_.xe(this.currentPage);else h=rH(this.data),Q=pP(this.pagePool,h),Q=_.xe(Q);else this.data&&(h=rH(this.data),Q=pP(this.pagePool,h),Q=_.xe(Q));if(Q)if(D=rH(D),a=pP(this.pagePool,
D),a=_.xe(a),Q==a)v&&!_.g("kevlar_disable_preemptive_player_reset")&&Q.resetForNewPlayback();else if(v=h==="watch"&&D!=="watch",!v||D==="shorts"||_.s_p()&&!sNs(this.data)&&D!=="yts-products"&&D!="mini_app"&&D!="playables"&&D!="companion-canvas")h=_.xd().resolve(_.Ok),v&&h.isMiniplayerActive()&&h.pipController.getWindow()||Q.stop()};
_.V.isDifferentBrowseId=function(D,v){D=_.k(D,_.YV);v=_.k(v,_.YV);return(D==null?void 0:D.browseId)!==(v==null?void 0:v.browseId)};
_.V.getPersistentPanelSurface=function(D){switch(D){case "watch":return"WATCH";default:return"APP"}};
_.GT.Object.defineProperties(jF,{template:{configurable:!0,enumerable:!0,get:function(){return ZUr()}}});
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],jF.prototype,"ytActionHandlerBehavior",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-page-manager"})],jF);_.w(jF,"ytd-page-manager",function(){return ZUr()},{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var EbC;var sw=function(){var D=_.c.apply(this,arguments)||this;D.useListItemStyles=_.g("web_list_item_style_for_menu_items");D.systemIcons=_.g("kevlar_system_icons");return D};
_.J(sw,_.c);_.V=sw.prototype;_.V.ready=function(){this.hostElement.addEventListener("tap",_.pZ(this,this.onEndpointTapExtra))};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var D;(D=_.ZW(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.V.onEndpointTapExtra=function(D){_.F1(this.hostElement,"iron-activate");var v=this.data.navigationEndpoint;v&&_.k(v,_.xur)&&(D.stopPropagation(),_.ZD(this.hostElement,[v],this.hostElement))};
_.V.computeIcon=function(D){return D&&D.iconType?_.SQ(D.iconType):""};
_.V.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.g("kevlar_legacy_browsers")&&_.SB(this.hostElement)};
sw.prototype.forceUpdateStylesOnLegacyBrowsers=sw.prototype.forceUpdateStylesOnLegacyBrowsers;sw.prototype.onFocus=sw.prototype.onFocus;_.e([_.l(_.lK),_.n("design:type",Object)],sw.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.ELX.YtConditionalRendererBehavior),_.n("design:type",Object)],sw.prototype,"ytConditionalRendererBehavior",void 0);_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],sw.prototype,"ytEndpointBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],sw.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon(data.icon)",value:""}),_.n("design:type",String)],sw.prototype,"icon",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],sw.prototype,"useIcons",void 0);_.e([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.n("design:type",Boolean)],sw.prototype,"hasSeparator",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sw.prototype,"useListItemStyles",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],sw.prototype,"systemIcons",void 0);_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sw.prototype,"onFocus",null);_.e([_.Ni("useIcons","hasSeparator"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sw.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.w(sw,"ytd-menu-navigation-item-renderer",function(){if(EbC===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);EbC=D}D=EbC;return D},{mode:1});var Ihm;var gb$=_.aX(_.p1("DOWNLOAD",{},"Download")),kI3=_.aX(_.p1("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),SC$=_.aX(_.p1("RETRY",{},"Retry")),J6r=_.aX(_.p1("PAUSE_DOWNLOADING",{},"Pause downloading")),pjs=_.aX(_.p1("RESUME_DOWNLOAD",{},"Resume download")),me=function(){var D=_.c.apply(this,arguments)||this;D.primaryText=gb$;D.primaryIconType="OFFLINE_DOWNLOAD";D.hasSecondaryContent=!1;D.hasSeparator=!1;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.isHidden=!1;D.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return D};
_.J(me,_.c);_.V=me.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){this.primaryEntry.focus()};
_.V.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.V.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.V.getRemoveAction=function(){return"ACTION_REMOVE"};
_.V.sendOfflineAction=function(D){var v=this.data.serviceEndpoint;if(v){var h=_.k(v,_.Jn);h&&D&&(h.action=D);this.ytComponentBehavior.resolveCommand(v)}};
_.V.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=gb$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=gb$;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=SC$;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=kI3;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=pjs;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=kI3;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
J6r;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=kI3;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=kI3;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=gb$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.V.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.V.isSecondaryEntryHidden=function(D,v){return D?!0:!v};
_.V.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
me.prototype.showHideButton=me.prototype.showHideButton;me.prototype.onTransferStateChange=me.prototype.onTransferStateChange;me.prototype.onFocus=me.prototype.onFocus;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],me.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],me.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],me.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],me.prototype,"primaryText",void 0);_.e([_.Y(),_.n("design:type",String)],me.prototype,"primaryIconType",void 0);_.e([_.Y(),_.n("design:type",String)],me.prototype,"primaryAction",void 0);_.e([_.Y(),_.n("design:type",Object)],me.prototype,"secondaryText",void 0);_.e([_.Y(),_.n("design:type",String)],me.prototype,"secondaryIconType",void 0);
_.e([_.Y(),_.n("design:type",String)],me.prototype,"secondaryAction",void 0);_.e([_.Y(),_.n("design:type",Object)],me.prototype,"hasSecondaryContent",void 0);_.e([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.n("design:type",Object)],me.prototype,"hasSeparator",void 0);_.e([_.Y({selector:_.KG,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.n("design:type",String)],me.prototype,"transferState",void 0);
_.e([_.Y({selector:_.slL,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.n("design:type",Object)],me.prototype,"isVideoDeletedByUser",void 0);_.e([_.Y(),_.n("design:type",Object)],me.prototype,"isHidden",void 0);_.e([_.Y({selector:_.cUu,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.n("design:type",Object)],me.prototype,"offlineabilityState",void 0);_.e([_.Br("#primary-entry"),_.n("design:type",Object)],me.prototype,"primaryEntry",void 0);
_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],me.prototype,"onFocus",null);_.e([_.qi("transferState","isVideoDeletedByUser"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],me.prototype,"onTransferStateChange",null);_.e([_.qi("offlineabilityState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],me.prototype,"showHideButton",null);
_.w(me,"ytd-menu-service-item-download-renderer",function(){if(Ihm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);Ihm=D}D=Ihm;return D},{mode:1});var lhr;var Hb=function(){var D=_.c.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.g("kevlar_system_icons");D.useListItemStyles=_.g("web_list_item_style_for_menu_items");return D};
_.J(Hb,_.c);_.V=Hb.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var D;(D=_.ZW(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.V.onTap=function(){_.U9(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var D=this.data.serviceEndpoint,v=this.data.command;if(D){var h,a=(h=this.data)==null?void 0:h.trackingParams;h=!!_.k(D,_.Ors);a&&h&&_.Gb().dispatch(_.oG({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:a}}));this.ytComponentBehavior.resolveCommand(D)||_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}})}v&&(this.ytComponentBehavior.resolveCommand(v)||_.ZD(this.hostElement,
[v],this.hostElement))};
_.V.computeIcon=function(D){return D&&D.iconType?_.SQ(D.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.g("kevlar_legacy_browsers")&&_.SB(this.hostElement)};
_.V.computeIsSelected=function(){var D;return!((D=this.data)==null||!D.isSelected)};
Hb.prototype.forceUpdateStylesOnLegacyBrowsers=Hb.prototype.forceUpdateStylesOnLegacyBrowsers;Hb.prototype.onTap=Hb.prototype.onTap;Hb.prototype.onFocus=Hb.prototype.onFocus;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],Hb.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Hb.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.ELX.YtConditionalRendererBehavior),_.n("design:type",Object)],Hb.prototype,"ytConditionalRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Hb.prototype,"data",void 0);_.e([_.Y({computed:"computeIcon(data.icon)",value:""}),_.n("design:type",String)],Hb.prototype,"icon",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Hb.prototype,"useIcons",void 0);
_.e([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Hb.prototype,"hasSeparator",void 0);_.e([_.Y({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Hb.prototype,"isSelected",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Hb.prototype,"systemIcons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Hb.prototype,"useListItemStyles",void 0);
_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Hb.prototype,"onFocus",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Hb.prototype,"onTap",null);_.e([_.Ni("useIcons","hasSeparator"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Hb.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.w(Hb,"ytd-menu-service-item-renderer",function(){if(lhr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);lhr=D}D=lhr;return D},{mode:2});var N62;var yJ=function(){return _.c.apply(this,arguments)||this};
_.J(yJ,_.c);_.V=yJ.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var D=this;_.$R(this,function(){D.postbox.openDialog();D.focus();_.F1(D.hostElement,"yt-refit")})};
_.V.focus=function(){this.postbox.focus()};
_.V.closePopup=function(){_.zU(this.hostElement,"yt-close-popup-action")};
_.V.onYtCommentboxDismiss=function(){this.closePopup()};
yJ.prototype.onYtCommentboxDismiss=yJ.prototype.onYtCommentboxDismiss;yJ.prototype.onDataChanged=yJ.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yJ.prototype,"data",void 0);_.e([_.Y({value:function(){return _.p1("SBOX_INAPPROPRIATE_CANCEL")}}),
_.n("design:type",String)],yJ.prototype,"closeButtonAriaLabel",void 0);_.e([_.Br("#postbox"),_.n("design:type",Object)],yJ.prototype,"postbox",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yJ.prototype,"onDataChanged",null);_.e([_.lc("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yJ.prototype,"onYtCommentboxDismiss",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],yJ);
_.w(yJ,"ytd-backstage-post-dialog-popup-renderer",function(){if(N62!==void 0)return N62;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return N62=D},{mode:1});var YC2;var wi=function(){return _.c.apply(this,arguments)||this};
_.J(wi,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wi.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],wi);
_.w(wi,"ytd-sender-id-section-renderer",function(){if(YC2!==void 0)return YC2;var D=document.createElement("template");_.p(D,'\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');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return YC2=D},{mode:1});var B6X;var c6s;var XjS;var eF=function(){return _.c.apply(this,arguments)||this};
_.J(eF,_.c);eF.prototype.closePopup=function(){_.zU(this.hostElement,"yt-close-popup-action")};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],eF.prototype,"data",void 0);_.e([_.Ry({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],eF);
_.w(eF,"yt-community-post-section-renderer",function(){if(XjS===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;c6s===void 0&&(c6s=document.createElement("template"));var a=c6s;h.call(v,a.content.cloneNode(!0),D.content.firstChild);XjS=D}D=XjS;return D},{mode:2});var A6K;var qCr;var bU$;var dNX;var j6S;var s6C;var nP=function(){return _.c.apply(this,arguments)||this};
_.J(nP,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],nP.prototype,"data",void 0);_.e([_.Ry({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],nP);
_.w(nP,"yt-share-start-time-with-context-renderer",function(){if(s6C===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;j6S===void 0&&(j6S=document.createElement("template"));var a=j6S;h.call(v,a.content.cloneNode(!0),D.content.firstChild);s6C=D}D=s6C;return D},{mode:2});var Ow=function(){return _.c.apply(this,arguments)||this};
_.J(Ow,_.c);Ow.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ow.prototype,"data",void 0);_.e([_.Ry({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Ow);
_.w(Ow,"yt-share-panel-title-v15-renderer",function(){if(dNX===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;bU$===void 0&&(bU$=document.createElement("template"));var a=bU$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);dNX=D}D=dNX;return D},{mode:2});var KP=function(){return _.c.apply(this,arguments)||this};
_.J(KP,_.c);KP.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],KP.prototype,"data",void 0);_.e([_.Ry({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],KP);
_.w(KP,"yt-share-panel-header-renderer",function(){if(qCr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;A6K===void 0&&(A6K=document.createElement("template"));var a=A6K;h.call(v,a.content.cloneNode(!0),D.content.firstChild);qCr=D}D=qCr;return D},{mode:2});var mNr;var HUr;var TW=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-open-popup-action":"onOpen"};return D};
_.J(TW,_.c);_.V=TW.prototype;_.V.attached=function(){this.onOpen()};
_.V.updateTimeSecs=function(D){this.currentTimeSecs=D};
_.V.computeTimeString=function(D){D=D.toString();var v=Math.floor(Number(D)/3600),h=Math.floor(Number(D)%3600%60);return(v>0?v+":":"")+_.UO(Math.floor(Number(D)%3600/60),v>0?2:1)+":"+_.UO(h,2)};
_.V.computeTimeStringA11y=function(D){return _.Ohc({seconds:D})};
_.V.getTimeParam=function(){return rdr(this.timeString)};
_.V.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var D={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},v;_.mj(_.c8(),(v=this.data)==null?void 0:v.trackingParams,D,7)};
_.V.onChangeStartAtTimestamp=function(){for(var D=this.startAtTimestamp.value.split(":"),v=0,h=1,a=D.length-1;a>=0;a--)v+=Number(D[a])*h,h*=60;this.updateTimeSecs(v);this.setTimestamp()};
_.V.onOpen=function(){var D=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var v=_.Mq();v?v.getPlayerPromise().then(function(h){h=h.getCurrentTime();D.updateTimeSecs(h)}):gVX()&&this.updateTimeSecs(gVX())};
_.V.setTimestamp=function(){var D=Math.floor(this.currentTimeSecs);_.zU(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!D,timestamp:D||""}])};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],TW.prototype,"data",void 0);_.e([_.Y({value:!1,notify:!0}),_.n("design:type",Boolean)],TW.prototype,"isStartAtChecked",void 0);_.e([_.Y(),_.n("design:type",Number)],TW.prototype,"currentTimeSecs",void 0);
_.e([_.Y({computed:"computeTimeString(currentTimeSecs)"}),_.n("design:type",String)],TW.prototype,"timeString",void 0);_.e([_.Y({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.n("design:type",String)],TW.prototype,"timeStringA11y",void 0);_.e([_.Br("#start-at-timestamp"),_.n("design:type",Object)],TW.prototype,"startAtTimestamp",void 0);_.e([_.Ry({is:"yt-start-at-renderer",disableElementRegistration:!0})],TW);
_.w(TW,"yt-start-at-renderer",function(){if(HUr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;mNr===void 0&&(mNr=document.createElement("template"));var a=mNr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);HUr=D}D=HUr;return D},{mode:2});var y6s;var wjZ;var eRs=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"]]),nbS=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"]]),OUX=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var KiK={};KiK.YtBindingExpressionsBehavior={identity:_.mI,msg:function(D,v){v=v===void 0?{}:v;return _.p1(D,v,D)},
msgPlural:function(D,v){return _.l1(D,v)},
getMusicIconFromType:function(D){if(_.g("music_web_enable_icon_wil"))D=_.SQ(D);else if(nbS.has(D))D="yt-sys-icons:"+nbS.get(D);else{var v=eRs.get(D)||_.SQ(D).split(":")[1];v=_.EDO(v);var h;D=((h=OUX.get(D))!=null?h:"yt-sys-icons:")+v}return D}};var T6b;var RRr;var iU3;var Wis=document.head,tlb=Wis.appendChild,r62;if(iU3===void 0){var uNd=document.createElement("template");_.p(uNd,'\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>');iU3=uNd}r62=iU3;tlb.call(Wis,r62.content);var RL=function(){var D=_.c.apply(this,arguments)||this;D.screenLayer=7;return D};
_.J(RL,_.c);RL.prototype.getScreenLayer=function(){return this.screenLayer};
RL.prototype.onTap=function(D){D&&D.detail&&(D.detail.x||D.detail.y)&&_.ZW(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.L1(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(D=this.getScreenLayer(),_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:D}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.GT.Object.defineProperties(RL.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()}}});
RL.prototype.onTap=RL.prototype.onTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],RL.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],RL.prototype,"data",void 0);_.e([_.N("data.title"),_.n("design:type",Object),_.n("design:paramtypes",[])],RL.prototype,"title",null);
_.e([_.N("data.serviceName"),_.n("design:type",String),_.n("design:paramtypes",[])],RL.prototype,"icon",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],RL.prototype,"onTap",null);_.e([_.Ry({is:"yt-share-target-renderer",disableElementRegistration:!0})],RL);
_.w(RL,"yt-share-target-renderer",function(){if(RRr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;T6b===void 0&&(T6b=document.createElement("template"));var a=T6b;h.call(v,a.content.cloneNode(!0),D.content.firstChild);RRr=D}D=RRr;return D},{mode:2});var D0r;var vvr;var iZ=function(){var D=_.c.apply(this,arguments)||this;D.SHARE_TARGET_WIDTH=70;D.SHARE_TARGET_MARGIN_RIGHT=8;D.PAGE_SCROLL_SPEED=9;D.actionMap={"yt-share-panel-reset-action":"onReset_"};return D};
_.J(iZ,_.c);_.V=iZ.prototype;_.V.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.V.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ZW(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ZW(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.V.onReset_=function(){if(_.ZW(this.hostElement).querySelector("#list")){var D=_.ZW(this.hostElement).querySelector("#list");var v=_.ZW(this.hostElement).querySelector("#list");var h=v.offsetLeft,a=v.offsetParent;a||_.i3m(v)!="fixed"||(a=_.e9(v).documentElement);if(a){if(_.U1&&!_.ZK(58)){var Q=_.af4(a);h+=Q.left}else Number(_.L$L)>=8&&!(Number(_.L$L)>=9)&&(Q=_.af4(a),h-=Q.left);v=_.vo$(a)?a.clientWidth-(h+v.offsetWidth):h}else v=h;ZWm(D,v);this.updateScrollButtons_()}};
_.V.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.V.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.V.onScrollWheel_=function(D){D.stopPropagation();D.preventDefault();var v=LTd(_.ZW(this.hostElement).querySelector("#list"));D=Math.abs(D.deltaX)>Math.abs(D.deltaY)?D.deltaX:D.deltaY;ZWm(_.ZW(this.hostElement).querySelector("#list"),v+D);this.updateScrollButtons_()};
_.V.smoothScrollByOnePage_=function(D){var v=_.ZW(this.hostElement).querySelector("#list"),h=(Math.floor(v.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,a=LTd(v),Q=h*(D?1:-1),G=this.PAGE_SCROLL_SPEED,x=this.updateScrollButtons_.bind(this),f=0,C;(function L(){f+=G;C=f/h*2;ZWm(v,a+Q*(C<1?C*C:-C*C+4*C-2));f<h?window.requestAnimationFrame(L):x()})()};
_.V.updateScrollButtons_=function(){var D=LTd(_.ZW(this.hostElement).querySelector("#list")),v=_.ZW(this.hostElement).querySelector("#list").scrollWidth-_.ZW(this.hostElement).querySelector("#list").clientWidth;_.ZW(this.hostElement).querySelector("#scroll-button-back").hidden=D<=0;_.ZW(this.hostElement).querySelector("#scroll-button-forward").hidden=D>=v};
iZ.prototype.onScrollWheel_=iZ.prototype.onScrollWheel_;iZ.prototype.onDataChanged_=iZ.prototype.onDataChanged_;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],iZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(KiK.YtBindingExpressionsBehavior),_.n("design:type",Object)],iZ.prototype,"ytBindingExpressionsBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],iZ.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iZ.prototype,"onDataChanged_",null);_.e([_.lc("wheel"),_.n("design:type",Function),_.n("design:paramtypes",[WheelEvent]),_.n("design:returntype")],iZ.prototype,"onScrollWheel_",null);
_.e([_.Ry({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],iZ);
_.w(iZ,"yt-third-party-share-target-section-renderer",function(){if(vvr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;D0r===void 0&&(D0r=document.createElement("template"));var a=D0r;h.call(v,a.content.cloneNode(!0),D.content.firstChild);vvr=D}D=vvr;return D},{mode:2});var Wb=function(){return _.c.apply(this,arguments)||this};
_.J(Wb,_.c);Wb.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"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Wb.prototype,"data",void 0);_.e([_.Ry({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Wb);
_.w(Wb,"yt-third-party-network-section-renderer",function(){if(wjZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;y6s===void 0&&(y6s=document.createElement("template"));var a=y6s;h.call(v,a.content.cloneNode(!0),D.content.firstChild);wjZ=D}D=wjZ;return D},{mode:2});_.zh(_.H(function(D){return _.F("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.F("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.F(_.c4,{data:function(){return D.data().firstPartyItems}},{listItemViewModel:_.xD})))},"si"),"first-party-network-section-view-model",{props:{data:_.gj}});var h9C=(0,_.Hpr)(_.DP.share,{parentClickTrackingParamsSelector:function(D){return D.parentClickTrackingParams}});var aRm=_.DK(["data:image/svg+xml;charset=UTF-8;base64,",""]),tR=function(){var D=_.c.apply(this,arguments)||this;D.screenLayer=7;D.qrCodeEnabled=_.g("web_enable_sharing_qr_code");D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return D};
_.J(tR,_.c);_.V=tR.prototype;_.V.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"}}}};
_.V.attached=function(){this.JSC$20126_scroller&&(this.JSC$20126_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20126_scroller.attached&&typeof this.JSC$20126_scroller.attached==="function"&&this.JSC$20126_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.V.onDataChanged=function(){var D=this,v;(v=this.data)!=null&&v.contents&&(this.hostElement.setAttribute("links-only","true"),_.gx(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.$R(this,function(){_.F1(D.hostElement,"yt-refit");D.focusSharePanelHeader()}))};
_.V.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.V.handleSetTimestamp=function(D){var v=this.shortUrl();D.isSet&&(v=_.hJ(v,"t",D.timestamp));this.maybeRenderQrCode(v)};
_.V.shortUrl=function(){var D,v=(D=this.data)==null?void 0:D.contents;if(v)for(D=0;D<v.length;D++){var h=void 0,a=void 0;if((h=v[D])==null?0:(a=h.thirdPartyNetworkSection)==null?0:a.copyLinkContainer){var Q=a=h=void 0;return(Q=_.k((h=v[D])==null?void 0:(a=h.thirdPartyNetworkSection)==null?void 0:a.copyLinkContainer,FpX))==null?void 0:Q.shortUrl}}};
_.V.maybeRenderQrCode=function(D){var v=this,h,a,Q,G,x,f,C,U,L;return _.M(function(Z){if(Z.nextAddress==1){h=_.ZW(v.hostElement).querySelector("#qr-code");if(!v.qrCodeEnabled||!D)return h&&(h.style.display="none"),Z.return();a=_.XB8(_.xd().resolve(_.JD),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Q=document.createElement("div");return typeof a==="function"?(a(Q),Z.jumpTo(2)):Z.yield(a,3)}Z.nextAddress!=2&&(G=Z.yieldResult,G(Q));C=(x=Q)==null?void 0:(f=x.firstChild)==null?void 0:f.firstChild;
U=document.createElement("img");L=_.GeL(aRm,btoa(C.outerHTML));U.onload=function(){var E={canvas:h,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:U},I=new syr;nU2(I,D);OZK(I,!1,KgS(I));var S=I.modules,B=Object.assign({},QRZ,E);S=structuredClone(S);E=S.length;var A,d=(A=B.canvas)!=null?A:document.createElement("canvas");A=B.cellSize;I=B.logo;var b,W=(b=B.logoSize)!=null?b:Math.floor(E/4);E%2!==W%2&&W++;var K=B.logoPadding,O=B.backgroundColor;b=E*A;var R=
B.width,vA=0;R&&(vA=B.padding,vA=Math.ceil(vA*b/(R-vA*2)),d.style.width=R+"px",d.style.height=R+"px");d.width!==b+vA*2&&(d.width=b+vA*2);d.height!==b+vA*2&&(d.height=b+vA*2);b=d.getContext("2d");B.autoClear&&b.clearRect(0,0,d.width,d.height);b.fillStyle=O;b.beginPath();b.roundRect(0,0,d.width,d.height,B.borderRadius);b.fill();b.save();b.translate(vA,vA);if(I)for(d=Math.floor(E-W)/2-K,K=Math.floor(E+W)/2+K,O=d;O<K;O++)for(R=d;R<K;R++)S[O][R]=!1;for(d=0;d<E;d++)for(K=0;K<E;K++)(d<7&&K<7||d<7&&K>=E-
7||d>=E-7&&K<7)&&(S[d][K]=!1);var f7;d=(f7=B.markerColor)!=null?f7:B.color;RtX(b,0,0,A,d);RtX(b,A*(E-7),0,A,d);RtX(b,0,A*(E-7),A,d);switch(B.cellStyle){case 0:f7=S;S=f7.length;d=B.cellSize;b.beginPath();for(K=0;K<S;K++)for(O=0;O<S;O++)f7[K][O]&&b.rect(K*d,O*d,d,d);b.fillStyle=B.color;b.fill();break;case 1:f7=S;S=f7.length;d=B.cellSize;K=d*B.relativeCircleSize;b.fillStyle=B.color;b.beginPath();for(B=0;B<S;B++)for(O=0;O<S;O++)f7[B][O]&&(b.beginPath(),b.ellipse((B+.5)*d,(O+.5)*d,K/2,K/2,0,0,2*Math.PI),
b.fill());b.fill();break;case 2:f7=S;S=f7.length;d=B.cellSize;b.fillStyle=B.color;B=[[1,1],[-1,1],[-1,-1],[1,-1]];b.beginPath();for(K=0;K<S;K++)for(O=0;O<S;O++)if(f7[K][O])b.roundRect(K*d,O*d,d,d,d/2),K+1<S&&f7[K+1][O]&&b.rect(K*d+d/2,O*d,d,d),O+1<S&&f7[K][O+1]&&b.rect(K*d,O*d+d/2,d,d);else{R=K*d+d/2;vA=O*d+d/2;for(var xL=0;xL<4;xL++){var kL=_.P(B[xL]),Z4=kL.next().value;kL=kL.next().value;K+Z4>=0&&K+Z4<S&&O+kL>=0&&O+kL<S&&f7[K+Z4][O]&&f7[K][O+kL]&&f7[K+Z4][O+kL]&&(Z4=xL*Math.PI/2,kL=d/2,b.moveTo(R+
kL*Math.cos(Z4),vA+kL*Math.sin(Z4)),b.arc(R,vA,d/2,Z4,Z4+Math.PI/2,!1),b.lineTo(R+kL*(Math.cos(Z4)-Math.sin(Z4)),vA+kL*(Math.cos(Z4)+Math.sin(Z4))),b.lineTo(R+kL*Math.cos(Z4),vA+kL*Math.sin(Z4)))}}b.fill()}I&&b.drawImage(I,(E-W)*A/2,(E-W)*A/2,W*A,W*A);b.restore();h.style.removeProperty("display")};
U.src=_.mM(L);_.YI(Z)})};
_.V.hasCommunityPostRenderer=function(){var D,v,h,a;return!!((D=this.data)==null?0:(v=D.header)==null?0:(h=v.sharePanelHeaderRenderer)==null?0:(a=h.communityPost)==null?0:a.communityPostSectionRenderer)};
_.V.onTapClose=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logSharePanelPage=function(){if(!_.g("enable_share_panel_navigation_logging_fix_on_web")){var D;if((D=this.data)!=null&&D.trackingParams){D=this.data.trackingParams;var v=this.parentClickTrackingParams;v=v?_.d4(v):void 0;var h=_.c8();_.bl(h,21760,v,{layer:7,parentLayer:0});h.graftServerVe(D,void 0,7);_.Gb().dispatch(_.oG({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
tR.prototype.onDataChanged=tR.prototype.onDataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],tR.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],tR.prototype,"data",void 0);_.e([_.Y({value:_.p1("SBOX_INAPPROPRIATE_CANCEL")}),_.n("design:type",String)],tR.prototype,"closeButtonAriaLabel",void 0);_.e([_.Br("yt-share-panel-header-renderer"),_.n("design:type",HTMLElement)],tR.prototype,"header",void 0);_.e([_.Y({selector:h9C.parentClickTrackingParamsSelector}),_.n("design:type",String)],tR.prototype,"parentClickTrackingParams",void 0);_.e([_.Y(),_.n("design:type",Object)],tR.prototype,"qrCodeEnabled",void 0);
_.e([_.Br("#scroller"),_.n("design:type",Object)],tR.prototype,"JSC$20126_scroller",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tR.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],tR);
_.w(tR,"ytd-unified-share-panel-renderer",function(){if(B6X!==void 0)return B6X;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return B6X=D},{mode:1});var $0d;var ri=function(){var D=_.c.apply(this,arguments)||this;D.modernModal=!0;return D};
_.J(ri,_.c);ri.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ri.prototype.computeShouldHideOldButtons=function(){var D;return!((D=this.data)==null?0:D.button)};
_.GT.Object.defineProperties(ri.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var D,v;return(D=this.data)==null?void 0:(v=D.button)==null?void 0:v.buttonRenderer}}});
_.e([_.Y(),_.n("design:type",Object)],ri.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],ri.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ri.prototype,"modernModal",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ri.prototype,"buttonRendererData",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ri);
_.w(ri,"ytd-modal-with-title-and-button-renderer",function(){if($0d!==void 0)return $0d;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return $0d=D},{mode:1});var Qb2;var uZ=function(){return _.c.apply(this,arguments)||this};
_.J(uZ,_.c);uZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("page-changed",this.page))};
uZ.prototype.pageChangedForBinding=uZ.prototype.pageChangedForBinding;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uZ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],uZ.prototype,"page",void 0);_.e([_.Ni("page"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uZ.prototype,"pageChangedForBinding",null);
_.e([_.m({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],uZ);
_.w(uZ,"ytd-account-item-section-header-renderer",function(){if(Qb2!==void 0)return Qb2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Qb2=D},{mode:1});var Gjb;var Dg=function(){return _.c.apply(this,arguments)||this};
_.J(Dg,_.c);Dg.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"}}}};
Dg.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],Dg.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Dg.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Function)],Dg.prototype,"onAccountItemTap",void 0);
_.e([_.m({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Dg);
_.w(Dg,"ytd-account-item-section-renderer",function(){if(Gjb!==void 0)return Gjb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Gjb=D},{mode:1});var VKr;var PRd;var vY=function(){return _.c.apply(this,arguments)||this};
_.J(vY,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vY.prototype,"data",void 0);_.e([_.m({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],vY);
_.w(vY,"ytd-accounts-dialog-header-renderer",function(){if(PRd!==void 0)return PRd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return PRd=D},{mode:1});var x0U;var hI=function(){return _.c.apply(this,arguments)||this};
_.J(hI,_.c);hI.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hI.prototype,"data",void 0);_.e([_.m({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],hI);
_.w(hI,"ytd-google-account-header-renderer",function(){if(x0U!==void 0)return x0U;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return x0U=D},{mode:1});var aV=function(){return _.c.apply(this,arguments)||this};
_.J(aV,_.c);aV.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"}}}};
aV.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("page-changed",this.page))};
aV.prototype.pageChangedForBinding=aV.prototype.pageChangedForBinding;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],aV.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],aV.prototype,"page",void 0);
_.e([_.Ni("page"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aV.prototype,"pageChangedForBinding",null);_.e([_.m({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],aV);
_.Zp()(aV,"ytd-account-section-list-renderer",function(){if(VKr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);VKr=D}D=VKr;return D},{allowedProps:["data"],
mode:1});var MKK;var $w=function(){var D=_.c.apply(this,arguments)||this;D.enableHandlesAccountMenuSwitcher=_.g("enable_handles_account_menu_switcher");return D};
_.J($w,_.c);$w.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
$w.prototype.dataChanged=$w.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$w.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],$w.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.e([_.Br("#avatar"),_.n("design:type",Object)],$w.prototype,"avatar",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$w.prototype,"dataChanged",null);_.e([_.m({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],$w);
_.Zp()($w,"ytd-active-account-header-renderer",function(){if(MKK===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);MKK=D}D=MKK;return D},{allowedProps:["data"],
mode:1});var fRC;var CRr;var Qt=function(){return _.c.apply(this,arguments)||this};
_.J(Qt,_.c);Qt.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Qt.prototype.onBackTap=function(){_.F1(this.hostElement,"yt-menu-back-tapped")};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Qt.prototype,"data",void 0);_.e([_.m({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Qt);
_.Zp()(Qt,"ytd-simple-menu-header-renderer",function(){if(CRr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);CRr=D}D=CRr;return D},{allowedProps:["data"],
mode:2});var ov3;var GO=function(){return _.c.apply(this,arguments)||this};
_.J(GO,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],GO.prototype,"data",void 0);_.e([_.m({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],GO);
_.w(GO,"ytd-comment-video-thumbnail-header-renderer",function(){if(ov3!==void 0)return ov3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ov3=D},{mode:1});var F8$;var Vt=function(){return _.c.apply(this,arguments)||this};
_.J(Vt,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Vt.prototype,"data",void 0);_.e([_.m({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Vt);
_.w(Vt,"ytd-abuse-type-selector-renderer",function(){if(F8$!==void 0)return F8$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return F8$=D},{mode:1});var z9X;var U0s=(0,_.Hpr)(_.DP.reportChannelAbuse,{isVideoIdSelectedSelector:function(D,v){return v in D.selectedVideoIds},
additionalContextSelector:function(D){return D.additionalContext},
impersonatedChannelUrlSelector:function(D){return D.impersonatedChannelUrl},
reportChannelAbuseSelector:function(D){return D}});var PY=function(){return _.c.apply(this,arguments)||this};
_.J(PY,_.c);PY.prototype.attached=function(){var D=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){D.additionalContextInput.focusTextInput()})};
PY.prototype.handleAdditionalContextChanged=function(){var D=this;_.aq(this,"ytd-report-channel-additional-context-update",function(){D.ytdReduxBehavior.dispatch(_.oG({type:"ADDITIONAL_CONTEXT_UPDATED",payload:D.additionalContext}))},300)};
PY.prototype.updateAdditionalContextFromBinding=function(D){this.additionalContext=D.detail.value};
PY.prototype.handleAdditionalContextChanged=PY.prototype.handleAdditionalContextChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],PY.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",String)],PY.prototype,"additionalContext",void 0);_.e([_.Y({selector:U0s.additionalContextSelector}),_.n("design:type",String)],PY.prototype,"additionalContextRedux",void 0);_.e([_.Y(),_.n("design:type",Object)],PY.prototype,"data",void 0);
_.e([_.Br("yt-text-input-form-field-renderer"),_.n("design:type",Object)],PY.prototype,"additionalContextInput",void 0);_.e([_.Ni("additionalContext"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PY.prototype,"handleAdditionalContextChanged",null);_.e([_.m({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],PY);
_.w(PY,"ytd-report-channel-modal-additional-context-renderer",function(){if(z9X!==void 0)return z9X;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return z9X=D},{mode:1});var L8C;var xw=function(){var D=_.c.apply(this,arguments)||this;D.nextButtonDisabled=null;D.submitEndpoint=null;D.navigationEndpoint=null;D.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return D};
_.J(xw,_.c);_.V=xw.prototype;_.V.computeNextButtonData=function(D,v,h){var a={};v&&(a.navigationEndpoint=v);h&&(a.serviceEndpoint=h);D&&D.buttonRenderer&&_.sV.extend(a,D.buttonRenderer);return a};
_.V.handleReportChannelModalDisableNextButtonAction=function(D){this.setNextButtonIsDisabled(D)};
_.V.handleReportFormEndpointUpdateAction=function(D){this.setNextButtonIsDisabled(!!D.disableSubmitButton);this.resetEndpointData();D.submitEndpoint?this.submitEndpoint=D.submitEndpoint:D.submitNavigationEndpoint&&(this.navigationEndpoint=D.submitNavigationEndpoint)};
_.V.handleSignalActionSubmitForm=function(){var D,v=Object.keys(((D=this.reportChannelAbuseForm)==null?void 0:D.selectedVideoIds)||{}),h;D=((h=this.reportChannelAbuseForm)==null?void 0:h.additionalContext)||"";var a;h=((a=this.reportChannelAbuseForm)==null?void 0:a.impersonatedChannelUrl)||"";var Q;if((Q=this.data)==null?0:Q.submitEndpoint){v={impersonated_channel_url:h,text:D,video_ids:v};var G;_.xd().resolve(_.fx).resolveCommand((G=this.data)==null?void 0:G.submitEndpoint,{form:Object.assign({},
v,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.V.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.V.onYtServiceRequestError=function(D){this.setNextButtonIsDisabled(!1);_.Dj(this.hostElement,D.detail.error.message)};
_.V.setNextButtonIsDisabled=function(D){this.set("data.nextButton.buttonRenderer.isDisabled",D)};
_.V.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
xw.prototype.onYtServiceRequestError=xw.prototype.onYtServiceRequestError;xw.prototype.onYtServiceRequestCompleted=xw.prototype.onYtServiceRequestCompleted;_.e([_.Y(),_.n("design:type",Object)],xw.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],xw.prototype,"nextButtonDisabled",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],xw.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],xw.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xw.prototype,"submitEndpoint",void 0);_.e([_.Y(),_.n("design:type",Object)],xw.prototype,"navigationEndpoint",void 0);_.e([_.Y({selector:U0s.reportChannelAbuseSelector}),_.n("design:type",Object)],xw.prototype,"reportChannelAbuseForm",void 0);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],xw.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],xw.prototype,"onYtServiceRequestError",null);_.e([_.m({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],xw);
_.w(xw,"ytd-report-channel-modal-footer-renderer",function(){if(L8C!==void 0)return L8C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return L8C=D},{mode:1});var ZIs;var M$=function(){var D=_.c.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.closePopup()};
return D};
_.J(M$,_.c);M$.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
M$.prototype.handleDataChanged=function(){_.v1(this.hostElement)};
M$.prototype.closePopup=function(){_.zU(this.hostElement,"yt-close-popup-action")};
M$.prototype.handleDataChanged=M$.prototype.handleDataChanged;_.e([_.Y(),_.n("design:type",Object)],M$.prototype,"boundOnTapDismissButton",void 0);_.e([_.Y(),_.n("design:type",Object)],M$.prototype,"data",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],M$.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M$.prototype,"handleDataChanged",null);_.e([_.m({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],M$);
_.w(M$,"ytd-report-channel-modal-header-renderer",function(){if(ZIs!==void 0)return ZIs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ZIs=D},{mode:1});var EvU;var fo=function(){var D=_.c.apply(this,arguments)||this;D.autoValidate=!1;D.invalid=!1;D.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return D};
_.J(fo,_.c);_.V=fo.prototype;_.V.attached=function(){var D=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){D.channelUrlInput.focusTextInput()})};
_.V.disableNextButton=function(D){_.zU(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[D])};
_.V.handleImpersonatedChannelUrlChanged=function(){var D=this;this.disableNextButton(!0);this.invalid=!1;_.aq(this,"ytd-report-channel-impersonated-channel-update",function(){var v=D.impersonatedChannelUrl.trim();D.ytdReduxBehavior.dispatch(_.oG({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:v}));var h;((h=D.data)==null?0:h.submitEndpoint)&&v&&_.xd().resolve(_.fx).resolveCommand(D.data.submitEndpoint,{form:{impersonated_channel_url:v,element:D.hostElement}})},500)};
_.V.handleModifyReportFormCommand=function(D){this.invalid=this.get("modifyReportFormCommand.action",D)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.V.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.V.updateImpersonatedChannelUrlFromBinding=function(D){this.impersonatedChannelUrl=D.detail.value};
fo.prototype.handleImpersonatedChannelUrlChanged=fo.prototype.handleImpersonatedChannelUrlChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],fo.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],fo.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],fo.prototype,"autoValidate",void 0);_.e([_.Y(),_.n("design:type",Object)],fo.prototype,"invalid",void 0);
_.e([_.Y(),_.n("design:type",String)],fo.prototype,"impersonatedChannelUrl",void 0);_.e([_.Y({selector:U0s.impersonatedChannelUrlSelector}),_.n("design:type",String)],fo.prototype,"impersonatedChannelUrlRedux",void 0);_.e([_.Y(),_.n("design:type",Object)],fo.prototype,"data",void 0);_.e([_.Br("#text-input"),_.n("design:type",Object)],fo.prototype,"channelUrlInput",void 0);
_.e([_.Ni("impersonatedChannelUrl"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fo.prototype,"handleImpersonatedChannelUrlChanged",null);_.e([_.m({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],fo);
_.w(fo,"ytd-report-channel-modal-impersonation-renderer",function(){if(EvU!==void 0)return EvU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return EvU=D},{mode:1});var IRb;var gv2;var Co=function(){return _.c.apply(this,arguments)||this};
_.J(Co,_.c);Co.prototype.onCheckboxToggled=function(D){var v,h,a=(h=_.k((v=this.data)==null?void 0:v.video,_.xG))==null?void 0:h.videoId;a&&this.ytdReduxBehavior.dispatch(D.target.checked?_.oG({type:"VIDEO_SELECTED",payload:a}):_.oG({type:"VIDEO_UNSELECTED",payload:a}))};
Co.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.GT.Object.defineProperties(Co.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.data)==null?void 0:D.video;if(!v)return{};var h;D=(h=_.k(v,_.xG))==null?void 0:h.navigationEndpoint;if(!D)return v;_.k(D==null?void 0:D.commandMetadata,_.Sa)&&(_.k(D.commandMetadata,_.Sa).ignoreNavigation=!0);return v}}});
_.e([_.Y({reflectToAttribute:!0,selector:U0s.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.n("design:type",Boolean)],Co.prototype,"checked",void 0);_.e([_.Y(),_.n("design:type",Object)],Co.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Co.prototype,"video",null);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Co.prototype,"ytdReduxBehavior",void 0);_.e([_.m({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Co);
_.w(Co,"ytd-selectable-video-renderer",function(){if(gv2!==void 0)return gv2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return gv2=D},{mode:1});var oV=function(){var D=_.c.apply(this,arguments)||this;D.monitorScroll=!0;return D};
_.J(oV,_.c);oV.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],oV.prototype,"data",void 0);_.e([_.m({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],oV);
_.w(oV,"ytd-selectable-video-list-renderer",function(){if(IRb!==void 0)return IRb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return IRb=D},{mode:1});var kjZ;_.HX("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Fs=function(){return _.c.apply(this,arguments)||this};
_.J(Fs,_.c);Fs.prototype.onChange=function(D){if(D=_.xU(D).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.g("kevlar_command_handler_migration_killswitch"))_.ZD(this.hostElement,D,this.hostElement);else{D=_.P(D);for(var v=D.next();!v.done;v=D.next())this.ytComponentBehavior.resolveCommand(v.value)}};
Fs.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Fs.prototype.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Fs.prototype,"data",void 0);_.e([_.Y({computed:"isEnabled(data)"}),_.n("design:type",Boolean)],Fs.prototype,"enabled",void 0);_.e([_.m({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Fs);
_.w(Fs,"ytd-toggle-item-renderer",function(){if(kjZ!==void 0)return kjZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return kjZ=D},{mode:1});var SDm;var Jfd;var p_r;var zO=function(){var D=_.c.apply(this,arguments)||this;D.setVisible=!1;D.boundOnSubmitButtonClick=function(){D.onSubmitButtonClick()};
D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.J(zO,_.c);zO.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}}}}}};
zO.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
zO.prototype.onSubmitButtonClick=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&!_.g("enable_ytc_refunds_submit_form_signal_action")&&_.L1(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
zO.prototype.handleSignalActionSubmitForm=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&_.L1(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.GT.Object.defineProperties(zO.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hiddenByDefault)&&!this.setVisible}}});
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],zO.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zO.prototype,"setVisible",void 0);_.e([_.Y(),_.n("design:type",Object)],zO.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],zO.prototype,"surveyFeedbackData",void 0);_.e([_.Y(),_.n("design:type",Object)],zO.prototype,"boundOnSubmitButtonClick",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data","setVisible"),_.n("design:type",Object),_.n("design:paramtypes",[])],zO.prototype,"visibilityHidden",null);_.e([_.Ry({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],zO);
_.w(zO,"yt-flow-footer-renderer",function(){if(p_r===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;Jfd===void 0&&(Jfd=document.createElement("template"));var a=Jfd;h.call(v,a.content.cloneNode(!0),D.content.firstChild);p_r=D}D=p_r;return D},{mode:2});var lRU=(0,_.Hpr)(_.DP.ypc,{surveyFeedbackDataSelector:function(D){return D.surveyFeedbackData}});var UK=function(){return _.c.apply(this,arguments)||this};
_.J(UK,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],UK.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],UK.prototype,"data",void 0);_.e([_.Y({selector:lRU.surveyFeedbackDataSelector}),_.n("design:type",Object)],UK.prototype,"surveyFeedbackData",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],UK);
_.w(UK,"ytd-flow-footer-renderer",function(){if(SDm!==void 0)return SDm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return SDm=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var NSZ;var YDs;var Lo=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return D};
_.J(Lo,_.c);_.V=Lo.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.y0("multiPageMenuSectionItems")}}};
_.V.handleHideEnclosingAction_=function(D){if(this.data&&this.data.items)for(var v=0;v<this.data.items.length;v++){var h=this.data.items[v].notificationRenderer;if(h&&h.notificationId==D.hideEnclosingAction.notificationId){this.splice("data.items",v,1);_.zU(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.V.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.gx(this.hostElement,"hidden",!0)};
_.V.updateMenu_=function(D){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&D&&!D.doNotRefreshInbox){D=this.data.continuations;for(var v=0;v<D.length;v++)if(D[v].invalidationContinuationData){var h=void 0;var a=(h=D[v].invalidationContinuationData)==null?void 0:h.continuation;break}D=_.sV.clone(this.data.continuationUpdateEndpoint||null);D.continuation=a;D.click_tracking_params=this.data.trackingParams;_.L1(this.hostElement,[D])}};
_.V.onServiceRequestCompleted_=function(D,v){if(this.data&&(D=v.actions)){v=0;for(var h=D.length;v<h;v++){var a=_.k(D[v],_.kqM);if(!a)break;if((a.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||a.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&a.continuationItems&&this.data.items){var Q=this.data.items.length-1;this.data.items[Q].continuationItemRenderer&&(a=["data.items",Q,1].concat(a.continuationItems),this.splice.apply(this,a))}}}};
Lo.prototype.onServiceRequestCompleted_=Lo.prototype.onServiceRequestCompleted_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Lo.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Lo.prototype,"data",void 0);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Lo.prototype,"onServiceRequestCompleted_",null);_.e([_.Ry({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Lo);
_.Zp()(Lo,"yt-multi-page-menu-section-renderer",function(){if(YDs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;NSZ===void 0&&(NSZ=document.createElement("template"));var a=NSZ;h.call(v,a.content.cloneNode(!0),D.content.firstChild);YDs=D}D=YDs;return D},{allowedProps:["data"],
mode:2});var BSb;var cfU;var Zg=function(){return _.c.apply(this,arguments)||this};
_.J(Zg,_.c);Zg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.GT.Object.defineProperties(Zg.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)==null?0:this.data.progress*100}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Zg.prototype,"data",void 0);_.e([_.N("data.progress"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Zg.prototype,"showProgressBar",null);
_.e([_.N("data.progress"),_.n("design:type",Number),_.n("design:paramtypes",[])],Zg.prototype,"progress",null);_.e([_.Ry({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Zg);
_.w(Zg,"yt-flow-header-renderer",function(){if(cfU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;BSb===void 0&&(BSb=document.createElement("template"));var a=BSb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);cfU=D}D=cfU;return D},{mode:2});var X_m;var Afm;var EK=function(){return _.c.apply(this,arguments)||this};
_.J(EK,_.c);EK.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],EK.prototype,"data",void 0);_.e([_.Ry({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],EK);
_.w(EK,"yt-post-confirmation-flow-step-renderer",function(){if(Afm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;X_m===void 0&&(X_m=document.createElement("template"));var a=X_m;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Afm=D}D=Afm;return D},{mode:2});var qDm;var bI$;var IV=function(){return _.c.apply(this,arguments)||this};
_.J(IV,_.c);
IV.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],IV.prototype,"data",void 0);_.e([_.Ry({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],IV);
_.w(IV,"yt-refund-confirmation-flow-step-renderer",function(){if(bI$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;qDm===void 0&&(qDm=document.createElement("template"));var a=qDm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);bI$=D}D=bI$;return D},{mode:2});var d0d=_.H(function(D){var v=D.data;return _.F("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.F("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.F(_.PX,{data:function(){return{thumbnails:[{url:v().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.F("div",{class:"profileBadgeViewModelContent"},_.F("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return v().badgeDesc}),_.F(_.z,{cond:function(){return v().badgeSubtitle},
then:function(){return _.F("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return v().badgeSubtitle})}})))},"ti");
d0d.idomCompat=!0;var jbC=_.H(function(D){var v=D.data;return _.F("yt-comment-interaction-view-model",{el:_.ML(_.eb(function(){return v().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.F("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return v().onTapA11yLabel},
"on:keydown":_.SsA(),tabindex:0},_.F("div",{class:"ytCommentInteractionViewModelHeader"},_.F("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return v().headerPrefix},' "',function(){return v().videoTitle}),_.F("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.F("div",{class:"ytCommentInteractionViewModelContent"},_.F("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return v().commentContent}),_.F("div",{class:"ytCommentInteractionViewModelChevron"},
_.F(_.PX,{data:function(){return{thumbnails:[{url:v().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ui");
jbC.idomCompat=!0;var sbr=_.H(function(D){var v=D.data;return _.F("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2}),_.F("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return v().channelName}))},"vi");
sbr.idomCompat=!0;var e93=_.H(function(D){var v=D.data;D={};return _.F("yt-profile-info-view-model",{class:_.S3("ytProfileInfoViewModelHost",(D.ytProfileInfoViewModelWithVideoShelf=function(){return v().videosHorizontalShelf},D))},_.F(m0Z,{profileInfo:v}),_.F(_.c4,{data:function(){return v().videosHorizontalShelf}},{horizontalShelfViewModel:function(h){return _.F("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.F(_.fd,{data:h.data}))}}),_.F(_.z,{cond:function(){return v().comments},
then:function(){return _.F(HIm,{profileInfo:v})}}),_.F(_.z,{cond:function(){return v().sharedSubscriptionsTitle},
then:function(){return _.F(_.z,{cond:function(){return v().subscriptionsAccessButtonCommand},
then:function(){return _.F(yf3,{profileInfo:v})},
else:function(){return _.F(w_Z,{profileInfo:v})}})}}))},"wi");
e93.idomCompat=!0;var HIm=_.H(function(D){var v=D.profileInfo;return _.F("div",{class:"ytProfileInfoViewModelActivity"},_.F("div",{class:"ytProfileInfoViewModelHeader"},_.F("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return v().commentsInteractionTitle})),_.F(_.c4,{data:function(){return v().comments}},{commentInteractionViewModel:function(h){return _.F("div",{class:"ytProfileInfoViewModelActivity"},_.F(jbC,{data:h.data}))}}))},"xi"),yf3=_.H(function(D){var v=D.profileInfo;
return _.F("div",{class:"ytProfileInfoViewModelSubSection"},_.F("div",{class:"ytProfileInfoViewModelSubHeader"},_.F(_.Ak,{command:function(){return v().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.F("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return v().sharedSubscriptionsTitle}),_.F("div",null,_.F(_.c4,{data:function(){return v().subscriptionsAccessButton}},{buttonViewModel:_.s$})))),_.F(nvC,{sharedSubscriptions:function(){var h;
return((h=v().sharedSubscriptions)==null?void 0:h.slice(0,5))||[]}}))},"yi"),w_Z=_.H(function(D){var v=D.profileInfo;
return _.F("div",{class:"ytProfileInfoViewModelSubSection"},_.F("div",{class:"ytProfileInfoViewModelSubHeader"},_.F("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return v().sharedSubscriptionsTitle})),_.F(nvC,{sharedSubscriptions:function(){var h;
return((h=v().sharedSubscriptions)==null?void 0:h.slice(0,5))||[]}}))},"zi"),nvC=_.H(function(D){return _.F("div",{class:"ytProfileInfoViewModelSubs"},_.F(_.c4,{data:D.sharedSubscriptions},{sharedSubscriptionViewModel:function(v){return _.F("div",{class:"ytProfileInfoViewModelSub"},_.F(sbr,{data:v.data}))}}))},"Ai"),m0Z=_.H(function(D){var v=D.profileInfo;
return _.F("div",{class:"ytProfileInfoViewModelActivity"},_.F(_.Xd,{each:function(){return[v().profileBadgeInfoYtWide,v().profileBadgeInfoChannelWide].filter(function(h){return!!h})},
keyBy:"INDEX"},function(h){return _.F(_.xf,null,_.F("div",{class:"ytProfileInfoViewModelHeader"},_.F("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return h().profileSectionTitle}),_.F("div",{class:"ytProfileInfoViewModelSectionDesc"},_.F("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var a;
return(a=h().commentBadge)==null?void 0:a.commentDesc}),_.F(_.z,{cond:function(){var a;
return(a=h().commentBadge)==null?void 0:a.blackHeartDesc},
then:function(){return _.F("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.F("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.F(_.PX,{data:function(){var a;
return{thumbnails:[{url:(a=h().commentBadge)==null?void 0:a.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.F("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var a;return(a=h().commentBadge)==null?void 0:a.blackHeartDesc}))),_.F("div",{class:"ytProfileInfoViewModelBadge"},_.F(_.Xd,{each:function(){return h().badges||[]}},function(a){return _.F(d0d,{data:a})})))}))},"Bi");var OIK=_.H(function(D){var v=D.data;var h=function(){return v().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.F("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.F(_.c4,{data:function(){return v().profileIdentityInfo}},{profileIdentityInfoViewModel:function(a){return _.F(_.WVr,{data:a.data,
hideDivider:h,isChannelInfoCard:h})},
profileInfoViewModel:e93}),_.F(_.c4,{data:function(){return v().profileInfo}},{profileIdentityInfoViewModel:_.WVr,
profileInfoViewModel:e93}))},"Ci");
OIK.idomCompat=!0;_.zh(OIK,"yt-profile-card-view-model",{props:{data:_.gj}});var gQ=function(){var D=_.c.apply(this,arguments)||this;D.enableFocusFix=_.g("music_web_enable_focus_on_setting_menu_fix")&&_.nJ("IS_MOBILE_WEB",!1);D.covered=!1;D.hideMenu=!1;D.isCommentNotificationOnProfileCard=!1;D.scrolledByTouch=!1;D.disableBackdropFilter=_.g("web_disable_backdrop_filter");D.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return D};
_.J(gQ,_.c);_.V=gQ.prototype;
_.V.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"}}}};
_.V.ready=function(){var D=this;this.JSC$20227_containerElement.addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.V.attributeChanged=function(D,v){D==="menu-style"&&_.zU(this.hostElement,"yt-multi-page-menu-closed-action",[v])};
_.V.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.pZ(this,this.focusOnStampFinished))};
_.V.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.pZ(this,this.focusOnStampFinished))};
_.V.reset=function(){this.closeJobId&&(_.HK.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.V.focusOnStampFinished=function(D){D.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.pZ(this,this.focusOnStampFinished)),this.doFocus())};
_.V.doFocus=function(){var D=_.lSb(this.sectionsElement);D.length&&D[0].focus()};
_.V.computeMenuStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V.computeIsCommentNotificationOnProfileCard=function(D){return _.g("enable_profile_cards_on_comments")&&D.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.V.computeHideMenu=function(D,v){return D||!(!v||!v.showLoadingSpinner)};
_.V.onPopupClosed=function(){this.isPopUpOpen=!1;_.zU(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.V.onPopupOpened=function(D,v){this.isPopUpOpen=!0;v.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.F1(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.oG({type:"CHANNEL_REPORT_RESET"})))};
_.V.onYtNavigate=function(D,v){this.shouldCloseOnNavigateEvent(v.endpoint)&&_.zU(this.hostElement,"yt-close-all-popups-action")};
_.V.handleEndpoint=function(D){D=_.k(D,_.aA);!this.isCommentNotificationOnProfileCard&&D&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20227_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.V.handleActions=function(D){for(var v=0,h=D.length;v<h;v++){var a=_.k(D[v],LpK);a&&this.handleGetMultiPageMenuAction(a);(a=_.k(D[v],_.kqM))&&this.handleAppendContinuationItemsAction(a)}};
_.V.onServiceRequestSentOrCompleted=function(D,v){D.detail&&D.detail.endpoint&&this.handleEndpoint(D.detail.endpoint);v.actions&&this.handleActions(v.actions)};
_.V.handleGetMultiPageMenuAction=function(D){var v=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ZW(this.submenuElement).appendChild(v);(D=D.menu.multiPageMenuRenderer)&&this.logSubmenu(D);v.data=D;v.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.V.handleAppendContinuationItemsAction=function(D){if(this.data&&D.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&D.continuationItems&&this.data.sections){var v=this.data.sections.length-1;this.data.sections[v].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),v--);if(this.data.sections[v].multiPageMenuNotificationSectionRenderer&&D.continuationItems){D=_.P(D==null?void 0:D.continuationItems);for(var h=D.next();!h.done;h=D.next())if(h=h.value,_.k(h,OO3)){var a=
void 0,Q=void 0,G=void 0,x=void 0,f=void 0;((a=this)==null?0:(Q=a.data)==null?0:(G=Q.sections)==null?0:(x=G[v])==null?0:(f=x.multiPageMenuNotificationSectionRenderer)==null?0:f.items)&&this.push("data.sections."+v+".multiPageMenuNotificationSectionRenderer.items",h)}else if(_.k(h,_.CYb)||_.k(h,_.aQ))this.push("data.sections",h),v++}}};
_.V.logSubmenu=function(D){if(!_.g("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var v=this.ytRendererBehavior.getScreenLayer(),h=_.wd(v),a=_.yC(v);if((D=D.trackingParams)&&h&&a){var Q=_.d4(D);_.g("combine_ve_grafts")?_.c8().graftServerVe(D,a,v):_.tP(h,a,Q)}}};
_.V.emptySubmenuContainer=function(){for(var D=_.ZW(this.submenuElement);D.firstChild;)D.removeChild(D.firstChild)};
_.V.onMenuBackTap=function(D){_.F1(this.hostElement,"yt-submenu-closed");D.stopPropagation()};
_.V.onSubmenuClosed=function(D){_.xU(D)!==this.hostElement&&(this.covered=!1,_.F1(this.hostElement,"yt-refit"),D.stopPropagation())};
_.V.onRetrieveLocation=function(D,v){v.hasComments&&(v.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),D.stopPropagation())};
_.V.shouldCloseOnNavigateEvent=function(D){if(!D)return!0;if(_.k(D,_.sdb)||_.k(D,_.mBy)||_.k(D,_.jds)||_.k(D,_.RB))return!1;var v;return((v=_.k(D==null?void 0:D.commandMetadata,_.Sa))==null?0:v.ignoreNavigation)?!1:!0};
_.V.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.V.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.V.refitAfterRender=function(){var D=this;_.$R(this,function(){_.F1(D.hostElement,"yt-refit")})};
gQ.prototype.refitAfterRender=gQ.prototype.refitAfterRender;gQ.prototype.onRetrieveLocation=gQ.prototype.onRetrieveLocation;gQ.prototype.onSubmenuClosed=gQ.prototype.onSubmenuClosed;gQ.prototype.onMenuBackTap=gQ.prototype.onMenuBackTap;gQ.prototype.onServiceRequestSentOrCompleted=gQ.prototype.onServiceRequestSentOrCompleted;gQ.prototype.onYtNavigate=gQ.prototype.onYtNavigate;gQ.prototype.onPopupOpened=gQ.prototype.onPopupOpened;gQ.prototype.onPopupClosed=gQ.prototype.onPopupClosed;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],gQ.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],gQ.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gQ.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],gQ.prototype,"enableFocusFix",void 0);_.e([_.Y(),_.n("design:type",Object)],gQ.prototype,"covered",void 0);_.e([_.Y({computed:"computeHideMenu(covered, data)"}),_.n("design:type",Object)],gQ.prototype,"hideMenu",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.n("design:type",String)],gQ.prototype,"menuStyle",void 0);
_.e([_.Y({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.n("design:type",Object)],gQ.prototype,"isCommentNotificationOnProfileCard",void 0);_.e([_.Y(),_.n("design:type",Boolean)],gQ.prototype,"isPopUpOpen",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],gQ.prototype,"scrolledByTouch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],gQ.prototype,"disableBackdropFilter",void 0);
_.e([_.Br("#sections"),_.n("design:type",HTMLElement)],gQ.prototype,"sectionsElement",void 0);_.e([_.Br("#spinner"),_.n("design:type",HTMLElement)],gQ.prototype,"spinnerElement",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],gQ.prototype,"headerElement",void 0);_.e([_.Br("#container"),_.n("design:type",HTMLElement)],gQ.prototype,"JSC$20227_containerElement",void 0);_.e([_.Br("#submenu"),_.n("design:type",HTMLElement)],gQ.prototype,"submenuElement",void 0);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gQ.prototype,"onPopupClosed",null);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],gQ.prototype,"onPopupOpened",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],gQ.prototype,"onYtNavigate",null);
_.e([_.lc("yt-service-request-completed"),_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],gQ.prototype,"onServiceRequestSentOrCompleted",null);_.e([_.lc("yt-menu-back-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],gQ.prototype,"onMenuBackTap",null);
_.e([_.lc("yt-submenu-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],gQ.prototype,"onSubmenuClosed",null);_.e([_.lc("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],gQ.prototype,"onRetrieveLocation",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gQ.prototype,"refitAfterRender",null);
_.e([_.m({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],gQ);
_.w(gQ,"ytd-multi-page-menu-renderer",function(){if(fRC!==void 0)return fRC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fRC=D},{mode:1});var K82;var kw=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return D};
_.J(kw,_.c);_.V=kw.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.computeAccessibility_=function(D){return this.get("accessibility.accessibilityData",D)||null};
_.V.onTap=function(){var D=_.U9(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(D&&D.length===1&&D[0])_.zU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var v;if((v=this.data)==null?0:v.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var h;((h=this.data)==null?0:h.menuRequest)&&_.L1(this.hostElement,[this.data.menuRequest])}}};
_.V.handleTopbarMenuClosedAction=function(D){var v,h;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(D)===((v=this.data)==null?void 0:(h=v.icon)==null?void 0:h.iconType)&&this.toggleIconState(!1)};
_.V.toggleIconState=function(D){_.g("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=D)};
_.V.handleUpdateTopbarAvatarAction=function(D){var v;D=(v=_.k(D,MuU))==null?void 0:v.avatarUrl;var h,a;v=(h=this.data)==null?void 0:(a=h.avatar)==null?void 0:a.thumbnails;D&&v&&(h={thumbnails:[Object.assign({},v[0],{url:D})]},this.set("data.avatar",h))};
_.GT.Object.defineProperties(kw.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ZW(this.hostElement).querySelector("#button")}}});
kw.prototype.onTap=kw.prototype.onTap;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],kw.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.gBJ.YtButtonBehavior),_.n("design:type",Object)],kw.prototype,"ytButtonBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kw.prototype,"data",void 0);
_.e([_.Br("yt-icon-button#button"),_.n("design:type",Object)],kw.prototype,"iconButton",void 0);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kw.prototype,"onTap",null);_.e([_.m({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],kw);
_.Zp()(kw,"ytd-topbar-menu-button-renderer",function(){if(K82===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);K82=D}D=K82;return D},{allowedProps:["data"],
mode:1});var TS2;var SY=function(){return _.c.apply(this,arguments)||this};
_.J(SY,_.c);SY.prototype.getSelected=function(){return this.reasons.selected};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],SY.prototype,"data",void 0);_.e([_.Br("#reasons"),_.n("design:type",Object)],SY.prototype,"reasons",void 0);_.e([_.m({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],SY);
_.w(SY,"ytd-ad-feedback-content",function(){if(TS2!==void 0)return TS2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return TS2=D},{mode:1});var R93;var JI=function(){return _.c.apply(this,arguments)||this};
_.J(JI,_.c);_.V=JI.prototype;_.V.onPopupOpened=function(){_.zU(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.V.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
_.V.computeCancelButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.cancelLabel}};
_.V.onConfirmTap=function(){var D=this.content.getSelected();D!==void 0&&(D=this.data.reasons[D].endpoint)&&(_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}}),_.zU(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.V.sendFeedbackSubmitToastAction=function(){var D;(D=this.data)!=null&&D.completionMessage&&(D=_.MP(this.data.completionMessage),_.zU(this.hostElement,"yt-open-popup-action",[D,this]))};
_.V.onCancelTap=function(){_.zU(this.hostElement,"yt-close-popup-action")};
JI.prototype.onPopupOpened=JI.prototype.onPopupOpened;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],JI.prototype,"data",void 0);_.e([_.Br("#content"),_.n("design:type",Object)],JI.prototype,"content",void 0);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],JI.prototype,"onPopupOpened",null);
_.e([_.m({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],JI);
_.w(JI,"ytd-ad-feedback-renderer",function(){if(R93!==void 0)return R93;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return R93=D},{mode:1});var iI3;var po=function(){return _.c.apply(this,arguments)||this};
_.J(po,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],po.prototype,"data",void 0);_.e([_.m({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],po);
_.w(po,"ytd-ad-info-dialog-content",function(){if(iI3!==void 0)return iI3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return iI3=D},{mode:1});var W8r;var li=function(){return _.c.apply(this,arguments)||this};
_.J(li,_.c);li.prototype.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
li.prototype.onConfirmTap=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
li.prototype.computeShouldShowTitle=function(){var D;return!((D=this.data)==null||!D.title)};
li.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
li.prototype.onPopupClosed=li.prototype.onPopupClosed;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],li.prototype,"data",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],li.prototype,"onPopupClosed",null);_.e([_.m({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],li);
_.w(li,"ytd-ad-info-dialog-renderer",function(){if(W8r!==void 0)return W8r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return W8r=D},{mode:1});var tKZ;var N$=function(){var D=_.c.apply(this,arguments)||this;D.actionButtonClass="action-button";D.dismissButtonId="dismiss-button";D.dialogDismiss=!0;return D};
_.J(N$,_.c);_.V=N$.prototype;_.V.computeInPlayer=function(D){return(D==null?void 0:D.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.V.computedLogo=function(){var D,v;return this.isDarkTheme()?(D=this.data)==null?void 0:D.logoDark:(v=this.data)==null?void 0:v.logo};
_.V.computedHeaderImage=function(){var D,v;return this.isDarkTheme()?(D=this.data)==null?void 0:D.headerImageDark:(v=this.data)==null?void 0:v.headerImage};
_.V.computeLogoIconId=function(){var D,v,h,a=(D=this.computedLogo())==null?void 0:(v=D.sources)==null?void 0:(h=v[0])==null?void 0:h.height;return a&&a%31===0?"logo-icon-with-padding":"logo-icon"};
_.V.computeLogoIconHeight=function(){var D,v,h,a=(D=this.computedLogo())==null?void 0:(v=D.sources)==null?void 0:(h=v[0])==null?void 0:h.height;return a&&a%31===0?"31":"24"};
_.V.onPopupClosed=function(){_.xd().resolve(_.wn).dispose()};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.V.onShow=function(){this.inPlayer&&_.pq(6);this.titleElement.focus()};
_.V.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++){var v=_.k(this.data.impressionEndpoints[D],_.Tz);v&&this.ytComponentBehavior.resolveCommand(v)}};
_.V.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.zU(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.GT.Object.defineProperties(N$.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var D,v;return!((D=this.data)==null||!D.headerImageDark)&&!((v=this.data)==null||!v.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.secondaryButton)}}});
N$.prototype.onPopupClosed=N$.prototype.onPopupClosed;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],N$.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.U$.YtVisibilityBehavior),_.n("design:type",Object)],N$.prototype,"ytVisibilityBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],N$.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],N$.prototype,"actionButtonClass",void 0);_.e([_.Y(),_.n("design:type",Object)],N$.prototype,"dismissButtonId",void 0);_.e([_.Y(),_.n("design:type",Object)],N$.prototype,"dialogDismiss",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N$.prototype,"hasHeaderImage",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],N$.prototype,"hasPremiumButton",null);
_.e([_.Y({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.n("design:type",Boolean)],N$.prototype,"inPlayer",void 0);_.e([_.Br("#dismiss-button"),_.n("design:type",HTMLElement)],N$.prototype,"dismissButton",void 0);_.e([_.Br("#title"),_.n("design:type",HTMLElement)],N$.prototype,"titleElement",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],N$.prototype,"onPopupClosed",null);
_.e([_.m({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],N$);
_.w(N$,"ytd-enforcement-message-view-model",function(){if(tKZ!==void 0)return tKZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return tKZ=D},{mode:1});var rfS;var uRr;var Yw=function(){var D=_.c.apply(this,arguments)||this;D.TEST_ONLY={immediateValidation:function(){D.immediateValidation()},
onValidationResponse:function(v){D.onValidationResponse(v)},
onGenerateHandleFromNameResponse:function(v){D.onGenerateHandleFromNameResponse(v)}};
return D};
_.J(Yw,_.c);_.V=Yw.prototype;_.V.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.V.validate=function(){this.immediateValidation()};
_.V.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.V.setHandleInputValue=function(D){this.handleDir=this.getHandleDir(D);this.handleInput.value=D;this.validationState={status:"PENDING"};this.immediateValidation()};
_.V.getHandleDir=function(D){var v=D===""&&!1;return(v=_.fOp.test.call(_.fOp,D))?"rtl":"ltr"};
_.V.onDataChanged=function(){var D,v;this.handleDir=this.getHandleDir((v=(D=this.data)==null?void 0:D.handle)!=null?v:"");var h;this.validationState=((h=this.data)==null?0:h.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var a;((a=this.data)==null?0:a.validateOnInit)&&this.immediateValidation()};
_.V.stopPropagation=function(D){D.stopPropagation()};
_.V.onInput=function(){var D;this.handleDir=this.getHandleDir((D=this.handleInput.value)!=null?D:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.V.onFocusout=function(D){this.handleInput.contains(D.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.V.delayedValidation=function(){var D,v;this.debouncedValidation((v=(D=this.data)==null?void 0:D.validationDelayMs)!=null?v:1E3)};
_.V.immediateValidation=function(){this.debouncedValidation(0)};
_.V.debouncedValidation=function(D){var v=this;_.aq(this,"debouncedValidation",function(){var h,a=v.staticValidation((h=v.handleInput.value)!=null?h:"");if(a!==void 0)v.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:a};else{var Q;if((Q=v.data)!=null&&Q.validateChannelHandleCommand){v.validationState={status:"LOADING"};var G;v.ytComponentBehavior.resolveCommand(v.data.validateChannelHandleCommand,{form:{handle:(G=v.handleInput.value)!=null?G:""},commandController:{onSuccess:function(x,
f){v.onValidationResponse(f)},
onServerError:function(x,f){v.onValidationServerError(f)}}})}else v.handleUnexpectedValidationError(new _.XH("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",v.data))}},D)};
_.V.staticValidation=function(D){var v;if(((v=this.data)==null?void 0:v.channelHandleStaticValidationParams)!==void 0){v=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(D)&&v.validValueRegexpErrorMessage!==void 0)return v.validValueRegexpErrorMessage;if(v.minLength!==void 0&&D.length<v.minLength&&v.minLengthErrorMessage!==void 0)return v.minLengthErrorMessage;if(v.maxLength!==void 0&&D.length>v.maxLength&&v.maxLengthErrorMessage!==void 0)return v.maxLengthErrorMessage}};
_.V.onValidationResponse=function(D){var v=_.k(D.result,fwK);v===void 0?this.handleUnexpectedValidationError(new _.XH("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",D)):this.handleValidationResultRenderer(v)};
_.V.onValidationServerError=function(D){this.handleUnexpectedValidationError(new _.XH("ValidateChannelHandle request failed.",D))};
_.V.handleValidationResultRenderer=function(D){if(D.handle===void 0)this.handleUnexpectedValidationError(new _.XH("ChannelHandleValidationResultRenderer does not contain handle.",D));else if(D.handle===this.handleInput.value)switch(D.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:D.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:D.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.XH("Unrecognized ChannelHandleValidationResult",D));break;default:_.K4(D.result)}};
_.V.handleUnexpectedValidationError=function(D){var v;this.validationState={status:"UNKNOWN",handle:(v=this.handleInput.value)!=null?v:""};_.yR(D)};
_.V.stopEventPropagation=function(D){D.stopPropagation()};
_.V.updateHandleOnChannelNameInputChange=function(D){if(!this.wasEdited){var v,h;this.debouncedGenerateHandleFromName(D,(h=(v=this.data)==null?void 0:v.validationDelayMs)!=null?h:1E3)}};
_.V.debouncedGenerateHandleFromName=function(D,v){var h=this;_.aq(this,"debouncedGenerateHandleFromName",function(){var a;(a=h.data)!=null&&a.validateChannelHandleCommand?h.ytComponentBehavior.resolveCommand(h.data.validateChannelHandleCommand,{form:{name:D},commandController:{onSuccess:function(Q,G){h.onGenerateHandleFromNameResponse(G)},
onServerError:function(Q,G){_.yR(new _.XH("Error calling GenerateHandleFromName",G))}}}):_.yR(new _.XH("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",h.data))},v)};
_.V.onGenerateHandleFromNameResponse=function(D){this.wasEdited||((D=_.k(D.result,CK$))?this.setHandleInputValue(D.handle):_.yR(new _.XH("Invalid results when generate handle from name")))};
_.GT.Object.defineProperties(Yw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var D;if(D=this.validationState)D=this.validationState,D=D.status==="OK"||D.status==="UNKNOWN";if(D)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.validationState)==null?void 0:D.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var D,v=(D=this.channelHandleEntity)==null?void 0:D.handleEdit;this.handleDir=this.getHandleDir(v!=null?v:"");return v}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var D,v;if(((D=this.data)==null?void 0:(v=D.channelHandleStaticValidationParams)==null?void 0:v.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Yw.prototype.stopEventPropagation=Yw.prototype.stopEventPropagation;Yw.prototype.onDataChanged=Yw.prototype.onDataChanged;Yw.prototype.applyHandleEdit=Yw.prototype.applyHandleEdit;Yw.prototype.onValueChanged=Yw.prototype.onValueChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Yw.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Yw.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Yw.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],Yw.prototype,"wasEdited",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],Yw.prototype,"handleDir",void 0);_.e([_.Br("#handle-input"),_.n("design:type",Object)],Yw.prototype,"handleInput",void 0);_.e([_.Y(),_.N("validationState"),_.n("design:type",Object),_.n("design:paramtypes",[])],Yw.prototype,"value",null);
_.e([_.Ni("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yw.prototype,"onValueChanged",null);_.e([_.N("validationState"),_.n("design:type",Object),_.n("design:paramtypes",[])],Yw.prototype,"errorIndicator",null);_.e([_.Y({reflectToAttribute:!0}),_.N("errorIndicator"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Yw.prototype,"borderErrorIndicator",null);
_.e([_.Y({selectorArgs:["data.channelHandleEntityKey"],selector:function(D,v){return _.gR(D.entities,"channelHandle",v)}}),
_.n("design:type",Object)],Yw.prototype,"channelHandleEntity",void 0);_.e([_.N("channelHandleEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],Yw.prototype,"handleEdit",null);_.e([_.Ni("handleEdit"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yw.prototype,"applyHandleEdit",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yw.prototype,"onDataChanged",null);
_.e([_.N("data.channelHandleStaticValidationParams.validValueRegexp"),_.n("design:type",Object),_.n("design:paramtypes",[])],Yw.prototype,"validValueRegexp",null);_.e([_.lc("yt-service-request-sent"),_.lc("yt-service-request-completed"),_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Yw.prototype,"stopEventPropagation",null);_.e([_.m({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Yw);
_.w(Yw,"ytd-channel-handle-input-renderer",function(){if(uRr!==void 0)return uRr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return uRr=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var BY=function(){var D=_.c.apply(this,arguments)||this;D.data=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!1;D.enableNewChannelCreationOnIdForAll=_.g("enable_new_channel_creation_for_id4all");D.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};D.testOnly={setErrorMessage:function(v){D.resetErrorState();
D.setErrorState(v)}};
return D};
_.J(BY,_.c);_.V=BY.prototype;_.V.created=function(){this.logScreenVe()};
_.V.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")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var D;((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.set("errorMessage",_.aX(this.zeroStepErrorMessageEntity.value))};
_.V.onCreateTap=function(){var D=this;if(this.data&&this.data.channelCreationEndpoint){var v,h;if(!((v=this.data.createChannelButton)==null?0:(h=v.buttonRenderer)==null?0:h.isDisabled)){var a;if((a=this.nameInput)!=null&&a.value){this.setLoadingState();var Q,G;v=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Q=this.handleInput)==null?void 0:Q.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((G=this.handleInput)==null?void 0:G.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:v,commandController:{onSuccess:function(x,f){D.onChannelCreationEndpointSuccess(f);D.obakeImageSource&&_.jj("channelCreatedWithObakeImage",{imageSourceType:D.obakeImageSource})},
onServerError:function(){D.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.V.endpointRequiresServiceRequestAction=function(D){return!!_.k(D,_.qh)||!!_.k(D,MuU)};
_.V.isNavigateAction=function(D){var v;return!!_.k(D,_.BI)||!!_.k((v=_.k(D,zAC))==null?void 0:v.command,_.BI)};
_.V.isPlaylistAction=function(D){return!!_.k(D,_.$G)||!!_.k(D,_.M8)};
_.V.onChannelCreationEndpointSuccess=function(D){if(D.createChannelError){var v;this.setErrorState((v=D.createChannelError)==null?void 0:v.errorMessage);this.handleInput&&this.handleInput.validate()}else{D.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(D.navigationEndpoint);if(D.actions){v=_.P(D.actions);for(var h=v.next();!h.done;h=v.next())if(h=h.value,this.endpointRequiresServiceRequestAction(h)&&this.ytComponentBehavior.resolveCommand(h),this.isNavigateAction(h)){var a=void 0;h=_.k((a=
_.k(h,zAC))==null?void 0:a.command,_.BI);a=void 0;this.isPlaylistAction((a=h)==null?void 0:a.endpoint)&&(_.zU(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),a=void 0,this.ytComponentBehavior.resolveCommand((a=h)==null?void 0:a.endpoint))}}D.actions&&D.actions.some(function(Q){var G;return _.k(Q,_.BI)||_.k((G=_.k(Q,zAC))==null?void 0:G.command,_.BI)})||_.zU(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.V.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.V.onCancelTap=function(){var D,v,h;if(!((D=this.data)==null?0:(v=D.cancelButton)==null?0:(h=v.buttonRenderer)==null?0:h.isDisabled)){var a,Q,G;D=(a=this.data)==null?void 0:(Q=a.cancelButton)==null?void 0:(G=Q.buttonRenderer)==null?void 0:G.command;if(!D||!_.k(D,_.o8q)){var x;this.nameInput&&((x=this.data)==null?0:x.name)&&(this.nameInput.value=this.data.name);var f;this.handleInput&&((f=this.data)==null?0:f.channelHandleInput)&&(this.handleInput.data=_.k(this.data.channelHandleInput,o$$));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.V.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.V.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.V.onClearProfilePhotoTap=function(){var D,v,h;((D=this.data)==null?0:(v=D.clearProfilePhotoButton)==null?0:(h=v.buttonRenderer)==null?0:h.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.V.onEditAvatarTap=function(){var D,v,h;((D=this.data)==null?0:(v=D.editAvatarButton)==null?0:(h=v.buttonRenderer)==null?0:h.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.V.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)};
_.V.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var D;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((D=this.data)==null?0:D.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.V.setErrorState=function(D){this.resetErrorState();if(D)this.set("errorMessage",D);else{var v;if((v=this.zeroStepErrorMessageEntity)==null?0:v.value)this.set("errorMessage",_.aX(this.zeroStepErrorMessageEntity.value));else{var h;((h=this.data)==null?0:h.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.V.fetchImageBlobWithAlr=function(D,v){v=v===void 0?5:v;var h=this,a,Q,G,x,f;return _.M(function(C){switch(C.nextAddress){case 1:return C.yield(fetch(D,{method:"GET",mode:"cors"}),2);case 2:a=C.yieldResult;if(a.ok){C.jumpTo(3);break}if(v===0)throw Error();Q=h.addJitter(Math.pow(2,5-v));return C.yield(new Promise(function(U){setTimeout(U,Q*1E3)}),4);
case 4:return C.return(h.fetchImageBlobWithAlr(D,v-1));case 3:if(!a.headers.get("content-type").split(";").some(function(U){return U.trim()==="text/plain"})){C.jumpTo(5);
break}G=h;x=G.fetchImageBlobWithAlr;return C.yield(a.text(),6);case 6:return C.return(x.call(G,C.yieldResult,v-1));case 5:return C.yield(a.blob(),7);case 7:return f=C.yieldResult,C.return(f)}})};
_.V.addJitter=function(D){var v=D*.3*Math.random();Math.random()>.5&&(v*=-1);return D+v};
_.V.openProfilePicturePicker=function(){var D=this,v,h,a,Q,G,x;return _.M(function(f){if(f.nextAddress==1){v=D.data.scottyUploadUrl;if(!v)return f.return();h=document.documentElement.hasAttribute("dark");a=document.body.style.colorScheme;h&&(document.body.style.colorScheme="dark");Q=Z6K(Ess(LGb(MyS(h?"dark":"light")),function(C){var U,L,Z,E,I;return _.M(function(S){if(S.nextAddress==1)return U=_.hJ(d_Z(new Ix(C.photoUrl,!1)).build(),"alr","yes"),D.obakeImageSource=D.pictureChangeSourceToObakeImageSourceType(C.photoSource),
_.gE(S,2),D.setLoadingState(),S.yield(D.fetchImageBlobWithAlr(U),4);if(S.nextAddress!=2)return L=S.yieldResult,Z=new FileReader,Z.addEventListener("load",function(){var B,A,d,b,W,K;return _.M(function(O){if(O.nextAddress==1){if(L.size>15728640)return D.setErrorState((B=D.data)==null?void 0:B.imageSizeErrorMessage),_.yR(Error("Al")),O.return();if(!Z.result)return D.setErrorState((A=D.data)==null?void 0:A.genericImageLoadErrorMessage),_.yR(Error("Bl")),O.return();d=Z.result;_.gE(O,2);return O.yield(uZd(L,
v),4)}if(O.nextAddress!=2)return b=O.yieldResult,D.handleImageUpdatedAction(d,b),D.resetErrorState(),_.rl(O,0);W=_.NS(O);D.setErrorState((K=D.data)==null?void 0:K.uploadErrorMessage);if(W instanceof Error)_.mV(W);else{var R=new _.XH(JSON.stringify(W));_.mV(R)}_.YI(O)})}),Z.readAsDataURL(L),_.rl(S,0);
E=_.NS(S);D.setErrorState((I=D.data)==null?void 0:I.genericImageLoadErrorMessage);E instanceof Error?_.mV(E):_.H1(new _.XH(JSON.stringify(E)));_.YI(S)})}),function(){D.hideContainer=!1;
document.body.style.colorScheme=a});
_.gE(f,2);return((G=D.data)==null?0:G.shouldViewChannelCreationFormForSupex)?f.yield(Q.openPicker("profile-picture/art-selection"),5):f.yield(Q.openPicker(),5)}if(f.nextAddress!=2)return _.rl(f,0);_.NS(f);D.setErrorState((x=D.data)==null?void 0:x.selectImageErrorMessage);_.YI(f)})};
_.V.pictureChangeSourceToObakeImageSourceType=function(D){switch(D){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.V.logScreenVe=function(){_.bl(_.c8(),124448)};
_.V.graftServerVe=function(){var D=_.yC(),v,h,a=(v=this.data)==null?void 0:(h=v.loggingDirectives)==null?void 0:h.trackingParams;a&&D&&(this.channelCreationFormVe=_.c8().graftServerVe(a,D),D={visualElement:this.channelCreationFormVe},_.Yt().reportShown(D))};
_.V.isNameChanged=function(D){var v;return((v=this.data)==null?void 0:v.name)!==D};
_.V.isHandleChanged=function(D){var v,h=_.k((v=this.data)==null?void 0:v.channelHandleInput,o$$);return h&&D?h.handle!==D:!1};
_.V.handleImageUpdatedAction=function(D,v){this.hideContainer=!1;this.previewDataUrl=D;this.encryptedBlobId=v};
_.V.handleImageSelectionErrorAction=function(D){this.hideContainer=!1;this.setErrorState(D)};
_.V.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.V.showContainer=function(){this.hideContainer=!1};
_.V.maybeWipeZeroStepErrorMessage=function(){var D,v=(D=this.data)==null?void 0:D.zeroStepErrorMessageEntityKey,h;v&&((h=this.zeroStepErrorMessageEntity)==null?0:h.value)&&this.ytdReduxBehavior.dispatch(_.Xe("stringEntity",v,{key:v,value:""}))};
_.GT.Object.defineProperties(BY.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var D;return((D=this.photoThumbnail)==null?0:D.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.descriptionInfo}}});
BY.prototype.dataChanged=BY.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],BY.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],BY.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],BY.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],BY.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],BY.prototype,"errorMessage",void 0);
_.e([_.Y(),_.n("design:type",Object)],BY.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",String)],BY.prototype,"previewDataUrl",void 0);_.e([_.Y(),_.n("design:type",Number)],BY.prototype,"obakeImageSource",void 0);_.e([_.Y(),_.n("design:type",Object)],BY.prototype,"hideContainer",void 0);_.e([_.Br("#title-input"),_.n("design:type",Object)],BY.prototype,"nameInput",void 0);_.e([_.Br("#handle-input"),_.n("design:type",Object)],BY.prototype,"handleInput",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],BY.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.e([_.Y({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.W54}),_.n("design:type",Object)],BY.prototype,"zeroStepErrorMessageEntity",void 0);_.e([_.N("data","data.isDefaultProfilePhoto","previewDataUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],BY.prototype,"photoThumbnail",null);
_.e([_.N("data","data.isDefaultProfilePhoto","photoThumbnail"),_.n("design:type",Object),_.n("design:paramtypes",[])],BY.prototype,"userSetPhotoThumbnailUrl",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],BY.prototype,"hideProfilePhotoButtonLayer",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],BY.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.e([_.qi("data","zeroStepErrorMessageEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BY.prototype,"dataChanged",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.descriptionInfo","zeroStepErrorMessageEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],BY.prototype,"description",null);_.e([_.m({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],BY);
_.w(BY,"ytd-channel-creation-dialog-renderer",function(){if(rfS!==void 0)return rfS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return rfS=D},{mode:1});var Dzb;var q$=function(){var D=_.c.apply(this,arguments)||this;D.isLoading=!1;D.isDisabled=!1;return D};
_.J(q$,_.c);q$.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
q$.prototype.updateDisabled=function(){var D;this.isDisabled=this.isLoading||((D=this.handleInput)==null?void 0:D.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
q$.prototype.onSaveClick=function(){var D=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var v;((v=this.data)==null?void 0:v.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 h;if((h=D.data)==null?0:h.nextEndpoint){var a;D.ytComponentBehavior.resolveCommand((a=D.data)==null?void 0:a.nextEndpoint)}else D.isLoading=
!1,D.closeDialog()},
onServerError:function(){D.isLoading=!1;D.handleInput.validate();var h;D.errorMessage=(h=D.data)==null?void 0:h.errorMessage}}}))}};
q$.prototype.closeDialog=function(){_.zU(this.hostElement,"yt-close-popup-action",[this.is])};
q$.prototype.updateDisabled=q$.prototype.updateDisabled;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],q$.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],q$.prototype,"data",void 0);_.e([_.Br("#handle-input"),_.n("design:type",Object)],q$.prototype,"handleInput",void 0);_.e([_.Ni("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q$.prototype,"updateDisabled",null);
_.e([_.m({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],q$);
_.w(q$,"ytd-channel-handle-edit-dialog-renderer",function(){if(Dzb!==void 0)return Dzb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Dzb=D},{mode:1});var vxS;var bi=function(){return _.c.apply(this,arguments)||this};
_.J(bi,_.c);bi.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bi.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],bi);
_.w(bi,"ytd-channel-switcher-footer-renderer",function(){if(vxS!==void 0)return vxS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return vxS=D},{mode:1});var hYs;var adb;var dQ=function(){return _.c.apply(this,arguments)||this};
_.J(dQ,_.c);dQ.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
dQ.prototype.onIronChange=dQ.prototype.onIronChange;_.e([_.Y(),_.n("design:type",Object)],dQ.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Function)],dQ.prototype,"onDontAskAgainChanged",void 0);_.e([_.Br("#checkbox"),_.n("design:type",Object)],dQ.prototype,"checkbox",void 0);_.e([_.lc("iron-change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dQ.prototype,"onIronChange",null);
_.e([_.m({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],dQ);
_.w(dQ,"ytd-identity-prompt-footer-renderer",function(){if(adb!==void 0)return adb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return adb=D},{mode:1});var jY=function(){var D=_.c.apply(this,arguments)||this;D.dontAskAgain=!1;D.showPopup=!1;D.boundDontAskAgainChanged=function(v){D.dontAskAgainChanged(v)};
D.boundOnAccountItemTap=function(v){D.onAccountItemTap(v)};
return D};
_.J(jY,_.c);_.V=jY.prototype;
_.V.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]]"}}}}}};
_.V.ready=function(){var D=this;_.ZW(this.hostElement).querySelector("#container").addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.V.dontAskAgainChanged=function(D){this.dontAskAgain=D};
_.V.onAccountItemTap=function(D){if(D){var v={};this.dontAskAgain&&(v={dont_ask_again:this.dontAskAgain});_.ay(D,v)}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.V.redirectOnlyAccount=function(D){D.sections&&D.sections.length>0&&(D=_.k(D.sections[0],_.fBt),(D==null?0:D.contents)&&(D==null?void 0:D.contents.length)<=1?(D=_.DX(window.location.href),(D==null?0:D.next)&&_.wUi(D.next)?_.ay(D.next):_.ay("/")):this.showPopup=!0)};
jY.prototype.dataChanged=jY.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jY.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Object)],jY.prototype,"dontAskAgain",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],jY.prototype,"showPopup",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Object)],jY.prototype,"boundDontAskAgainChanged",void 0);_.e([_.Y({reflectToAttribute:!1}),_.n("design:type",Object)],jY.prototype,"boundOnAccountItemTap",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jY.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],jY);
_.w(jY,"ytd-channel-switcher-renderer",function(){if(hYs!==void 0)return hYs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return hYs=D},{mode:1});var $zC;var sK=function(){return _.c.apply(this,arguments)||this};
_.J(sK,_.c);_.GT.Object.defineProperties(sK.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.e([_.Y(),_.n("design:type",Object)],sK.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],sK.prototype,"steps",null);_.e([_.m({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],sK);
_.w(sK,"ytd-channel-transfer-stepper-renderer",function(){if($zC!==void 0)return $zC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return $zC=D},{mode:1});var Qjs;var mx=function(){var D=_.c.apply(this,arguments)||this;D.data=null;D.isError=!1;D.isLoading=!1;return D};
_.J(mx,_.c);_.V=mx.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.V.computeProfileName=function(D){return D?D.givenNameValue+" "+D.familyNameValue:""};
_.V.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)};
_.V.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)};
mx.prototype.onYtServiceRequestError=mx.prototype.onYtServiceRequestError;mx.prototype.onYtServiceRequestSent=mx.prototype.onYtServiceRequestSent;mx.prototype.dataChanged=mx.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],mx.prototype,"data",void 0);
_.e([_.Y({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.n("design:type",String)],mx.prototype,"profileName",void 0);_.e([_.Y(),_.n("design:type",Object)],mx.prototype,"isError",void 0);_.e([_.Y(),_.n("design:type",Object)],mx.prototype,"isLoading",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mx.prototype,"dataChanged",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],mx.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],mx.prototype,"onYtServiceRequestError",null);_.e([_.m({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],mx);
_.w(mx,"ytd-channel-warm-welcome-cont-renderer",function(){if(Qjs!==void 0)return Qjs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Qjs=D},{mode:1});var GZS;var HY=function(){var D=_.c.apply(this,arguments)||this;D.data=null;return D};
_.J(HY,_.c);HY.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
HY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],HY.prototype,"data",void 0);_.e([_.m({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],HY);
_.w(HY,"ytd-channel-warm-welcome-renderer",function(){if(GZS!==void 0)return GZS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return GZS=D},{mode:1});var VsU;var wQ=function(){return _.c.apply(this,arguments)||this};
_.J(wQ,_.c);_.GT.Object.defineProperties(wQ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.authorThumbnail)||{}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wQ.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wQ.prototype,"thumbnailDetails",null);_.e([_.m({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],wQ);
_.w(wQ,"ytd-comment-preview-renderer",function(){if(VsU!==void 0)return VsU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return VsU=D},{mode:1});var PIU;var eY=function(){return _.c.apply(this,arguments)||this};
_.J(eY,_.c);eY.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.GT.Object.defineProperties(eY.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.submitButton}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],eY.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],eY.prototype,"submitButton",null);_.e([_.m({is:"ytd-notice-renderer",disableElementRegistration:!0})],eY);
_.w(eY,"ytd-notice-renderer",function(){if(PIU!==void 0)return PIU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return PIU=D},{mode:1});var xzr;var no=function(){return _.c.apply(this,arguments)||this};
_.J(no,_.c);no.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],no.prototype,"data",void 0);_.e([_.m({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],no);
_.w(no,"ytd-preview-comment-dialog-content",function(){if(xzr!==void 0)return xzr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return xzr=D},{mode:1});var MsU;var OK=function(){return _.c.apply(this,arguments)||this};
_.J(OK,_.c);OK.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
OK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],OK.prototype,"data",void 0);_.e([_.m({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],OK);
_.w(OK,"ytd-preview-comment-dialog-renderer",function(){if(MsU!==void 0)return MsU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return MsU=D},{mode:1});var fdd;var CIs=_.g("web_button_rework")&&_.nJ("BUTTON_REWORK")||_.g("web_button_rework_with_live"),Ko=function(){var D=_.c.apply(this,arguments)||this;D.closeLabel=_.p1("CLOSE");D.selectedAmountIndex=1;D.privacyCheckboxValue=!1;D.useAmsterdamStyle=CIs;D.amountPlaceholderIndex=-1;return D};
_.J(Ko,_.c);_.V=Ko.prototype;_.V.onAmountClick=function(D){this.selectedAmountIndex=_.ZW(this.hostElement).querySelector("#amounts").indexForElement(D.currentTarget)};
_.V.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.zU(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.V.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.zU(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.zU(this.hostElement,"yt-close-popup-action",[this.is]);var D;(D=_.Mq())==null||D.getPlayerPromise().then(function(v){v.pauseVideo()})}};
_.V.donationCallback=function(D){D.success?(this.hostElement.hasAttribute("live-chat")&&D.response&&D.response.data&&D.response.data.actions&&_.zU(this.hostElement,"yt-live-chat-open-popup",[D.response.data.actions[0]]),_.zU(this.hostElement,"yt-close-popup-action",[this.is]),_.zU(this.hostElement,"yt-live-chat-close-buy-flow")):D.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(D.errorMessageRenderer)};
_.V.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ZW(this.hostElement).querySelector("#custom-amount-input").focus()};
_.V.updateConfirmationDialogTextWithAmount=function(D){var v=this.getConfirmDialogRuns();v&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(v),"text"],this.getFormattedAmount(D))};
_.V.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.V.getAmountPlaceholderIndex=function(D){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=D.findIndex(function(v){return v.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.V.getFormattedAmount=function(D){var v;return(new _.rR(4,((v=this.data)==null?void 0:v.currencyCode)||"")).format(D)};
_.V.isAmountValid=function(D){if(D==="")return!1;D=Number(D)*1E6;var v=this.get("minAmountMicros",this.data),h=this.get("maxAmountMicros",this.data);return v&&D<v||h&&D>h?!1:!0};
_.V.setInputError=function(){this.shouldShowValidationError?_.ZW(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ZW(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.V.setInitialCheckboxValue=function(){var D;this.privacyCheckboxValue=!((D=this.data)==null||!D.privacyCheckboxInitialState)};
_.V.updateCustomAmountInputFromBinding=function(D){this.customAmountInput=D.detail.value};
_.V.updatePrivacyCheckboxValueFromBinding=function(D){this.privacyCheckboxValue=D.detail.value};
_.GT.Object.defineProperties(Ko.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var D=this,v,h;return((v=this.data)==null?void 0:(h=v.suggestedAmounts)==null?void 0:h.map(function(a,Q){return{buttonRenderer:{style:D.selectedAmountIndex===Q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:a.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var D=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(D&&this.amountMicros!==null)return Object.assign({},D,{ypcGetCartEndpoint:Object.assign({},D.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var D=this.get("confirmLargeAmount",this.data);if(D&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),D}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.get("donateButton.buttonRenderer",this.data);if(D)return Object.assign({},D,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Ko.prototype.setInitialCheckboxValue=Ko.prototype.setInitialCheckboxValue;Ko.prototype.setInputError=Ko.prototype.setInputError;Ko.prototype.setFocusOnCustomAmountInput=Ko.prototype.setFocusOnCustomAmountInput;_.e([_.l(IkC),_.n("design:type",Object)],Ko.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ko.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Ko.prototype,"closeLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],Ko.prototype,"selectedAmountIndex",void 0);_.e([_.Y(),_.n("design:type",String)],Ko.prototype,"customAmountInput",void 0);_.e([_.Y(),_.n("design:type",Object)],Ko.prototype,"privacyCheckboxValue",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ko.prototype,"useAmsterdamStyle",void 0);_.e([_.Ni("customAmount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ko.prototype,"setFocusOnCustomAmountInput",null);_.e([_.N("data","selectedAmountIndex"),_.n("design:type",Array),_.n("design:paramtypes",[])],Ko.prototype,"suggestedAmountButtons",null);
_.e([_.N("data","selectedAmountIndex"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ko.prototype,"isCustomAmountSelected",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ko.prototype,"showPrivacyCheckbox",null);_.e([_.N("data","selectedAmountIndex","customAmount"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"amountMicros",null);
_.e([_.N("isCustomAmountSelected","customAmountInput"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"customAmount",null);_.e([_.N("customAmount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ko.prototype,"shouldShowValidationError",null);_.e([_.N("customAmount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ko.prototype,"isDonateButtonEnabled",null);
_.e([_.N("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"donateCommand",null);_.e([_.N("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"donateCommandWithConfirmation",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"largeDonationThreshold",null);
_.e([_.N("customAmount","donateCommand","amountMicros"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"confirmLargeAmountCommand",null);_.e([_.N("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ko.prototype,"donateButtonRenderer",null);_.e([_.Ni("shouldShowValidationError"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ko.prototype,"setInputError",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ko.prototype,"setInitialCheckboxValue",null);_.e([_.m({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Ko);
_.w(Ko,"ytd-donation-amount-picker-renderer",function(){if(fdd!==void 0)return fdd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return fdd=D},{mode:1});var oxX;var TO=function(){return _.c.apply(this,arguments)||this};
_.J(TO,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],TO.prototype,"ytComponentBehavior",void 0);_.e([_.Y({}),_.n("design:type",Object)],TO.prototype,"data",void 0);_.e([_.m({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],TO);
_.w(TO,"ytd-donation-post-transaction-content",function(){if(oxX!==void 0)return oxX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return oxX=D},{mode:1});var F0Z;var RV=function(){return _.c.apply(this,arguments)||this};
_.J(RV,_.c);RV.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.e([_.Y({}),_.n("design:type",Object)],RV.prototype,"data",void 0);_.e([_.m({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],RV);
_.w(RV,"ytd-donation-post-transaction-renderer",function(){if(F0Z!==void 0)return F0Z;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return F0Z=D},{mode:1});var zYr;var UzS;var ii=function(){return _.c.apply(this,arguments)||this};
_.J(ii,_.c);ii.prototype.computeIsStreamingProvider=function(D){return!!D.isStreamingShelf};
ii.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ii.prototype,"data",void 0);_.e([_.Y({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],ii.prototype,"isStreamingProvider",void 0);
_.e([_.m({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],ii);
_.w(ii,"ytd-media-provider-renderer",function(){if(UzS!==void 0)return UzS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return UzS=D},{mode:1});var L0r;var WY=function(){return _.c.apply(this,arguments)||this};
_.J(WY,_.c);WY.prototype.observeLightsourcePalette=function(){var D,v=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;v&&_.sA(this.hostElement,v)};
WY.prototype.observeLightsourcePalette=WY.prototype.observeLightsourcePalette;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],WY.prototype,"data",void 0);
_.e([_.Ni("data.vibrantsourceColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WY.prototype,"observeLightsourcePalette",null);_.e([_.m({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],WY);
_.w(WY,"ytd-streaming-pop-up-dialog",function(){if(L0r!==void 0)return L0r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return L0r=D},{mode:1});var tI=function(){return _.c.apply(this,arguments)||this};
_.J(tI,_.c);tI.prototype.onPopupOpened_=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.xd().resolve(_.fx).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
tI.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
tI.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"}}}}};
tI.prototype.onPopupOpened_=tI.prototype.onPopupOpened_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.LU),_.n("design:type",Object)],tI.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],tI.prototype,"data",void 0);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tI.prototype,"onPopupOpened_",null);_.e([_.m({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],tI);
_.w(tI,"ytd-brandconnect-popup-renderer",function(){if(zYr!==void 0)return zYr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return zYr=D},{mode:1});var ZN$;var rQ=function(){return _.c.apply(this,arguments)||this};
_.J(rQ,_.c);_.V=rQ.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){for(var D=0;D<this.getOptionRenderers().length;D++)this.notifyPath("data.options."+D+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+D+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.V.updateSubmitButton=function(D){this.set("data.submitButton.buttonRenderer.isDisabled",!D)};
_.V.computeAlt=function(D){return _.$V(D)};
_.V.onDismissTap=function(){_.zU(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.getOptionRenderers=function(D){return(D=D||this.data)&&D.options?D.options.reduce(function(v,h){h.checkboxSurveyOptionRenderer&&v.push(h.checkboxSurveyOptionRenderer);return v},[]):[]};
_.V.onOptionChange=function(D){var v=this,h=!1;if(D.detail.checked)for(var a=this.getOptionRenderers().find(function(f){return f.value===D.detail.value}),Q=this.getOptionRenderers(),G=0;G<Q.length;G++){var x=Q[G];
this.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked");x.checked&&((a==null?0:a.isExclusiveOption)?!x.isExclusiveOption:x.isExclusiveOption)?this.set("data.options."+G+".checkboxSurveyOptionRenderer.checked",!1):x.checked&&(h=!0)}else h=this.getOptionRenderers().some(function(f,C){v.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked");return f.checked});
this.updateSubmitButton(h)};
_.V.onSubmitTap=function(){var D=this.getOptionRenderers().filter(function(G){return G.checked});
if(D.length!==0){var v=D.map(function(G){return G.responseEndpoint});
D=[];for(var h=1;h<v.length;h++){var a=void 0,Q=(a=_.k(v[h],_.bp))==null?void 0:a.feedbackToken;Q&&D.push(Q)}v=[v[0]];D.length&&v.push({extra_feedback_tokens:D});_.L1(this.hostElement,v);_.zU(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);D=this.data&&this.data.submitActions||[];if(_.g("kevlar_command_handler_migration_killswitch"))_.ZD(this.hostElement,D,this.hostElement);else for(D=_.P(D),v=D.next();!v.done;v=D.next())this.ytComponentBehavior.resolveCommand(v.value)}};
rQ.prototype.onOptionChange=rQ.prototype.onOptionChange;rQ.prototype.dataChanged=rQ.prototype.dataChanged;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],rQ.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],rQ.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.e([_.l(mkX),_.n("design:type",Object)],rQ.prototype,"ytdHatsSurveyBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rQ.prototype,"data",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rQ.prototype,"dataChanged",null);
_.e([_.lc("ytd-checkbox-survey-option-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],rQ.prototype,"onOptionChange",null);_.e([_.m({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],rQ);
_.w(rQ,"ytd-checkbox-survey-renderer",function(){if(ZN$!==void 0)return ZN$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ZN$=D},{mode:1});var Exr;var IdC;var ui=function(){return _.c.apply(this,arguments)||this};
_.J(ui,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.e([_.l(s_C),_.n("design:type",Object)],ui.prototype,"ytdDismissalReasonBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ui.prototype,"data",void 0);_.e([_.m({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],ui);
_.w(ui,"ytd-dismissal-reason-text-renderer",function(){if(IdC!==void 0)return IdC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return IdC=D},{mode:1});var gx3;var Dm=function(){return _.c.apply(this,arguments)||this};
_.J(Dm,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.e([_.l(s_C),_.n("design:type",Object)],Dm.prototype,"ytdDismissalReasonBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Dm.prototype,"data",void 0);_.e([_.m({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Dm);
_.w(Dm,"ytd-dismissal-reason-video-renderer",function(){if(gx3!==void 0)return gx3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return gx3=D},{mode:1});var vh=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(vh,_.c);_.V=vh.prototype;_.V.created=function(){this.selectedFeedbackTokens=new Tx};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.V.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.V.onDismissalReasonSelected=function(D,v){_.F1(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(v);this.hasReasonsSelected=!0};
_.V.onDismissalReasonDeselected=function(D,v){_.F1(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(v);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.V.onCancelTap=function(){_.zU(this.hostElement,"yt-close-popup-action")};
_.V.onSubmitTap=function(){var D=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(D={feedback_tokens:D},_.xd().resolve(_.fx).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}));_.zU(this.hostElement,"yt-close-popup-action")};
vh.prototype.onDismissalReasonDeselected=vh.prototype.onDismissalReasonDeselected;vh.prototype.onDismissalReasonSelected=vh.prototype.onDismissalReasonSelected;vh.prototype.dataChanged=vh.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vh.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],vh.prototype,"hasReasonsSelected",void 0);_.e([_.Y(),_.n("design:type",Tx)],vh.prototype,"selectedFeedbackTokens",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],vh.prototype,"darkerDarkTheme",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vh.prototype,"dataChanged",null);
_.e([_.lc("yt-dismissal-reason-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,String]),_.n("design:returntype")],vh.prototype,"onDismissalReasonSelected",null);_.e([_.lc("yt-dismissal-reason-deselected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,String]),_.n("design:returntype")],vh.prototype,"onDismissalReasonDeselected",null);_.e([_.m({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],vh);
_.w(vh,"ytd-dismissal-follow-up-renderer",function(){if(Exr!==void 0)return Exr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Exr=D},{mode:1});var kZK;var ht=function(){return _.c.apply(this,arguments)||this};
_.J(ht,_.c);_.V=ht.prototype;_.V.onCheckedChange=function(){this.multiselect||_.F1(this.hostElement,"yt-feedback-single-select-changed");_.ZW(this.hostElement).querySelector("#freeform").focus();_.F1(this.hostElement,"yt-refit")};
_.V.showTextBox=function(D,v){return D&&v};
_.V.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))};
_.V.updateDataCheckedFromBinding=function(D){this.set("data.checked",D.detail.value)};
_.V.updateDataResultTextFromBinding=function(D){this.set("data.resultText",D.detail.value)};
ht.prototype.dataChanged=ht.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ht.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],ht.prototype,"multiselect",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ht.prototype,"dataChanged",null);
_.e([_.m({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],ht);
_.w(ht,"ytd-feedback-option-renderer",function(){if(kZK!==void 0)return kZK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kZK=D},{mode:1});var STr;var aK=function(){return _.c.apply(this,arguments)||this};
_.J(aK,_.c);aK.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
aK.prototype.onSingleSelectCheckedChanged=function(D){D=_.xU(D);for(var v=0;v<this.data.options.length;v++)if(D.data!==_.k(this.data.options[v],DmU)){var h="data.options."+v+".feedbackOptionRenderer.checked";this.notifyPath(h);this.set(h,!1)}};
aK.prototype.onSingleSelectCheckedChanged=aK.prototype.onSingleSelectCheckedChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],aK.prototype,"data",void 0);
_.e([_.lc("yt-feedback-single-select-changed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],aK.prototype,"onSingleSelectCheckedChanged",null);_.e([_.m({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],aK);
_.w(aK,"ytd-feedback-question-renderer",function(){if(STr!==void 0)return STr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return STr=D},{mode:1});var J0U;var $6=function(){return _.c.apply(this,arguments)||this};
_.J($6,_.c);$6.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
$6.prototype.getSelectedFeedbackResults=function(){for(var D={},v=0;v<this.data.questions.length;v++)for(var h=_.k(this.data.questions[v],ucU),a=0;a<h.options.length;a++){var Q=_.k(h.options[a],DmU);Q&&Q.checked&&(D[Q.optionKey]=Q.resultText)}return D};
$6.prototype.onKeyUp=function(){var D=this;_.I3(_.HK,function(){_.F1(D.hostElement,"yt-refit")});
_.HK.start()};
$6.prototype.submitSurvey=function(){var D=this.getSelectedFeedbackResults();Object.keys(D).length>0&&this.data.submitFeedbackEndpoint&&(D={survey_results:D,is_feedback_token_unencrypted:!0},_.xd().resolve(_.fx).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$6.prototype,"data",void 0);_.e([_.m({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],$6);
_.w($6,"ytd-feedback-survey-renderer",function(){if(J0U!==void 0)return J0U;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return J0U=D},{mode:1});var pHr;var ldd;var Q9=function(){return _.c.apply(this,arguments)||this};
_.J(Q9,_.c);Q9.prototype.computeAlt=function(D){return _.$V(D)};
Q9.prototype.submitResponse=function(){var D,v;(D=this.data)!=null&&D.feedbackToken&&((v=this.data)==null?void 0:v.nextStageIndex)!==void 0&&(_.U9(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.U9(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Q9.prototype.onClick=function(){this.submitResponse()};
Q9.prototype.onClick=Q9.prototype.onClick;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Q9.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Q9.prototype,"vertical",void 0);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q9.prototype,"onClick",null);
_.e([_.m({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Q9);
_.w(Q9,"ytd-single-select-answer-option-renderer",function(){if(ldd!==void 0)return ldd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return ldd=D},{mode:1});var NN2;var Gl=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return D};
_.J(Gl,_.c);Gl.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Gl.prototype.dataChanged=function(){var D,v;this.vertical=((v=(D=this.data)==null?void 0:D.answerOrientation)!=null?v:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Gl.prototype.submitFeedback=function(D){var v;((v=this.data)==null?0:v.responseEndpoint)&&D&&_.L1(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[D]}])};
Gl.prototype.dataChanged=Gl.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Gl.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],Gl.prototype,"eventForwardingBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Gl.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gl.prototype,"vertical",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Gl.prototype,"darkerDarkTheme",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gl.prototype,"dataChanged",null);_.e([_.m({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Gl);
_.w(Gl,"ytd-single-select-question-renderer",function(){if(NN2!==void 0)return NN2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return NN2=D},{mode:1});var V9=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return D};
_.J(V9,_.c);_.V=V9.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.jumpToStage(0)};
_.V.jumpToStage=function(D){var v,h;if((v=this.data)==null?0:(h=v.stages)==null?0:h[D])this.currentStage=this.data.stages[D],this.refitAfterRender()};
_.V.computeAlt=function(D){return _.$V(D)};
_.V.computeSimpleMessage=function(D){var v;return(v=_.k(D,aZS))==null?void 0:v.messageText};
_.V.computeHideDismiss=function(D){var v;return(v=_.k(D,Ya$))==null?void 0:v.hideParentDismissButton};
_.V.onDismissTap=function(){_.zU(this.hostElement,"yt-close-popup-action");_.k(this.currentStage,aZS)||this.data.dismissalEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.refitAfterRender=function(){var D=this;_.$R(this,function(){_.F1(D.hostElement,"yt-refit")})};
V9.prototype.dataChanged=V9.prototype.dataChanged;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],V9.prototype,"eventForwardingBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l(mkX),_.n("design:type",Object)],V9.prototype,"ytdHatsSurveyBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],V9.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],V9.prototype,"currentStage",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V9.prototype,"dataChanged",null);_.e([_.m({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],V9);
_.w(V9,"ytd-multi-stage-survey-renderer",function(){if(pHr!==void 0)return pHr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return pHr=D},{mode:1});var YT$;var Ph=function(){return _.c.apply(this,arguments)||this};
_.J(Ph,_.c);Ph.prototype.computeAlt=function(D){return _.$V(D)};
Ph.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.xd().resolve(_.fx).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.zU(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.QNU(!1)))};
Ph.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Ph.prototype.onTap=Ph.prototype.onTap;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],Ph.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ph.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ph.prototype,"vertical",void 0);
_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ph.prototype,"onTap",null);_.e([_.m({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Ph);
_.w(Ph,"ytd-single-option-survey-option-renderer",function(){if(YT$!==void 0)return YT$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return YT$=D},{mode:1});var BNd;var x6=function(){return _.c.apply(this,arguments)||this};
_.J(x6,_.c);_.V=x6.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){var D,v;this.vertical=(((D=this.data)==null?void 0:(v=D.surveyOrientation)==null?void 0:v.type)||"HORIZONTAL")==="VERTICAL"};
_.V.computeAlt=function(D){return _.$V(D)};
_.V.onDismissTap=function(){_.zU(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.xd().resolve(_.fx).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.QNU(!1))};
x6.prototype.dataChanged=x6.prototype.dataChanged;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],x6.prototype,"eventForwardingBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(mkX),_.n("design:type",Object)],x6.prototype,"ytdHatsSurveyBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],x6.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],x6.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],x6.prototype,"vertical",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],x6.prototype,"dataChanged",null);_.e([_.m({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],x6);
_.w(x6,"ytd-single-option-survey-renderer",function(){if(BNd!==void 0)return BNd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return BNd=D},{mode:1});var c0d;var MG=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(MG,_.c);MG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MG.prototype.onDismissTap=function(){_.zU(this.hostElement,"yt-close-popup-action")};
MG.prototype.onNavigate=function(){_.zU(this.hostElement,"yt-close-popup-action")};
MG.prototype.onNavigate=MG.prototype.onNavigate;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],MG.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],MG.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],MG.prototype,"darkerDarkTheme",void 0);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MG.prototype,"onNavigate",null);_.e([_.m({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],MG);
_.w(MG,"ytd-survey-follow-up-renderer",function(){if(c0d!==void 0)return c0d;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return c0d=D},{mode:1});var XH2;var A0K;var qTm;var f$=function(){var D=_.c.apply(this,arguments)||this;D.polymer2="Element"in Polymer;return D};
_.J(f$,_.c);_.V=f$.prototype;_.V.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.V.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.V.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.V.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("minutes-changed",this.minutes))};
_.V.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("seconds-changed",this.seconds))};
_.V.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.V.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
f$.prototype.secondsChangedForBinding=f$.prototype.secondsChangedForBinding;f$.prototype.minutesChangedForBinding=f$.prototype.minutesChangedForBinding;f$.prototype.secondsChanged=f$.prototype.secondsChanged;_.e([_.Y(),_.n("design:type",String)],f$.prototype,"minutes",void 0);_.e([_.Y(),_.n("design:type",String)],f$.prototype,"seconds",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],f$.prototype,"polymer2",void 0);
_.e([_.Br("#seconds"),_.n("design:type",Object)],f$.prototype,"secondsEl",void 0);_.e([_.Ni("seconds"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f$.prototype,"secondsChanged",null);_.e([_.Ni("minutes"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f$.prototype,"minutesChangedForBinding",null);
_.e([_.Ni("seconds"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f$.prototype,"secondsChangedForBinding",null);_.e([_.Ry({is:"yt-timestamp-input",disableElementRegistration:!0})],f$);
_.w(f$,"yt-timestamp-input",function(){if(qTm===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;A0K===void 0&&(A0K=document.createElement("template"));var a=A0K;h.call(v,a.content.cloneNode(!0),D.content.firstChild);qTm=D}D=qTm;return D},{mode:2});var C$=function(){return _.c.apply(this,arguments)||this};
_.J(C$,_.c);_.V=C$.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20399_scroller.dialogElement=this.hostElement.parentNode};
_.V.dataChanged=function(){var D=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.fj().getPlayerPromise().then(function(v){v=v.getCurrentTime();D.minutes=Math.floor(v/60).toString();D.seconds=(Math.floor(v)%60).toString()})};
_.V.onTapSubmit=function(D){D.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(D={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(D.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(D.minutes=this.minutes,D.seconds=this.seconds),_.xd().resolve(_.fx).resolveCommand(this.serviceEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.V.onYtServiceRequestCompleted=function(D,v){v=v.actions;if(Array.isArray(v))for(var h=0,a=v.length;h<a;h++)_.k(v[h],_.Oc)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(v[h]))};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.V.toggleSubmitButton=function(D){this.set("submitButton.isDisabled",!D)};
_.V.handleInput=function(){var D=this.issueType,v=this.affiliation,h=this.minutes,a=this.seconds;h=!this.showTimestamp||!!h&&!!a;this.toggleSubmitButton(!!this.descriptionText&&!!D&&!!v&&h)};
_.V.computeServiceEndpoint=function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)};
_.V.computeSubmitButton=function(D){(D=this.get("submitButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.V.computeShowTimestamp=function(D){return!!D};
_.V.onValueChangedForIssueType=function(D){this.issueType=D.detail.value};
_.V.onValueChangedForAffiliation=function(D){this.affiliation=D.detail.value};
_.V.updateDescriptionTextFromBinding=function(D){this.descriptionText=D.detail.value};
_.V.updateFullNameTextFromBinding=function(D){this.fullNameText=D.detail.value};
_.V.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.V.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
C$.prototype.handleInput=C$.prototype.handleInput;C$.prototype.onYtServiceRequestError=C$.prototype.onYtServiceRequestError;C$.prototype.onYtServiceRequestCompleted=C$.prototype.onYtServiceRequestCompleted;C$.prototype.onYtServiceRequestSent=C$.prototype.onYtServiceRequestSent;C$.prototype.dataChanged=C$.prototype.dataChanged;_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],C$.prototype,"ytOpenPopupBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.e([_.Br("#scroller"),_.n("design:type",Object)],C$.prototype,"JSC$20399_scroller",void 0);_.e([_.Br("#description"),_.n("design:type",HTMLInputElement)],C$.prototype,"description",void 0);_.e([_.Br("#full-name"),_.n("design:type",Object)],C$.prototype,"fullName",void 0);_.e([_.Y(),_.n("design:type",Object)],C$.prototype,"data",void 0);
_.e([_.Y({computed:"computeShowTimestamp(data.timestampLabel)"}),_.n("design:type",Boolean)],C$.prototype,"showTimestamp",void 0);_.e([_.Y({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.n("design:type",Object)],C$.prototype,"serviceEndpoint",void 0);_.e([_.Y({computed:"computeSubmitButton(data)"}),_.n("design:type",Object)],C$.prototype,"submitButton",void 0);_.e([_.Y(),_.n("design:type",String)],C$.prototype,"descriptionText",void 0);
_.e([_.Y(),_.n("design:type",Number)],C$.prototype,"issueType",void 0);_.e([_.Y(),_.n("design:type",Number)],C$.prototype,"affiliation",void 0);_.e([_.Y(),_.n("design:type",String)],C$.prototype,"fullNameText",void 0);_.e([_.Y(),_.n("design:type",String)],C$.prototype,"minutes",void 0);_.e([_.Y(),_.n("design:type",String)],C$.prototype,"seconds",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C$.prototype,"dataChanged",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],C$.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],C$.prototype,"onYtServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],C$.prototype,"onYtServiceRequestError",null);_.e([_.Ni("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C$.prototype,"handleInput",null);_.e([_.m({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],C$);
_.w(C$,"ytd-legal-report-details-form-renderer",function(){if(XH2!==void 0)return XH2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return XH2=D},{mode:1});var bN$;var oK=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return D};
_.J(oK,_.c);oK.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
oK.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var D=this.formRenderer.getForm();D&&this.data.submitEndpoint&&(_.xd().resolve(_.fx).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},D,{element:this.hostElement})}),_.zU(this.hostElement,"yt-close-popup-action"))}};
oK.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.zU(this.hostElement,"yt-close-popup-action"))};
oK.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
oK.prototype.onPopupClosed=oK.prototype.onPopupClosed;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],oK.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);
_.e([_.Br("yt-form-renderer"),_.n("design:type",Object)],oK.prototype,"formRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],oK.prototype,"data",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onPopupClosed",null);_.e([_.m({is:"ytd-form-popup-content",disableElementRegistration:!0})],oK);
_.w(oK,"ytd-form-popup-content",function(){if(bN$!==void 0)return bN$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return bN$=D},{mode:1});var dzr;var Fr=function(){return _.c.apply(this,arguments)||this};
_.J(Fr,_.c);Fr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Fr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fr.prototype.onPopupOpened=function(){_.F1(this.hostElement,"yt-invalidate-popup-tabbables")};
Fr.prototype.onYtServiceRequestCompleted=function(D,v){v.data&&v.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.F1(this.hostElement,"yt-invalidate-popup-tabbables"))};
Fr.prototype.onYtServiceRequestCompleted=Fr.prototype.onYtServiceRequestCompleted;Fr.prototype.onPopupOpened=Fr.prototype.onPopupOpened;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],Fr.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Fr.prototype,"data",void 0);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fr.prototype,"onPopupOpened",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Fr.prototype,"onYtServiceRequestCompleted",null);_.e([_.m({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Fr);
_.w(Fr,"ytd-form-popup-renderer",function(){if(dzr!==void 0)return dzr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return dzr=D},{mode:1});var jjS;var zl=function(){var D=_.c.apply(this,arguments)||this;D.isLoading=!1;return D};
_.J(zl,_.c);_.V=zl.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");L6Z(this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.isLoading=!0};
_.V.onYtServiceRequestCompleted=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.V.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ZD(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.V.closePopupHandler=function(){this.fireOnCloseActions()};
_.V.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var D=this.get("data.headerImage.thumbnails");D&&(D=_.UA(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")")}};
_.V.onYtNavigate=function(D){(D=_.xU(D))&&D.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
zl.prototype.onYtNavigate=zl.prototype.onYtNavigate;zl.prototype.onHeaderImageChanged=zl.prototype.onHeaderImageChanged;zl.prototype.closePopupHandler=zl.prototype.closePopupHandler;zl.prototype.onYtServiceRequestCompleted=zl.prototype.onYtServiceRequestCompleted;zl.prototype.onYtServiceRequestSent=zl.prototype.onYtServiceRequestSent;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],zl.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zl.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],zl.prototype,"isLoading",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLDivElement)],zl.prototype,"header",void 0);_.e([_.Br("#confirm-button"),_.n("design:type",_.rj)],zl.prototype,"confirmButton",void 0);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],zl.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],zl.prototype,"onYtServiceRequestCompleted",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],zl.prototype,"closePopupHandler",null);_.e([_.Ni("data.headerImage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zl.prototype,"onHeaderImageChanged",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],zl.prototype,"onYtNavigate",null);
_.e([_.m({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],zl);
_.w(zl,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(jjS!==void 0)return jjS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return jjS=D},{mode:1});var sjm;var U6=function(){var D=_.c.apply(this,arguments)||this;D.isLoading=!1;return D};
_.J(U6,_.c);_.V=U6.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);L6Z(this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.V.onYtServiceRequestError=function(D){_.Dj(this.hostElement,D.detail.error.message)};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.zU(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.V.onDataChanged=function(){this.isLoading=!1;var D=this.get("data.headerImage.thumbnails");D&&(D=_.UA(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")");D=_.wd();var v=_.yC(),h=this.get("data.trackingParams");h&&v&&D&&_.tP(D,v,_.d4(h))};
_.GT.Object.defineProperties(U6.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
U6.prototype.onDataChanged=U6.prototype.onDataChanged;U6.prototype.onDomChange=U6.prototype.onDomChange;U6.prototype.onYtServiceRequestError=U6.prototype.onYtServiceRequestError;U6.prototype.onYtServiceRequestCompleted=U6.prototype.onYtServiceRequestCompleted;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],U6.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],U6.prototype,"isLoading",void 0);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],U6.prototype,"hasDescription",null);_.e([_.Br("tp-yt-paper-dialog-scrollable"),_.n("design:type",Object)],U6.prototype,"scrollable",void 0);_.e([_.Br("#header"),_.n("design:type",HTMLElement)],U6.prototype,"header",void 0);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],U6.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],U6.prototype,"onYtServiceRequestError",null);
_.e([_.lc("dom-change"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],U6.prototype,"onDomChange",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],U6.prototype,"onDataChanged",null);_.e([_.m({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],U6);
_.w(U6,"ytd-gaming-account-link-setting-renderer",function(){if(sjm!==void 0)return sjm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return sjm=D},{mode:1});var mzd;var HNs;var L$=function(){var D=_.c.apply(this,arguments)||this;D.isHeader=!1;D.getEndpointForm=function(){return QgI(D.data)};
return D};
_.J(L$,_.c);_.V=L$.prototype;_.V.triggerHintActions=function(){var D=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var v=_.U9(D.hostElement,"yt-get-opened-popups-action");!(v&&v.length===1?v[0]:[]).some(function(h){h=h.openPopupAction.popupType;return h==="SURVEY"||h==="MEALBAR"||h==="HINT"})&&D.data.hintActions&&D.guideOpened&&(_.ZD(D.hostElement,D.data.hintActions,D.hostElement),D.data.hintActions=void 0)})};
_.V.getBadgeIconType=function(D){return D&&D.liveBroadcasting?"live":null};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(D){if(this.data.serviceEndpoint){var v;_.g("shorts_controller_retrieve_seedless_sequence_v2")&&((v=_.k(this.data.serviceEndpoint,_.AQ))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):$q$(this.data.serviceEndpoint,this);D.preventDefault()}else this.data.navigationEndpoint&&!_.Gf(_.Pr(D),this.hostElement,["A".toString()])&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.V.computeActive=function(D,v){if(!D)return!1;var h=D.navigationEndpoint;D=D.serviceEndpoint;if(!h&&!D||!v)return!1;if(h){D=(D=_.NP(v))&&["subscriptions","filteredsubscriptions"].includes(D);if(_.k(h,_.YV)&&_.k(v,_.YV)&&!D){var a=_.k(h,_.YV).browseId;v=_.k(v,_.YV).browseId;return a!==void 0&&v!==void 0&&(a===v||a==="VLWL"&&v==="FEwatch_later"||a==="FEwatch_later"&&v==="VLWL")}var Q;h=(Q=_.k(h.commandMetadata,_.Sa))==null?void 0:Q.url;v=(a=_.k(v.commandMetadata,_.Sa))==null?void 0:a.url;return!(!h||
!v||h!==v&&h!==_.gl(v))}return this.isActiveShortsTab(D,v)};
_.V.isActiveShortsTab=function(D,v){v=!!_.k(v,_.AQ)||!!_.k(v,_.Qi);return(!!_.k(D,_.AQ)||!!_.k(D,_.Qi))&&v};
_.V.computeIsPrimary=function(D){return!!D};
_.GT.Object.defineProperties(L$.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&D)return D}}});
L$.prototype.onTap=L$.prototype.onTap;L$.prototype.onUp=L$.prototype.onUp;L$.prototype.onDown=L$.prototype.onDown;L$.prototype.triggerHintActions=L$.prototype.triggerHintActions;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],L$.prototype,"componentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],L$.prototype,"rendererBehavior",void 0);_.e([_.l(_.lt.YtTaskEmitterBehavior),_.n("design:type",Object)],L$.prototype,"taskEmitterBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],L$.prototype,"activeEndpoint",void 0);_.e([_.Y(),_.n("design:type",Object)],L$.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],L$.prototype,"guideOpened",void 0);_.e([_.Y(),_.n("design:type",String)],L$.prototype,"type",void 0);_.e([_.Br("yt-interaction"),_.n("design:type",Object)],L$.prototype,"interaction",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],L$.prototype,"isHeader",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data","activeEndpoint"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"active",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"isPrimary",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.count","data.presentationStyle","data.badges.*"),_.n("design:type",String),_.n("design:paramtypes",[])],L$.prototype,"lineEndStyle",null);
_.e([_.N("lineEndStyle"),_.n("design:type",Object),_.n("design:paramtypes",[])],L$.prototype,"ariaLabel",null);_.e([_.Ni("data.hintActions","guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L$.prototype,"triggerHintActions",null);_.e([_.lc("down"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L$.prototype,"onDown",null);
_.e([_.lc("up"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L$.prototype,"onUp",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],L$.prototype,"onTap",null);_.e([_.m({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],L$);
_.w(L$,"ytd-guide-entry-renderer",function(){if(HNs!==void 0)return HNs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return HNs=D},{mode:1});var Zm=function(){var D=_.c.apply(this,arguments)||this;D.userToggled=!1;return D};
_.J(Zm,_.c);_.V=Zm.prototype;_.V.getItemsPath=function(){return"data.expandableItems"};
_.V.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.V.onExpanderItemTapped=function(D){var v=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.g("kevlar_guide_expandable_items_killswitch")&&_.$R(this,function(){_.hX(v.expandableItems)});
D.preventDefault()};
_.V.onCollapserItemTapped=function(D){var v=this;this._setExpanded(!1);this.userToggled=!0;D.preventDefault();this.expandableItems&&!_.g("kevlar_guide_collapsible_items_killswitch")&&_.$R(this,function(){_.v1(v.hostElement)})};
_.V.observeActiveEndpoint=function(){for(var D=this.activeEndpoint,v=this.data,h=this.expandableItems.children,a=0,Q=h.length;a<Q;a++)h[a].activeEndpoint=D;v&&v.autoExpandCommand&&D&&!this.userToggled&&(h=this.data.autoExpandCommand,v=!(!_.k(h,_.YV)||!_.k(D,_.YV)||_.k(h,_.YV).browseId!==_.k(D,_.YV).browseId),D=this.get("commandMetadata.webCommandMetadata.url",D),h=this.get("commandMetadata.webCommandMetadata.url",h),v=v||!!(D&&h&&D.includes(h)),this._setExpanded(v),v&&this.ytLazyListBehavior.fillRemainingListItems())};
Zm.prototype.observeActiveEndpoint=Zm.prototype.observeActiveEndpoint;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],Zm.prototype,"ytLazyListBehavior",void 0);_.e([_.Br("#expandable-items"),_.n("design:type",HTMLElement)],Zm.prototype,"expandableItems",void 0);
_.e([_.Y(),_.n("design:type",Object)],Zm.prototype,"data",void 0);_.e([_.Y({readOnly:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],Zm.prototype,"expanded",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],Zm.prototype,"initialCount",void 0);_.e([_.Y(),_.n("design:type",Object)],Zm.prototype,"activeEndpoint",void 0);_.e([_.Ni("data","activeEndpoint","canShowMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zm.prototype,"observeActiveEndpoint",null);
_.e([_.m({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Zm);
_.w(Zm,"ytd-guide-collapsible-entry-renderer",function(){if(mzd!==void 0)return mzd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return mzd=D},{mode:_.E_("kevlar_poly_si_batch_j079")?1:2});var y0X;var wHU;var E6=function(){var D=_.c.apply(this,arguments)||this;D.allVideosCount=0;D.renderGuideEntry=!1;return D};
_.J(E6,_.c);E6.prototype.observeRenderEntry=function(){var D;this.renderGuideEntry=!((D=this.data)==null||!D.alwaysShow)||!!this.allVideosCount};
E6.prototype.observeRenderEntry=E6.prototype.observeRenderEntry;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],E6.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],E6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],E6.prototype,"activeEndpoint",void 0);_.e([_.Y({selector:_.pCu}),_.n("design:type",Object)],E6.prototype,"allVideosCount",void 0);
_.e([_.Y(),_.n("design:type",Object)],E6.prototype,"renderGuideEntry",void 0);_.e([_.qi("allVideosCount","data.alwaysShow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],E6.prototype,"observeRenderEntry",null);_.e([_.m({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],E6);
_.w(E6,"ytd-guide-downloads-entry-renderer",function(){if(wHU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);wHU=D}D=wHU;return D},{mode:1});var IK=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return D};
_.J(IK,_.c);_.V=IK.prototype;_.V.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]]"}}}}}};
_.V.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var D=this.sectionItems.children,v=0,h=D.length;v<h;v++)D[v].activeEndpoint=this.activeEndpoint}};
_.V.handleAddToGuideSectionAction=function(D){var v=_.k(D,ZOb);if(v&&this.data&&(D=v.items,v=v.handlerData,D&&v&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(v)>-1)){v=0;for(var h=D.length;v<h;v++)D[v].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,D[v])}};
_.V.handleRemoveFromGuideSectionAction=function(D){var v=_.k(D,E$Z);v&&this.data&&(D=v.guideEntryId,v=v.handlerData,D&&v&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(v)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(D,this.data.sectionItems),this.removeFromCollapsedSection(D,this.data.sectionItems)))};
_.V.removeFromExpandedSection=function(D,v){D=this.getEntryIndexMatchingId(D,v);D!==-1&&this.splice("data.sectionItems",D,1)};
_.V.removeFromCollapsedSection=function(D,v){var h=v.findIndex(function(a){return!!_.k(a,dtb)});
h&&h!==-1&&v[h]&&_.k(v[h],dtb)&&(v=_.k(v[h],dtb).expandableItems)&&(D=this.getEntryIndexMatchingId(D,v),D!==-1&&this.splice("data.sectionItems."+h+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.V.getEntryIndexMatchingId=function(D,v){var h=this;return v.findIndex(function(a){return h.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",a)===D})};
IK.prototype.activeEndpointChanged=IK.prototype.activeEndpointChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],IK.prototype,"actionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#section-items"),_.n("design:type",HTMLDivElement)],IK.prototype,"sectionItems",void 0);
_.e([_.Br("#header-entry"),_.n("design:type",Object)],IK.prototype,"headerEntry",void 0);_.e([_.Y(),_.n("design:type",Object)],IK.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],IK.prototype,"activeEndpoint",void 0);_.e([_.Ni("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IK.prototype,"activeEndpointChanged",null);_.e([_.m({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],IK);
_.w(IK,"ytd-guide-collapsible-section-entry-renderer",function(){if(y0X===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);y0X=D}D=y0X;return D},{mode:1});var eYI;var nxI;var gU=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return D};
_.J(gU,_.c);_.V=gU.prototype;
_.V.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}}}}};
_.V.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var D=_.U9(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);D&&D.length===1&&D[0]&&_.U9(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.V.handleResetChannelUnreadCountCommand=function(D){var v;(D=(v=_.k(D,g$m))==null?void 0:v.channelId)&&this.data&&this.data.items&&(v=this.getPathToEntryMatchingId(D))&&(this.set(v+".guideEntryRenderer.count",0),this.set(v+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.handleResetSubscriptionsUnreadDotCommand=function(D){var v,h=(v=_.k(D,kPr))==null?void 0:v.targetId,a;h&&(a=this.data)!=null&&a.items&&(D=this.data.items.findIndex(function(Q){var G;return((G=Q.guideEntryRenderer)==null?void 0:G.targetId)===h}),D<0||this.set("data.items."+D+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.getPathToEntryMatchingId=function(D){if(this.data&&this.data.items){var v=this.getEntryIndexMatchingId(D,this.data.items);if(v>-1)return"data.items."+v;for(var h=0;h<this.data.items.length;h++)if(v=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[h]))if(v=this.getEntryIndexMatchingId(D,v),v>-1)return"data.items."+h+".guideCollapsibleEntryRenderer.expandableItems."+v}};
_.V.handleAddToGuideSectionAction=function(D){var v=this;if(_.k(D,ZOb)){var h=_.k(D,ZOb).items;D=_.k(D,ZOb).handlerData;var a,Q;if(h&&D&&((a=this.data)==null?void 0:(Q=a.handlerDatas)==null?void 0:Q.indexOf(D))>-1){h=h.filter(function(x){return(x=v.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",x))&&!v.isGuideItemPresent(x)});
var G;if(D==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((G=this.data)==null?0:G.items)&&(a=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),a>-1)){this.splice.apply(this,["data.items",a+1,0].concat(_.j_(h)));return}this.unshift.apply(this,["data.items"].concat(_.j_(h)))}}};
_.V.isGuideItemPresent=function(D){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(D,this.data.items)!==-1)return!0;var v=this.data.items.find(function(h){return!!h.guideCollapsibleEntryRenderer});
if((v==null?0:v.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(D,v.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.V.getEntryIndexMatchingId=function(D,v){var h=this;return v.findIndex(function(a){return h.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",a)===D})};
_.V.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(D,v){var h=this;return v.findIndex(function(a){return h.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",a)===D})};
_.V.handleRemoveFromGuideSectionAction=function(D){if(_.k(D,E$Z)){var v=_.k(D,E$Z).guideEntryId;D=_.k(D,E$Z).handlerData;var h,a;v&&D&&((h=this.data)==null?void 0:(a=h.handlerDatas)==null?void 0:a.indexOf(D))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(v,this.data.items),this.removeFromCollapsedSection(v,this.data.items))}};
_.V.removeFromExpandedSection=function(D,v){D=this.getEntryIndexMatchingId(D,v);D!==-1&&this.splice("data.items",D,1)};
_.V.removeFromCollapsedSection=function(D,v){var h=v.findIndex(function(a){return!!a.guideCollapsibleEntryRenderer});
h!==-1&&(v=v[h].guideCollapsibleEntryRenderer.expandableItems)&&(D=this.getEntryIndexMatchingId(D,v),D!==-1&&this.splice("data.items."+h+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.V.activeEndpointChanged=function(){for(var D=_.ZW(this.hostElement).querySelector("#items").children,v=0,h=D.length;v<h;v++)D[v].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.guideOpenedChanged=function(){for(var D=_.ZW(this.hostElement).querySelector("#items").children,v=0,h=D.length;v<h;v++)D[v].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
gU.prototype.guideOpenedChanged=gU.prototype.guideOpenedChanged;gU.prototype.activeEndpointChanged=gU.prototype.activeEndpointChanged;gU.prototype.persistentGuideChanged=gU.prototype.persistentGuideChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],gU.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],gU.prototype,"ytLazyListBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],gU.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],gU.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gU.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",String)],gU.prototype,"type",void 0);_.e([_.Y({value:20}),_.n("design:type",Number)],gU.prototype,"initialCount",void 0);_.e([_.Y({value:10}),_.n("design:type",Number)],gU.prototype,"targetFramerate",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],gU.prototype,"autoFill",void 0);_.e([_.Y({value:50}),_.n("design:type",Number)],gU.prototype,"renderDelay",void 0);
_.e([_.Ni("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gU.prototype,"persistentGuideChanged",null);_.e([_.qi("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gU.prototype,"activeEndpointChanged",null);_.e([_.qi("guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gU.prototype,"guideOpenedChanged",null);
_.e([_.m({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],gU);
_.w(gU,"ytd-guide-section-renderer",function(){if(nxI!==void 0)return nxI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nxI=D},{mode:_.E_("kevlar_poly_si_batch_j073")?1:2});var ON$;var k6=function(){return _.c.apply(this,arguments)||this};
_.J(k6,_.c);_.GT.Object.defineProperties(k6.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],k6.prototype,"rendererBehaviors",void 0);_.e([_.Y(),_.n("design:type",Object)],k6.prototype,"data",void 0);_.e([_.Y(),_.N("data.signInButton.buttonRenderer.style"),_.n("design:type",Object),_.n("design:paramtypes",[])],k6.prototype,"alignByText",null);_.e([_.m({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],k6);
_.w(k6,"ytd-guide-signin-promo-renderer",function(){if(ON$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);ON$=D}D=ON$;return D},{mode:1});var Sp=function(){var D=_.c.apply(this,arguments)||this;D.showFooter=!1;return D};
_.J(Sp,_.c);Sp.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}}}}};
Sp.prototype.attached=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1){v=_.xd().resolve(_.PV(_.zJ));if(!v)return h.jumpTo(0);v.setGuideData(D.hostElement);return h.yield(0,3)}D.ytLazyListBehavior.initialCount=2;return h.return()})};
Sp.prototype.onMouseExit=function(){_.g("web_guide_hover_expansion")&&_.U9(this.hostElement,"yt-guide-mouseleaved",[])};
Sp.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Sp.prototype.dataChanged=Sp.prototype.dataChanged;Sp.prototype.onMouseExit=Sp.prototype.onMouseExit;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Sp.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Xg.YtLazyListBehavior),_.n("design:type",Object)],Sp.prototype,"ytLazyListBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Sp.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Sp.prototype,"showFooter",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],Sp.prototype,"autoFill",void 0);_.e([_.lc("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sp.prototype,"onMouseExit",null);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sp.prototype,"dataChanged",null);_.e([_.m({is:"ytd-guide-renderer",disableElementRegistration:!0})],Sp);
_.w(Sp,"ytd-guide-renderer",function(){if(eYI!==void 0)return eYI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return eYI=D},{mode:_.E_("kevlar_poly_si_batch_j073")?1:2});var K0r;var Jt=function(){var D=_.c.apply(this,arguments)||this;D.systemIcons=_.g("kevlar_system_icons");D.frostedGlass=_.g("web_frosted_glass");D.getEndpointForm=function(){return QgI(D.data)};
return D};
_.J(Jt,_.c);_.V=Jt.prototype;_.V.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.V.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.$V(this.data.formattedTitle))};
_.V.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(D){if(this.data.serviceEndpoint){var v;_.g("shorts_controller_retrieve_seedless_sequence_v2")&&((v=_.k(this.data.serviceEndpoint,_.AQ))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):$q$(this.data.serviceEndpoint,this);D.preventDefault()}else{var h;((h=this.data)==null?0:h.navigationEndpoint)&&!_.Gf(_.Pr(D),this.hostElement,["A".toString()])&&_.F1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.V.computeActive=function(D,v){if(!D)return!1;var h=D.navigationEndpoint;D=D.serviceEndpoint;if(!h&&!D||!v)return!1;if(h){D=_.k(h,_.YV);var a=_.k(v,_.YV);if(D&&a)return D.browseId===a.browseId&&D.params===a.params;var Q;h=(Q=_.k(h.commandMetadata,_.Sa))==null?void 0:Q.url;var G;v=(G=_.k(v.commandMetadata,_.Sa))==null?void 0:G.url;return!(!h||!v||h!==v&&h!==_.gl(v))}return this.isActiveShortsTab(D,v)};
_.V.isActiveShortsTab=function(D,v){v=!!_.k(v,_.AQ)||!!_.k(v,_.Qi);return(!!_.k(D,_.AQ)||!!_.k(D,_.Qi))&&v};
_.V.computeTitle=function(D,v){return v?"":_.$V(D)};
_.GT.Object.defineProperties(Jt.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Jt.prototype.onTap=Jt.prototype.onTap;Jt.prototype.onUp=Jt.prototype.onUp;Jt.prototype.onDown=Jt.prototype.onDown;Jt.prototype.onActiveStateChange=Jt.prototype.onActiveStateChange;Jt.prototype.dataChanged=Jt.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Jt.prototype,"ytComponentBehavior",void 0);
_.e([_.l(_.tx),_.n("design:type",Object)],Jt.prototype,"ironButtonState",void 0);_.e([_.Y(),_.n("design:type",Object)],Jt.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Jt.prototype,"activeEndpoint",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Jt.prototype,"noLabels",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.n("design:type",Boolean)],Jt.prototype,"isActive",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Jt.prototype,"systemIcons",void 0);_.e([_.Br("yt-interaction"),_.n("design:type",Object)],Jt.prototype,"interaction",void 0);_.e([_.N("isActive"),_.n("design:type",Object),_.n("design:paramtypes",[])],Jt.prototype,"ariaSelected",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Jt.prototype,"frostedGlass",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jt.prototype,"dataChanged",null);_.e([_.Ni("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jt.prototype,"onActiveStateChange",null);_.e([_.lc("down"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jt.prototype,"onDown",null);
_.e([_.lc("up"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jt.prototype,"onUp",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Jt.prototype,"onTap",null);_.e([_.m({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Jt);
_.w(Jt,"ytd-mini-guide-entry-renderer",function(){if(K0r!==void 0)return K0r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" 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');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return K0r=D},{mode:_.E_("kevlar_poly_si_batch_j063")?1:2});var TNU;var p$=function(){var D=_.c.apply(this,arguments)||this;D.allVideosCount=0;D.noLabels=_.g("kevlar_mini_guide_no_labels")||_.g("kevlar_modern_mini_guide");D.frostedGlass=_.g("web_frosted_glass");return D};
_.J(p$,_.c);_.V=p$.prototype;_.V.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.V.onMouseEnter=function(){_.g("web_guide_hover_expansion")&&_.U9(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.V.visibleChanged=function(){if(this.visible&&!this.data){var D=_.xd().resolve(_.PV(_.zJ));D&&D.setGuideData(this.hostElement)}};
_.V.dataChanged=function(){var D=_.g("kevlar_modern_mini_guide"),v;var h=(v=this.data)==null?void 0:v.items;v=this.allVideosCount;var a=[];if(h){h=_.P(h);for(var Q=h.next();!Q.done;Q=h.next()){Q=Q.value;var G=void 0;if((G=Q.guideSectionRenderer)==null?0:G.items)for(G=void 0,Q=_.P((G=Q.guideSectionRenderer)==null?void 0:G.items),G=Q.next();!G.done;G=Q.next()){var x=G.value;if(x.guideEntryRenderer)G=x.guideEntryRenderer,G.isPrimary&&a.push({guideEntryRenderer:G});else if(x.guideCollapsibleSectionEntryRenderer){G=
_.k(x.guideCollapsibleSectionEntryRenderer.headerEntry,sS2);x=x.guideCollapsibleSectionEntryRenderer.sectionItems;var f=void 0;if((f=G)==null?0:f.isPrimary){b:{if(x&&x.length){var C=x,U=G.formattedTitle;f={};U&&(f.header={panelHeaderViewModel:{title:_.nb(U)}});U=[];C=_.P(C);for(var L=C.next();!L.done;L=C.next()){L=_.k(L.value,sS2);var Z=void 0,E=void 0,I=((Z=L)==null?0:Z.formattedTitle)?_.nb((E=L)==null?void 0:E.formattedTitle):void 0;Z=void 0;E=(Z=L)==null?void 0:Z.isPrimary;if(L&&I&&!E){I={title:I};
L.navigationEndpoint&&(I.rendererContext={commandContext:{onTap:{innertubeCommand:L.navigationEndpoint}}});Z=void 0;if((Z=L.icon)==null?0:Z.iconType)I.leadingImage={sources:[{clientResource:{imageName:L.icon.iconType||""}}]};U.push({listItemViewModel:I})}}U.length!==0?f.content={listViewModel:{listItems:U}}:f=void 0;if(f){f={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:f}}}};break b}}f=void 0}D&&f&&(G.mouseEnterEndpoint=f,G.mouseLeaveEndpoint={hideSheetCommand:{}});a.push({guideEntryRenderer:G})}if(x)for(G=
_.P(x),x=G.next();!x.done;x=G.next())x=x.value,U=_.k(x,jSs),f=void 0,U=U&&(U.alwaysShow||v)?_.k((f=U)==null?void 0:f.entryRenderer,sS2):_.k(x,sS2),x=void 0,((x=U)==null?0:x.isPrimary)&&a.push({guideEntryRenderer:U})}}}}this.miniGuideItems=a};
_.V.activeEndpointChanged=function(){for(var D=this.items.children,v=0;v<D.length;v++)D[v].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.registerWithViewTransitionManager=function(){var D=this;_.c1(_.HK,function(){var v=_.xd().resolve(_.PV(_.KN));if(v&&v.isAnyTransitionEnabled){var h={};v.viewTransitionCoordinator.registerElement(D.hostElement,(h.slide="mini-guide-page-transition",h))}})};
p$.prototype.activeEndpointChanged=p$.prototype.activeEndpointChanged;p$.prototype.dataChanged=p$.prototype.dataChanged;p$.prototype.visibleChanged=p$.prototype.visibleChanged;p$.prototype.onMouseEnter=p$.prototype.onMouseEnter;_.e([_.l(_.Mm),_.n("design:type",Object)],p$.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],p$.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],p$.prototype,"ytComponentBehavior",void 0);_.e([_.Br("#items"),_.n("design:type",Object)],p$.prototype,"items",void 0);_.e([_.Y(),_.n("design:type",Object)],p$.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],p$.prototype,"visible",void 0);_.e([_.Y(),_.n("design:type",Object)],p$.prototype,"miniGuideItems",void 0);_.e([_.Y({selector:_.pCu}),_.n("design:type",Object)],p$.prototype,"allVideosCount",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],p$.prototype,"noLabels",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],p$.prototype,"frostedGlass",void 0);
_.e([_.lc("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p$.prototype,"onMouseEnter",null);_.e([_.qi("visible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p$.prototype,"visibleChanged",null);_.e([_.qi("data","allVideosCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p$.prototype,"dataChanged",null);
_.e([_.qi("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p$.prototype,"activeEndpointChanged",null);_.e([_.m({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],p$);
_.w(p$,"ytd-mini-guide-renderer",function(){if(TNU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);TNU=D}D=TNU;return D},{mode:1});var RY2;var iNS=/^[\x00-\x7F]+$/,lf=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(lf,_.c);_.GT.Object.defineProperties(lf.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var D,v=_.$V((D=this.data)==null?void 0:D.handle);if(v)return _.aX("@"+v)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.$V(this.displayHandle),v,h=_.$V((v=this.data)==null?void 0:v.handleUrl);if(D&&h)return _.aX(h+D)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var D=_.$V(this.displayHandle);if(D&&!iNS.test(D)){var v;return(v=this.data)==null?void 0:v.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.$V(this.displayHandleUrl),v,h=_.$V((v=this.data)==null?void 0:v.urlInfoText);if(D&&h)return _.aX(h+" "+D)}}});
_.e([_.Y(),_.n("design:type",Object)],lf.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],lf.prototype,"displayHandle",null);_.e([_.N("displayHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],lf.prototype,"displayHandleUrl",null);_.e([_.N("displayHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],lf.prototype,"warningText",null);
_.e([_.N("displayHandleUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],lf.prototype,"urlInfoTextWithUrl",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],lf.prototype,"darkerDarkTheme",void 0);_.e([_.m({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],lf);
_.w(lf,"ytd-handles-claiming-confirm-dialog-content",function(){if(RY2!==void 0)return RY2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return RY2=D},{mode:1});var W0b;var NG=function(){var D=_.c.apply(this,arguments)||this;D.okButtonOverride={style:"mono",type:"outline",size:"M"};return D};
_.J(NG,_.c);NG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
NG.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],NG.prototype,"okButtonOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],NG.prototype,"data",void 0);_.e([_.m({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],NG);
_.w(NG,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(W0b!==void 0)return W0b;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return W0b=D},{mode:1});var tsZ;var r0C=/^[\x00-\x7F]+$/,Y6=function(){var D=_.c.apply(this,arguments)||this;D.isLoading=!1;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(Y6,_.c);Y6.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var D;this.selectedHandle=(D=this.handleInput)==null?void 0:D.value;this.onSelectedHandleChanged(this.selectedHandle);_.U9(this.hostElement,"yt-refit-popups-action")}};
_.GT.Object.defineProperties(Y6.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.aX("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aX(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!r0C.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Y6.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Y6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],Y6.prototype,"selectedHandle",void 0);_.e([_.Y(),_.n("design:type",Object)],Y6.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Function)],Y6.prototype,"onSelectedHandleChanged",void 0);_.e([_.Br("#channel-handle-input"),_.n("design:type",Object)],Y6.prototype,"handleInput",void 0);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Y6.prototype,"handleUrlPrefix",null);_.e([_.N("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Y6.prototype,"displayHandle",null);_.e([_.N("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Y6.prototype,"displayHandleUrl",null);_.e([_.N("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Y6.prototype,"warningText",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Y6.prototype,"darkerDarkTheme",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.e([_.m({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Y6);
_.w(Y6,"ytd-handles-claiming-edit-dialog-content",function(){if(tsZ!==void 0)return tsZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return tsZ=D},{mode:1});var u$r;var Bh=function(){var D=_.c.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.selectButtonDisabled=!1;D.isLoading=!1;D.hasSelectedHandleEventListener=!1;D.selectedHandleChanged=function(v){D.selectedHandle=v};
return D};
_.J(Bh,_.c);_.V=Bh.prototype;_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.V.onDataChanged=function(){var D,v;this.selectedHandle=(v=_.k((D=this.data)==null?void 0:D.inputField,o$$))==null?void 0:v.handle};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.selectedHandle="";_.zU(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var v;((v=this.data)==null?void 0:v.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(h,a){if(a.newHandleUpdateStatus!==void 0&&a.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&a.newHandleUpdateStatus.errorMessage)_.Dj(D.hostElement,_.$V(a.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var Q;if((Q=D.data)==null?0:Q.onChannelUpdateSuccess){h=D.data.onChannelUpdateSuccess;var G,x;if(a=(G=_.k(h,_.Oc))==null?void 0:(x=G.popup)==null?void 0:x.handlesClaimingConfirmDialogRenderer)a.handle=_.aX(D.selectedHandle);D.ytComponentBehavior.resolveCommand(h);_.zU(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){var h;D.content&&((h=D.content)==null?0:h.handleInput)&&D.content.handleInput.validate();D.isLoading=!1;_.Dj(D.hostElement,_.p1("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Bh.prototype.onDataChanged=Bh.prototype.onDataChanged;Bh.prototype.onSelectedHandleChanged=Bh.prototype.onSelectedHandleChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Bh.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"actionButtonOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"cancelButtonOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",String)],Bh.prototype,"selectedHandle",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"selectButtonDisabled",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"hasSelectedHandleEventListener",void 0);_.e([_.Y(),_.n("design:type",Object)],Bh.prototype,"handleInput",void 0);
_.e([_.Ni("selectedHandle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bh.prototype,"onSelectedHandleChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bh.prototype,"onDataChanged",null);_.e([_.Br("ytd-handles-claiming-edit-dialog-content"),_.n("design:type",Object)],Bh.prototype,"content",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.m({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Bh);
_.w(Bh,"ytd-handles-claiming-edit-dialog-renderer",function(){if(u$r!==void 0)return u$r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return u$r=D},{mode:1});var D5$;var ch=function(){return _.c.apply(this,arguments)||this};
_.J(ch,_.c);_.GT.Object.defineProperties(ch.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.handle){var v;return _.aX("@"+_.$V((v=this.data)==null?void 0:v.handle))}}}});
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ch.prototype,"formattedHandle",null);_.e([_.Y(),_.n("design:type",Object)],ch.prototype,"data",void 0);_.e([_.m({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ch);
_.w(ch,"ytd-handles-claiming-radio-option-renderer",function(){if(D5$!==void 0)return D5$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return D5$=D},{mode:1});var vQU;var h5K=/^[\x00-\x7F]+$/,Xr=function(){var D=_.c.apply(this,arguments)||this;D.initialRadioIndex="-1";D.isLoading=!1;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.maybeSubmitFeedback=function(){D.feedbackSurveyRenderer.submitSurvey()};
return D};
_.J(Xr,_.c);Xr.prototype.updateSelectedHandleIndexFromBinding=function(D){this.selectedRadioIndex=+D.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(D)};
Xr.prototype.selectedHandleChanged=function(D){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var v;this.selectedHandle=(v=this.handleInput)==null?void 0:v.value;this.onSelectedHandleChanged(D)}};
_.GT.Object.defineProperties(Xr.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return this.ytRendererBehavior.getSimpleString((D=this.data)==null?void 0:D.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.aX("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aX(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!h5K.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.e([_.Y(),_.n("design:type",Object)],Xr.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],Xr.prototype,"initialRadioIndex",void 0);_.e([_.Y(),_.n("design:type",Number)],Xr.prototype,"selectedRadioIndex",void 0);_.e([_.Y(),_.n("design:type",String)],Xr.prototype,"selectedHandle",void 0);_.e([_.Y(),_.n("design:type",Object)],Xr.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Function)],Xr.prototype,"onSelectedHandleChanged",void 0);
_.e([_.Y(),_.n("design:type",Function)],Xr.prototype,"onSelectedRadioIndexChanged",void 0);_.e([_.Br("#channel-handle-input"),_.n("design:type",Object)],Xr.prototype,"handleInput",void 0);_.e([_.Br("ytd-feedback-survey-renderer"),_.n("design:type",Object)],Xr.prototype,"feedbackSurveyRenderer",void 0);_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],Xr.prototype,"radioButtonLength",null);
_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Xr.prototype,"handleUrlPrefix",null);_.e([_.N("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Xr.prototype,"displayHandle",null);_.e([_.N("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Xr.prototype,"displayHandleUrl",null);_.e([_.N("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Xr.prototype,"warningText",null);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Xr.prototype,"darkerDarkTheme",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.e([_.m({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Xr);
_.w(Xr,"ytd-handles-claiming-select-dialog-content",function(){if(vQU!==void 0)return vQU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return vQU=D},{mode:1});var aIs;var At=function(){var D=_.c.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.initialRadioIndex="-1";D.selectButtonDisabled=!1;D.isLoading=!1;D.selectedRadioIndexChanged=function(v){D.selectedRadioIndex=Number(v.detail.value)};
D.selectedHandleChanged=function(v){D.selectedHandle=v.detail.value};
D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(At,_.c);_.V=At.prototype;_.V.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.V.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.U9(this.hostElement,"yt-refit-popups-action")};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.zU(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var v;((v=this.data)==null?void 0:v.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(h,a){if(a.newHandleUpdateStatus!==void 0&&a.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&a.newHandleUpdateStatus.errorMessage)_.Dj(D.hostElement,_.$V(a.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var Q;if((Q=D.data)==null?0:Q.onChannelUpdateSuccess){h=D.data.onChannelUpdateSuccess;a=_.k(h,_.Oc);var G;if(a==null?0:(G=a.popup)==null?0:G.handlesClaimingConfirmDialogRenderer)a.popup.handlesClaimingConfirmDialogRenderer.handle=_.aX(D.selectedHandle);D.ytComponentBehavior.resolveCommand(h);_.zU(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){if(D.selectedRadioIndex===D.radioButtonLength){var h;D.content&&((h=D.content)==null?0:h.handleInput)&&D.content.handleInput.validate()}D.isLoading=!1;_.Dj(D.hostElement,_.p1("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var D,v;this.selectedHandle=(D=this.content)==null?void 0:(v=D.handleInput)==null?void 0:v.value}else this.selectedRadioIndex>=0&&((D=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(D==null?void 0:D.handle):this.selectedHandle=void 0)};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.V.getRadioItem=function(D){if(this.radioButtonLength>D&&D>=0)return _.k(this.data.radioButton[D],B2K)};
_.GT.Object.defineProperties(At.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}}});
At.prototype.onSelectedHandleChanged=At.prototype.onSelectedHandleChanged;At.prototype.onSelectedHandleIndexChanged=At.prototype.onSelectedHandleIndexChanged;At.prototype.onDataChanged=At.prototype.onDataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],At.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],At.prototype,"actionButtonOverride",void 0);_.e([_.Y(),_.n("design:type",Object)],At.prototype,"cancelButtonOverride",void 0);
_.e([_.Y(),_.n("design:type",Object)],At.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],At.prototype,"initialRadioIndex",void 0);_.e([_.Y(),_.n("design:type",Number)],At.prototype,"selectedRadioIndex",void 0);_.e([_.Y(),_.n("design:type",String)],At.prototype,"selectedHandle",void 0);_.e([_.Y(),_.n("design:type",Object)],At.prototype,"selectButtonDisabled",void 0);_.e([_.Y(),_.n("design:type",Object)],At.prototype,"isLoading",void 0);
_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],At.prototype,"radioButtonLength",null);_.e([_.Br("ytd-handles-claiming-select-dialog-content"),_.n("design:type",Object)],At.prototype,"content",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],At.prototype,"onDataChanged",null);
_.e([_.Ni("selectedRadioIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],At.prototype,"onSelectedHandleIndexChanged",null);_.e([_.Ni("selectedHandle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],At.prototype,"onSelectedHandleChanged",null);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],At.prototype,"darkerDarkTheme",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);_.e([_.m({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],At);
_.w(At,"ytd-handles-claiming-select-dialog-renderer",function(){if(aIs!==void 0)return aIs;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return aIs=D},{mode:1});var $5r;var QCI;var qG=function(){return _.c.apply(this,arguments)||this};
_.J(qG,_.c);qG.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],qG.prototype,"data",void 0);_.e([_.m({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],qG);
_.w(qG,"ytd-hotkey-dialog-section-option-renderer",function(){if(QCI!==void 0)return QCI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return QCI=D},{mode:1});var GtI;var bf=function(){return _.c.apply(this,arguments)||this};
_.J(bf,_.c);bf.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],bf.prototype,"data",void 0);_.e([_.m({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],bf);
_.w(bf,"ytd-hotkey-dialog-section-renderer",function(){if(GtI!==void 0)return GtI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return GtI=D},{mode:1});var dU=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(dU,_.c);dU.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dU.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],dU.prototype,"darkerDarkTheme",void 0);_.e([_.m({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],dU);
_.w(dU,"ytd-hotkey-dialog-content",function(){if($5r!==void 0)return $5r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return $5r=D},{mode:1});var Vcb;var jp=function(){return _.c.apply(this,arguments)||this};
_.J(jp,_.c);jp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D=document.querySelector("ytd-hotkey-dialog-content #scrollable");D&&(D.dialogElement=this.hostElement.parentElement)};
jp.prototype.onCloseTap=function(){_.zU(this.hostElement,"yt-close-popup-action")};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jp.prototype,"data",void 0);_.e([_.m({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],jp);
_.w(jp,"ytd-hotkey-dialog-renderer",function(){if(Vcb!==void 0)return Vcb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Vcb=D},{mode:1});var PwS;var s6=function(){return _.c.apply(this,arguments)||this};
_.J(s6,_.c);s6.prototype.onYtServiceRequestError=function(){if(this.blocked){var D;var v=(D=this.data)==null?void 0:D.defaultServiceEndpoint}else{var h;v=(h=this.data)==null?void 0:h.toggledServiceEndpoint}var a;(v=(a=_.k(v,_.osb))==null?void 0:a.onFailureAction)&&this.ytComponentBehavior.resolveCommand(v);this.updateBlockState(!this.blocked)};
s6.prototype.onYtToggleButton=function(D){this.updateBlockState(D.detail.toggled)};
s6.prototype.updateBlockState=function(D){if(D!==this.blocked){var v=this.blockedEntityKey;v&&this.ytdReduxBehavior.dispatch(_.Xe("blockStateEntity",v,{key:v,blocked:D}));this.set("data.isToggled",D)}};
_.GT.Object.defineProperties(s6.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)}}});
s6.prototype.onYtToggleButton=s6.prototype.onYtToggleButton;s6.prototype.onYtServiceRequestError=s6.prototype.onYtServiceRequestError;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],s6.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],s6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],s6.prototype,"blockedEntityKey",void 0);
_.e([_.Y({selectorArgs:["blockedEntityKey"],selector:function(D,v){return _.gR(D.entities,"blockStateEntity",v)}}),
_.n("design:type",Object)],s6.prototype,"blockStateEntity",void 0);_.e([_.N("data","blockStateEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],s6.prototype,"blocked",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],s6.prototype,"onYtServiceRequestError",null);
_.e([_.lc("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],s6.prototype,"onYtToggleButton",null);_.e([_.m({is:"ytd-block-button",disableElementRegistration:!0})],s6);
_.w(s6,"ytd-block-button",function(){if(PwS!==void 0)return PwS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return PwS=D},
{mode:1});var x5r;var McU;var mA=function(){return _.c.apply(this,arguments)||this};
_.J(mA,_.c);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],mA.prototype,"data",void 0);_.e([_.m({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],mA);
_.w(mA,"ytd-kids-blocklist-picker-item-renderer",function(){if(McU!==void 0)return McU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return McU=D},{mode:1});var Hh=function(){return _.c.apply(this,arguments)||this};
_.J(Hh,_.c);Hh.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Hh.prototype,"data",void 0);_.e([_.m({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Hh);
_.w(Hh,"ytd-kids-blocklist-picker-content",function(){if(x5r!==void 0)return x5r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return x5r=
D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var fI3;var y9=function(){var D=_.c.apply(this,arguments)||this;D.hasAnyRequestSucceeded=!1;D.hasAnyRequestFailed=!1;D.numPendingRequests=0;return D};
_.J(y9,_.c);_.V=y9.prototype;_.V.attached=function(){this.hostElement.setAttribute("dialog","")};
_.V.onDoneButtonTap=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.V.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.V.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.V.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.V.onPopupClosed=function(D){var v,h;if(((v=D.detail)==null?void 0:(h=v.popup)==null?void 0:h.is)==="tp-yt-paper-dialog"){var a;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((a=this.data)==null?0:a.successfulToastActionMessage)&&(D=_.MP(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(D));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
y9.prototype.onPopupClosed=y9.prototype.onPopupClosed;y9.prototype.onYtServiceRequestError=y9.prototype.onYtServiceRequestError;y9.prototype.onYtServiceRequestCompleted=y9.prototype.onYtServiceRequestCompleted;y9.prototype.onYtServiceRequestSent=y9.prototype.onYtServiceRequestSent;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],y9.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],y9.prototype,"data",void 0);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],y9.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],y9.prototype,"onYtServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],y9.prototype,"onYtServiceRequestError",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],y9.prototype,"onPopupClosed",null);_.e([_.m({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],y9);
_.w(y9,"ytd-kids-blocklist-picker-renderer",function(){if(fI3!==void 0)return fI3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return fI3=D},{mode:1});var Cw$;var oQC;var wU=function(){return _.c.apply(this,arguments)||this};
_.J(wU,_.c);wU.prototype.setTip=function(D){var v=this;this.data&&(this.tip=hzK(Dks.getInstance(),D,this.data),_.$R(this,function(){_.F1(v.hostElement,"yt-refit")}))};
wU.prototype.clearTip=function(){this.tip=void 0};
wU.prototype.computeHidden=function(D){return!D};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],wU.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.n("design:type",Boolean)],wU.prototype,"hidden",void 0);_.e([_.Y(),_.n("design:type",Object)],wU.prototype,"tip",void 0);_.e([_.m({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],wU);
_.w(wU,"ytd-menu-popup-tip-renderer",function(){if(oQC!==void 0)return oQC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);
return oQC=D},{mode:1});var FoS;var ep=function(){var D=_.c.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.g("kevlar_system_icons");D.useListItemStyles=_.g("web_list_item_style_for_menu_items");return D};
_.J(ep,_.c);_.V=ep.prototype;_.V.onFocus=function(){var D;(D=_.ZW(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.V.onTap=function(){var D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(D&&_.k(D,_.IN))this.componentBehavior.resolveCommand(D),this.updateToggledStateInEntity();else if(D){this.componentBehavior.resolveCommand(D)||_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}});var v;((v=_.k(D,_.kE))==null?void 0:v.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.V.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.V.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.V.updateToggledStateInEntity=function(){var D=this.data.toggleMenuServiceItemEntityKey,v=!this.data.isToggled;D&&this.ytdReduxBehavior.dispatch(_.Xe("toggleMenuServiceItemEntity",D,{key:D,isToggled:v}))};
_.V.computeIcon=function(D,v,h){return(D=D?h:v)&&D.iconType?_.SQ(D.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.isIconActive=function(D){return!_.g("toggle_menu_active_icon_killswitch")&&D};
_.GT.Object.defineProperties(ep.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?0:D.isToggled)?(v=this.data)==null?void 0:v.toggledText:(h=this.data)==null?void 0:h.defaultText}}});
ep.prototype.toggledStateEntityChanged=ep.prototype.toggledStateEntityChanged;ep.prototype.onYtServiceRequestCompleted=ep.prototype.onYtServiceRequestCompleted;ep.prototype.onTap=ep.prototype.onTap;ep.prototype.onFocus=ep.prototype.onFocus;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ep.prototype,"componentBehavior",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],ep.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ep.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ep.prototype,"useIcons",void 0);_.e([_.Y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.n("design:type",String)],ep.prototype,"icon",void 0);
_.e([_.Y({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(D,v){return _.gR(D.entities,"toggleMenuServiceItemEntity",v)}}),
_.n("design:type",Object)],ep.prototype,"toggleMenuServiceItemEntity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ep.prototype,"systemIcons",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ep.prototype,"useListItemStyles",void 0);_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ep.prototype,"onFocus",null);
_.e([_.N("data.isToggled"),_.n("design:type",Object),_.n("design:paramtypes",[])],ep.prototype,"toggleButtonText",null);_.e([_.lc("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ep.prototype,"onTap",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ep.prototype,"onYtServiceRequestCompleted",null);
_.e([_.Ni("toggleMenuServiceItemEntity.isToggled","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ep.prototype,"toggledStateEntityChanged",null);_.e([_.m({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],ep);
_.w(ep,"ytd-toggle-menu-service-item-renderer",function(){if(FoS!==void 0)return FoS;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return FoS=D},{mode:1});var z5C;var n$=function(){return _.c.apply(this,arguments)||this};
_.J(n$,_.c);n$.prototype.onFocus=function(){var D;(D=_.ZW(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.GT.Object.defineProperties(n$.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.nz(this.data.iconUrl)}}});
n$.prototype.onFocus=n$.prototype.onFocus;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],n$.prototype,"rendererBehavior",void 0);_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],n$.prototype,"ytEndpointBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],n$.prototype,"data",void 0);_.e([_.lc("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n$.prototype,"onFocus",null);
_.e([_.N("data.iconUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],n$.prototype,"imageSource",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],n$);
_.w(n$,"ytd-menu-custom-icon-item-renderer",function(){if(z5C!==void 0)return z5C;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return z5C=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});_.zh(_.xD,"yt-list-item-view-model",{props:{data:_.gj,isMenuItem:_.gj,isCompact:_.gj,onTap:_.C_,trailingAccessory:_.C_,hideSelectionTextChevron:_.gj,disabled:_.gj,inPopup:_.gj,disableHorizontalPadding:_.gj,isOverlay:_.gj,isToggled:_.gj,ariaLabel:_.gj,ariaPressed:_.gj}});var O6=function(){var D=_.c.apply(this,arguments)||this;D.disableBackdropFilter=_.g("web_disable_backdrop_filter");return D};
_.J(O6,_.c);_.V=O6.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.V.computeAriaLabel=function(D){return D};
_.V.onPopupOpened=function(){this.items.selected=0;for(var D=_.P(_.ZW(this.items).children),v=D.next();!v.done;v=D.next())v.value.popupPositionTarget=this.positionTarget;if(D=this.popupTip||void 0)D.setTip(this.source||""),this.source=void 0;this.veData&&(D=_.wd())&&_.DU(D,[this.veData])};
_.V.onPopupClosed=function(){var D=this.popupTip||void 0;D&&D.clearTip()};
_.V.onIronActivate=function(D){this.shouldPersist(D)||_.zU(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(D=_.wd())&&_.hA(D,this.veData)};
_.V.shouldPersist=function(D){var v,h;if(((v=D.detail)==null?void 0:v.selected)===void 0||(h=this.data)==null||!h.items)return!1;var a,Q;return!((Q=(a=this.data.items[D.detail.selected])==null?void 0:a.toggleMenuServiceItemRenderer)==null||!Q.persistentOnMenuPopup)};
_.V.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(D){return D.menuNavigationItemRenderer?!!D.menuNavigationItemRenderer.icon:D.menuServiceItemRenderer?!!D.menuServiceItemRenderer.icon:D.menuConditionalServiceItemRenderer?!!D.menuConditionalServiceItemRenderer.icon:D.menuConditionalNavigationItemRenderer?!!D.menuConditionalNavigationItemRenderer.icon:D.toggleMenuServiceItemRenderer?!!D.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
O6.prototype.onPopupClosed=O6.prototype.onPopupClosed;O6.prototype.onPopupOpened=O6.prototype.onPopupOpened;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],O6.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],O6.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],O6.prototype,"veData",void 0);_.e([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.n("design:type",String)],O6.prototype,"ariaLabel",void 0);_.e([_.Y({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],O6.prototype,"useIcons",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],O6.prototype,"disableBackdropFilter",void 0);_.e([_.Br("#items"),_.n("design:type",Object)],O6.prototype,"items",void 0);_.e([_.Br("ytd-menu-popup-tip-renderer"),_.n("design:type",Object)],O6.prototype,"popupTip",void 0);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],O6.prototype,"onPopupOpened",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],O6.prototype,"onPopupClosed",null);_.e([_.m({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],O6);
_.w(O6,"ytd-menu-popup-renderer",function(){if(Cw$!==void 0)return Cw$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Cw$=D},{mode:1});var U5s;var Lom=_.H(function(D){D=_.fb(D,{icon:void 0});var v=D.data;D=D.icon;var h=function(){return v().iconBadgeText},a={},Q=_.S3("yt-spec-icon-badge-shape",function(){a:switch(v().iconBadgeType){case "notification":var G="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":G="yt-spec-icon-badge-shape--type-cart";break a;default:G=""}return G},function(){a:switch(v().iconBadgeStyle){case "overlay":var G="yt-spec-icon-badge-shape--style-overlay";
break a;default:G=""}return G},(a["yt-spec-icon-badge-shape--text-size-small"]=function(){var G=h();
return!!((G==null?0:G.length)&&G.length>2)},a));
return _.F("yt-icon-badge-shape",null,_.F(_.z,{cond:D,then:function(G){return _.F("div",{class:Q},_.F("div",{class:"yt-spec-icon-badge-shape__icon"},_.F(_.Y5,{icon:G})),_.F(_.z,{cond:h,then:function(x){return _.F("div",{class:"yt-spec-icon-badge-shape__badge"},x)}}))}}))},"Di");
Lom.idomCompat=!0;_.zh(Lom,"yt-icon-badge-shape",{props:{data:_.gj,icon:_.gj}});var K$=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};D.unseenCount=0;D.isOverlay=!1;return D};
_.J(K$,_.c);_.V=K$.prototype;_.V.attached=function(){var D=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(v){D.onServiceWorkerMessage(v)})};
_.V.onDataChanged=function(){this.isAttached&&!this.JSC$20532_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20532_lastData=this.data};
_.V.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.computeIcon=function(){var D,v;return(D=this.data)==null?void 0:(v=D.icon)==null?void 0:v.iconType};
_.V.onServiceWorkerMessage=function(D){D.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.V.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.k(this.data.updateUnseenCountEndpoint,_.kE)&&_.k(this.data.updateUnseenCountEndpoint,_.kE).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.V.handleUpdateNotificationsUnseenCountAction=function(D){var v=this;D=_.k(D,IwS);D!=null&&D.unseenCount&&D.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(D.unseenCount),_.HK.addLowPriorityJob(function(){v.data.updateUnseenCountEndpoint&&v.ytComponentBehavior.resolveCommand(v.data.updateUnseenCountEndpoint)},D.timeoutMs))};
_.V.onClick=function(){_.F1(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var D=_.U9(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),v=this.data.menuRequest;D&&D.length===1&&D[0]?_.zU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):v&&this.ytComponentBehavior.resolveCommand(v)};
_.V.handleTopbarMenuClosedAction=function(D){D==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.V.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
_.V.sendUnseenCountRequest=function(D){var v=this;_.c1(_.HK,function(){v.ytComponentBehavior.resolveCommand(D)})};
_.V.updateCountUI=function(D){this.set("unseenCount",D<9?D:"9+")};
_.GT.Object.defineProperties(K$.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
K$.prototype.handleUpdateNotificationsUnseenCountAction=K$.prototype.handleUpdateNotificationsUnseenCountAction;K$.prototype.onDataChanged=K$.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.lK),_.n("design:type",Object)],K$.prototype,"ytdOpenPopupBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],K$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],K$.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],K$.prototype,"unseenCount",void 0);_.e([_.Y(),_.n("design:type",Object)],K$.prototype,"isOverlay",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],K$.prototype,"showTooltips",void 0);_.e([_.Br("yt-icon-button"),_.n("design:type",Object)],K$.prototype,"iconButton",void 0);
_.e([_.N("unseenCount"),_.n("design:type",Object),_.n("design:paramtypes",[])],K$.prototype,"showNotificationCount",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],K$.prototype,"onDataChanged",null);_.e([_.lc("yt-update-notifications-unseen-count-action"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],K$.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.e([_.m({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],K$);
_.w(K$,"ytd-notification-topbar-button-renderer",function(){if(U5s!==void 0)return U5s;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return U5s=D},{mode:_.E_("kevlar_poly_si_batch_j025")?1:2});var Z22;var Tl=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return D};
_.J(Tl,_.c);Tl.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}}}}}};
Tl.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Tl.prototype.onDarkModeToggled=function(D){this.dark=D};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Tl.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Tl.prototype,"data",void 0);_.e([_.Y({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],Tl.prototype,"dark",void 0);
_.e([_.m({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Tl);
_.w(Tl,"yt-pdg-buy-flow-header-renderer",function(){if(Z22!==void 0)return Z22;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Z22=D},{mode:1});var EQZ;var IId;var RK=function(){var D=_.c.apply(this,arguments)||this;D.immediateValue=0;D.isDarkTheme=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(RK,_.c);_.V=RK.prototype;_.V.created=function(){_.$M.requestAvailability()};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.dataChanged=function(){var D=_.ZW(this.hostElement).querySelector("#color-slider");D.immediateValue&&this.updateSliderKnobAndGradientStyles(D.immediateValue);this.data.notches[0].knobColorArgb&&_.SB(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.uu(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.eA("HTML_DIR")==="rtl"&&_.ZW(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.V.onSliderImmediateChange=function(){var D=_.ZW(this.hostElement).querySelector("#color-slider");D.dragging&&(D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue)),this.updateSliderAria())};
_.V.onSliderChange=function(){var D=_.ZW(this.hostElement).querySelector("#color-slider");D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue));this.updateSliderAria()};
_.V.updateSliderAria=function(){var D=_.ZW(this.hostElement).querySelector("#color-slider"),v=_.ZW(this.hostElement).querySelector("#color-slider");v=_.$V(this.data.notches[v.immediateValue].tierValue);_.Z72()&&_.F1(this.hostElement,"iron-announce",{text:v});D.setAttribute("aria-valuetext",v)};
_.V.updateSuperThanksSelectedTierEntity=function(D){if(D!==this.immediateValue){var v,h,a=this==null?void 0:(v=this.data)==null?void 0:(h=v.superThanksSelectedTierEntity)==null?void 0:h.key;a&&a.length>0&&this.ytdReduxBehavior.dispatch(_.Xe("superThanksSelectedTierEntity",a,{key:a,index:D}))}};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.updateSliderKnobAndGradientStyles=function(D){this.immediateValue=D;D=this.data.notches[D];if(D==null?0:D.knobColorArgb)var v={"--ytd-pdg-color-slider-knob-color":_.uu(D.knobColorArgb)};(D==null?0:D.linearGradientCssStyle)&&v!==null&&(v=Object.assign({},v,{"--ytd-pdg-color-slider-active-color":D==null?void 0:D.linearGradientCssStyle}));v!==null&&_.SB(this.hostElement,v)};
RK.prototype.onSliderChange=RK.prototype.onSliderChange;RK.prototype.onSliderImmediateChange=RK.prototype.onSliderImmediateChange;RK.prototype.dataChanged=RK.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],RK.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],RK.prototype,"immediateValue",void 0);_.e([_.Y(),_.n("design:type",Number)],RK.prototype,"maxMarkers",void 0);
_.e([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JQb}),_.n("design:type",Object)],RK.prototype,"superThanksSelectedTierEntity",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],RK.prototype,"isDarkTheme",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],RK.prototype,"ytdReduxBehavior",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RK.prototype,"dataChanged",null);
_.e([_.lc("immediate-value-change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RK.prototype,"onSliderImmediateChange",null);_.e([_.lc("change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RK.prototype,"onSliderChange",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],RK);
_.w(RK,"ytd-pdg-color-slider-renderer",function(){if(IId!==void 0)return IId;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return IId=D},{mode:1});var gQ2;var kt$;var Wh=null;
_.yT({is:"ytd-comment-input",_template:function(){if(kt$!==void 0)return kt$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return kt$=D},
behaviors:[_.KiO.YtHostElementBehavior,_.Hq,_.oY.YtComponentBehavior,_.ct.YtRendererstamperBehavior,_.DnM.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 _.Ua}},
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",_.pZ(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;_.cN();this.focus()},
detached:function(){document.removeEventListener("tap",_.pZ(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var v=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(v,D);this.maybeUpdateTextDirection_();_.F1(this.hostElement,"input")},
getInputRange_:function(){var D=_.LS();if(D){D=D.getBrowserRangeObject();for(var v=D.commonAncestorContainer;v;){if(v===this.getEditableTextArea_())return D;v=v.parentNode}}D=this.getEditableTextArea_();D=_.DV(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,v,h){(v=this.emojiManager.createDocumentFragment(v,!0,!1,h===void 0?!0:h))&&v.childNodes.length!==0&&(D.collapsed||D.deleteContents(),h=v.lastChild,D.insertNode(v),_.kHJ(h).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var D=_.LS();if(D){var v=D.JSC$11351_getStartNode(),h=D.JSC$11351_getEndNode();if(Gf$(v)&&Gf$(h)){var a=D.JSC$11351_getStartOffset(),Q;if(_.E1&&v.nodeType===Node.ELEMENT_NODE&&(Q=_.kdt(v)))_.DV(Q,0).select();else{Q=h_(v)?v:_.OV(v,h_);var G=h_(h)?h:_.OV(h,h_);if(Q||G)if(D.isCollapsed()){if(v.nodeType===Node.TEXT_NODE){D=!0;a===v.length&&(D=!1);if(Wh==="end"||Wh==="right")D=!1;v=v.parentNode;D=[].concat(_.j_(v.parentNode.childNodes)).indexOf(v)+(D?0:1);_.DV(v.parentNode,
D).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.vq(h,D.JSC$11351_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(v=document.createTextNode("\u200b"),Q.parentNode.insertBefore(v,Q),_.vq(h,D.JSC$11351_getEndOffset(),v,0).select()):G&&(G.nextSibling&&G.nextSibling.length>0?_.vq(v,D.JSC$11351_getStartOffset(),G.nextSibling,1).select():(h=document.createTextNode("\u200b"),G.parentNode.insertBefore(h,G.nextSibling),_.vq(v,D.JSC$11351_getStartOffset(),h,h.length).select()));
Wh=null}}else Wh=null}else Wh=null},
leftKeyPressed_:function(){Wh="left"},
rightKeyPressed_:function(){Wh="right"},
endKeyPressed_:function(){Wh="end"},
maybeDeleteChip_:function(){var D=C7Z(!0);if(D){var v=_.LS(),h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();_.ir(h,v,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=C7Z(!1);if(D){var v=_.LS(),h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();_.ir(h,v,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var v=_.LS();if(v.isCollapsed()){var h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();var a=oe3(h,v,!0);a&&(_.ir(h,v,a,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var v=_.LS();if(v.isCollapsed()){var h=v.JSC$11351_getStartNode();v=v.JSC$11351_getStartOffset();var a=oe3(h,v,!1);a&&(_.ir(h,v,a,a.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onContentClick:function(D){D.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(D){D.defaultPrevented||D.currentTarget.tagName==="YTD-COMMENT-INPUT"&&h_(D.target)&&D.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ZW(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ZW(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(D,v){D=P72(D,this.emojiManager,v).cloneNode(!0);for(v=D.firstChild;v;)if(v.nodeType!==1)v=v.nextSibling;else switch(v.tagName){case "BR":var h=_.ws();_.cr9(h,v);v=h.nextSibling;break;case "DIV":(h=v.lastChild)&&v.nextSibling&&_.KW(_.ws(),h);v.previousSibling&&(v.previousSibling.nodeType===1||v.previousSibling.nodeType===3&&!v.previousSibling.textContent.endsWith("\n"))&&_.OO(_.ws(),v);h&&h.nodeName==="BR"&&_.Np(h);h=v;v.hasChildNodes()?(v=v.firstChild,
_.Xs1(h)):(v=v.nextSibling,_.Np(h));break;default:v=v.nextSibling}return FsX(D)},
setTextAreaValue:function(D){D||(D="");var v=this.getEditableFormattedString_();v.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});v.text=D},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Wh=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.DV(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.eA("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),v=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",v)}},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var v=this.getInputRange_();v&&(D=this.emojiInput.retrieveTextBeforeRange(v))}this.insertText_(D,!0);this.updateCharCount_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(D){this.isEmojiButtonDisplayed&&(D.preventDefault(),D.stopImmediatePropagation(),D=D.clipboardData.getData("text/plain"),this.insertText_(D,!1,!1),_.F1(this.hostElement,"input"))},
insertText_:function(D,v,h){v=v===void 0?!1:v;h=h===void 0?!0:h;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var a=this.getInputRange_().cloneRange();this.emojiManager&&a&&(v&&this.emojiInput.offsetStartOfRangeBy(a,D.length),this.insertTextWithEmojis_(a,D,h),VbX(this.getEditableTextArea_().lastChild)||(a=this.getInputRange_().cloneRange()),a&&(this.emojiInput.updateSuggestions(a,D),this.updateSuggestionOffset_(a)))}},
getSimpleString:_.$V,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computePlaceholderText_:function(D){return this.getSimpleString(D)},
computeEditableText_:function(D){return this.getSimpleString(D)},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(D,v){D?this.fire("yt-autonav-pause-focus"):v!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var v=this.getEditableTextArea_();[].concat(_.j_(D.dataTransfer.items)).forEach(function(h){h.kind==="string"&&h.type.match("^text/plain")&&h.getAsString(function(a){v.appendChild(document.createTextNode(a))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.ZW(this.emojiInput).querySelector("#dropdown")){var v=this.getEditableTextArea_().getBoundingClientRect().bottom,h=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(v-h)+5;v=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-v;_.ZW(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.OW("yt-post"));return this.localStorage}});var tt=function(){var D=_.c.apply(this,arguments)||this;D.currentCommentOptionIndex=0;D.isEmojiPickerDisplayed=!1;D.emojiManager=_.Ua;D.isUgcEmpty=!1;D.userGeneratedCommentChangedHandler=function(){_.F1(D.hostElement,"ytd-pdg-user-generated-comment-changed");D.isEmojiYtdCommentInputEnabled&&(D.isUgcEmpty=!D.ytdCommentInputEl.getTextAreaValue())};
D.pasteHandler=function(v){v.preventDefault();v.stopImmediatePropagation();var h;if(v=(h=v.clipboardData)==null?void 0:h.getData("text/plain"))h=document.getSelection().getRangeAt(0),h.collapsed||h.deleteContents(),v=document.createTextNode(v),h.insertNode(v),h.selectNodeContents(v),h.collapse(!1),v=window.getSelection(),v.removeAllRanges(),v.addRange(h)};
D.onDocumentClick=function(v){if(D.isEmojiPickerDisplayed){var h,a,Q;!(v.target instanceof Node)||(h=v.composedPath())!=null&&h.includes(D.editableTextEl)||(a=v.composedPath())!=null&&a.includes(D.emojiButtonEl)||(Q=v.composedPath())!=null&&Q.includes(D.emojiPickerEl)||(D.isEmojiPickerDisplayed=!1)}};
return D};
_.J(tt,_.c);_.V=tt.prototype;_.V.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.V.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.V.detached=function(){var D;(D=this.contentEl)==null||D.removeEventListener("input",this.userGeneratedCommentChangedHandler);var v;(v=this.contentEl)==null||v.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.V.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.V.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var D;this.contentEl.textContent=this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.V.reloadEmojis=function(){this.emojiPickerEl&&_.k(this.emojiPicker,_.TmJ)&&this.emojiPickerEl.updateEmojiCategories()};
_.V.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.SB(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.V.handleBackgroundColorStyling=function(){var D;if((D=this.currentCommentOption)==null?0:D.commentBackgroundColorArgb){var v;_.SB(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.uu((v=this.currentCommentOption)==null?void 0:v.commentBackgroundColorArgb)})}else _.SB(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.V.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var D;(D=this.contentEl)==null||D.focus()}};
_.V.onEditButtonClick=function(D){var v=document.getSelection();v&&this.contentEl&&(D.stopPropagation(),D.preventDefault(),v.selectAllChildren(this.contentEl),v.collapseToEnd())};
_.V.onContentDrop=function(D){var v=this;if(D.dataTransfer){D=_.P(D.dataTransfer.items);for(var h=D.next();!h.done;h=D.next())h=h.value,h.kind==="string"&&h.type.match("^text/plain")&&h.getAsString(function(a){var Q;(Q=v.contentEl)==null||Q.appendChild(document.createTextNode(a))})}};
_.V.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.V.getUserGeneratedCommentText=function(){var D,v=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(D=this.contentEl)==null?void 0:D.textContent;return v?v.trim():""};
_.V.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.V.onEmojiSelect=function(D){this.ytdCommentInputEl.onEmojiSelect(D)};
_.GT.Object.defineProperties(tt.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.currentCommentOption)==null||!D.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(_.k((D=this.currentCommentOption)==null?void 0:D.chipRenderer,_.oGF)){var v;return _.k((v=this.currentCommentOption)==null?void 0:v.chipRenderer,_.oGF)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var D,v;return((D=this.data)==null?0:D.commentOptionRenderers)?_.k((v=this.data)==null?void 0:v.commentOptionRenderers[this.superThanksSelectedTierEntity.index],RAm):void 0}var h,a;return((h=this.data)==null?0:h.commentOptionRenderers)?_.k((a=this.data)==null?void 0:a.commentOptionRenderers[this.currentCommentOptionIndex],RAm):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.commentDialog,_.zwM))==null?void 0:v.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.commentDialog,_.zwM))==null?void 0:v.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=_.k((D=this.data)==null?void 0:D.commentDialog,_.zwM))==null?void 0:v.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(v=_.k((D=this.data)==null?void 0:D.commentDialog,_.zwM))==null?void 0:v.emojiPicker;if(!_.k(h,_.TmJ)||!_.k(h,_.TmJ).categories)return!1;D=function(G){return G.emojiPickerCategoryRenderer?G.emojiPickerCategoryRenderer.emojiIds&&G.emojiPickerCategoryRenderer.emojiIds.length>0:G.emojiPickerUpsellCategoryRenderer?G.emojiPickerUpsellCategoryRenderer.emojis&&G.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var a,Q;return((a=_.k(h,_.TmJ))==null?0:(Q=a.categories)==null?0:Q.find(D))?!0:!1}}});
tt.prototype.onEmojiSelect=tt.prototype.onEmojiSelect;tt.prototype.dataChanged=tt.prototype.dataChanged;tt.prototype.currentCommentOptionChanged=tt.prototype.currentCommentOptionChanged;_.e([_.l(_.Mm),_.n("design:type",Object)],tt.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tt.prototype,"rendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Br("#content-dom-if"),_.n("design:type",_.OI)],tt.prototype,"contentDomIfEl",void 0);_.e([_.Br("#content-no-emojis"),_.n("design:type",HTMLElement)],tt.prototype,"contentEl",void 0);_.e([_.Br("#container"),_.n("design:type",HTMLElement)],tt.prototype,"containerEl",void 0);_.e([_.Br("#comment-chip-container"),_.n("design:type",HTMLElement)],tt.prototype,"paidCommentChipContainerEl",void 0);_.e([_.Br("#text-input"),_.n("design:type",HTMLElement)],tt.prototype,"editableTextEl",void 0);
_.e([_.Br("#emoji-button"),_.n("design:type",HTMLElement)],tt.prototype,"emojiButtonEl",void 0);_.e([_.Br("#emoji-picker > yt-emoji-picker-renderer"),_.n("design:type",Object)],tt.prototype,"emojiPickerEl",void 0);_.e([_.Br("#text-input > ytd-comment-input"),_.n("design:type",Object)],tt.prototype,"ytdCommentInputEl",void 0);_.e([_.Y(),_.n("design:type",Object)],tt.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],tt.prototype,"currentCommentOptionIndex",void 0);
_.e([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JQb}),_.n("design:type",Object)],tt.prototype,"superThanksSelectedTierEntity",void 0);_.e([_.Y(),_.n("design:type",Object)],tt.prototype,"isEmojiPickerDisplayed",void 0);_.e([_.Y(),_.n("design:type",Object)],tt.prototype,"emojiManager",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],tt.prototype,"isUgcEmpty",void 0);
_.e([_.Ni("currentCommentOption"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tt.prototype,"currentCommentOptionChanged",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tt.prototype,"dataChanged",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tt.prototype,"isEmojiYtdCommentInputEnabled",null);
_.e([_.N("data.title"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"title",null);_.e([_.N("data.authorText"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"channelName",null);_.e([_.N("data.commentOptionRenderers","currentCommentOption"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tt.prototype,"shouldShowPaidCommentChipRenderer",null);
_.e([_.N("data.commentOptionRenderers","currentCommentOption"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"paidCommentChipRenderer",null);_.e([_.N("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"currentCommentOption",null);
_.e([_.N("data.defaultCommentText","superThanksSelectedTierEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"commentText",null);_.e([_.N("data.placeholderText"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"placeholderText",null);_.e([_.N("data.commentDialog.commentDialogRenderer.editableText"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"editableText",null);
_.e([_.N("data.commentDialog.commentDialogRenderer.emojiButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"emojiButton",null);_.e([_.N("data.commentDialog.commentDialogRenderer.emojiPicker"),_.n("design:type",Object),_.n("design:paramtypes",[])],tt.prototype,"emojiPicker",null);
_.e([_.N("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tt.prototype,"isEmojiButtonDisplayed",null);_.e([_.lc("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],tt.prototype,"onEmojiSelect",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],tt);
_.w(tt,"ytd-pdg-comment-preview-renderer",function(){if(gQ2!==void 0)return gQ2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return gQ2=D},{mode:2});var Srm;var rU=function(){var D=_.c.apply(this,arguments)||this;D.selected=!1;return D};
_.J(rU,_.c);_.V=rU.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.V.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.V.dataChanged=function(){this.data&&(_.EI(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.SB(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.uu(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.uu(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.V.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.V.onClick=function(){this.logClick()};
_.V.onKeyboardSelect=function(){_.F1(this.hostElement,"tap");this.onClick()};
_.V.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
rU.prototype.onClick=rU.prototype.onClick;rU.prototype.selectedChanged=rU.prototype.selectedChanged;rU.prototype.dataChanged=rU.prototype.dataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],rU.prototype,"componentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Hq),_.n("design:type",Object)],rU.prototype,"ironA11yKeysBehavior",void 0);
_.e([_.l(_.Qs),_.n("design:type",Object)],rU.prototype,"ironSelectableBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rU.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],rU.prototype,"shownThumbnail",void 0);_.e([_.Y(),_.n("design:type",Object)],rU.prototype,"basePriceText",void 0);_.e([_.Y(),_.n("design:type",Object)],rU.prototype,"purchaseCommand",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],rU.prototype,"selected",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rU.prototype,"dataChanged",null);_.e([_.Ni("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rU.prototype,"selectedChanged",null);_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rU.prototype,"onClick",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],rU);
_.w(rU,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Srm!==void 0)return Srm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Srm=D},{mode:1});var uf=function(){var D=_.c.apply(this,arguments)||this;D.selectedItemIndex=0;D.buyButtonDisabled=!1;return D};
_.J(uf,_.c);_.V=uf.prototype;
_.V.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]]"}}}}}};
_.V.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var D;var v=(D=_.k(this.data.colorSlider,T2r))==null?void 0:D.notches[this.selectedItemIndex].purchaseCommand}else{var h;v=(h=_.k(this.data.selectableItemButtons[this.selectedItemIndex],WpS))==null?void 0:h.purchaseCommand}if(v){D=_.k(v,_.rER);D.productData||(D.productData={});var a;D.productData={pdgData:{commentMessageText:(a=this.commentPreviewRenderer)==null?void 0:a.getUserGeneratedCommentText()}};
_.F1(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(v)}}};
_.V.dataChanged=function(){if(this.data){_.Ua.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.B81(_.Ua,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Ua.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var D;this.buyButtonDisabled=!((D=_.k(this.data.commentPreview,iOb))==null||!D.placeholderText);this.updatePriceSelectorStatus();var v;if((v=this.data)==null?0:v.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;D=[];this.data.preloadImages&&(D=this.data.preloadImages);
D=D.map(function(h){return _.UA(h.thumbnails,1920)});
D=_.P(D);for(v=D.next();!v.done;v=D.next())(v=v.value)&&_.JsO(v).thenCatch(function(){_.yR(Error("Cl"))})}};
_.V.superThanksSelectedTierEntityChanged=function(){var D;(this==null?void 0:(D=this.superThanksSelectedTierEntity)==null?void 0:D.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.V.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.V.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ZW(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ZW(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ZW(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ZW(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.V.closeBuyFlow=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.V.onUserGeneratedContentChanged=function(){var D;this.buyButtonDisabled=!((D=this.commentPreviewRenderer)==null?0:D.getUserGeneratedCommentText())};
_.V.updateSelectedItemIndexFromBinding=function(D){this.selectedItemIndex=D.detail.value};
_.GT.Object.defineProperties(uf.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disclaimerText)}}});
uf.prototype.onUserGeneratedContentChanged=uf.prototype.onUserGeneratedContentChanged;uf.prototype.closeBuyFlow=uf.prototype.closeBuyFlow;uf.prototype.selectedItemIndexChanged=uf.prototype.selectedItemIndexChanged;uf.prototype.superThanksSelectedTierEntityChanged=uf.prototype.superThanksSelectedTierEntityChanged;uf.prototype.dataChanged=uf.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],uf.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],uf.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],uf.prototype,"selectedItemIndex",void 0);_.e([_.Y(),_.n("design:type",Boolean)],uf.prototype,"isColorSlider",void 0);
_.e([_.Y(),_.n("design:type",Object)],uf.prototype,"buyButtonDisabled",void 0);_.e([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JQb}),_.n("design:type",Object)],uf.prototype,"superThanksSelectedTierEntity",void 0);_.e([_.Br("ytd-pdg-comment-preview-renderer"),_.n("design:type",Object)],uf.prototype,"commentPreviewRenderer",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],uf.prototype,"ytdReduxBehavior",void 0);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uf.prototype,"dataChanged",null);_.e([_.Ni("superThanksSelectedTierEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uf.prototype,"superThanksSelectedTierEntityChanged",null);_.e([_.Ni("selectedItemIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uf.prototype,"selectedItemIndexChanged",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uf.prototype,"closeBuyFlow",null);_.e([_.lc("ytd-pdg-user-generated-comment-changed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uf.prototype,"onUserGeneratedContentChanged",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],uf.prototype,"isDisclaimerTextShown",null);
_.e([_.m({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],uf);
_.w(uf,"yt-super-vod-buy-flow-content-renderer",function(){if(EQZ!==void 0)return EQZ;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return EQZ=D},{mode:1});var Jg2;var DC=function(){var D=_.c.apply(this,arguments)||this;D.lottieAnimationRef={};return D};
_.J(DC,_.c);_.V=DC.prototype;_.V.created=function(){_.$M.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.pZ(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.V.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.F1(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.V.detached=function(){this.autoCloseJobId&&_.HK.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.pZ(this,this.onPopupIronOverlayOpened))};
_.V.dataChanged=function(){var D=this;this.data&&this.data.autoCloseDelay&&(_.zU(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.I3(_.HK,function(){D.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.SB(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.V.onDOMLoadedLottie=function(){var D=this,v,h,a=Number((v=this.data)==null?void 0:(h=v.autoCloseDelay)==null?void 0:h.seconds)||0;this.fadeOutJobId=_.I3(_.HK,function(){D.lottiePlayerEl.classList.add("fadeout")},(a-.25)*1E3);
this.autoCloseJobId=_.I3(_.HK,function(){D.closePopup()},a*1E3)};
_.V.openPopup=function(){this.ironOverlayBehavior.open()};
_.V.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.zU(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ZD(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.xd().resolve(_.fx).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.HK.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.HK.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.V.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var D,v;(D=this.lottieAnimationRef)==null||(v=D.lottieEl)==null||v.destroy();D=this.data.lottie;var h,a;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:D.url+"_"+Math.random(),path:D.url,autoplay:!0,loop:(a=(h=D.settings)==null?void 0:h.loop)!=null?a:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.GT.Object.defineProperties(DC.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var D,v;return!!((D=this.data)==null?0:(v=D.lottie)==null?0:v.url)}}});
DC.prototype.maybeInitializeLottie=DC.prototype.maybeInitializeLottie;DC.prototype.dataChanged=DC.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],DC.prototype,"rendererBehavior",void 0);_.e([_.l(_.MB),_.n("design:type",Object)],DC.prototype,"ironOverlayBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],DC.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],DC.prototype,"lottiePlayerProps",void 0);
_.e([_.Y(),_.n("design:type",Object)],DC.prototype,"lottieAnimationRef",void 0);_.e([_.Br("ytd-lottie-player"),_.n("design:type",HTMLElement)],DC.prototype,"lottiePlayerEl",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DC.prototype,"dataChanged",null);_.e([_.N("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],DC.prototype,"hasLottieAnimation",null);
_.e([_.Ni("data.lottie.url"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DC.prototype,"maybeInitializeLottie",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],DC);
_.w(DC,"ytd-desktop-image-overlay-renderer",function(){if(Jg2!==void 0)return Jg2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Jg2=D},{mode:1});var pSm;var vJ=function(){return _.c.apply(this,arguments)||this};
_.J(vJ,_.c);_.V=vJ.prototype;_.V.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"}}}}};
_.V.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",_.pZ(this,this.closePopup))};
_.V.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.pZ(this,this.closePopup))};
_.V.dataChanged=function(){_.U9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.k(this.data.header,Kpr)&&(this.hasBackgroundBanner=!!_.k(this.data.header,Kpr).backgroundBanner)};
_.V.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.pZ(this,this.closePopup))};
_.V.closePopup=function(){this.data&&this.data.onCloseCommand&&_.L1(this.hostElement,[this.data.onCloseCommand])};
vJ.prototype.handleBuyflowSelectionSubmitted=vJ.prototype.handleBuyflowSelectionSubmitted;vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],vJ.prototype,"data",void 0);
_.e([_.Y({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],vJ.prototype,"hasBackgroundBanner",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vJ.prototype,"dataChanged",null);_.e([_.lc("yt-pdg-buy-flow-selection-submitted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vJ.prototype,"handleBuyflowSelectionSubmitted",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],vJ);
_.w(vJ,"ytd-pdg-buy-flow-renderer",function(){if(pSm!==void 0)return pSm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return pSm=D},{mode:1});var lId;var hM=function(){var D=_.c.apply(this,arguments)||this;D.isOpen=!1;D.isPlaylistCreated=!1;return D};
_.J(hM,_.c);_.V=hM.prototype;_.V.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.V.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.F1(this.hostElement,"yt-refit")};
_.V.onCreateTap=function(){var D=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.L1(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(v,h){if(!_.g("killswitch_ep_in_create_playlist_response")&&(h==null?0:h.actions))for(v=_.P(h.actions),h=v.next();!h.done;h=v.next())h=h.value,_.k(h,_.qh)&&D.ytComponentBehavior.resolveCommand(h)}}]),this.isPlaylistCreated=!0)};
_.V.onKeydown=function(D){if(D.keyCode===13)this.onCreateTap()};
_.V.onServiceRequestCompleted=function(D){D.stopPropagation();_.zU(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.V.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
hM.prototype.onServiceRequestCompleted=hM.prototype.onServiceRequestCompleted;hM.prototype.onKeydown=hM.prototype.onKeydown;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],hM.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hM.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],hM.prototype,"isOpen",void 0);
_.e([_.Y(),_.n("design:type",Object)],hM.prototype,"isPlaylistCreated",void 0);_.e([_.Y({value:{REQUIRED_LABEL:_.p1("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.p1("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.n("design:type",Object)],hM.prototype,"addToStrings",void 0);_.e([_.Y({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.n("design:type",Array)],hM.prototype,"privacyBadge",void 0);
_.e([_.Br("#privacy-input"),_.n("design:type",Object)],hM.prototype,"privacyInput",void 0);_.e([_.Br("#name-input"),_.n("design:type",Object)],hM.prototype,"nameInput",void 0);_.e([_.lc("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],hM.prototype,"onKeydown",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],hM.prototype,"onServiceRequestCompleted",null);
_.e([_.m({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],hM);
_.w(hM,"ytd-add-to-playlist-create-renderer",function(){if(lId!==void 0)return lId;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return lId=D},{mode:1});var NXX;var Yrr;var az=function(){var D=_.c.apply(this,arguments)||this;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.J(az,_.c);az.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
az.prototype.onCheckboxChange=function(D){var v=this;this.data&&_.aq(this,"yt-playlist-checkbox-changed",function(){var h=_.xU(D).checked?v.data.addToPlaylistServiceEndpoint:v.data.removeFromPlaylistServiceEndpoint;h&&_.xd().resolve(_.fx).resolveCommand(h,{form:{element:v.hostElement}});_.g("dl_playlist_killswitch")||v.transferState!=="TRANSFER_STATE_UNKNOWN"&&v.transferState!=="TRANSFER_STATE_FAILED"&&v.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:v.data.playlistId,action:"ACTION_SYNC"}})},
100)};
az.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
az.prototype.dataChanged=az.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],az.prototype,"data",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],az.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.e([_.Br("#checkbox"),_.n("design:type",HTMLInputElement)],az.prototype,"checkbox",void 0);
_.e([_.Y({selector:_.Ta,selectorArgs:["data.playlistId"]}),_.n("design:type",String)],az.prototype,"transferState",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],az.prototype,"dataChanged",null);_.e([_.m({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],az);
_.w(az,"ytd-playlist-add-to-option-renderer",function(){if(Yrr!==void 0)return Yrr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Yrr=D},{mode:1});var BX3=_.H(function(D){var v=D.data;return _.F("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.F("div",null,_.F(_.IY,{text:function(){return v().title}})),_.F(_.z,{cond:function(){return v().subtitle},
then:function(h){return _.F("div",{class:"ytdMenuTitleRendererSubtitle"},_.F(_.IY,{text:h}))}}))},"Ei");
BX3.idomCompat=!0;_.zh(BX3,"ytd-menu-title-renderer",{props:{data:_.gj}});var $O=function(){var D=_.c.apply(this,arguments)||this;D.addToStrings={ADD_TO_DROPDOWN_LABEL:_.p1("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};D.closeButtonAriaLabel=_.p1("SBOX_INAPPROPRIATE_CANCEL");D.dialog=_.g("desktop_add_to_playlist_renderer_dialog_popup");return D};
_.J($O,_.c);_.V=$O.prototype;_.V.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"}}}};
_.V.onPopupOpened=function(){_.Iy(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.V.onPopupClosed=function(){_.Iy(this.playlists,"scrollable",!1)};
_.V.computeAriaLabel=function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.P(this.data.actions);for(var v=D.next();!v.done;v=D.next())if(v=v.value,v.menuTitleRenderer)return _.$V(v.menuTitleRenderer.title)}};
_.V.onTapClose=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.GT.Object.defineProperties($O.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.P(this.data.actions);for(var v=D.next();!v.done;v=D.next())if(v=v.value,v.menuTitleRenderer)return v.menuTitleRenderer}return!1}}});
$O.prototype.onPopupClosed=$O.prototype.onPopupClosed;$O.prototype.onPopupOpened=$O.prototype.onPopupOpened;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],$O.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$O.prototype,"ytRendererStamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],$O.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],$O.prototype,"addToStrings",void 0);_.e([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.n("design:type",String)],$O.prototype,"ariaLabel",void 0);_.e([_.Y(),_.n("design:type",String)],$O.prototype,"closeButtonAriaLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],$O.prototype,"dialog",void 0);
_.e([_.Br("#playlists"),_.n("design:type",HTMLElement)],$O.prototype,"playlists",void 0);_.e([_.Br("ytd-add-to-playlist-create-renderer"),_.n("design:type",Object)],$O.prototype,"createRenderer",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$O.prototype,"menuTitleRenderer",null);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$O.prototype,"onPopupOpened",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$O.prototype,"onPopupClosed",null);_.e([_.m({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],$O);
_.w($O,"ytd-add-to-playlist-renderer",function(){if(NXX!==void 0)return NXX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return NXX=D},{mode:1});var cgX;var QB=function(){var D=_.c.apply(this,arguments)||this;D.isPlaylistEditComplete=!1;D.isCollabEngagementDisabled=!1;D.closeButtonAriaLabel=_.p1("SBOX_INAPPROPRIATE_CANCEL");D.saveButton={title:_.p1("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};D.onValueChanged=function(){D.updateSaveButtonState();D.computeCollabEngagementDisabled()};
return D};
_.J(QB,_.c);_.V=QB.prototype;_.V.attached=function(){this.JSC$20586_scroller&&(this.JSC$20586_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20586_scroller.attached&&typeof this.JSC$20586_scroller.attached==="function"&&this.JSC$20586_scroller.attached())};
_.V.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.V.onPopupClosed=function(){this.reset()};
_.V.close=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.V.onClickSave=function(){var D=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var v=[];this.nameInput.value!==null&&v.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&v.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var h=Number(this.privacyInput.value);isNaN(h)||v.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:h})}this.votingInput.value!==null&&(h=this.votingInput.value)&&v.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:h});if(v.length>0){var a;_.k((a=this.data)==null?void 0:a.updateSettingsEndpoint,_.$G).actions=v;var Q;if((Q=this.data)==null?0:Q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){D.close()}}}),this.isPlaylistEditComplete=!0}}};
_.V.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
_.V.computeEditorData=function(D){var v,h;return D==null?void 0:(v=D.sections)==null?void 0:(h=v[0])==null?void 0:h.playlistSettingsEditorCasualSectionRenderer};
_.V.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.V.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}}}}}};
_.V.computeAriaLabel=function(){var D,v,h,a=(D=this.data)==null?void 0:(v=D.sections)==null?void 0:(h=v[0])==null?void 0:h.playlistSettingsEditorCasualSectionRenderer;return _.$V(a==null?void 0:a.title)};
_.V.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"}))};
_.V.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.V.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.V.isNameChanged=function(){var D,v,h;return(((D=this.editorData)==null?void 0:(v=D.name)==null?void 0:(h=v.textInputFormFieldRenderer)==null?void 0:h.value)||"")!==(this.nameInput.value||"")};
_.V.isDescriptionChanged=function(){var D,v,h;return(((D=this.editorData)==null?void 0:(v=D.description)==null?void 0:(h=v.textInputFormFieldRenderer)==null?void 0:h.value)||"")!==(this.descriptionInput.value||"")};
_.V.isPrivacyChanged=function(){var D,v,h,a,Q,G,x,f;return((x=(D=this.editorData)==null?void 0:(v=D.privacy)==null?void 0:(h=v.dropdownFormFieldRenderer)==null?void 0:(a=h.dropdown)==null?void 0:(Q=a.dropdownRenderer)==null?void 0:(G=Q.entries)==null?void 0:G.find(function(C){var U;return C==null?void 0:(U=C.privacyDropdownItemRenderer)==null?void 0:U.isSelected}))==null?void 0:(f=x.privacyDropdownItemRenderer)==null?void 0:f.int32Value)!==this.privacyInput.value};
_.V.isVotingChanged=function(){var D,v,h,a,Q,G,x,f;return((x=(D=this.editorData)==null?void 0:(v=D.voting)==null?void 0:(h=v.dropdownFormFieldRenderer)==null?void 0:(a=h.dropdown)==null?void 0:(Q=a.dropdownRenderer)==null?void 0:(G=Q.entries)==null?void 0:G.find(function(C){var U;return C==null?void 0:(U=C.privacyDropdownItemRenderer)==null?void 0:U.isSelected}))==null?void 0:(f=x.privacyDropdownItemRenderer)==null?void 0:f.int32Value)!==this.votingInput.value};
QB.prototype.onPopupClosed=QB.prototype.onPopupClosed;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],QB.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QB.prototype,"ytRendererStamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],QB.prototype,"data",void 0);_.e([_.Y({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.n("design:type",Array)],QB.prototype,"privacyBadge",void 0);_.e([_.Y({computed:"computeEditorData(data)"}),_.n("design:type",Object)],QB.prototype,"editorData",void 0);_.e([_.Y(),_.n("design:type",Object)],QB.prototype,"isPlaylistEditComplete",void 0);_.e([_.Y(),_.n("design:type",Object)],QB.prototype,"isCollabEngagementDisabled",void 0);
_.e([_.Y({value:{REQUIRED_LABEL:_.p1("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.p1("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.n("design:type",Object)],QB.prototype,"addToStrings",void 0);_.e([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.n("design:type",String)],QB.prototype,"ariaLabel",void 0);_.e([_.Y(),_.n("design:type",String)],QB.prototype,"closeButtonAriaLabel",void 0);
_.e([_.Y(),_.n("design:type",Object)],QB.prototype,"saveButton",void 0);_.e([_.Br("#name-input"),_.n("design:type",Object)],QB.prototype,"nameInput",void 0);_.e([_.Br("#description-input"),_.n("design:type",Object)],QB.prototype,"descriptionInput",void 0);_.e([_.Br("#privacy-input"),_.n("design:type",Object)],QB.prototype,"privacyInput",void 0);_.e([_.Br("#voting-input"),_.n("design:type",Object)],QB.prototype,"votingInput",void 0);
_.e([_.Br("#scroller"),_.n("design:type",Object)],QB.prototype,"JSC$20586_scroller",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QB.prototype,"onPopupClosed",null);_.e([_.Y(),_.n("design:type",Object)],QB.prototype,"onValueChanged",void 0);_.e([_.m({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],QB);
_.w(QB,"ytd-playlist-settings-editor-renderer",function(){if(cgX===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);cgX=D}D=cgX;return D},{mode:1});var XSX;_.HX("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var GB=function(){return _.c.apply(this,arguments)||this};
_.J(GB,_.c);_.V=GB.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var D=this.get("data.nextButton.buttonRenderer.navigationEndpoint");D&&(this.nextNavigationEndpoint=D,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.V.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var D={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",D)}}};
_.V.onPopupOpened=function(D){D.detail!==this&&D.detail!==this.hostElement||!_.g("enable_premium_voluntary_pause")||_.zU(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.V.onNextButtonTap=function(){var D=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);D&&this.ytdOpenPopupBehavior.openPopup(D)};
_.V.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
GB.prototype.onPopupOpened=GB.prototype.onPopupOpened;GB.prototype.onSelectedResponseIndexChange=GB.prototype.onSelectedResponseIndexChange;GB.prototype.dataChanged=GB.prototype.dataChanged;_.e([_.l(_.lK),_.n("design:type",Object)],GB.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],GB.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],GB.prototype,"selectedResponseIndex",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GB.prototype,"dataChanged",null);_.e([_.Ni("selectedResponseIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GB.prototype,"onSelectedResponseIndexChange",null);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],GB.prototype,"onPopupOpened",null);_.e([_.m({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],GB);
_.w(GB,"ytd-red-cancel-survey-renderer",function(){if(XSX!==void 0)return XSX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return XSX=D},{mode:1});var AgU;var VB=function(){var D=_.c.apply(this,arguments)||this;D.closeButtonAriaLabel=_.p1("SBOX_INAPPROPRIATE_CANCEL");return D};
_.J(VB,_.c);VB.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
VB.prototype.onClickClose=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],VB.prototype,"rendererStamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],VB.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],VB.prototype,"closeButtonAriaLabel",void 0);_.e([_.m({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],VB);
_.w(VB,"ytd-search-filter-options-dialog-renderer",function(){if(AgU!==void 0)return AgU;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return AgU=D},{mode:1});var qr2;var LsX=function(){return function(D){D=D.availabilityType;return D===void 0||D==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||D==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var PJ=function(){var D=_.c.apply(this,arguments)||this;D.qualityOptions=[];D.upsellOptions=[];D.showUpsellSection=!1;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.rememberSettingsChecked=!1;return D};
_.J(PJ,_.c);_.V=PJ.prototype;_.V.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}}}}};
_.V.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.V.updateQualityOptions=function(){if(this.formats===void 0)_.zU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var D=[],v=[];this.showUpsellSection=!1;for(var h=_.P(this.formats),a=h.next();!a.done;a=h.next())(a=a.value)&&(a.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?v.push(a):D.push(a));D.length&&(this.qualityOptions=Uqr(D));v.length&&(this.showUpsellSection=!0,this.upsellOptions=Uqr(v))}};
_.V.updateRememberString=function(){if(this.downloadQualityPickerEntity)var D=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var v;D=(v=this.data)==null?void 0:v.premiumRememberSettingString}else{var h;D=(h=this.data)==null?void 0:h.rememberSettingString}D=D===void 0?_.p1("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):D;this.rememberSettingsCheckboxRenderer={title:_.MD(D),disabled:!1}};
_.V.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.GT.Object.defineProperties(PJ.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
PJ.prototype.updateRememberString=PJ.prototype.updateRememberString;PJ.prototype.updateQualityOptions=PJ.prototype.updateQualityOptions;PJ.prototype.dataChanged=PJ.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],PJ.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],PJ.prototype,"data",void 0);
_.e([_.l(_.Mm),_.n("design:type",Object)],PJ.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Boolean)],PJ.prototype,"selectedUpsellQuality",void 0);_.e([_.Y({computed:"computeIcon_(data.premiumIcon)",value:""}),_.n("design:type",String)],PJ.prototype,"premiumIcon",void 0);_.e([_.Y({selector:gZr,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.n("design:type",Object)],PJ.prototype,"downloadQualityPickerEntity",void 0);
_.e([_.Y(),_.n("design:type",Array)],PJ.prototype,"qualityOptions",void 0);_.e([_.Y(),_.n("design:type",Array)],PJ.prototype,"upsellOptions",void 0);_.e([_.Y(),_.n("design:type",Object)],PJ.prototype,"showUpsellSection",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],PJ.prototype,"darkerDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],PJ.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.e([_.Br("#remember-settings"),_.n("design:type",HTMLInputElement)],PJ.prototype,"rememberSettingsCheckbox",void 0);_.e([_.Y(),_.n("design:type",Object)],PJ.prototype,"rememberSettingsChecked",void 0);_.e([_.Y(),_.n("design:type",Function)],PJ.prototype,"onRememberSettingsCheckedChanged",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PJ.prototype,"dataChanged",null);
_.e([_.Ni("downloadQualityPickerEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PJ.prototype,"updateQualityOptions",null);_.e([_.Ni("selectedUpsellQuality"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PJ.prototype,"updateRememberString",null);_.e([_.m({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],PJ);
_.w(PJ,"ytd-download-quality-selector-content",function(){if(qr2!==void 0)return qr2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return qr2=D},{mode:1});var b2r;var xO=function(){var D=_.c.apply(this,arguments)||this;D.selectedUpsellQuality=!1;D.qualityOptions=[];D.darkerDarkTheme=_.g("web_darker_dark_theme");D.useUpsellDismissAlternate=_.g("use_not_now_dl_upsell_dismiss_cta");D.shouldShowAlternateUpsellDimiss=!1;D.rememberSettings=!1;D.rememberSettingsChecked=!1;D.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};D.rememberSettingsCheckedChanged=function(v){D.rememberSettingsChecked=v};
return D};
_.J(xO,_.c);_.V=xO.prototype;
_.V.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.MD(_.p1("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.MD(_.p1("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.MD(_.p1("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.MD(_.p1("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.V.updateQualityOptions=function(){this.formats===void 0?_.zU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Uqr(this.formats)};
_.V.onQualityOptionsSelect=function(D){if(this.qualityOptions&&D){D!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var v=_.P(this.qualityOptions.entries()),h=v.next();!h.done;h=
v.next()){h=_.P(h.value);var a=h.next().value;h=h.next().value;var Q=void 0,G=void 0;if(((Q=h)==null?void 0:(G=Q.settingsRadioOptionRenderer)==null?void 0:G.id)===D){this.selectedQualityIndex=a;D=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((D=this.formats[a])==null?void 0:D.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.V.onClickSubmit=function(){var D;if((D=this.downloadButtonRenderer)==null||!D.isDisabled){var v,h;D=(h=(v=this.data)==null?void 0:v.onSubmitEndpoint)!=null?h:{};var a,Q;if(this.formats&&(((a=_.k(D,_.Jn))==null?0:a.videoId)||((Q=_.k(D,_.pj))==null?0:Q.playlistId))){var G,x,f,C,U,L;v={formatType:(C=(G=this.formats)==null?void 0:(x=G[(f=this.selectedQualityIndex)!=null?f:0])==null?void 0:x.format)!=null?C:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(U=this.getOfflineEndpoint(D))==null?void 0:(L=U.actionParams)==null?void 0:L.settingsAction)};this.getOfflineEndpoint(D).actionParams=v;this.ytComponentBehavior.resolveCommand(D)}_.zU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.V.onClickUpsell=function(){var D;if((D=this.upsellButtonRenderer)==null||!D.isDisabled){var v,h;D=(h=(v=this.data)==null?void 0:v.upsellEndpoint)!=null?h:{};this.ytComponentBehavior.resolveCommand(D);_.zU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);v="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var a,Q,G,x;v=(x=(a=this.formats)==null?void 0:(Q=a[(G=this.selectedQualityIndex)!=null?G:0])==null?void 0:Q.format)!=null?x:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:v}})}};
_.V.onClickClose=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.V.getOfflineSettingsAction=function(D,v){return D?v===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":v:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.V.getOfflineEndpoint=function(D){return _.k(D,_.Jn)?_.k(D,_.Jn):_.k(D,_.pj)};
_.GT.Object.defineProperties(xO.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.MD(_.p1("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
xO.prototype.updateQualityOptions=xO.prototype.updateQualityOptions;xO.prototype.dataChanged=xO.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],xO.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Number)],xO.prototype,"selectedQualityIndex",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"selectedUpsellQuality",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],xO.prototype,"ytdReduxBehavior",void 0);
_.e([_.Y({selector:gZr,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.n("design:type",Object)],xO.prototype,"downloadQualityPickerEntity",void 0);_.e([_.Y(),_.n("design:type",Array)],xO.prototype,"qualityOptions",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],xO.prototype,"darkerDarkTheme",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],xO.prototype,"useUpsellDismissAlternate",void 0);
_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"downloadButtonRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"upsellButtonRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"cancelButtonRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"upsellCancelButtonRenderer",void 0);_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"rememberSettings",void 0);
_.e([_.Y(),_.n("design:type",Object)],xO.prototype,"rememberSettingsChecked",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xO.prototype,"dataChanged",null);_.e([_.Ni("downloadQualityPickerEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xO.prototype,"updateQualityOptions",null);_.e([_.m({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],xO);
_.w(xO,"ytd-download-quality-selector-renderer",function(){if(b2r!==void 0)return b2r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return b2r=D},{mode:1});var d52;var Mg=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(Mg,_.c);Mg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mg.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Mg.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Mg.prototype,"darkerDarkTheme",void 0);_.e([_.Y({computed:"computeIcon_(data.infoIcon)"}),_.n("design:type",Object)],Mg.prototype,"infoIcon",void 0);
_.e([_.Y({computed:"computeIcon_(data.warningIcon)"}),_.n("design:type",Object)],Mg.prototype,"warningIcon",void 0);_.e([_.m({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Mg);
_.w(Mg,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(d52!==void 0)return d52;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return d52=D},{mode:1});var jCX;var Cs=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(Cs,_.c);Cs.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cs.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"}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Cs.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Cs.prototype,"darkerDarkTheme",void 0);_.e([_.m({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Cs);
_.w(Cs,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(jCX!==void 0)return jCX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return jCX=D},{mode:1});var sCX;var oz=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(oz,_.c);oz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oz.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"}}}}};
oz.prototype.onServiceRequestSentOrCompleted=function(D,v){v&&v.actions&&v.actions.length>0&&_.zU(this.hostElement,"yt-close-popup-action",[this.is])};
oz.prototype.onServiceRequestSentOrCompleted=oz.prototype.onServiceRequestSentOrCompleted;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],oz.prototype,"darkerDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],oz.prototype,"data",void 0);
_.e([_.lc("yt-service-request-completed"),_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],oz.prototype,"onServiceRequestSentOrCompleted",null);_.e([_.m({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],oz);
_.w(oz,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(sCX!==void 0)return sCX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return sCX=D},{mode:1});var m5K;var Fa=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.submitButtonDisabled=!0;return D};
_.J(Fa,_.c);_.V=Fa.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.V.onDataChanged=function(){var D,v,h;if(((D=this.data)==null?void 0:(v=D.confirmButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:h.isDisabled)!==void 0){var a,Q,G;this.submitButtonDisabled=(a=this.data)==null?void 0:(Q=a.confirmButton)==null?void 0:(G=Q.buttonRenderer)==null?void 0:G.isDisabled}};
_.V.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.V.updateSubmitButtonDisabledFromBinding=function(D){this.submitButtonDisabled=D.detail.value};
_.V.updateSubmitButtonDisabledFromConfirmCheckbox=function(D){this.submitButtonDisabled=!D.detail.value};
Fa.prototype.onDataChanged=Fa.prototype.onDataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Fa.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Fa.prototype,"darkerDarkTheme",void 0);
_.e([_.Y(),_.n("design:type",Object)],Fa.prototype,"submitButtonDisabled",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fa.prototype,"onDataChanged",null);_.e([_.m({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Fa);
_.w(Fa,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(m5K!==void 0)return m5K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return m5K=D},{mode:1});var H2r;var zB=function(){return _.c.apply(this,arguments)||this};
_.J(zB,_.c);_.GT.Object.defineProperties(zB.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D,v,h;return((D=this.data)==null?void 0:D.title)+" "+((v=this.data)==null?void 0:v.metadataPrimary)+" "+((h=this.data)==null?void 0:h.metadataSecondary)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],zB.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zB.prototype,"data",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],zB.prototype,"ariaLabel",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],zB);
_.w(zB,"ytd-compact-product-list-item-renderer",function(){if(H2r!==void 0)return H2r;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return H2r=D},{mode:1});var yg2;var Uq=function(){return _.c.apply(this,arguments)||this};
_.J(Uq,_.c);Uq.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]]"}}}}}};
_.GT.Object.defineProperties(Uq.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Uq.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Uq.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Uq);
_.w(Uq,"ytd-compact-product-list-renderer",function(){if(yg2!==void 0)return yg2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return yg2=D},{mode:1});var wS$;var Ls=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(Ls,_.c);_.V=Ls.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.getBackgroundUrl=function(){var D=this.get("data.headerImage.thumbnails");return D?"url("+_.UA(D,this.hostElement.clientWidth)+")":""};
_.V.onDataChanged=function(){var D=this.getBackgroundUrl();D&&(this.header.style.backgroundImage=D);D=_.wd();var v=_.yC(),h=this.get("data.trackingParams");h&&v&&D&&_.tP(D,v,_.d4(h));D=_.P(this.hostElement.querySelectorAll("yt-img-shadow"));for(v=D.next();!v.done;v=D.next())v.value.onShow()};
_.V.onPopupClosed=function(D){_.xU(D).localName==="ytd-membership-post-cancel-renderer"&&_.zU(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Ls.prototype.onPopupClosed=Ls.prototype.onPopupClosed;Ls.prototype.onDataChanged=Ls.prototype.onDataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ls.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Ls.prototype,"darkerDarkTheme",void 0);
_.e([_.Br("#header"),_.n("design:type",HTMLDivElement)],Ls.prototype,"header",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ls.prototype,"onDataChanged",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ls.prototype,"onPopupClosed",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Ls);
_.w(Ls,"ytd-membership-post-cancel-renderer",function(){if(wS$!==void 0)return wS$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return wS$=D},{mode:1});var e5U;var ZC=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(ZC,_.c);ZC.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ZC.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ZC.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],ZC.prototype,"darkerDarkTheme",void 0);_.e([_.Br("ytd-feedback-survey-renderer"),_.n("design:type",Object)],ZC.prototype,"feedbackSurveyRenderer",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ZC);
_.w(ZC,"ytd-sponsorship-confirm-cancel-content",function(){if(e5U!==void 0)return e5U;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return e5U=D},{mode:1});var nQ2;var Eq=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.maybeSubmitFeedback=function(){D.content&&D.content.maybeSubmitFeedback()};
return D};
_.J(Eq,_.c);_.V=Eq.prototype;_.V.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.V.onYtPopupOpened=function(D,v){v===this&&this.data&&this.data.onOpenCommands&&_.ZD(this.hostElement,this.data.onOpenCommands,this.hostElement);_.zU(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.V.onYtPopupClosed=function(D,v){(v&&v.canceled===!0||v&&v.canceled===!1&&v.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ZD(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.V.onYtServiceRequestError=function(D){_.Dj(this.hostElement,D.detail.error.message)};
_.V.onDataChanged=function(){if(this.isAttached){var D=this.backgroundUrl;D&&(_.ZW(this.hostElement).querySelector("#header").style.backgroundImage=D)}};
_.GT.Object.defineProperties(Eq.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return D?"url("+_.UA(D,this.hostElement.clientWidth)+")":""}}});
Eq.prototype.onDataChanged=Eq.prototype.onDataChanged;Eq.prototype.onYtServiceRequestError=Eq.prototype.onYtServiceRequestError;Eq.prototype.onYtServiceRequestCompleted=Eq.prototype.onYtServiceRequestCompleted;Eq.prototype.onYtPopupClosed=Eq.prototype.onYtPopupClosed;Eq.prototype.onYtPopupOpened=Eq.prototype.onYtPopupOpened;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Eq.prototype,"data",void 0);_.e([_.Y({value:function(){return _.p1("SBOX_INAPPROPRIATE_CANCEL")}}),
_.n("design:type",String)],Eq.prototype,"closeButtonAriaLabel",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Eq.prototype,"darkerDarkTheme",void 0);_.e([_.Br("#scrollable"),_.n("design:type",Object)],Eq.prototype,"scrollable",void 0);_.e([_.Br("ytd-sponsorship-confirm-cancel-content"),_.n("design:type",Object)],Eq.prototype,"content",void 0);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Eq.prototype,"onYtPopupOpened",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Eq.prototype,"onYtPopupClosed",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Eq.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Eq.prototype,"onYtServiceRequestError",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Eq.prototype,"onDataChanged",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Eq);
_.w(Eq,"ytd-sponsorship-confirm-cancel-renderer",function(){if(nQ2!==void 0)return nQ2;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return nQ2=D},{mode:_.E_("kevlar_poly_si_batch_j081")?1:2});var O23;var Iz=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(Iz,_.c);Iz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Iz.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Iz.prototype,"darkerDarkTheme",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Iz);
_.w(Iz,"ytd-sponsorships-celebration-content",function(){if(O23!==void 0)return O23;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return O23=
D},{mode:1});var Ko$;var TXZ=_.DK(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),gw=function(){var D=_.c.apply(this,arguments)||this;D.scriptsAppended=!1;D.useFullWidthPrimaryButton=!1;D.buttonOverrides={type:"tonal",style:"overlay-dark"};return D};
_.J(gw,_.c);_.V=gw.prototype;_.V.dataChanged=function(){var D;this.useFullWidthPrimaryButton=!((D=this.data)==null||!D.useFullWidthPrimaryButton)};
_.V.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:_.g("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var D;(D=this.header)==null||D.style.setProperty("background-color",this.backgroundColor);if(D=this.headerImageUrl){var v;(v=this.header)==null||v.style.setProperty("background-image",D)}v=_.wd(4);D=_.yC(4);var h=this.get("data.trackingParams");if(h&&D&&v){var a=_.d4(h);_.tP(v,D,a);_.g("combine_ve_grafts")?_.c8().graftServerVe(h,D,4):_.tP(v,D,a)}v=_.P(this.hostElement.querySelectorAll("yt-img-shadow"));for(D=v.next();!D.done;D=v.next())D.value.onShow();if(v=this.get("data.gtmId"))_.vt(v,
_.eA("GL","")),this.setupConversionTracking()};
_.V.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("script");var v=_.$I(TXZ.join(""));_.QM(D,v);document.head.appendChild(D);D=document.createElement("noscript");D.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(D);this.scriptsAppended=!0}};
_.V.onPopupClosed=function(D){if(_.xU(D).localName==="ytd-sponsorships-celebration-renderer"){_.zU(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var v;this.data&&((v=this.data)==null?0:v.dismissCommand)&&_.pb.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.GT.Object.defineProperties(gw.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.uu(D)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return D?"url("+_.UA(D,this.hostElement.getBoundingClientRect().width)+")":""}}});
gw.prototype.onPopupClosed=gw.prototype.onPopupClosed;gw.prototype.onDataChanged=gw.prototype.onDataChanged;gw.prototype.dataChanged=gw.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],gw.prototype,"data",void 0);
_.e([_.Br("#header"),_.n("design:type",HTMLElement)],gw.prototype,"header",void 0);_.e([_.Y(),_.n("design:type",Object)],gw.prototype,"scriptsAppended",void 0);_.e([_.Y({type:Boolean,reflectToAttribute:!0}),_.n("design:type",Object)],gw.prototype,"useFullWidthPrimaryButton",void 0);_.e([_.Y(),_.n("design:type",Object)],gw.prototype,"buttonOverrides",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gw.prototype,"dataChanged",null);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gw.prototype,"onDataChanged",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],gw.prototype,"onPopupClosed",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],gw);
_.w(gw,"ytd-sponsorships-celebration-renderer",function(){if(Ko$!==void 0)return Ko$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return Ko$=D},{mode:1});var R5K;var kO=function(){var D=_.c.apply(this,arguments)||this;D.isToggleChecked=!1;return D};
_.J(kO,_.c);kO.prototype.onDataChanged=function(){var D;this.isToggleChecked=((D=this.data)==null?void 0:D.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
kO.prototype.close=function(){var D;((D=this.data)==null?0:D.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
kO.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var D,v=_.k((D=this.data)==null?void 0:D.switchButton,tub);v&&(this.isToggleChecked&&v.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(v.switchOnInnertubeCommand),!this.isToggleChecked&&v.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(v.switchOffInnertubeCommand))};
kO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kO.prototype.onDataChanged=kO.prototype.onDataChanged;_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],kO.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],kO.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],kO.prototype,"isToggleChecked",void 0);_.e([_.Y({value:_.p1("CLOSE")}),_.n("design:type",String)],kO.prototype,"closeButtonAriaLabel",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kO.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],kO);
_.w(kO,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(R5K!==void 0)return R5K;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return R5K=D},{mode:1});var i2X;var Sx=function(){return _.c.apply(this,arguments)||this};
_.J(Sx,_.c);_.V=Sx.prototype;_.V.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"}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.playerElement.stop()};
_.V.onYtServiceRequestCompleted=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.V.onYtServiceRequestError=function(D){_.Dj(this.hostElement,D.detail.error.message)};
_.V.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.V.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.V.getTier=function(D,v){return!D||!D.tiers||v<0?null:_.k(D.tiers[v],vir)};
_.V.moreThanOne=function(D){return!!(D&&D.length>1)};
_.V.tierOverviewTap=function(D){var v=this;this.selectedTier=D.model.index;_.$R(this,function(){_.F1(v.hostElement,"yt-refit")})};
_.V.computeSelectedClass=function(D,v){return this.isSelected(D,v)?"selected":""};
_.V.computeButtonAriaPressed=function(D,v){return this.isSelected(D,v)?"true":"false"};
_.V.isSelected=function(D,v){return D===v};
_.V.onDataChanged=function(){_.ZW(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ZW(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var D=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),
v=D.next();!v.done;v=D.next())v.value.onShow();var h;this.set("selectedTier",(h=this.get("data.targetTierIndex"))!=null?h:0);var a;(D=(a=this.data)==null?void 0:a.onVisible)&&this.ytComponentBehavior.resolveCommand(D)};
_.V.initializeVe=function(D){var v=_.wd(),h=_.yC(),a=this.get("data.trackingParams");h&&v&&(this.screenLayer=4,v=_.KJ(_.RvA)(void 0,69877,{clientScreenNonce:v,visualElement:h},void 0,void 0,void 0),_.nm(v,69877,4),h=_.yC(4),a&&h&&(a=_.d4(a),_.tP(v,h,a),D&&(this.offerVideoVe=_.En(74659),_.tP(v,a,this.offerVideoVe))))};
_.V.setHeaderBackground=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ZW(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.uu(D);if(D=this.getHeaderImage())D=_.UA(D,screen.width),_.ZW(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+D+")"};
_.V.getHeaderImage=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&D?D:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setupVideoPlayer=function(D){var v=this,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1)return h=v.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),a=v.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.g("kevlar_player_update_killswitch")?v.playerElement.update({args:{autoplay:h,video_id:D,player_params:a}}):v.playerElement.loadVideoWithPlayerVars({autoplay:h,video_id:D,player_params:a}),
x.yield(v.playerElement.getPlayerPromise(),2);Q=x.yieldResult;Q.addEventListener("onStateChange",function(f){v.onPlayerStateChange(f)});
Q.setScreenLayer(v.screenLayer);(G=_.wd(4))&&v.offerVideoVe&&_.u1(G,v.offerVideoVe);h&&(v.pauseOtherPlayers(),v.playerElement.focusOnPlayer(),v.playerElement.getPlayer().hideControls(),_.c1(_.HK,function(){v.fadeOutHeaderOverlay()},4E3));
_.YI(x)})};
_.V.onPlayerStateChange=function(D){D===1?this.backgroundPlayerElement&&(D=this.backgroundPlayerElement.player_.getPlayerState(),D!==1&&D!==3||this.backgroundPlayerElement.pause()):D===0&&(_.ZW(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ZW(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.V.fadeOutHeaderOverlay=function(){_.ZW(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.V.onHeaderTap=function(){if(this.offerVideo){_.ZW(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var D;((D=this.playerElement.player_)==null?void 0:D.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(D=_.wd(4))&&this.offerVideoVe&&_.hA(D,this.offerVideoVe)}};
_.V.getBackgroundImageLayerClass=function(D){return D?"background-image-layer-with-video":""};
_.V.getHeaderClass=function(D){return D?"header-with-video":""};
_.V.getHeaderOverlayClass=function(D){return D?"header-overlay-with-video":""};
_.V.getTitleContainerClass=function(D,v){return D?"title-container-with-video":v?"title-container-without-video-flexible":"title-container-without-video"};
_.V.tierTitleDisplayStatus=function(D){return this.moreThanOne(D)?"hide":"show"};
_.V.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.xd().resolve(_.Ok).getPlayerElement():this.backgroundPlayerElement=_.Mq();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var D=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=D===1||D===3;this.backgroundPlayerElement.pause()}};
_.V.isMiniplayerActive=function(){return _.xd().resolve(_.Ok).isMiniplayerActive()};
_.V.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("selected-tier-changed",this.selectedTier))};
Sx.prototype.selectedTierChangedForBinding=Sx.prototype.selectedTierChangedForBinding;Sx.prototype.onDataChanged=Sx.prototype.onDataChanged;Sx.prototype.onYtPopupClosed=Sx.prototype.onYtPopupClosed;Sx.prototype.onYtPopupOpened=Sx.prototype.onYtPopupOpened;Sx.prototype.onYtServiceRequestError=Sx.prototype.onYtServiceRequestError;Sx.prototype.onYtServiceRequestCompleted=Sx.prototype.onYtServiceRequestCompleted;
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Sx.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Sx.prototype,"data",void 0);_.e([_.Y({value:0}),_.n("design:type",Number)],Sx.prototype,"selectedTier",void 0);
_.e([_.Y({value:""}),_.n("design:type",String)],Sx.prototype,"offerVideo",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Sx.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.e([_.Y({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.iq(this)}}),
_.n("design:type",String)],Sx.prototype,"playerId",void 0);_.e([_.Br("tp-yt-paper-dialog-scrollable"),_.n("design:type",Object)],Sx.prototype,"scrollable",void 0);_.e([_.Br("ytd-sponsorships-tier-renderer"),_.n("design:type",Object)],Sx.prototype,"tierRenderer",void 0);_.e([_.Br("#player"),_.n("design:type",Object)],Sx.prototype,"playerElement",void 0);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Sx.prototype,"onYtServiceRequestCompleted",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Sx.prototype,"onYtServiceRequestError",null);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sx.prototype,"onYtPopupOpened",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sx.prototype,"onYtPopupClosed",null);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sx.prototype,"onDataChanged",null);
_.e([_.Ni("selectedTier"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sx.prototype,"selectedTierChangedForBinding",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Sx);
_.w(Sx,"ytd-sponsorships-offer-renderer",function(){if(i2X!==void 0)return i2X;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return i2X=D},{mode:_.E_("kevlar_poly_si_batch_j077")?1:2});var WoX;var JM=function(){var D=_.c.apply(this,arguments)||this;D.buttonOverrides={type:"filled",style:"mono"};return D};
_.J(JM,_.c);JM.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}}}}}};
JM.prototype.backgroundColorChanged=function(){var D,v,h,a=(v=_.k((D=this.data)==null?void 0:D.content,heU))==null?void 0:(h=v.backgroundColor)==null?void 0:h.backgroundColor;a&&(D=_.rT(a),_.ZW(this.hostElement).querySelector("#banner").style.backgroundColor=D,_.ZW(this.hostElement).querySelector("#abstract-art").style.backgroundColor=D)};
JM.prototype.attached=function(){this.JSC$20672_scroller&&(this.JSC$20672_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20672_scroller.attached&&typeof this.JSC$20672_scroller.attached==="function"&&this.JSC$20672_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JM.prototype.backgroundColorChanged=JM.prototype.backgroundColorChanged;_.e([_.Y(),_.n("design:type",Object)],JM.prototype,"data",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#scroller"),_.n("design:type",Object)],JM.prototype,"JSC$20672_scroller",void 0);_.e([_.Y(),_.n("design:type",Object)],JM.prototype,"buttonOverrides",void 0);
_.e([_.Ni("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JM.prototype,"backgroundColorChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],JM);
_.w(JM,"ytd-sponsorships-promotion-celebration-renderer",function(){if(WoX!==void 0)return WoX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return WoX=D},{mode:_.E_("kevlar_poly_si_batch_j077")?1:2});var tcr;var rg$;var ps=function(){return _.c.apply(this,arguments)||this};
_.J(ps,_.c);ps.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
ps.prototype.computeIsInitiallyChecked=function(D){return D===1};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ps.prototype,"data",void 0);_.e([_.Br("#checkbox"),_.n("design:type",Object)],ps.prototype,"checkbox",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],ps);
_.w(ps,"ytd-subscription-toggle-option-renderer",function(){if(rg$!==void 0)return rg$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return rg$=D},{mode:1});var lg=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return D};
_.J(lg,_.c);lg.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"}}}};
lg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lg.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var D=_.ZW(this.hostElement).querySelector("#options").selected;D=this.data.options[D].subscriptionRadioOptionRenderer.serviceEndpoint;var v=_.ZW(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");v&&D&&D.modifyChannelNotificationPreferenceEndpoint&&(v=v.getValue())&&(D.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[v]);_.xd().resolve(_.fx).resolveCommand(D,{form:{element:this.hostElement}});
_.zU(this.hostElement,"yt-close-popup-action")};
_.GT.Object.defineProperties(lg.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var D=this.data.options,v=0;v<D.length;v++){var h=D[v].subscriptionRadioOptionRenderer;if(h&&h.selected)return v}return null}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],lg.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],lg.prototype,"eventForwardingBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],lg.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],lg.prototype,"darkerDarkTheme",void 0);_.e([_.N("data.options"),_.n("design:type",Object),_.n("design:paramtypes",[])],lg.prototype,"initialIndex",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],lg);
_.w(lg,"ytd-subscription-notification-options-renderer",function(){if(tcr!==void 0)return tcr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return tcr=D},{mode:1});var uPr;var Ng=function(){return _.c.apply(this,arguments)||this};
_.J(Ng,_.c);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ng.prototype,"data",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Ng);
_.w(Ng,"ytd-tvfilm-offer-groups-renderer",function(){if(uPr!==void 0)return uPr;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return uPr=D},{mode:1});var DoC;var YO=function(){var D=_.c.apply(this,arguments)||this;D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(YO,_.c);_.V=YO.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.V.computeThumbnailClass=function(D){return D.thumbnailOverlays?D.isShow?"thumbnail-show":"thumbnail-movie":D.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.V.computeCommerceSectionClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.V.computeTitleClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.V.onDataChanged=function(){[].concat(_.j_(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(D){D.onShow()})};
YO.prototype.onDataChanged=YO.prototype.onDataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],YO.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],YO.prototype,"darkerDarkTheme",void 0);
_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YO.prototype,"onDataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],YO);
_.w(YO,"ytd-ypc-offers-overlay-renderer",function(){if(DoC!==void 0)return DoC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return DoC=D},{mode:_.E_("kevlar_poly_si_batch_j028")?1:2});var vDb;var h2m=function(){this.usedMethods=new Set};
h2m.prototype.add=function(D){this.usedMethods.add(D)};
h2m.prototype.reset=function(){this.usedMethods.clear()};var QDm=function(D,v){this.query=D;this.previousSearchQuery=v;this.id=a_K++;if(!$o3){v=_.eA("SBOX_SETTINGS");D="https://"+((v==null?void 0:v.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var h=v==null?void 0:v.REQUEST_LANGUAGE;h&&(D+="&hl="+h);(h=v==null?void 0:v.REQUEST_DOMAIN)&&(D+="&gl="+h);D+="&client=youtube&gs_ri=youtube";(h=v==null?void 0:v.SUGG_EXP_ID)&&(D+="&sugexp="+encodeURIComponent(h));(h=v==null?void 0:v.PSUGGEST_TOKEN)&&(D+="&tok="+h);(v=
v==null?void 0:v.SESSION_INDEX)&&(D+="&authuser="+v);_.g("desktop_enable_visual_suggest")&&(D+="&h=180&w=320&ytvs=1");$o3=D}},Gpd=function(D){var v="q="+encodeURIComponent(D.query);
D.previousSearchQuery&&(v+="&pq="+encodeURIComponent(D.previousSearchQuery));return v},VUm=function(){var D=_.eA("SBOX_SETTINGS"),v={};
if(D==null?0:D.SEND_VISITOR_DATA)v["X-Goog-Visitor-Id"]=D==null?void 0:D.VISITOR_DATA;return v},PJZ=function(D){var v=$o3;
v+="&gs_id="+D.id.toString(36);v+="&q="+encodeURIComponent(D.query);v+="&cp="+D.query.length;D.previousSearchQuery&&(v+="&pq="+encodeURIComponent(D.previousSearchQuery));(D=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(v+="&video_id="+D);return v},a_K=0,$o3="";var xom=_.bV.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,MUI=_.bV.SEARCH_ENTITY_SUGGESTION_MOVIE,f_S=_.bV.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,CJr=_.bV.SEARCH_ENTITY_SUGGESTION_TV_SHOW,oDd=function(D,v){this.text=D;this.bold=v},FCI=function(D,v,h){this.input=v;
this.index=h;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=D[0];this.type=D[1];this.subtypes=D[2];var a;this.displayText=QG((a=D[3])==null?void 0:a.b);var Q;this.ignoredPrefix=QG((Q=D[3])==null?void 0:Q.a);var G,x;this.hasNewVideo=((G=D[3])==null?void 0:(x=G.zam)==null?void 0:x.toString())==="true"?!0:!1;var f;this.visualSuggestUrl=(f=D[3])==null?void 0:f.zai;var C;this.entityType=QG((C=D[3])==null?void 0:C.zap);var U;this.entityName=QG((U=D[3])==null?void 0:U.zao);var L;v=QG((L=
D[3])==null?void 0:L.zaf);var Z;this.entityMid=(Z=D[3])==null?void 0:Z.zae;L=Eer(this.subtypes,this.entityMid);if(v&&L){if(v){Z="";switch(L){case "YOUTUBE_ENTITY_TYPE_SONG":Z=f_S;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":Z=xom;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":Z=CJr;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":Z=MUI}L=L==="YOUTUBE_ENTITY_TYPE_SONG"||L==="YOUTUBE_ENTITY_TYPE_ALBUM"?Z+" \u2022  \u2022 "+v:v}else L="";this.entitySubtitle=L}var E;this.externalChannelId=(E=D[3])==null?void 0:E.zav;var I;
this.entityThumbnailAttributionUrl=(I=D[3])==null?void 0:I.zaq},UoI=function(D,v){var h=[],a,Q=(a=D.displayText)!=null?a:D.text;
(v==null?0:v.useEntityName)&&z2Z(D)&&D.entityName&&(Q=D.entityName);if(D.type===33)return h.push(new oDd(Q,!1)),h;if(Q.length>=D.input.length&&Q.substring(0,D.input.length)===D.input)h.push(new oDd(D.input,!1)),h.push(new oDd(Q.substring(D.input.length),!0));else{var G=new Set(D.input.split(/\s/)),x=Q.split(/\s/);h=x.map(function(f,C){return new oDd(f.trim()+(C===x.length-1?"":" "),!G.has(f))})}return h},z2Z=function(D){var v=!!Eer(D.subtypes);
D=!!D.entityMid;return v||D};var LC2=function(D){this.rawResponse=["",[],{}];this.suggestions=[];try{var v=JSON.parse(IYr(D));if(typeof v==="object"&&v!==null)this.rawResponse=v;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(a){console.log("Suggest: Failed to parse SuggestResponse!");return}var h=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(a,Q){return new FCI(a,h,Q)})};var Zdr=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new h2m;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20709_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},EDK,I_2=function(){EDK||(EDK=new Zdr);
return EDK};
Zdr.prototype.updateSuggestions=function(D){var v=this;this.availableSuggestions.forEach(function(h){v.previousSuggestions[h]=!0});
this.availableSuggestions=D.map(function(h){var a=h.type.toString();h.subtypes.length>0&&(a+="i"+h.subtypes.join("i"),a+="k"+h.suggestionSources.COMPLETE_SERVER.toString());return a})};
var gDS=function(D,v){var h=Date.now();D.firstEditTime<0&&(D.firstEditTime=h);v&&(D.lastQueryBuildTime=h);D.lastEditTime=h};
Zdr.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20709_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var kpI=function(D){var v="";D.availableSuggestions.forEach(function(Q){delete D.previousSuggestions[Q]});
for(var h=_.P(Object.keys(D.previousSuggestions)),a=h.next();!a.done;a=h.next())a=a.value,D.previousSuggestions[a]&&(v+=(v?"j":"")+a);return v},Sh$=function(D,v){var h=[];
v&&(h[1]=v.toString());h[0]="youtube";h[7]=Date.now()-D.startTime;h[6]=D.sessionNumber;D.zeroPrefixSuggestionCount>=0&&(h[33]=D.zeroPrefixSuggestionCount);h[13]=D.outOfSyncResponseCount;if(D.availableSuggestions.length>0){for(var a=v="",Q=0,G=_.P(D.availableSuggestions),x=G.next();!x.done;x=G.next())x=x.value,x!==a&&(Q>1&&(v+="l"+Q),v+=(a?"j":"")+x,Q=0,a=x),Q+=1;Q>1&&(v+="l"+Q);h[3]=v}h[35]=kpI(D);D.selectedSuggestionIndex>=0&&(h[2]=D.selectedSuggestionIndex);var f;if(v=(f=_.eA("SBOX_SETTINGS"))==
null?void 0:f.SUGG_EXP_ID)h[19]=D.normalize(v),f=0,D.experimentTriggeredBeforeFinal&&(f|=1),D.experimentTriggeredFinal&&(f|=2),h[20]=f;h[26]=Array.from(D.inputMethodsTracker.usedMethods).join("j");if(D.JSC$20709_totalRoundTripTime>0){h[15]=D.JSC$20709_totalRoundTripTime;h[14]=D.maxRoundTripTime;f=[];for(Q=v=0;Q<10;Q++)a=D.roundTripTimeHistogram[Q],a===0?v++:(v>1?f.push(Q+"-"+a):v===1?f.push("0j"+a):f.push(a.toString()),v=0);f=f.join("j");h[16]=f}D.zeroPrefixRoundTripTime>0&&(h[36]=D.zeroPrefixRoundTripTime);
D.lastQueryBuildTime>0&&(h[18]=D.lastQueryBuildTime-D.startTime);D.firstEditTime>0&&(h[4]=D.firstEditTime-D.startTime);D.lastEditTime>0&&(h[5]=D.lastEditTime-D.startTime);return h.join(".")};
Zdr.prototype.normalize=function(D){return D.replaceAll(".","-")};
var Jvs=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var BJ=function(){var D=_.c.apply(this,arguments)||this;D.microphoneSpinnerActive=!1;D.noAnimations=!1;D.boundExitClick=function(){D.onExitButtonClick()};
D.speechOverlayClassName="";D.isLevelAnimating=!1;D.playCloseDialogAudioFeedback=!0;D.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return D};
_.J(BJ,_.c);_.V=BJ.prototype;_.V.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=PvZ()};
_.V.dataChanged=function(){this.logDialog()};
_.V.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var D;(D=this.manager.audioPlayer)!=null&&(D.JSC$20028_audioEnabled=!1)}this.manager.stop();(D=this.manager.audioPlayer)!=null&&(D.JSC$20028_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.V.handleSpeechQueryCompleteAction=function(D){var v=D.navigationAction;v&&(D.trackingParams&&_.c8().graftServerVe(D.trackingParams,this.dialogVe,5),_.F1(this.hostElement,"yt-navigate",{endpoint:v,tempData:this.getNavigationParams(v),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.V.onExitButtonClick=function(){this.closeDialog()};
_.V.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var D;if((D=this.manager)!=null){var v;(v=D.audioPlayer)==null||cb(v,"failure");D.setState("microphone-off");D.stop()}}else(D=this.manager)==null||D.start()};
_.V.transcriptionChanged=function(){var D,v;(((D=this.transcription)==null?0:D.low)||((v=this.transcription)==null?0:v.high))&&this.setState("transcribing",this.transcription)};
_.V.stateChanged=function(){this.setState(this.state,this.transcription)};
_.V.logDialog=function(){var D;(D=this.data)!=null&&D.trackingParams&&(D=_.c8(),_.bl(D,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=D.graftServerVe(this.data.trackingParams,void 0,5))};
_.V.getNavigationParams=function(D){var v={};if(_.g("web_yt_searchbox")){var h=I_2();h.inputMethodsTracker.add(6);h=Sh$(h,15);v.gs_l=h;var a;v.oq=((a=_.k(D,_.BR))==null?void 0:a.query)||""}else if(D=window.ytvoicesearchloggingparams){if(D=D())v.oq=D.oq,v.gs_l=D.gs_l}else _.Wv(Error("Dl"));return v};
_.V.closeDialog=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.V.setState=function(D,v){if(this.data){var h=this.data,a={};switch(D){case "listening":a={headerText:h.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:h.microphoneButtonAriaLabel};break;case "timeout":a={headerText:h.promptHeader,microphoneState:"try-again",microphoneLabel:h.promptMicrophoneLabel,microphoneAriaLabel:h.promptMicrophoneLabel};break;case "microphone-off":a={headerText:h.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:h.promptMicrophoneLabel,
microphoneAriaLabel:h.promptMicrophoneLabel};break;case "transcribing":(v==null?0:v.low)||(v==null?0:v.high)?a={transcriptionLow:v==null?void 0:v.low,transcriptionHigh:v==null?void 0:v.high,microphoneState:"speaking",microphoneAriaLabel:h.microphoneButtonAriaLabel}:a={headerText:h.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:h.microphoneButtonAriaLabel};break;case "processing":a={headerText:h.loadingHeader,microphoneState:"processing",microphoneAriaLabel:h.microphoneButtonAriaLabel};
break;case "offline":a={headerText:h.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:h.connectionErrorMicrophoneLabel,microphoneAriaLabel:h.connectionErrorMicrophoneLabel};break;case "permission":a={headerText:h.permissionsHeader,bodyLine1:h.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:h.permissionsSubtext};break;case "permission-denied":a={headerText:h.disabledHeader,bodyLine1:h.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:h.disabledSubtext}}a.className=
D;this.speechOverlayState=a;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.V.setMicrophoneState=function(D){var v=this.isLevelAnimating;this.isLevelAnimating=D==="speaking";!v&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=D==="processing"&&!this.noAnimations};
_.V.setClass=function(D){this.speechOverlayClassName&&_.Iy(this.hostElement,this.speechOverlayClassName,!1);D&&(this.speechOverlayClassName=D,_.Iy(this.hostElement,D,!0))};
_.V.runLevelAnimation=function(){var D=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var v=1+Math.random()*.75,h=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+h/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+v+")");_.HK.addJob(function(){D.runLevelAnimation()},3,h)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
BJ.prototype.stateChanged=BJ.prototype.stateChanged;BJ.prototype.transcriptionChanged=BJ.prototype.transcriptionChanged;BJ.prototype.onPopupClosed=BJ.prototype.onPopupClosed;BJ.prototype.dataChanged=BJ.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],BJ.prototype,"rendererStamperBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],BJ.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],BJ.prototype,"eventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],BJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],BJ.prototype,"speechOverlayState",void 0);
_.e([_.Y(),_.n("design:type",Object)],BJ.prototype,"microphoneSpinnerActive",void 0);_.e([_.Y({type:_.g("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.n("design:type",Object)],BJ.prototype,"noAnimations",void 0);_.e([_.Y({selector:function(D){var v;return(v=D.voiceSearch)==null?void 0:v.transcription}}),
_.n("design:type",Object)],BJ.prototype,"transcription",void 0);_.e([_.Y({selector:function(D){var v;return(v=D.voiceSearch)==null?void 0:v.overlay}}),
_.n("design:type",String)],BJ.prototype,"state",void 0);_.e([_.Y(),_.n("design:type",Object)],BJ.prototype,"boundExitClick",void 0);_.e([_.Br("#microphone-levels"),_.n("design:type",HTMLElement)],BJ.prototype,"level",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BJ.prototype,"dataChanged",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BJ.prototype,"onPopupClosed",null);
_.e([_.qi("transcription"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BJ.prototype,"transcriptionChanged",null);_.e([_.qi("state"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BJ.prototype,"stateChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],BJ);
_.w(BJ,"ytd-voice-search-dialog-renderer",function(){if(vDb!==void 0)return vDb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return vDb=D},{mode:1});var pe$;var cJ=function(){var D=_.c.apply(this,arguments)||this;D.isOverlay=!1;D.hidden=!1;return D};
_.J(cJ,_.c);_.V=cJ.prototype;_.V.onPopupClosed=function(){this.toggleIconState(!1)};
_.V.computeIcon=function(){var D,v,h;return(v=_.k((D=this.data)==null?void 0:D.icon,Vfr))==null?void 0:(h=v.icon)==null?void 0:h.iconType};
_.V.computeIconBadgeShape=function(){var D;return{iconBadgeType:"cart",iconBadgeText:(D=this.iconBadgeEntity)==null?void 0:D.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.onClick=function(){var D;(D=this.data)!=null&&D.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.V.computeHidden=function(D){return!D};
_.V.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
cJ.prototype.onPopupClosed=cJ.prototype.onPopupClosed;_.e([_.l(_.Mm),_.n("design:type",Object)],cJ.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],cJ.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],cJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],cJ.prototype,"isOverlay",void 0);
_.e([_.Y({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.n("design:type",Object)],cJ.prototype,"hidden",void 0);_.e([_.Y({selectorArgs:["data.iconBadgeEntityKey"],selector:function(D,v){return _.gR(D.entities,"iconBadgeEntity",v)}}),
_.n("design:type",Object)],cJ.prototype,"iconBadgeEntity",void 0);_.e([_.Br("yt-icon-button"),_.n("design:type",HTMLButtonElement)],cJ.prototype,"iconButton",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cJ.prototype,"onPopupClosed",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],cJ);
_.w(cJ,"ytd-icon-badge-topbar-button-renderer",function(){if(pe$!==void 0)return pe$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return pe$=D},{mode:1});var l_s;var Xa=function(){var D=_.c.apply(this,arguments)||this;D.premiumOptions=[];D.darkerDarkTheme=_.g("web_darker_dark_theme");return D};
_.J(Xa,_.c);Xa.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.GT.Object.defineProperties(Xa.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Xa.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Array)],Xa.prototype,"premiumOptions",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],Xa.prototype,"darkerDarkTheme",void 0);_.e([_.N("premiumOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],Xa.prototype,"hasPremiumOptions",null);
_.e([_.m({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Xa);
_.w(Xa,"ytd-offline-promo-content",function(){if(l_s!==void 0)return l_s;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return l_s=D},{mode:1});var NVb;var AM=function(){var D=_.c.apply(this,arguments)||this;D.premiumOptions=[];return D};
_.J(AM,_.c);AM.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D;this.premiumOptions=ZjX((D=this.data)==null?void 0:D.formats)};
AM.prototype.onClickSubmit=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var D;(D=_.Mq())==null||D.pause()};
AM.prototype.attached=function(){this.JSC$20729_scroller&&(this.JSC$20729_scroller.dialogElement=this.hostElement.parentNode)};
_.GT.Object.defineProperties(AM.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
AM.prototype.dataChanged=AM.prototype.dataChanged;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],AM.prototype,"data",void 0);
_.e([_.Y({computed:"computeIcon_(data.headersIcon)",value:""}),_.n("design:type",String)],AM.prototype,"headersIcon",void 0);_.e([_.Y(),_.n("design:type",Array)],AM.prototype,"premiumOptions",void 0);_.e([_.Br("#scroller"),_.n("design:type",Object)],AM.prototype,"JSC$20729_scroller",void 0);_.e([_.N("headersIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],AM.prototype,"showIcon",null);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AM.prototype,"dataChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],AM);
_.w(AM,"ytd-offline-promo-renderer",function(){if(NVb!==void 0)return NVb;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return NVb=D},{mode:1});var YhI;var qg=function(){var D=_.c.apply(this,arguments)||this;D.playbackPauseInterval=NaN;D.isLoading=!1;D.hasError=!1;D.dialogClass="";D.youtubeLabel=_.p1("LOGO_ALT_LABEL",{},"YouTube Home");D.logoName="yt-logos-ext:yt-logo-updated";D.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return D};
_.J(qg,_.c);_.V=qg.prototype;_.V.onDataChange=function(){var D;if(this.showEOMV1Text=!((D=this.data)==null||!D.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.V.attached=function(){this.pausePlayer()};
_.V.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.V.handleLangSelect=function(D){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[D.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.V.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.V.handleSaveConsent=function(D){var v=this;this.showLoadingSpinner();this.showLoadingSpinner();MqZ(_.k(D,Vud)).catch(function(h){_.yR(new _.XH("Something went wrong when save consent "+(h.message?h.message:h)+"."));v.hideLoadingSpinner();v.showErrorMessage()})};
_.V.handleDisablePersonalization=function(D){var v=this;this.showLoadingSpinner();fUd(_.k(D,GPZ)).then(function(){v.dialog.close();v.resumePlayer()}).catch(function(h){_.yR(new _.XH("Something went wrong when disable personalization "+(h.message?h.message:h)+"."));
v.hideLoadingSpinner();v.showErrorMessage()})};
_.V.showLoadingSpinner=function(){var D=this;this.showSpinnerJobId=_.HK.addLowPriorityJob(function(){D.isLoading=!0},500)};
_.V.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.HK.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.V.showErrorMessage=function(){var D=this;this.hasError=!0;_.HK.addLowPriorityJob(function(){D.hasError=!1},2E3)};
_.V.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Ez(function(){try{var D=_.Mq();D&&D.pause()}catch(v){}},100))};
_.V.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var D=_.Mq();D&&D.play()}catch(v){}};
_.GT.Object.defineProperties(qg.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var v=["SHIELD","WARNING","BAR_CHART"],h=this.data.eomV1Text.essentialCookieMsg.items,a=0;a<v.length&&a<h.length;a++)D.push({icon:v[a],text:h[a]});return D}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var v=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],h=this.data.eomV1Text.nonEssentialCookieMsg.items,a=0;a<v.length&&a<h.length;a++)D.push({icon:v[a],text:h[a]});return D}}});
qg.prototype.onDataChange=qg.prototype.onDataChange;_.e([_.Y(),_.n("design:type",Object)],qg.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],qg.prototype,"showEOMV1Text",void 0);_.e([_.Y(),_.n("design:type",Object)],qg.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Object)],qg.prototype,"hasError",void 0);_.e([_.Y(),_.n("design:type",Number)],qg.prototype,"showSpinnerJobId",void 0);_.e([_.Y(),_.n("design:type",Object)],qg.prototype,"dialogClass",void 0);
_.e([_.Br("#dialog"),_.n("design:type",Object)],qg.prototype,"dialog",void 0);_.e([_.Br("#cb-header"),_.n("design:type",HTMLElement)],qg.prototype,"header",void 0);_.e([_.Br("#lang-select"),_.n("design:type",HTMLElement)],qg.prototype,"langSelect",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],qg.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],qg.prototype,"ytComponentBehavior",void 0);
_.e([_.Y(),_.n("design:type",String)],qg.prototype,"youtubeLabel",void 0);_.e([_.Y(),_.n("design:type",Object)],qg.prototype,"logoName",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qg.prototype,"onDataChange",null);_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],qg.prototype,"eomEssentialCookieMsgItems",null);
_.e([_.N("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],qg.prototype,"eomNonEssentialCookieMsgItems",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],qg);
_.w(qg,"ytd-consent-bump-v2-lightbox",function(){if(YhI!==void 0)return YhI;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return YhI=D},{mode:1});var BV$;var bg=function(){return _.c.apply(this,arguments)||this};
_.J(bg,_.c);bg.prototype.ready=function(){if(!_.Yd()||k62)var D=!0;else k62=!0,D=!1;D||(D=document.querySelector("ytd-app"),D||(D=document.body),this.internalLightBox=_.ZW(D).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.e([_.Y(),_.n("design:type",Object)],bg.prototype,"data",void 0);_.e([_.Br("#lightbox"),_.n("design:type",Object)],bg.prototype,"lightBox",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],bg);
_.w(bg,"ytd-consent-bump-v2-renderer",function(){if(BV$!==void 0)return BV$;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return BV$=D},{mode:1});var cvX;var XeK;var AvK;var dw=function(){return _.c.apply(this,arguments)||this};
_.J(dw,_.c);_.V=dw.prototype;_.V.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&d6r(this.toastManager,this.toastType)};
_.V.open=function(D){this.toast&&(this.ephemeralAction&&_.xd().resolve(_.vI).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=D!=null?D:0,this.toastManager.enqueue(this.toast,D)):this.toast.open())};
_.V.close=function(D){var v;(v=this.toast)==null||v.close();this.toastManager&&D===1&&d6r(this.toastManager,D)};
_.V.refit=function(){var D;(D=this.toast)==null||D.refit()};
_.V.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var D;(D=this.toast)==null||D.close()}};
_.V.setVerticalOffset=function(D){this.toast&&(this.toast.verticalOffset=D,this.toast.fit())};
_.V.computeButtonClass_=function(D){return D?"toast-button":""};
_.V.computeText_=function(D){return _.$V(D)};
_.V.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IS("toast-opened-changed",this.toastOpened))};
_.V.updateToastOpenedFromBinding=function(D){this.toastOpened=D.detail.value};
_.GT.Object.defineProperties(dw.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var D,v,h=(D=this.data)==null?void 0:(v=D.actionButton)==null?void 0:v.buttonRenderer;return(h==null?void 0:h.command)||(h==null?void 0:h.serviceEndpoint)||(h==null?void 0:h.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var D=[],v;((v=this.data)==null?0:v.responseText)&&D.push(_.$V(this.data.responseText));var h;((h=this.data)==null?0:h.subText)&&D.push(_.$V(this.data.subText));var a,Q;if((a=this.data)==null?0:(Q=a.actionButton)==null?0:Q.buttonRenderer){var G,x;D.push(((G=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(x=G.accessibilityData)==null?void 0:x.label)||_.$V(this.data.actionButton.buttonRenderer.text))}return D.filter(function(f){return f}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var D,v;return(v=(D=this.toast)==null?void 0:D.opened)!=null?v:!1}}});
dw.prototype.toastOpenedChangedForBinding=dw.prototype.toastOpenedChangedForBinding;dw.prototype.toastOpenedChanged=dw.prototype.toastOpenedChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],dw.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],dw.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],dw.prototype,"duration",void 0);
_.e([_.Y(),_.n("design:type",Number)],dw.prototype,"toastType",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],dw.prototype,"useCloseButton",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],dw.prototype,"closeToastOnActionButtonClick",void 0);_.e([_.Y({value:function(){return _.p1("SBOX_INAPPROPRIATE_CANCEL")}}),
_.n("design:type",String)],dw.prototype,"closeButtonAriaLabel",void 0);_.e([_.Y(),_.n("design:type",Boolean)],dw.prototype,"toastOpened",void 0);_.e([_.Y(),_.n("design:type",Boolean)],dw.prototype,"hasOpened",void 0);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],dw.prototype,"command",null);_.e([_.N("labelText","command","duration"),_.n("design:type",Object),_.n("design:paramtypes",[])],dw.prototype,"ephemeralAction",null);
_.e([_.N("ephemeralAction"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dw.prototype,"hasEphemeralAction",null);_.e([_.Br("#toast"),_.n("design:type",Object)],dw.prototype,"toast",void 0);_.e([_.Y({value:function(){return{style:"call-to-action-inverse"}}}),
_.n("design:type",Object)],dw.prototype,"buttonOverrides",void 0);_.e([_.Y({value:{style:"mono-inverse"}}),_.n("design:type",Object)],dw.prototype,"closeButtonOverrides",void 0);_.e([_.Y({value:function(){return _.xd().resolve(_.PV(_.Wk))}}),
_.n("design:type",Object)],dw.prototype,"toastManager",void 0);_.e([_.N("data.responseText","data.subText","data.actionButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],dw.prototype,"labelText",null);_.e([_.Ni("toastOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dw.prototype,"toastOpenedChanged",null);
_.e([_.Ni("toastOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dw.prototype,"toastOpenedChangedForBinding",null);_.e([_.Ry({is:"yt-notification-action-renderer",disableElementRegistration:!0})],dw);
_.w(dw,"yt-notification-action-renderer",function(){if(AvK===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;XeK===void 0&&(XeK=document.createElement("template"));var a=XeK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);AvK=D}D=AvK;return D},{mode:2});var jx=function(){var D=_.c.apply(this,arguments)||this;D.duration=4E3;D.downloadingCount=0;D.downloadedCount=0;D.downloadingOnlySmartDownloads=!1;D.sessionTotalDownloads=0;D.sessionDownloaded=0;D.previousSessionsDownloaded=0;D.totalDownloadPercentage=0;D.currentDownloadProgress=0;D.currentDownloadPercentage=0;D.isLeaderTab=!0;D.isFullScreen=!1;D.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};D.boundBeforeUnload=function(v){D.isLeaderTab&&D.downloadingCount>0&&(v.preventDefault(),
v.returnValue=!0)};
return D};
_.J(jx,_.c);_.V=jx.prototype;
_.V.open=function(){this.updateDownloadState();if(this.data){var D=this.sessionDownloaded+1,v=this.sessionTotalDownloads>1?_.p1("VIDEOS_DOWNLOADING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+D+"/"+this.sessionTotalDownloads):_.p1("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(v=this.sessionTotalDownloads>1?_.p1("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
D+"/"+this.sessionTotalDownloads):_.p1("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));D=this.isLeaderTab?_.p1("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.$V(this.data.responseText)!==v||_.$V(this.data.subText)!==D)this.set("data.responseText",_.aX(v)),this.set("data.subText",_.aX(D)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.V.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.V.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.V.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.V.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var D=this.downloadedCount-this.previousSessionsDownloaded;D<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-D);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.V.handleFullscreenChange=function(D){(this.isFullScreen=D)||this.updatePopup()};
jx.prototype.updateCurrentDownloadProgress=jx.prototype.updateCurrentDownloadProgress;jx.prototype.updatePopup=jx.prototype.updatePopup;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],jx.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],jx.prototype,"ytEventForwardingBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],jx.prototype,"actionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"duration",void 0);_.e([_.Y({selector:function(D){return _.Jp2(D.entities).length}}),
_.n("design:type",Object)],jx.prototype,"downloadingCount",void 0);_.e([_.Y({selector:IU2}),_.n("design:type",Object)],jx.prototype,"downloadedCount",void 0);_.e([_.Y({selector:function(D){var v=_.Jp2(D.entities);return EZK(D.entities,v)}}),
_.n("design:type",Object)],jx.prototype,"downloadingOnlySmartDownloads",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"sessionTotalDownloads",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"sessionDownloaded",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"previousSessionsDownloaded",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"totalDownloadPercentage",void 0);
_.e([_.Y({selector:function(D){var v;D=(v=_.Jp2(D.entities))!=null?v:[];return D.length>0?_.oG8(D.slice(-1)):0}}),
_.n("design:type",Object)],jx.prototype,"currentDownloadProgress",void 0);_.e([_.Y(),_.n("design:type",Object)],jx.prototype,"currentDownloadPercentage",void 0);_.e([_.Y({selector:_.Bhf}),_.n("design:type",Object)],jx.prototype,"isLeaderTab",void 0);_.e([_.Br("yt-notification-action-renderer"),_.n("design:type",Object)],jx.prototype,"notificationActionRenderer",void 0);
_.e([_.qi("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jx.prototype,"updatePopup",null);_.e([_.qi("currentDownloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jx.prototype,"updateCurrentDownloadProgress",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],jx);
_.w(jx,"ytd-video-download-toast-renderer",function(){if(cvX!==void 0)return cvX;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return cvX=D},{mode:1});var qhm;var bdK;var sq=function(){return _.c.apply(this,arguments)||this};
_.J(sq,_.c);sq.prototype.computeIsRedLogo=function(D,v){!D&&v&&(D=v);return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
sq.prototype.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],sq.prototype,"componentBehavior",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.n("design:type",Boolean)],sq.prototype,"isRedLogo",void 0);_.e([_.Y({computed:"computeLogoName(data)"}),_.n("design:type",String)],sq.prototype,"logoName",void 0);_.e([_.Y({value:{}}),_.n("design:type",Object)],sq.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],sq.prototype,"logoType",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-logo"})],sq);
_.w(sq,"ytd-logo",function(){if(bdK!==void 0)return bdK;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return bdK=D},{mode:_.E_("kevlar_poly_si_batch_j074")?1:2});var mU=function(){var D=_.c.apply(this,arguments)||this;D.animationRef={};return D};
_.J(mU,_.c);_.V=mU.prototype;_.V.attached=function(){document.addEventListener("yt-navigate-finish",_.pZ(this,this.logYoodle))};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.pZ(this,this.logYoodle))};
_.V.logYoodle=function(){var D,v;if((D=this.data)==null?0:(v=D.loggingDirectives)==null?0:v.trackingParams)this.ytRendererBehavior.markDirty(),_.c8().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.V.computeHideImg=function(D,v){return!!D||!!v};
_.V.computeHideYtdLogo=function(D,v){return!D||!!v};
_.V.computeHideLottie=function(D){return!D};
_.V.computeIsRedLogo=function(D){return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
_.V.renderLogoEntity=function(){var D=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),v=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),h=this.getLogoTitleText(this.data),a=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==D&&(this.url=D);this.animatedUrl!==v&&(this.animatedUrl=v);this.logoTitleText!==h&&(this.logoTitleText=h);this.lottieUrl!==a&&(this.lottieUrl=a,this.lottiePlayerProps=this.computeLottiePlayerProps(a))};
_.V.getSanitizedThumbnail=function(D){return D&&D.thumbnails?_.j0q(D.thumbnails,122)||"":""};
_.V.getThumbnailUrl=function(D,v){if(!v)return"";var h,a;D=D?(h=v.darkThemeLogo)==null?void 0:h.thumbnail:(a=v.lightThemeLogo)==null?void 0:a.thumbnail;return this.getSanitizedThumbnail(D)};
_.V.getAnimatedThumbnailUrl=function(D,v){return v?this.getSanitizedThumbnail(D?v.darkThemeAnimatedLogo:v.lightThemeAnimatedLogo):""};
_.V.getLogoTitleText=function(D){if(D)return _.$V(D.tooltipText)};
_.V.computeLogoIcon=function(D,v){if(v){var h,a;return D?(h=v.darkThemeLogo)==null?void 0:h.icon:(a=v.lightThemeLogo)==null?void 0:a.icon}};
_.V.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.V.getLottieUrl=function(D,v){var h,a,Q,G;return D?v==null?void 0:(h=v.darkThemeLogo)==null?void 0:(a=h.lottieAnimation)==null?void 0:a.url:v==null?void 0:(Q=v.lightThemeLogo)==null?void 0:(G=Q.lottieAnimation)==null?void 0:G.url};
_.V.computeLottiePlayerProps=function(D){if(D){var v;if((v=this.animationRef)==null?0:v.lottieEl){var h;(h=this.animationRef)==null||h.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:D,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.V.onLottieError=function(){this.data&&this.lottieUrl&&_.F1(this.hostElement,"yoodle-error")};
_.V.onImgError=function(){this.data&&!this.lottieUrl&&_.F1(this.hostElement,"yoodle-error")};
mU.prototype.playAnimation=mU.prototype.playAnimation;mU.prototype.renderLogoEntity=mU.prototype.renderLogoEntity;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],mU.prototype,"data",void 0);_.e([_.Y({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.n("design:type",Boolean)],mU.prototype,"hideImg",void 0);
_.e([_.Y({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.n("design:type",Boolean)],mU.prototype,"hideYtdLogo",void 0);_.e([_.Y({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.n("design:type",Boolean)],mU.prototype,"hideLottie",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.n("design:type",Boolean)],mU.prototype,"isRedLogo",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],mU.prototype,"useDarkThemeYoodle",void 0);_.e([_.Y(),_.n("design:type",String)],mU.prototype,"url",void 0);_.e([_.Y(),_.n("design:type",String)],mU.prototype,"animatedUrl",void 0);_.e([_.Y(),_.n("design:type",String)],mU.prototype,"logoTitleText",void 0);_.e([_.Y({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.n("design:type",Object)],mU.prototype,"logoIcon",void 0);_.e([_.Y(),_.n("design:type",Object)],mU.prototype,"logoType",void 0);
_.e([_.Y(),_.n("design:type",String)],mU.prototype,"lottieUrl",void 0);_.e([_.Y(),_.n("design:type",Object)],mU.prototype,"lottiePlayerProps",void 0);_.e([_.Y(),_.n("design:type",Object)],mU.prototype,"animationRef",void 0);_.e([_.Ni("data"),_.Ni("useDarkThemeYoodle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mU.prototype,"renderLogoEntity",null);
_.e([_.lc("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],mU.prototype,"playAnimation",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],mU);
_.w(mU,"ytd-yoodle-renderer",function(){if(qhm!==void 0)return qhm;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return qhm=D},{mode:_.E_("kevlar_poly_si_batch_j074")?1:2});var dod;var jDC;var sDr=_.W4.currentPageTypeSelector,moU=_.W4.currentPageSubTypeSelector,HJ=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return D};
_.J(HJ,_.c);_.V=HJ.prototype;_.V.onYoodleError=function(){_.g("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.V.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.V.computeTitle=function(D,v,h){return h&&(v==null?0:v.tooltipText)?_.$V(v.tooltipText):_.$V(D)};
_.V.computeAriaLabel=function(D,v,h){return h&&(v==null?0:v.tooltipText)?_.$V(D):""};
_.V.computeShowYoodle=function(D,v,h){return!D||!v&&!!h&&!_.sV.isEmpty(h)};
_.V.onNavigateHomeAction=function(){if(_.g("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D;(D=_.ZW(this.hostElement).querySelector(".yt-simple-endpoint"))==null||D.click()}};
_.V.computeLogoHref=function(D,v,h){var a;(h==null?0:h.onTapCommand)?a=this.componentBehavior.computeHref_(h.onTapCommand):D&&(a=this.componentBehavior.computeHref_(D));return a?a:v};
_.V.computeCommand=function(D,v){return(v==null?void 0:v.onTapCommand)||D};
_.V.getEndpointForm=function(){if(_.g("kevlar_topbar_disable_cache_only_home")){var D=_.xd().resolve(_.Mv),v=sDr(D.getState())||"";D=moU(D.getState())||"";return{disableCache:v==="ytd-browse"&&D==="home"}}return{disableCache:!0}};
HJ.prototype.onYoodleError=HJ.prototype.onYoodleError;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],HJ.prototype,"componentBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],HJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],HJ.prototype,"countryCode",void 0);_.e([_.Y({selectorArgs:["data.overrideEntityKey"],selector:function(D,v){return _.gR(D.entities,"logoEntity",v)}}),
_.n("design:type",Object)],HJ.prototype,"logoEntity",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.n("design:type",Boolean)],HJ.prototype,"showYoodle",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],HJ.prototype,"yoodleError",void 0);_.e([_.Y({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.n("design:type",String)],HJ.prototype,"titleText",void 0);
_.e([_.Y({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.n("design:type",String)],HJ.prototype,"ariaLabelText",void 0);_.e([_.Y({value:"/"}),_.n("design:type",String)],HJ.prototype,"defaultEndpointUrl",void 0);_.e([_.Y({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.n("design:type",String)],HJ.prototype,"endpointUrl",void 0);
_.e([_.Y({computed:"computeCommand(data.endpoint, logoEntity)"}),_.n("design:type",String)],HJ.prototype,"command",void 0);_.e([_.Y(),_.n("design:type",Object)],HJ.prototype,"logoType",void 0);_.e([_.Y({}),_.n("design:type",Boolean)],HJ.prototype,"useDarkThemeYoodle",void 0);_.e([_.lc("yoodle-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"onYoodleError",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],HJ);
_.w(HJ,"ytd-topbar-logo-renderer",function(){if(jDC!==void 0)return jDC;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return jDC=D},{mode:_.E_("kevlar_poly_si_batch_j027")?1:2});var HdS=0;var yvm=_.bV.SEARCH_APPEND_LABEL,we$=_.bV.SUGGESTION_NEW_VIDEOS_TEXT,e2S=_.bV.SUGGESTION_THUMBNAIL_LABEL,nDK=_.bV.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Odb=_.H(function(D){function v(kp){var E2,hw;return _.M(function(NI){if(NI.nextAddress==1)return E2=new Request(kp),_.gE(NI,2),NI.yield(fetch(E2,{credentials:"include"}),4);if(NI.nextAddress!=2)return rr(!0),_.rl(NI,0);hw=_.NS(NI);_.yR(hw);_.YI(NI)})}
var h=D.isHighlighted;var a=D.suggestion;var Q=D.onClickCallback;var G=D.onHoverUpdateCallback;var x=D.labels;var f=D.queryBuilderFunction;var C=D.onRemoveCallback;var U=D.suggestionIndex;var L=D.generateUniqueId;var Z=D.highlightedId;var E=D.useScrollMargin;var I=D.isKeyboardMode;var S=null,B=null,A=_.va("div"),d=_.va("span");D=_.P(_.Zq(!1,void 0,"mxSc0e"));var b=D.next().value,W=D.next().value,K=_.$X("a",function(kp){kp&&_.Xv(237477,kp,B,function(E2){B=E2})}),O=_.$X("button",function(kp){kp&&_.Xv(237477,
kp,B,function(E2){B=E2})}),R=_.Jd(function(kp){if((kp==null?void 0:kp.button)===2)return kp.preventDefault(),!1;
var E2=_.wd();E2&&S&&_.aG(E2,S,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var hw;Q(kp,a().text,a().index,a().entityMid,kp==null?void 0:(hw=kp.detail)==null?void 0:hw.wasSelectedByKeyboard);return!1}),vA=function(){return a().type===35},f7=function(){return _.g("desktop_enable_single_suggestion_highlight")},xL=function(){return _.oZ("desktop_suggestions_panel_row_height")||0},kL=function(){var kp;
return _.g("desktop_enable_new_video_metadata")&&((kp=a())==null?void 0:kp.hasNewVideo)===!0},Z4=function(){return _.g("desktop_enable_visual_suggest")},S2=function(){return _.g("desktop_enable_entity_suggest")&&z2Z(a())},s8=function(){return a().entitySubtitle},Xf=function(){return f7()?(h==null?void 0:h())||Pm()&&!(I==null?0:I()):(h==null?void 0:h())||Pm()},dJ=function(){var kp=_.eA("SBOX_SETTINGS");
return vA()&&!(kp==null?0:kp.HIDE_REMOVE_LINK)},R4=function(){return UoI(a(),{useEntityName:S2()})},sF,rc=!((sF=_.xd().resolve(_.PV(_.$5)))==null||!sF()),I4=function(){return vA()?_.g("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},q1=function(){return x==null?void 0:x().SUGGESTION_DISMISS_LABEL},jt=function(){return x==null?void 0:x().SUGGESTION_DISMISSED_LABEL};
D=_.P(_.Zq(!1,void 0,"WMms1e"));sF=D.next().value;var rr=D.next().value;D=_.P(_.Zq(!1,void 0,"PyL0t"));var Zb=D.next().value,VO=D.next().value,Pm=Zb,Yp=_.Jd(function(){f(d.value.innerText);return!1}),C3=_.Jd(function(kp){kp.preventDefault();
return!1}),ZJ=_.Jd(function(kp){var E2=a().text,hw=_.eA("SBOX_SETTINGS"),NI="https://"+(hw.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
NI+="&delq="+encodeURIComponent(E2);(E2=hw==null?void 0:hw.PSUGGEST_TOKEN)&&(NI+="&tok="+E2);(hw=hw==null?void 0:hw.SESSION_INDEX)&&(NI+="&authuser="+hw);v(NI);kp.preventDefault();(kp=_.wd())&&B&&_.aG(kp,B,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");C(U==null?void 0:U());return!1}),VK=_.Jd(function(){if(f7()&&(I==null?0:I()))return!1;
VO(!0);G(!0);return!1}),oP=_.Jd(function(){VO(!1);
G(!1);return!1}),rJ=_.Jd(function(){W(!0);
return!1}),o4=_.Jd(function(){W(!1);
return!1}),Hm=_.Jd(function(kp){kp.preventDefault();
if(a().entityThumbnailAttributionUrl){kp=a().entityThumbnailAttributionUrl;var E2=a().entityName,hw={urlEndpoint:{url:kp},commandMetadata:{webCommandMetadata:{url:kp}}};kp={buttonViewModel:{title:_.p1("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};hw={buttonViewModel:{title:_.p1("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:hw}}};
E2={dialogHeaderViewModel:{headline:{content:E2!=null?E2:_.p1("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var NI={basicContentViewModel:{paragraphs:[{text:{content:_.p1("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};kp={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:E2,footer:{panelFooterViewModel:{primaryButton:hw,secondaryButton:kp,shouldHideDivider:!0}},content:NI}}}}};_.xd().resolve(_.fx).resolveCommand(kp)}return!1});
D=_.P(_.Zq("",void 0,"yG5Sx"));var gr=D.next().value,Jb=D.next().value;_.dM(function(){dJ()&&Jb(L==null?void 0:L(U==null?void 0:U()));A.value&&_.Xv(12453,A.value,S,function(kp){S=kp})});
return _.F(_.z,{cond:sF,then:function(){var kp={};return _.F("div",{class:_.S3("ytSuggestionComponentRemovedText",(kp.ytSuggestionComponentLargerRemovedText=function(){return Z4()},kp)),
style:function(){return xL()>0?"height: "+xL()+"px;":""},
role:"button"},jt)},
else:function(){var kp={},E2={};return _.F("div",{class:_.S3("ytSuggestionComponentSuggestion",(kp.ytSuggestionComponentSuggestionHover=function(){return!f7()},kp.ytSuggestionComponentHighlighted=Xf,kp.ytSuggestionComponentPersonalizedSuggestion=vA,kp.ytSuggestionComponentMweb=!1,kp.ytSuggestionComponentLargerSuggestion=function(){return kL()||Z4()},kp.ytSuggestionComponentThumbnailSuggestion=function(){return Z4()},kp.ytSuggestionComponentRoundedSuggestion=function(){return _.g("desktop_enable_scrollable_suggestions_panel")&&
_.g("desktop_enable_suggestions_panel_padding")},kp.ytSuggestionComponentThumbnailPadding=function(){return Z4()&&!vA()},kp)),
style:function(){return xL()>0?"height: "+xL()+"px;":""},
role:"presentation","on:mousedown":R,"on:mouseover":VK,"on:mouseout":oP,el:A},_.F("div",{class:_.S3("ytSuggestionComponentText",(E2.ytSuggestionComponentScrollMargin=E,E2)),"aria-label":function(){return kL()?a().text+" "+we$:a().text},
id:function(){return L==null?void 0:L(U==null?void 0:U())},
"on:mousedown":R,role:"option"},_.F(_.z,{cond:function(){return a().type!==33},
then:function(){return _.F(_.Y5,{icon:I4,className:"ytSuggestionComponentIcon"})}}),_.F("div",{class:"ytSuggestionComponentLeftContainer"},_.F("span",{el:d,
role:"button",tabindex:0},_.F(_.Xd,{each:R4},function(hw){return hw.bold?_.F("span",{class:"ytSuggestionComponentBold"},hw.text):_.F("span",null,hw.text)})),_.F(_.z,{cond:function(){return S2()&&!!a().entitySubtitle||kL()},
then:function(){return _.F("div",{class:"ytSuggestionComponentMetadataContainer"},_.F(_.z,{cond:function(){return S2()&&!!a().entitySubtitle},
then:function(){return _.F("div",{class:"ytSuggestionComponentEntitySubtitle"},s8)}}),_.F(_.z,{cond:function(){return kL()},
then:function(){return _.F("div",{class:"ytSuggestionComponentNewVideoContainer"},_.F("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.F("div",{class:"ytSuggestionComponentNewVideoText"},we$))}}))}}))),_.F("div",{class:"ytSuggestionComponentRightContainer"},_.F(_.z,{cond:function(){return Z4()&&a().visualSuggestUrl!==void 0},
then:function(){var hw={};return _.F("div",{class:"ytSuggestionComponentThumbnailContainer"},_.F("img",{"aria-label":e2S,class:_.S3("ytSuggestionComponentVisualSuggestThumbnail",(hw.ytSuggestionComponentCircularFrame=function(){return S2()&&a().subtypes.includes(790)},hw.ytSuggestionComponentEntitySuggestThumbnail=function(){return S2()},hw)),
src:function(){return a().visualSuggestUrl}}),_.F(_.z,{cond:function(){return S2()&&!!a().entityThumbnailAttributionUrl},
then:function(){var NI={};return _.F("span",{title:nDK,role:"tooltip"},_.F("div",{"on:mouseover":rJ,"on:mouseout":o4,"on:mousedown":Hm,class:_.S3("ytSuggestionComponentThumbnailOverlay",(NI.ytSuggestionComponentThumbnailOverlayHidden=function(){return!b()},NI))},_.F(_.Y5,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.F(_.A$,null,_.F(_.Bv,{when:function(){return Z4()&&dJ()}},function(){var hw={};
return _.F("button",{class:_.S3("ytSuggestionComponentRemoveLinkClearButton",(hw.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return gr()&&gr()===(Z==null?void 0:Z())},hw.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Xf()},hw)),
el:O,"on:mousedown":ZJ,"aria-label":q1,id:function(){return gr()}},_.F(_.Y5,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.F(_.Bv,{when:function(){return!(Z4()&&a().visualSuggestUrl!==void 0)&&dJ()}},function(){var hw={};
return _.F("a",{class:_.S3("ytSuggestionComponentRemoveLink",(hw.ytSuggestionComponentRemoveLinkDark=rc,hw.ytSuggestionComponentRemoveLinkSelected=function(){return gr()&&gr()===(Z==null?void 0:Z())},hw)),
el:K,"on:mousedown":ZJ,"aria-label":q1,tabindex:0,role:"button",id:function(){return gr()}},q1)}),_.F(_.Bv,{when:function(){return!1}},function(){return _.F("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Yp,"on:mousedown":C3,role:"button","aria-label":yvm},_.F(_.Y5,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Fi");var KCb=_.DK(["//www.google.com/textinputassistant/","/","_tia.js"]),TVX=_.H(function(){return _.F("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.F("button",{class:"ytdTextInputAssistantButton","on:click":_.Jd(function(){I_2().inputMethodsTracker.add(3);var D,v=(D=_.eA("SBOX_SETTINGS"))==null?void 0:D.REQUEST_LANGUAGE;if(v)return _.i4(_.UV(KCb,14,v)),!1})},_.F("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Gi");var R22=function(){this.cache=new Map},id3=function(D){for(var v=_.P(D.cache.entries()),h=v.next();!h.done;h=v.next()){var a=_.P(h.value);
h=a.next().value;a=a.next().value;a.suggestions.some(function(Q){return Q.type===35})&&D.cache.delete(h)}};var WCb=_.bV.SEARCH,tUX=_.bV.SEARCH_CLEAR_LABEL,rvX=new _.Uj("FAKE_SUGGEST_RESPONSE");_.zh(_.H(function(D){function v(){rJ||(rJ=setTimeout(function(){Hm()},1E3))}
function h(gJ,EF,s2){if(gJ.trim()){oP=gJ;_.wM("REFINEMENTS_TUPLE",void 0);ZJ=!0;var g0;EF=Sh$(Zb,EF);var zy=(g0=D.searchEndpoint)==null?void 0:g0.call(D);_.kf2(gJ,EF,zy,I4.value.value,s2);Hm();I4.value.value=gJ;I4.value.blur();Zb.reset()}}
function a(gJ){return _.M(function(EF){return EF.return(new Promise(function(s2){var g0=new XMLHttpRequest;g0.open("GET",PJZ(gJ),!0);g0.withCredentials=!0;var zy=_.eA("SBOX_SETTINGS");(zy==null?0:zy.SEND_VISITOR_DATA)&&g0.setRequestHeader("X-Goog-Visitor-Id",zy==null?void 0:zy.VISITOR_DATA);g0.onload=function(){s2(g0.responseText)};
g0.onerror=function(){_.yR(Error("Fl"));s2(null)};
setTimeout(function(){g0.abort()},1E4);
g0.send(null)}))})}
function Q(gJ){var EF,s2,g0,zy;return _.M(function(BW){switch(BW.nextAddress){case 1:return EF={credentials:"include",headers:VUm()},window.AbortController&&(s2=new AbortController,setTimeout(function(){s2.abort("ytsbox-suggest-timeout")},1E4),EF.signal=s2.signal),_.gE(BW,2),BW.yield(fetch(PJZ(gJ),EF),4);
case 4:g0=BW.yieldResult.text();_.rl(BW,3);break;case 2:return zy=_.NS(BW),zy!=="ytsbox-abort-last"&&zy!=="ytsbox-suggest-timeout"&&_.yR(zy),BW.return(null);case 3:return BW.return(g0)}})}
function G(gJ){var EF,s2,g0;return _.M(function(zy){switch(zy.nextAddress){case 1:if(EF=_.xd().resolve(_.PV(rvX)))return zy.return(EF);s2=Date.now();v();return _.g("yt_searchbox_xhr")?zy.yield(a(gJ),5):zy.yield(Q(gJ),4);case 4:g0=zy.yieldResult;zy.jumpTo(3);break;case 5:g0=zy.yieldResult;case 3:if(g0){rJ&&(clearTimeout(rJ),rJ=null);var BW=Zb,Hv=s2,w0=gJ.query.length===0;Hv=Date.now()-Hv;w0?BW.zeroPrefixRoundTripTime=Hv:(BW.JSC$20709_totalRoundTripTime+=Hv,BW.maxRoundTripTime=Math.max(BW.maxRoundTripTime,
Hv),w0=Math.floor(Hv/100),w0>=Jvs.length?++BW.roundTripTimeHistogram[9]:++BW.roundTripTimeHistogram[Jvs[w0]])}return zy.return(g0)}})}
function x(gJ){var EF,s2,g0;return _.M(function(zy){if(zy.nextAddress==1)return(EF=rr.cache.get(Gpd(gJ)))?zy.return(EF):zy.yield(G(gJ),2);s2=zy.yieldResult;if(s2===null)return zy.return(null);g0=new LC2(s2);gJ.query.length===0&&g0.suggestions.length===0||rr.cache.set(Gpd(gJ),g0);return zy.return(g0)})}
function f(gJ){var EF,s2;return _.M(function(g0){if(g0.nextAddress==1){VK=!1;var zy=oP;zy=_.QOq()==="search"?(_.i9(location.href,"search_query")||_.i9(location.href,"q"))===zy:!1;EF=new QDm(gJ,zy?oP:null);return g0.yield(x(EF),2)}s2=g0.yieldResult;if(s2===null)return g0.return();EF.query.length===0&&(Zb.zeroPrefixSuggestionCount=s2.suggestions.length);if(EF.id<=o4)return Zb.outOfSyncResponseCount++,g0.return();if(document.activeElement!==I4.value)return g0.return();o4=EF.id;var BW=Zb,Hv=s2.rawResponse[2]||
{};BW.experimentTriggeredBeforeFinal||(BW.experimentTriggeredBeforeFinal=BW.experimentTriggeredFinal);BW.experimentTriggeredFinal=!!Hv.e;Zb.updateSuggestions(s2.suggestions);A(-1);dJ([]);s2.suggestions!==I()&&u9(s2.suggestions.length);S(s2.suggestions);f7(s2.suggestions.length>0&&s2.suggestions[0].type===33);jt&&(jt.hidden=s2.suggestions.length===0,vA()?(jt.style.minWidth="",BW=jt.style,Hv=(zy=I()[0])==null?void 0:zy.ignoredPrefix,BW.marginLeft=(Hv?Math.min(Hv.length*6,q1.value.offsetWidth):0).toString()+
"px"):(jt.style.minWidth=q1.value.offsetWidth+"px",jt.style.marginLeft="0"),OX());_.YI(g0)})}
function C(){if(!ZJ)return!1;var gJ=_.eA("REFINEMENTS_TUPLE");return gJ?(gJ=gJ[1].map(function(EF,s2){return new FCI([EF,0,[71]],I4.value.value,s2)}),I()!==gJ&&u9(gJ.length),dJ([]),S(gJ),Zb.updateSuggestions(gJ),ZJ=!1,jt.hidden=gJ.length===0,VK=gJ.length>0,!0):!1}
function U(){var gJ=I4.value.value;(typeof gJ==="string"||gJ instanceof String)&&gJ!==""?K(!0):K(!1)}
function L(){if(_.QOq()==="search"){var gJ=window.location.href;try{var EF=_.i9(gJ,"search_query")||_.i9(gJ,"q")||""}catch(s2){EF=""}EF&&(I4.value.value=EF,K(!0))}}
var Z=_.P(_.Zq([],void 0,"OC8EPc")),E=Z.next().value;Z=Z.next().value;var I=E,S=Z;E=_.P(_.Zq(-1,void 0,"t2tVQb"));var B=E.next().value,A=E.next().value;E=_.P(_.Zq(-1,void 0,"v0RZCe"));var d=E.next().value,b=E.next().value;E=_.P(_.Zq(!1,void 0,"rjAnI"));var W=E.next().value,K=E.next().value;E=_.P(_.Zq(!1,void 0,"SyGLvb"));var O=E.next().value,R=E.next().value;Z=_.P(_.Zq(!1,void 0,"tL09Cb"));E=Z.next().value;Z=Z.next().value;var vA=E,f7=Z;Z=_.P(_.Zq(!1,void 0,"FlH7mc"));E=Z.next().value;var xL=Z.next().value;
Z=_.P(_.Zq(!1,void 0,"ea3fwe"));var kL=Z.next().value,Z4=Z.next().value;Z=_.P(_.Zq(1,void 0,"vSK1xe"));var S2=Z.next().value,s8=Z.next().value;Z=_.P(_.Zq([],void 0,"ijlw4b"));var Xf=Z.next().value,dJ=Z.next().value;Z=_.P(_.Zq(!1,void 0,"HcRey"));var R4=Z.next().value,sF=Z.next().value;Z=_.g("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var rc=_.va("yt-searchbox"),I4=_.va("input"),q1=_.va("div"),jt,rr=
new R22,Zb=I_2(),VO=_.xd().resolve(_.PV(_.$5)),Pm=function(){var gJ;return((gJ=D.forceDarkMode)==null?void 0:gJ.call(D))||!(VO==null||!VO())},Yp=function(){return _.g("desktop_enable_scrollable_suggestions_panel")},C3="i"+HdS++,ZJ=!1,VK=!1,oP="",rJ=null,o4=-1,Hm=function(){dJ([]);
S([]);f7(!1);jt&&(jt.hidden=!0);rJ&&(clearTimeout(rJ),rJ=null);A(-1)},gr=function(gJ,EF){gJ.preventDefault();
sF(!0);jt&&(jt.hidden=!1);var s2=B();gJ=I();var g0=Xf();EF=SnK(EF);s2+=EF;for(s2>=gJ.length?s2=-1:s2<-1&&(s2=gJ.length-1);s2!==-1&&(g0.includes(s2)||s2>=gJ.length||s2<0);)s2+=EF,s2>=gJ.length&&(s2=-1);A(s2);B()>=0&&(I4.value.value=I()[B()].text,b(0),U(),gJ=B(),g0=d(),(g0=document.getElementById(hN[gJ][g0]))&&Yp()&&(gJ===I().length-1?jt.scrollTop=jt.scrollHeight:g0.scrollIntoView({block:"nearest",inline:"start"})))},Jb=_.Jd(function(gJ){if(!(gJ.relatedTarget instanceof Element&&gJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){R(!0);
var EF;(EF=D.focusCallback)==null||EF.call(D,!0);C()||(VK?jt.hidden=!1:(_.F1(rc.value,"yt-autonav-pause-focus",{}),f(gJ.target.value)))}}),kp=_.Jd(function(gJ){if(!(gJ.relatedTarget instanceof Element&&gJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){R(!1);
var EF;(EF=D.focusCallback)==null||EF.call(D,!1);jt.scrollTop=0;jt.hidden=!0;_.F1(rc.value,"yt-autonav-pause-blur",{})}}),E2=function(gJ){gJ=SnK(gJ);
var EF;((EF=hN[B()])==null?0:EF[d()+gJ])&&b(d()+gJ)},hw=_.Jd(function(gJ){var EF=gJ.target;
switch(gJ.keyCode){case 13:gJ.preventDefault();var s2;if((s2=hN[B()])==null?0:s2[d()]){var g0;(g0=document.getElementById(hN[B()][d()]))==null||g0.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}gJ=gJ.shiftKey?4:3;s2=Zb;g0=B();s2.selectedSuggestionIndex=g0;h(EF.value,gJ);break;case 27:jt&&(jt.hidden=!0);break;case 40:gr(gJ,40);break;case 38:gr(gJ,38);break;case 39:E2(39);break;case 37:E2(37);break;case 229:Zb.inputMethodsTracker.add(4);break;default:Zb.inputMethodsTracker.add(1),
gDS(Zb)}return!1}),NI=_.Jd(function(gJ){f(gJ.target.value);
U();Yp()&&jt&&(jt.scrollTop=0);return!1}),nf=_.Jd(function(){Zb.inputMethodsTracker.add(2);
gDS(Zb);return!1});
_.dM(function(){if(jt){Zb.reset();if(window.ResizeObserver){var gJ=new ResizeObserver(function(){vA()||(jt.style.minWidth=q1.value.offsetWidth+"px")});
gJ.observe(q1.value);(new ResizeObserver(function(){OX()})).observe(jt);
_.dq(function(){gJ.disconnect()})}L();
window.addEventListener("yt-navigate-finish",L);window.addEventListener("yt-focus-searchbox",function(){I4.value.focus()});
var EF;xL((EF=_.eA("SBOX_SETTINGS"))==null?void 0:EF.HAS_ON_SCREEN_KEYBOARD)}else _.mV(new _.XH("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var W1=_.Jd(function(gJ){gJ.preventDefault();h(I4.value.value,12);return!1}),PW=_.Jd(function(gJ){gJ.preventDefault();
var EF,s2;(EF=I4)==null||(s2=EF.value)==null||s2.focus();var g0,zy;((g0=I4)==null?void 0:(zy=g0.value)==null?void 0:zy.value)!==""&&(I4.value.value="",I4.value.dispatchEvent(new Event("input")));return!1}),Wm=_.Jd(function(){var gJ=pR3(I4.value.value,I().filter(function(EF){return EF.type!==35}).map(function(EF){return{label:EF.text}}));
_.zU(rc.value,"yt-open-popup-action",[{openPopupAction:gJ},document.body]);return!1}),kC=_.Jd(function(){I4.value.focus();
return!1}),aU=function(gJ,EF,s2,g0,zy){Zb.selectedSuggestionIndex=s2;
h(EF,zy?3:1,g0)},UM=function(gJ){I4.value.value=gJ;
I4.value.dispatchEvent(new Event("input"));Zb.inputMethodsTracker.add(5);gDS(Zb,!0)},hN=[[]],gW=function(gJ){var EF="searchbox-suggestion"+_.iE(_.QP);
hN[gJ].push(EF);return EF},u9=function(gJ){if(I()){hN=[[]];
for(var EF=0;EF<gJ;EF++)hN.push([])}},OX=function(){if(Yp()){var gJ=jt,EF=gJ.scrollTop;
gJ=gJ.scrollHeight-gJ.clientHeight;Z4(EF>=gJ);EF=Math.abs(gJ-EF);EF<=40?s8(1-(40-EF)/40):s8(1)}},$E=function(){return"opacity: "+S2()*100+"%"},YL=_.Jd(function(){OX();
return!1}),HA=_.Jd(function(){sF(!1);
return!1}),Tu,L4={},U2={},A3={},YC={};
return _.F("yt-searchbox",{class:_.S3("ytSearchboxComponentHost",(L4.ytSearchboxComponentMweb=!1,L4.ytSearchboxComponentDesktop=!0,L4["yt-searchbox-filled-query"]=function(){return W()},L4["ytd-masthead"]=function(){return!O()},L4.ytSearchboxComponentHostDark=Pm,L4)),
role:"search",el:rc,"client-ve-type":10349},_.F("div",{el:q1,"on:click":kC,class:_.S3("ytSearchboxComponentInputBox",(U2.ytSearchboxComponentInputBoxDark=Pm,U2.ytSearchboxComponentInputBoxHasFocus=O,U2))},_.F("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":W1},_.F(_.z,{cond:O,then:function(){return _.F("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.F(_.Y5,{icon:"SEARCH"}))}}),_.F("input",{el:I4,
class:_.S3("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":C3,"aria-expanded":!((Tu=jt)==null?0:Tu.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":kp,"on:focus":Jb,"on:input":NI,"on:keydown":hw,"on:paste":nf,placeholder:D.placeholderText,"aria-activedescendant":function(){var gJ;return(gJ=hN[B()])==null?void 0:gJ[d()]},
"aria-autocomplete":"list",role:"combobox"})),_.F(_.z,{cond:E,then:function(){return _.F("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.F(TVX,null))}}),_.F(_.z,{cond:W,
then:function(){return _.F("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.F("button",{class:"ytSearchboxComponentClearButton","on:click":PW,"aria-label":D.clearButtonAriaLabel||tUX},_.F(_.Y5,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.F(_.qv,{model:{}})))}})),_.F("button",{class:_.S3("ytSearchboxComponentSearchButton",(A3.ytSearchboxComponentSearchButtonDark=Pm,A3)),
"on:click":W1,"aria-label":WCb,title:D.placeholderText},_.F(_.Y5,{icon:"SEARCH"})),_.F(_.z,{cond:function(){if(t3U()&&_.g("mweb_voice_search")&&D.voiceSearchButton)return D.voiceSearchButton()},
then:function(gJ){var EF={};return _.F("div",{class:_.S3("ytSearchboxComponentVoiceSearchWrapper",(EF.ytSearchboxComponentHideVoiceSearchButton=function(){return W()},EF))},_.F(_.c4,{data:gJ},{buttonRenderer:function(s2){return _.F(_.gz,{data:s2.data,
onButtonClickCallback:function(){}})}}))}}),_.F("div",{el:_.ML(function(gJ){return void(jt=gJ)}),
id:C3,class:_.S3("ytSearchboxComponentSuggestionsContainer",(YC.ytSearchboxComponentSuggestionsContainerDark=Pm,YC["yt-searchbox-suggestions-container"]=!1,YC.ytSearchboxComponentSuggestionsContainerScrollable=Yp(),YC.ytSearchboxComponentSuggestionsContainerAnimated=Z,YC)),"on:scroll":YL,"on:mousemove":HA,role:"listbox",hidden:!0},_.F(_.Xd,{each:I},function(gJ,EF){return _.F(Odb,{suggestion:gJ,isHighlighted:function(){return EF()===B()},
onClickCallback:aU,onHoverUpdateCallback:function(s2){if(_.g("desktop_enable_single_suggestion_highlight")){var g0=EF();s2&&(b(0),A(g0))}},
onRemoveCallback:function(s2){id3(rr);s2===void 0||s2<0||Xf().includes(s2)||dJ([].concat(_.j_(Xf()),[s2]))},
labels:D.labels,queryBuilderFunction:UM,suggestionIndex:EF,generateUniqueId:gW,highlightedId:function(){var s2;return(s2=hN[B()])==null?void 0:s2[d()]},
useScrollMargin:Yp(),isKeyboardMode:R4})}),_.F(_.z,{cond:function(){return!vA()&&I().find(function(gJ){return gJ.type!==35})&&_.g("searchbox_reporting")},
then:function(){return _.F("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Wm},_.p1("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.F(_.z,{cond:function(){return!kL()&&Yp()},
then:function(){return _.F("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.F("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:$E}))}})))},"Hi"),"yt-searchbox",{props:{searchEndpoint:_.gj,
placeholderText:_.gj,labels:_.gj,voiceSearchButton:_.gj,focusCallback:_.C_,clearButtonAriaLabel:_.gj,forceDarkMode:_.gj}});var yB=function(){var D=_.c.apply(this,arguments)||this;D.menuButtonTargetId="topbar-guide-menu";D.narrow=!1;D.menuStrings={BACK_ALT_LABEL:_.p1("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.p1("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.p1("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.p1("SBOX_PLACEHOLDER",void 0,"Search")};D.pageDarkTheme=document.documentElement.hasAttribute("dark");D.watchPageScrollTop=0;D.theater=!1;D.fullscreen=!1;D.disableFrostedGlassDuringViewTransition=
!1;D.desktopUnifiedSearchPanelMode=_.g("desktop_enable_unified_search_panel");D.cinematicTheaterMode=_.g("web_cinematic_theater_mode");D.aiCompanionEnabled=_.g("enable_ai_companion");D.ytSearchboxFocused=!1;D.searchboxLabels=_.eA("SBOX_LABELS");D.topbarIsAboveChipbar=!1;D.isDarkThemeForced=!1;D.areGhostCardsHidden=!1;D.guideKeyboardToggle=!1;D.voiceSearchManager=PvZ();D.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};D.setYtSearchboxFocused=
function(v){D.ytSearchboxFocused=v};
D.toggleFrostedGlassDuringViewTransition=function(v){D.disableFrostedGlassDuringViewTransition=v};
return D};
_.J(yB,_.c);_.V=yB.prototype;_.V.computeSimpleText=function(D){return _.$V(D)};
_.V.onDarkChanged=function(){for(var D=_.P(this.buttons||[]),v=D.next();!v.done;v=D.next())v.value.isOverlay=!!this.dark;D=_.P(this.buttonRenderers||[]);for(v=D.next();!v.done;v=D.next())v.value.overrides=this.computeButtonOverride()};
_.V.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.V.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var D=_.FQ(_.ol(),"aa");_.Iy(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||D||(this.isDarkThemeForced=this.dark=!0);this.logoType?(D=this.hostElement.querySelector("#masthead-logo"))&&(_.g("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.Np(D)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.pZ(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.pZ(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.V.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.pZ(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.pZ(this,this.onSetTheaterModeEnabled))};
_.V.dataChanged=function(){var D=this.data;D&&(this.voiceEnabled=D.voiceSearchButton?PvZ().isSupported():!1,_.qTR(_.tU(),this.menuButtonTargetId,this.guideButton),D.onReceivedActions&&D.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ZD(this.hostElement,D.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&D&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Iy(this.hostElement,"dark",!1),_.Iy(this.hostElement,"theater",!1),
(D=this.hostElement.querySelector("#masthead-logo"))&&(_.g("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.Np(D))))};
_.V.computeCenterHidden=function(){var D;return this.data&&!((D=this.data.searchbox)==null?0:D.fusionSearchboxRenderer)};
_.V.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Iy(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.V.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.V.onWatchScroll=function(D){this.watchPageScrollTop=D.detail||0;this.updateMastheadBackgroundOpacity()};
_.V.onFullscreenChangeAction=function(D){D||(this.watchPageScrollTop=0);this.fullscreen=D;this.updateMastheadBackgroundOpacity()};
_.V.onSetTheaterModeEnabled=function(D){this.theater=D.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.V.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.V.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.V.setBackgroundOpacity=function(D){D=this.calculateBackgroundOpacity(D);this.background.style.opacity=""+D};
_.V.calculateBackgroundOpacity=function(D){var v=this.theater&&this.cinematicTheaterMode?.6:0,h=this.hostElement.clientHeight/2;return Math.min(Math.max(D,0),h)/h*(1-v)+v};
_.V.shouldShowCinematicMastHead=function(){var D=_.g("kevlar_watch_grid")&&!_.g("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(D||this.pageDarkTheme)};
_.V.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.V.focusGuide=function(){this.guideButton.focus()};
_.V.onGuideToggleTap=function(){_.F1(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.V.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.V.onGuideToggleHover=function(){_.F1(this.hostElement,"yt-guide-hover")};
_.V.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.V.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.V.closeOnOutsideClickCondition=function(D){for(D=_.Pr(D);D[0];){var v=D.shift();if(v instanceof Element&&v.id==="kbd")return!1}return!0};
_.V.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.V.pausePlayer=function(){var D;(D=_.Mq())==null||D.pause();this.pauseMiniplayer()};
_.V.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var D;(D=_.xd().resolve(_.Ok).getPlayerElement())==null||D.pause()}};
_.V.isMiniplayerActive=function(){return _.xd().resolve(_.Ok).isMiniplayerActive()};
_.V.updateNarrowFromBinding=function(D){this.narrow=D.detail.value};
_.V.onYtSendFeedbackAction=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.registerWithViewTransitionManager=function(){Rcr(_.xd().resolve(_.KN),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.GT.Object.defineProperties(yB.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.aiCompanionEnabled&&((D=this.data)==null?0:D.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var D;return(D=this.data)==null?void 0:D.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
yB.prototype.narrowChanged=yB.prototype.narrowChanged;yB.prototype.onWatchPageChange=yB.prototype.onWatchPageChange;yB.prototype.onRendererStamperFinished=yB.prototype.onRendererStamperFinished;yB.prototype.dataChanged=yB.prototype.dataChanged;yB.prototype.onDarkChanged=yB.prototype.onDarkChanged;_.e([_.l(_.iN),_.n("design:type",Object)],yB.prototype,"ironResizableBehavior",void 0);_.e([_.l(_.GiZ),_.n("design:type",Object)],yB.prototype,"ytdExpandableInputBehavior",void 0);
_.e([_.l(_.U0.YtdGuideStateAwareBehavior),_.n("design:type",Object)],yB.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],yB.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],yB.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.Mm),_.n("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"narrow",void 0);_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"logoType",void 0);_.e([_.Y(),_.n("design:type",Boolean)],yB.prototype,"voiceEnabled",void 0);
_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"menuStrings",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],yB.prototype,"dark",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],yB.prototype,"pageDarkTheme",void 0);_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"watchPageScrollTop",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.Lqo}),_.n("design:type",Boolean)],yB.prototype,"isWatchPage",void 0);
_.e([_.Y({reflectToAttribute:!0,selector:_.Zh7}),_.n("design:type",Boolean)],yB.prototype,"isShortsPage",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],yB.prototype,"theater",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],yB.prototype,"fullscreen",void 0);_.e([_.Y({reflectToAttribute:!0,selector:_.k4L}),_.n("design:type",String)],yB.prototype,"frostedGlassMode",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],yB.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],yB.prototype,"aiCompanionEnabled",void 0);_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"ytSearchboxFocused",void 0);_.e([_.cr("#buttons > *"),_.n("design:type",Array)],yB.prototype,"buttons",void 0);_.e([_.cr("ytd-button-renderer"),_.n("design:type",Array)],yB.prototype,"buttonRenderers",void 0);
_.e([_.Br("#background"),_.n("design:type",HTMLDivElement)],yB.prototype,"background",void 0);_.e([_.Br("#guide-button"),_.n("design:type",Object)],yB.prototype,"guideButton",void 0);_.e([_.Br("#logo"),_.n("design:type",Object)],yB.prototype,"logo",void 0);_.e([_.Y({computed:"computeButtonOverride(dark)"}),_.n("design:type",Object)],yB.prototype,"buttonOverrides",void 0);
_.e([_.qi("dark"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yB.prototype,"onDarkChanged",null);_.e([_.Y({value:function(){return this.onVoiceTap.bind(this)}}),
_.n("design:type",Function)],yB.prototype,"boundOnTapVoiceButton",void 0);_.e([_.Y(),_.n("design:type",Object)],yB.prototype,"topbarIsAboveChipbar",void 0);_.e([_.Y(),_.n("design:type",String),_.n("design:paramtypes",[])],yB.prototype,"guideIcon",null);_.e([_.N("voiceEnabled"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],yB.prototype,"shouldShowVoiceSearchButton",null);
_.e([_.N("data.aiCompanionButton","aiCompanionEnabled"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],yB.prototype,"shouldShowAiCompanionButton",null);_.e([_.N("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],yB.prototype,"voiceSearchButton",null);_.e([_.N("aiCompanionEnabled"),_.n("design:type",String),_.n("design:paramtypes",[])],yB.prototype,"narrowQuery",null);
_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yB.prototype,"dataChanged",null);_.e([_.lc("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yB.prototype,"onRendererStamperFinished",null);_.e([_.qi("isWatchPage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yB.prototype,"onWatchPageChange",null);
_.e([_.qi("narrow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yB.prototype,"narrowChanged",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-masthead"})],yB);
_.w(yB,"ytd-masthead",function(){if(dod!==void 0)return dod;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return dod=D},{mode:_.E_("kevlar_poly_si_batch_j036")?1:2});var uA3;var DJ2={},vrm={},h1S={},aTC={},$Jr=(aTC.OFFLINE=(DJ2["publicytnetworkstatus-online"]="BACK_ONLINE",DJ2),aTC.ONLINE=(vrm["publicytnetworkstatus-offline"]="OFFLINE",vrm),aTC.BACK_ONLINE=(h1S["publicytnetworkstatus-offline"]="OFFLINE",h1S.TIMER_TRIGGER="ONLINE",h1S),aTC),ww=function(){var D=_.c.apply(this,arguments)||this;D.currentState="ONLINE";D.scheduledJobId=0;D.bannerString="";D.bannerVe=null;D.networkStatusManagerInstance=new _.ra;return D};
_.J(ww,_.c);_.V=ww.prototype;_.V.attached=function(){var D=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.detached=function(){var D=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.enterState=function(D){var v=this;this.scheduledJobId&&_.HK.cancelJob(this.scheduledJobId);D==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):D==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.p1("NO_INTERNET_CONNECTION",void 0,"No internet connection")):D==="BACK_ONLINE"&&(this.bannerString=_.p1("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.c1(_.HK,function(){v.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=D};
_.V.stateChangeHandler=function(D){(D=$Jr[this.currentState][D])&&this.enterState(D)};
_.V.logVisibility=function(D){var v=_.wd();this.createBannerVe(D);v&&this.bannerVe&&(D?_.DU(v,[this.bannerVe]):_.vf(v,[this.bannerVe]))};
_.V.createBannerVe=function(D){!this.bannerVe&&D&&(this.bannerVe=_.En(37929),_.jh(_.c8(),this.bannerVe))};
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",String)],ww.prototype,"currentState",void 0);_.e([_.Y(),_.n("design:type",Object)],ww.prototype,"scheduledJobId",void 0);_.e([_.Y(),_.n("design:type",Object)],ww.prototype,"bannerString",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ww);
_.w(ww,"ytd-network-status-banner",function(){if(uA3!==void 0)return uA3;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return uA3=
D},{mode:1});var Qcd;var ex=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};D.hidden=!0;D.frostedGlass=_.g("web_frosted_glass");return D};
_.J(ex,_.c);ex.prototype.computeHidden=function(D){return D&&D.status?!1:!0};
ex.prototype.handleUpdatePermissionRoleCommand=function(D){if(D=_.k(D,_.z$R))if(D=_.k(D.renderer,_.Fj$))this.data=D};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],ex.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ex.prototype,"componentBehavior",void 0);_.e([_.Y({value:!0,computed:"computeHidden(data)"}),_.n("design:type",Object)],ex.prototype,"hidden",void 0);_.e([_.Y(),_.n("design:type",Object)],ex.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],ex.prototype,"frostedGlass",void 0);
_.e([_.m({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],ex);
_.w(ex,"ytd-permission-role-bottom-bar-renderer",function(){if(Qcd!==void 0)return Qcd;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return Qcd=D},{mode:1});var GEC;var V4I;var Jnm={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var ns=function(){return _.c.apply(this,arguments)||this};
_.J(ns,_.c);_.V=ns.prototype;_.V.attached=function(){this.JSC$20825_scroller&&(this.JSC$20825_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20825_scroller.attached&&typeof this.JSC$20825_scroller.attached==="function"&&this.JSC$20825_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(h){h.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var D=_.ZW(this.hostElement);D.querySelector("tp-yt-paper-radio-group").selected="";var v=D.querySelector("#reason-text");v&&(v.value="");D.querySelector("#description-text").value=""}};
_.V.canSubmit=function(D,v){_.F1(this.hostElement,"yt-invalidate-popup-tabbables");return!(D&&v)};
_.V.onCancel=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.V.onSubmit=function(){var D=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(G){return G.active}).map(function(G){return G.innerText.trim()}),v=this.hostElement.querySelector("tp-yt-paper-radio-group"),h=v.selectedItem,a=h.name;
h=h.innerText.trim();var Q=v.querySelector("#reason-text");v=void 0;Q&&(v=Q.value);(Q=this.descriptionText.value)&&(Q=Q.trim());p4r(this.data.searchQuery,D,a,h,Q,v);_.zU(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.V.sendFormSubmitToast=function(){var D=_.fq(_.p1("SBOX_INAPPROPRIATE_TOAST"));_.zU(this.hostElement,"yt-open-popup-action",[D,this])};
_.V.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(D){return D.active})};
_.V.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
ns.prototype.onIronSelect=ns.prototype.onIronSelect;ns.prototype.onIronChange=ns.prototype.onIronChange;ns.prototype.dataChanged=ns.prototype.dataChanged;_.e([_.Y(),_.n("design:type",Object)],ns.prototype,"data",void 0);_.e([_.Y({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.n("design:type",Boolean)],ns.prototype,"submitDisabled",void 0);_.e([_.Y(),_.n("design:type",Boolean)],ns.prototype,"suggestionSelected",void 0);
_.e([_.Y(),_.n("design:type",Boolean)],ns.prototype,"catagorySelected",void 0);_.e([_.Br("#scroller"),_.n("design:type",Object)],ns.prototype,"JSC$20825_scroller",void 0);_.e([_.Br("#description-text"),_.n("design:type",Object)],ns.prototype,"descriptionText",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ns.prototype,"dataChanged",null);
_.e([_.lc("iron-change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ns.prototype,"onIronChange",null);_.e([_.lc("iron-select"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ns.prototype,"onIronSelect",null);_.e([_.m({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],ns);
_.w(ns,"ytd-search-suggestion-report-dialog",function(){if(V4I!==void 0)return V4I;var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);return V4I=D},{mode:1});var Oq=function(D){var v=D.openPopupAction;var h=D.target;var a=D.container;var Q=D.popupContainerConfig;var G=D.getElement;D=D.removeWhenClosed===void 0?!1:D.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=v;this.target=h;this.container=a;this.popupContainerConfig=Q;this.getElement=G;this.JSC$20831_popupConfig=this.popupContainerConfig.JSC$19963_popupConfig[this.openPopupAction.popupType];this.rendererName=(v=this.getName())?_.v2o(v,HEK(this.popupContainerConfig,
v)):"";_.g("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=D);this.createPopup()};
Oq.prototype.updatePopup=function(D){this.openPopupAction=D;this.JSC$20831_popupConfig=this.popupContainerConfig.JSC$19963_popupConfig[this.openPopupAction.popupType];P3b(this);_.g("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Oq.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var fT3=function(D,v,h){(v=v&&D.JSC$20831_popupConfig.narrowProperties?D.JSC$20831_popupConfig.narrowProperties:D.JSC$20831_popupConfig.properties)&&h!==void 0&&(v.isAriaModal=h);xJd(D,v);D.isRtl()&&xJd(D,D.JSC$20831_popupConfig.rtlProperties);M4m(D)};
Oq.prototype.createPopup=function(){var D=this.JSC$20831_popupConfig.component;if(this.popupContent=C3r(this,this.rendererName)){if(D){this.popup=C3r(this,D);var v=this.popupContent;_.g("web_enable_wrapper_for_cow_component_in_popup")&&(v=document.createElement("div"),v.appendChild(this.popupContent));_.g("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20831_popupConfig.slotName&&v.setAttribute("slot",this.JSC$20831_popupConfig.slotName);D=this.popup;var h=this.container.tagName.toLowerCase(),
a=_.Mi(v);_.Rz8(_.CZ(D),_.zH(v,h,a));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.g("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ZW(this.container).appendChild(this.popup)}};
var P3b=function(D){var v,h,a=(v=D.openPopupAction.accessibilityData)==null?void 0:(h=v.accessibilityData)==null?void 0:h.label;a&&(D.popup.ariaLabel=a);var Q;((Q=D.popupContent.polymerController)!=null?Q:D.popupContent).data=(0,_.sV.unsafeClone)(D.openPopupAction.popup[D.getName()]);D.popupContent.duration=orr(D);D.popupContent.positionType=D.openPopupAction.position;var G=D.openPopupAction.properties;G&&Object.keys(G).forEach(function(x){D.popupContent[x]=G[x]})},xJd=function(D,v){if(v)for(var h=
_.P(Object.keys(v)),a=h.next();!a.done;a=h.next())a=a.value,D.popup[a]=v[a]},M4m=function(D){if(D.openPopupAction.position){var v=D.JSC$20831_popupConfig.positionalProperties&&D.JSC$20831_popupConfig.positionalProperties[D.openPopupAction.position],h=D.JSC$20831_popupConfig.rtlPositionalProperties&&D.JSC$20831_popupConfig.rtlPositionalProperties[D.openPopupAction.position];
v=D.isRtl()&&h?h:v;v.shiftedHorizontalOffset&&(h=D.popup.style.display,D.popup.style.display="block",D.popupContent&&D.popup.positionTarget&&D.popupContent.clientWidth>D.popup.positionTarget.clientWidth&&(v.horizontalOffset=D.popup.positionTarget.clientWidth/2-v.shiftedHorizontalOffset),D.popup.style.display=h);xJd(D,v)}},Fzr=function(D,v){if(v)for(var h=_.P(Object.keys(v)),a=h.next();!a.done;a=h.next())a=a.value,D.popup.style[a]=v[a]};
Oq.prototype.getName=function(){return _.m9(this.openPopupAction.popup,"renderer")||_.m9(this.openPopupAction.popup,"dialog")||_.m9(this.openPopupAction.popup,"model")||void 0};
var orr=function(D){D=D.openPopupAction.durationHintMs;return D===0?D:Math.max(4E3,D||4E3)};
Oq.prototype.isRtl=function(){return _.eA("HTML_DIR")==="rtl"};
var C3r=function(D,v){D=D.getElement(v,D.target);D==null&&_.yR(new _.XH("popup getElement returned null",v));return D};var z13={};
z13.YtPopupContainerBehavior=[_.oY.YtComponentBehavior,_.ed.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_);_.f1(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.C1(this.hostElement)},
closePopup:function(D){var v=this.createCacheKey(void 0,D);this.popups_[v]&&this.handleClosePopupAction_(void 0,D)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.HK.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.HK.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(D){D.opened&&D.keepBelowPlayer&&this.ensurePopupBelowPlayer(D)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var D in this.popups_){var v=this.popups_[D];if(v.popup.scrollAction==="refit"){var h=v.popup.positionTarget.getBoundingClientRect(),a=v.popup;h=h.top;var Q=v;if(!Q.naturalHeight){Q.popup.hidden=!1;Q.popup.style.position="fixed";Q.popup.style.top="0px";Q.popup.style.left="0px";var G=Q.popup.getBoundingClientRect();Q.naturalHeight=G.bottom-G.top;Q.popup.refit()}a.hidden=!(h>=Q.naturalHeight+60);v.popupContent.clientHeight===0&&v.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(D){this.popupContainerConfig=D},
handleOpenPopupAction:function(D,v){var h=D.openPopupAction,a=_.xd().resolve(_.PV(_.Wk))&&h.popupType==="TOAST";a&&!h.uniqueId&&(h.uniqueId=_.zD());if(!_.g("popup_container_parent_target_killswitch")){var Q;v=(Q=this.getParentTarget(v))!=null?Q:v}var G=this.ensurePopup_(h,v);return new _.IB(function(x){G.then(function(f){if(!f)return x();this.maybeCreateNarrowMediaQuery_();var C=this.createCacheKey(f.rendererName,f.openPopupAction.uniqueId);if(h.showOncePerUniqueId){if(this.shownPopupKeys_.has(C))return x();
this.shownPopupKeys_.add(C)}C=this.popups_[C];var U=!(!C||!C.openPopupAction.beReused);U=!!h.reusePopup||U;if(f.popup.opened&&!U){a&&!f.openPopupAction.replacePopup||this.handleClosePopupAction_(f.rendererName,f.openPopupAction.uniqueId);U=h.popupType==="DIALOG"&&!_.g("popup_container_dialog_reopen_killswitch");if(!a&&!U&&C&&C.target==v&&!f.openPopupAction.replacePopup)return x();_.$R(f.popup,function(){this.completeOpenPopupAction_(h,v,f);x()}.bind(this))}else f.popup.opened?f.updatePopup(h):this.completeOpenPopupAction_(h,
v,f),x()}.bind(this))}.bind(this))},
getParentTarget:function(D){if(D&&D instanceof HTMLElement)for(var v=_.P(Object.entries(this.popups_)),h=v.next();!h.done;h=v.next())if(h=_.P(h.value),h.next(),h=h.next().value,this.popupClosesOnClick(h)&&h.popup.contains(D))return h.target},
popupClosesOnClick:function(D){return D.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(D.rendererName.toUpperCase())},
completeOpenPopupAction_:function(D,v,h){h.updatePopup(D);D=this.narrowMediaQuery_.queryMatches;var a=this.isAriaModal;h.target=v;var Q;v=((Q=h.target.polymerController)!=null?Q:h.target).popupPositionTarget||h.target;h.JSC$20831_popupConfig.targetContainer&&(v=h.container);h.popup.positionTarget=v;h.popupContent.positionTarget=v;M4m(h);h.JSC$20831_popupConfig.forceFocus&&(h.popupContent.style.outline="none");h.popupContent.tabIndex=-1;h.JSC$20831_popupConfig.narrowProperties&&(h.popup.style.position=
"static");h.JSC$20831_popupConfig.preventAutonav&&h.popup.setAttribute("prevent-autonav",!0);h.JSC$20831_popupConfig.forceCloseOnOutsideClick&&h.popup.setAttribute("force-close-on-outside-click",!0);fT3(h,D,a);Fzr(h,h.JSC$20831_popupConfig.styles);h.isRtl()&&Fzr(h,h.JSC$20831_popupConfig.rtlStyles);if(!h.openPopupAction.shouldStopParentSignal){var G;Q=(G=h.target.polymerController)!=null?G:h.target;(h.popupContent.startForwardingEvents||h.popupContainerConfig.forwardingEnabledPopups.has(h.rendererName))&&
Q.parentComponent!==h.popupContent&&h.popupContent!==h.target&&h.target!==document.body&&(h.popupContent.startForwardingEvents?h.popupContent.startForwardingEvents(h.popupContainerConfig.forwardedEvents,h.target):(h.JSC$20831_eventForwarder||(h.JSC$20831_eventForwarder=new _.fK(h.popupContent)),h.JSC$20831_eventForwarder.start(h.popupContainerConfig.forwardedEvents,h.target)))}h=h.popup;h.addEventListener("iron-overlay-opened",_.pZ(this,this.onPopupIronOverlayOpened_));h.addEventListener("iron-overlay-closed",
_.pZ(this,this.onPopupIronOverlayClosed_));h.addEventListener("iron-overlay-canceled",_.pZ(this,this.onPopupIronOverlayCanceled_));h.addEventListener("yt-refit",_.pZ(this,this.refitPopup_));h.addEventListener("yt-invalidate-popup-tabbables",_.pZ(this,this.handleInvalidatePopupTabbables_));h.open()},
getPopupDurationMs_:function(D){return D.durationHintMs===0?D.durationHintMs:Math.max(4E3,D.durationHintMs||4E3)},
handleClosePopupAction_:function(D,v){var h=_.g("web_popup_cache_key_killswitch")||!!v;if(D||h){var a=this.createCacheKey(D,v);D=(D=this.popups_[a])&&D.popup}else D=_.Bo4(_.PF);if(D&&D.close){if(v=_.xd().resolve(_.PV(_.Xw)))D.restoreFocusOnClose=v.isKeyBoardInUse();D.close();this.removePopup_(D,a)}},
handleClosePopupCommand_:function(D){D.closePopupCommand&&D.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,D.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(D){var v={},h;for(h in this.popups_)if(v={key$jscomp$1209:v.key$jscomp$1209},v.key$jscomp$1209=h,!D||!D.some(function(G){return function(x){return x==G.key$jscomp$1209}}(v))){var a=this.popups_[v.key$jscomp$1209],Q=a.popup;
_.xd().resolve(_.PV(_.Wk))&&a.openPopupAction.popupType==="TOAST"||(Q&&Q.close&&Q.close(),this.removePopup_(Q,v.key$jscomp$1209))}},
handleClosePopupsAction_:function(D){D.forEach(function(v){var h=this.popups_[v];h&&((h=h.popup)&&h.close&&h.close(),this.removePopup_(h,v))}.bind(this))},
handleGetPopupOpenedAction_:function(D,v){return(v=this.createCacheKey(D,v))&&this.popups_[v]?this.popups_[D].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var D=[],v;for(v in this.popups_){var h=this.popups_[v];h.popup.opened&&D.push(h)}return D},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(D,v){_.g("ytpopup_disable_default_html_caching")&&D&&D.removeWhenClosed&&(_.ZW(this.hostElement).removeChild(D),v&&this.popups_[v]&&delete this.popups_[v])},
shouldReusePopup_:function(D){return!(!D||!D.reusePopup)||!(!D||!D.beReused)},
ensurePopup_:function(D,v){this.maybeCreateNarrowMediaQuery_();var h=_.m9(D.popup,"renderer")||_.m9(D.popup,"dialog")||_.m9(D.popup,"model");if(!h)return _.E9();h=_.v2o(h,HEK(this.popupContainerConfig,h));return _.E9(this.getAndMaybeCreatePopup_(D,h,v))},
getAndMaybeCreatePopup_:function(D,v,h){var a=this.createCacheKey(v,D.uniqueId);if(this.popups_[a])return this.popups_[a];D=new Oq({openPopupAction:D,target:h,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(v)});return this.popups_[a]=D},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(D){return _.g("ytpopup_disable_default_html_caching")?D&&D.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.pZ(this,this.openPopupQueryMatchesChanged_)),_.ZW(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(D){D=D.detail.value;for(var v in this.popups_)fT3(this.popups_[v],D)},
onPopupIronOverlayClosed_:function(D){var v=D.currentTarget,h=_.FiO(v);h=h.length>0?h[0]:v;if(h.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){D.detail.popup=v;D.detail.popupRenderer=h;var a,Q={context:{openingElement:((a=this.popups_[(h==null?void 0:h.is)||""])==null?void 0:a.target)||void 0}};Object.assign(Q,D.detail);var G;_.F1((G=h.hostElement)!=null?G:h,"yt-popup-closed",Q);v.removeEventListener("yt-refit",_.pZ(this,this.refitPopup_));v.removeEventListener("yt-invalidate-popup-tabbables",
_.pZ(this,this.handleInvalidatePopupTabbables_));v.removeEventListener("iron-overlay-canceled",_.pZ(this,this.onPopupIronOverlayCanceled_));v.removeEventListener("iron-overlay-closed",_.pZ(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(v)}},
onPopupIronOverlayCanceled_:function(D,v){var h=D.currentTarget,a=_.FiO(h);a=a.length>0?a[0]:h;if(a.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){var Q;_.F1((Q=a.hostElement)!=null?Q:a,"yt-popup-canceled",D.detail);Q=v?_.Pr(v):null;(!v||["click","tap"].includes(v.type))&&!h.hasAttribute("force-close-on-outside-click")&&h.positionTarget&&Q&&Q.includes(h.positionTarget)&&D.preventDefault();h.restoreFocusOnClose=_.Hq.keyboardEventMatchesKeys(v,"esc")}},
onPopupIronOverlayOpened_:function(D){D=D.currentTarget;var v=_.FiO(D);v=v.length>0?v[0]:D;var h,a;_.F1((h=v.hostElement)!=null?h:v,"yt-popup-opened",(a=v.hostElement)!=null?a:v);D.keepBelowPlayer&&(this.ensurePopupBelowPlayer(D,!0),this.dynamicallyPositionedElements_.add(D));h=_.xd().resolve(_.PV(_.Xw));a=!!v.querySelector("#toast");h&&h.isKeyBoardInUse()&&!a&&(typeof v.focusFirstItem==="function"?v.focusFirstItem():(v=_.lSb(D),v.length&&v[0].focus()));D.removeEventListener("iron-overlay-opened",
_.pZ(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(D){D=D.currentTarget;D.refit&&D.refit()},
refitPopups_:function(){for(var D in this.popups_)this.popups_[D].refit()},
handleInvalidatePopupTabbables_:function(D){D=D.currentTarget;D.invalidateTabbables&&D.invalidateTabbables()},
createCacheKey:function(D,v){return _.g("web_popup_cache_key_killswitch")?v?D+"#"+v:D:v?"#"+v:D},
openSheet:function(D,v){var h=D==null?void 0:D.openPopupActionCommand;!h&&(D==null?0:D.viewModel)&&(h={openPopupAction:{popup:{sheetViewModel:D.viewModel},popupType:"CONTEXTUAL_SHEET"}});h&&this.handleOpenPopupAction(h,v)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var D=this;return _.M(function(v){return v.return(D.handleGetOpenedPopupsAction_().filter(function(h){var a;return((a=h.openPopupAction)==null?void 0:a.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(D,v,h){if(_.g("web_dialog_utils_killswitch")){var a=D==null?void 0:D.openPopupActionCommand,Q=(h==null?0:h.ariaLabel)?{accessibilityData:{accessibilityData:{label:h.ariaLabel}}}:void 0;!a&&(D==null?0:D.viewModel)&&(a={openPopupAction:Object.assign({},{popup:{dialogViewModel:D.viewModel},popupType:(h==null?0:h.isModal)?"MODAL":"DIALOG"},Q&&Q)});a&&this.handleOpenPopupAction(a,v)}else{if(Q=D==null?void 0:D.viewModel){var G=h=h===void 0?{}:h;h=G.ariaLabel;Q={popup:{dialogViewModel:Q},
popupType:G.isModal?"MODAL":"DIALOG"};G={accessibilityData:{label:h}};h&&(Q.accessibilityData=G);Q={openPopupAction:Q}}else Q=void 0;if(Q=(a=Q)!=null?a:D==null?void 0:D.openPopupActionCommand)this.isAriaModal=_.g("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Q,v)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var D=this;return _.M(function(v){return v.return(D.handleGetOpenedPopupsAction_().filter(function(h){var a;return((a=h.openPopupAction)==null?void 0:a.popupType)==="DIALOG"}).length>0)})}}];var UJI;var LzI;var Zkd=_.DK(["about:blank"]),Ks=function(){var D=_.c.apply(this,arguments)||this;D.isMuted=!1;D.pageLoadTimeoutId=void 0;return D};
_.J(Ks,_.c);_.V=Ks.prototype;_.V.dataChanged=function(){var D=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var v=this.data.url,h=_.yx(v);_.g("enable_yt_ata_iframe_authuser")?(h=_.yx(v),_.uH(this.iframe,lYX(h))):_.uH(this.iframe,h);this.pageLoadTimeoutId=_.c1(_.c7(),function(){return void D.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.oH({destination:window,iframe:this.iframe,origin:_.Ufm(h.toString()),channelName:"ataiframe",onMessage:_.S81(PKC,function(a){xtZ(a.data)?(a=_.tr(a.data,1,_.$C,_.f0()),a.length!==1?_.yR(Error("Gl")):(a=a[0],a===3?(D.isMuted=!0,D.logStateChanged({adMuteRequested:!0})):a===1&&D.close())):_.yR(Error("Hl"))}),
onEstablished:function(){D.cancelPageLoadTimeout();D.logStateChanged({pageLoadSucceeded:!0})}})}};
_.V.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.c7().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.V.logStateChanged=function(D){var v;if((v=this.data)==null?0:v.trackingParams)D={adsClientData:{aboutThisAdData:D}},_.c8().stateChanged(this.data.trackingParams,D)};
_.V.close=function(){_.zU(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.handlesPopupClosed=function(D,v){var h=this,a,Q;return _.M(function(G){if(G.nextAddress==1)return _.eA("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.zU(h.hostElement,"on-about-this-ad-popup-closed",[h.isMuted,v]),G.jumpTo(0)):D&&NpK(D)?G.yield(YnZ(D),4):(h.isMuted&&_.zU(h.hostElement,"yt-mute-ad-action",[h.is,h]),G.jumpTo(0));if(a=G.yieldResult){var x=Q=new _.Dh(a),f=h.isMuted;x.getOptions().includes("onAboutThisAdPopupClosed")?_.CZ9(x,"onAboutThisAdPopupClosed",{isMuted:f,layoutId:v}):_.u7("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.YI(G)})};
_.V.onPopupClosed=function(D){var v=this,h,a;return _.M(function(Q){h=_.UV(Zkd);_.uH(v.iframe,h);v.cancelPageLoadTimeout();if(!v.data)return Q.jumpTo(0);v.ytRendererBehavior.markDirty();a=D.detail.context.openingElement;return Q.yield(v.handlesPopupClosed(a,v.data.layoutId),0)})};
_.V.detached=function(){this.cancelPageLoadTimeout()};
_.V.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ks.prototype.onPopupClosed=Ks.prototype.onPopupClosed;Ks.prototype.dataChanged=Ks.prototype.dataChanged;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.e([_.Br("#iframe"),_.n("design:type",HTMLIFrameElement)],Ks.prototype,"iframe",void 0);_.e([_.Y(),_.n("design:type",Object)],Ks.prototype,"data",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ks.prototype,"dataChanged",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype",Promise)],Ks.prototype,"onPopupClosed",null);_.e([_.Ry({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ks);
_.w(Ks,"yt-about-this-ad-renderer",function(){if(LzI===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;UJI===void 0&&(UJI=document.createElement("template"));var a=UJI;h.call(v,a.content.cloneNode(!0),D.content.firstChild);LzI=D}D=LzI;return D},{mode:2});var Err;var IT3;var TB=function(D){var v=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=v.message;"stack"in v&&(this.stack=v.stack);this.maxFileSizeMB=D;Object.setPrototypeOf(this,TB.prototype)};
_.J(TB,Error);var grU=function(D,v){var h=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=h.message;"stack"in h&&(this.stack=h.stack);this.minWidth=D;this.minHeight=v;Object.setPrototypeOf(this,grU.prototype)};
_.J(grU,Error);var kEr=function(D){this.requirements=D;this.JSC$20858_maxFileSize=D.maxFileSizeMB*1024*1024},SuS=function(D,v){if(v.size>D.JSC$20858_maxFileSize)throw new TB(D.requirements.maxFileSizeMB);
};var Job=function(D,v){this.canvas=D;this.imageEditorBuilder=v};
Job.prototype.addEventListeners=function(D){var v=function(Q){pgU(D,Q)};
this.JSC$20864_mouseDownEvent=v;var h=function(Q){lTK(D,Q)};
this.JSC$20864_mouseMoveEvent=h;var a=function(){Nnr(D)};
this.JSC$20864_mouseUpEvent=a;this.canvas.addEventListener("mousedown",v);this.canvas.addEventListener("mousemove",h);document.addEventListener("mouseup",a)};
Job.prototype.removeEventListeners=function(){this.JSC$20864_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20864_mouseDownEvent);this.JSC$20864_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20864_mouseMoveEvent);this.JSC$20864_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20864_mouseUpEvent)};
var YuX=function(D,v){D.removeEventListeners();return new Promise(function(h){var a=new Image;a.crossOrigin="anonymous";a.onload=function(){var Q=D.imageEditorBuilder(D.canvas,a);D.addEventListeners(Q);h(Q)};
a.src=v})},Rz=function(D,v,h,a,Q,G,x,f){this.canvas=D;
this.image=v;this.requiredRatio=h;this.minImageCropDimension=a;this.minOutputImageResolution=Q;this.component=G;this.styleFocusedCorner=f===void 0?!0:f;this.action=2;this.focusedCorner=this.resizeCorner=0;D=this.canvas.getContext("2d");if(!D)throw Error("Il");this.ctx=D;this.canvasMargin=x!=null?x:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;x=this.image;D=this.canvasInnerWidth/x.width;x.height*D>912&&(D=x.width/x.height*912/x.width);x=D;this.scaledImageWidth=this.canvas.width%2?
cnC(this.image.width*x):Bp3(this.image.width*x);this.scaledImageHeight=Math.round(this.image.height*x);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20867_overlayMarginBottom=this.JSC$20867_overlayMarginTop=this.canvasMargin;this.JSC$20867_overlayMarginRight=this.JSC$20867_overlayMarginLeft=this.horizontalMargin;this.JSC$20867_overlayWidth=this.scaledImageWidth;this.JSC$20867_overlayHeight=this.scaledImageHeight;
D=this.image.width/this.image.height;D>this.requiredRatio?(this.JSC$20867_overlayWidth=this.canvas.width%2?cnC(this.scaledImageHeight*this.requiredRatio):Bp3(this.scaledImageHeight*this.requiredRatio),this.JSC$20867_overlayMarginRight=this.JSC$20867_overlayMarginLeft=(this.canvas.width-this.JSC$20867_overlayWidth)/2):D<this.requiredRatio&&(this.JSC$20867_overlayHeight=this.canvas.height%2?cnC(this.scaledImageWidth/this.requiredRatio):Bp3(this.scaledImageWidth/this.requiredRatio),this.JSC$20867_overlayMarginBottom=
this.JSC$20867_overlayMarginTop=(this.canvas.height-this.JSC$20867_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*x,this.scaledImageWidth);BnC(this)};
Rz.prototype.getContext=function(){return this.ctx};
var pgU=function(D,v){v={x:Math.round(v.pageX-D.canvas.getBoundingClientRect().left),y:Math.round(v.pageY-D.canvas.getBoundingClientRect().top)};D.dragStart=v;cos(D,v)!==0?(D.action=1,XgX(D,v),D.resizeCorner=cos(D,v)):v.x>D.JSC$20867_overlayMarginLeft&&v.x<D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth&&v.y>D.JSC$20867_overlayMarginTop&&v.y<D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight&&(D.action=0)},Ao3=function(D,v){switch(v){case 1:return{x:D.JSC$20867_overlayMarginLeft,
y:D.JSC$20867_overlayMarginTop};case 2:return{x:D.JSC$20867_overlayMarginLeft,y:D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight};case 3:return{x:D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth,y:D.JSC$20867_overlayMarginTop};case 4:return{x:D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth,y:D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight};default:throw Error("Jl");}},bkr=function(D,v){if(D.focusedCorner!==0){D.dragStart=Ao3(D,D.focusedCorner);
D.action=1;D.resizeCorner=D.focusedCorner;var h=D.dragStart.x,a=D.dragStart.y;switch(v){case 0:D.focusedCorner===1||D.focusedCorner===4?(h-=10,a-=10):(h-=10,a+=10);break;case 1:D.focusedCorner===1||D.focusedCorner===4?(h+=10,a+=10):(h+=10,a-=10);break;case 2:h=D.focusedCorner===1||D.focusedCorner===4?h-10:h+10;a-=10;break;case 3:h=D.focusedCorner===1||D.focusedCorner===4?h+10:h-10;a+=10;break;default:throw Error("Kl");}quK(D,{x:h,y:a});BnC(D);D.action=2;D.dragStart=void 0}},lTK=function(D,v){v={x:Math.round(v.pageX-
D.canvas.getBoundingClientRect().left),
y:Math.round(v.pageY-D.canvas.getBoundingClientRect().top)};XgX(D,v);switch(D.action){case 1:quK(D,v);break;case 0:D.dragStart&&(D.JSC$20867_overlayMarginLeft=Math.max(D.horizontalMargin,Math.min(D.JSC$20867_overlayMarginLeft-(D.dragStart.x-v.x),D.horizontalMargin+D.scaledImageWidth-D.JSC$20867_overlayWidth)),D.JSC$20867_overlayMarginRight=D.canvas.width-D.JSC$20867_overlayMarginLeft-D.JSC$20867_overlayWidth,D.JSC$20867_overlayMarginTop=Math.max(D.canvasMargin,Math.min(D.JSC$20867_overlayMarginTop-
(D.dragStart.y-v.y),D.scaledImageHeight-D.JSC$20867_overlayHeight+D.canvasMargin)),D.JSC$20867_overlayMarginBottom=D.canvas.height-(D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight));break;default:return}BnC(D);D.dragStart=v},Nnr=function(D){D.action=2;
D.dragStart=void 0;document.body.style.cursor="auto"},XgX=function(D,v){switch(cos(D,v)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:D.action!==1&&(document.body.style.cursor="auto")}},cos=function(D,v){var h=D.JSC$20867_overlayMarginLeft-5,a=D.JSC$20867_overlayMarginTop-5,Q=D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth-5;
D=D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-5;return dJ$(v,{x:h,y:a})?1:dJ$(v,{x:Q,y:a})?3:dJ$(v,{x:h,y:D})?2:dJ$(v,{x:Q,y:D})?4:0},dJ$=function(D,v){return D.x>=v.x&&D.x<=v.x+10&&D.y>=v.y&&D.y<=v.y+10},quK=function(D,v){if(D.dragStart)switch(D.resizeCorner){case 2:Math.abs((D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth-v.x)/(v.y-D.JSC$20867_overlayMarginTop))>=D.requiredRatio?jcr(D,v.x):scK(D,v.y);
break;case 1:Math.abs((D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth-v.x)/(D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-v.y))>=D.requiredRatio?mJd(D,v.x):scK(D,v.y);break;case 4:Math.abs((v.x-D.JSC$20867_overlayMarginLeft)/(v.y-D.JSC$20867_overlayMarginTop))>=D.requiredRatio?jcr(D,v.x):HkU(D,v.y);break;case 3:Math.abs((v.x-D.JSC$20867_overlayMarginLeft)/(D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-v.y))>=D.requiredRatio?mJd(D,v.x):HkU(D,v.y);break;default:throw Error("Ll");
}},jcr=function(D,v){var h=D.JSC$20867_overlayMarginTop;
D.JSC$20867_overlayMarginBottom=yo3(D,v);D.JSC$20867_overlayHeight=D.canvas.height-D.JSC$20867_overlayMarginBottom-h;D.JSC$20867_overlayWidth=Math.round(D.JSC$20867_overlayHeight*D.requiredRatio);wgZ(D)},mJd=function(D,v){var h=D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight;
D.JSC$20867_overlayMarginTop=yo3(D,v);D.JSC$20867_overlayHeight=h-D.JSC$20867_overlayMarginTop;D.JSC$20867_overlayWidth=Math.round(D.JSC$20867_overlayHeight*D.requiredRatio);wgZ(D)},wgZ=function(D){switch(D.resizeCorner){case 2:case 1:D.JSC$20867_overlayMarginLeft=D.canvas.width-D.JSC$20867_overlayMarginRight-D.JSC$20867_overlayWidth;
break;case 4:case 3:D.JSC$20867_overlayMarginRight=D.canvas.width-D.JSC$20867_overlayMarginLeft-D.JSC$20867_overlayWidth;break;default:throw Error("Ll");}},scK=function(D,v){var h=D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth;
D.JSC$20867_overlayMarginLeft=e1U(D,v);D.JSC$20867_overlayWidth=h-D.JSC$20867_overlayMarginLeft;D.JSC$20867_overlayHeight=Math.round(D.JSC$20867_overlayWidth/D.requiredRatio);nrU(D)},HkU=function(D,v){var h=D.JSC$20867_overlayMarginLeft;
D.JSC$20867_overlayMarginRight=e1U(D,v);D.JSC$20867_overlayWidth=D.canvas.width-D.JSC$20867_overlayMarginRight-h;D.JSC$20867_overlayHeight=Math.round(D.JSC$20867_overlayWidth/D.requiredRatio);nrU(D)},nrU=function(D){switch(D.resizeCorner){case 2:case 4:D.JSC$20867_overlayMarginBottom=D.canvas.height-D.JSC$20867_overlayMarginTop-D.JSC$20867_overlayHeight;
break;case 1:case 3:D.JSC$20867_overlayMarginTop=D.canvas.height-D.JSC$20867_overlayMarginBottom-D.JSC$20867_overlayHeight;break;default:throw Error("Ll");}},yo3=function(D,v){switch(D.resizeCorner){case 2:v=D.canvas.height-(D.JSC$20867_overlayMarginTop+Ok$(D,v));
break;case 4:v=D.canvas.height-(D.JSC$20867_overlayMarginTop+KzU(D,v));break;case 1:v=D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-Ok$(D,v);break;case 3:v=D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-KzU(D,v);break;default:throw Error("Ll");}return Math.max(v,D.canvasMargin)},Ok$=function(D,v){v=D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth-Math.max(v,D.horizontalMargin);
v=v<0?D.JSC$20867_overlayWidth:Math.max(v,D.minOverlayWidth);return Math.round(v/D.requiredRatio)},KzU=function(D,v){v=D.canvas.width-Math.max(D.canvas.width-v,D.horizontalMargin)-D.JSC$20867_overlayMarginLeft;
v=v<0?D.JSC$20867_overlayWidth:Math.max(v,D.minOverlayWidth);return Math.round(v/D.requiredRatio)},e1U=function(D,v){switch(D.resizeCorner){case 2:v=D.canvas.width-D.JSC$20867_overlayMarginRight-TnI(D,v);
break;case 4:v=D.canvas.width-D.JSC$20867_overlayMarginLeft-TnI(D,v);break;case 1:v=D.canvas.width-D.JSC$20867_overlayMarginRight-R1s(D,v);break;case 3:v=D.canvas.width-D.JSC$20867_overlayMarginLeft-R1s(D,v);break;default:throw Error("Ll");}return Math.max(v,D.horizontalMargin)},TnI=function(D,v){v=D.canvas.height-Math.max(D.canvas.height-v,D.canvasMargin)-D.JSC$20867_overlayMarginTop;
return v<0?D.JSC$20867_overlayWidth:Math.max(Math.round(v*D.requiredRatio),D.minOverlayWidth)},R1s=function(D,v){v=D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-Math.max(v,D.canvasMargin);
return v<0?D.JSC$20867_overlayWidth:Math.max(Math.round(v*D.requiredRatio),D.minOverlayWidth)},BnC=function(D){D.ctx.clearRect(0,0,D.canvas.width,D.canvas.height);
D.ctx.drawImage(D.image,0,0,D.image.width,D.image.height,D.horizontalMargin,D.canvasMargin,D.canvas.width-2*D.horizontalMargin,D.scaledImageHeight);D.ctx.fillStyle="rgba(0, 0, 0, 0.7)";D.ctx.fillRect(D.horizontalMargin,D.JSC$20867_overlayMarginTop,D.JSC$20867_overlayMarginLeft-D.horizontalMargin,D.JSC$20867_overlayHeight);D.ctx.fillRect(D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth,D.JSC$20867_overlayMarginTop,D.JSC$20867_overlayMarginRight-D.horizontalMargin,D.JSC$20867_overlayHeight);D.ctx.fillRect(D.horizontalMargin,
D.canvasMargin,D.scaledImageWidth,D.JSC$20867_overlayMarginTop-D.canvasMargin);D.ctx.fillRect(D.horizontalMargin,D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight,D.scaledImageWidth,D.JSC$20867_overlayMarginBottom-D.canvasMargin);D.drawOverlay();D.component&&_.F1(D.component,"image-updated")};
Rz.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20867_overlayMarginLeft,this.JSC$20867_overlayMarginTop,this.JSC$20867_overlayWidth,this.JSC$20867_overlayHeight);iks(this)};
var iks=function(D){var v=D.JSC$20867_overlayMarginLeft-5,h=D.JSC$20867_overlayMarginTop-5,a=D.JSC$20867_overlayMarginLeft+D.JSC$20867_overlayWidth-5,Q=D.JSC$20867_overlayMarginTop+D.JSC$20867_overlayHeight-5;D.ctx.fillStyle="#FFF";D.ctx.fillRect(v,h,10,10);D.ctx.strokeRect(v,h,10,10);D.ctx.fillRect(a,h,10,10);D.ctx.strokeRect(a,h,10,10);D.ctx.fillRect(v,Q,10,10);D.ctx.strokeRect(v,Q,10,10);D.ctx.fillRect(a,Q,10,10);D.ctx.strokeRect(a,Q,10,10);if(D.focusedCorner!==0&&D.styleFocusedCorner){D.ctx.lineWidth=
4;D.ctx.strokeStyle="#3EA6FF";switch(D.focusedCorner){case 1:--v;--h;break;case 2:--v;h=Q-1;break;case 3:v=a-1;--h;break;case 4:v=a-1;h=Q-1;break;default:return}D.ctx.strokeRect(v,h,12,12)}};
Rz.prototype.crop=function(D,v){v=v===void 0?!0:v;var h=this.image.width/this.scaledImageWidth,a=document.createElement("canvas"),Q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],G=this.JSC$20867_overlayWidth*h,x=this.JSC$20867_overlayHeight*h;a.width=Math.max(G,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);a.height=Math.max(x,Q);D&&(a.width=Math.min(a.width,a.height),a.height=Math.min(a.width,a.height));
D=a.getContext("2d");if(!D)throw Error("zl");Q=(this.JSC$20867_overlayMarginLeft-this.horizontalMargin)*h;h*=this.JSC$20867_overlayMarginTop-this.canvasMargin;v||(D.fillStyle="white",D.fillRect(0,0,a.width,a.height));D.drawImage(this.image,Q,h,G,x,0,0,a.width,a.height);return a};var Wzd=function(D,v,h,a,Q){Rz.call(this,D,v,h,a,void 0,Q,8,!1)};
_.J(Wzd,Rz);Wzd.prototype.drawOverlay=function(){var D=this.getContext(),v=this.JSC$20867_overlayWidth,h=this.JSC$20867_overlayHeight,a=this.JSC$20867_overlayMarginTop,Q=this.JSC$20867_overlayMarginLeft;D.lineWidth=2;D.strokeStyle="#3EA6FF";D.beginPath();D.arc(Q+v/2,a+h/2,v/2,0,2*Math.PI);D.stroke();D.strokeRect(Q,a,v,h);iks(this)};
var t4Z={maxFileSizeMB:15,minWidth:98,minHeight:98},ror=["image/png","image/jpeg","image/gif"],ig=function(){var D=_.c.apply(this,arguments)||this;D.fileSelectorFocusListener=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!0;D.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return D};
_.J(ig,_.c);_.V=ig.prototype;_.V.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.V.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.V.computePlaylistThumbnail=function(D){return D==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.V.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.zU(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.V.setErrorState=function(D){this.resetErrorState();D&&(this.errorMessage=D)};
_.V.showPopup=function(){var D=this;this.hideContainer=!1;_.c1(_.HK,function(){_.F1(D.hostElement,"yt-refit")});
this.isLoading=!1};
_.V.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.V.closePopup=function(){this.resetFileSelector();_.zU(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onCancelTap=function(){this.isPlaylistThumbnail||_.zU(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.V.openFileSelector=function(){var D=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.c1(_.HK,function(){setTimeout(function(){if(!D.fileSelector.files||D.fileSelector.files.length===0)D.onCancelTap();D.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(v){v instanceof Error?_.mV(v):_.H1(new _.XH(JSON.stringify(v)))}};
_.V.handleFileSelection=function(){var D=this,v,h,a,Q,G,x;return _.M(function(f){switch(f.nextAddress){case 1:_.gE(f,2);if(!D.fileSelector.files||!D.imageEditorCanvas)return D.onCancelTap(),f.return();v=D.fileSelector.files[0];SuS(D.imageChecker,v);_.gE(f,4);return f.yield(veI(v),6);case 6:D.mimeType=f.yieldResult;_.rl(f,5,2);break;case 4:_.NS(f,2),_.zU(D.hostElement,"yt-image-selection-error-action",[(h=D.data)==null?void 0:h.genericImageLoadErrorMessage]),D.onCancelTap();case 5:a=new FileReader;
a.addEventListener("load",function(){var C,U;return _.M(function(L){if(L.nextAddress==1){if(!a.result)return _.yR(Error("Bl")),L.return();C=a.result;U=new Image;U.src=C;U.onload=function(){try{var Z=D.imageChecker;if(U.width<Z.requirements.minWidth||U.height<Z.requirements.minHeight)throw new grU(Z.requirements.minWidth,Z.requirements.minHeight);}catch(I){if(I instanceof grU){var E;_.zU(D.hostElement,"yt-image-selection-error-action",[(E=D.data)==null?void 0:E.imageDimensionErrorMessage]);D.logImageDimensionErrorVe()}else I instanceof
Error?_.mV(I):(Z=new _.XH(JSON.stringify(I)),_.mV(Z));D.onCancelTap()}D.showPopup()};
U.onerror=function(){var Z;_.zU(D.hostElement,"yt-image-selection-error-action",[(Z=D.data)==null?void 0:Z.genericImageLoadErrorMessage]);D.onCancelTap()};
return L.yield(YuX(D.imageEditorCanvas,C),2)}D.imageEditor=L.yieldResult;D.updatePositionOfAllCorners();D.addEventListeners(D.imageEditor);_.YI(L)})},!1);
a.readAsDataURL(v);_.rl(f,0);break;case 2:Q=_.NS(f),Q instanceof TB?_.zU(D.hostElement,"yt-image-selection-error-action",[(G=D.data)==null?void 0:G.imageSizeErrorMessage]):(Q instanceof Error?_.mV(Q):_.H1(new _.XH(JSON.stringify(Q))),_.zU(D.hostElement,"yt-image-selection-error-action",[(x=D.data)==null?void 0:x.genericImageLoadErrorMessage])),D.onCancelTap(),_.YI(f)}})};
_.V.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var D=_.B8(_.c8(),{veType:232707,visualElement:_.En(232707)});D&&(D={visualElement:D},_.Yt().reportShown(D))}};
_.V.handleImageSelectionErrorAction=function(D){this.isPlaylistThumbnail&&_.r_O(this.hostElement,D)};
_.V.convertToImageFormatBundle=function(D){var v=this,h,a,Q;return _.M(function(G){switch(G.nextAddress){case 1:return h=D.toDataURL(v.outputMimeType,1),G.yield(hVU(h),2);case 2:a=G.yieldResult;_.gE(G,3);SuS(v.imageChecker,a);_.rl(G,4);break;case 3:Q=_.NS(G);if(!(Q instanceof TB))throw Q;_.yR(new _.XH("Output size is bigger than input size for image",v.mimeType,v.outputMimeType,a.size));h=D.toDataURL("image/jpeg",.95);return G.yield(hVU(h),6);case 6:a=G.yieldResult;case 4:return G.return({dataUrl:h,
imageFile:a})}})};
_.V.handleUploadImageToScottyCommand=function(D){var v=this,h,a,Q,G,x,f,C,U,L,Z;return _.M(function(E){switch(E.nextAddress){case 1:if(!v.imageEditor||!_.k(D,JEd))return E.return();h=_.k(D,JEd).scottyUploadUrl;if(!h){var I=new _.XH("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.mV(I);return E.return()}_.gE(E,2);v.setLoadingState();a=v.imageEditor.crop(!1,!1);return E.yield(v.convertToImageFormatBundle(a),4);case 4:return Q=E.yieldResult,E.yield(uZd(Q.imageFile,h),5);
case 5:G=E.yieldResult;((x=v.data)==null?0:x.onUploadEndpoint)?(f=v.buildUploadServiceEndpoint(G),v.ytComponentBehavior.resolveCommand(f),C=_.k(f,_.$G),((U=C)==null?0:U.params)?v.closePopup():v.resetFileSelector()):(_.zU(v.hostElement,"yt-image-updated-action",[Q.dataUrl,G]),v.closePopup());_.rl(E,0);break;case 2:L=_.NS(E),v.setErrorState((Z=v.data)==null?void 0:Z.uploadErrorMessage),L instanceof Error?_.mV(L):(I=new _.XH(JSON.stringify(L)),_.mV(I)),_.YI(E)}})};
_.V.buildUploadServiceEndpoint=function(D){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",D),this.data.onUploadEndpoint):null};
_.V.dataChanged=function(){var D=this,v;return _.M(function(h){if(h.nextAddress==1){if(!D.data||!D.canvasElement)return h.return();D.data.imageRatio&&D.data.minImageCropWidth||_.H1(new _.XH("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));v=function(a,Q){return D.data.imageType==="IMAGE_TYPE_AVATAR"?new Wzd(a,Q,D.data.imageRatio,[D.data.minImageCropWidth,D.data.minImageCropWidth/D.data.imageRatio],D.hostElement):new Rz(a,Q,D.data.imageRatio,[D.data.minImageCropWidth,
D.data.minImageCropWidth/D.data.imageRatio],void 0,D.hostElement,8,!1)};
D.imageEditorCanvas=new Job(D.canvasElement,v);return D.data.url?h.yield(YuX(D.imageEditorCanvas,D.data.url),3):(D.hideContainer=!0,D.openFileSelector(),h.jumpTo(0))}D.imageEditor=h.yieldResult;D.showPopup();D.addEventListeners(D.imageEditor);_.YI(h)})};
_.V.addEventListeners=function(D){this.removeEventListeners();var v=function(Q){pgU(D,Q)};
this.JSC$20875_mouseDownEvent=v;var h=function(Q){lTK(D,Q)};
this.JSC$20875_mouseMoveEvent=h;var a=function(){Nnr(D)};
this.JSC$20875_mouseUpEvent=a;this.topLeftCorner.addEventListener("mousedown",v);this.topLeftCorner.addEventListener("mousemove",h);this.topLeftCorner.addEventListener("mouseup",a);this.topRightCorner.addEventListener("mousedown",v);this.topRightCorner.addEventListener("mousemove",h);this.topRightCorner.addEventListener("mouseup",a);this.bottomLeftCorner.addEventListener("mousedown",v);this.bottomLeftCorner.addEventListener("mousemove",h);this.bottomLeftCorner.addEventListener("mouseup",a);this.bottomRightCorner.addEventListener("mousedown",
v);this.bottomRightCorner.addEventListener("mousemove",h);this.bottomRightCorner.addEventListener("mouseup",a)};
_.V.removeEventListeners=function(){this.JSC$20875_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20875_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20875_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20875_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20875_mouseDownEvent));this.JSC$20875_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20875_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20875_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20875_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20875_mouseMoveEvent));this.JSC$20875_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20875_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20875_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20875_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20875_mouseUpEvent))};
_.V.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var D=document.activeElement;D&&D.shadowRoot&&D.shadowRoot.activeElement;)D=D.shadowRoot.activeElement;switch(D){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.V.updatePositionOfCorner=function(D,v){var h=D.y-v.offsetHeight/2+4;v.style.left=D.x-v.offsetWidth/2+16+"px";v.style.top=h+"px"};
_.V.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var D=_.P([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),v=D.next();!v.done;v=D.next()){v=v.value;var h=Ao3(this.imageEditor,v.corner);this.updatePositionOfCorner(h,v.div)}};
_.V.onLeft=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(bkr(this.imageEditor,0),this.updatePositionOfAllCorners(),D.preventDefault())};
_.V.onRight=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(bkr(this.imageEditor,1),this.updatePositionOfAllCorners(),D.preventDefault())};
_.V.onUp=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(bkr(this.imageEditor,2),this.updatePositionOfAllCorners(),D.preventDefault())};
_.V.onDown=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(bkr(this.imageEditor,3),this.updatePositionOfAllCorners(),D.preventDefault())};
_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.GT.Object.defineProperties(ig.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&ror.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var D,v,h;((v=this.data)==null?0:v.imageRatio)&&((h=this.data)==null?0:h.minImageCropWidth)?D={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:D=t4Z;return new kEr(D)}}});
ig.prototype.updatePositionOfAllCorners=ig.prototype.updatePositionOfAllCorners;ig.prototype.dataChanged=ig.prototype.dataChanged;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],ig.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],ig.prototype,"ytComponentBehavior",void 0);_.e([_.l(_.Hq),_.n("design:type",Object)],ig.prototype,"ironA11yKeysBehavior",void 0);
_.e([_.Br("#canvas"),_.n("design:type",HTMLCanvasElement)],ig.prototype,"canvasElement",void 0);_.e([_.Br("#file-selector"),_.n("design:type",HTMLInputElement)],ig.prototype,"fileSelector",void 0);_.e([_.Br("#top-left-corner"),_.n("design:type",HTMLDivElement)],ig.prototype,"topLeftCorner",void 0);_.e([_.Br("#top-right-corner"),_.n("design:type",HTMLDivElement)],ig.prototype,"topRightCorner",void 0);
_.e([_.Br("#bottom-left-corner"),_.n("design:type",HTMLDivElement)],ig.prototype,"bottomLeftCorner",void 0);_.e([_.Br("#bottom-right-corner"),_.n("design:type",HTMLDivElement)],ig.prototype,"bottomRightCorner",void 0);_.e([_.Y(),_.n("design:type",Object)],ig.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],ig.prototype,"errorMessage",void 0);_.e([_.Y(),_.n("design:type",Object)],ig.prototype,"isLoading",void 0);_.e([_.Y(),_.n("design:type",Object)],ig.prototype,"hideContainer",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.n("design:type",Boolean)],ig.prototype,"isPlaylistThumbnail",void 0);_.e([_.qi("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],ig.prototype,"dataChanged",null);_.e([_.lc("image-updated"),_.lc("yt-refit"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ig.prototype,"updatePositionOfAllCorners",null);
_.e([_.Ry({is:"yt-image-editor-renderer",disableElementRegistration:!0})],ig);
_.w(ig,"yt-image-editor-renderer",function(){if(IT3===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Err===void 0&&(Err=document.createElement("template"));var a=Err;h.call(v,a.content.cloneNode(!0),D.content.firstChild);IT3=D}D=IT3;return D},{mode:2});var uJr;var Dar;var WJ=function(){return _.c.apply(this,arguments)||this};
_.J(WJ,_.c);WJ.prototype.updateMinutesFromBinding=function(D){this.handleMinutesChanged&&this.handleMinutesChanged(D)};
WJ.prototype.updateSecondsFromBinding=function(D){this.handleSecondsChanged&&this.handleSecondsChanged(D)};
WJ.prototype.updateDescriptionFromBinding=function(D){this.handleDescriptionChanged&&this.handleDescriptionChanged(D)};
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],WJ.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",String)],WJ.prototype,"minutes",void 0);_.e([_.Y(),_.n("design:type",String)],WJ.prototype,"seconds",void 0);_.e([_.Y(),_.n("design:type",String)],WJ.prototype,"description",void 0);_.e([_.Y(),_.n("design:type",Function)],WJ.prototype,"handleMinutesChanged",void 0);
_.e([_.Y(),_.n("design:type",Function)],WJ.prototype,"handleSecondsChanged",void 0);_.e([_.Y(),_.n("design:type",Function)],WJ.prototype,"handleDescriptionChanged",void 0);_.e([_.Y(),_.n("design:type",Number)],WJ.prototype,"characterLimit",void 0);_.e([_.Y(),_.n("design:type",Number)],WJ.prototype,"textNumRows",void 0);_.e([_.Ry({is:"yt-report-details-form-content",disableElementRegistration:!0})],WJ);
_.w(WJ,"yt-report-details-form-content",function(){if(Dar===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;uJr===void 0&&(uJr=document.createElement("template"));var a=uJr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Dar=D}D=Dar;return D},{mode:2});var vBC;var hIS;var tM=function(){var D=_.c.apply(this,arguments)||this;D.updateMinutesFromBinding=function(v){D.minutes=v.detail.value};
D.updateSecondsFromBinding=function(v){D.seconds=v.detail.value};
D.updateDescriptionFromBinding=function(v){D.description=v.detail.value};
return D};
_.J(tM,_.c);_.V=tM.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.V.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"}}}};
_.V.ready=function(){_.ZW(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.V.onSubmitYtAction=function(D){var v=D.detail;v.actionName==="yt-service-request"&&(v=v.args[1],v.flagEndpoint&&(D.stopPropagation(),this.refireAction(v)))};
_.V.refireAction=function(D){var v={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(v.vss_id=this.vssId);_.L1(this.hostElement,[D,v]);this.submitDisabled=!0};
_.V.dataChanged=function(){var D=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var v=_.Mq();v&&v.getPlayerPromise().then(function(h){var a=h.getOption("cc","track")||h.getOption("captions","track");a&&(D.vssId=a.vss_id);h=h.getCurrentTime();D.minutes=Math.floor(h/60).toString();D.seconds=(Math.floor(h)%60).toString()})};
_.V.updateSubmitButtonState=function(){var D;((D=this.data)==null?0:D.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.V.onYtServiceRequestCompleted=function(){_.zU(this.hostElement,"yt-close-popup-action")};
_.V.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.GT.Object.defineProperties(tM.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.textNumRows)||4}}});
tM.prototype.onYtServiceRequestError=tM.prototype.onYtServiceRequestError;tM.prototype.onYtServiceRequestCompleted=tM.prototype.onYtServiceRequestCompleted;tM.prototype.updateSubmitButtonState=tM.prototype.updateSubmitButtonState;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);
_.e([_.Y({observer:"dataChanged"}),_.n("design:type",Object)],tM.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Boolean)],tM.prototype,"submitDisabled",void 0);_.e([_.Y(),_.n("design:type",String)],tM.prototype,"minutes",void 0);_.e([_.Y(),_.n("design:type",String)],tM.prototype,"seconds",void 0);_.e([_.Y(),_.n("design:type",String)],tM.prototype,"description",void 0);_.e([_.Y(),_.n("design:type",String)],tM.prototype,"vssId",void 0);
_.e([_.Y({value:_.eA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.n("design:type",Boolean)],tM.prototype,"isMusic",void 0);_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],tM.prototype,"characterLimit",null);_.e([_.N("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],tM.prototype,"textNumRows",null);
_.e([_.qi("minutes","seconds","description","submitDisabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tM.prototype,"updateSubmitButtonState",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tM.prototype,"onYtServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tM.prototype,"onYtServiceRequestError",null);_.e([_.Ry({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],tM);
_.w(tM,"yt-report-details-form-renderer",function(){if(hIS===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;vBC===void 0&&(vBC=document.createElement("template"));var a=vBC;h.call(v,a.content.cloneNode(!0),D.content.firstChild);hIS=D}D=hIS;return D});var aGb;var $ar;var Q0m;var G7$;var rw=function(){return _.c.apply(this,arguments)||this};
_.J(rw,_.c);
rw.prototype.onCheckedChanged_=function(){if(this.data){var D=_.ZW(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.zU(this.hostElement,"yt-additional-detail-checkbox-update",[D]):this.data.identifier==="yt-hide-user-checkbox"?_.zU(this.hostElement,"yt-hide-user-checkbox-update",[D]):D&&this.data.enableCommand?_.zU(this.hostElement,"yt-modify-report-form-command",[_.k(this.data.enableCommand,X2r)]):!D&&this.data.disableCommand&&_.zU(this.hostElement,
"yt-modify-report-form-command",[_.k(this.data.enableCommand,X2r)])}};
rw.prototype.onLabelTap_=function(D){D.target.tagName!="A"&&(_.ZW(this.hostElement).querySelector("#checkbox").checked=!_.ZW(this.hostElement).querySelector("#checkbox").checked)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],rw.prototype,"data",void 0);_.e([_.Ry({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],rw);
_.w(rw,"yt-boolean-form-field-v2-renderer",function(){if(G7$===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Q0m===void 0&&(Q0m=document.createElement("template"));var a=Q0m;h.call(v,a.content.cloneNode(!0),D.content.firstChild);G7$=D}D=G7$;return D});var ug=function(){var D=_.c.apply(this,arguments)||this;D.canShowAdditionalDetailCheckbox=!1;D.canShowCheckbox=!1;D.keepDropdownFocusedAfterSelection=!0;return D};
_.J(ug,_.c);ug.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}}}}};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],ug.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],ug.prototype,"canShowAdditionalDetailCheckbox",void 0);_.e([_.Y(),_.n("design:type",Object)],ug.prototype,"canShowCheckbox",void 0);_.e([_.Y(),_.n("design:type",Object)],ug.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.e([_.Ry({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ug);
_.w(ug,"yt-report-form-modal-content",function(){if($ar===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;aGb===void 0&&(aGb=document.createElement("template"));var a=aGb;h.call(v,a.content.cloneNode(!0),D.content.firstChild);$ar=D}D=$ar;return D},{mode:2});var VVX;var P5S;var Ds=function(){var D=_.c.apply(this,arguments)||this;D.submitting=!1;D.submitButtonDisabled=!0;D.command=null;D.canShowCheckbox=!1;D.canShowAdditionalDetailCheckbox=!1;D.canShowNextButton=!1;D.additionalDetailCheckboxChecked=!1;D.refitJob=0;D.keepDropdownFocusedAfterSelection=!0;D.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return D};
_.J(Ds,_.c);_.V=Ds.prototype;_.V.created=function(){this.refitJob=0};
_.V.attached=function(){this.JSC$20898_scroller&&(this.JSC$20898_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20898_scroller.attached&&typeof this.JSC$20898_scroller.attached==="function"&&this.JSC$20898_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(D){D&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,D.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),D.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.V.onYtPopupOpened=function(){var D=_.Mq();D&&D.getPlayerPromise().then(function(v){v.pauseVideo()})};
_.V.onYtNavigate=function(D){_.k(D.detail.endpoint,_.nyF)&&(D.stopPropagation(),this.hideReportForm=!0)};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.V.onYtServiceRequestCompleted=function(D,v){var h=v.actions;if(h){if(h.length===1&&_.k(h[0],_.IN)){var a;h=((a=_.k(h[0],_.IN))==null?void 0:a.commands)||[]}a=0;for(var Q=h.length;a<Q;a++)_.k(h[a],_.Oc)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(h[a]))}if(v.data&&(D=this.get("feedbackResponses",v.data)))for(v=0;v<D.length;v++)if(D[v].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.V._onDescendantIronResize=function(D){D.stopPropagation();return!1};
_.V.handleReportFormEndpointUpdateAction=function(D){if(D.submitEndpoint){var v=this.command=D.submitEndpoint;v=_.k(v,_.yeb);if(v==null?0:v.additionalDetailCheckboxChecked)v.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else D.submitNavigationEndpoint?(this.command=D.submitNavigationEndpoint,this.toggleSubmitButton(!1)):D.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:D.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;D.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",D));this.refit()};
_.V.handleConfirmDialogCloseAction=function(D){D.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.V.submitButtonDisabledChanged=function(){var D=this.hostElement.parentElement;D&&D.invalidateTabbables&&D.invalidateTabbables()};
_.V.handleModifyReportFormCommand=function(D){D=this.get("action",D);D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:D==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:D==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.V.updateDialogStyling=function(){var D,v,h,a,Q,G=((Q=(D=this.data)==null?void 0:(v=D.optionsSupportedRenderers)==null?void 0:(h=v.optionsRenderer)==null?void 0:(a=h.items)==null?void 0:a.length)!=null?Q:0)<=2?0:240;_.SB(this.hostElement,{"--yt-report-form-modal-renderer-min-width":G+"px"})};
_.V.toggleSubmitButton=function(D){this.submitButtonDisabled=!D;this.submitButtonDisabled=D};
_.V.computeSubmitButtonData=function(D,v){var h={};_.k(v,_.nyF)?h.navigationEndpoint=v:h.command=v||void 0;D&&D.buttonRenderer&&_.sV.extend(h,D.buttonRenderer);return h};
_.V.computeNextButtonData=function(D,v){var h={};if(!D||!D.buttonRenderer)return h;_.sV.extend(h,D.buttonRenderer);if(!v)return h;if(_.k(v,_.nyF))h.navigationEndpoint=vaC(v);else if(h.command=vaC(v),D=_.k(h.command,_.yeb))D.legalCheckboxChecked=!0;return h};
_.V.computeShowNextButton=function(D,v,h){return!!D&&v&&h};
_.V.refit=function(){var D=this;this.refitJob||(this.refitJob=_.HK.addLowPriorityJob(function(){_.F1(D.hostElement,"yt-refit");D.refitJob=0}))};
_.V.handleAdditionalDetailCheckboxUpdateAction=function(D){this.additionalDetailCheckboxChecked=D;_.k(this.command,_.yeb).additionalDetailCheckboxChecked=D};
_.GT.Object.defineProperties(Ds,{template:{configurable:!0,enumerable:!0,get:function(){if(P5S===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;VVX===void 0&&(VVX=document.createElement("template"));var a=VVX;h.call(v,a.content.cloneNode(!0),D.content.firstChild);P5S=D}D=P5S;return D}}});
Ds.prototype.onYtServiceRequestError=Ds.prototype.onYtServiceRequestError;Ds.prototype.onYtServiceRequestCompleted=Ds.prototype.onYtServiceRequestCompleted;Ds.prototype.onYtServiceRequestSent=Ds.prototype.onYtServiceRequestSent;Ds.prototype.onYtNavigate=Ds.prototype.onYtNavigate;Ds.prototype.onYtPopupOpened=Ds.prototype.onYtPopupOpened;_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],Ds.prototype,"openPopupBehavior",void 0);
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Ds.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],Ds.prototype,"eventForwardingBehavior",void 0);_.e([_.l(_.iN),_.n("design:type",Object)],Ds.prototype,"ironResizableBehavior",void 0);_.e([_.Y({observer:"dataChanged"}),_.n("design:type",Object)],Ds.prototype,"data",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"submitting",void 0);_.e([_.Y({observer:"submitButtonDisabledChanged"}),_.n("design:type",Object)],Ds.prototype,"submitButtonDisabled",void 0);_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"command",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ds.prototype,"hideReportForm",void 0);_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"canShowCheckbox",void 0);
_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"canShowAdditionalDetailCheckbox",void 0);_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"canShowNextButton",void 0);_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"additionalDetailCheckboxChecked",void 0);_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"refitJob",void 0);_.e([_.Y(),_.n("design:type",Object)],Ds.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.e([_.Br("#scroller"),_.n("design:type",Object)],Ds.prototype,"JSC$20898_scroller",void 0);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ds.prototype,"onYtPopupOpened",null);_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ds.prototype,"onYtNavigate",null);
_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Ds.prototype,"onYtServiceRequestSent",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Ds.prototype,"onYtServiceRequestCompleted",null);
_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ds.prototype,"onYtServiceRequestError",null);_.e([_.Ry({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Ds);var xar;var MVX;var vc=function(){return _.c.apply(this,arguments)||this};
_.J(vc,_.c);_.V=vc.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.V.onVisible=function(){var D,v;(v=_.xd().resolve(_.PV(_.vI)))==null||v.enqueue({label:_.$V((D=this.data)==null?void 0:D.messageTitle),elementToFocus:this.hostElement})};
_.V.onThumbnailLoaded=function(){_.F1(this.hostElement,"yt-refit")};
_.V.onDismissTap=function(){_.zU(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.V.computeAlternateIcon=function(D){return D?D==="BACKSTAGE_ARTWORK"?"backstage:artwork":D:null};
_.V.computeFontFamily=function(D){return D==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.V.computeBackgroundStyle=function(D,v){if(D=this.computeBackgroundImage(D,v))if(D=_.L_(D.thumbnails))return'background-image: url("'+D+'");'};
_.V.computeHasFullHeightImage=function(D){return!(!(D&&D.thumbnails&&D.thumbnails.length>0)||this.modern)};
_.V.isModernStyle=function(D){return D.style==="STYLE_MODERN"};
_.V.computeIcon=function(D,v){if(D&&D.icon)return v?D.iconDark:D.icon};
_.V.computeBackgroundImage=function(D,v){if(D&&D.backgroundImage)return v?D.backgroundImageDark:D.backgroundImage};
_.V.computeLogo=function(D,v){if(D&&D.logo)return v?D.logoDark:D.logo};
_.V.computeShouldShowModernIcon=function(D,v){return D&&!!v};
_.V.getLogoContainerClassName=function(D){return this.logoWithPadding(D)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.V.getLogoImageId=function(D){return this.logoWithPadding(D)?"mealbar-logo-with-padding":"mealbar-logo"};
_.V.logoWithPadding=function(D){var v,h,a;return(D=(v=this.computeLogo(D,this.isDarkTheme))==null?void 0:(h=v.thumbnails)==null?void 0:(a=h[0])==null?void 0:a.height)&&D%31===0?!0:!1};
vc.prototype.onThumbnailLoaded=vc.prototype.onThumbnailLoaded;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.e([_.Y({}),_.n("design:type",Object)],vc.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.n("design:type",Boolean)],vc.prototype,"modern",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],vc.prototype,"isDarkTheme",void 0);
_.e([_.Y({computed:"computeIcon(data, isDarkTheme)"}),_.n("design:type",Object)],vc.prototype,"icon",void 0);_.e([_.Y({computed:"computeLogo(data, isDarkTheme)"}),_.n("design:type",Object)],vc.prototype,"logo",void 0);_.e([_.Y({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.n("design:type",Object)],vc.prototype,"backgroundStyle",void 0);_.e([_.Y({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.n("design:type",Object)],vc.prototype,"alternateIcon",void 0);
_.e([_.Y({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.n("design:type",Boolean)],vc.prototype,"hasFullHeightImage",void 0);_.e([_.Y({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.n("design:type",Boolean)],vc.prototype,"useYoutubeSans",void 0);_.e([_.Y({computed:"computeShouldShowModernIcon(modern, icon)"}),_.n("design:type",Boolean)],vc.prototype,"shouldShowModernIcon",void 0);
_.e([_.lc("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vc.prototype,"onThumbnailLoaded",null);_.e([_.Ry({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],vc);
_.w(vc,"yt-mealbar-promo-renderer",function(){if(MVX===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;xar===void 0&&(xar=document.createElement("template"));var a=xar;h.call(v,a.content.cloneNode(!0),D.content.firstChild);MVX=D}D=MVX;return D},{mode:2});var fGm;var C5r;var hY=function(){return _.c.apply(this,arguments)||this};
_.J(hY,_.c);_.V=hY.prototype;_.V.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]]"}}}}}};
_.V.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.acceptButton)};
_.V.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V.observeImpressionEndpoints_=function(){var D=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(v){v.clickTrackingParams&&delete v.clickTrackingParams;_.L1(D.hostElement,[v])})};
_.V.onTap_=function(){_.zU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
hY.prototype.observeImpressionEndpoints_=hY.prototype.observeImpressionEndpoints_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],hY.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],hY.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],hY.prototype,"positionType",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.n("design:type",Boolean)],hY.prototype,"hasButtons_",void 0);_.e([_.Y({value:function(){return this.onTap_.bind(this)}}),
_.n("design:type",Function)],hY.prototype,"boundOnTap_",void 0);_.e([_.Y({value:{style:"mono-inverse"}}),_.n("design:type",Object)],hY.prototype,"buttonOverride",void 0);_.e([_.Ni("data.promoConfig.impressionEndpoints"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hY.prototype,"observeImpressionEndpoints_",null);_.e([_.Ry({is:"yt-tooltip-renderer",disableElementRegistration:!0})],hY);
_.w(hY,"yt-tooltip-renderer",function(){if(C5r===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;fGm===void 0&&(fGm=document.createElement("template"));var a=fGm;h.call(v,a.content.cloneNode(!0),D.content.firstChild);C5r=D}D=C5r;return D},{mode:2});var oBr;var FQd;var zII={},UaX=(zII.WEB_REMIX="music.youtube.com",zII),an=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return D};
_.J(an,_.c);_.V=an.prototype;_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.created=function(){this.embedHost_=UaX[_.eA("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.V.ready=function(){_.ZW(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.V.computeEmbedCode_=function(D,v,h,a,Q){if(!D)return"";var G=D.videoId,x=D.fullListId,f=[];D.attributionId&&f.push("si="+D.attributionId);a||f.push("controls=0");h&&Number(v)>0&&f.push("start="+v);x&&(G="videoseries",f.push("list="+x));h="https://"+(Q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+G;D.clipId&&(f.push("clip="+D.clipId),f.push("clipt="+D.clipTiming));v=f.length>0?h+"?"+f.join("&amp;"):h;D.encryptedEmbedConfig&&f.push("embed_config="+JSON.stringify({enc:D.encryptedEmbedConfig}));
f=f.length>0?h+"?"+f.join("&amp;"):h;_.g("web_sharing_embed_preview_killswitch")?_.ZW(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(f,D.previewWidth||854,D.previewHeight||480):(_.nW(this.videoPreviewContainer),_.ZW(this.videoPreviewContainer).appendChild(this.buildIframeElement(f)));return this.getEmbedCode_(v,D.width||560,D.height||315)};
_.V.buildIframeElement=function(D){var v=document.createElement("iframe"),h,a;v.width=""+((a=(h=this.data)==null?void 0:h.previewWidth)!=null?a:854);var Q,G;v.height=""+((G=(Q=this.data)==null?void 0:Q.previewHeight)!=null?G:480);_.CzA(v,2,D);v.title="YouTube video player";v.frameBorder="0";v.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";v.referrerPolicy="strict-origin-when-cross-origin";v.allowFullscreen=!0;return v};
_.V.computeIsSquareAspectRatio_=function(D){return D.previewHeight&&D.previewWidth?D.previewHeight==D.previewWidth:!1};
_.V.computeShowEmbedOptions_=function(D){return!!D.enablePrivacyModeOptionLabel||!!D.showPlayerControlsOptionLabel};
_.V.getEmbedCode_=function(D,v,h){return'<iframe width="'+v+'" height="'+h+'" src="'+D+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.V.handleSignalActionCopyShareEmbedUrl_=function(){_.ZW(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.V.handleSetTimestamp_=function(D){this.startAtTimeStamp_=(this.startAtChecked_=D.isSet)?D.timestamp:0};
_.V.closePanel_=function(){_.zU(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.V.onEmbedCode_=function(){_.ZW(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.V.onYtPopupClosed_=function(){_.nW(_.ZW(this.hostElement).querySelector("#video-preview"))};
_.V.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.k(this.data.actionButtons[0],_.Vi)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.actionButtons[0],_.Vi))};
an.prototype.onYtPopupClosed_=an.prototype.onYtPopupClosed_;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],an.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],an.prototype,"data",void 0);
_.e([_.Y({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.n("design:type",String)],an.prototype,"embedCode_",void 0);_.e([_.Y({value:!0}),_.n("design:type",Boolean)],an.prototype,"isPlayerControlsOptionChecked_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],an.prototype,"isPrivacyModeOptionChecked_",void 0);_.e([_.Y({value:!1,notify:!0}),_.n("design:type",Boolean)],an.prototype,"startAtChecked_",void 0);
_.e([_.Y({value:0}),_.n("design:type",Number)],an.prototype,"startAtTimeStamp_",void 0);_.e([_.Y({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],an.prototype,"isSquareAspectRatio_",void 0);_.e([_.Br("#video-preview"),_.n("design:type",HTMLElement)],an.prototype,"videoPreviewContainer",void 0);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],an.prototype,"onYtPopupClosed_",null);
_.e([_.Ry({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],an);
_.w(an,"yt-sharing-embed-renderer",function(){if(FQd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;oBr===void 0&&(oBr=document.createElement("template"));var a=oBr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);FQd=D}D=FQd;return D},{mode:2});var LQC={};
LQC.YtUnlimitedFamilyInterstitialBehavior=[_.y1.YtOpenPopupBehavior,_.ed.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(D){D=_.KmJ(_.xU(D),"yt-button-renderer");return D?D.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(D){this.dialogHistory_.push(D)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var D=this.popFromHistory();if(D){var v={openPopupAction:{popupType:"DIALOG",popup:{}}};v.openPopupAction.popup[D.renderer]=D.data;this.showingPreviousDialog_=!0;this.openPopup(v)}},
handleOpenPopupAction_:function(D){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var v=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(a){return!!D.openPopupAction.popup[a]}),h=this.getElementName_();
v&&this.data&&(this.pushToHistory({renderer:h,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(D){if(D=_.k(D,GJI))this.loading=!0,_.zU(this.hostElement,"yt-open-create-family-dialog",[D,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var D=this.hostElement.nodeName.split("-").slice(1).map(function(v){return""+v[0].toUpperCase()+v.slice(1).toLowerCase()}).join("");
return D[0].toLowerCase()+D.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var ZYU;var EBU;var $c=function(){return _.c.apply(this,arguments)||this};
_.J($c,_.c);_.V=$c.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.zU(this.hostElement,"yt-register-create-family-dialog");_.ZW(this.hostElement).querySelector("#thumbnail").onShow()};
_.V.fireOnCloseCommand_=function(){var D;((D=this.data)==null?0:D.onCloseCommand)&&_.ZD(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.V.onYtServiceRequestSent_=function(D,v){v&&v.endpoint&&_.k(v.endpoint,_.kE)||(this.loading=!0)};
_.V.onYtServiceRequestCompleted_=function(){var D=this.hostElement.parentElement;D.close&&D.close();this.loading=!1};
_.V.openPopupHandler_=function(D){if(D.detail==this){var v;((v=this.data)==null?0:v.onOpenCommands)&&_.ZD(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.V.closePopupHandler_=function(D,v){this.fireOnCloseCommand_();if(v&&v.canceled===!0||v&&v.canceled===!1&&v.confirmed===!1){var h;((h=this.data)==null?0:h.onDismissCommands)&&_.ZD(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.V.dataChanged_=function(){this.loading=!1};
$c.prototype.dataChanged_=$c.prototype.dataChanged_;$c.prototype.closePopupHandler_=$c.prototype.closePopupHandler_;$c.prototype.openPopupHandler_=$c.prototype.openPopupHandler_;$c.prototype.onYtServiceRequestCompleted_=$c.prototype.onYtServiceRequestCompleted_;$c.prototype.onYtServiceRequestSent_=$c.prototype.onYtServiceRequestSent_;_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],$c.prototype,"ytEventForwardingBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(LQC.YtUnlimitedFamilyInterstitialBehavior),_.n("design:type",Object)],$c.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],$c.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],$c.prototype,"loading",void 0);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],$c.prototype,"onYtServiceRequestSent_",null);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],$c.prototype,"onYtServiceRequestCompleted_",null);
_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],$c.prototype,"openPopupHandler_",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],$c.prototype,"closePopupHandler_",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$c.prototype,"dataChanged_",null);
_.e([_.Ry({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],$c);
_.w($c,"yt-unlimited-family-message-interstitial-renderer",function(){if(EBU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;ZYU===void 0&&(ZYU=document.createElement("template"));var a=ZYU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);EBU=D}D=EBU;return D},{mode:2});var IG2;var gBr;var QA=function(){return _.c.apply(this,arguments)||this};
_.J(QA,_.c);QA.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"}}}};
QA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZW(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(D){D.onShow()});
_.ZW(this.hostElement).querySelector("#main-thumbnail").onShow()};
QA.prototype.onButtonTap_=function(D){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(D)};
QA.prototype.computeMainThumbnailWidth_=function(D){return D&&D.length!==0?72:96};
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.e([_.l(LQC.YtUnlimitedFamilyInterstitialBehavior),_.n("design:type",Object)],QA.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],QA.prototype,"data",void 0);
_.e([_.Y({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.n("design:type",Number)],QA.prototype,"mainThumbnailWidth_",void 0);_.e([_.Y({value:function(){return this.onButtonTap_.bind(this)}}),
_.n("design:type",Function)],QA.prototype,"boundButtonTap_",void 0);_.e([_.Ry({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],QA);
_.w(QA,"yt-unlimited-family-profile-interstitial-renderer",function(){if(gBr===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;IG2===void 0&&(IG2=document.createElement("template"));var a=IG2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);gBr=D}D=gBr;return D},{mode:2});var k7r;var Som;var Gs=function(){var D=_.c.apply(this,arguments)||this;D.sliderAriaValueText_=null;D.selectedIndex_=0;D.messages={PAUSE_SLIDER:_.p1("PAUSE_SLIDER",void 0,"Pause Duration")};return D};
_.J(Gs,_.c);_.V=Gs.prototype;_.V.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_]]"}}}}}};
_.V.onPopupOpened_=function(D){D.detail==this&&_.g("enable_premium_voluntary_pause")&&(_.zU(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.setDialogData=function(D){this.data=D;this.resetSlider_()};
_.V.dataChanged_=function(){this.data&&this.resetSlider_()};
_.V.onSubmitTap_=function(){if(this.data.confirmCommand){var D=this.data.confirmCommand;_.k(D,_.jSm)&&_.L1(this.hostElement,[D,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.V.onExitButtonTap_=function(){_.zU(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.V.closePopupHandler_=function(D,v){(v&&v.canceled===!0||v.canceled===!1&&v.confirmed===!1)&&this.handleOnDismissCommands_()};
_.V.onSliderChange_=function(){this.selectedIndex_=_.ZW(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.V.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.V.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.V.resetSlider_=function(){if(this.data){var D=this.data.defaultEndOptionIndex||0,v=_.ZW(this.hostElement).querySelector("#id-pause-slider");if(v.immediateValue<D)for(;v.immediateValue!=D;)v.increment();else if(D<v.immediateValue)for(;v.immediateValue!=D;)v.decrement();this.selectedIndex_=D;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.V.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ZD(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ZD(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.loading=!0};
_.V.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Gs.prototype.onYtServiceRequestCompleted=Gs.prototype.onYtServiceRequestCompleted;Gs.prototype.onYtServiceRequestSent=Gs.prototype.onYtServiceRequestSent;Gs.prototype.closePopupHandler_=Gs.prototype.closePopupHandler_;Gs.prototype.dataChanged_=Gs.prototype.dataChanged_;Gs.prototype.onPopupOpened_=Gs.prototype.onPopupOpened_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Gs.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Gs.prototype,"loading",void 0);_.e([_.Y(),_.n("design:type",Number)],Gs.prototype,"selectIndexMax_",void 0);_.e([_.Y(),_.n("design:type",Object)],Gs.prototype,"selectedData_",void 0);
_.e([_.Y(),_.n("design:type",Object)],Gs.prototype,"sliderAriaValueText_",void 0);_.e([_.Y({value:function(){return this.onSubmitTap_.bind(this)}}),
_.n("design:type",Function)],Gs.prototype,"onButtonTap_",void 0);_.e([_.Y({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.n("design:type",Function)],Gs.prototype,"onSecondaryTap_",void 0);_.e([_.Y(),_.n("design:type",Object)],Gs.prototype,"messages",void 0);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Gs.prototype,"onPopupOpened_",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gs.prototype,"dataChanged_",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Gs.prototype,"closePopupHandler_",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Gs.prototype,"onYtServiceRequestSent",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Gs.prototype,"onYtServiceRequestCompleted",null);_.e([_.Ry({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Gs);
_.w(Gs,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Som===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;k7r===void 0&&(k7r=document.createElement("template"));var a=k7r;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Som=D}D=Som;return D},{mode:2});var JuS;var pEU;var VA=function(){return _.c.apply(this,arguments)||this};
_.J(VA,_.c);VA.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.y0("vcBalanceRenderer")}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],VA.prototype,"data",void 0);_.e([_.Ry({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],VA);
_.w(VA,"yt-vc-offer-layout-header-renderer",function(){if(pEU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;JuS===void 0&&(JuS=document.createElement("template"));var a=JuS;h.call(v,a.content.cloneNode(!0),D.content.firstChild);pEU=D}D=pEU;return D},{mode:2});var lG2;var Nbd;var YoU;var BbX;var Pc=function(){return _.c.apply(this,arguments)||this};
_.J(Pc,_.c);Pc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.GT.Object.defineProperties(Pc.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)}}});
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.ZRs.YtTappableItemBehavior),_.n("design:type",Object)],Pc.prototype,"ytTappableItemBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Pc.prototype,"data",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.N("data.accessibilityText"),_.n("design:type",String),_.n("design:paramtypes",[])],Pc.prototype,"ariaLabel",null);_.e([_.Y({reflectToAttribute:!0}),_.N("data.style"),_.n("design:type",String),_.n("design:paramtypes",[])],Pc.prototype,"vcOfferStyle",null);_.e([_.N("data.style","data.titleText"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Pc.prototype,"showTitleText",null);_.e([_.Ry({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Pc);
_.w(Pc,"yt-vc-offer-renderer",function(){if(BbX===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;YoU===void 0&&(YoU=document.createElement("template"));var a=YoU;h.call(v,a.content.cloneNode(!0),D.content.firstChild);BbX=D}D=BbX;return D},{mode:2});var xc=function(){return _.c.apply(this,arguments)||this};
_.J(xc,_.c);xc.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],xc.prototype,"data",void 0);_.e([_.Ry({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],xc);
_.w(xc,"yt-vc-offer-layout-renderer",function(){if(Nbd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;lG2===void 0&&(lG2=document.createElement("template"));var a=lG2;h.call(v,a.content.cloneNode(!0),D.content.firstChild);Nbd=D}D=Nbd;return D},{mode:2});var cuS;var XEd;var Aum;var qoC;var Ms=function(){return _.c.apply(this,arguments)||this};
_.J(Ms,_.c);Ms.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}}}}}};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Ms.prototype,"data",void 0);_.e([_.Ry({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Ms);
_.w(Ms,"yt-ypc-offers-modal-top-bar-renderer",function(){if(qoC===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;Aum===void 0&&(Aum=document.createElement("template"));var a=Aum;h.call(v,a.content.cloneNode(!0),D.content.firstChild);qoC=D}D=qoC;return D},{mode:2});var fw=function(){return _.c.apply(this,arguments)||this};
_.J(fw,_.c);fw.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"}}}}};
fw.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
fw.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var D=this.scrollable;D.attached&&typeof D.attached==="function"&&D.attached()};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Br("#scrollable"),_.n("design:type",Object)],fw.prototype,"scrollable",void 0);_.e([_.Y(),_.n("design:type",Object)],fw.prototype,"data",void 0);_.e([_.Ry({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],fw);
_.w(fw,"yt-ypc-offers-modal-renderer",function(){if(XEd===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;cuS===void 0&&(cuS=document.createElement("template"));var a=cuS;h.call(v,a.content.cloneNode(!0),D.content.firstChild);XEd=D}D=XEd;return D},{mode:2});var bYr;var da3;var Cw=function(){return _.c.apply(this,arguments)||this};
_.J(Cw,_.c);_.V=Cw.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZW(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.V.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.zU(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.V.onYtPopupOpened_=function(D,v){(v==null?void 0:v.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ZD(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.onYtPopupClosed_=function(D,v){this.continueButtonTapped||v&&(v.canceled===!0||v.canceled===!1&&v.confirmed===!1)&&this.data.onDismissCommands&&_.ZD(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestError_=function(D){this.set("showSpinner",!1);_.Dj(this.hostElement,D.detail.error.message)};
_.V.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.g("enable_ypc_spinners")?_.zU(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Cw.prototype.onYtServiceRequestError_=Cw.prototype.onYtServiceRequestError_;Cw.prototype.onYtPopupClosed_=Cw.prototype.onYtPopupClosed_;Cw.prototype.onYtPopupOpened_=Cw.prototype.onYtPopupOpened_;Cw.prototype.onYtServiceRequestCompleted_=Cw.prototype.onYtServiceRequestCompleted_;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Y(),_.n("design:type",Object)],Cw.prototype,"data",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Cw.prototype,"showSpinner",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Cw.prototype,"continueButtonTapped",void 0);_.e([_.Y({value:function(){return this.onContinueTapped_.bind(this)}}),
_.n("design:type",Function)],Cw.prototype,"bindOnContinueTapped_",void 0);_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Cw.prototype,"onYtServiceRequestCompleted_",null);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Cw.prototype,"onYtPopupOpened_",null);
_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Cw.prototype,"onYtPopupClosed_",null);_.e([_.lc("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Cw.prototype,"onYtServiceRequestError_",null);_.e([_.Ry({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Cw);
_.w(Cw,"yt-ypc-upgrade-dialog-renderer",function(){if(da3===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;bYr===void 0&&(bYr=document.createElement("template"));var a=bYr;h.call(v,a.content.cloneNode(!0),D.content.firstChild);da3=D}D=da3;return D},{mode:2});var j0S;var s0r;var on=function(){return _.c.apply(this,arguments)||this};
_.J(on,_.c);on.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
on.prototype.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.confirmButton)};
on.prototype.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],on.prototype,"ytEventForwardingBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],on.prototype,"data",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],on.prototype,"positionType",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.n("design:type",Boolean)],on.prototype,"hasButtons_",void 0);_.e([_.Y({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.n("design:type",Boolean)],on.prototype,"style_",void 0);_.e([_.Ry({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],on);
_.w(on,"yt-bubble-hint-renderer",function(){if(s0r===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;j0S===void 0&&(j0S=document.createElement("template"));var a=j0S;h.call(v,a.content.cloneNode(!0),D.content.firstChild);s0r=D}D=s0r;return D},{mode:2});var ma$;var HYS;var Fz=function(){var D=_.VC.apply(this,arguments)||this;D.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return D};
_.J(Fz,_.VC);_.V=Fz.prototype;_.V.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.V.attached=function(){var D=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){D.$.thumbnail.onShow();D.$["header-image"].onShow()})};
_.V.handleCheckBoxUpdateAction_=function(D){this.canShowCheckboxEnabledConfirmButton=D};
_.V.computeUseOverlayForSpinner_=function(D,v){return!!D&&v};
_.V.computeShowSpinner_=function(D,v){return D||!!v};
_.V.fireOnCloseActions_=function(){var D,v=_.P(((D=this.data)==null?void 0:D.onClosedActions)||[]);for(D=v.next();!D.done;D=v.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.V.fireOnOpenCommands_=function(D){var v,h=(v=this.data)==null?void 0:v.onOpenCommands;if(h)for(D.stopImmediatePropagation(),D=_.P(h),v=D.next();!v.done;v=D.next())this.ytRendererBehavior.resolveCommand(v.value)};
_.V.fireOnDismissCommands_=function(D){var v,h=(v=this.data)==null?void 0:v.onDismissCommands;if(h)for(D.stopImmediatePropagation(),D=_.P(h),v=D.next();!v.done;v=D.next())this.ytRendererBehavior.resolveCommand(v.value)};
_.V.openPopupHandler_=function(D){D.detail==this&&this.fireOnOpenCommands_(D)};
_.V.closePopupHandler_=function(D,v){_.U9(this,"yt-confirm-dialog-close-action",[v]);this.fireOnCloseActions_();(v&&v.canceled===!0||v&&v.canceled===!1&&v.confirmed===!1)&&this.fireOnDismissCommands_(D)};
_.V.onHeaderImageChanged_=function(){var D;((D=this.data)==null?0:D.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.V.computeHasHeaderImageWidth_=function(D){return D!=void 0};
_.V.computeHasLoadingMessage=function(D){return!!D};
_.V.onHeaderImageWidthChanged_=function(){var D,v=(D=this.data)==null?void 0:D.headerImageWidth;if(v){if(D=1.25*v*2+v,this.$.main.style.width=D+"px",v=this.$.scroller.firstElementChild)v.style.minWidth=D+"px"}else this.$.main.style.width="100%"};
_.V.onThumbnailChanged_=function(){var D;((D=this.data)==null?0:D.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.V.onYtNavigate_=function(D){D=_.xU(D);D instanceof Node&&_.EI(this.$["confirm-button"]).contains(D)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.V.computePrimaryIsCancel_=function(D){return D};
_.V.computeIsCancelButtonHidden_=function(D){return D.skipCancelButton||!D.cancelButton};
_.V.computeIsCheckboxHidden_=function(D){return!D.checkbox};
_.V.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.V.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.V.onYtServiceRequestCompleted_=function(){var D;((D=this.data)==null?0:D.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.GT.Object.defineProperties(Fz,{template:{configurable:!0,enumerable:!0,get:function(){if(HYS===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;ma$===void 0&&(ma$=document.createElement("template"));var a=ma$;h.call(v,a.content.cloneNode(!0),D.content.firstChild);HYS=D}D=HYS;return D}}});
Fz.prototype.onYtServiceRequestCompleted_=Fz.prototype.onYtServiceRequestCompleted_;Fz.prototype.onYtServiceRequestSent_=Fz.prototype.onYtServiceRequestSent_;Fz.prototype.onThumbnailLoaded_=Fz.prototype.onThumbnailLoaded_;Fz.prototype.onYtNavigate_=Fz.prototype.onYtNavigate_;Fz.prototype.onThumbnailChanged_=Fz.prototype.onThumbnailChanged_;Fz.prototype.onHeaderImageWidthChanged_=Fz.prototype.onHeaderImageWidthChanged_;Fz.prototype.onHeaderImageChanged_=Fz.prototype.onHeaderImageChanged_;
Fz.prototype.closePopupHandler_=Fz.prototype.closePopupHandler_;Fz.prototype.openPopupHandler_=Fz.prototype.openPopupHandler_;_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],Fz.prototype,"ytActionHandlerBehavior",void 0);_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);
_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],Fz.prototype,"ytEventForwardingBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],Fz.prototype,"data",void 0);_.e([_.Y({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.n("design:type",Boolean)],Fz.prototype,"primaryIsCancel",void 0);_.e([_.Y({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.n("design:type",Boolean)],Fz.prototype,"isCancelButtonHidden",void 0);
_.e([_.Y({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.n("design:type",Boolean)],Fz.prototype,"isCheckboxHidden",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Fz.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.e([_.Y({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Fz.prototype,"useOverlayForSpinner_",void 0);
_.e([_.Y({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.n("design:type",Boolean)],Fz.prototype,"showSpinner_",void 0);_.e([_.Y({value:!1}),_.n("design:type",Boolean)],Fz.prototype,"isActionInProgress_",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.n("design:type",Boolean)],Fz.prototype,"hasHeaderImageWidth_",void 0);
_.e([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.n("design:type",Boolean)],Fz.prototype,"hasLoadingMessage",void 0);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Fz.prototype,"openPopupHandler_",null);_.e([_.lc("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Fz.prototype,"closePopupHandler_",null);
_.e([_.Ni("data.headerImage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fz.prototype,"onHeaderImageChanged_",null);_.e([_.Ni("data.headerImageWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fz.prototype,"onHeaderImageWidthChanged_",null);_.e([_.Ni("data.thumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fz.prototype,"onThumbnailChanged_",null);
_.e([_.lc("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Fz.prototype,"onYtNavigate_",null);_.e([_.lc("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fz.prototype,"onThumbnailLoaded_",null);_.e([_.lc("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.td]),_.n("design:returntype")],Fz.prototype,"onYtServiceRequestSent_",null);
_.e([_.lc("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.QL]),_.n("design:returntype")],Fz.prototype,"onYtServiceRequestCompleted_",null);_.e([_.Ry({is:"yt-confirm-dialog-renderer",noInjection:!0})],Fz);var yur;var wEZ;var zs=function(){return _.c.apply(this,arguments)||this};
_.J(zs,_.c);zs.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZW(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
zs.prototype.computeConfirmButton_=function(D){var v={text:D.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};D.confirmNavigationEndpoint?v.navigationEndpoint=D.confirmNavigationEndpoint:D.confirmServiceEndpoint&&(v.serviceEndpoint=D.confirmServiceEndpoint);return v};
zs.prototype.computeShowTitle_=function(D){return!(D==null||!D.title)};
_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],zs.prototype,"data",void 0);_.e([_.Y({computed:"computeShowTitle_(data)"}),_.n("design:type",Boolean)],zs.prototype,"showTitle",void 0);_.e([_.Ry({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],zs);
_.w(zs,"yt-fancy-dismissible-dialog-renderer",function(){if(wEZ===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;yur===void 0&&(yur=document.createElement("template"));var a=yur;h.call(v,a.content.cloneNode(!0),D.content.firstChild);wEZ=D}D=wEZ;return D});var eI3;var nBU;var U7=function(){var D=_.c.apply(this,arguments)||this;D.spinnerActive=!1;return D};
_.J(U7,_.c);U7.prototype.created=function(){Sk3(2201)};
U7.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
U7.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
U7.prototype.onIronOverlayClosed=U7.prototype.onIronOverlayClosed;U7.prototype.onIronOverlayOpened=U7.prototype.onIronOverlayOpened;_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.MB),_.n("design:type",Object)],U7.prototype,"tpYtIronOverlayBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],U7.prototype,"data",void 0);_.e([_.Y(),_.n("design:type",Object)],U7.prototype,"spinnerActive",void 0);
_.e([_.lc("iron-overlay-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],U7.prototype,"onIronOverlayOpened",null);_.e([_.lc("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],U7.prototype,"onIronOverlayClosed",null);_.e([_.Ry({is:"yt-loading-renderer",disableElementRegistration:!0})],U7);
_.w(U7,"yt-loading-renderer",function(){if(nBU===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;eI3===void 0&&(eI3=document.createElement("template"));var a=eI3;h.call(v,a.content.cloneNode(!0),D.content.firstChild);nBU=D}D=nBU;return D},{mode:2});var OYK;var KQC;var Lw=function(){var D=_.c.apply(this,arguments)||this;D.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);D.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);D.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.J(Lw,_.c);_.V=Lw.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.V.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.V.openPopupHandler_=function(D){D.detail===this.hostElement&&this.hostElement.hidden&&_.zU(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.V.onDismissButtonTap_=function(){var D;this.closeOnDismissButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.zU(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.onAcceptButtonTap_=function(){var D;this.closeOnAcceptButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.zU(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.computeHasHeader_=function(D){return!!D.headerBackgroundImage};
_.V.computeLayoutStyle_=function(D){return D};
_.V.computePopupSize_=function(D){return D};
_.V.computeIconType_=function(D){return D.dialogIcon&&D.dialogIcon.iconType?D.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":D.dialogIcon.iconType:""};
_.V.computeIsLogo_=function(D){return!!D.dialogIcon&&!!D.dialogIcon.iconType&&(D.dialogIcon.iconType==="YOUTUBE_LOGO"||D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||D.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.V.computeHasCustomLogo=function(D){return!(D==null||!D.headerForegroundImage)};
_.V.computeCustomLogo=function(D,v){if(D!=null&&D.headerForegroundImage)return D.headerForegroundImageDark?v?D.headerForegroundImageDark:D.headerForegroundImage:D.headerForegroundImage};
_.V.computeHeaderBackgroundImage=function(D,v){if(D!=null&&D.headerBackgroundImage)return v&&(D==null?0:D.headerBackgroundImageDark)?D.headerBackgroundImageDark:D.headerBackgroundImage};
_.V.shouldShowIconContainer=function(D,v){return D&&!v};
_.V.shouldShowNonYouTubeIcon=function(D,v){return!D&&!v};
_.V.getLogoImageId=function(D){var v,h,a;return(D=(v=this.computeCustomLogo(D,this.isDarkTheme))==null?void 0:(h=v.thumbnails)==null?void 0:(a=h[0])==null?void 0:a.height)&&D%31===0?"custom-logo-with-padding":"custom-logo"};
Lw.prototype.openPopupHandler_=Lw.prototype.openPopupHandler_;Lw.prototype.dataChanged_=Lw.prototype.dataChanged_;_.e([_.l(_.ct.YtRendererstamperBehavior),_.n("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.e([_.Y(),_.n("design:type",Boolean)],Lw.prototype,"isDarkTheme",void 0);
_.e([_.Y({computed:"computeCustomLogo(data, isDarkTheme)"}),_.n("design:type",Object)],Lw.prototype,"customLogo",void 0);_.e([_.Y({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.n("design:type",Object)],Lw.prototype,"headerBackgroundImage",void 0);_.e([_.Y(),_.n("design:type",Object)],Lw.prototype,"data",void 0);_.e([_.Y({computed:"computeHasHeader_(data)"}),_.n("design:type",Boolean)],Lw.prototype,"hasHeader",void 0);
_.e([_.Y({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.n("design:type",Object)],Lw.prototype,"layoutStyle",void 0);_.e([_.Y({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.n("design:type",Object)],Lw.prototype,"popupSize",void 0);_.e([_.Y({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Lw.prototype,"hasLogo",void 0);
_.e([_.Y({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Lw.prototype,"hasCustomLogo",void 0);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Lw.prototype,"dataChanged_",null);_.e([_.lc("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Lw.prototype,"openPopupHandler_",null);
_.e([_.Ry({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Lw);
_.w(Lw,"yt-upsell-dialog-renderer",function(){if(KQC===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;OYK===void 0&&(OYK=document.createElement("template"));var a=OYK;h.call(v,a.content.cloneNode(!0),D.content.firstChild);KQC=D}D=KQC;return D},{mode:2});var TbI=_.H(function(D){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.F(_.z,{cond:D.title,then:function(v){return _.F("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},v)}}))},"Ii"),RIZ=_.H(function(D){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.F(_.c4,{data:D.closeButton},{buttonViewModel:function(v){return _.F("div",null,_.F(_.s$,{data:v.data}))}}))},"Ji"),iYs=_.H(function(D){var v=D.data;
return _.F(_.xf,null,_.F("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.F("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.F(_.z,{cond:function(){return!!v().image&&!!v().title},
then:function(){return _.F(_.PX,{data:function(){return v().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.F("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.F(_.z,{cond:function(){return v().title},
then:function(h){return _.F("h3",{class:"miniAppGameInfoDialogViewModelTitle"},h)}}),_.F(_.z,{cond:function(){return v().primaryGenre},
then:function(h){return _.F("span",{class:"miniAppGameInfoDialogViewModelGenre"},h)}}))),_.F(_.z,{cond:function(){var h=v().description;
return h&&h.length<=150},
then:function(){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.F("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return v().description}))}}))},"Ki"),WQb=_.H(function(D){D=D.infoRows;
var v=_.xd().resolve(_.Lk),h=_.g("enable_displaying_ppn");return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.F(_.Xd,{each:D},function(a){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.F(_.z,{cond:function(){return a.label},
then:function(Q){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Q)}}),_.F(_.z,{cond:function(){return a.attributedLabel},
then:function(Q){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.F(_.IY,{text:Q,noPreWrap:!0}))}}),_.F(_.z,{cond:function(){return a.value},
then:function(Q){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Q)}}),_.F(_.z,{cond:function(){return a.attributedValue},
then:function(Q){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.F(_.IY,{text:Q,noPreWrap:!0}))}}))}),_.F(_.z,{cond:function(){return h&&v.clientData.has("post_play_nonce")},
then:function(){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.F("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},v.getData("post_play_nonce")))}}))},"Li"),tVZ=_.H(function(D){var v=D.data;
return _.F("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.F(TbI,{title:function(){return v().dialogTitle}}),_.F(iYs,{data:v}),_.F(_.z,{cond:function(){return v().infoRow},
then:function(h){return _.F(WQb,{infoRows:h})}}),_.F(RIZ,{closeButton:function(){return v().closeButton}}))},"Mi");
tVZ.idomCompat=!0;_.zh(tVZ,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;return _.F("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.F(_.PX,{data:function(){return v().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.F("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.F("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.F(_.z,{cond:function(){var h=v().ytLogo;return h?h.iconType:null},
then:function(h){return _.F(_.Y5,{icon:h,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.F("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.F("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.F(_.IY,{text:function(){return v().body}})),_.F("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.F(_.IY,{text:function(){return v().verifyStateText}}))),
_.F("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.F("div",null,_.F(_.c4,{data:function(){return v().dismissButton}},{buttonViewModel:_.s$})),_.F("div",null,_.F(_.c4,{data:function(){return v().linkParentButton}},{buttonViewModel:_.s$})))))},"Ni"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.gj}});var ruI=_.H(function(D){var v=D.data;D=_.MK(function(){return v().agreements},[]);
return _.F("installment-agreements-view-model",{class:_.S3("ytInstallmentAgreementsViewModelHost")},_.F(_.Xd,{each:D},function(h){return _.F("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.F("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.F(_.IY,{text:h.label})),_.F("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.F(_.c4,{data:function(){return h.openButton}},{buttonViewModel:_.s$})))}))},"Oi");
ruI.idomCompat=!0;var u03=_.H(function(D){var v=_.P(_.lL(function(){var R,vA;return((R=D.data().createPlaylistDialogFormSchema)==null?0:(vA=R.initialValues)==null?0:vA.title)?D.data().createPlaylistDialogFormSchema.initialValues.title:""})),h=v.next().value,a=v.next().value;
v=_.P(_.lL(function(){D.data();return!1}));
var Q=v.next().value,G=v.next().value;v=_.P(_.lL(function(){D.data();return!1}));
var x=v.next().value,f=v.next().value;v=_.P(_.lL(function(){var R,vA;return(R=D.data().createPlaylistDialogFormSchema)==null?void 0:(vA=R.initialValues)==null?void 0:vA.visibility}));
var C=v.next().value,U=v.next().value;v=_.P(_.lL(function(){D.data();return!1}));
var L=v.next().value,Z=v.next().value;v=_.P(_.lL(function(){var R,vA;return(R=D.data().createPlaylistDialogFormSchema)==null?void 0:(vA=R.initialValues)==null?void 0:vA.isCollaborative}));
var E=v.next().value,I=v.next().value,S=_.va("div");_.bW(function(){var R=S.value.querySelector("textarea");R&&(R.value=h())},"axFRaf");
_.jA(function(){var R;_.JO2((R=D.data().createPlaylistDialogFormSchema)==null?void 0:R.id,{onSubmit:function(){var vA=h();var f7=C(),xL=E(),kL=D.data();vA={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:vA,privacyStatus:f7,videoIds:kL.videoIds,sourcePlaylistId:kL.sourcePlaylistId,params:xL?kL.createPlaylistParamsCollaborationEnabled:kL.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.xd().resolve(_.fx).resolveCommand(vA)},
isValid:function(){return Q()&&!x()&&!L()}})});
var B=function(R){if(R!==void 0&&(a(R),!Q()&&R.length>0&&G(!0),Q())){var vA=X4s(D.data());if(vA){var f7=vA.minLength;vA=vA.maxLength;f7&&R.length<f7?f(!0):vA&&R.length>vA?f(!0):f(!1)}}},A=function(){var R=!(!E()||C()!=="PRIVATE");
Z(R)},d=function(R){R!==void 0&&(U(R),A())},b=function(){if(L())return qnr(D.data())},W=function(){I(!E());
A()},K=function(){return{validate:function(R){if(Q()){var vA=X4s(D.data());
if(vA){var f7=vA.minLength;vA=vA.translations;if(f7&&R.length<f7)return vA==null?void 0:vA.minLengthErrorMessage}}}}},O=function(){var R=X4s(D.data()),vA=R==null?void 0:R.maxLength,f7;
R=R==null?void 0:(f7=R.translations)==null?void 0:f7.maxLengthErrorMessage;if(vA&&R)return{maxChars:vA,errorMessage:R}};
return _.F("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.F("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:S},_.F(_.c4,{data:function(){return D.data().playlistTitle}},{textFormFieldViewModel:function(R){return _.F(_.Ucr,{data:R.data,
text:h,onInput:B,validation:K,characterLimit:O})},
textFieldViewModel:function(R){return _.F(_.zuS,{data:R.data,text:h,onInput:B,validation:K,characterLimit:O})}})),_.F("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.F(_.c4,{data:function(){return D.data().playlistVisibility}},{dropdownViewModel:function(R){return _.F(_.Ndm,{data:R.data,
onSelected:d,error:b})}})),_.F(_.z,{cond:function(){return!!D.data().playlistCollaborate},
then:function(){return _.F("div",null,_.F(_.c4,{data:function(){return D.data().playlistCollaborate}},{switchListItemViewModel:function(R){return _.F(_.oT$,{data:R.data,
onTap:W})}}))}}))},"Qi");var D3b=_.H(function(D){var v=D.data;return _.F("upsell-offer-table-cell-content-view-model",null,_.F("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.F(_.A$,null,_.F(_.Bv,{when:function(){return v().iconType}},function(){return _.F("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.F(_.Y5,{icon:function(){return v().iconType.toString()}}))}),_.F(_.Bv,{when:function(){return v().title}},function(){return _.F(_.IY,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return v().title}})}),_.F(_.Bv,{when:function(){return v().subtitle}},function(){return _.F(_.IY,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return v().subtitle}})}),_.F(_.Bv,{when:function(){return v().infoText}},function(){return _.F(_.IY,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return v().infoText}})}),_.F(_.Bv,{when:function(){return v().featureDescription}},function(){return _.F(_.IY,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return v().featureDescription}})}),_.F(_.Bv,{when:function(){return v().note}},function(){return _.F(_.IY,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return v().note}})}))))},"Ri");
D3b.idomCompat=!0;var v4S=_.H(function(D){var v=D.data;return _.F("upsell-offer-table-cell-view-model",null,_.F("div",{class:_.S3("ytUpsellOfferTableCellViewModelCellWrapper",function(){return v().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.F(_.c4,{data:function(){return v().contents}},{upsellOfferTableCellContentViewModel:D3b})))},"Si");
v4S.idomCompat=!0;var hN3=_.H(function(D){var v=D.data;var h=D.upsellTableIsFirstRow;var a=function(){return(h==null?0:h())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Q=function(){return(h==null?0:h())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.F("ytm-upsell-offer-table-row-view-model",null,_.F("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.F(_.c4,{data:function(){return v().rowHeaderCell}},{upsellOfferTableCellViewModel:function(G){return _.F("div",{class:a},_.F(v4S,{data:G.data}))}}),_.F(_.c4,{data:function(){return v().contentCells}},{upsellOfferTableCellViewModel:function(G){return _.F("div",{class:Q},_.F(v4S,{data:G.data}))}})))},"Ti");
hN3.idomCompat=!0;var aiZ=_.H(function(D){var v=D.data;return _.F("ytm-upsell-offer-table-view-model",null,_.F("div",{class:"ytUpsellOfferTableViewModelHost"},_.F("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.F(_.c4,{data:function(){return v().rows}},{upsellOfferTableRowViewModel:function(h,a){return _.F(hN3,{data:h.data,
upsellTableIsFirstRow:function(){return a()===0}})}}))))},"Ui");
aiZ.idomCompat=!0;var $3S=_.H(function(D){var v=_.MK(D.noPadding,!1),h=function(){var G,x;return(x=(G=D.data().logo.accessibilityData)==null?void 0:G.label)!=null?x:""},a=function(){return D.data().offerTable},Q={};
return _.F("upsell-view-model",{class:_.S3("ytUpsellViewModelHost",(Q.ytUpsellViewModelHostNoPadding=function(){return v()},Q.ytUpsellViewModelHostWide=function(){return a()!==void 0},Q))},_.F("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.F(_.z,{cond:function(){return _.i7(D.data().logo)},
then:function(G){return _.F(_.PX,{data:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:h})}})),_.F("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.F(_.IY,{text:function(){return D.data().title}})),_.F("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.F(_.Xd,{each:function(){var G;
return(G=D.data().subtitles)!=null?G:[]},
keyBy:"INDEX"},function(G){var x={};return _.F("div",{class:_.S3("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(x.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return a()!==void 0},x))},_.F(_.IY,{text:G}))})),_.F("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.F(_.Xd,{each:function(){var G;
return(G=D.data().benefitInfos)!=null?G:[]},
keyBy:"INDEX"},function(G){return _.F(_.z,{cond:function(){return G().info},
then:function(x){return _.F("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.F(_.Y5,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.F(_.IY,{text:x}))}})})),_.F(_.z,{cond:function(){return a()!==void 0},
then:function(){return _.F("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.F(aiZ,{data:a}))}}),_.F("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.F(_.Xd,{each:function(){var G;
return(G=D.data().legalInfos)!=null?G:[]},
keyBy:"INDEX"},function(G){var x={};return _.F("div",{class:_.S3("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(x.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return a()!==void 0},x))},_.F(_.IY,{text:G}))})))},"Vi");var Qkd=_.H(function(D){var v=D.data;D={};D=(D.ytMiniAppScoreChallengeViewModelScoreRadial=!0,D.ytMiniAppScoreChallengeViewModelDarkScoreRadial=bjr(),D);return _.F("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.F("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return v().title}),_.F("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return v().subtitle}),_.F("div",{class:_.sn(D)},_.F("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return v().score})),_.F("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return v().prompt}))},"Wi");var GoZ=function(){this.store=_.P8();this.formId=""};
GoZ.prototype.onInit=function(D){D.formId&&(this.formId=D.formId,this.store.dispatch(_.oG({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var VTU=_.H(function(D){function v(f){if(f&&(f=_.k(f,_.qq)))return Object.assign({},f,{isSelected:G()})}
var h=_.P(_.lL(function(){var f,C;return(C=(f=_.k(D.data().option,_.qq))==null?void 0:f.isSelected)!=null?C:!1})),a=h.next().value,Q=h.next().value,G=a;
_.jA(function(){var f;_.JO2((f=D.data().formSchema)==null?void 0:f.id,{onSubmit:function(){var C=_.xd().resolve(_.fx),U=!!D.data().selectedCommand,L=!!D.data().unselectedCommand;if(G()){if(U)var Z=D.data().selectedCommand}else L&&(Z=D.data().unselectedCommand);Z=_.Rq(Z);v(D.data().option)&&!Z?(C="",!U&&L?C="selected ":U&&!L&&(C="unselected "),U=new _.XH("No "+C+"command found for SelectionListItemFormViewModel"),_.mV(U)):Z&&C.resolveCommand(Z)},
isValid:function(){return!0}})});
var x=function(){Q(!G())};
_.dq(function(){var f,C,U=(f=D.data())==null?void 0:(C=f.formSchema)==null?void 0:C.id;U&&_.Nq()().delete(U)});
return _.F("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.F("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.F(_.IY,{text:function(){return D.data().paragraph}})),_.F(_.z,{cond:function(){return v(D.data().option)},
then:function(f){return _.F(_.xD,{data:f,isCompact:!0,hideSelectionTextChevron:!0,onTap:x,disableHorizontalPadding:!0})}}))},"Xi");var Pds=_.H(function(D){var v=D.data;var h=D.disablePadding;var a=D.className;var Q=_.va("yt-dialog-header-view-model"),G=function(){var f=v().imageBanner;a:switch(v().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var C="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:C="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:f,style:C,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},x=function(){return v().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.jA(function(){var f=function(){_.zU(Q.value,"yt-refit-popups-action")},C;
(C=Q.value)==null||C.addEventListener("image-loaded",f);_.dq(function(){var U;(U=Q.value)==null||U.removeEventListener("image-loaded",f)})});
D={};return _.F("yt-dialog-header-view-model",{el:Q,class:_.S3(a,(D.ytDialogHeaderViewModelHost=!0,D.ytDialogHeaderViewModelHostDisablePadding=h,D))},_.F(_.z,{cond:function(){return v().imageBanner},
then:function(){var f={};return _.F("div",{class:_.S3(a,(f.ytDialogHeaderViewModelBanner=!0,f.ytDialogHeaderViewModelBannerFullBleed=x,f)),style:_.NL({"max-height":function(){return v().assetContainerMaxHeight!==void 0?v().assetContainerMaxHeight+"px":void 0}})},_.F(_.XE,{data:G,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.F(_.z,{cond:function(){return v().headerBlock},
then:function(){return _.F("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.F(_.c4,{data:function(){return v().headerBlock}},{contentPreviewImageViewModel:function(f){return _.F(_.XE,{data:f.data,
notifyOnLoaded:!0})}}))}}),_.F(_.z,{cond:function(){return v().customBanner},
then:function(f){return _.F("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.F(_.c4,{data:f},{avatarStackViewModel:_.V2}))}}),_.F(_.z,{cond:function(){return v().headline},
then:function(f){return _.F("h2",null,_.F(_.IY,{text:f,className:"ytDialogHeaderViewModelText"}))}}))},"Yi");
Pds.idomCompat=!0;var x3d=_.H(function(D){var v=_.G98(function(){return D.data().formId}),h=v.submitForm,a=v.isValid;
return _.F("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.F(_.c4,{data:function(){return D.data().panelFooter}},{panelFooterViewModel:function(Q){return _.F(_.YS,{data:Q.data,
disablePadding:!0,disablePrimaryButton:function(){return!a()},
onClickPrimaryButton:function(){h()}})}}))},"Zi");var MTS=_.H(function(D){var v=function(){var h,a;return(a=(h=_.k(D.data().rendererContext,_.BO))==null?void 0:h.label)!=null?a:""};
return _.F("yt-dialog-image-content-view-model",{class:_.S3("ytDialogImageContentViewModelHost",D.className)},_.F(_.z,{cond:function(){return _.i7(D.data().image)},
then:function(h){var a={};return _.F("div",{style:_.NL((a.width=(0,_.Gp)(function(){var Q;return(Q=D.data().imageMaxWidth)!=null?Q:""}),a)),
class:"ytDialogImageContentViewModelImage"},_.F(_.PX,{data:h,alt:v,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.F(_.IY,{text:function(){return D.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"$i");var o4m=_.H(function(D){var v=_.fb(D,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),h=v.elRefCallback;D=v.iconWiz;var a=v.assetWiz,Q=v.assetType,G=v.titleWiz,x=v.leadingActionHeaderWiz,f=v.trailingActionHeaderWiz,C=v.headerPosition,U=v.contentWiz,L=v.buttonLayout,Z=v.buttonStyle,E=v.primaryButtonWiz,I=v.secondaryButtonWiz,S=v.contentAlignment,B=v.isFullscreen,A=v.width,d=v.maxHeight,b=v.isHeaderWizDefined,
W=v.headerWiz,K=v.isFooterWizDefined,O=v.footerWiz;v=_.va("dialog-layout",function(Xf){h==null||h(Xf)});
var R=a?function(){return a({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,vA=E?function(){var Xf={};
return E({buttonOverrides:function(){return{style:(Z==null?void 0:Z())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.S3((Xf["yt-spec-dialog-layout__dialog-layout-button"]=!0,Xf["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(L==null?void 0:L())===0||(L==null?void 0:L())===2},Xf))})}:void 0,f7=I?function(){var Xf={};
return I({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.S3((Xf["yt-spec-dialog-layout__dialog-layout-button"]=!0,Xf["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(L==null?void 0:L())===0||(L==null?void 0:L())===2},Xf))})}:void 0,xL=function(){return(!!G||!!x||!!f)&&C()===0},kL={},Z4={},S2={},s8={};
return _.F("dialog-layout",{el:v,class:_.S3((kL["yt-spec-dialog-layout"]=!0,kL["yt-spec-dialog-layout--dialog-layout-fullscreen"]=B,kL["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!B()},kL["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return d()===1},kL["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Q==null?void 0:Q())===1},kL)),
style:function(){return(A==null?void 0:A())!==void 0?"width: "+A+"px;":""}},D?_.F("div",{class:_.S3((Z4["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Z4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!a&&C()===1},Z4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return S()===1},Z4))},_.F(D,null)):null,_.F(_.z,{cond:b,
then:function(){return W?_.F("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.F(W,null)):null},
else:function(){return _.F(_.xf,null,_.F(_.z,{cond:xL,then:function(){return _.F(fiS,{contentAlignment:S,LeadingActionHeader:x,TrailingActionHeader:f,Title:G,isAboveAsset:!!R})}}),R?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.F(R,null)):null)}}),_.F("div",{class:_.S3((S2["yt-spec-dialog-layout__dialog-layout-container"]=!0,S2["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(S==null?void 0:S())===1},S2["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!G&&!(W&&b())||!!R&&(C==null?void 0:C())===0},S2))},_.F(_.z,{cond:function(){return G&&!W&&(C==null?void 0:C())===1},
then:function(){return _.F(fiS,{contentAlignment:S,LeadingActionHeader:x,TrailingActionHeader:f,Title:G,isAboveAsset:!1})}}),U?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.F(U,null))):null,_.F(_.z,{cond:K,
then:function(){return O?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.F(O,null)):null}}),vA||f7?_.F(CdK,{footerClasses:_.S3((s8["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,s8["yt-spec-dialog-layout__dialog-layout-footer"]=!0,s8["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(L==null?void 0:L())===2},s8["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(L==null?void 0:L())===1},s8)),
PrimaryButton:vA,SecondaryButton:f7}):null))},"aj"),fiS=_.H(function(D){var v=_.fb(D,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),h=v.contentAlignment,a=v.LeadingActionHeader;D=v.Title;var Q=v.TrailingActionHeader,G=v.isAboveAsset,x=v.enableLeadingActionHeader;v={};return _.F("div",{class:_.S3((v["yt-spec-dialog-layout__dialog-header-container"]=!0,v["yt-spec-dialog-layout__dialog-header"]=!0,v["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=G,v["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(h==null?void 0:h())===1&&x()},v))},_.F(_.z,{cond:function(){return x()},
then:function(){return a?_.F("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.F(a,null)):null}}),D?_.F("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.F(D,null)):null,Q?_.F("div",null,_.F(Q,null)):null)},"bj"),CdK=_.H(function(D){var v=D.footerClasses;
var h=D.PrimaryButton;D=D.SecondaryButton;return _.F("div",{class:v},D?_.F(D,null):null,h?_.F(h,null):null)},"cj");var FlS=_.H(function(D){var v=D.data;return _.F("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.F("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.F(_.c4,{data:function(){return v().avatar}},{avatarViewModel:_.Q2})),_.F("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F(_.IY,{text:function(){return v().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"dj");var zNd=_.H(function(D){return _.F("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.F(_.IY,{text:function(){return D.data().inviteMessage}})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.F(_.IY,{text:function(){return D.data().attributedAccountSectionHeaderText}})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.F(_.c4,{data:function(){return D.data().accountAvatar}},{avatarViewModel:_.Q2}),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.F(_.IY,{text:function(){return D.data().accountName}}),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.F(_.IY,{text:function(){return D.data().handle}}))),_.F(_.c4,{data:function(){return D.data().trailingButton}},{buttonViewModel:_.s$})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.F(_.IY,{text:function(){return D.data().termsOfService}})))},"ej");var U33=_.H(function(D){var v=D.data;return _.F("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.F("div",{class:"ytAccessConfirmationViewModelContent"},_.F(_.c4,{data:function(){var h;return(h=v().avatar)!=null?h:v().dualAvatar}},{dualAvatarViewModel:function(h){return _.F(_.a4K,{data:h.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(h){return _.F(_.GG,{data:h.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.F("h2",{class:"ytAccessConfirmationViewModelTitle"},_.F(_.IY,{text:function(){return v().title}})),_.F(_.IY,{text:function(){return v().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fj");var LlC=_.H(function(D){var v=D.data;var h=void 0;D=_.P(_.lL(function(){var U;return((U=_.k(v().content,_.r7))==null?void 0:U.defaultSelectedKey)||""}));
var a=D.next().value,Q=D.next().value,G,x=function(){Q("");var U;(U=h)!=null&&U.store.dispatch(_.oG({type:"RESET_COMMAND_MAP"}))};
_.jA(function(){h=new GoZ;window.addEventListener("yt-popup-closed",x)});
_.bW(function(){if(h&&G!==v().formId&&(h.onInit(v()),(G=v().formId)&&a())){var U=h,L={key:a()};L.command&&U.store.dispatch(SOC(G,L.command))}},"c2n8Gf");
_.dq(function(){window.removeEventListener("yt-popup-closed",x)});
var f=function(U,L,Z){L.key&&Z&&L.key!==a()&&(Q(L.key),h&&L.command&&h.store.dispatch(SOC(Z,L.command)))},C=function(){if(_.k(v().content,_.r7))return!(a==null?0:a())};
return _.F("yt-dialog-view-model",{class:_.S3("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.F(o4m,{headerWiz:function(){return _.F("span",{skip:!0},_.F(_.c4,{data:function(){return v().header}},{dialogHeaderViewModel:function(U){return _.F(Pds,{data:U.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!v().header},
contentWiz:function(){return _.F("span",{skip:!0},_.F(_.c4,{data:function(){return v().customContent?v().customContent:v().content}},{basicContentViewModel:_.hKJ,
createPlaylistDialogFormViewModel:u03,collaborativePlaylistInviteMessageViewModel:zNd,miniAppScoreChallengeViewModel:Qkd,radioButtonGroupViewModel:function(U){var L=U.data;return _.F(_.fFI,{data:L,selectedKey:a,onSelected:f,groupName:function(){return L().formId}})},
selectionListItemFormViewModel:VTU,upsellViewModel:function(U){return _.F($3S,{data:U.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:FlS,installmentAgreementsViewModel:ruI,accessConfirmationViewModel:U33,listViewModel:function(U){return _.F(_.gT4,{data:U.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:MTS}))},
footerWiz:function(){return _.F("span",{skip:!0},_.F(_.c4,{data:function(){return v().footer}},{panelFooterViewModel:function(U){return _.F(_.YS,{data:U.data,
disablePadding:!0,disablePrimaryButton:C})},
formPanelFooterViewModel:x3d,formFooterViewModel:function(U){return _.F(_.GTm,{data:U.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!v().footer}}))},"hj");
LlC.idomCompat=!0;_.zh(LlC,"yt-dialog-view-model",{props:{data:_.gj},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var ZvX=_.H(function(D){var v=D.data;var h=_.pYA(function(){return v().rendererContext});
D={};return _.F("yt-panel-header-view-model",{class:_.S3("ytPanelHeaderViewModelHost",(D.ytPanelHeaderViewModelHostHideDivider=function(){return!!v().shouldHideDivider},D.ytPanelHeaderViewModelHostCompact=function(){return!!v().subtitle},D)),
"aria-label":function(){var a;return(a=h())==null?void 0:a.label}},_.F("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.F(_.z,{cond:function(){return v().title},
then:function(a){return _.F("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.F(_.IY,{text:a,className:"ytPanelHeaderViewModelTitle"}))}}),_.F(_.z,{cond:function(){return v().subtitle},
then:function(a){return _.F(_.IY,{text:a,className:"ytPanelHeaderViewModelSubtitle"})}})),_.F("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.F(_.c4,{data:function(){return v().trailingButtons}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ij");
ZvX.idomCompat=!0;var E4d=_.H(function(D){var v=_.Jd(function(G){var x;if((x=D.skipContentClick)==null?0:x.call(D))return!1;D.onContentWrapperClick(G);return!0}),h,a,Q;
return _.F("div",{class:_.S3("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return D.isAnimating()?"transform: translateY("+D.currentY()+"px);transition: 0.2s":""}},(h=D.header)==null?void 0:h.call(D),_.F("div",{id:D.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.NL({"max-height":(0,_.Gp)(D.maxHeightForContentWrapper)}),"on:scroll":mqC(D.onScroll),"on:touchmove":mqC(function(G){return void G.stopPropagation()})},_.F("div",{el:{onRender:D.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":v},(a=D.body)==null?void 0:a.call(D))),(Q=D.footer)==null?void 0:Q.call(D))},"jj");
E4d.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Iid=_.H(function(D){var v=_.MK(D.leadingLabel),h=_.MK(D.trailingLabel),a=_.MK(D.footerButtonType),Q=function(){return v()||h()||D.hasPrimaryButton()||D.hasSecondaryButton()},G={},x=_.S3("yt-spec-bottom-sheet-layout__primary-button",(G["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return a()===0&&D.hasPrimaryButton()},G["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return a()===1&&D.hasPrimaryButton()},G["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return a()===2&&D.hasPrimaryButton()},G["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return a()===3&&D.hasPrimaryButton()},G));
G={};var f=_.S3("yt-spec-bottom-sheet-layout__secondary-button",(G["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return a()===1&&D.hasSecondaryButton()},G["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return a()===2&&D.hasSecondaryButton()},G["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return a()===3&&D.hasPrimaryButton()},G));
return _.F(_.z,{cond:D.hasFooterOverride,then:function(){var C;return _.F(_.xf,null,(C=D.footerOverride)==null?void 0:C.call(D))},
else:function(){return _.F(_.z,{cond:Q,then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.F(_.z,{cond:function(){return v()||h()},
then:function(){var C={};return _.F("div",{class:_.S3("yt-spec-bottom-sheet-layout__footer-label-wrapper",(C["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!D.hasPrimaryButton()},C))},_.F(_.z,{cond:v,
then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},v)}}),_.F(_.z,{cond:h,
then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},h)}}))}}),_.F(_.z,{cond:function(){return D.hasPrimaryButton()||D.hasSecondaryButton()},
then:function(){var C={};return _.F("div",{class:_.S3("yt-spec-bottom-sheet-layout__footer-button-wrapper",(C["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Qcy,C))},_.F(_.z,{cond:function(){return D.hasSecondaryButton()&&a()!==0},
then:function(){var U;return _.F("div",{class:f},(U=D.secondaryButton)==null?void 0:U.call(D))}}),_.F(_.z,{cond:D.hasPrimaryButton,
then:function(){var U;return _.F("div",{class:x},(U=D.primaryButton)==null?void 0:U.call(D))}}))}}))}})}})},"kj");
Iid.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var g4K=_.H(function(D){var v=_.MK(D.title),h=_.MK(D.subtitle);return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:D.headerId,"on:touchstart":_.Jd(function(a){var Q;(Q=D.touchstart)==null||Q.call(D,a);return!1}),
"on:touchmove":_.Jd(function(a){var Q;(Q=D.touchmove)==null||Q.call(D,a);return!1}),
"on:touchend":_.Jd(function(a){var Q;(Q=D.touchend)==null||Q.call(D,a);return!1})},_.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.F(_.z,{cond:D.hasHeaderOverride,
then:function(){var a;return _.F(_.xf,null,(a=D.headerOverride)==null?void 0:a.call(D))},
else:function(){var a={};return _.F("div",{class:_.S3((a["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,a["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=v,a))},_.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.F(_.z,{cond:v,then:function(){return _.F(_.xf,null,_.F("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},v),_.F(_.z,{cond:h,then:function(){return _.F("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
h)}}))}})),_.F(_.z,{cond:function(){return v()&&D.hasActionHeader()},
then:function(){var Q;return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Q=D.actionHeader)==null?void 0:Q.call(D))}}))}}))},"lj");
g4K.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.H(function(D){function v(R){if(!d&&typeof MutationObserver!=="undefined"){var vA={childList:!0};"MutationObserver"in window&&(d=new MutationObserver(h.bind(void 0,R)),d.observe(R,vA))}}
function h(R){typeof d!=="undefined"&&(b["content-wrapper"]===void 0&&(b["content-wrapper"]=R.children[0].clientHeight),I(b["content-wrapper"]),E()>S()||B(E()))}
function a(){Z(window.innerHeight);E()>S()||B(E());W.isFullScreen[0]()&&E()>S()?K().dispatch("Snap To Full Screen",{maxHeight:A()}):K().dispatch("Snap To Neutral Position",{maxHeight:S()})}
function Q(R){document.body.style.overscrollBehavior="none";R.preventDefault();K().dispatch("Touch Start",{event:R})}
function G(R){R.preventDefault();K().dispatch("Touch Move",{event:R,contentScrollable:E()>S(),fullContentWrapperHeight:A(),contentWrapperHeight:S(),contentHeightMap:b,contentWrapperId:"content-wrapper",header:ynr(D),footer:ynr(D)})}
function x(){document.body.style.overscrollBehavior="";W.isFullScreen[0]()?W.currentY[0]()>=60?K().dispatch("Snap To Neutral Position",{maxHeight:S()}):K().dispatch("Snap To Full Screen",{maxHeight:A()}):W.currentY[0]()>=60?f():W.currentY[0]()<=-60&&E()>S()?K().dispatch("Snap To Full Screen",{maxHeight:A()}):K().dispatch("Snap To Neutral Position",{maxHeight:S()})}
function f(){K().dispatch("Close Sheet",{clientHeight:L(),maxHeight:0});setTimeout(function(){Hjr()},250)}
var C=_.P(_.Zq(window.innerHeight,void 0,"Q6Nekc")),U=C.next().value;C=C.next().value;var L=U,Z=C;C=_.P(_.Zq(0,void 0,"vjnlmb"));U=C.next().value;C=C.next().value;var E=U,I=C;C=_.P(_.lL(function(){var R=ynr(D);return.6*L()-dq3(R)-jgX(R)}));
U=C.next().value;C=C.next().value;var S=U,B=C,A=function(){var R=ynr(D);return L()-dq3(R)-jgX(R)-24-24},d=null,b={},W={initialY:_.Zq(0,void 0,"B0aY2c"),
currentY:_.Zq(0,void 0,"nLPMcf"),isAnimating:_.Zq(!1,void 0,"lXnnZ"),isFullScreen:_.Zq(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.lL(S)},K=function(){var R=null;return function(){if(!R){var vA={initialY:W.initialY[0](),currentY:W.currentY[0](),isAnimating:W.isAnimating[0](),isFullScreen:W.isFullScreen[0](),maxHeightForContentWrapper:W.maxHeightForContentWrapper[0]()};R=sg2(vA)}return R}}();
_.jA(function(){window.addEventListener("resize",a);K().subscribe(function(R){W.initialY[1](R.initialY);W.currentY[1](R.currentY);W.isAnimating[1](R.isAnimating);W.isFullScreen[1](R.isFullScreen);W.maxHeightForContentWrapper[1](R.maxHeightForContentWrapper)})});
_.dq(function(){window.removeEventListener("resize",a);d&&(d.disconnect(),d=null)});
var O=_.S3({"bottom-sheet-content-without-icon":function(){var R;return!((R=D.shouldShowIcons)==null?0:R.call(D))}});
return _.F("bottom-sheet-layout",null,_.F(E4d,{contentWrapperId:"content-wrapper",isAnimating:function(){return W.isAnimating[0]()},
currentY:function(){return W.currentY[0]()},
maxHeightForContentWrapper:function(){return W.maxHeightForContentWrapper[0]()},
shouldShowIcons:D.shouldShowIcons,skipContentClick:D.skipContentClick,onScroll:function(){var R=document.getElementById("header-wrapper"),vA=document.getElementById("content-wrapper");if(R&&vA){var f7={};f7=(f7["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,f7["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,f7);R.className=vA.scrollTop>1?_.sn(f7):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Hjr,contentWrapperEl:function(R){v(R);requestAnimationFrame(function(){h(R)})},
header:function(){return _.F(g4K,{touchstart:Q,touchmove:G,touchend:x,title:D.headerTitle,subtitle:D.headerSubtitle,headerId:"header-wrapper",headerOverride:D.headerFn,hasHeaderOverride:D.hasHeaderFn,actionHeader:D.headerActionHeader,hasActionHeader:D.hasHeaderActionHeader})},
footer:function(){return _.F(Iid,{footerButtonType:D.footerButtonType,leadingLabel:D.footerLeadingLabel,trailingLabel:D.footerTrailingLabel,primaryButton:D.footerPrimaryButton,hasPrimaryButton:D.hasFooterPrimaryButton,secondaryButton:D.footerSecondaryButton,hasSecondaryButton:D.hasFooterSecondaryButton,footerOverride:D.footerFn,hasFooterOverride:D.hasFooterFn})},
body:function(){return _.F(_.z,{cond:D.hasContentFn,then:function(){var R;return _.F("div",{class:O},(R=D.contentFn)==null?void 0:R.call(D))}})}}))},"mj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var kor=_.H(function(D){var v=_.xd().resolve(_.vM);return _.F("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Jd(function(){return void v.closeSheet()})},_.F(_.z,{cond:function(){return!!D.header},
then:function(){return _.F("div",{class:"ytContextualSheetLayoutHeaderContainer"},D.header())}}),_.F(_.z,{cond:function(){return!!D.content},
then:function(){return _.F("div",{class:"ytContextualSheetLayoutContentContainer"},D.content())}}),_.F(_.z,{cond:function(){return!!D.footer},
then:function(){return _.F("div",{class:"ytContextualSheetLayoutFooterContainer"},D.footer())}}))},"nj");
kor.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var SfK=_.H(function(D){D=D.data;var v=_.va("yt-sheet-view-model",function(a){if(_.g("web_focus_first_element_sheet")||!_.g("sheet_focus_first_killswitch"))return a.addEventListener("focus",function(){H1U(a)}),function(){a.removeEventListener("focus",function(){H1U(a)})}}),h={};
return _.F("yt-sheet-view-model",{"on:mousedown":_.Jd(function(a){_.g("sheet_focus_first_killswitch")||a.currentTarget!==a.target&&a.preventDefault()}),
"on:focus":_.Jd(function(){_.g("sheet_focus_first_killswitch")||H1U(v.value)}),
class:_.S3("ytSheetViewModelHost",(h.ytSheetViewModelContextual=!0,h.ytSheetViewModelDisableBackdropFilter=_.g("web_disable_backdrop_filter"),h)),el:v,tabindex:-1},_.F(_.z,{cond:D,then:function(a){return _.F(kor,{header:function(){return _.F(_.c4,{data:function(){return a().header}},{panelHeaderViewModel:ZvX})},
content:function(){return _.F(_.c4,{data:function(){return a().content}},{listViewModel:function(Q){return _.F(_.gT4,{data:Q.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:$3S,miniAppScoreChallengeViewModel:Qkd})},
footer:function(){return _.F(_.c4,{data:function(){return a().footer}},{panelFooterViewModel:_.YS})}})}}))},"oj");
SfK.idomCompat=!0;_.zh(SfK,"yt-sheet-view-model",{props:{data:_.gj}});var pxI=_.H(function(D){var v=function(){var h;return(h=D.data().enableDebuggingFeatures)!=null?h:!1};
return _.F("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.F(_.Xd,{each:function(){var h;return(h=D.data().stickers)!=null?h:[]}},function(h){return _.F(JzU,{data:function(){return h},
debugMode:v})}))},"pj"),JzU=_.H(function(D){var v=_.fb(D,{debugMode:!1}).debugMode,h=_.MK(function(){var C;
return(C=D.data().region)==null?void 0:C.w},0),a=_.MK(function(){var C;
return(C=D.data().region)==null?void 0:C.h},0),Q=_.MK(function(){var C;
return(C=D.data().region)==null?void 0:C.x},0),G=_.MK(function(){var C;
return(C=D.data().region)==null?void 0:C.y},0),x=_.Jd(function(){var C=D.data().onTap;
C&&_.r4(C)}),f={};
return _.F("div",{class:_.S3("ytStoriesStickerLayerViewModelSticker",(f.ytStoriesStickerLayerViewModelDebugMode=v,f)),style:_.NL({width:function(){return 100*h()+"%"},
height:function(){return 100*a()+"%"},
left:function(){return 100*Q()+"%"},
top:function(){return 100*G()+"%"},
"flex-direction":function(){return w4r(D.data().flexDirection)},
"justify-content":function(){return eV$(D.data().justifyContent)},
"align-items":function(){return nem(D.data().alignItems)}}),
"on:click":x},_.F(_.c4,{data:function(){return D.data().button||D.data().toggleButton}},{buttonViewModel:function(C){return _.F(_.s$,{data:C.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(C){return _.F(_.$$,{data:C.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"qj");var N8s=_.H(function(D){var v=function(){return D.data()},h={},a=_.P(_.Zq(!1,void 0,"Adcqrf")),Q=a.next().value,G=a.next().value,x=_.MK(function(){return v().backgroundColor},0);
a=_.MK(function(){return v().actionButtons},[]);
var f=_.MK(function(){return v().stickerLayer},{}),C=function(){var L,Z;
return{animationRef:h,animationConfig:{autoplay:!1,loop:!1,path:(Z=(L=v().foregroundAnimation)==null?void 0:L.url)!=null?Z:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){G(!0)},
complete:function(){D.navigateToNextItemOnLottieComplete()}}}},U=function(){var L,Z,E,I,S,B,A,d;
return{animationConfig:{autoplay:(B=(L=v().backgroundAnimation)==null?void 0:(Z=L.settings)==null?void 0:Z.autoplay)!=null?B:!1,loop:(A=(E=v().backgroundAnimation)==null?void 0:(I=E.settings)==null?void 0:I.loop)!=null?A:!1,path:(d=(S=v().backgroundAnimation)==null?void 0:S.url)!=null?d:"",name:"stories_item_background_animation"}}};
_.bW(function(){if(D.isVisible()&&Q()){var L;(L=h.lottieEl)==null||L.play();D.animationRef()&&(D.animationRef().lottieEl=h.lottieEl)}else{var Z;(Z=h.lottieEl)==null||Z.stop()}},"yCE6kf");
return _.F("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.NL({"background-color":function(){return _.uu(x())+";"}})},_.F("div",{class:"ytStoriesItemViewModelAssetContent"},_.F(_.z,{cond:function(){return!!v().backgroundAnimation},
then:function(){return _.F(_.ne,{data:U,animationName:function(){return U().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.F(_.z,{cond:function(){return!!v().backgroundImage},
then:function(){return _.F(_.PX,{data:function(){return v().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.F(_.z,{cond:function(){return!!v().foregroundAnimation},
then:function(){return _.F(_.ne,{data:C,animationName:function(){return C().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.F(_.z,{cond:function(){return!!v().foregroundImage},
then:function(){return _.F(_.PX,{data:function(){return v().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.F("div",{class:"ytStoriesItemViewModelTopShadow"}),_.F(_.c4,{data:function(){return f()}},{storiesStickerLayerViewModel:pxI})),_.F("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.NL({"background-color":function(){return _.uu(x())}})},_.F("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.F(_.Xd,{each:a},function(L){return _.F(lis,{data:function(){return L},
pauseAutoNavigation:D.pauseAutoNavigation})}))))},"sj"),Yfr={style:"overlay",
type:"outline"},lis=_.H(function(D){var v={};return _.F("div",{class:_.S3("ytStoriesItemViewModelActionButton",(v.ytStoriesItemViewModelStretchedActionButton=function(){return D.data().size==="STORIES_BUTTON_SIZE_STRETCH"},v)),
"on:click":_.Jd(D.pauseAutoNavigation)},_.F(_.c4,{data:function(){return D.data().button}},{buttonViewModel:function(h){return _.F(_.s$,{data:h.data,
buttonOverrides:Yfr})}}))},"tj");var B8I={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.zh(_.H(function(D){var v=function(){var Z4;return(Z4=D.data().startIndex)!=null?Z4:0},h=_.P(_.lL(v)),a=h.next().value,Q=h.next().value;
h=_.P(_.Zq(!1,void 0,"hu8VSd"));var G=h.next().value,x=h.next().value,f=function(){var Z4;return(Z4=D.data().storyItems)!=null?Z4:[]},C={},U=_.va("yt-stories-viewer-view-model"),L=function(){return D.data().dismissButton},Z=function(){var Z4;
return _.Rq((Z4=_.k(L(),_.fH))==null?void 0:Z4.onTap)},E=_.va("div"),I,S,B=!1,A=function(){var Z4;
(Z4=I)==null||Z4.cancel();I=d(a()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});I.onfinish=function(){var S2=_.k(f()[a()],yEC),s8,Xf;S2!=null&&S2.foregroundAnimation&&((S2==null?0:(s8=S2.foregroundAnimation)==null?0:s8.url)||(S2==null?0:(Xf=S2.foregroundAnimation)==null?0:Xf.payload))||(a()!==f().length-1?(Q(a()+1),A()):Z()&&_.iP(Z()))}},d=function(Z4){return E.value.children[Z4].children[0]},b=function(){for(var Z4=0;Z4<a();Z4++)d(Z4).style.transform=
"scaleX(1)"},W=function(){B||(G()?x(!1):(a()===f().length-1&&Z()&&_.iP(Z()),d(a()).style.transform="scaleX(1)",a()!==f().length-1&&(Q(a()+1),A())))},K=function(){B||(G()?x(!1):(d(a()).style.transform="scaleX(0)",a()!==0&&Q(a()-1),A()))},O=function(){x(!0)},R=function(){d(a()).style.transform="scaleX(1)";
a()!==f().length-1?(Q(a()+1),A()):Z()&&_.iP(Z())};
h=function(){B=!1;S=setTimeout(function(){x(!0);B=!0},300)};
var vA=function(){clearTimeout(S);B&&G()&&x(!1)};
_.bW(function(){if(G()){var Z4;(Z4=I)==null||Z4.pause();var S2;(S2=C.lottieEl)==null||S2.pause()}else{var s8;(s8=I)==null||s8.play();var Xf;(Xf=C.lottieEl)==null||Xf.play()}},"iO2i3d");
_.bW(function(){b();a()===v()&&A()},"lE01H");
var f7=function(Z4){Z4.key==="ArrowLeft"?K():Z4.key==="ArrowRight"&&W()},xL=function(Z4){if(Z4.target===U.value){(Z4=Z())&&_.iP(Z4);
clearTimeout(S);var S2;(S2=I)==null||S2.cancel();window.removeEventListener("keydown",f7);window.removeEventListener("yt-popup-closed",xL)}},kL=function(Z4){Z4.target===U.value&&(window.addEventListener("keydown",f7),window.addEventListener("yt-popup-closed",xL))};
_.jA(function(){b();A();window.addEventListener("yt-popup-opened",kL)});
return _.F("yt-stories-viewer-view-model",{el:U,class:_.S3("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.F("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.F("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Jd(K),"on:mousedown":_.Jd(h),"on:mouseup":_.Jd(vA),"on:mouseleave":_.Jd(vA)}),_.F("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Jd(W),"on:mousedown":_.Jd(h),"on:mouseup":_.Jd(vA),"on:mouseleave":_.Jd(vA)})),
_.F("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.F(_.c4,{data:f},{storiesItemViewModel:function(Z4,S2){var s8=Z4.data;return _.F(_.z,{cond:function(){return Math.abs(S2()-a())<=1},
then:function(){var Xf={};return _.F("div",{class:_.S3("ytStoriesViewerViewModelStoryItem",(Xf.ytStoriesViewerViewModelActiveStoryItem=function(){return S2()===a()},Xf))},_.F(N8s,{data:s8,
pauseAutoNavigation:O,navigateToNextItemOnLottieComplete:R,isVisible:function(){return S2()===a()},
animationRef:C}))}})}})),_.F("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:E},_.F(_.Xd,{each:f},function(){return _.F("div",{class:"ytStoriesViewerViewModelProgressBar"},_.F("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.F("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.F(_.PX,{data:B8I,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.F("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.F(_.c4,{data:L},{buttonViewModel:_.s$}))))},"wj"),"yt-stories-viewer-view-model",{props:{data:_.gj}});_.zh(_.H(function(D){var v=D.data;var h=_.va("yt-gen-ai-feedback-form-view-model"),a=[];return _.F("yt-gen-ai-feedback-form-view-model",{el:h,class:"ytGenAiFeedbackFormViewModelHost"},_.F(_.IY,{text:function(){return v().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.F("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.F(_.c4,{data:function(){return v().feedbackChips}},{toggleButtonViewModel:function(Q){var G=Q.data;
return _.F(_.$$,{data:G,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(x){var f=G();f=_.k(f,_.oA);f=_.k(f==null?void 0:f.defaultButtonViewModel,_.fH).trackingParams;x?a.push(f):(x=a.indexOf(f),x>-1&&a.splice(x,1))}})}})),_.F(_.IY,{text:function(){return v().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.F("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.F(_.c4,{data:function(){return v().submitButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Ojr(h.value,a,v().uniqueId)}})}}),_.F(_.c4,{data:function(){return v().moreFeedbackButton}},{buttonViewModel:function(Q){return _.F(_.s$,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"xj"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.gj},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Zs=function(){return _.c.apply(this,arguments)||this};
_.J(Zs,_.c);Zs.prototype.created=function(){Sk3(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(w$d);var D=_.xd().resolve(_.wdb);D&&(D.container=this.ytPopupContainerBehavior);if(D=_.xd().resolve(_.vM))D.container=this.ytPopupContainerBehavior;if(D=_.xd().resolve(_.hq)){var v=this.ytPopupContainerBehavior;D.containerWasInjected?_.yR(Error("mj")):D.container=v}};
Zs.prototype.ensurePopupBelowPlayer=function(D,v){var h=_.xd().resolve(_.PV(_.P4));if(!h||!h.isOnWatch()||!_.Mq())return!1;h=h.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.XT().height>h+this.getPopupHeight(D,v)?(D.style.top="auto",D.style.bottom="0px"):(D.style.top=h+"px",D.style.bottom="auto");return!0};
Zs.prototype.getPopupHeight=function(D,v){v&&(D.cachedPopupHeight=0);if(!D.cachedPopupHeight){v=0;var h=D.clientHeight,a=window.getComputedStyle(D);v+=parseInt(a.marginTop,10);v+=parseInt(a.marginBottom,10);D.cachedPopupHeight=h+v}return D.cachedPopupHeight};
Zs.prototype.getElement=function(D){return document.createElement(D)};
_.e([_.l(z13.YtPopupContainerBehavior),_.n("design:type",Object)],Zs.prototype,"ytPopupContainerBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],Zs.prototype,"ytComponentBehavior",void 0);_.e([_.m({disableElementRegistration:!0,is:"ytd-popup-container"})],Zs);
_.w(Zs,"ytd-popup-container",function(){if(GEC!==void 0)return GEC;var D=document.createElement("template");_.p(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);return GEC=D},{mode:1});var czS;var Xx3={};Xx3.YtLogYpcFlowCommandsBehavior=[_.ed.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(D){_.k(D,Q12)&&(D=_.k(D,Q12))&&(D.serializedTransactionFlowLoggingParams?_.FEA(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.Zn("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.Zn("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=D.serializedYpcPauseFlowLoggingParams)&&
_.Zn("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams?(D=D.serializedYpcRefundFlowLoggingParams)&&UPs("YPC_EVENT_TYPE_START",D):D.serializedYpcDeactivateFlowLoggingParams?(D=D.serializedYpcDeactivateFlowLoggingParams)&&_.Zn("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",D):D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(D=D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Zn("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",D))},
handleLogYpcFlowDismiss_:function(D){_.k(D,$mb)&&(D=_.k(D,$mb),D.serializedTransactionFlowLoggingParams?_.zzc(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.Zn("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.Zn("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=
D.serializedYpcPauseFlowLoggingParams)&&_.Zn("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams&&(D=D.serializedYpcRefundFlowLoggingParams)&&UPs("YPC_EVENT_TYPE_CANCEL",D))}}];var Azm={};Azm.YtCancelRecurrenceBehavior=[_.oY.YtComponentBehavior,_.tTF,{attached:function(){var D=this;Gw$(this,function(v,h){return D.ypcCancelRecurrenceHandler(v,h)})},
ypcCancelRecurrenceHandler:function(D,v){var h=this;if(!v||!v.ypcCancelRecurrenceEndpoint)return!1;if(!v.ypcCancelRecurrenceEndpoint.params)return _.OM(Error("Ml")),!0;_.KS(this.hostElement);var a=_.uL.instance,Q=_.xd().resolve(_.PV(_.Tb));a&&_.DY(a,v)?_.v4(a,v).then(function(G){h.ypcCancelRecurrenceSuccess_(D,v,{data:G})},function(G){h.ypcCancelRecurrenceFailure_(D,v,G)}).thenCatch(function(){_.OM(Error("Nl"))}):Q?Q.requestDataForServiceEndpoint(v).then(function(G){h.ypcCancelRecurrenceSuccess_(D,
v,G)},function(G){h.ypcCancelRecurrenceFailure_(D,v,G)}).thenCatch(function(){_.OM(Error("Nl"))}):_.OM(Error("Ol"));
return!0},
ypcCancelRecurrenceSuccess_:function(D,v,h){_.TN(this.hostElement);h.data||(h={data:h});h.data&&h.data.actions&&_.ZD(this.hostElement,h.data.actions,this.hostElement);h.data.messageRenderer?Zqm(v.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(v=v.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Zn("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",v);_.F1(D,"yt-service-request-completed",h)},
ypcCancelRecurrenceFailure_:function(D,v,h){_.TN(this.hostElement);Zqm(v.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.F1(D,"yt-service-request-error",{error:h,params:[D,v]})}}];var qfm=function(D,v){_.hc.call(this,v)};
_.J(qfm,dAX);var bvK={};bvK.YtCompleteTransactionBehavior=[_.oY.YtComponentBehavior,_.tTF,{attached:function(){var D=this;Gw$(this,function(v,h){return D.ypcCompleteTransactionHandler(v,h)})},
completeTransaction:function(D,v){var h=this;v={payments_payload:window.btoa(v.integratorData),buybucket_params:D.data.buybucketParams,offer_params:D.data.offerParams};var a=_.xd().resolve(_.Tb),Q=D.data.completeTransactionEndpoint,G=this.get("ypcCompleteTransactionEndpoint.actions",Q);G&&_.ZD(this.hostElement,G,this.hostElement);return(G=_.uL.instance)&&_.DY(G,Q)?_.v4(G,Q,v).then(function(x){return!x||(x==null?0:x.error)?(x=h.get("data.serializedTransactionFlowLoggingParams",D),_.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
x))):{data:x}}).then(function(x){return h.handleCompleteTransactionSuccess_(x,D)},function(){return h.handleCompleteTransactionFailure_(D)}):a.requestDataForServiceEndpoint(Q,v).then(function(x){return h.handleCompleteTransactionSuccess_(x,D)},function(){return h.handleCompleteTransactionFailure_(D)})},
handleCompleteTransactionSuccess_:function(D,v){D.data||(D={data:D});if(D.data.messageRenderer)return _.H8(new qfm(D.data.messageRenderer));if(D.data.trackingParams){var h=_.wd(),a=_.yC();h&&a&&_.tP(h,a,_.d4(D.data.trackingParams))}v=this.get("data.serializedTransactionFlowLoggingParams",v);Lc3(v);return _.E9(D)},
handleCompleteTransactionFailure_:function(D){D=this.get("data.serializedTransactionFlowLoggingParams",D);_.GH("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D);return _.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D))},
ypcCompleteTransactionHandler:function(D,v){var h=this;if(!v.ypcCompleteTransactionEndpoint)return!1;if(!v.ypcCompleteTransactionEndpoint.transactionParams)return _.OM(Error("Pl")),!0;v.ypcCompleteTransactionEndpoint&&v.ypcCompleteTransactionEndpoint.gtmData&&_.hk(v.ypcCompleteTransactionEndpoint.gtmData);var a=_.xd().resolve(_.PV(_.Tb));if(a){_.KS(this.hostElement);var Q=_.uL.instance;Q&&_.DY(Q,v)?_.v4(Q,v).then(function(G){return!G||(G==null?0:G.error)?(G=h.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
v),_.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))):{data:G}}).then(function(G){_.F1(D,"yt-service-request-completed");
h.ypcCompleteTransactionSuccess_(v,G)},function(){return h.ypcCompleteTransactionFailure_(v)}):a.requestDataForServiceEndpoint(v).then(function(G){_.F1(D,"yt-service-request-completed");
h.ypcCompleteTransactionSuccess_(v,G)},function(){return h.ypcCompleteTransactionFailure_(v)})}return!0},
ypcCompleteTransactionSuccess_:function(D,v){_.TN(this.hostElement);v.data||(v={data:v});_.zU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);v.data.messageRenderer||v.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(D):(_.hk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",D));v.data.actions&&(D=mLC(v.data.actions),v=H_$(v.data.actions),D.length&&_.L1(this.hostElement,
D),v.length&&_.ZD(this.hostElement,v,this.hostElement))},
ypcCompleteTransactionFailure_:function(D){_.TN(this.hostElement);_.zU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",D,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(D,v,h){if(v=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",v))v={serializedTransactionFlowLoggingParams:v},h&&(v.errorType=h),_.jj(D,v),_.s5()}}];var d3K={};d3K.YtEndpointHandlerWithYpcBehavior=[_.tTF,_.ed.YtActionHandlerBehavior,[{openWalletDialog:function(D,v,h,a,Q,G,x){var f=this,C=_.hn();v=v.replace(/-/g,"+").replace(/_/g,"/");var U=_.YE().get("hl");_.Fyf(_.Qf(_.VT),v,C.resolve,Q,function(L){G&&G();C.reject(L)},U,function(L){return f.onServerBackendAnalyticEvent_(D,h,L)},this.onDialogClose_.bind(this),a,x);
return C.promise},
openFixFlowDialog:function(D,v,h,a){D=D.replace(/-/g,"+").replace(/_/g,"/");_.Qf(_.VT).openFixFlowDialog(D,v,h,a)},
onDialogClose_:function(){_.zU(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(D,v,h){_.F1(D,"yt-commerce-action-init-done");v&&_.L1(this.hostElement,[v,{backend_analytics:h}])}}],
_.y1.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(D,v){D=this.get("data.nativeFlowEndpoint",v);v=this.get("data.fallbackEndpoint",v);D?_.L1(this.hostElement,[D]):v&&_.F1(this.hostElement,"yt-navigate",{endpoint:v})}}],
Azm.YtCancelRecurrenceBehavior,bvK.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var D=this;Gw$(this,function(v,h,a){return D.handleYPCEndpoint(v,h,a)});
this.ypcRegisterActionMapJobId_=_.c1(_.HK,function(){D.registerActionMap(D.buyFlowActionMap_)})},
detached:function(){var D=this;_.HK.cancelJob(this.ypcRegisterActionMapJobId_);_.c1(_.HK,function(){D.unregisterActionMap(D.buyFlowActionMap_)})},
handleYPCEndpoint:function(D,v,h){var a=v.ypcGetCartEndpoint;if(a){_.wK("commerce_transaction");var Q=a.gtmId;Q&&_.vt(Q);(a=a.gtmData)&&_.hk(a)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",v)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(D,v),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",v)!=null?(this.handleYPCFixInstrumentEndpoint_(D,v),!0):v.ypcPauseSubscriptionCommand?(DOI(this.hostElement,D,v,h),
!0):v.ypcResumeSubscriptionCommand?(ajZ(this.hostElement,D,v),!0):v.getPaymentInstrumentsParamsCommand?(tbs(this.hostElement,D,v),!0):v.ypcHandleTransactionEndpoint?(ijU(this.hostElement,D,v,h),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(D,v){var h=this;_.ea("ttcr",void 0,"commerce_transaction");v=v.ypcGetCartEndpoint;var a=v.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Q=a.encryptedPurchaseParams,G=a.serializedTransactionFlowLoggingParams,x=a.serializedPaymentsClientParams,f=this.createGetCartResponseFromParams_(a,v.offerParams,G);this.changeButtonState(D,!0);_.yS(this.openWalletDialog(D,Q,a.ypcLogWalletAnalyticDataEndpoint,G,function(){h.changeButtonState(D,!1)},function(){h.changeButtonState(D,
!1)},x).then(function(C){return h.handleBuyFlowCompleteCallback_(D,f,C)},function(){return h.handleOnLoadError(f)}).then(function(C){return void h.handlePostPurchaseSuccess_(D,f,C)},function(C){return void h.handlePostPurchaseError_(C)}),function(){h.changeButtonState(D,!1);
D instanceof Element&&_.F1(D,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(D,v,h){var a=D.completeTransactionEndpoint,Q=D.handleTransactionEndpoint;v={data:{offerParams:window.btoa(v),serializedTransactionFlowLoggingParams:h}};Q?v.data.handleTransactionEndpoint=Q:v.data.completeTransactionEndpoint=a;D.onCartDismissCommand&&(v.data.onCartDismissCommand=D.onCartDismissCommand);return v},
onGetCartServiceRequestCompleted_:function(D,v){var h=this,a=D.target;if(v&&v.data&&v.data.messageRenderer)_.TN(this.hostElement),this.handleMessageRenderer_(v.data.messageRenderer),this.changeButtonState(a,!1);else{var Q=this.get("data.encryptedPurchaseParams",v),G=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",v),x=this.get("data.ypcLogWalletAnalyticDataEndpoint",v),f=this.get("data.serializedPaymentsClientParams",v),C=this.getLoggingParams_(v);if(C||Q||G)D.stopPropagation(),_.ea("ttcr",
void 0,"commerce_transaction"),Q||_.TN(this.hostElement),this.changeButtonState(a,!1),G?_.zU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.eA("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:G}}},this]):Q&&(this.changeButtonState(a,!0),D=null,D=this.openWalletDialog(a,Q,x,C,function(){_.TN(h.hostElement);h.changeButtonState(a,!1)},function(){_.TN(h.hostElement);
h.changeButtonState(a,!1)},f),_.yS(D.then(function(U){return h.handleBuyFlowCompleteCallback_(a,v,U)},function(){return h.handleOnLoadError(v)}).then(function(U){return h.handlePostPurchaseSuccess_(a,v,U)},function(U){return h.handlePostPurchaseError_(U)}),function(){h.changeButtonState(a,!1);
_.F1(a,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(D,v){v&&v.endpoint&&v.endpoint.ypcGetCartEndpoint&&!v.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",v.endpoint.ypcGetCartEndpoint)&&_.ZD(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",v.endpoint.ypcGetCartEndpoint)],D.target),_.KS(this.hostElement),this.changeButtonState(D.target,!0))},
onServiceRequestError_:function(D,v){if(v&&v.params&&v.params.length){v=_.P(v.params);for(var h=v.next();!h.done;h=v.next())if((h=h.value)&&h.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",h.ypcGetCartEndpoint)&&_.ZD(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",h.ypcGetCartEndpoint)],D.target);_.TN(this.hostElement);this.changeButtonState(D.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(D,v,h){var a=h.integratorData;return a==null||a===""||h.error!=null?(a=this.getLoggingParams_(v),String(h.error)==="-1"?(v.data.onCartDismissCommand&&_.ZD(this.hostElement,[v.data.onCartDismissCommand],D),_.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",a,!0))):_.H8(new Gg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",a))):v.data.handleTransactionEndpoint?Wsm(this.hostElement,v.data.handleTransactionEndpoint,{payments_payload:a,funds_guarantee_callback_client_data:h.integratorClientCallbackData}):
this.completeTransaction(v,h)},
handlePostPurchaseSuccess_:function(D,v,h){v=h.data;var a=!1,Q,G;if(v&&((Q=v.command)==null?0:(G=Q.commandExecutorCommand)==null?0:G.commands)){var x,f;Q=(x=v.command)==null?void 0:(f=x.commandExecutorCommand)==null?void 0:f.commands;for(x=0;x<Q.length;x++)if(_.k(Q[x],_.bO4)){a=!0;break}}a||(v&&v.gtmDatas&&v.gtmDatas.length?_.hk(v.gtmDatas[0]):_.hk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));h.data&&h.data.actions&&(v=mLC(h.data.actions),h=H_$(h.data.actions),v.length&&
_.L1(this.hostElement,v),h.length&&_.ZD(this.hostElement,h,D))},
handlePostPurchaseError_:function(D){D&&D.payload&&D.payload.isUserDismiss||_.mV(Error("Rl"))},
handleOnLoadError:function(D){D=this.getLoggingParams_(D);return _.H8(new Gg("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",D))},
getLoggingParams_:function(D){return this.get("data.serializedTransactionFlowLoggingParams",D)},
handleMessageRenderer_:function(D){var v=_.m9(D,"renderer"),h=_.eA("openPopupConfig");v==="confirmDialogRenderer"&&h&&_.zU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:h.popupTypeMap[v],popup:D}},this])},
handleYPCFixInstrumentEndpoint_:function(D,v){var h=this,a=v.ypcFixInstrumentEndpoint;v=a.encryptedFixInstrumentParameters;this.logFixFopEvent_(a,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(D,!0);this.openFixFlowDialog(v,function(Q,G){h.onFixFlowCompleteCallback_(a,Q,G)},function(){return h.changeButtonState(D,!1)},function(){h.changeButtonState(D,!1);
h.logFixFopEvent_(a,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(D,v,h){var a=_.T3("payments.business.integration.scenario.FixInstrument");if(v==a.IntegratorCallbackType.ON_COMPLETE){v="FIX_FOP_EVENT_TYPE_CANCEL";var Q=null;h.error!=null?h.error!=a.OnCompleteCallbackError.USER_CANCELLED&&(_.ZD(this.hostElement,[D.errorAction],this.hostElement),v="FIX_FOP_EVENT_TYPE_FAILURE",Q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ZD(this.hostElement,[D.successAction],this.hostElement),v="FIX_FOP_EVENT_TYPE_SUCCESS");_.ZD(this.hostElement,[D.onFinishAction],
this.hostElement);this.logFixFopEvent_(D,v,Q)}},
logFixFopEvent_:function(D,v,h){(D=D.serializedFixFopLoggingParams)?(v={eventType:v,serializedFixFopLoggingParams:D},h!=null&&(v.errorType=h),_.jj("fixFopFlow",v),_.s5()):_.mV(Error("Sl"))},
changeButtonState:function(D,v){_.g("enable_ypc_spinners")&&D&&(D.is==="yt-button-renderer"||D.is==="ytd-button-renderer")&&(D.disabled=v)}}];var jkX=function(D){this.JSC$32397_clientRoot=D;this.feedbackCollectorActionMap={"yt-help-dialog-requested":QiC,"yt-feedback-dialog-requested":$Os,"yt-signal-action-help":GNX,"yt-signal-action-send-feedback":Vom,"yt-send-feedback-action":xOr,"yt-user-feedback-endpoint":MoZ};_.rf(_.iD.getInstance(),this.feedbackCollectorActionMap,this.JSC$32397_clientRoot)},sk2;var m32=function(D){this.JSC$32402_clientRoot=D;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":fjX.bind(null,this.JSC$32402_clientRoot),"yt-signal-action-delete-all-downloads":o2K,"yt-signal-action-delete-download":F2s,"yt-signal-action-delete-playlist-download":UOr,"yt-signal-action-install-pwa":kNK,"yt-signal-action-refresh-downloads":Ijr,"yt-offline-video-endpoint":JmS,"yt-offline-playlist-endpoint":ljX,"yt-update-local-app-setting-command":YyI,"yt-offline-orchestration-action-command":cmd,
"yt-signal-action-undo-delete-download":ZSd,"yt-local-watch-history-command":qyK};_.rf(_.iD.getInstance(),this.downloadManagerActionMap,this.JSC$32402_clientRoot);_.HR.instance=new _.HR},Hvb;var E7=function(){var D=_.c.apply(this,arguments)||this;D.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};D.remoteApi_=null;return D};
_.J(E7,_.c);_.V=E7.prototype;
_.V.ready=function(){_.g("polymer_enable_mdx")&&(Lrb({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.g("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.g("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.g("enable_cast_short_lived_lounge_token")}),_.oB("yt-remote-connection-change",this.handleConnectionChange_,this),_.oB("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=pXr())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.V.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.V.handleConnectionChange_=function(D){(this.mdxConnected=D)?(D=I2s(),!D&&$LU()&&Q3b()&&(D={key:"cast-selector-receiver",name:Q3b()}),D=D.name):D=null;this.receiverName=D;_.V5(this.remoteApi_);(this.remoteApi_=pXr())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.V.handleReceiverAvailabilityChange_=function(){var D=E5$();$LU()&&_.nq("yt-remote-cast-available")&&D.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=D.length>0};
_.V.handleRemoteQueueChange_=function(){var D=this.currentVideoId_,v=this.currentListId_,h=Pb(this.remoteApi_);this.currentVideoId_=h.videoId;this.currentListId_=h.listId;this.currentVideoId_&&_.zU(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.g("polymer_enable_mdx_queue")?this.currentListId_:null,D,v])};
_.V.handleAddToQueueAction_=function(D){D=_.k(D,w2C);this.remoteApi_&&(D.videoId?this.remoteApi_.addVideo(D.videoId):D.playlistId&&this.remoteApi_.addPlaylist(D.playlistId))};
_.V.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.V.handleInsertInQueueAction_=function(D){D=_.k(D,eAs);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$19868_insertVideo(D.videoId)};
_.V.handleRemoveFromQueueAction_=function(D){D=_.k(D,n$Z);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$19868_removeVideo(D.videoId)};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],E7.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y(),_.n("design:type",Object)],E7.prototype,"appId",void 0);_.e([_.Y(),_.n("design:type",Boolean)],E7.prototype,"mdxConnected",void 0);_.e([_.Y(),_.n("design:type",Boolean)],E7.prototype,"receiverAvailable",void 0);_.e([_.Y(),_.n("design:type",Object)],E7.prototype,"receiverName",void 0);_.e([_.Y(),_.n("design:type",Object)],E7.prototype,"currentVideoId_",void 0);
_.e([_.Y(),_.n("design:type",Object)],E7.prototype,"currentListId_",void 0);_.e([_.Ry({is:"yt-mdx-manager",disableElementRegistration:!0})],E7);_.w(E7,"yt-mdx-manager",void 0,{mode:2});var yzd;var wxs;var In=function(){var D=_.c.apply(this,arguments)||this;D.APP_IDS={ytr:3,ytm:5};D.JSC$21089_timeoutId_=0;D.actionMap={"yt-open-create-family-dialog":"open"};return D};
_.J(In,_.c);_.V=In.prototype;_.V.created=function(){Sk3(2200)};
_.V.detached=function(){this.observer_&&this.observer_.disconnect()};
_.V.open=function(D,v){var h=this,a=D.serializedYpcFamilyCreateLoggingParams;this.JSC$21089_timeoutId_=setTimeout(this.abort_.bind(this,D.postFlowErrorEndpoint,a),3E4);v&&(this.onReadyCallback_=v);var Q=_.ZW(this.hostElement).querySelector("#unicorn-iframe");a&&a&&zfr("ypcFamilyCreateFlowStarted",a);_.Rhi("family_creation",function(){var G=_.T3("gapi.family_creation.render");_.T3("gapi.config.update")("iframes/family_creation/url",h.getFamilyCreationUrlWithUnicornParams_());var x=3;D.appId&&D.appId in
h.APP_IDS&&(x=h.APP_IDS[D.appId]);x={authUser:_.eA("SESSION_INDEX")||0,clientId:x,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.eA("HL"),initialflow:[4,5,6,7],m:h.isMobile?1:0,onFlowComplete:h.onUnicornFlowComplete_.bind(h,D.postFlowSuccessEndpoint,a),onError:h.onUnicornFlowError_.bind(h,D.postFlowErrorEndpoint,a),onReady:h.onUnicornFlowReady_.bind(h,D.referencePcidParams)};G(Q,x)})};
_.V.close=function(){_.ZW(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.V.onUnicornFlowComplete_=function(D,v){this.close();v&&v&&zfr("ypcFamilyCreateFlowSucceeded",v);_.F1(this.hostElement,"yt-navigate",{endpoint:D})};
_.V.onUnicornFlowError_=function(D,v){this.close();v&&zfr("ypcFamilyCreateFlowCancelled",v);_.F1(this.hostElement,"yt-navigate",{endpoint:D})};
_.V.onUnicornFlowReady_=function(D){var v=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();D&&_.T3("gapi.family_creation.setConfig")(0,D);this.observer_=new MutationObserver(function(){_.ZW(v.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ZW(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ZW(this.hostElement).querySelector("#dialog").open()};
_.V.getFamilyCreationUrlWithUnicornParams_=function(){return _.eA("YTR_FAMILY_CREATION_URL")};
_.V.getCurrentUrl_=function(){return document.location.href};
_.V.abort_=function(D,v){this.clearTimeout_();this.onUnicornFlowError_(D,v)};
_.V.clearTimeout_=function(){clearTimeout(this.JSC$21089_timeoutId_)};
_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],In.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],In.prototype,"isMobile",void 0);_.e([_.Y(),_.n("design:type",Object)],In.prototype,"onReadyCallback_",void 0);_.e([_.Y(),_.n("design:type",Object)],In.prototype,"observer_",void 0);_.e([_.Ry({is:"yt-create-family-dialog",disableElementRegistration:!0})],In);
_.w(In,"yt-create-family-dialog",function(){if(wxs===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);var v=D.content,h=v.insertBefore;yzd===void 0&&(yzd=document.createElement("template"));var a=yzd;h.call(v,a.content.cloneNode(!0),D.content.firstChild);wxs=D}D=wxs;return D},{mode:2});var eN3;var n43;var gL=function(){var D=_.c.apply(this,arguments)||this;D.STEP=1;D.BLOCK_ON=80;D.MIN_PROGESS=0;D.MAX_PROGESS=100;return D};
_.J(gL,_.c);_.V=gL.prototype;_.V.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.V.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));_.xd().addProvider({provide:p$$,useValue:this})};
_.V.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.V.finish=function(){var D=this;this.progress=this.MAX_PROGESS;bSm(function(){D.progress==D.MAX_PROGESS&&(D.hostElement.hidden=!0)})};
_.V.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.GT.Object.defineProperties(gL.prototype,{progress:{configurable:!0,enumerable:!0,set:function(D){this.progress_=D;var v="scaleX("+D/this.MAX_PROGESS+")",h=_.ZW(this.hostElement).querySelector("#progress").style;h.transform=v;h.webkitTransform=v;this.hostElement.setAttribute("aria-valuenow",String(D))},
get:function(){return this.progress_}}});
_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],gL.prototype,"ytComponentBehavior",void 0);_.e([_.Ry({is:"yt-page-navigation-progress",disableElementRegistration:!0})],gL);
_.w(gL,"yt-page-navigation-progress",function(){if(n43===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');D.content.insertBefore(_.T().content.cloneNode(!0),
D.content.firstChild);var v=D.content,h=v.insertBefore;eN3===void 0&&(eN3=document.createElement("template"));var a=eN3;h.call(v,a.content.cloneNode(!0),D.content.firstChild);n43=D}D=n43;return D},{mode:2});var OvK={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"},Klr={"font-size":"12px","font-style":"italic"},T8X={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.mO3=function(){return _.M(function(D){_.YI(D)})};var RNd=_.H(function(D){var v=function(){return D.data().subtext},h={};
return _.F("snackbar-view-model",{class:_.S3("snackbarViewModelHost",D.className)},_.F("div",{class:_.S3("snackbarViewModelEngagementBarWrapper",D.className)},_.F(_.z,{cond:function(){return D.data().image},
then:function(a){return _.F(_.PX,{data:a,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.F(_.z,{cond:function(){return D.data().imageContent},
then:function(){return _.F("div",{class:"snackbarViewModelAvatarContainer"},_.F(_.c4,{data:function(){return D.data().imageContent}},{decoratedAvatarViewModel:_.GG}))}}),_.F("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.F("div",{class:_.S3((h.snackbarViewModelTitle=!0,h.snackbarViewModelTitleWithSubtext=v,h))},_.F(_.IY,{text:function(){return D.data().text}})),_.F(_.z,{cond:v,
then:function(){return _.F("div",{class:"snackbarViewModelSubtext"},_.F(_.IY,{text:function(){return v()}}))}})),_.F(_.z,{cond:function(){return D.data().buttons},
then:function(){return _.F("div",{class:"snackbarViewModelButtonClassWrapper"},_.F(_.c4,{data:function(){return D.data().buttons}},{buttonViewModel:function(a){return _.F(_.s$,{data:a.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:D.target})}}))}})))},"yj");_.zh(_.H(function(){function D(b,W,K){S(b);A(K);E("in");L(!0);v(b,W);x=setTimeout(function(){h()},W)}
function v(b,W){var K,O=(K=b.text)==null?void 0:K.content;b=_.yL(b.rendererContext);O&&(W={label:O,command:b,durationMs:W},_.xd().resolve(_.vI).enqueue(W))}
function h(b){E("out");b&&clearTimeout(x)}
function a(){h(!0)}
function Q(b){if(b){var W=b.snackbarViewModel,K=b.durationMs,O=b.target;K||(K=3E3);W&&(b=_.xd().resolve(_.PV(_.Wk)))&&b.enqueue({isOpened:U,open:function(){D(W,K,O)},
close:h},0)}}
var G=_.$X("snackbar-container"),x=void 0,f=_.P(_.Zq(!1,void 0,"mDc5N")),C=f.next().value;f=f.next().value;var U=C,L=f;C=_.P(_.Zq("out",void 0,"FpOs5e"));var Z=C.next().value,E=C.next().value;C=_.P(_.Zq(void 0,void 0,"jIDRob"));var I=C.next().value,S=C.next().value;C=_.P(_.Zq(void 0,void 0,"kOA3Mb"));var B=C.next().value,A=C.next().value,d=_.Jd(function(){if(Z()==="out"){L(!1);S(void 0);A(void 0);var b=_.xd().resolve(_.PV(_.Wk));b&&d6r(b,0)}});
_.jA(function(){var b=_.xd().resolve(_.PV(_.QUs));b&&(b.showSnackbarFn=Q,b.closeSnackbarFn=a)});
return _.F("snackbar-container",{class:"ytSnackbarContainerHost",el:G},_.F(_.z,{cond:function(){return U()&&!!I()},
then:function(){var b={};return _.F("div",{class:_.S3("ytSnackbarContainerSnackbarContainer",(b.ytSnackbarContainerMobile=!1,b.ytSnackbarContainerPivotBar=function(){var W;return!((W=_.xd().resolve(_.PV(_.Gds)))==null||!W())},b.ytSnackbarContainerOpened=function(){return U()&&Z()==="in"},b.ytSnackbarContainerClosed=function(){return U()&&Z()==="out"},b)),
"on:animationend":d},_.F(RNd,{data:function(){return I()},
target:function(){return B()}}))}}))},"zj"),"snackbar-container");_.zh(_.t4M,"yt-tooltip");var ivb=_.lfC.ephemeralActionSelector;_.zh(_.H(function(){var D=_.Th(ivb);return _.F("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var v;return(v=D())==null?void 0:v.announcement})},"Aj"),"yt-ephemeral-actions");var aSZ=new Map;var Wn2=function(D,v){var h=this;this.handleError=D;this.logEventInternal=v;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){h.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Wn2.prototype.logError=function(D){this.handleError(D)};
Wn2.prototype.logEvent=function(D,v){switch(D){case "IDB_DATA_CORRUPTED":_.g("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",v);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",v);break;case "IS_SUPPORTED_COMPLETED":_.g("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",v);break;case "QUOTA_EXCEEDED":Wl3(this,v);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",v);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":D=Object.assign({},v,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",D)}};
var Wl3=function(D,v){_.aE.getInstance().estimate().then(function(h){h=Object.assign({},v,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:QQr(h==null?void 0:h.usage),deviceStorageQuotaMbytes:QQr(h==null?void 0:h.quota)});D.logEventInternal("idbQuotaExceeded",h)})};var tT2=_.H(function(D){var v=_.va("yt-draggable"),h=D.onDrag,a=D.onDragStart,Q=D.onDragEnd,G=_.fb(D,{allowClicks:!1,dragThreshold:5}),x=G.dragThreshold,f=G.allowClicks;D=G.children;G=G.className;var C=void 0,U=void 0,L=new _.HW(0,0),Z=!1;_.jA(function(){C=new _.uE(v.value);U=new _.xR(I);E(C,U);if(f()){_.nzy(C,x());var B;(B=v.value)==null||B.addEventListener("click",S,{capture:!0})}_.dq(function(){var A;(A=C)==null||A.dispose();if(f()){var d;(d=v.value)==null||d.removeEventListener("click",S,{capture:!0})}})});
var E=function(B,A){_.s_(B,"earlycancel",function(){f()&&(Z=!1)});
_.s_(B,"start",function(d){a==null||a(d);d.defaultPrevented||f()&&(Z=!0)});
_.s_(B,"beforedrag",function(d){C&&U&&(d.preventDefault(),L=new _.HW(d.clientX-C.startX,d.clientY-C.startY),U.start())});
_.s_(B,"end",function(){A.stop();Q==null||Q();L=new _.HW(0,0)})},I=function(){L&&h(L)},S=function(B){Z&&(Z=!1,B.stopPropagation(),B.preventDefault())};
return _.F("yt-draggable",{el:v,class:_.S3("ytDraggableComponentHost",G)},D)},"Bj");var rz2=_.H(function(D){var v=_.P(_.Zq(0,void 0,"Qf0tbc")),h=v.next().value,a=v.next().value;v=function(Q){var G={},x={};return _.F(tT2,{className:_.S3("ytdMiniplayerComponentResizer",(G.ytdMiniplayerComponentResizerDisabled=function(){return Q===D.horizontalAlignment()||Q===D.verticalAlignment()},G.ytdMiniplayerComponentResizerNorth=Q==="north",G.ytdMiniplayerComponentResizerEast=Q==="east",G.ytdMiniplayerComponentResizerSouth=Q==="south",G.ytdMiniplayerComponentResizerWest=Q==="west",G)),
onDragStart:function(){a(D.currentMiniplayerSize());if(D.onResizeStart)D.onResizeStart()},
onDrag:function(f){Q!=="north"&&Q!=="west"||f.scale(-1);var C;f=(C=Q==="north"||Q==="south")?f.y:f.x;var U=D.currentAspectRatio();C&&U>=1?f*=U:!C&&U<1&&(f/=U);C=f;D.onResize(h()+C)}},_.F("div",{class:_.S3("ytdMiniplayerComponentResizerCorner",(x.ytdMiniplayerComponentResizerNorthCorner=Q==="north",x.ytdMiniplayerComponentResizerEastCorner=Q==="east",x.ytdMiniplayerComponentResizerSouthCorner=Q==="south",x.ytdMiniplayerComponentResizerWestCorner=Q==="west",x))}))};
return _.F("div",{class:"ytdMiniplayerComponentResizers"},v("north"),v("east"),v("south"),v("west"))},"Cj");var uUI=16/9;_.zh(_.H(function(){var D=_.va("ytd-miniplayer"),v=_.P(_.Zq(new _.lU(NaN,NaN),void 0,"NHaFyc")),h=v.next().value,a=v.next().value;v=_.P(_.Zq(!1,void 0,"a0rwG"));var Q=v.next().value,G=v.next().value;v=_.P(_.Zq(!1,void 0,"f1jSeb"));var x=v.next().value,f=v.next().value;v=_.P(_.Zq(!1,void 0,"JojXKc"));var C=v.next().value,U=v.next().value;v=_.P(_.Zq(!1,void 0,"FjS8Db"));var L=v.next().value,Z=v.next().value;v=_.P(_.Zq(!1,void 0,"z5WG9e"));var E=v.next().value,I=v.next().value;v=_.P(_.Zq(!1,void 0,"eUzZd"));
var S=v.next().value,B=v.next().value;v=_.P(_.Zq(uUI,void 0,"XsBIy"));var A=v.next().value,d=v.next().value,b=_.P(_.Zq(!1,void 0,"FJSvse"));v=b.next().value;var W=b.next().value;b=_.P(_.Zq(!1,void 0,"VDUFL"));var K=b.next().value,O=b.next().value;b=_.P(_.Zq(void 0,void 0,"nFeh4b"));var R=b.next().value,vA=b.next().value;b=_.P(_.Zq(C8()?"west":"east",void 0,"T7co7c"));var f7=b.next().value,xL=b.next().value;b=_.P(_.Zq("south",void 0,"QDUsLb"));var kL=b.next().value,Z4=b.next().value;b=_.P(_.Zq(400,
void 0,"F7Vdze"));var S2=b.next().value,s8=b.next().value,Xf=_.xd().resolve(_.Ok).miniplayerPropSignalMap[0],dJ=Xf.data,R4=Xf.externalPlaylistData;b=Xf.toastData;var sF=Xf.playabilityStatus,rc=Xf.isReadyToResume,I4=Xf.isDisabled,q1=Xf.watchWhile,jt=Xf.playerVe,rr=Xf.expandVe,Zb=Xf.closeVe,VO=Xf.readyToResumeVe,Pm=Xf.readyToResumeCloseVe,Yp=Xf.repositionVe,C3=Xf.resizeVe;Xf=_.P(_.lL(rc));var ZJ=Xf.next().value,VK=Xf.next().value,oP=_.Th(_.W4.persistentPanelVisibleSelector),rJ=!1,o4=!1,Hm;_.jA(function(){a(_.XT());
D.value.addEventListener("animationend",function(Wm){Wm.target===D.value&&(I(!1),B(!1))});
fSb(D.value)});
_.DO("yt-window-resized",function(Wm){Wm&&a(Wm)});
var gr=function(){Hm&&d(Hm.getVideoAspectRatio())},Jb=function(){if(Hm){var Wm=Hm.getPlayerState()===1;
ZJ()&&Wm&&VK(!1)}},kp=function(){var Wm=rr();
if(Wm){var kC=_.wd(3);kC&&_.hA(kC,Wm)}},E2=function(){var Wm=Zb(),kC=Pm();
Wm&&_.hA(_.wd(3),Wm);rc()&&kC&&_.hA(_.wd(3),kC)};
_.DO("yt-activate-miniplayer",function(Wm){var kC;return _.M(function(aU){if(aU.nextAddress==1)return Q()?aU.return():aU.yield((kC=_.xd().resolve(_.Ok).getPlayerElement())==null?void 0:kC.getPlayerPromise(),2);Hm=aU.yieldResult;if(!Hm)return aU.return();!K()&&_.g("kevlar_watch_while_v2")&&(Z4(Wm&&!_.g("kevlar_watch_while_bottom_align")?"north":"south"),xL(C8()?"west":"east"));var UM=Hm;UM.addEventListener("onVideoDataChange",gr);UM.addEventListener("onStateChange",Jb);UM.addEventListener("onExpandMiniplayer",
kp);UM.addEventListener("onCloseMiniplayer",E2);d(Hm.getVideoAspectRatio());G(!0);M6$()||I(!0);_.YI(aU)})});
_.DO("yt-deactivate-miniplayer",function(Wm){return _.M(function(kC){if(!Q())return kC.return();G(!1);VK(!1);B(Wm);Z(!1);f(!1);if(Hm){var aU=Hm;aU.removeEventListener("onVideoDataChange",gr);aU.removeEventListener("onStateChange",Jb);aU.removeEventListener("onExpandMiniplayer",kp);aU.removeEventListener("onCloseMiniplayer",E2)}M6$()||I(!0);_.YI(kC)})});
var hw=function(){return!(q1()&&_.g("kevlar_watch_while_modern"))},NI=function(){var Wm;
return!((Wm=R4())==null||!Wm.contents)},nf=function(){var Wm=S2();
var kC=h();kC=Math.min(Math.min(kC.width,kC.height)-32,720);var aU=A(),UM=hw(),hN=NI()&&x(),gW=Math.min(Wm,kC);Wm=new _.lU(192,UM?116:192);aU=new _.lU(hN?uUI:aU,1);gW=new _.lU(gW,UM?gW-76:gW);gW=aU.aspectRatio()>gW.aspectRatio()?gW.width/aU.width:gW.height/aU.height;aU=aU.scale(gW);Wm.width<=aU.width&&Wm.height<=aU.height||(Wm=aU.aspectRatio()<=Wm.aspectRatio()?Wm.width/aU.width:Wm.height/aU.height,aU.scale(Wm),aU.width=Math.min(aU.width,kC),aU.height=Math.min(aU.height,kC));return new _.lU(aU.width,
_.sk(192,aU.height+zmr(UM,hN),720))},W1=function(){var Wm=nf(),kC=hw(),aU=NI()&&x();
return new _.lU(Wm.width,Wm.height-zmr(kC,aU))},PW=function(){var Wm=function(kC){kC.target===D.value&&L()&&(Z(!1),D.value.removeEventListener("transitionend",Wm))};
M6$()||(D.value.addEventListener("transitionend",Wm),Z(!0));f(!x())};
_.bW(function(){var Wm=jt(),kC=_.wd(3),aU=_.yC(3);if(kC&&aU&&Wm){_.tP(kC,aU,Wm);aU=Yp();var UM=C3(),hN=rr(),gW=Zb(),u9=Pm();hN&&gW&&u9&&(_.rK(kC,Wm,[hN,gW,u9]),_.DU(kC,[hN,gW]));aU&&UM&&_.rK(kC,Wm,[aU,UM])}},"crCasb");
_.bW(function(){var Wm=VO();if(Wm){var kC=_.wd(0),aU=_.yC(0);kC&&aU&&(_.tP(kC,aU,Wm),_.DU(kC,[Wm]))}},"JitqQ");
Xf={};return _.F("ytd-miniplayer",{el:D,class:_.S3("ytdMiniplayerComponentHost",(Xf.ytdMiniplayerComponentVisible=function(){return Q()||E()},Xf.ytdMiniplayerComponentAnimatingSnap=C,Xf.ytdMiniplayerComponentAnimatingPlaylistExpand=L,Xf.ytdMiniplayerComponentAnimatingFade=E,Xf),function(){if(E()){var Wm=kL();
var kC=Q(),aU=S();Wm=kC?Wm==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":aU?Wm==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Wm==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Wm="";return Wm}),
style:_.NL({top:function(){return kL()==="north"?"16px":""},
right:function(){var Wm=f7(),kC=oP();kC=(kC===void 0?0:kC)&&!C8()?400:0;return Wm==="east"?16+kC+"px":""},
bottom:function(){return kL()==="south"?"16px":""},
left:function(){var Wm=f7(),kC=oP();kC=(kC===void 0?0:kC)&&C8()?400:0;return Wm==="west"?16+kC+"px":""},
width:function(){return nf().width+"px"},
height:function(){return nf().height+"px"},
transform:function(){var Wm=R();return Wm?"translate("+Wm.x+"px, "+Wm.y+"px)":""}})},_.F("div",{class:"ytdMiniplayerComponentContent"},_.F(tT2,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Wm){var kC=FPs(f7(),kL(),h(),nf(),R()),aU=W1();Math.abs(Wm.clientY-(kC.y+aU.height))>15?(W(!0),Wm=_.wd(3),kC=Yp(),rJ||(rJ=!0,Wm&&kC&&_.DU(Wm,[kC])),Wm&&kC&&_.hA(Wm,kC)):Wm.preventDefault()},
onDrag:function(Wm){vA(Wm)},
onDragEnd:function(){var Wm=CpZ(FPs(f7(),kL(),h(),nf(),R()),h(),nf()),kC=oYZ(f7(),kL(),h(),nf(),oP()),aU=oYZ(Wm.horizontalAlignment,Wm.verticalAlignment,h(),nf(),oP());aU=new _.HW(aU.x-kC.x,aU.y-kC.y);var UM;kC=kC.y+(((UM=R())==null?void 0:UM.y)||0)+nf().height/2;var hN=function(){f7()===Wm.horizontalAlignment&&kL()===Wm.verticalAlignment||O(!0);xL(Wm.horizontalAlignment);Z4(Wm.verticalAlignment);vA(void 0)},gW=function(u9){u9.target===D.value&&C()&&(U(!1),hN(),D.value.removeEventListener("transitionend",
gW))};
W(!1);kL()==="south"&&kC>h().height?(hN(),_.xd().resolve(_.Ok).close()):(D.value.addEventListener("transitionend",gW),U(!0),vA(aU))}},_.F(_.z,{cond:Q,
then:function(){return _.F(_.BWK,{isDisabled:I4,playabilityStatus:sF,size:W1})}}),_.F(_.z,{cond:hw,
then:function(){return _.F(_.NWX,{isReadyToResume:ZJ,data:dJ,expanded:x,onExpandClick:PW,playlistData:R4})}}),_.F(_.z,{cond:v,
then:function(){return _.F("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.F(_.z,{cond:function(){return NI()&&x()||L()},
then:function(){return _.F(_.Ur2,{className:"ytdMiniplayerComponentPlaylistPanel",data:R4,hideHeaderText:!0,withinMiniplayer:!0})}}),_.F("div",{class:"ytdMiniplayerComponentToast"},_.F(_.cNd,{toastData:b}))),_.F(rz2,{onResize:function(Wm){s8(_.sk(192,Wm,720))},
onResizeStart:function(){var Wm=_.wd(3),kC=C3();o4||(o4=!0,Wm&&kC&&_.DU(Wm,[kC]));Wm&&kC&&_.hA(Wm,kC)},
currentAspectRatio:A,currentMiniplayerSize:S2,horizontalAlignment:f7,verticalAlignment:kL}))},"Fj"),"ytd-miniplayer",{});var DuX=_.W4.persistentPanelVisibleSelector,kc=function(){var D=_.c.apply(this,arguments)||this;D.tabGesturesIsActive=!1;D.persistentPanelEnabled=_.g("enable_ai_companion");D.hasDelegation=!1;D.darkerDarkTheme=_.g("web_darker_dark_theme");D.isFrostedGlassInitialized=!1;D.frostedGlassExp=_.g("web_frosted_glass");D.hasPendingWatchNavigation=!1;D.mastheadHiddenFocusWithinKillswitch=_.g("web_masthead_hidden_focus_within_killswitch");D.clientOnlyWizTooltipsEnabled=_.g("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");D.scrollAtTop=!0;D.guideScrollTop=0;D.isTheaterModeSession=_.nJ("START_IN_THEATER_MODE");D.iMaxTheaterMode=_.g("web_watch_imax_theater_mode");D.isFullWindowSession=_.nJ("START_IN_FULL_WINDOW_MODE");D.hasCreateFamilyDialog=!1;D.mastheadHeight=56;D.networkStatusManager=new _.ra;D.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction",
"yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData",
"yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog",
"yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint",
"yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints","yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand",
"yt-get-location-command":"onYtGetLocationCommand","yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff",
"yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice","yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};D.dynamicActionMap={"yt-run-attestation-command":function(v){var h=
_.aJ2.instance,a=_.k(v,_.VZb);return a?_.g("use_rta_manager_for_async")&&b1d()?CT2(h,a,v.clickTrackingParams):fKI(h,a,v.clickTrackingParams):_.H8(Error("ui"))}};
D.isFrostedGlassDisabled=!1;D.isChannelOrPlaylistPage=!1;return D};
_.J(kc,_.c);_.V=kc.prototype;_.V.created=function(){var D=_.xd();_.g("kevlar_clear_duplicate_pref_cookie")&&_.c1(_.HK,function(){var v=_.l8.get("PREF");v&&!/f\d=/.test(v)&&(v=_.FH("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=v?"PREF=null;domain="+v+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.g("gzip_gel_with_worker")&&_.tBc();_.g("jspb_serialize_with_worker")&&Ga$();_.g("web_worker_availability_check")&&$hX();_.g("nwl_init_killswitch")||$Db().then(function(){_.HK.addLowPriorityJob(cdS)});
this.pageManagerAttachedPromise=_.hn();this.ytdAppBehavior.loadDepsPromise=_.HZ([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.tn(this.onThrottledScroll,200,this);_.g("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);taU();bWs=!!_.T3("ytappsettings.initialized");G$=_.T3("ytappsettings.previousValue");cA$=_.T3("ytappsettings.previousSnapshotTime");bWs||(bWs=!0,Xfm());j3r();s33();_.wM("DEFERRED_DETACH",
_.g("kevlar_tuner_should_defer_detach"));_.wM("REUSE_COMPONENTS",!0);_.wM("STAMPER_STABLE_LIST",!0);_.wM("SCHEDULED_LAZY_LIST",!0);_.wM("openPopupConfig",yjK);_.wM("useClickHandler",!0);_.g("kevlar_shell_cleanup")&&_.HK.addLowPriorityJob(yAb.bind(this,_.$L.caches));_.nJ("IS_SHELL_LOAD")&&_.HU({shellStartupDurationMs:Math.round((0,_.xz)()-_.b1())});e6I(this.networkStatusManager);_.g("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",dOK(OvK)),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!",
dOK(Klr)),console.log("%cVisit http://go/join-youtube-web to apply today.",dOK(T8X)));_.zlr(D.resolve(_.ux),1E3)};
_.V.ready=function(){var D=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var v=UDC();v&&!_.g("external_fullscreen_killswitch")&&document.addEventListener(v,this.setFullscreen.bind(this));(v=window.matchMedia("(prefers-color-scheme: dark)"))&&v.addEventListener&&v.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(v=_.xd().resolve(_.PV(_.CVm)))v.subscribe("navigation-start",
function(h){h.destinationPageSubtype==="watch"&&(D.hasPendingWatchNavigation=!0)}),v.subscribe("navigation-end",function(h){h.destinationPageSubtype==="watch"&&(D.hasPendingWatchNavigation=!1)})};
_.V.attached=function(){var D=this;_.ol().processSignal("ci");_.g("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.LI4?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.zk(_.FGq(),"SUCCESS");this.updateIconSet();_.f1(this.guideInnerContent,!1);_.tU().initVisibilityObserver();this.guideService.guideElement=this.guide;var v=document.createElement("ytd-miniplayer"),h=_.ZW(this.hostElement).querySelector("#content");
_.ZW(this.hostElement).insertBefore(v,h);_.ol().processSignal("ma");_.xd().resolve(_.Ok).init(v);this.persistentPanelEnabled&&_.I0$(_.xd().resolve(_.a8),this.persistentPanelContainer,"APP");_.nJ("IS_SHELL_LOAD")&&(h=document.createElement("ytd-network-status-banner"),_.ZW(this.hostElement).insertBefore(h,v));_.g("kevlar_right_click_on_lockups")&&_.PF._onCaptureClick&&document.addEventListener("contextmenu",_.PF._onCaptureClick.bind(_.PF),!0);var a=function(){var Q=_.Nv("yt-page-navigation-progress");
_.ZW(D.hostElement).appendChild(Q)};
setTimeout(function(){_.ol().parkOrScheduleJob(a,0,"eocs",16)},0);
_.g("service_worker_push_enabled")&&_.c1(_.HK,Fcd);_.rf(_.iD.getInstance(),this.dynamicActionMap,this.hostElement);_.F1(this.hostElement,"ytd-app-attached");_.ol().processSignal("aa");BRI(this.hostElement);_.Gm("gapi.load",_.Rhi);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.c1(_.HK,
function(){var Q=document.createElement("ytd-video-preview");_.ZW(_.ZW(D.hostElement).querySelector("#video-preview")).appendChild(Q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.c1(_.HK,function(){HSU();D.registerWithViewTransitionManager()});
if(_.mc()&&this.isAppDarkTheme()!==_.jL())this.onDarkModeToggledAction();else v=_.sL()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==v&&(_.g("enable_dark_theme_only_on_shorts")?_.ay(_.g("enable_dark_theme_only_on_shorts_control")?window.location.href:_.vV(window.location.href,{theme:"dark"})):_.yR(new _.XH("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(OEr=new nub(this.hostElement)),Hvb=new m32(this.hostElement),sk2=new jkX(this.hostElement),MlX=new xN3(this.hostElement)};
_.V.getThemeSettingsToLog=function(){var D=_.sL()==="USER_INTERFACE_THEME_DARK";D=_.mc()?_.jL()?"os-dark":"os-light":D?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:D,cookiesEnabled:_.Yd()}};
_.V.detached=function(){_.C1(this.guideInnerContent);_.HK.cancelJob(ax);ax=0;_.HK.cancelJob(Qu);Qu=0;_.M3q(Y4U);Y4U.length=0;pfU=_.iCc=null;_.tU().dispose();_.g("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.uD(_.iD.getInstance(),OEr.playlistHandlerActionMap,OEr.JSC$32112_clientRoot);_.uD(_.iD.getInstance(),Hvb.downloadManagerActionMap,Hvb.JSC$32402_clientRoot);_.uD(_.iD.getInstance(),sk2.feedbackCollectorActionMap,sk2.JSC$32397_clientRoot);
for(var D=_.P(MlX.eventListeners),v=D.next();!v.done;v=D.next()){var h=_.P(v.value);v=h.next().value;h=h.next().value;h=_.P(h);for(var a=h.next();!a.done;a=h.next()){var Q=_.P(a.value);a=Q.next().value;Q=Q.next().value;v.removeEventListener(a,Q)}}_.uD(_.iD.getInstance(),MlX.autonavPauseActionMap,MlX.JSC$20050_clientRoot)};
_.V.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.YE().getFlag(186)};
_.V.computeIsInlinePreviewEnabled=function(D,v,h){return!h&&_.fMb({miniplayerIsActive:D,miniplayerPlaybackState:v})};
_.V.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.oG({type:"SET_FROSTED_GLASS_MODE",payload:!_.g("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"}))};
_.V.computeIsFrostedGlassDisabled=function(D,v,h,a){return D||v||h||a&&_.g("web_frosted_glass_disable_watch")};
_.V.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.g("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.V.computeIsHomePage=function(D,v){if(!D||v==null||!v.endpoint)return!1;var h;return((h=_.k(v.endpoint,_.YV))==null?void 0:h.browseId)==="FEwhat_to_watch"};
_.V.updateIsChannelOrPlaylistPage=function(){if(_.g("web_frosted_glass")){var D,v,h=(v=(D=_.xd().resolve(_.PV(_.P4)))==null?void 0:D.getCurrentPage())==null?void 0:v.pageSubtype;this.isChannelOrPlaylistPage=h?["channel","channels","playlist"].includes(h):!1}};
_.V.scheduleFrostedGlassInitialization=function(){var D=this;_.g("web_frosted_glass")&&_.ol().parkOrScheduleJob(function(){D.isFrostedGlassInitialized=!0},0,_.Ex(["eocs",
"cr"]),300)};
_.V.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.qCJ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.oG({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.oG({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.V.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(puK(!0))};
_.V.onYtSignalActionRequestPersistentStorage=function(){if(!_.g("request_persistent_storage_killswitch")){var D=_.xd().resolve(_.Q9d);D.cachedPersistStatePromise||(D.cachedPersistStatePromise=KvS())}};
_.V.handleYtChannelCreationFormEndpoints=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.V.handleShowEngagementPanelEndpoint=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.V.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(puK(!1))};
_.V.initIconDefs=function(D,v){var h=document.createElement("iron-iconset-svg");h.name=D;D=document.createElementNS("http://www.w3.org/2000/svg","svg");h.appendChild(D);D.appendChild(v);document.body.appendChild(h);return h};
_.V.onWindowResized=function(){_.zU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var D=_.BC.getInstance();D.documentWidth_=document.body.clientWidth;mh2(D)};
_.V.onWindowScrolled=function(){var D=_.xd().resolve(_.P4).getCurrentPage();if(D!=null&&D.getScrollTop){var v=this.ytdReduxBehavior,h=v.dispatch;D=D.getScrollTop()<=0;h.call(v,_.oG({type:"SET_SCROLL_AT_TOP",payload:D}))}};
_.V.guideIsVisibleButNotPersistentSelectorChanged=function(){var D=_.xd().resolve(_.P4).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=D.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
D.setScrollTop(this.guideScrollTop));_.U9(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.V.getCurrentPageScrollableElementType=function(){var D=_.xd().resolve(_.P4).getCurrentPage();if(D&&D.getPageScrollingElement())return D.getPageScrollingElement().nodeName};
_.V.observeGuideVisibility=function(){var D=_.BC.getInstance(),v=this.miniGuideVisible;D.guidePersistentAndVisible_=this.guidePersistentAndVisible;D.miniGuideVisible_=v;mh2(D)};
_.V.observePersistentPanelVisibility=function(){var D=_.BC.getInstance();D.persistentPanelVisible_=this.persistentPanelVisible;mh2(D)};
_.V.handleEduDismissAction=function(D){D&&D.eduDismissAction&&(_.zU(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.sbJ.getInstance(),_.Ny.set(D.eduDismissAction.key+"-dismissed",!0))};
_.V.handleEduImpressionAction=function(D){if(D&&D.eduImpressionAction){var v=_.sbJ.getInstance();D=D.eduImpressionAction.key;v.JSC$13027_eduDisplayedThisLoad_[_.jbp[D].setKey||D]=!0;_.Ny.set(D+"-impression",parseInt(_.Ny.get(D+"-impression")||0,10)+1)}};
_.V.onYtSignalActionConfirmMentionsEdu=function(){_.zU(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.XQ.getInstance();_.cC.set("edu-dismissed",!0)};
_.V.onYtSignalActionRecordMentionsEduImpression=function(){_.XQ.getInstance();var D=_.cC.set,v=parseInt(_.cC.get("edu-impressions"),10);D.call(_.cC,"edu-impressions",(isFinite(v)?v:0)+1)};
_.V.onYtPageManagerAttached=function(D){var v;((v=_.xU(D))==null?void 0:v.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.V.onInvokeInstrumentManagerAction=function(D,v){xhd(v,D)};
_.V.updateIconSet=function(){var D=this.hostElement.querySelector("#masthead");if(D){var v=_.EI(D),h=v.querySelector("g#yt-logo-updated");h&&(D=document.createElementNS("http://www.w3.org/2000/svg","defs"),D.appendChild(h.cloneNode(!0)),(v=v.querySelector("g#yt-logo-red-updated"))&&D.appendChild(v.cloneNode(!0)),this.initIconDefs("yt-logos-ext",D))}};
_.V.updateMastheadData=function(){var D=this,v,h,a,Q,G;return _.M(function(x){if(x.nextAddress==1){v=D.data;h=D.hostElement.querySelector("#masthead");if(!h)return x.return();_.$R(D,function(){h.data=D.topbarData});
if(!D.get("response.topbar",v)||D.get("response.topbar.responseContext.maxAgeSeconds",v)===0)return x.jumpTo(0);if(a=_.xd().resolve(_.As))return x.yield(a(),6);Q=_.xd().resolve(_.s0);return x.yield(Q.put("service:topbar:fallback",new _.m_({innertubeResponse:D.get("response.topbar",v)})),0)}return(G=x.yieldResult)?x.yield(G.put("service:topbar:fallback",new _.m_({innertubeResponse:D.get("response.topbar",v)})),0):x.jumpTo(0)})};
_.V.computeTopbarData=function(D){if(!D)return null;var v;return this.isShortsPage&&this.topbarData&&!_.k((v=D.response)==null?void 0:v.topbar,N2m)?this.topbarData:D.response&&"topbar"in D.response?_.k(D.response.topbar,N2m)||null:null};
_.V.onSetTheaterModeEnabled=function(D,v){this.isTheaterModeSession=v.enabled;this.setTheaterModeStyles(v.enabled)};
_.V.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.V.onDarkModeToggledAction=function(){var D=_.gl(window.location.href);if(!_.Gn8(D)){(D=!!_.DX(window.location.href).themeRefresh)&&_.yR(new _.XH("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!D){Xfm();D={themeRefresh:1};var v=_.xd().resolve(_.P4);if(v.isOnWatch()){var h,a;v=((h=v.getPlayerFromWatch())==null?void 0:(a=h.getPlayer())==null?void 0:a.getCurrentTime())||0;v>=1&&(D.time_continue=Math.floor(v))}_.Yd()||_.sL()!=="USER_INTERFACE_THEME_DARK"||(D.theme="dark");_.ay(_.vV(window.location.href,
D))}_.g("web_appshell_refresh_trigger")&&_.$L.caches&&this.refreshAppShellResponse();h=_.tB(window.location.href);_.wG(_.xd().resolve(_.ef),_.PU(h,"theme"))}};
_.V.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.V.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.V.onPlayerFullscreen=function(D){_.xE();this.playerFullscreen=D};
_.V.setRestrictedMode=function(D){var v=_.YE();_.BU(0,58,D);v.save();_.xd().resolve(_.WC).reload()};
_.V.onPageChanged=function(D){D.detail.newPageType==="ytd-watch-flexy"||D.detail.newPageType==="ytd-watch-fixie"||D.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.XC("WEB_PAGE_TYPE_WATCH")):D.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.XC("WEB_PAGE_TYPE_SHORTS")):D.detail.newPageType==="ytd-browse"&&D.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.XC("WEB_PAGE_TYPE_MINI_APP")):_.g("web_frosted_glass")&&D.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.XC("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.XC("WEB_PAGE_TYPE_UNKNOWN"));D.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.V.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.V.onGuideToggleTap=function(){_.F1(this.hostElement,"yt-guide-toggle")};
_.V.onGuideToggleHover=function(){_.F1(this.hostElement,"yt-guide-hover")};
_.V.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setMastheadTheme=function(){var D=_.EI(this.hostElement).querySelector("#masthead");D&&(D.dark=D.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),D.isDarkThemeForced=!1)};
_.V.onRequestPanelModeChange=function(D,v){this.hideHeaderShadow=v.mode!=="seamed"};
_.V.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.V.onDrawerIronSelect=function(D){_.xU(D).id==="guide"&&this.processDrawerIronSelect()};
_.V.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var D="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(D="opened"));_.F1(this.hostElement,"yt-autonav-pause-guide-"+D)};
_.V.onAddElementToApp=function(D){_.ZW(this.hostElement).appendChild(D.detail)};
_.V.onThrottledScroll=function(){var D=_.xd().resolve(_.P4).getCurrentPage();D&&(this.scrollAtTop=D.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.V.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.V.setFullscreen=function(){if(_.g("external_fullscreen")||!this.isWatchPage){var D=_.g("kevlar_fullerscreen_root_only_killswitch")?!!_.xE():!!_.xE()&&_.xE()===document.documentElement;D=(this.isWatchPage||_.g("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(D||this.isFullWindowSession);this.fullscreen!==D&&((this.fullscreen=D)&&_.U9(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Gb().dispatch(_.kI4(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.zU(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.V.setFullscreenLoggingForShorts=function(D){var v,h,a;return _.M(function(Q){if(Q.nextAddress==1)return Q.yield((v=_.Mq())==null?void 0:v.getPlayerPromise(),2);h=Q.yieldResult;(a=h)==null||a.setAppFullscreen(D);_.YI(Q)})};
_.V.updateMastheadCssHeight=function(){var D=this.mastheadHeight;this.fullscreen&&(D=0);_.SB(this.hostElement,{"--ytd-masthead-height":D+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.V.updateNetworkStatusBannerDisplayStatus=function(){var D="unset";this.fullscreen&&(D="none");_.SB(this.hostElement,{"--ytd-network-status-banner-display":D})};
_.V.updateNetworkStatusBannerCssHeight=function(){var D="unset";this.fullscreen&&(D="0px");_.SB(this.hostElement,{"--ytd-network-status-banner-max-height":D})};
_.V.updateScrollAndMasthead=function(D,v,h,a){this.iMaxTheaterMode||(a=!1);var Q=_.xd().resolve(_.P4).getCurrentPage();D||v||a?(document.body.classList.add("no-scroll"),Q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.pZ(this,this.onScroll)),Q.setScrollTop(0),_.SB(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Ux()+"px"})):h?_.F1(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.F1(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.pZ(this,this.onScroll)));this.mastheadHidden=D||v||h;this.updateMastheadCssHeight();_.g("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.V.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.V.onYtNavigateAction=function(D){D=this.get("navigateAction.endpoint",D);_.F1(this.hostElement,"yt-navigate",{endpoint:D})};
_.V.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var D=document.createElement("yt-create-family-dialog");_.ZW(this.hostElement).appendChild(D);this.hasCreateFamilyDialog=!0}};
_.V.onSetPushNotificationsEnabledCommand=function(D){var v=this,h=_.k(D,lws);h&&typeof h.enabled==="boolean"&&(Notification.permission!=="granted"?xPC().then(function(){Notification.permission==="granted"?(Rks(!h.enabled).then(tq3),h.successAction&&_.L1(v.hostElement,[h.successAction])):h.failureAction&&_.L1(v.hostElement,[h.failureAction])}):(Rks(!h.enabled).then(tq3),h.successAction&&_.L1(this.hostElement,[h.successAction])))};
_.V.onYtSignalActionEnableChromeNotifications=function(){MLd(!0)};
_.V.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.k(this.topbarData.hotkeyDialog,cEr)}}})};
_.V.onYtSignalActionShowKeyboardShortcutDialog=function(){_.zU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.V.onYtEndpointChangeHandler=function(D,v){var h=_.Qf(_.ie);h.pendingPrefetchJob_&&(v=!(!v||v.autonav!="1"),h.pendingPrefetchJob_.resolve(D&&_.W_o(D)?_.tfr(D,v):""),h.pendingPrefetchJob_=null);_.zU(this.hostElement,"yt-pause-active-page-context");_.zU(this.hostElement,"ytd-log-youthere-nav");_.zU(this.hostElement,"yt-prepare-page-dispose")};
_.V.handleCommandWithCommandHandler=function(D,v){_.pb.instance.resolveCommand(D,{form:{element:v}})};
_.V.onYtTimedCommand=function(D){var v=this;D=_.k(D,zAC);var h=D.command;h&&_.LK(_.HK,function(){var a=_.k(h,_.rp4);a?(_.pb.instance.resolveCommand(h),v.maybeLogGetAnswerRequestTick(a)):_.ZD(v.hostElement,[h],v.hostElement)},D.timeoutMs||0)};
_.V.maybeLogGetAnswerRequestTick=function(D){D&&D.isFirstRequest&&(_.wK("search_overview_answer"),_.ea("so_rq",void 0,"search_overview_answer"))};
_.V.onYtSignalActionSkipNavigation=function(){var D=_.xd().resolve(_.P4).getCurrentPage();_.hX(D)};
_.V.onYtSignalActionCopyDebugData=function(){SLK()};
_.V.handleEntityUpdateCommand=function(D){_.l0(_.k(D,_.B5I).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.V.logFlowLoggingEventCommand=function(D){if(D=_.k(D,_.sDc))if(D.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var v=D.flowEventNamespace,h=D.flowEventType,a=D.flowType;a&&v&&h&&_.w0u(_.kV(v,h,D.flowEventMetadata),a)}else{v=_.JQ();h=D.flowEventNamespace;a=D.flowEventType;var Q=D.flowType;Q&&h&&a&&_.SL(v,_.kV(h,a,D.flowEventMetadata),Q,D.flowNonce)}};
_.V.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.V.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.V.onTouchStart=function(){var D=_.rh();_.wd()&&_.r1(D.JSC$13255_screenManager,{visualElement:D.ve})};
_.V.handleSelectLanguageCommand=function(D){if(D=_.k(D,SaZ).hl){var v=_.YE();v.set("hl",D);v.save();_.xd().resolve(_.WC).reload()}};
_.V.handleConfirmDialogEndpoint=function(D){(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D)};
_.V.handleOpenPopupNavigationEndpoints=function(D,v){_.g("web_button_rework")&&(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D,v)};
_.V.handleSaveCommandToSessionStorage=function(D){if(D=_.k(D,_.oy9)){var v=D.key;v&&D.command&&window.sessionStorage.setItem(v,JSON.stringify(D.command))}};
_.V.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(D){D&&D.active&&D.active.postMessage({type:"refresh_shell"})}).catch(function(D){D.name!=="SecurityError"&&_.mV(D)})};
_.V.onDeviceThemeChanged=function(){var D=_.jL();_.BU(_.YE(),185,D);_.YE().save()};
_.V.handleYtRegisterPromoCommand=function(D){if(_.k(D,p2K)){var v=_.xd().resolve(_.P4).getCurrentPage()||this.hostElement;Eu3().registerPromoCommand(_.k(D,p2K),v)}};
_.V.onYtNavigateHomeAction=function(){if(!_.g("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D,v,h,a,Q=(a=(D=this.topbarData)==null?void 0:(v=D.logo)==null?void 0:(h=v.topbarLogoRenderer)==null?void 0:h.endpoint)!=null?a:_.nH;this.ytComponentBehavior.resolveCommand(Q)}};
_.V.onYtLocationCollectionCommand=function(D){sir(_.k(D,HOr))};
_.V.onYtGetLocationCommand=function(D){wXZ(_.k(D,mtS),this)};
_.V.updateRenderGuideFromBinding=function(D){this.renderGuide=D.detail.value};
_.V.updateGuidePersistentAndVisibleFromBinding=function(D){this.guidePersistentAndVisible=D.detail.value};
_.V.updateMiniGuideVisibleFromBinding=function(D){this.miniGuideVisible=D.detail.value};
_.V.onThemeSelected=function(D,v){var h=_.YE(),a=D||v?D:_.jL(),Q=(a&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!a&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Gn8(_.gl(window.location.href));_.BU(0,165,D);_.BU(0,174,v);h.save();Q&&_.zU(this.hostElement,"yt-dark-mode-toggled-action",[a]);_.zU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.getCurrentTheme=function(){return _.mc()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.sL()};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.V.handleShowConsentPrimitive=function(D){var v=this,h,a;return _.M(function(Q){if(Q.nextAddress==1){try{h=(a=_.Mq())==null?void 0:a.getPlayerPromise()}catch(G){}return Q.yield(hmm(D,h),2)}_.zU(v.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.YI(Q)})};
_.V.handleSelectActiveIdentityEndpointInternal=function(D){_.vr();D=_.k(D,_.FqM);if(D!=null&&D.supportedTokens){D=_.P(D.supportedTokens);for(var v=D.next();!v.done;v=D.next())v=v.value,v.accountSigninToken&&_.ay(v.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.V.handleUpdatePermissionRoleCommand=function(D){if(D=_.k(D,_.z$R)){var v;this.hasDelegation=!((v=_.k(D.renderer,_.Fj$))==null||!v.status)}};
_.V.registerWithViewTransitionManager=function(){var D=_.xd().resolve(_.PV(_.KN));if(D){var v,h=(v=this.guide)==null?void 0:v.querySelector("#scrim"),a;v=(a=this.guide)==null?void 0:a.querySelector("#contentContainer");h&&v&&D.isAnyTransitionEnabled&&(a={},D.viewTransitionCoordinator.registerElement(h,(a.slide="app-drawer-scrim-page-transition",a["lockup-to-watch"]="app-drawer-scrim-page-transition",a["learning-journey"]="app-drawer-scrim-page-transition",a)),h={},D.viewTransitionCoordinator.registerElement(v,
(h.slide="app-drawer-container-page-transition",h["lockup-to-watch"]="app-drawer-container-page-transition",h["learning-journey"]="app-drawer-container-page-transition",h)))}};
_.GT.Object.defineProperties(kc.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.g("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.GT.Object.defineProperties(kc,{template:{configurable:!0,enumerable:!0,get:function(){if(czS===void 0){var D=document.createElement("template");_.p(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
D.content.insertBefore(_.T().content.cloneNode(!0),D.content.firstChild);czS=D}D=czS;return D}}});
kc.prototype.onOpenHotkeyDialog=kc.prototype.onOpenHotkeyDialog;kc.prototype.setFullscreen=kc.prototype.setFullscreen;kc.prototype.onAddElementToApp=kc.prototype.onAddElementToApp;kc.prototype.onDrawerIronSelect=kc.prototype.onDrawerIronSelect;kc.prototype.onGuideOpenButtonHover=kc.prototype.onGuideOpenButtonHover;kc.prototype.onRequestPanelModeChange=kc.prototype.onRequestPanelModeChange;kc.prototype.onPageDataUpdated=kc.prototype.onPageDataUpdated;kc.prototype.onPageChanged=kc.prototype.onPageChanged;
kc.prototype.onSetTheaterModeEnabled=kc.prototype.onSetTheaterModeEnabled;kc.prototype.updateMastheadData=kc.prototype.updateMastheadData;kc.prototype.onYtPageManagerAttached=kc.prototype.onYtPageManagerAttached;kc.prototype.observePersistentPanelVisibility=kc.prototype.observePersistentPanelVisibility;kc.prototype.observeGuideVisibility=kc.prototype.observeGuideVisibility;kc.prototype.guideIsVisibleButNotPersistentSelectorChanged=kc.prototype.guideIsVisibleButNotPersistentSelectorChanged;
kc.prototype.isInlinePreviewEnabledChanged=kc.prototype.isInlinePreviewEnabledChanged;kc.prototype.isWatchPageChanged=kc.prototype.isWatchPageChanged;kc.prototype.dispatchFrostedGlassMode=kc.prototype.dispatchFrostedGlassMode;_.e([_.l(_.Mm),_.n("design:type",Object)],kc.prototype,"ytdReduxBehavior",void 0);_.e([_.l(_.WM.YtEventForwardingBehavior),_.n("design:type",Object)],kc.prototype,"ytEventForwardingBehavior",void 0);
_.e([_.l(_.y1.YtOpenPopupBehavior),_.n("design:type",Object)],kc.prototype,"ytOpenPopupBehavior",void 0);_.e([_.l(_.ed.YtActionHandlerBehavior),_.n("design:type",Object)],kc.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.l({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.iD.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.g("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(D){this.actionRouter_.handleAction(D.detail)}}),
_.n("design:type",Object)],kc.prototype,"ytActionRouterBehavior",void 0);_.e([_.l(lkC.YtdAppBehavior),_.n("design:type",Object)],kc.prototype,"ytdAppBehavior",void 0);_.e([_.l(_.wj.YtEndpointBehavior),_.n("design:type",Object)],kc.prototype,"ytEndpointBehavior",void 0);_.e([_.l(d3K.YtEndpointHandlerWithYpcBehavior),_.n("design:type",Object)],kc.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.e([_.l(Xx3.YtLogYpcFlowCommandsBehavior),_.n("design:type",Object)],kc.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.e([_.l(_.t.YtRendererBehavior),_.n("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.e([_.l(_.oY.YtComponentBehavior),_.n("design:type",Object)],kc.prototype,"ytComponentBehavior",void 0);_.e([_.Y({selector:_.TMU}),_.n("design:type",Object)],kc.prototype,"tabGesturesIsActive",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kc.prototype,"renderGuide",void 0);
_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"guidePersistentAndVisible",void 0);_.e([_.Y({selector:_.K9r}),_.n("design:type",Boolean)],kc.prototype,"guideIsVisibleButNotPersistent",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"standalone",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"miniGuideVisible",void 0);
_.e([_.Y(),_.n("design:type",Object)],kc.prototype,"persistentPanelEnabled",void 0);_.e([_.Y({selector:DuX,reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"persistentPanelVisible",void 0);_.e([_.Y({selector:_.gmL}),_.n("design:type",Number)],kc.prototype,"miniplayerPlaybackState",void 0);_.e([_.Y({selector:_.eq,reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"miniplayerIsActive",void 0);
_.e([_.Y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.n("design:type",Boolean)],kc.prototype,"isInlinePreviewEnabled",void 0);_.e([_.Y(),_.n("design:type",Boolean)],kc.prototype,"isInlinePreviewDisabled",void 0);_.e([_.Y({reflectToAttribute:!0,value:function(){return _.nJ("START_IN_FULL_WINDOW_MODE")}}),
_.n("design:type",Boolean)],kc.prototype,"mastheadHidden",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"playerFullscreen",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"fullscreen",void 0);_.e([_.Y({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"hideHeaderShadow",void 0);
_.e([_.Y({value:{GUIDE_ALT_LABEL:_.p1("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.n("design:type",Object)],kc.prototype,"menuStrings",void 0);_.e([_.Y({computed:"computeTopbarData(data)"}),_.n("design:type",Object)],kc.prototype,"topbarData",void 0);_.e([_.Y({selector:_.Lqo,reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"isWatchPage",void 0);_.e([_.Y({selector:_.Zh7,reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"isShortsPage",void 0);
_.e([_.Y({selector:function(D){return _.nG(D)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.n("design:type",Boolean)],kc.prototype,"isMiniAppPage",void 0);_.e([_.Y({selector:function(D){return _.nG(D)==="WEB_PAGE_TYPE_BROWSE"}}),
_.n("design:type",Boolean)],kc.prototype,"isBrowsePage",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Boolean)],kc.prototype,"scrolling",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kc.prototype,"hasDelegation",void 0);_.e([_.Y({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],kc.prototype,"guideScrolledByTouch",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kc.prototype,"darkerDarkTheme",void 0);
_.e([_.Y(),_.n("design:type",Object)],kc.prototype,"isFrostedGlassInitialized",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kc.prototype,"frostedGlassExp",void 0);_.e([_.Y({selector:function(D){return D.ui.chipBarIsSticky}}),
_.n("design:type",Boolean)],kc.prototype,"chipBarIsSticky",void 0);_.e([_.Y({computed:"computeIsHomePage(isBrowsePage, data)"}),_.n("design:type",Boolean)],kc.prototype,"isHomePage",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kc.prototype,"hasPendingWatchNavigation",void 0);_.e([_.Y({reflectToAttribute:!0}),_.n("design:type",Object)],kc.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.e([_.Y(),_.n("design:type",Object)],kc.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.e([_.Hn("guide"),_.n("design:type",Object)],kc.prototype,"guide",void 0);_.e([_.Hn("guide-service"),_.n("design:type",FiK)],kc.prototype,"guideService",void 0);_.e([_.Hn("guide-inner-content"),_.n("design:type",HTMLDivElement)],kc.prototype,"guideInnerContent",void 0);_.e([_.Br("#persistent-panel-container"),_.n("design:type",HTMLElement)],kc.prototype,"persistentPanelContainer",void 0);
_.e([_.Y({selector:_.k4L}),_.n("design:type",String)],kc.prototype,"frostedGlassMode",void 0);_.e([_.Ni("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"dispatchFrostedGlassMode",null);_.e([_.Y({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.n("design:type",Object)],kc.prototype,"isFrostedGlassDisabled",void 0);
_.e([_.Ni("isWatchPage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"isWatchPageChanged",null);_.e([_.N("isHomePage","chipBarIsSticky"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],kc.prototype,"applyFrostedGlassToChipBar",null);_.e([_.Y(),_.n("design:type",Object)],kc.prototype,"isChannelOrPlaylistPage",void 0);
_.e([_.qi("isInlinePreviewEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"isInlinePreviewEnabledChanged",null);_.e([_.Ni("guideIsVisibleButNotPersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.e([_.Ni("guidePersistentAndVisible","miniGuideVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"observeGuideVisibility",null);_.e([_.Ni("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"observePersistentPanelVisibility",null);
_.e([_.lc("attached"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],kc.prototype,"onYtPageManagerAttached",null);_.e([_.Ni("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],kc.prototype,"updateMastheadData",null);_.e([_.lc("yt-set-theater-mode-enabled"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],kc.prototype,"onSetTheaterModeEnabled",null);
_.e([_.lc("yt-page-type-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],kc.prototype,"onPageChanged",null);_.e([_.lc("yt-page-data-updated"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"onPageDataUpdated",null);_.e([_.lc("yt-request-panel-mode-change"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Object]),_.n("design:returntype")],kc.prototype,"onRequestPanelModeChange",null);
_.e([_.lc("yt-guide-hover"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"onGuideOpenButtonHover",null);_.e([_.lc("app-drawer-transitioned"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],kc.prototype,"onDrawerIronSelect",null);_.e([_.lc("yt-add-element-to-app"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],kc.prototype,"onAddElementToApp",null);
_.e([_.lc("yt-set-fullerscreen-styles"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"setFullscreen",null);_.e([_.lc("yt-open-hotkey-dialog"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kc.prototype,"onOpenHotkeyDialog",null);_.e([_.m({is:"ytd-app"})],kc);_.ol().processSignal("eor");
_.y5();
}catch(e){_._DumpException(e)}
try{
_.HQ("NSzT5");
var IDX;_.KM=function(D){var v=document.createElement("link");_.xI(v,D,"stylesheet");document.head.appendChild(v)};
_.T9=function(D,v){var h,a;return _.M(function(Q){h=document.createElement("div");h.id=D.id;D.className&&(h.className=D.className);a=D.element;if(!a)throw Error("ak");if(D.location==="prepend")a.prepend(h);else if(D.location==="appendChild")a.appendChild(h);else if(D.location==="after")a.after(h);else throw Error("bk");return Q.return(_.by(h,v,"mi"))})};
_.R$=function(D){var v;return _.M(function(h){(v=document.getElementById(D))&&v.remove();_.YI(h)})};
_.iV=function(D,v){var h=document.querySelector(D);h?v(h):setTimeout(function(){_.iV(D,v)},1E3)};
_.gE2=function(D,v,h){var a;_.M(function(Q){if(Q.nextAddress==1)return(a=document.getElementById(D))?Q.jumpTo(2):Q.yield(IDX(D,v,h),2);if(a=document.getElementById(D))a.style.display="block";_.YI(Q)})};
IDX=function(D,v,h){return _.M(function(a){return a.return(new Promise(function(Q){_.iV("div #panels",function(G){_.T9({element:G,location:"appendChild",id:D,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+h},v);Q()})}))})};
_.pUK=function(D){D=D===void 0?"":D;_.R$("creator_chatbots-entry-point");_.R$("creator_chatbots-panel");_.KM(kUr);_.iV("ytd-watch-metadata #top-level-buttons-computed",function(v){document.getElementById("creator_chatbots-entry-point")||(_.T9({element:v,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.F(S9d,{creatorChannelId:D})}),_.gE2("creator_chatbots-panel",function(){return _.F(JPZ,{usePlayerHeight:!0,
creatorChannelId:D})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Wn=_.H(function(D){var v=D.text;var h=D.onClick;var a=D.color;var Q=D.backgroundColor;var G=D.buttonSize;var x=D.disabled;var f=D.iconName;var C=D.iconSize;D=D.className;var U=_.Jd(function(Z){h(Z)}),L={};
return _.F("button",{class:_.S3("ytpStandardButtonsHost",(L.ytpStandardButtonsLarge=function(){return(G==null?void 0:G())==="large"},L),D),
"on:click":U,style:_.NL({color:a,"background-color":Q}),disabled:x}," ",_.F(_.z,{cond:f,then:function(){return _.F(_.Y5,{className:"ytpStandardButtonsIconContainer",icon:f,size:C})}}),v)},"li");_.lDS=_.H(function(D){var v;return _.F("div",{class:_.S3("ytprototypesEngagementPanelComponentHost",D.className),id:D.id},_.F("div",{class:_.S3("ytprototypesEngagementPanelComponentEngagementPanelHeader",D.headerClassName)},_.F("div",null,D.header()),_.F("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.F("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(v=D.HeaderButton)==null?void 0:v.call(D)),_.F(_.Wn,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var h;(h=D.onHide)==null||h.call(D);h=D.id();if(h=document.getElementById(h))h.style.display="none"}}))),_.F("div",{class:_.S3("ytprototypesEngagementPanelComponentEngagementPanelContent",D.contentClassName),
style:function(){var h;return"height: "+(((h=D.height)==null?void 0:h.call(D))||"800px")+";"}},D.content()))},"ni");var NKS=_.DK(["https://portraits.google.com"]),Y9m=_.DK(["https://labs-characters.teams.x20web.corp.google.com"]),BKU=_.DK(["https://portraits.google.com/gallery?ytChannelId=",""]),cPd=_.UV(NKS),ta=_.UV(Y9m),JPZ=_.H(function(D){function v(E){var I;if(E=(I=E.detail)==null?void 0:I.endpoint){I=_.k(E,_.YV);var S;I&&((S=I.browseId)==null?0:S.startsWith("UC"))&&I.browseId!==Q()&&(_.R$("creator_chatbots-panel-persistent"),L.removeEventListener("yt-navigate-start",v))}}
var h=D.usePlayerHeight;var a=D.isPersistentPanel;var Q=D.creatorChannelId;var G=_.g("enable_creator_chatbots_extension_dev_server"),x=document.createElement("iframe"),f=G?ta:cPd;_.dM(function(){var E=Q();E=G?ta:_.UV(BKU,E);_.CzA(x,1,E)});
x.className="ytprotoCreatorChatbotsAppLabsIframe";x.allow="microphone; clipboard-read; clipboard-write self "+f;var C=function(){var E;return _.M(function(I){if(I.nextAddress==1)return I.yield(_.xd().resolve(_.zf),2);(E=I.yieldResult)&&E.pauseVideo();_.YI(I)})},U=function(){var E,I,S;
return _.M(function(B){return B.nextAddress==1?B.yield(_.xd().resolve(_.zf),2):(E=B.yieldResult)?B.return({video_id:(S=(I=E.getVideoData())==null?void 0:I.video_id)!=null?S:"",timestamp_sec:E.getCurrentTime().toString()}):B.return({})})};
window.addEventListener("message",function(E){var I,S,B,A,d,b;return _.M(function(W){if(W.nextAddress==1){I=G?ta.toString():cPd.toString();if(E.origin!==I)return console.warn("Received message from untrusted origin:",E.origin),W.return();S=E.data;if(typeof S!=="object"||S===null||!S.action)return W.return();if(S.action==="pause")return W.yield(C(),0);if(S.action!=="getYouTubeContext"||!E.source)return W.jumpTo(0);B=E.source;A=B.postMessage;d=JSON;b=d.stringify;return W.yield(U(),7)}A.call(B,b.call(d,
{youTubeContext:W.yieldResult}),{targetOrigin:E.origin});return W.jumpTo(0)})});
_.Pa("yt-page-type-changed",function(){if(a==null?0:a()){var E;((E=_.xd().resolve(_.P4).getCurrentPage())==null?void 0:E.pageSubtype)!=="channels"&&(E=document.getElementById("creator_chatbots-panel-persistent"))&&(E.style.display="none")}});
var L=_.xd().resolve(_.WC),Z;(Z=L)==null||Z.addEventListener("yt-navigate-start",v);_.dq(function(){var E;(E=L)==null||E.removeEventListener("yt-navigate-start",v)});
return _.F("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(h==null?0:h())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.F(_.lDS,{id:function(){return(a==null?0:a())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var E=G?ta.toString():cPd.toString(),I;(I=x.contentWindow)==null||I.postMessage("ep_closed",E)},
header:function(){return _.F("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.F("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.F(_.fn,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.F(_.Wn,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Dx(window,_.yw(G?ta.toString():f.toString()+"/gallery?ytChannelId="+Q()),"_blank")}})},
content:function(){return x}}))},"oi");var XUm,kUr,S9d;XUm=_.DK(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);kUr=_.UV(XUm);S9d=_.H(function(D){var v=D.creatorChannelId;var h=function(){_.gE2("creator_chatbots-panel",function(){return _.F(JPZ,{usePlayerHeight:!0,creatorChannelId:v})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.F("div",{class:"ytd-menu-renderer"},_.F(_.jd,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:h}},
icon:function(){return _.F(_.Y5,{icon:"SPARK"})}}))},"pi");
_.uxU=function(D){D=D===void 0?"":D;var v;return _.M(function(h){return(v=document.getElementById("creator_chatbots-panel-persistent"))?(v.style.display==="none"&&(v.style.display="block"),h.jumpTo(0)):h.yield(new Promise(function(a){_.iV("ytd-app",function(Q){_.T9({element:Q,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.F(JPZ,{isPersistentPanel:!0,
creatorChannelId:D})});
a()})}),0)})};
_.y5();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
